/* ==========================================================================
   Mind Rivals — Landing Page
   Design tokens transcribed from the approved Candy Arena canvas
   (Landing.dc.html / Landing Spec.dc.html). Edit tokens here, not per-rule.
   ========================================================================== */

@font-face {
  font-family: 'Baloo 2';
  src: url('assets/fonts/Baloo2-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('assets/fonts/Outfit-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* color */
  --bg-base: #070C22;
  --bg-panel: #131C46;
  --bg-panel-2: #0C1332;
  --bg-glow: #22326F;

  --cta-gold-start: #FFD86B;
  --cta-gold-end: #FFAE18;
  --cta-gold-edge: #C57F04;
  --cta-gold-ink: #3A2600;

  --accent-teal: #35D6C4;
  --accent-teal-ink: #04231F;
  --accent-rival: #E0245A;
  --accent-rival-text: #F2789C;
  --accent-rival-soft: #FBD3DF;

  --text-primary: #EDEFFA;
  --text-body: #A9B4E2;
  --text-meta: #7A8ED6;
  --text-meta-2: #8E9BCE;
  --text-strong: #DCE3FA;

  --card-back-start: #4C74F0;
  --card-back-end: #2C48C0;
  --card-face-start: #FFFFFF;
  --card-face-end: #DDE5FA;

  --hud-you-bg: #3A4A93;
  --hud-you-bg-2: #28356E;
  --hud-rival-bg: #6A2545;
  --hud-rival-bg-2: #48173B;
  --owned-you-bg: #2A3A78;
  --owned-you-bg-2: #1B2757;
  --owned-rival-bg: #3A2A6E;
  --owned-rival-bg-2: #251A4C;
  --owned-rival-face-start: #9A6BF2;
  --owned-rival-face-end: #6B3FD4;

  --stroke-hairline: rgba(122,142,214,.18);
  --stroke-hairline-strong: rgba(122,142,214,.3);

  /* type */
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Outfit', system-ui, sans-serif;

  /* radii */
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl: 22px;
  --r-3xl: 30px;
  --r-4xl: 38px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg-base);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--cta-gold-end); text-decoration: none; }
a:hover { color: var(--cta-gold-start); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; color: #fff; margin: 0; }

.accent-gold { color: var(--cta-gold-end); }

img { max-width: 100%; }

/* -------------------------------------------------------------------------
   Accessibility helpers
   ------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--cta-gold-end);
  color: var(--cta-gold-ink);
  font-family: var(--font-display);
  font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 12px;
  color: var(--cta-gold-ink);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.store-button:focus-visible {
  outline: 2.5px solid var(--accent-teal);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* -------------------------------------------------------------------------
   Keyframes
   ------------------------------------------------------------------------- */

@keyframes mrBreathe {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes mrPulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

/* -------------------------------------------------------------------------
   Nav
   ------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid var(--stroke-hairline);
  background: rgba(7,12,34,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand, .footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #4FE3CE, #189E92);
  box-shadow: 0 3px 0 rgba(7,12,34,.7), inset 0 1px 0 rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand-mark--sm { width: 26px; height: 26px; border-radius: var(--r-sm); box-shadow: none; }
.brand-mark-diamond {
  width: 14px; height: 14px; border-radius: 3px;
  background: #07132B; transform: rotate(45deg);
}
.brand-mark--sm .brand-mark-diamond { width: 10px; height: 10px; border-radius: 2px; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-title {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  letter-spacing: .6px; color: #fff;
}
.brand-title--sm { font-size: 15px; letter-spacing: .4px; }
.brand-tagline {
  font-weight: 700; font-size: 8.5px; letter-spacing: 2.6px; color: var(--text-meta);
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-link { font-size: 14px; font-weight: 600; color: #B9C2E8; letter-spacing: .2px; }
.nav-link:hover { color: #fff; }

.nav-cta, .btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  text-align: center;
  transition: filter .15s ease, background .15s ease;
}

.nav-cta {
  padding: 11px 20px 13px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--cta-gold-start), var(--cta-gold-end));
  color: var(--cta-gold-ink);
  font-size: 14.5px;
  letter-spacing: .4px;
  box-shadow: 0 4px 0 var(--cta-gold-edge), 0 0 24px rgba(255,174,24,.28);
  min-height: 44px;
}
.nav-cta:hover { filter: brightness(1.06); color: var(--cta-gold-ink); }

/* language selector */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-lg);
  background: rgba(34,50,111,.4);
  border: 1px solid var(--stroke-hairline-strong);
  flex: none;
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-meta);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .5px;
  padding: 8px 12px;
  min-height: 38px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-btn:hover { color: var(--text-strong); }
