/* =========================================================================
   HERO STICK — Landing Page Stylesheet
   Table of contents:
   1.  Reset & base
   2.  CSS variables (design tokens)
   3.  Typography helpers
   4.  Layout utilities
   5.  Buttons
   6.  Navbar
   7.  Mobile nav drawer
   8.  Hero section
   9.  Badges & pills
   10. How-it-works steps
   11. Features grid
   12. Game modes
   13. Character showcase
   14. Cherry / collectibles section
   15. Scenes showcase
   16. Screenshots gallery
   17. Multiplayer section
   18. Offline section
   19. Stats counters
   20. Final CTA
   21. Footer
   22. Modals
   23. Scroll-reveal + keyframe animations
   24. Responsive breakpoints
   25. Accessibility & reduced motion
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Reset & base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

ul, ol { list-style: none; margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, p { margin: 0; }

svg { display: block; }

/* -------------------------------------------------------------------------
   2. CSS variables (design tokens)
   ------------------------------------------------------------------------- */
:root {
  /* Core palette */
  --bg-dark: #12142b;
  --bg-dark-2: #191c3d;
  --bg-dark-3: #1f2350;
  --surface: #23264f;
  --surface-light: #2b2f5e;

  --primary: #ffb238;      /* warm orange/yellow */
  --primary-dark: #ff7a3d;
  --accent-green: #33d17a; /* fresh green */
  --accent-green-dark: #1fae63;
  --cherry: #ff4d6d;       /* cherry red */
  --cherry-dark: #c81f3e;
  --sky: #7dd3fc;
  --sky-2: #4fb8ee;
  --purple: #8b7cf6;

  --text: #fff6e6;         /* light cream */
  --text-muted: #b9bdda;
  --text-on-light: #1a1d3f;

  /* Spacing scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 6rem;

  /* Radii & shadows */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(6, 8, 24, 0.35);
  --shadow-strong: 0 20px 50px rgba(6, 8, 24, 0.5);

  /* Layout */
  --container-w: 1180px;
  --navbar-h: 76px;

  /* Motion */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.2s;
  --dur-mid: 0.4s;

  /* Type: a chunky, rounded arcade display face for headings/numbers,
     paired with a warmer geometric sans for body copy. Both are
     freely-licensed (OFL) Google Fonts with system fallbacks so the
     page still reads correctly offline. */
  --font-display: 'Baloo 2', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* -------------------------------------------------------------------------
   3. Typography helpers
   ------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--primary);
}

h1, h2, h3, .section-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.08;
  text-wrap: balance;
  color:#fff;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  text-align: center;
  margin: 0 auto var(--space-xs);
  max-width: 720px;
  color: var(--text);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto var(--space-xl);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
}

.section-head { margin-bottom: var(--space-lg); }

