/* Eleven Card – Retroll Studio site
   Tokens mirror eleven_card/dev/design_system/tokens.css ("Night match"). */

/* ---------- Fonts (SIL OFL, see assets/fonts/OFL-LICENSE.txt) ---------- */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #07140e;
  --surface-1: #10231a;
  --surface-2: #173226;
  --surface-3: #20412f;
  --stroke: #2e5a44;
  --stroke-strong: #4a7d62;
  --pitch-dark: #0f3a26;
  --pitch-light: #13432d;
  --pitch-line: #3a7556;
  --team-neutral: #e6ece8;
  --text: #f2f5ee;
  --text-muted: #a8bdb0;
  --text-dim: #7f9a8a;
  --ink: #0b1a10;
  --ink-soft: #33501a;
  --accent: #c8f43c;
  --accent-press: #8fb41a;
  --accent-text: #c8f43c;           /* lime used as text colour (dark theme only) */
  --phase-setup: #c9d6cd;
  --phase-momentum: #2fe3c4;
  --phase-cards: #ffb42e;
  --phase-chance: #ff5c93;
  --danger: #ff5c6c;
  --rarity-common: #9aa5a0;
  --rarity-uncommon: #3fd07a;
  --rarity-rare: #4c94ff;
  --rarity-ultra: #f5c542;
  --rarity-ultra-2: #a97bff;
  --kind-tactic: #38d0e8;
  --kind-route: #7ed957;
  --kind-boost: #ff8a3d;
  --kind-counter: #ff6b7d;
  --kind-defense: #8c9bff;
  --kind-utility: #d9c9a3;
  --coin: var(--rarity-ultra);
  --lip: #03100a;
  --header-bg: rgba(7, 20, 14, 0.92);
  --hero-glow: rgba(200, 244, 60, 0.10);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --touch: 48px;                    /* web-scaled 96px design touch target */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-card: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --lift: 0 6px 0 var(--lip);
  --lift-high: 0 12px 0 var(--lip);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: Barlow, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --max: 1160px;
}

/* Light fallback: same hues, day-match ground. Saturated fills keep ink text. */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #eef3ea;
    --surface-1: #ffffff;
    --surface-2: #e3ecdf;
    --surface-3: #d4e2cf;
    --stroke: #b9cdb6;
    --stroke-strong: #6f8f76;
    --pitch-dark: #0f3a26;
    --pitch-light: #13432d;
    --text: #0b1a10;
    --text-muted: #33503d;
    --text-dim: #4f6a58;
    --accent-text: #33501a;
    --lip: #9fb39c;
    --header-bg: rgba(238, 243, 234, 0.94);
    --hero-glow: rgba(143, 180, 26, 0.18);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 var(--space-2); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: 0.005em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-color-scheme: light) { :focus-visible { outline-color: var(--ink); } }

.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 24px; } }

.section { padding-block: var(--space-6); }
@media (min-width: 900px) { .section { padding-block: 96px; } }
.section--alt { background: var(--surface-1); border-block: 1px solid var(--stroke); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: var(--space-2);
}
.section-title { font-size: clamp(40px, 9vw, 72px); margin-bottom: var(--space-2); }
.section-lead { color: var(--text-muted); font-size: 19px; max-width: 62ch; margin-bottom: var(--space-5); }

/* ---------- Pills & chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 14px; border-radius: var(--radius-pill); color: var(--ink); background: var(--phase-setup);
  line-height: 1.3;
}
.pill--momentum { background: var(--phase-momentum); }
.pill--cards { background: var(--phase-cards); }
.pill--chance { background: var(--phase-chance); }
.pill--lime { background: var(--accent); }
.pill--ghost { background: transparent; color: var(--text-muted); border: 2px solid var(--stroke-strong); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
  border: 2px solid var(--ink);
}
.chip__pips { display: inline-flex; gap: 3px; }
.chip__pips i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); display: block; }
.chip--common { background: var(--rarity-common); }
.chip--uncommon { background: var(--rarity-uncommon); }
.chip--rare { background: var(--rarity-rare); }
.chip--ultra { background: linear-gradient(100deg, var(--rarity-ultra), var(--rarity-ultra-2)); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-block: var(--space-2); }

/* ---------- Buttons ---------- */
.btn {
  --btn-lip: var(--lip);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 24px;
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0.03em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border-radius: var(--radius-md);
  border: 2px solid var(--stroke-strong); background: var(--surface-3); color: var(--text);
  box-shadow: 0 6px 0 var(--btn-lip);
  transition: transform 90ms ease, box-shadow 90ms ease, background-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--btn-lip); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--btn-lip); }