.lang-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--cta-gold-start), var(--cta-gold-end));
  color: var(--cta-gold-ink);
  box-shadow: 0 2px 0 var(--cta-gold-edge);
}
.lang-btn[aria-pressed="true"]:hover { color: var(--cta-gold-ink); }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(34px, 5vw, 68px) clamp(18px, 4vw, 40px) clamp(40px, 5vw, 72px);
}

.hero-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(110% 70% at 50% -14%, #22326F 0%, #131C46 44%, #070C22 100%);
  pointer-events: none;
}
.hero-dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1.1px, transparent 1.2px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.hero-copy {
  flex: 1 1 380px;
  min-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2.6px;
  margin: 0;
  text-transform: uppercase;
}
.eyebrow--teal { color: var(--accent-teal); }
.eyebrow--gold { color: var(--cta-gold-end); }

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
  animation: mrPulse 2.4s ease-in-out infinite;
  flex: none;
}

.hero-title {
  font-size: clamp(35px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -.5px;
  text-wrap: balance;
}

.hero-sub {
  margin: 0;
  font-size: clamp(15.5px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-body);
  max-width: 30ch;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.btn--primary {
  padding: 16px 30px 19px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--cta-gold-start), var(--cta-gold-end));
  color: var(--cta-gold-ink);
  font-size: 18px;
  letter-spacing: .5px;
  box-shadow: 0 6px 0 var(--cta-gold-edge), 0 0 34px rgba(255,174,24,.32);
  min-height: 44px;
}
.btn--primary:hover { filter: brightness(1.06); color: var(--cta-gold-ink); }

.btn--ghost {
  padding: 16px 26px 19px;
  border-radius: var(--r-xl);
  background: rgba(34,50,111,.55);
  border: 1px solid var(--stroke-hairline-strong);
  color: var(--text-strong);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .3px;
  box-shadow: 0 6px 0 rgba(7,12,34,.6);
  min-height: 44px;
}
.btn--ghost:hover { background: rgba(34,50,111,.85); color: var(--text-strong); }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-meta);
  letter-spacing: .4px;
  margin: 0;
}
.dot-sep { opacity: .5; }

.hero-visual { flex: 1 1 340px; min-width: 280px; display: flex; justify-content: center; }
.hero-visual-frame { position: relative; width: 100%; max-width: 352px; }

.hero-glow {
  position: absolute;
  left: 50%; top: 12%;
  width: 118%; height: 70%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,214,196,.16) 0%, rgba(53,214,196,0) 68%);
  animation: mrBreathe 6s ease-in-out infinite;
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   Phone frame (shared component: hero board + showcase screens)
   ------------------------------------------------------------------------- */

