/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS — mirrors src/shared/theme/tokens.ts
═══════════════════════════════════════════════════════ */
:root {
  /* ── Backgrounds ── */
  --bg-screen:        #0F0617;
  --bg-surface:       #110820;  /* warm purple, no blue cast */
  --bg-card:          #1C1030;  /* was #1B1F2E (blue-gray) → warm dark purple */
  --bg-category:      #170C21;
  --bg-sheet:         #170C21;
  --bg-phone:         #07040F;
  --bg-header-stuck:  rgba(17, 8, 32, 0.85); /* matches --bg-surface #110820 */

  /* Gradient screen stop colours */
  --bg-grad-1: #1b1530;
  --bg-grad-2: #131021;
  --bg-grad-3: #090815;  /* was #0a0b12 (blue-black) → deep purple-black */

  /* ── Text on bright / gold surfaces ── */
  --text-on-gold: var(--n-900); /* #170C21 — deep purple, echoes the hero's atmospheric backdrop */

  /* ── Gold ── */
  --gold-300: #F6D366;
  --gold-400: #F5C84B;
  --gold-500: #E9B838;
  --gold-600: #D9A92E;

  /* ── Accents ── */
  --blue-400:    #A56EFF;  /* mapped to purple — no blue in palette */
  --blue-500:    #7C3FD9;
  --error-400:   #FF5C7A;
  --success-400: #3DD68C;
  --purple-400:  #A56EFF;

  /* ── Neutral ── */
  --n-0:   #FFFFFF;
  --n-200: #A8AEC1;
  --n-300: #7A8094;
  --n-600: #221533;  /* was #262B3D (blue-gray) → purple-dark */
  --n-700: #1C1030;  /* was #1B1F2E (blue-gray) → matches --bg-card */
  --n-800: #120B24;  /* was #13162A (blue-navy) → deep purple */
  --n-900: #170c21;
  --n-950: #05070F;

  /* ── Gold Alpha ── */
  --gold-a4:  rgba(245, 200, 75, 0.04);
  --gold-a5:  rgba(245, 200, 75, 0.05);
  --gold-a6:  rgba(245, 200, 75, 0.06);
  --gold-a7:  rgba(245, 200, 75, 0.07);
  --gold-a8:  rgba(245, 200, 75, 0.08);
  --gold-a10: rgba(245, 200, 75, 0.10);
  --gold-a11: rgba(245, 200, 75, 0.11);
  --gold-a16: rgba(245, 200, 75, 0.16);
  --gold-a18: rgba(245, 200, 75, 0.18);
  --gold-a20: rgba(245, 200, 75, 0.20);
  --gold-a22: rgba(245, 200, 75, 0.22);
  --gold-a24: rgba(245, 200, 75, 0.24);
  --gold-a25: rgba(245, 200, 75, 0.25);
  --gold-a28: rgba(245, 200, 75, 0.28);
  --gold-a30: rgba(245, 200, 75, 0.30);
  --gold-a32: rgba(245, 200, 75, 0.32);
  --gold-a35: rgba(245, 200, 75, 0.35);
  --gold-a38: rgba(245, 200, 75, 0.38);
  --gold-a40: rgba(245, 200, 75, 0.40);
  --gold-a45: rgba(245, 200, 75, 0.45);

  /* ── White Alpha ── */
  --white-a4:  rgba(255, 255, 255, 0.04);
  --white-a6:  rgba(255, 255, 255, 0.06);
  --white-a8:  rgba(255, 255, 255, 0.08);
  --white-a9:  rgba(255, 255, 255, 0.09);
  --white-a11: rgba(255, 255, 255, 0.11);
  --white-a12: rgba(255, 255, 255, 0.12);
  --white-a16: rgba(255, 255, 255, 0.16);
  --white-a35: rgba(255, 255, 255, 0.35);
  --white-a55: rgba(255, 255, 255, 0.55);

  /* ── Purple Alpha (replaces blue alpha) ── */
  --blue-a8:  rgba(165, 110, 255, 0.08);
  --blue-a9:  rgba(165, 110, 255, 0.09);
  --blue-a25: rgba(165, 110, 255, 0.25);
  --blue-a30: rgba(165, 110, 255, 0.30);

  /* ── Purple Alpha ── */
  --purple-a6: rgba(165, 110, 255, 0.06);

  /* ── Success Alpha ── */
  --success-a12: rgba(61, 214, 140, 0.12);
  --success-a35: rgba(61, 214, 140, 0.35);
  --success-a40: rgba(61, 214, 140, 0.40);

  /* ── Black / Shadow Alpha ── */
  --black-a35: rgba(0, 0, 0, 0.35);
  --black-a45: rgba(0, 0, 0, 0.45);
  --black-a50: rgba(0, 0, 0, 0.50);
  --black-a65: rgba(0, 0, 0, 0.65);
  --black-a75: rgba(0, 0, 0, 0.75);

  /* ── Gradients ── */
  --grad-gold:      linear-gradient(135deg, var(--gold-300), var(--gold-600));
  --grad-gold-soft: linear-gradient(135deg, var(--gold-a20), var(--gold-a5));
  --grad-hero:      linear-gradient(180deg, var(--n-950) 0%, var(--bg-screen) 45%, var(--n-800) 100%);
  --grad-screen:    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2), var(--bg-grad-3));

  /* Avatar gradients */
  --grad-avatar-blue:  linear-gradient(135deg, #A56EFF, #6B2DB8);
  --grad-avatar-red:   linear-gradient(135deg, #FF5C7A, #A52840);
  --grad-avatar-green: linear-gradient(135deg, #3DD68C, #178052);

  /* ── Glows ── */
  --glow-gold:    0 0 48px var(--gold-a40), 0 0 96px var(--gold-a16);
  --glow-gold-sm: 0 0 20px var(--gold-a32);
  --glow-purple:  0 0 32px var(--blue-a30);

  /* ── Radius ── */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-2xl:  24px;
  --r-3xl:  32px;
  --r-pill: 9999px;

  --font: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

/* ═══════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font); background: var(--bg-screen); color: var(--n-0); scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; color: inherit; }

/* ═══════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════ */
.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ═══════════════════════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════════════════════ */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; }
.rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; }
.rv-d4 { transition-delay: .32s; }
.rv-d5 { transition-delay: .40s; }
.rv-d6 { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity:1; transform:none; transition:none; } }

