/* Ballers IQ v5 tokens (WP1). The only file allowed to hold raw colour values.
   Spec §11. Names in the first block are the shared contract; the "extensions" block is extra, additive only. */

@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/montserrat-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('../fonts/montserrat-900.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/inter-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  /* surfaces (dark only) */
  --bg: #0b0c10;  --card: #17191f;  --raised: #24272e;  --pressed: #2e3139;
  --line: rgba(255,255,255,.08);  --scrim: rgba(5,6,8,.72);
  /* ink */
  --ink: #f5f6f8;  --ink2: #9ca0ad;  --ink3: #80848f;  --ink-lock: #6b6f7b;
  /* brand + states */
  --pri: #ff4d2e;  --pri-press: #e8401f;  --pri-ink: #ff7a5e;   /* --pri-ink = orange text on dark */
  --good: #22c55e; --bad: #ff4d5e; --gold: #ffc23d;            /* always paired with ✓ ✕ ★ glyphs */
  /* pitch */
  --pitch: #10141b; --pitch-line: rgba(255,255,255,.14);
  --us: #4d8dff;    /* solid discs */
  --them: #ff9f1c;  /* amber rings with dark centre: different SHAPE, not just colour */
  --ball: #ffffff;  --you-ring: #ffc23d;
  /* steps (road + card only, never on the pitch) */
  --step-scan: #4d8dff; --step-lines: #a78bfa; --step-final: #ff8a1f; --step-defend: #22c55e;
  /* type */
  --f-head: 'Montserrat', system-ui, sans-serif;   /* 800, 900 only */
  --f-body: 'Inter', system-ui, sans-serif;        /* 500, 700 only. No serif anywhere. */
  /* spacing */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --margin: 20px;
  /* radii */
  --r-sm: 12px; --r: 22px; --r-pill: 999px;
  /* motion */
  --e-emph: cubic-bezier(.2,0,0,1); --e-decel: cubic-bezier(.05,.7,.1,1); --e-accel: cubic-bezier(.3,0,.8,.15);
  --d-tap: 100ms; --d-small: 200ms; --d-screen: 300ms; --d-reveal: 400ms;
  /* sizes */
  --hit: 44px; --cta: 58px; --tab: 56px; --header: 52px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);

  /* ---- extensions (WP1, additive; other sheets may use these too) ---- */
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --on-pri: #ffffff;                                   /* ink on a --pri fill */
  --line-2: rgba(255,255,255,.14);                     /* stronger hairline: grabbers, dividers on raised */
  --hi: rgba(255,255,255,.05);                         /* top-edge light on dark surfaces */
  --hi-2: rgba(255,255,255,.26);                       /* top-edge light on filled buttons */
  --lo: rgba(0,0,0,.22);                               /* bottom-edge shade on filled buttons */
  --shadow: 0 18px 40px -18px rgba(0,0,0,.75);         /* lift for sheets and floating cards */
  --pri-soft: rgba(255,77,46,.14);  --pri-glow: rgba(255,77,46,.42);
  --good-soft: rgba(34,197,94,.14); --bad-soft: rgba(255,77,94,.14); --gold-soft: rgba(255,194,61,.14);
  --focus: #f5f6f8;                                    /* focus-visible ring */
  --spring: cubic-bezier(.34,1.56,.64,1);              /* chips, 200 ms (§11 motion rules) */
  --lift: 8px;                                         /* screen enter lift; 0 under reduced motion */
  --pop: .86;                                          /* chip enter scale; 1 under reduced motion */
  --z-tab: 10; --z-sheet: 50; --z-toast: 60;
  --maxw: 520px;                                       /* app column on tablets and desktop */
}

/* Reduced motion (system setting, or Settings → Reduce motion: On sets <html data-motion="reduce">).
   Movement becomes fades; nothing outside the board animates transform for more than 150 ms [U10, QA 19]. */
@media (prefers-reduced-motion: reduce) {
  :root { --d-small: 150ms; --d-screen: 150ms; --d-reveal: 150ms; --lift: 0px; --pop: 1; --spring: ease-out; }
}
:root[data-motion="reduce"] { --d-small: 150ms; --d-screen: 150ms; --d-reveal: 150ms; --lift: 0px; --pop: 1; --spring: ease-out; }