.text-gradient {
  background: linear-gradient(120deg, var(--primary), var(--cherry) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------------------------------------------------------------
   4. Layout utilities
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

section { position: relative; padding-block: var(--space-2xl); }

.section-alt { background: var(--bg-dark-2); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--primary);
  color: var(--text-on-light);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 999;
  font-weight: 700;
  transition: top var(--dur-fast) var(--ease-smooth);
}
.skip-link:focus { top: 1rem; }

/* -------------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-bounce),
              box-shadow var(--dur-fast) var(--ease-smooth),
              background var(--dur-fast) var(--ease-smooth);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #241200;
  box-shadow: 0 10px 24px rgba(255, 122, 61, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(255, 122, 61, 0.45); }

.btn-secondary {
  background: rgba(255, 246, 230, 0.08);
  color: var(--text);
  border: 2px solid rgba(255, 246, 230, 0.25);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover { background: rgba(255, 246, 230, 0.16); transform: translateY(-3px); }

.btn-green {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  color: #05270f;
  box-shadow: 0 10px 24px rgba(51, 209, 122, 0.3);
}
.btn-green:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(51, 209, 122, 0.4); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--surface-light);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0.55rem 1.2rem; font-size: 0.88rem; }

.btn-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* -------------------------------------------------------------------------
   6. Navbar
   ------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-mid) var(--ease-smooth),
              box-shadow var(--dur-mid) var(--ease-smooth),
              height var(--dur-mid) var(--ease-smooth);
}

.navbar.is-scrolled {
  background: rgba(18, 20, 43, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  height: 66px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0.1rem;
  transition: color var(--dur-fast) var(--ease-smooth);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  height: 3px; width: 0;
  background: var(--primary);
  border-radius: var(--radius-pill);
  transition: width var(--dur-fast) var(--ease-smooth);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { color: var(--primary); }

.nav-cta { display: flex; align-items: center; gap: var(--space-md); }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px; height: 3px;
  background: var(--text);
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease-smooth), opacity var(--dur-fast) var(--ease-smooth);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(78vw, 340px);
  height: 100dvh;
  background: var(--bg-dark-3);
  box-shadow: -10px 0 40px rgba(0,0,0,0.4);
  transform: translateX(100%);
  transition: transform var(--dur-mid) var(--ease-smooth);
  z-index: 200;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.mobile-drawer.is-open { transform: translateX(0); }

.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-close {
  width: 40px; height: 40px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 1.2rem;
}
.drawer-links { display: flex; flex-direction: column; gap: var(--space-sm); }
.drawer-links a {
  font-size: 1.15rem;
  font-weight: 800;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(6,7,18,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-smooth);
  z-index: 190;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* -------------------------------------------------------------------------
   7. Badges & pills
   ------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 178, 56, 0.14);
  border: 1px solid rgba(255, 178, 56, 0.35);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(51,209,122,0.2);
}

/* -------------------------------------------------------------------------
   8. Hero section
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--navbar-h) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(125, 211, 252, 0.12), transparent 60%),
    radial-gradient(50% 40% at 10% 90%, rgba(255, 178, 56, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin: var(--space-md) 0 var(--space-sm);
}
.hero-copy h1 span { color: var(--primary); }

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: var(--space-lg);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-scene {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.hero-visual-glow {
  position: absolute;
  inset: 10% 10%;
  background: radial-gradient(circle, rgba(255,178,56,0.25), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}

/* elements inside inline hero SVG animate via classes below */
.fx-float { animation: floatY 4s ease-in-out infinite; }
.fx-float-slow { animation: floatY 6s ease-in-out infinite; }
.fx-float-delay { animation: floatY 5s ease-in-out infinite; animation-delay: 1.2s; }
.fx-cloud { animation: driftX 22s linear infinite; }
.fx-cloud-rev { animation: driftX 28s linear infinite reverse; }
.fx-particle { animation: sparkle 2.6s ease-in-out infinite; }
.fx-stick-grow { transform-box: fill-box; transform-origin: left center; animation: stickGrow 2.8s ease-in-out infinite; }

/* -------------------------------------------------------------------------
   9. How-it-works steps
   ------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(255,178,56,0.35);
  margin-bottom: var(--space-sm);
}

.step-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: rgba(255,178,56,0.12);
  display: flex; align-items: center; justify-content: center;
}
.step-icon svg { width: 32px; height: 32px; }

.step-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

/* -------------------------------------------------------------------------
   10. Features grid
   ------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-dark-3));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform var(--dur-mid) var(--ease-bounce), box-shadow var(--dur-mid) var(--ease-smooth), border-color var(--dur-mid);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(255,178,56,0.35);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-md);
  background: rgba(51,209,122,0.14);
}
.feature-icon svg { width: 28px; height: 28px; }

.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* -------------------------------------------------------------------------
   11. Game modes
   ------------------------------------------------------------------------- */
.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.mode-card {
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mode-card.mode-classic {
  background: linear-gradient(150deg, #1c2350, #12142b 70%);
}
.mode-card.mode-slash {
  background: linear-gradient(150deg, #3a1230, #12142b 70%);
}

.mode-visual {
  position: absolute;
  top: var(--space-lg); left: var(--space-lg); right: var(--space-lg);
  height: 170px;
}
/*.mode-visual svg { width: 100%; height: 100%; }*/
.mode-visual svg {
    width: 95%;
    height: 84%;
}

.mode-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.mode-card p { color: var(--text-muted); margin-bottom: var(--space-md); }
.mode-tag {
  position: absolute; top: var(--space-md); right: var(--space-md);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
}

/* -------------------------------------------------------------------------
   12. Character showcase
   ------------------------------------------------------------------------- */
.characters-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}

.character-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--dur-mid) var(--ease-bounce), border-color var(--dur-mid);
}
.character-card:hover { transform: translateY(-6px) rotate(-1deg); border-color: rgba(255,178,56,0.4); }

.character-art {
  width: 100px; height: 128px;
  margin: 0 auto var(--space-sm);
}

.character-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.character-card p { color: var(--text-muted); font-size: 0.85rem; min-height: 2.6em; }

.unlock-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}
.unlock-tag.is-unlocked { background: rgba(51,209,122,0.16); color: var(--accent-green); }
.unlock-tag.is-locked { background: rgba(255,255,255,0.08); color: var(--text-muted); }