/* ═══════════════════════════════════════════════════════
   SECTION TYPOGRAPHY
═══════════════════════════════════════════════════════ */
.sec-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: .6rem;
}
.sec-title {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .9rem;
}
.sec-sub {
  font-size: 1.05rem;
  color: var(--n-200);
  line-height: 1.75;
  max-width: 580px;
}
.sec-head { text-align: center; margin-bottom: 3.5rem; }
.sec-head .sec-sub { margin-inline: auto; }

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: .9rem 0;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.stuck {
  background: var(--bg-header-stuck);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--white-a8);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* Logo */
.logo { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.logo img { height: 32px; width: auto; }
/* Nav */
.nav { display: flex; align-items: center; gap: .1rem; }
.nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--n-200);
  padding: .45rem .8rem;
  border-radius: var(--r-pill);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--n-0); background: var(--white-a8); }
/* Header actions */
.header-actions { display: flex; align-items: center; gap: .65rem; }
.lang-btn {
  font-size: .82rem;
  font-weight: 600;
  color: var(--n-200);
  padding: .38rem .72rem;
  border: 1px solid var(--white-a12);
  border-radius: var(--r-pill);
  transition: all .2s;
}
.lang-btn:hover { color: var(--gold-400); border-color: var(--gold-a35); background: var(--gold-a8); }
.dl-btn {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-on-gold);
  background: var(--grad-gold);
  padding: .48rem 1.1rem;
  border-radius: var(--r-pill);
  box-shadow: 0 2px 16px var(--gold-a30);
  transition: all .2s;
}
.dl-btn:hover { transform: translateY(-1px); box-shadow: var(--glow-gold-sm); }
@media (max-width: 768px) { .nav { display: none; } }
@media (max-width: 500px) { .dl-btn { display: none; } }

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
}
/* Ambient glow */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 65%, var(--gold-a8) 0%, transparent 65%),
    radial-gradient(ellipse 40% 55% at 82% 25%, var(--blue-a9) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 50% 80%, var(--purple-a6) 0%, transparent 60%);
  pointer-events: none;
}
/* Starfield */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--white-a55) 1px, transparent 1px),
    radial-gradient(circle, var(--white-a35) 1px, transparent 1px),
    radial-gradient(circle, var(--gold-a45) 1px, transparent 1px);
  background-size: 280px 280px, 190px 190px, 370px 370px;
  background-position: 0 0, 90px 70px, 40px 130px;
  opacity: .22;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