.phone-frame {
  position: relative;
  border-radius: var(--r-4xl);
  padding: 14px;
  background: linear-gradient(180deg, #0E1533, #080D22);
  box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 0 1px var(--stroke-hairline-strong), inset 0 1px 0 rgba(255,255,255,.06);
}
.phone-frame--tall { padding: 10px; border-radius: var(--r-4xl); box-shadow: 0 24px 54px rgba(0,0,0,.55), 0 0 0 1px rgba(122,142,214,.16); }

.phone-bezel {
  border-radius: 26px;
  overflow: hidden;
  background: radial-gradient(120% 60% at 50% 0%, #1B2757 0%, #0E1739 55%, #080E24 100%);
}
.phone-frame--tall .phone-bezel { border-radius: 24px; aspect-ratio: 9 / 17.5; }

.phone-screen {
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  height: 100%;
}

/* HUD (hero) */

.duel-hud { display: flex; align-items: center; gap: 8px; }
.duel-hud--sm { gap: 6px; }

.hud-panel {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-lg);
}
.hud-panel--you {
  background: rgba(34,50,111,.5);
  border: 1.5px solid var(--cta-gold-end);
  box-shadow: 0 0 18px rgba(255,174,24,.22);
}
.hud-panel--rival {
  background: rgba(224,36,90,.1);
  border: 1.5px solid rgba(224,36,90,.55);
}

.hud-avatar {
  width: 26px; height: 26px; border-radius: 9px; flex: none;
}
.hud-avatar--you {
  background: linear-gradient(180deg, var(--hud-you-bg), var(--hud-you-bg-2));
  border: 1px solid rgba(255,255,255,.18);
}
.hud-avatar--rival {
  background: linear-gradient(180deg, var(--hud-rival-bg), var(--hud-rival-bg-2));
  border: 1px solid rgba(224,36,90,.4);
}

.hud-info { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.hud-info--right { margin-left: auto; align-items: flex-end; }
.hud-name { font-size: 11.5px; font-weight: 800; color: #fff; letter-spacing: .3px; }
.hud-name--rival { color: var(--accent-rival-soft); }

.hud-pips { display: flex; gap: 3px; }
.pip { width: 6px; height: 6px; border-radius: 50%; background: var(--stroke-hairline-strong); }
.pip--you { background: var(--cta-gold-end); }
.pip--rival { background: var(--accent-rival); }
.pip--off { background: var(--stroke-hairline-strong); }

.hud-score { margin-left: auto; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff; line-height: 1; }
.hud-score--rival { margin-left: 0; color: var(--accent-rival-text); }

.hud-vs { font-size: 10px; font-weight: 800; color: var(--text-meta); letter-spacing: 1.2px; flex: none; }

/* small strip HUD (gameplay showcase) */
.hud-strip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 11px;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
}
.hud-strip--you { background: rgba(34,50,111,.5); border: 1px solid var(--stroke-hairline-strong); }
.hud-strip--rival { background: rgba(224,36,90,.1); border: 1px solid rgba(224,36,90,.5); color: var(--accent-rival-soft); }
.hud-strip-dot { width: 8px; height: 8px; border-radius: 3px; }
.hud-strip-dot--you { background: var(--text-meta); }
.hud-strip-dot--rival { background: var(--accent-rival); }
.hud-strip-score { font-family: var(--font-display); font-size: 14px; color: #fff; }
.hud-strip-score--rival { color: var(--accent-rival-text); }
.hud-strip-vs { font-size: 8px; font-weight: 800; color: var(--text-meta); }

/* turn indicator */

.turn-row { display: flex; justify-content: center; }
.turn-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}
.turn-badge--you { background: rgba(255,174,24,.12); border: 1px solid rgba(255,174,24,.5); color: var(--cta-gold-start); align-self: center; }
.turn-badge--rival {
  align-self: center;
  padding: 5px 12px 6px;
  background: rgba(224,36,90,.12);
  border: 1px solid rgba(224,36,90,.5);
  color: var(--accent-rival-text);
  font-size: 8.5px;
  letter-spacing: 1.8px;
}
.turn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cta-gold-end); animation: mrPulse 1.8s ease-in-out infinite; }

/* board */