.btn--primary { --btn-lip: var(--accent-press); background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--soon {
  cursor: not-allowed; background: var(--surface-2); color: var(--text-muted); border: 2px dashed var(--stroke-strong);
  box-shadow: none; flex-direction: column; gap: 0; line-height: 1.05; border-radius: var(--radius-pill); padding-inline: 28px;
}
.btn--soon:hover, .btn--soon:active { transform: none; box-shadow: none; }
.btn--soon small { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent-text); }
.btn--icon { min-height: var(--touch); min-width: var(--touch); padding: 0; font-size: 26px; border-radius: var(--radius-sm); box-shadow: 0 4px 0 var(--lip); }
.btn--icon:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lip); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.site-header__bar { display: flex; align-items: center; gap: var(--space-2); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: var(--touch); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: 0.08em; white-space: nowrap; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: flex; align-items: center; min-height: var(--touch); padding-inline: 12px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--text-muted);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
  min-width: 44px; min-height: 38px; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: 0.06em;
  background: transparent; color: var(--text-muted);
}
.menu-toggle { display: none; background: var(--surface-2); border: 2px solid var(--stroke-strong); color: var(--text); }
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 919px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--stroke); }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: var(--space-1) var(--gutter) var(--space-2); }
  .no-js .nav ul { flex-direction: row; flex-wrap: wrap; padding: 0; }
  .no-js .site-header__bar { flex-wrap: wrap; }
  .nav a { font-size: 17px; }
}
@media (max-width: 380px) { .brand span { font-size: 17px; letter-spacing: 0.05em; } .brand img { width: 30px; height: 30px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: var(--space-5) var(--space-6);
  background:
    radial-gradient(60% 50% at 80% 20%, var(--hero-glow), transparent 70%),
    var(--bg);
}
.hero::before { /* pitch lines, decoration only */
  content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%;
  border: 3px solid var(--pitch-line); border-radius: 50%; opacity: 0.25; pointer-events: none;
}
.hero__grid { position: relative; display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; } }