/* ── Hero text ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .8rem .3rem .45rem;
  background: var(--gold-a10);
  border: 1px solid var(--gold-a22);
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold-300);
  margin-bottom: 1.4rem;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--gold-400);
  border-radius: 50%;
  animation: blink 2.2s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

.hero-logo { height: 68px; width: auto; margin-bottom: 1.4rem; }

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.1rem;
}
.hero-title .gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  color: var(--n-200);
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 460px;
}
/* CTAs */
.hero-cta { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }

/* Official store badges */
.store-badge-link {
  display: inline-block;
  transition: transform .25s, filter .25s;
  flex-shrink: 0;
}
.store-badge-link:hover { transform: translateY(-2px); filter: brightness(1.08); }
.store-badge {
  height: 52px;
  width: auto;
  display: block;
}

/* Web / browser button (kept as a styled button) */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .72rem 1.35rem;
  border-radius: var(--r-lg);
  font-weight: 700;
  font-size: .88rem;
  transition: all .25s;
  min-width: 154px;
}
.store-btn.dark {
  background: var(--white-a8);
  color: var(--n-0);
  border: 1px solid var(--white-a16);
}
.store-btn.dark:hover { background: var(--white-a12); transform: translateY(-2px); }
.store-btn-icon { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1; text-align: start; }
.store-btn-sub { font-size: .62rem; font-weight: 400; opacity: .7; margin-bottom: .08rem; }
.store-btn-main { font-size: .92rem; font-weight: 700; }
.web-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--n-300);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color .2s;
}
.web-link:hover { color: var(--gold-400); }

/* ── Hero visual ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Floating game objects */
.obj {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.obj-trophy  { width: 80px;  top: -20px;  inset-inline-end: 20px;   animation: float1 5s ease-in-out infinite; }
.obj-question{ width: 64px;  top: 40%;    inset-inline-start: -28px; animation: float2 6s ease-in-out infinite; }
.obj-ball    { width: 56px;  bottom: 40px;inset-inline-end: -20px;   animation: float3 4.5s ease-in-out infinite; }
.obj-cassette{ width: 70px;  bottom: 20px;inset-inline-start: 10px;  animation: float1 7s ease-in-out infinite 1s; }
.obj-clapper { width: 60px;  top: 20%;    inset-inline-end: -25px;   animation: float2 5.5s ease-in-out infinite .5s; }
@keyframes float1 { 0%,100%{transform:translateY(0)rotate(-4deg)} 50%{transform:translateY(-14px)rotate(4deg)} }
@keyframes float2 { 0%,100%{transform:translateY(0)rotate(6deg)} 50%{transform:translateY(-10px)rotate(-6deg)} }
@keyframes float3 { 0%,100%{transform:translateY(0)rotate(-8deg)} 50%{transform:translateY(-18px)rotate(8deg)} }

/* Phone frame */
.phone {
  width: 258px;
  height: 520px;
  background: var(--bg-phone);
  border-radius: 44px;
  border: 2.5px solid var(--white-a11);
  overflow: hidden;
  position: relative;
  box-shadow:
    0 48px 96px var(--black-a75),
    0 0 0 1px var(--white-a4),
    inset 0 0 24px var(--gold-a4);
}
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 24px;
  background: var(--bg-phone);
  border-radius: 0 0 16px 16px;
  z-index: 10;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--bg-screen);
  display: flex;
  flex-direction: column;
}

