/* ==========================================================================
   Zolyzo, Inc. — Official Design System & Responsive Stylesheet
   Modern CSS3: Custom properties, fluid clamp(), dynamic dvh, CSS Grid,
   native <dialog> with overscroll-behavior containment, zero horizontal scroll.
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  /* Color Palette — Obsidian Dark Theme */
  --bg-dark-base: #090D16;
  --bg-dark-surface: #0E1422;
  --bg-dark-elevated: #161F33;
  --bg-card: rgba(18, 25, 42, 0.78);
  --bg-card-border: rgba(255, 255, 255, 0.08);

  /* Brand Accents & Gradients */
  --brand-primary: #6366F1;   /* Electric Indigo */
  --brand-secondary: #8B5CF6; /* Violet */
  --brand-pink: #EC4899;      /* Hot Magenta */
  --brand-accent: #06B6D4;    /* Cyber Cyan */
  --brand-emerald: #10B981;   /* Emerald Zen */
  --brand-amber: #F59E0B;     /* Amber Sunbeam */

  /* Text Colors */
  --text-high: #F8FAFC;       /* 95% White */
  --text-mid: #94A3B8;        /* Slate 400 */
  --text-low: #64748B;        /* Slate 500 */
  --text-muted: #475569;      /* Slate 600 */

  /* Typography Scales (Fluid clamp) */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --text-display: clamp(2.25rem, 5.5vw + 0.5rem, 4.25rem);
  --text-h2: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  --text-h3: clamp(1.25rem, 2vw + 0.4rem, 1.85rem);
  --text-body: clamp(0.95rem, 0.2vw + 0.9rem, 1.075rem);
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  /* Spacing */
  --container-max: 1240px;
  --header-height: 72px;

  /* Glassmorphism & Elevation */
  --glass-bg: rgba(14, 20, 34, 0.78);
  --glass-blur: blur(14px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.09);
  --shadow-card: 0 16px 36px -8px rgba(0, 0, 0, 0.5);
  --shadow-glow-indigo: 0 0 40px rgba(99, 102, 241, 0.22);
  --shadow-glow-cyan: 0 0 36px rgba(6, 182, 212, 0.2);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-normal: 0.24s;
}

/* Reset & Base Rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark-base);
  color: var(--text-high);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark-base);
  color: var(--text-high);
  line-height: 1.6;
  font-size: var(--text-body);
  overflow-x: hidden;
  width: 100%;
  min-height: 100dvh;
  position: relative;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--brand-primary);
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid #FFFFFF;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

/* Text & Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-high);
  line-height: 1.2;
  margin-top: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--text-mid);
}

a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color var(--duration-normal) ease;
}
a:hover {
  color: #38BDF8;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Utility: Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Utility: Section Header */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header.text-center {
  text-align: center;
}
.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--brand-accent);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: var(--text-h2);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-mid);
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.975rem;
  transition: all var(--duration-normal) var(--ease-smooth);
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 48px;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  box-shadow: 0 6px 26px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  color: #FFFFFF;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-high);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.btn-outline-sm {
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-high);
  min-height: 40px;
}
.btn-outline-sm:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--brand-primary);
  color: #FFFFFF;
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  z-index: 100;
  display: flex;
  align-items: center;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  outline: none;
}
.brand-logo {
  height: 38px;
  width: auto;
  transition: transform var(--duration-normal) ease;
}
.brand-link:hover .brand-logo {
  transform: scale(1.02);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2rem);
}
.nav-link {
  color: var(--text-mid);
  font-size: 0.925rem;
  font-weight: 600;
  transition: color var(--duration-normal) ease;
  padding: 0.4rem 0.2rem;
  position: relative;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-high);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-accent);
  transition: width var(--duration-normal) ease;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link-legal {
  color: var(--text-low);
  font-size: 0.85rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Hamburger Menu Toggle */
.mobile-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}
.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-high);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--bg-dark-surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 99;
}
.mobile-drawer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav-link {
  color: var(--text-high);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 0;
}
.mobile-nav-link:hover {
  color: var(--brand-accent);
}
.mobile-drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-block: 0.5rem;
}
.mobile-nav-legal {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6.5rem);
  overflow: hidden;
}
.hero-backdrop-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 90vw);
  height: 550px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.12) 35%, rgba(6, 182, 212, 0.06) 65%, transparent 75%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  margin-bottom: 1.75rem;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 10px var(--brand-emerald);
}
.hero-badge-text {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  text-transform: uppercase;
}
.hero-title {
  font-size: var(--text-display);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.btn-icon {
  transition: transform var(--duration-normal) ease;
}
.btn-primary:hover .btn-icon {
  transform: translateX(4px);
}

/* Hero Stats Strip */
.hero-stats-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.25rem clamp(1rem, 2vw, 2rem);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}
.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat-value {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  color: var(--text-high);
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--text-low);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.stat-divider {
  display: none;
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Showcase Section & Game Cards
   ========================================================================== */
.showcase-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: linear-gradient(180deg, var(--bg-dark-base) 0%, var(--bg-dark-surface) 50%, var(--bg-dark-base) 100%);
}
.showcase-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