.logo-lockup { margin: 0 0 var(--space-3); line-height: 0.86; }
.logo-lockup__eleven {
  display: block; font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(76px, 22vw, 176px); letter-spacing: -0.01em; color: var(--text);
}
.logo-lockup__tag {
  display: inline-block; margin-top: 6px; margin-left: 4px;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(46px, 12.5vw, 104px); line-height: 1; color: var(--ink);
  background: var(--accent); padding: 0.06em 0.28em 0.04em 0.22em; border-radius: 0.17em;
  box-shadow: 0 8px 0 var(--accent-press);
  transform: rotate(-3deg); transform-origin: 20% 60%;
  transition: transform 260ms cubic-bezier(.34,1.56,.64,1);
}
.logo-lockup:hover .logo-lockup__tag { transform: rotate(-7deg) translateY(-3px); }
.tagline { font-weight: 700; font-size: clamp(15px, 4vw, 19px); letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-3); }
.hero__lead { font-size: clamp(18px, 4.6vw, 21px); max-width: 38ch; margin-bottom: var(--space-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero__actions .btn { flex: 1 1 220px; }
@media (min-width: 560px) { .hero__actions .btn { flex: 0 0 auto; } }
.hero__phone { display: flex; justify-content: center; }
.hero__phone .phone { width: min(300px, 78vw); transform: rotate(3deg); }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative; width: 100%; max-width: 300px; margin-inline: auto;
  aspect-ratio: 9 / 16;
  padding: 10px; border-radius: 38px;
  background: #050c08;
  border: 2px solid #2e5a44;
  box-shadow: var(--lift-high);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.phone::before { /* notch */
  content: ""; position: absolute; z-index: 2; top: 18px; left: 50%; transform: translateX(-50%);
  width: 26%; height: 16px; border-radius: 999px; background: #050c08;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.04);
}
.phone::after { /* side button */
  content: ""; position: absolute; right: -5px; top: 22%; width: 3px; height: 54px; border-radius: 2px; background: #2e5a44;
}
.phone__screen { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: var(--surface-1); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-caption { margin-top: var(--space-3); text-align: center; color: var(--text-muted); font-size: 15px; }
.lift-hover:hover .phone, .phone.lift-hover:hover { transform: translateY(-6px); }

/* ---------- Dice demo ---------- */
.dice-demo {
  position: relative; margin-top: var(--space-5);
  background: var(--surface-1); border: 2px solid var(--stroke); border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-2); box-shadow: var(--lift);
}
@media (min-width: 640px) { .dice-demo { padding: var(--space-4); } }
.dice-demo__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin-bottom: var(--space-2); }
.dice-demo__head h2 { font-size: clamp(30px, 7vw, 44px); }
.dice-demo__rule { color: var(--text-muted); font-size: 15px; margin-bottom: var(--space-3); }
.dice-sides { display: grid; gap: var(--space-3); }
@media (min-width: 760px) { .dice-sides { grid-template-columns: 1fr 1fr; } }
.dice-side { border-radius: var(--radius-card); background: var(--surface-2); border: 1px solid var(--stroke); padding: var(--space-2); }
.dice-side__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-1); flex-wrap: wrap; margin-bottom: var(--space-2); }
.dice-side__name { font-family: var(--font-display); font-weight: 800; font-size: 28px; text-transform: uppercase; line-height: 1; }
.dice-side--atk .dice-side__name { color: var(--accent-text); }
.dice-side--def .dice-side__name { color: var(--phase-chance); }
@media (prefers-color-scheme: light) { .dice-side--def .dice-side__name { color: #b0164c; } }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper output { min-width: 2.2ch; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; }
.stepper .btn--icon { min-height: 44px; min-width: 44px; font-size: 24px; }
.stepper .btn--icon:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.dice-side__hits { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-top: var(--space-2); min-height: 1.3em; }
.dice-side__hits b { font-size: 34px; color: var(--text); margin-right: 6px; font-variant-numeric: tabular-nums; }
.dice-tray { display: flex; flex-wrap: wrap; gap: 10px; min-height: 108px; align-content: flex-start; }

.die {
  --die: var(--accent);
  position: relative; width: 44px; height: 44px; border-radius: 10px;
  background: var(--die); border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--lip);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 5px;
}
.dice-side--def .die { --die: var(--phase-chance); }
.die i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); place-self: center; visibility: hidden; }
.die[data-v="1"] i:nth-child(5),
.die[data-v="2"] i:nth-child(1), .die[data-v="2"] i:nth-child(9),
.die[data-v="3"] i:nth-child(1), .die[data-v="3"] i:nth-child(5), .die[data-v="3"] i:nth-child(9),
.die[data-v="4"] i:nth-child(1), .die[data-v="4"] i:nth-child(3), .die[data-v="4"] i:nth-child(7), .die[data-v="4"] i:nth-child(9),
.die[data-v="5"] i:nth-child(1), .die[data-v="5"] i:nth-child(3), .die[data-v="5"] i:nth-child(5), .die[data-v="5"] i:nth-child(7), .die[data-v="5"] i:nth-child(9),
.die[data-v="6"] i:nth-child(1), .die[data-v="6"] i:nth-child(3), .die[data-v="6"] i:nth-child(4), .die[data-v="6"] i:nth-child(6), .die[data-v="6"] i:nth-child(7), .die[data-v="6"] i:nth-child(9) { visibility: visible; }
.die[data-v="0"] { opacity: 0.55; }
.die.is-miss { --die: var(--surface-3); border-color: var(--stroke-strong); box-shadow: 0 4px 0 var(--lip); }
.die.is-miss i { background: var(--text-dim); }
.die.is-hit::after {
  content: ""; position: absolute; right: -8px; top: -8px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%23c8f43c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.die.is-rolling { animation: tumble 640ms cubic-bezier(.2,.7,.3,1) both; animation-delay: var(--delay, 0ms); }
@keyframes tumble {
  0%   { transform: translate(var(--tx, -40px), -36px) rotate(var(--rot, -220deg)) scale(0.7); opacity: 0; }
  55%  { transform: translate(0, 4px) rotate(14deg) scale(1.05); opacity: 1; }
  75%  { transform: translate(0, -3px) rotate(-6deg); }
  100% { transform: none; }
}

.dice-demo__foot { display: grid; gap: var(--space-3); margin-top: var(--space-3); align-items: center; }
@media (min-width: 760px) { .dice-demo__foot { grid-template-columns: auto 1fr; } }
.roll-btn { min-width: 200px; font-size: 26px; }
.odds { color: var(--text-muted); font-size: 15px; }
.odds__bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-3); margin-top: 8px; border: 1px solid var(--stroke); }
.odds__bar span { display: block; height: 100%; transition: width 300ms ease; }
.odds__bar .o-goal { background: var(--accent); }
.odds__bar .o-save { background: var(--phase-setup); }
.odds__bar .o-miss { background: var(--danger); }
.odds strong { color: var(--text); font-variant-numeric: tabular-nums; }