/* Game header inside phone */
.g-topbar {
  background: var(--bg-surface);
  padding: 28px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--white-a8);
}
.g-team { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.g-team-label { font-size: 7px; font-weight: 600; color: var(--n-300); letter-spacing: .04em; }
.g-score { font-size: 26px; font-weight: 900; line-height: 1; }
.g-score.red  { color: var(--error-400); }
.g-score.blue { color: var(--blue-400);  }
.g-timer {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold-a10);
  border: 2px solid var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: var(--gold-400);
  animation: tick 1s steps(1) infinite;
}
@keyframes tick { 0%{opacity:1} 50%{opacity:.6} }

/* Question area */
.g-body { flex: 1; padding: 12px 11px; display: flex; flex-direction: column; gap: 9px; }
.g-chip {
  align-self: center;
  padding: 3px 10px;
  background: var(--gold-a8);
  border: 1px solid var(--gold-a22);
  border-radius: var(--r-pill);
  font-size: 8px; font-weight: 700; color: var(--gold-400);
}
.g-qcard {
  background: var(--bg-card);
  border: 1px solid var(--white-a8);
  border-radius: var(--r-lg);
  padding: 12px;
  text-align: center;
}
.g-q { font-size: 10px; font-weight: 700; line-height: 1.55; color: var(--n-0); }
.g-answers { display: flex; flex-direction: column; gap: 6px; }
.g-ans {
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--white-a8);
  border-radius: var(--r-md);
  font-size: 9px; font-weight: 600;
  color: var(--n-200); text-align: center;
}
.g-ans.correct  { background: var(--success-a12); border-color: var(--success-a40); color: var(--success-400); }
.g-ans.selected { background: var(--gold-a16); border-color: var(--gold-400); color: var(--gold-400); }

/* Floating badge callouts */
.badge-callout {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--white-a12);
  border-radius: var(--r-2xl);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px var(--black-a50);
  backdrop-filter: blur(12px);
}
.bc-xp   { top: 70px;    inset-inline-start: -72px; color: var(--gold-400); }
.bc-plyr { bottom: 90px; inset-inline-end: -80px;   color: var(--n-200); }
.bc-tick { bottom: 190px;inset-inline-start: -78px; color: var(--success-400); }
.bc-icon { font-size: .95rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { margin-inline: auto; }
  .hero-sub  { margin-inline: auto; }
  .hero-cta  { justify-content: center; }
  .hero-visual { display: none; }
}

/* ═══════════════════════════════════════════════════════
   PROOF STRIP
═══════════════════════════════════════════════════════ */
.proof {
  background: var(--bg-surface);
  border-top: 1px solid var(--white-a8);
  border-bottom: 1px solid var(--white-a8);
  padding: 1.8rem 0;
}
.proof-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}
.proof-stat {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 1rem 1.8rem;
  position: relative;
}
.proof-stat + .proof-stat::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: var(--white-a8);
}
.proof-num {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: .3rem;
}
.proof-lbl { font-size: .82rem; color: var(--n-200); font-weight: 500; }

/* ═══════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════ */
.features { padding: 6rem 0; background: var(--bg-screen); }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .feat-grid { grid-template-columns: 1fr; } }

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--white-a8);
  border-radius: var(--r-2xl);
  padding: 1.65rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-gold-soft);
  opacity: 0;
  transition: opacity .3s;
}
.feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-a30);
  box-shadow: 0 16px 48px var(--black-a35), 0 0 32px var(--gold-a7);
}
.feat-card:hover::before { opacity: 1; }
.feat-icon {
  width: 50px; height: 50px;
  background: var(--gold-a8);
  border: 1px solid var(--gold-a18);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  position: relative;
}
.feat-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .45rem; position: relative; }
.feat-desc  { font-size: .87rem; color: var(--n-200); line-height: 1.68; position: relative; }