/* -------------------------------------------------------------------------
   13. Cherry / collectibles section
   ------------------------------------------------------------------------- */
.cherry-section {
  background: radial-gradient(60% 60% at 50% 0%, rgba(255,77,109,0.14), transparent 70%), var(--bg-dark-2);
}

.cherry-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.cherry-visual {
  position: relative;
  height: 300px;
}
.cherry-visual .cherry-icon {
  position: absolute;
  width: 70px; height: 70px;
}
.unlock-list { margin-top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }
.unlock-row {
  display: flex; align-items: center; gap: var(--space-sm);
  background: var(--surface);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}
.unlock-row .count { font-weight: 900; color: var(--cherry); white-space: nowrap; }
.unlock-row .arrow { color: var(--text-muted); }
.unlock-row .target { font-weight: 800; }

/* -------------------------------------------------------------------------
   14. Scenes showcase
   ------------------------------------------------------------------------- */
.scenes-scroller {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.scenes-scroller::-webkit-scrollbar { height: 8px; }
.scenes-scroller::-webkit-scrollbar-thumb { background: var(--surface-light); border-radius: var(--radius-pill); }

.scene-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
}
.scene-card img { height: 150px; width: 100%; object-fit: cover; }
.scene-card .scene-label {
  padding: var(--space-sm) var(--space-md);
  font-weight: 800;
}

/* -------------------------------------------------------------------------
   15. Screenshots gallery
   ------------------------------------------------------------------------- */
.screens-scroller {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.screen-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  background: var(--surface);
  transition: transform var(--dur-mid) var(--ease-bounce);
}
.screen-item:hover, .screen-item:focus-visible { transform: translateY(-6px) scale(1.02); }
.screen-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform var(--dur-mid) var(--ease-smooth); }
.screen-item:hover img { transform: scale(1.08); }
.screen-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  font-size: 0.85rem; font-weight: 700;
}

/* -------------------------------------------------------------------------
   16. Multiplayer section
   ------------------------------------------------------------------------- */
.vs-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-lg);
  max-width: 760px;
  margin: 0 auto var(--space-lg);
}
.vs-player {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.vs-player .vs-avatar {
  width: 72px; height: 72px; margin: 0 auto var(--space-sm);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.4rem;
}
.vs-player.player-1 .vs-avatar { background: rgba(255,178,56,0.18); color: var(--primary); }
.vs-player.player-2 .vs-avatar { background: rgba(125,211,252,0.18); color: var(--sky); }
.vs-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cherry);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(255,77,109,0.4);
}
.multiplayer-steps {
  display: flex; justify-content: center; gap: var(--space-lg);
  flex-wrap: wrap;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  font-weight: 700;
}
.multiplayer-cta { text-align: center; }

/* -------------------------------------------------------------------------
   17. Offline section
   ------------------------------------------------------------------------- */
.offline-section {
  background: linear-gradient(160deg, var(--bg-dark-3), var(--bg-dark));
  text-align: center;
}
.offline-icon-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md);
  margin-top: var(--space-lg);
}
.offline-pill {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.9rem;
}
.offline-pill svg { width: 20px; height: 20px; }

/* -------------------------------------------------------------------------
   18. Stats counters
   ------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   19. Final CTA
   ------------------------------------------------------------------------- */
.final-cta {
  background: radial-gradient(70% 70% at 50% 30%, rgba(255,178,56,0.16), transparent 70%), var(--bg-dark-2);
  text-align: center;
  overflow: hidden;
}
.final-cta-visual { max-width: 220px; margin: 0 auto var(--space-lg); }
.final-cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: var(--space-sm); }
.final-cta p { color: var(--text-muted); margin-bottom: var(--space-lg); font-size: 1.1rem; }
.final-cta .cta-row { justify-content: center; }