.game-board {
  padding: 10px;
  border-radius: var(--r-xl);
  background: rgba(9,15,38,.6);
  border: 1.5px solid rgba(255,174,24,.35);
  box-shadow: 0 0 22px rgba(255,174,24,.1) inset;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.game-board--rival-turn { border-color: rgba(224,36,90,.4); box-shadow: none; }
.game-board--sm { padding: 8px; border-radius: 15px; gap: 6px; }

.cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-board--sm .cell { border-radius: 9px; }

.cell--back {
  background: linear-gradient(180deg, var(--card-back-start), var(--card-back-end));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 3px 0 rgba(7,12,34,.65);
}
.cell--back::before {
  content: '';
  width: 14px; height: 14px; border-radius: 4px;
  background: rgba(255,255,255,.2);
  transform: rotate(45deg);
}
.game-board--sm .cell--back { box-shadow: none; border: 1px solid rgba(255,255,255,.1); }
.game-board--sm .cell--back::before { display: none; }

.cell--face-teal {
  background: linear-gradient(180deg, var(--card-face-start), var(--card-face-end));
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 3px 0 rgba(0,0,0,.35), 0 0 18px rgba(53,214,196,.3);
}
.cell--face-teal::before {
  content: '';
  width: 24px; height: 24px; border-radius: 8px;
  background: linear-gradient(180deg, #5AE7D2, #1FAE9E);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.game-board--sm .cell--face-teal { border: 1px solid rgba(255,255,255,.1); box-shadow: none; background: linear-gradient(180deg, #3F60C8, #263C9C); }
.game-board--sm .cell--face-teal::before { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(180deg, #5AE7D2, #1FAE9E); box-shadow: none; }

.cell--face-gold {
  background: linear-gradient(180deg, var(--owned-you-bg), var(--owned-you-bg-2));
  border: 1px solid rgba(255,174,24,.35);
}
.cell--face-gold::before {
  content: '';
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(180deg, var(--cta-gold-start), #F0A011);
}
.game-board--sm .cell--face-gold { background: linear-gradient(180deg, #3F60C8, #263C9C); border: 1px solid rgba(255,255,255,.1); }
.game-board--sm .cell--face-gold::before { width: 14px; height: 14px; border-radius: 5px; }

.cell--face-purple {
  background: linear-gradient(180deg, var(--owned-rival-bg), var(--owned-rival-bg-2));
  border: 1px solid rgba(224,36,90,.4);
}
.cell--face-purple::before {
  content: '';
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(180deg, var(--owned-rival-face-start), var(--owned-rival-face-end));
}
.game-board--sm .cell--face-purple::before { width: 14px; height: 14px; border-radius: 5px; }

.cell--checked::after {
  content: '✓';
  position: absolute;
  top: -6px; right: -6px;
  width: 19px; height: 19px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 0 rgba(0,0,0,.3);
}
.cell--checked-teal::after { background: var(--accent-teal); color: var(--accent-teal-ink); }
.cell--checked-gold::after { top: -5px; right: -5px; width: 17px; height: 17px; font-size: 10px; background: var(--cta-gold-end); color: var(--cta-gold-ink); box-shadow: none; }
.cell--checked-rival::after { top: -5px; right: -5px; width: 17px; height: 17px; font-size: 10px; background: var(--accent-rival); color: #fff; box-shadow: none; }
.cell--sm-check::after { top: -5px; right: -5px; width: 15px; height: 15px; font-size: 9px; }

/* pair tracker */

.pair-tracker {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-lg);
  background: rgba(34,50,111,.4);
  border: 1px solid var(--stroke-hairline);
}
.pair-tracker--sm { padding: 8px 10px; border-radius: 12px; }
.pair-tracker-text { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.pair-tracker-label { font-size: 9px; font-weight: 800; letter-spacing: 1.6px; color: var(--text-meta); }
.pair-tracker-value { font-size: 13px; font-weight: 800; color: #fff; }
.pair-tracker--sm .pair-tracker-label { font-size: 8px; }
.pair-tracker--sm .pair-tracker-value { font-size: 11px; }
.pair-tracker-pips { margin-left: auto; display: flex; gap: 4px; }
.pair-tracker-pips .pip { width: 8px; height: 8px; }
.pair-tracker--sm .pair-tracker-pips .pip { width: 6px; height: 6px; }

/* -------------------------------------------------------------------------
   How it works
   ------------------------------------------------------------------------- */

.how-it-works {
  padding: clamp(38px, 5vw, 72px) clamp(18px, 4vw, 40px);
  border-top: 1px solid var(--stroke-hairline);
}

.section-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 36px);
}

.section-heading { display: flex; flex-direction: column; gap: 8px; }
.section-title { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.feature-card {
  padding: 22px;
  border-radius: var(--r-2xl);
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--stroke-hairline);
  box-shadow: 0 8px 0 rgba(7,12,34,.55);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-visual {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--r-lg);
  background: rgba(7,12,34,.5);
  border: 1px solid var(--stroke-hairline);
}

.mini-card { width: 52px; height: 62px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; }
.mini-card--back {
  background: linear-gradient(180deg, var(--card-back-start), var(--card-back-end));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 4px 0 rgba(7,12,34,.7);
}
.mini-card--back::before { content: ''; width: 16px; height: 16px; border-radius: 5px; background: rgba(255,255,255,.2); transform: rotate(45deg); }
.mini-card--glow {
  position: relative;
  background: linear-gradient(180deg, var(--card-face-start), var(--card-face-end));
  border: 2px solid var(--accent-teal);
  box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 20px rgba(53,214,196,.35);
}
.mini-card--glow::before { content: ''; width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(180deg, #5AE7D2, #1FAE9E); }

.feature-visual--vs { gap: 12px; }
.mini-vs-side { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mini-avatar { width: 40px; height: 40px; border-radius: 13px; }
.mini-avatar--you { background: linear-gradient(180deg, var(--hud-you-bg), var(--hud-you-bg-2)); border: 2px solid var(--cta-gold-end); box-shadow: 0 0 16px rgba(255,174,24,.3); }
.mini-avatar--rival { background: linear-gradient(180deg, var(--hud-rival-bg), var(--hud-rival-bg-2)); border: 2px solid var(--accent-rival); box-shadow: 0 0 16px rgba(224,36,90,.3); }
.mini-vs-score { font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1; color: #fff; }
.mini-vs-score--rival { color: var(--accent-rival-text); }
.mini-vs-label { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; color: var(--text-meta); }

.feature-visual--league { flex-direction: column; justify-content: center; gap: 11px; padding: 0 18px; }
.league-row { display: flex; align-items: center; gap: 8px; }
.league-chip { padding: 4px 10px 5px; border-radius: 999px; border: 1px solid var(--accent-teal); font-size: 10px; font-weight: 800; letter-spacing: 1.6px; color: var(--accent-teal); }
.league-delta { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--accent-teal); }
.league-bar { display: block; width: 100%; height: 9px; border-radius: 999px; background: rgba(7,12,34,.9); border: 1px solid var(--stroke-hairline); overflow: hidden; }
.league-bar-fill { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, var(--accent-teal), #3E6BF0); }
.league-bar-fill--tall { width: 74%; }

.feature-title { font-size: 22px; }
.feature-body { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-body); text-wrap: pretty; }

/* -------------------------------------------------------------------------
   App showcase
   ------------------------------------------------------------------------- */

.showcase {
  position: relative;
  padding: clamp(38px, 5vw, 72px) clamp(18px, 4vw, 40px);
  border-top: 1px solid var(--stroke-hairline);
  background: linear-gradient(180deg, #080E26, #070C22);
}
.showcase-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(34,50,111,.55), transparent 70%);
  pointer-events: none;
}

.showcase-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 32px);
  justify-content: center;
  align-items: flex-start;
}

.showcase-item {
  flex: 1 1 240px;
  max-width: 300px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-caption { display: flex; flex-direction: column; gap: 4px; }
.showcase-title { font-size: 16px; font-weight: 700; }
.showcase-desc { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-meta-2); }

.phone-screen--matchmaking,
.phone-screen--gameplay,
.phone-screen--result {
  padding: 20px 16px;
  align-items: center;
  gap: 12px;
}
.phone-screen--gameplay { padding: 14px 12px; align-items: stretch; gap: 10px; }
.phone-screen--result { padding: 20px 14px 16px; }

.showcase-eyebrow { margin: 0; font-size: 9.5px; font-weight: 800; letter-spacing: 2.4px; color: var(--accent-teal); }
.showcase-footnote { margin: 0; font-size: 8.5px; font-weight: 800; letter-spacing: 2.2px; color: var(--text-meta); }

.vs-block { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.vs-block--top { margin-top: auto; }
.vs-block--bottom { margin-bottom: auto; }
.vs-avatar { width: 64px; height: 64px; border-radius: 20px; }
.vs-avatar--you { background: linear-gradient(180deg, var(--hud-you-bg), var(--hud-you-bg-2)); border: 2.5px solid var(--cta-gold-end); box-shadow: 0 0 26px rgba(255,174,24,.35); }
.vs-avatar--rival { background: linear-gradient(180deg, var(--hud-rival-bg), var(--hud-rival-bg-2)); border: 2.5px solid var(--accent-rival); box-shadow: 0 0 26px rgba(224,36,90,.35); }
.vs-name { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #fff; line-height: 1; }
.vs-rank { padding: 3px 9px 4px; border-radius: 999px; font-size: 8.5px; font-weight: 800; letter-spacing: 1.4px; }
.vs-rank--you { border: 1px solid rgba(53,214,196,.6); color: var(--accent-teal); }
.vs-rank--rival { border: 1px solid rgba(224,36,90,.6); color: var(--accent-rival-text); }
.vs-big { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #fff; text-shadow: 0 0 22px rgba(122,142,214,.7); line-height: 1; margin: 2px 0; }
.vs-progress { display: block; width: 100%; height: 5px; border-radius: 999px; background: rgba(7,12,34,.8); overflow: hidden; }
.vs-progress-fill { display: block; width: 62%; height: 100%; background: linear-gradient(90deg, var(--cta-gold-end), var(--accent-rival)); }

.result-headline { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1; color: var(--cta-gold-end); text-shadow: 0 4px 0 rgba(7,12,34,.7); }
.result-score-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px; border-radius: var(--r-xl);
  background: rgba(34,50,111,.42); border: 1px solid var(--stroke-hairline);
}
.result-side { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; color: #fff; }
.result-avatar { width: 42px; height: 42px; border-radius: 14px; }
.result-avatar--you { background: linear-gradient(180deg, var(--hud-you-bg), var(--hud-you-bg-2)); border: 2px solid var(--cta-gold-end); }
.result-avatar--rival { background: linear-gradient(180deg, var(--hud-rival-bg), var(--hud-rival-bg-2)); border: 2px solid var(--accent-rival); }
.result-score { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; color: #fff; }
.result-score-sep { color: var(--text-meta); }
.result-score-rival { color: var(--accent-rival-text); }

.result-trophy-panel {
  width: 100%; display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border-radius: var(--r-xl);
  background: rgba(34,50,111,.42); border: 1px solid var(--stroke-hairline);
}
.result-trophy-row { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; color: var(--text-strong); }
.trophy-icon { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(180deg, var(--cta-gold-start), #F0A011); }
.result-trophy-delta { margin-left: auto; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--accent-teal); }
.result-league-row { display: flex; align-items: center; justify-content: space-between; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; color: var(--text-meta); }

.result-rematch {
  margin-top: auto;
  width: 100%;
  padding: 12px 0 14px;
  border-radius: 15px;
  background: linear-gradient(180deg, var(--cta-gold-start), var(--cta-gold-end));
  box-shadow: 0 4px 0 var(--cta-gold-edge);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--cta-gold-ink);
  letter-spacing: .4px;
}

/* -------------------------------------------------------------------------
   Closing CTA
   ------------------------------------------------------------------------- */

.cta-section { padding: clamp(38px, 5vw, 72px) clamp(18px, 4vw, 40px); }

.cta-panel {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--r-3xl);
  padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 48px);
  background: radial-gradient(120% 120% at 50% 0%, var(--bg-glow) 0%, var(--bg-panel) 55%, #0B1230 100%);
  border: 1px solid var(--stroke-hairline-strong);
  box-shadow: 0 26px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta-panel-dotgrid {
  position: absolute; inset: 0;
  border-radius: var(--r-3xl);
  background-image: radial-gradient(rgba(255,255,255,.05) 1.1px, transparent 1.2px);
  background-size: 26px 26px;
  pointer-events: none;
}

.cta-title { position: relative; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.08; }
.cta-sub { position: relative; margin: 0; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55; color: var(--text-body); max-width: 46ch; text-wrap: pretty; }

.store-buttons { position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 4px; }

.store-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 11px;
  border-radius: var(--r-lg);
  background: #070A13;
  border: 1px solid rgba(255,255,255,.28);
  color: var(--text-strong);
  min-width: 190px;
  min-height: 64px;
  text-align: left;
  box-shadow: 0 8px 22px rgba(0,0,0,.24);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.store-button:hover {
  border-color: rgba(255,255,255,.62);
  background: #0B1023;
  color: var(--text-strong);
  transform: translateY(-1px);
}
.store-button:focus-visible { outline: 3px solid var(--accent-teal); outline-offset: 3px; }
.store-button b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.05; }

.store-logo { width: 38px; height: 38px; flex: 0 0 38px; object-fit: contain; }
.store-button-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.store-button-kicker {
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1.25px;
  color: #C7CEE8;
}

.store-button--disabled {
  cursor: default;
  opacity: .68;
  border-style: dashed;
  box-shadow: none;
}
.store-button--disabled:hover {
  border-color: rgba(255,255,255,.28);
  background: #070A13;
  transform: none;
}
.store-button-kicker--soon { color: var(--cta-gold-start); }

@media (max-width: 680px) {
  .store-buttons { width: 100%; }
  .store-button { width: min(100%, 310px); }
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer { padding: 26px clamp(18px, 4vw, 40px) 34px; border-top: 1px solid var(--stroke-hairline); }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
}
.footer-note { margin: 0; flex: 1 1 300px; min-width: 240px; font-size: 13px; line-height: 1.5; color: var(--text-meta-2); text-wrap: pretty; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; flex: none; }
.footer-links a { font-size: 13px; font-weight: 600; color: #B9C2E8; }
.footer-links a:hover { color: #fff; }

/* -------------------------------------------------------------------------
   Legal pages (privacy / terms / account deletion)
   ------------------------------------------------------------------------- */

.legal-main {
  padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 40px) clamp(48px, 6vw, 88px);
}

.legal-shell { max-width: 760px; margin: 0 auto; }

.legal-header { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }

.legal-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }

.legal-updated {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-meta);
  letter-spacing: .3px;
}

.legal-intro {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-body);
  text-wrap: pretty;
}

.legal-toc {
  margin: 22px 0 6px;
  padding: 16px 18px;
  border-radius: var(--r-xl);
  background: rgba(34,50,111,.28);
  border: 1px solid var(--stroke-hairline);
}
.legal-toc-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-meta);
}
.legal-toc ol { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: 6px; }
.legal-toc a { font-size: 14px; font-weight: 600; color: #B9C2E8; }
.legal-toc a:hover { color: #fff; }

.legal-section { margin-top: 34px; }
.legal-section h2 { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.28; }
.legal-section h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 18px 0 6px; }
.legal-section p,
.legal-section li { font-size: 14.5px; line-height: 1.7; color: var(--text-body); text-wrap: pretty; }
.legal-section p { margin: 10px 0; }
.legal-section ol,
.legal-section ul { margin: 10px 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal-section a { text-decoration: underline; text-underline-offset: 2px; }
.legal-section strong { color: var(--text-strong); }

@media (max-width: 560px) {
  .legal-title { font-size: 26px; }
}