/* Wide card (span 2) */
.feat-card.wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.4rem;
}
.feat-card.wide .feat-icon { margin-bottom: 0; width: 60px; height: 60px; font-size: 1.75rem; }
@media (max-width: 900px) { .feat-card.wide { grid-column: span 2; } }
@media (max-width: 540px) { .feat-card.wide { grid-column: span 1; grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════════ */
.how {
  padding: 6rem 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
.how::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--gold-a6) 0%, transparent 65%);
  pointer-events: none;
}
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 34px;
  inset-inline-start: calc(100% / 6);
  inset-inline-end: calc(100% / 6);
  height: 2px;
  background: linear-gradient(to var(--text-dir, right), var(--gold-600), transparent);
  pointer-events: none;
}
@media (max-width: 680px) { .steps { grid-template-columns: 1fr; } .steps::before { display:none; } }
.step { text-align: center; }
.step-num {
  width: 68px; height: 68px;
  background: var(--grad-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem; font-weight: 900; color: var(--text-on-gold);
  margin: 0 auto 1.4rem;
  box-shadow: var(--glow-gold-sm);
}
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .55rem; }
.step-desc  { font-size: .88rem; color: var(--n-200); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════
   CATEGORIES
═══════════════════════════════════════════════════════ */
.categories { padding: 6rem 0; background: var(--bg-screen); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: repeat(2,1fr); } }

.cat-card {
  background: var(--bg-category);
  border: 1px solid var(--white-a8);
  border-radius: var(--r-2xl);
  padding: 1.45rem 1.2rem;
  text-align: center;
  transition: all .3s;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.cat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-a10) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
}
.cat-card:hover { transform: translateY(-4px) scale(1.02); border-color: var(--gold-a28); box-shadow: 0 14px 40px var(--black-a45), var(--glow-gold-sm); }
.cat-card:hover::after { opacity: 1; }
.cat-emoji { font-size: 2.6rem; margin-bottom: .8rem; display: block; }
.cat-name  { font-size: .9rem; font-weight: 700; margin-bottom: .3rem; }
.cat-count { font-size: .72rem; color: var(--n-300); }