/* -------------------------------------------------------------------------
   20. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: #0d0e22;
  padding-block: var(--space-xl) var(--space-lg);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 32px; margin-bottom: var(--space-sm); }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 34ch; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: var(--space-sm); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: var(--text); font-size: 0.92rem; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--space-sm);
  padding-top: var(--space-lg);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.social-icons { display: flex; gap: 0.6rem; }
.social-icons a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.8rem;
}
.social-icons a:hover { background: var(--primary); color: var(--text-on-light); }

/* -------------------------------------------------------------------------
   21. Modals
   ------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(6,7,18,0.82);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-lg);
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-smooth);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal-box {
  background: var(--bg-dark-3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-width: 720px;
  width: 100%;
  position: relative;
  transform: scale(0.92) translateY(10px);
  transition: transform var(--dur-mid) var(--ease-bounce);
  box-shadow: var(--shadow-strong);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.is-open .modal-box { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 1.1rem;
}
.modal-close:hover { background: var(--cherry); }

.modal-box img { width: 100%; border-radius: var(--radius-md); }

.video-placeholder {
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--surface), var(--bg-dark));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-sm);
  text-align: center;
  padding: var(--space-lg);
  border: 2px dashed rgba(255,255,255,0.15);
}
.video-placeholder .play-ring {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-light);
  font-size: 1.6rem;
}
.video-placeholder p { color: var(--text-muted); max-width: 40ch; font-size: 0.9rem; }

/* -------------------------------------------------------------------------
   22. Scroll-reveal + keyframe animations
   ------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0.02s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.09s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.23s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.30s; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.37s; }
[data-reveal-stagger].is-visible > *:nth-child(7) { transition-delay: 0.44s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes driftX {
  0% { transform: translateX(-10px); }
  100% { transform: translateX(30px); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes stickGrow {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.08); }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(51,209,122,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(51,209,122,0); }
}
.badge-dot { animation: pulseDot 2s ease-in-out infinite; }

/* -------------------------------------------------------------------------
   23. Responsive breakpoints
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-visual { order: -1; max-width: 440px; margin-inline: auto; }
  .cta-row { justify-content: center; }
  .cherry-layout { grid-template-columns: 1fr; }
  .cherry-visual { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-secondary-desktop { display: none; }
  .hamburger { display: flex; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .modes-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .screens-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .screen-item { flex: 0 0 78%; scroll-snap-align: start; }
}

@media (max-width: 640px) {
  section { padding-block: var(--space-xl); }
  .features-grid { grid-template-columns: 1fr; }
  .vs-layout { grid-template-columns: 1fr; }
  .vs-badge { margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
}

/* -------------------------------------------------------------------------
   24b. Legal content pages (privacy / terms)
   ------------------------------------------------------------------------- */
.legal-page main {
  padding-top: calc(var(--navbar-h) + var(--space-xl));
  padding-bottom: var(--space-2xl);
}

/* the generic `section { padding-block: var(--space-2xl) }` rule is meant for
   the landing page's full-bleed sections — override it here so the legal
   pages' <section> wrappers (used only for anchor targets) don't each add
   6rem of empty space top and bottom. */
.legal-content section {
  padding-block: 0;
}

.legal-content {
  max-width: 760px;
}

.legal-content .updated {
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.legal-content .callout {
  background: rgba(255, 178, 56, 0.1);
  border: 1px solid rgba(255, 178, 56, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--text);
  margin-bottom: var(--space-xl);
  font-size: 0.95rem;
}
.legal-content .callout strong { color: var(--primary); }

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: var(--space-sm);
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.legal-content section:first-of-type h2 { border-top: none; padding-top: 0; }

.legal-content p {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  max-width: 68ch;
}

.legal-content ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.2rem;
  color: var(--text-muted);
}
.legal-content ul { list-style: disc; }
.legal-content li { margin-bottom: 0.4rem; max-width: 66ch; }

.legal-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--primary-dark); }

.legal-content strong { color: var(--text); }

.legal-table-wrap { overflow-x: auto; margin-bottom: var(--space-md); }
.legal-content table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 0.9rem;
}
.legal-content th, .legal-content td {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.6rem 0.8rem;
  text-align: left;
  color: var(--text-muted);
}
.legal-content th { color: var(--text); background: var(--surface); }

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-xl);
}
.legal-toc a {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  text-decoration: none;
}
.legal-toc a:hover { color: var(--primary); border-color: rgba(255,178,56,0.35); }

/* -------------------------------------------------------------------------
   24. Accessibility & reduced motion
   ------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}


.bg-dark {
    background: #12142b;
}
.screen-item {
    padding: 0;
    background: transparent;
    border: 0;
}
a:hover, a:focus {
    color: inherit;
}
.top-space {
    padding-top: 100px;
    padding-bottom: 30px;
}