.verdict {
  min-height: 1em; text-align: center; margin-top: var(--space-3);
  font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(64px, 18vw, 120px); line-height: 0.9;
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 0 7px 0 var(--ink);
}
.verdict:empty { display: none; }
.verdict--goal { color: var(--accent); }
.verdict--save { color: var(--text); }
.verdict--miss { color: var(--danger); }
@media (prefers-color-scheme: light) { .verdict--save { color: #ffffff; } }
.verdict.pop { animation: pop 420ms cubic-bezier(.34,1.56,.64,1) both; }
@keyframes pop { from { transform: scale(0.4) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.verdict-detail { text-align: center; color: var(--text-muted); font-weight: 700; min-height: 1.5em; margin-top: var(--space-1); }

/* ---------- Trailer ---------- */
.video {
  max-width: 1040px; padding: 10px; border-radius: 22px;
  background: #050c08; border: 1px solid var(--stroke);
}
.video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }
.video__link { margin: var(--space-2) 0 0; font-size: 15px; font-weight: 700; }
.video__link a { color: var(--accent-text); text-underline-offset: 3px; }

/* ---------- Phase track ---------- */
.phase-track { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: var(--space-5); }
.phase-track .pill { font-size: 15px; padding: 4px 12px; }
.phase-track .sep { color: var(--text-dim); font-weight: 700; }

/* ---------- Phase cards ---------- */
.phases { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .phases { grid-template-columns: repeat(3, 1fr); } }
.phase-card {
  --pc: var(--phase-momentum);
  display: flex; flex-direction: column;
  background: var(--surface-1); border: 2px solid var(--stroke); border-top: 8px solid var(--pc);
  border-radius: var(--radius-lg); padding: var(--space-3) var(--space-2) var(--space-4);
  box-shadow: var(--lift);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
@media (min-width: 640px) { .phase-card { padding-inline: var(--space-3); } }
.phase-card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--lip); }
.phase-card--cards { --pc: var(--phase-cards); }
.phase-card--chance { --pc: var(--phase-chance); }
.phase-card__num { font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 0.8; color: var(--pc); }
@media (prefers-color-scheme: light) { .phase-card__num { -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; } }
.phase-card h3 { font-size: 40px; margin: var(--space-2) 0 var(--space-2); }
.phase-card p { color: var(--text-muted); }
.phase-card ul { margin: 0 0 var(--space-3); padding-left: 1.1em; color: var(--text-muted); }
.phase-card li { margin-bottom: 6px; }
.phase-card li::marker { color: var(--pc); }
.phase-card .phone { margin-top: auto; max-width: 240px; }
.section--alt .phase-card { background: var(--bg); }

/* ---------- Strength strip ---------- */
.strength {
  margin-top: var(--space-5);
  display: grid; gap: var(--space-3); align-items: center;
  background: var(--surface-2); border: 2px solid var(--stroke); border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-2);
}
@media (min-width: 640px) { .strength { padding: var(--space-4); } }
@media (min-width: 900px) { .strength { grid-template-columns: auto 1fr; gap: var(--space-5); } }
.strength__badge-wrap { display: flex; align-items: center; gap: var(--space-2); }
.arrow-demo { width: 150px; height: 64px; flex: none; }
.arrow-demo .shaft { stroke: var(--arrow-col, var(--accent)); }
.arrow-demo .head { fill: var(--arrow-col, var(--accent)); }
.strength__badge {
  flex: none; width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--arrow-col, var(--accent)); color: var(--ink);
  border: 5px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 52px; font-variant-numeric: tabular-nums;
}
.strength h3 { font-size: clamp(28px, 6vw, 40px); margin-bottom: var(--space-1); }
.strength p { color: var(--text-muted); margin-bottom: var(--space-2); }
.d10 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-block: var(--space-2); max-width: 520px; }
.d10 span {
  aspect-ratio: 1; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(13px, 3.4vw, 20px);
  background: var(--surface-3); color: var(--text-dim); border: 2px solid var(--stroke);
  transition: background-color 160ms ease, color 160ms ease;
}
.d10 span.on { background: var(--arrow-col, var(--accent)); color: var(--ink); border-color: var(--ink); }
.strength__readout { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: 0.02em; }
.range { width: 100%; max-width: 520px; accent-color: var(--accent); min-height: var(--touch); }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: 14px; color: var(--text-muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend svg { width: 36px; height: 10px; }

/* ---------- Feature grid ---------- */
.features { display: grid; gap: var(--space-3); }
@media (min-width: 680px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface-1); border: 2px solid var(--stroke); border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-2); box-shadow: var(--lift);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
@media (min-width: 640px) { .feature { padding: var(--space-3); } }
.feature:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--lip); }
.feature__icon {
  width: 56px; height: 56px; border-radius: var(--radius-md); display: grid; place-items: center;
  background: var(--fi, var(--accent)); color: var(--ink); border: 3px solid var(--ink); margin-bottom: var(--space-2);
}
.feature__icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 30px; margin-bottom: var(--space-1); }
.feature p { color: var(--text-muted); margin-bottom: 0; }
.feature p + p { margin-top: var(--space-1); }
.feature--wide { display: grid; gap: var(--space-3); align-items: center; }
@media (min-width: 680px) { .feature--wide { grid-column: span 2; grid-template-columns: 1fr 200px; } }
.feature--wide .phone { max-width: 200px; border-radius: 30px; padding: 8px; }
.feature--wide .phone__screen { border-radius: 22px; }
.feature--wide .phone::before { top: 15px; height: 12px; }
.section--alt .feature { background: var(--bg); }
@media (min-width: 680px) { .feature--full { grid-column: 1 / -1; } }

