/* ===========================================================================
   Zealot Hockey — "Arena Night" design tokens
   ---------------------------------------------------------------------------
   Single source of truth for palette + typography. Linked by index.html and by
   every standalone page (leaderboard, skin-tuner, maintenance, model-viewer,
   pose-tuner) so they can't drift apart the way six copied :root blocks did.

   Fonts are self-hosted from ./assets/ui/fonts (SIL OFL, see OFL.txt there).
   No fonts.googleapis.com request — it was render-blocking and a third-party
   dependency for a game that ships on Steam.
   =========================================================================== */

/* ── Typefaces ───────────────────────────────────────────────────────────── */

/* Display — arena signage / jersey numerals. Wordmark, screen titles, big numbers. */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Archivo Black'), url('./assets/ui/fonts/archivo-black-400-latin.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: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Archivo Black'), url('./assets/ui/fonts/archivo-black-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Body — everything you read. */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Barlow'), url('./assets/ui/fonts/barlow-400-latin.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: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Barlow'), url('./assets/ui/fonts/barlow-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Barlow SemiBold'), url('./assets/ui/fonts/barlow-600-latin.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: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Barlow SemiBold'), url('./assets/ui/fonts/barlow-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Data — eyebrows, tabs, stat labels, table headers. Condensed reads as scoreboard. */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Barlow Condensed SemiBold'), url('./assets/ui/fonts/barlow-condensed-600-latin.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: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Barlow Condensed SemiBold'), url('./assets/ui/fonts/barlow-condensed-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* In-game display face (goal banner, faceoff countdown, scoreboard). Was loaded
   from the Google CDN; self-hosted now so it matches the rest. */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Bebas Neue'), url('./assets/ui/fonts/bebas-neue-400-latin.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: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Bebas Neue'), url('./assets/ui/fonts/bebas-neue-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ──────────────────────────────────────────────────────────────── */

:root {
  /* Type roles. Non-latin player names (Cyrillic/CJK/Arabic) fall through to the
     system stack — the display faces are latin-only by design. */
  --font-menu-display: 'Archivo Black', Impact, 'Arial Black', system-ui, sans-serif;
  --font-body:         'Barlow', 'Segoe UI', system-ui, sans-serif;
  --font-data:         'Barlow Condensed', 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --font-mono:         ui-monospace, 'Cascadia Mono', Consolas, monospace;
  /* In-game display face. Kept as its own token — the HUD is tuned around it. */
  --font-display:      'Bebas Neue', Impact, 'Arial Black', sans-serif;

  /* Arena Night palette.
     The ice is not white — at arena-night lighting it's a dim, cold blue sheet.
     Red and blue are reserved for TEAMS (and the rink's own lines). Gold is the
     only accent for primary action, which is what makes hierarchy readable. */
  --ink:       #060a11;  /* arena black — page background */
  --rink:      #0c131f;  /* panel base */
  --rink-hi:   #141e2c;  /* raised surface / hover */
  --rink-deep: #080d16;  /* recessed wells, inputs */

  --edge:      rgba(160, 205, 230, 0.13);  /* hairline */
  --edge-hi:   rgba(168, 212, 232, 0.30);  /* board kick-plate line */

  /* --ice keeps its original bright value: the in-game loading screen, POTG and
     goal-banner gradients all blend it toward white and go muddy if it darkens. */
  --ice:       #cce8f5;  /* bright cold light — highlights, gradients, focus rings */
  --ice-cool:  #8fbfd6;  /* mid tone — board lines, secondary headings */
  --ice-dim:   #7d99ad;  /* muted text (AA on --rink) */
  /* Near-white top of the ramp — screen titles, card names, modal titles. Used in
     30 places across style.css but never declared until now, so every one of them
     was silently falling back to `inherit`. */
  --ice-bright: #eaf6ff;

  --gold:      #f2c14e;
  --gold-deep: #b8860f;
  --gold-glow: rgba(242, 193, 78, 0.35);

  --red:       #e2453f;
  --red-dark:  #a82e2a;
  --blue:      #3e86e8;
  --blue-dark: #2560ad;
  --green:     #3fb96b;
  /* XP green. Distinct from --green (which is a generic success/positive) and deliberately
     lighter, because it has to hold contrast as TEXT on the dark navy identity panels — the
     rank label and the +XP pop use it, not just the bar. Gold stays reserved for credits, so
     the two currencies never read as the same thing. */
  --xp-green:      #6ee89a;
  --xp-green-deep: #2f9e5f;

  /* Private-message violet. The palette had no colour left for "this message is only for
     you": --red and --blue are reserved for TEAMS and would read as a team message, and
     --gold means credits or a primary action. Violet collides with nothing on the ice.
     Used as a BACKGROUND, never as type — chat rows already sit on a dark pill, so a
     coloured foreground would be the one thing on screen you cannot read. */
  /* XP boost marker. Deliberately CYAN and not --blue: --blue is team blue, and a
     blue rim on a red-team chip in the lobby roster reads as a team mistake. */
  --boost:      #5ad9f0;
  --boost-deep: #0a2a33;   /* dark backing for cyan type / cyan backing for dark type */
  --boost-glow: rgba(90, 217, 240, 0.32);

  --dm:      #8b5cf6;   /* accent: borders, dots, small marks */
  /* The SURFACE behind white text. Deliberately darker than --dm: at #6d3ed8 white type
     measured only ~4.2:1, under the 4.5 AA floor. This clears ~8:1. */
  --dm-deep: #5b34b8;
  --dm-edge: #c4b5fd;   /* light violet type on dark, ~9:1 */

  --radius:    4px;   /* sharper than the old 10px — reads more athletic */
  --radius-lg: 8px;

  /* Elevation. Deep and soft, so panels feel lit from above rather than outlined. */
  --shadow-panel: 0 18px 50px -12px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-modal: 0 32px 90px -16px rgba(0, 0, 0, 0.9), 0 4px 14px rgba(0, 0, 0, 0.6);

  /* ── Legacy aliases ──
     ~3800 lines of in-game HUD CSS reference these names. Pointing them at the
     new palette shifts the whole game to Arena Night without touching the HUD. */
  --bg:     var(--ink);
  --panel:  var(--rink);
  --panel2: var(--rink-hi);
  --border: rgba(160, 205, 230, 0.16);
  --text:   #dfeaf2;
  --muted:  var(--ice-dim);
}