/* ═══════════════════════════════════════════════════════
   SCREENSHOTS
═══════════════════════════════════════════════════════ */
.screenshots { padding: 6rem 0; background: var(--bg-surface); overflow: hidden; }
.scr-scroll {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding: 1rem 1.5rem 2.5rem;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.scr-scroll::-webkit-scrollbar { display: none; }
.scr-item { flex-shrink: 0; width: 215px; scroll-snap-align: start; }
.scr-phone {
  width: 100%;
  aspect-ratio: 9/19.5;
  background: var(--bg-card);
  border-radius: 36px;
  border: 2px solid var(--white-a9);
  overflow: hidden;
  box-shadow: 0 28px 64px var(--black-a65);
}
.scr-screen { width:100%; height:100%; display:flex; flex-direction:column; }
/* Screen variants */
.s-lobby {
  background: var(--grad-screen);
  padding: 22px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.s-logo-txt {
  text-align: center;
  font-size: 22px; font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.s-code-card {
  background: var(--bg-card);
  border: 1px solid var(--white-a8);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
}
.s-code-lbl { font-size: 7px; color: var(--n-300); margin-bottom: 3px; }
.s-code-val { font-size: 22px; font-weight: 900; color: var(--gold-400); letter-spacing: .1em; }
.s-players  { display: flex; flex-direction: column; gap: 5px; }
.s-player   { background: var(--bg-card); border-radius: 9px; padding: 5px 9px; display:flex; align-items:center; gap:7px; }
.s-avatar   { width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:700; color:var(--text-on-gold); background:var(--grad-gold); flex-shrink:0; }
.s-pname    { font-size: 8.5px; font-weight: 600; }
/* Results screen */
.s-results {
  background: var(--grad-screen);
  padding: 22px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.s-trophy   { width:52px; height:52px; background:var(--grad-gold); border-radius:50%; display:flex;align-items:center;justify-content:center; font-size:22px; box-shadow:var(--glow-gold-sm); }
.s-win-tag  { font-size: 9px; font-weight: 700; color: var(--gold-400); }
.s-win-name { font-size: 15px; font-weight: 900; }
.s-scores   { width: 100%; display: flex; gap: 7px; }
.s-sbox     { flex:1; background:var(--bg-card); border-radius:10px; padding:7px; text-align:center; }
.s-sval     { font-size: 19px; font-weight: 900; }
.s-sval.r   { color: var(--error-400); }
.s-sval.b   { color: var(--blue-400); }
.s-slbl     { font-size: 6.5px; color: var(--n-300); }
.s-xp-box   { width:100%; background:var(--gold-a8); border:1px solid var(--gold-a20); border-radius:10px; padding:7px; text-align:center; }
.s-xp-lbl   { font-size: 7px; color: var(--n-300); margin-bottom:2px; }
.s-xp-val   { font-size: 17px; font-weight: 900; color: var(--gold-400); }
/* Category pick screen */
.s-cats { background: var(--grad-screen); padding: 18px 11px; display:flex; flex-direction:column; gap:8px; }
.s-cats-title { font-size: 9.5px; font-weight: 700; text-align: center; }
.s-cats-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.s-ctile      { background: var(--bg-category); border: 1px solid var(--white-a8); border-radius: 10px; padding: 7px; text-align: center; font-size: 15px; }
.s-ctile-name { font-size: 6.5px; font-weight: 600; color: var(--n-200); margin-top: 2px; }
.s-ctile.sel  { border-color: var(--gold-a40); background: var(--gold-a8); }
.s-ctile.sel .s-ctile-name { color: var(--gold-400); }
/* Screenshot label */
.scr-lbl { text-align: center; margin-top: .9rem; font-size: .75rem; font-weight: 600; color: var(--n-300); }

/* ═══════════════════════════════════════════════════════
   PROGRESSION
═══════════════════════════════════════════════════════ */
.progression { padding: 6rem 0; background: var(--bg-screen); }
.prog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 820px) { .prog-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.prog-points { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.4rem; }
.prog-point  { display: flex; align-items: center; gap: .7rem; font-size: .88rem; color: var(--n-200); }
.prog-point-dot { color: var(--gold-400); font-size: 1rem; flex-shrink: 0; }

.xp-card {
  background: var(--bg-card);
  border: 1px solid var(--white-a8);
  border-radius: var(--r-3xl);
  padding: 1.8rem;
}
.xp-level-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.xp-lvl-badge {
  width: 62px; height: 62px;
  background: var(--grad-gold);
  border-radius: var(--r-2xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; color: var(--text-on-gold);
  flex-shrink: 0;
  box-shadow: var(--glow-gold-sm);
}
.xp-lvl-sub  { font-size: .75rem; font-weight: 600; color: var(--gold-400); margin-bottom: .2rem; }
.xp-lvl-name { font-size: 1.2rem; font-weight: 800; }
.xp-bar-hd   { display: flex; justify-content: space-between; font-size: .75rem; color: var(--n-300); margin-bottom: .45rem; }
.xp-track    { height: 10px; background: var(--white-a8); border-radius: var(--r-pill); overflow: hidden; margin-bottom: 1.4rem; }
.xp-fill     { height: 100%; width: 0; background: var(--grad-gold); border-radius: var(--r-pill); box-shadow: var(--glow-gold-sm); transition: width 1.6s cubic-bezier(.25,.46,.45,.94); }
.badges-row  { display: flex; gap: .6rem; flex-wrap: wrap; }
.badge-chip  {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem;
  background: var(--gold-a8);
  border: 1px solid var(--gold-a18);
  border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 600; color: var(--gold-300);
}
.badge-chip.on  { background: var(--gold-a16); border-color: var(--gold-a38); }
.badge-chip.off { opacity: .35; filter: grayscale(1); }

/* Level titles carousel */
.tiers-showcase {
  padding: 4rem 0;
  background: var(--bg-sheet);
  border-top: 1px solid var(--white-a8);
  border-bottom: 1px solid var(--white-a8);
  overflow: hidden;
}
.tiers-marquee {
  display: flex;
  gap: .75rem;
  animation: marquee 28s linear infinite;
  width: max-content;
}
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.tiers-marquee:hover { animation-play-state: paused; }
.tier-pill {
  flex-shrink: 0;
  padding: .4rem .9rem;
  background: var(--bg-card);
  border: 1px solid var(--white-a8);
  border-radius: var(--r-pill);
  font-size: .82rem;
  font-weight: 600;
  color: var(--n-200);
  white-space: nowrap;
}
.tier-pill:nth-child(4n+1) { color: var(--gold-400); border-color: var(--gold-a25); background: var(--gold-a8); }
.tier-pill:nth-child(4n+3) { color: var(--blue-400); border-color: var(--blue-a25); background: var(--blue-a8); }

/* ═══════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════ */
.faq { padding: 6rem 0; background: var(--bg-surface); }
.faq-list { max-width: 700px; margin-inline: auto; display: flex; flex-direction: column; gap: .7rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--white-a8);
  border-radius: var(--r-2xl);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--gold-a30); }
.faq-q {
  padding: 1.2rem 1.45rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer;
  font-size: .97rem; font-weight: 600;
  user-select: none;
  transition: color .2s;
}
.faq-item.open .faq-q { color: var(--gold-400); }
.faq-chevron {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold-a8);
  border: 1px solid var(--gold-a20);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; flex-shrink: 0;
  transition: transform .3s, background .2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--gold-a16); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .38s ease; }
.faq-item.open .faq-body { max-height: 320px; }
.faq-body-inner { padding: 0 1.45rem 1.2rem; font-size: .875rem; color: var(--n-200); line-height: 1.75; }

/* ═══════════════════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════════════════ */
.cta-band {
  padding: 6rem 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, var(--gold-a11) 0%, transparent 70%),
    var(--bg-screen);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-500), transparent);
}
.cta-band::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-600), transparent);
}
.cta-title { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 900; margin-bottom: .9rem; }
.cta-sub   { font-size: 1.05rem; color: var(--n-200); margin-bottom: 2.4rem; max-width: 480px; margin-inline: auto; }
.cta-btns  { display: flex; align-items: center; justify-content: center; gap: .85rem; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--white-a8);
  padding: 3rem 0 2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p { font-size: .84rem; color: var(--n-300); line-height: 1.65; margin-top: .7rem; max-width: 250px; }