/* ---------- Campaign ---------- */
.campaign-top { display: grid; gap: var(--space-4); margin-bottom: var(--space-5); }
@media (min-width: 900px) { .campaign-top { grid-template-columns: 1fr 1fr; align-items: start; } }
.panel { background: var(--surface-1); border: 2px solid var(--stroke); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-2); box-shadow: var(--lift); }
@media (min-width: 640px) { .panel { padding: var(--space-3); } }
.section--alt .panel { background: var(--bg); }
.panel__label { font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--space-2); }

.ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 10px; }
.ladder li {
  --tier: #c98a4b;
  display: flex; align-items: center; gap: var(--space-2); min-height: 64px;
  padding: 10px 16px; border-radius: var(--radius-md); background: var(--surface-2); border: 2px solid var(--stroke);
  border-left: 10px solid var(--tier);
}
.ladder li:nth-child(1) { margin-right: 24%; }
.ladder li:nth-child(2) { --tier: #c4ccd0; margin-right: 12%; }
.ladder li:nth-child(3) { --tier: var(--rarity-ultra); margin-right: 0; }
.ladder__name { font-family: var(--font-display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; }
.ladder__note { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.ladder__medal { width: 36px; height: 36px; border-radius: 50%; background: var(--tier); border: 3px solid var(--ink); flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.ladder-legend { margin-top: var(--space-2); font-size: 15px; color: var(--text-muted); }

.season { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: var(--space-2); }
@media (min-width: 480px) { .season { grid-template-columns: repeat(12, 1fr); } }
.season span {
  aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  background: var(--surface-2); border: 2px solid var(--stroke-strong); color: var(--text-muted);
}
.season .w { background: var(--accent); color: var(--ink); border-color: var(--ink); }
.season .d { background: var(--phase-cards); color: var(--ink); border-color: var(--ink); }
.season .l { background: var(--danger); color: var(--ink); border-color: var(--ink); }
.season .now { border: 3px solid var(--accent); color: var(--text); }
@media (prefers-color-scheme: light) { .season .now { border-color: var(--ink); } }
.season .rival { background: var(--rarity-ultra-2); color: var(--ink); border-color: var(--ink); }
.season-notes { color: var(--text-muted); font-size: 15px; margin: 0; }
.season-notes b { color: var(--text); }

.camp-grid { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
@media (min-width: 680px) { .camp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .camp-grid { grid-template-columns: repeat(3, 1fr); } }
.camp-item h3 { font-size: 26px; margin-bottom: var(--space-1); display: flex; align-items: center; gap: 10px; }
.camp-item p { color: var(--text-muted); margin: 0; }
.coin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--coin); border: 3px solid var(--ink); vertical-align: -3px; margin-right: 2px; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-2); }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); } }
.shots figure { margin: 0; }
.shots .phone { border-radius: 26px; padding: 7px; }
.shots .phone__screen { border-radius: 19px; }
.shots .phone::before { top: 12px; height: 10px; }
.shots figcaption { margin-top: var(--space-2); text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Multiplayer ---------- */
.mp { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .mp { grid-template-columns: 1fr 1fr; } }
.mp__phones { position: relative; display: flex; justify-content: center; align-items: center; gap: var(--space-2); }
.mp__phones .phone { max-width: 220px; flex: 1 1 0; }
.mp__phones .phone:first-child { transform: rotate(-4deg); }
.mp__phones .phone:last-child { transform: rotate(4deg); }
.mp__wifi {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rarity-ultra-2); color: var(--ink); border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
}
.mp__wifi svg { width: 34px; height: 34px; }
.mp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.mp-list li { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-2); align-items: start; }
.mp-list .num {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 26px; border: 3px solid var(--ink);
}
.mp-list h3 { font-size: 26px; margin: 4px 0 6px; }
.mp-list p { color: var(--text-muted); margin: 0; }

