/* FLOODLIT - the design tokens. One place for every color, size, radius,
   shadow and duration in the game. Loaded after the older stylesheets, so
   their variable names (--bg, --panel, --ink, --gold, --cond ...) resolve
   here too: the whole UI reads one palette.

   Rules: the only strong color on a screen is your team's (--team-accent).
   Gold means honors: All-Americans, the NAFL top 100, titles, trophies.
   Win and loss are green and red, and always come with W/L, ▲/▼ or words. */

:root {
  /* ---- color: night game ---- */
  --c-night: #07090d;        /* page */
  --c-surface: #121822;      /* panels, cards */
  --c-raised: #1b2330;       /* rows and tiles inside a panel */
  --c-raised-2: #232c3b;     /* hover, selected */
  --c-hairline: rgba(255, 255, 255, 0.08);
  --c-hairline-2: rgba(255, 255, 255, 0.14);
  --c-ink: #eef2f7;          /* text: 15.9:1 on surface */
  --c-ink-2: #a9b3c3;        /* secondary: 8.4:1 */
  --c-ink-3: #7f8aa1;        /* captions: 5.0:1 (AA) */
  --c-gold: #e8c874;         /* honors only */
  --c-gold-ink: #2b2006;
  --c-win: #3fcf8e;
  --c-loss: #f0555a;
  --c-warn: #f2a93b;
  --c-info: #6aa8ff;
  --c-turf: #1f5a35;
  --c-turf-2: #24663c;

  /* Your team (identity.js sets these on every screen; these are the fallbacks). */
  --team: #c8102e;
  --team-2: #ffffff;
  --team-ink: #ffffff;
  --team-accent: #e04a5f;    /* the team color, lifted to read on night */
  --team-accent-ink: #14110d;

  /* ---- type ---- */
  --font-display: 'Barlow Condensed', 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --font-text: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-15: 15px;
  --fs-18: 18px;
  --fs-22: 22px;
  --fs-28: 28px;
  --fs-40: 40px;
  --fs-64: 64px;

  /* ---- space, shape, depth, motion ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --r-chip: 8px;
  --r-card: 12px;
  --r-pill: 999px;
  --e-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 6px 18px -10px rgba(0, 0, 0, 0.8);
  --e-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  --e-3: 0 30px 70px -20px rgba(0, 0, 0, 0.95);
  --t-fast: 120ms;
  --t-state: 240ms;
  --t-tick: 600ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --tap: 44px;

  /* ---- the older stylesheets' names, mapped onto the tokens ---- */
  --bg: var(--c-night);
  --panel: var(--c-surface);
  --panel-2: var(--c-raised);
  --panel-3: var(--c-raised-2);
  --line: var(--c-hairline-2);
  --hairline: var(--c-hairline);
  --ink: var(--c-ink);
  --ink-2: var(--c-ink-2);
  --ink-3: var(--c-ink-3);
  --gold: var(--c-gold);
  --gold-2: #c9a54e;
  --star: var(--c-gold);
  --good: var(--c-win);
  --bad: var(--c-loss);
  --warn: var(--c-warn);
  --info: var(--c-info);
  --accent: var(--team-accent);
  --accent-ink: var(--team-accent-ink);
  --go: var(--team-accent);
  --go-2: var(--team);
  --radius: var(--r-card);
  --cond: var(--font-display);
  --display: var(--font-display);
  --sans: var(--font-text);
  --glass: var(--c-surface);
  --glass-2: var(--c-raised);
  --shadow: var(--e-2);
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-state: 0ms; --t-tick: 0ms; }
}