.foot-col h4  { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--n-300); margin-bottom: .9rem; }
.foot-col a   { display: block; font-size: .84rem; color: var(--n-200); margin-bottom: .55rem; transition: color .2s; }
.foot-col a:hover { color: var(--gold-400); }
.foot-bottom  { padding-top: 1.5rem; border-top: 1px solid var(--white-a8); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-copy    { font-size: .78rem; color: var(--n-300); }
.foot-social  { display: flex; gap: .6rem; }
.social-a {
  width: 34px; height: 34px;
  background: var(--white-a6);
  border: 1px solid var(--white-a8);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: all .2s;
}
.social-a:hover { background: var(--gold-a8); border-color: var(--gold-a28); color: var(--gold-400); }

/* ═══════════════════════════════════════════════════════
   SECTION BACKGROUNDS (alternating)
═══════════════════════════════════════════════════════ */
section { position: relative; }

/* ═══════════════════════════════════════════════════════
   LEGAL PAGES (Privacy Policy / Terms of Use)
═══════════════════════════════════════════════════════ */
.legal-hero {
  background: var(--grad-hero);
  padding: 6.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 20% 20%, var(--gold-a8) 0%, transparent 65%);
  pointer-events: none;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--n-300);
  margin-bottom: 1.4rem;
  transition: color .2s;
  position: relative;
  z-index: 1;
}
.legal-back:hover { color: var(--gold-400); }
.legal-hero .sec-eyebrow,
.legal-hero .sec-title,
.legal-hero .legal-updated { position: relative; z-index: 1; }
.legal-hero .sec-title { margin-bottom: .5rem; }
.legal-updated { font-size: .82rem; color: var(--n-300); }