/* ---------- Download ---------- */
.download {
  position: relative; overflow: hidden; text-align: center;
  background: var(--accent); color: var(--ink); border-radius: var(--radius-lg); border: 3px solid var(--ink);
  box-shadow: 0 10px 0 var(--accent-press);
  padding: var(--space-5) var(--space-2);
}
.download h2 { font-size: clamp(44px, 11vw, 88px); font-style: italic; margin-bottom: var(--space-2); }
.download p { color: var(--ink-soft); font-weight: 600; font-size: 18px; max-width: 46ch; margin-inline: auto; margin-bottom: var(--space-4); }
.download .store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 22px 8px 16px;
  background: var(--ink); color: #f2f5ee; border-radius: var(--radius-md); text-align: left;
  border: 2px dashed #4a7d62; cursor: not-allowed;
}
.store--live {
  text-decoration: none; cursor: pointer; border-style: solid; border-color: var(--ink);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  transition: transform 90ms ease, box-shadow 90ms ease;
}
.store--live:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35); }
.store--live:active { transform: translateY(5px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.store--live:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.store svg { width: 30px; height: 30px; flex: none; }
.store b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0.03em; line-height: 1.05; }
.store small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #c8f43c; }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--space-5) var(--space-6); border-top: 1px solid var(--stroke); color: var(--text-muted); font-size: 15px; }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.footer-brand { text-decoration: none; display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-2); }
.footer-brand img { width: 44px; height: 44px; border-radius: 11px; }
.footer-brand b { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: 0.08em; color: var(--text); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links li { display: flex; justify-content: space-between; gap: var(--space-2); min-height: 32px; align-items: center; border-bottom: 1px solid var(--stroke); }
.footer-links .soon { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.footer-small { margin-top: var(--space-3); font-size: 13px; color: var(--text-dim); }
.footer-small a { color: var(--text-muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms ease, transform 500ms ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .logo-lockup:hover .logo-lockup__tag { transform: rotate(-3deg); }
  .btn:hover, .feature:hover, .phase-card:hover, .lift-hover:hover .phone { transform: none; }
}