/* Primary Game Card */
.game-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  padding: clamp(1.25rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.game-visual {
  position: relative;
  width: 100%;
}
.game-visual-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  background: #000000;
}
.game-mock-image {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 420;
  object-fit: cover;
  transition: transform 0.4s var(--ease-smooth);
}
.game-card:hover .game-mock-image {
  transform: scale(1.02);
}
.game-visual-glow {
  position: absolute;
  inset: -10%;
  border-radius: 30px;
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}
.aetheria-glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 70%);
}
.lumino-glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(245, 158, 11, 0.16) 50%, transparent 70%);
}

.game-details {
  display: flex;
  flex-direction: column;
}
.game-meta-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.meta-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sci-fi-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.cozy-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.cyber-badge {
  background: rgba(236, 72, 153, 0.15);
  color: #F472B6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}
.meta-rating {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #FBBF24;
}
.meta-downloads {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-low);
}

.game-title {
  font-size: var(--text-h3);
  margin-bottom: 0.4rem;
}
.game-tagline {
  color: var(--brand-accent);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.game-description {
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

/* 4 Feature Pillars in Card */
.game-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}
.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.pillar-icon {
  font-size: 1.25rem;
  line-height: 1.2;
}
.pillar-content strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-high);
  margin-bottom: 0.15rem;
}
.pillar-content p {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 0;
  line-height: 1.45;
}

/* Store Badge Links & SVGs */
.store-badge-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}
.store-badge-link {
  display: inline-block;
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s ease;
  border-radius: 8px;
  min-height: 42px;
}
.store-badge-link:hover,
.store-badge-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}
.store-badge-link:hover rect {
  stroke: var(--brand-primary);
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.35));
}
.store-badge-svg {
  height: 42px;
  width: auto;
}

/* Compact Card (Z-Pulse) */
.game-card-compact {
  padding: 1.75rem clamp(1.25rem, 3vw, 2.25rem);
  background: linear-gradient(135deg, rgba(14, 20, 34, 0.9) 0%, rgba(30, 27, 75, 0.4) 100%);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}
.compact-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.meta-genre {
  font-size: var(--text-xs);
  color: var(--text-low);
  font-weight: 600;
}
.compact-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.platform-support {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-accent);
  text-transform: uppercase;
}

/* ==========================================================================
   Engineering Pillars Section
   ========================================================================== */
.pillars-section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 18px;
  padding: 1.75rem;
  transition: transform var(--duration-normal) ease, border-color var(--duration-normal) ease;
}
.pillar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.35);
}
.card-icon-wrap {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.pillar-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.pillar-card p {
  font-size: 0.925rem;
  color: var(--text-mid);
  margin-bottom: 0;
  line-height: 1.55;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  background: var(--bg-dark-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.about-narrative {
  max-width: 820px;
  margin-inline: auto;
  text-align: left;
}
.about-narrative p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-mid);
}
.about-narrative strong {
  color: var(--text-high);
}
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.about-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-accent);
  margin-bottom: 0.25rem;
}
.stat-desc {
  font-size: var(--text-xs);
  color: var(--text-mid);
  font-weight: 600;
}

/* ==========================================================================
   Legal Identity & Contact Section
   ========================================================================== */
.contact-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.contact-card-wrapper {
  max-width: 840px;
  margin-inline: auto;
}
.corporate-verification-card {
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow-cyan);
  backdrop-filter: blur(14px);
}
.corp-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
}
.corp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
}
.corp-legal-name {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}
.corp-tagline {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 0;
}