.legal-page { padding: 3.5rem 0 6rem; }
.legal-content { max-width: 740px; }
.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--n-0);
  margin: 2.4rem 0 .9rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: .95rem;
  line-height: 1.9;
  color: var(--n-200);
  margin-bottom: 1rem;
}
.legal-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin: 0 0 1.2rem;
  padding-inline-start: 1.1rem;
}
.legal-content li {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--n-200);
  position: relative;
  padding-inline-start: .9rem;
}
.legal-content li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: .65em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-400);
}
.legal-content strong { color: var(--n-0); font-weight: 700; }
.legal-content a.inline-link { color: var(--gold-400); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   DELETE ACCOUNT
═══════════════════════════════════════════════════════ */
.delete-account-content { max-width: 760px; }
.delete-request-card {
  display: grid;
  gap: 1.1rem;
  background:
    linear-gradient(135deg, var(--gold-a10), var(--white-a4)),
    var(--bg-card);
  border: 1px solid var(--gold-a20);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  margin: 1.8rem 0 2.2rem;
  box-shadow: 0 18px 45px var(--black-a35);
}
.delete-request-card label {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--n-0);
  margin-bottom: .6rem;
}
.delete-request-card input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--white-a12);
  border-radius: var(--r-md);
  background: var(--black-a35);
  color: var(--n-0);
  font: inherit;
  font-size: 1rem;
  padding: .75rem 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.delete-request-card input::placeholder { color: var(--n-300); }
.delete-request-card input:focus {
  border-color: var(--gold-a45);
  background: var(--black-a45);
  box-shadow: 0 0 0 4px var(--gold-a10);
}
.field-help {
  font-size: .82rem !important;
  line-height: 1.65 !important;
  color: var(--n-300) !important;
  margin: .55rem 0 0 !important;
}
.delete-submit {
  justify-self: start;
  min-height: 48px;
  color: var(--text-on-gold);
  background: var(--grad-gold);
  border-radius: var(--r-pill);
  padding: .75rem 1.25rem;
  font-size: .92rem;
  font-weight: 800;
  box-shadow: 0 2px 18px var(--gold-a25);
  transition: transform .2s, box-shadow .2s;
}
.delete-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-gold-sm);
}
.delete-note {
  border-top: 1px solid var(--white-a8);
  border-bottom: 1px solid var(--white-a8);
  padding: .2rem 0 .8rem;
  margin-bottom: 1.4rem;
}
html[dir="ltr"] .delete-submit { justify-self: start; }
@media (max-width: 520px) {
  .delete-request-card { padding: 1rem; }
  .delete-submit { width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   TV MODE SCREEN — utility classes
═══════════════════════════════════════════════════════ */
.tv-connected {
  background: var(--success-a12);
  border: 1px solid var(--success-a35);
  border-radius: 10px;
  padding: 7px;
  text-align: center;
  font-size: 8px;
  font-weight: 600;
  color: var(--success-400);
}
.tv-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.tv-url-card {
  background: var(--bg-card);
  border: 1px solid var(--white-a8);
  border-radius: 14px;
  padding: 10px;
  width: 100%;
  text-align: center;
}
.tv-url-hint { font-size: 7px; color: var(--n-300); margin-bottom: 3px; }
.tv-url-val  { font-size: 9.5px; font-weight: 700; color: var(--n-0); }
.tv-remote-note {
  background: var(--bg-card);
  border: 1px solid var(--white-a8);
  border-radius: 10px;
  padding: 7px;
  text-align: center;
  font-size: 8px;
  color: var(--n-200);
}