.corp-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.corp-info-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
}
.info-label {
  font-size: 0.85rem;
  color: var(--text-low);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.info-value {
  font-size: 1.05rem;
  color: var(--text-high);
}
.address-highlight {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border-left: 3px solid var(--brand-accent);
  word-break: break-word;
}
.corp-link {
  color: var(--brand-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.corp-link:hover {
  color: #38BDF8;
}

.corp-verification-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}
.duns-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-low);
  line-height: 1.5;
}
.check-icon {
  color: var(--brand-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Static Crawler-Accessible Legal Text Archive
   ========================================================================== */
.legal-static-archive {
  padding-block: 3.5rem;
  background: var(--bg-dark-base);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.legal-archive-box {
  background: var(--bg-dark-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.archive-main-title {
  font-size: var(--text-h3);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.static-legal-doc {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.static-legal-doc:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.static-legal-doc h3 {
  font-size: 1.4rem;
  color: var(--brand-accent);
  margin-bottom: 0.5rem;
}
.static-legal-doc h4 {
  font-size: 1.1rem;
  color: var(--text-high);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.static-legal-doc p,
.static-legal-doc li {
  font-size: 0.925rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.static-legal-doc ul,
.static-legal-doc ol {
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}
.static-legal-doc li {
  margin-bottom: 0.5rem;
}
.doc-date {
  font-size: 0.85rem;
  color: var(--text-low);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background: #060910;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 4rem 2rem;
  color: var(--text-mid);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}
.footer-brand {
  max-width: 320px;
}
.footer-logo {
  height: 34px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-low);
  margin-bottom: 1rem;
}
.footer-reg-statement {
  font-size: 0.8rem;
  color: var(--text-mid);
}
.footer-col-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-high);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links-list a,
.footer-legal-btn {
  font-size: 0.9rem;
  color: var(--text-mid);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color var(--duration-normal) ease;
  font-family: inherit;
}
.footer-links-list a:hover,
.footer-legal-btn:hover {
  color: var(--brand-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.825rem;
  color: var(--text-low);
}
.footer-address-verbatim {
  color: var(--text-mid);
  word-break: break-word;
}
.footer-copyright p {
  margin: 0;
  color: var(--text-low);
}

/* ==========================================================================
   Modern Native <dialog> Modal Architecture
   In strict compliance with modern-web-guidance:
   - overscroll-behavior: contain on dialog:modal and dialog::backdrop
   - overflow: hidden on dialog::backdrop to establish non-scrollable container
   - focus management & light dismiss fallback
   ========================================================================== */
dialog:modal {
  overscroll-behavior: contain;
  border: none;
  border-radius: 18px;
  background: var(--bg-dark-surface);
  color: var(--text-high);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12);
  width: min(92vw, 840px);
  max-height: 86dvh;
  padding: 0;
  margin: auto;
  position: fixed;
  inset: 0;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 86dvh;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-dark-surface);
  flex-shrink: 0;
}
.modal-title-wrap {
  display: flex;
  flex-direction: column;
}
.modal-subtitle {
  font-size: var(--text-xs);
  color: var(--brand-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.modal-title {
  font-size: 1.45rem;
  margin: 0;
  color: #FFFFFF;
}
.modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text-high);
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-close-btn:hover,
.modal-close-btn:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  outline: none;
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex-grow: 1;
}
.modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.legal-content-rendered h3 {
  font-size: 1.15rem;
  color: var(--brand-accent);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}
.legal-content-rendered p,
.legal-content-rendered li {
  font-size: 0.925rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.legal-content-rendered ul,
.legal-content-rendered ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-dark-surface);
  flex-shrink: 0;
}
.modal-done-btn {
  min-height: 40px;
  padding: 0.5rem 1.4rem;
}

/* ==========================================================================
   Responsive Breakpoints
   - Mobile Extra-Small: <= 375px
   - Tablet: >= 768px
   - Desktop: >= 1024px / 1280px
   ========================================================================== */

/* Mobile extra small screens (<= 375px) */
@media (max-width: 375px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .store-badge-group {
    flex-direction: column;
    align-items: flex-start;
  }
  .stat-pill {
    width: 100%;
  }
  .brand-logo {
    height: 32px;
  }
}

/* Tablet Screens (>= 640px) */
@media (min-width: 640px) {
  .stat-divider {
    display: block;
  }
  .game-pillars {
    grid-template-columns: 1fr 1fr;
  }
  .corp-info-item {
    grid-template-columns: 220px 1fr;
    align-items: baseline;
  }
}

/* Desktop Screens (>= 768px) */
@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-drawer {
    display: none !important;
  }
  .footer-top {
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Large Screens (>= 1024px) */
@media (min-width: 1024px) {
  .game-card {
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
    padding: 3rem;
  }
  .game-card-reverse {
    grid-template-columns: 1fr 1.15fr;
  }
  .game-card-reverse .game-visual {
    order: 2;
  }
  .game-card-reverse .game-details {
    order: 1;
  }
}
