/* SnookerStation web — THE THEME LAYER (WEB_PRODUCT_v0_2 §2.3; Ville's F1: "one theme layer (tokens) on every page").
   This file holds every colour, every font and every corner measure the site uses, and nothing else: only custom
   properties and @font-face. web.css holds the structure and names no colour of its own (render.mjs fails the build if
   it does). A new look is a second file with the same names (theme-daylight.css shows one), loaded instead of this.
   The palette is copied from design/menu-2026-10/tokens.json v2; the semantic names below it are the web's. */

:root {
  /* ---- the station's palette (tokens.json v2) ---- */
  --hall-900: #070909; --panel-850: #0c1311; --panel-800: #121b18; --panel-700: #18241f; --focus-fill: #1f4a38;
  --line-600: #3d544b; --steel-400: #a3b0ab;
  --ink-100: #f3f1ea; --ink-200: #d2d9d5; --ink-300: #bac4be; --ink-400: #9aa5a0; --ink-500: #7c8783;
  --gold-200: #f7dc9a; --gold-300: #f0c873; --gold-400: #e4b24c; --gold-600: #a87822; --on-gold: #17120a;
  --emerald-300: #4fd896; --emerald-500: #1fa866; --emerald-700: #0e5a3a; --emerald-900: #0a2a1d;
  --danger-500: #c63d27; --danger-300: #ff7a5c; --signal-400: #ff9a45;

  /* ---- type ---- */
  --font-display: "Chakra Petch", "Bahnschrift", "Arial Narrow", sans-serif;
  --font-ui: "Barlow Semi Condensed", "Bahnschrift", "Segoe UI", sans-serif;
  --font-title: "Barlow Condensed", "Bahnschrift", "Arial Narrow", sans-serif;

  /* ---- corners and lines ---- */
  --cut-xs: .375rem; --cut-sm: .5rem; --cut-md: .875rem; --cut-lg: 1.25rem;
  --bw: 1px; --bw-strong: 2px;

  /* ---- page ---- */
  --page: #070909;
  --page-bg: radial-gradient(120% 50% at 50% -10%, #0f1d17 0%, #070909 60%);
  --bar-bg: rgba(7, 9, 9, .96);
  --text: var(--ink-100); --text-2: var(--ink-200); --text-dim: var(--ink-300); --text-faint: var(--ink-400);
  --link: var(--emerald-300);
  --accent: var(--gold-400); --accent-text: var(--gold-300); --on-accent: var(--on-gold);
  --hairline: rgba(255, 255, 255, .08);

  /* ---- boxes: every box has an edge colour and a fill; the edge is a solid colour so it is the same on every pixel ---- */
  --edge: #3d544b;                 /* cards */
  --edge-glass: #2c6149;           /* the station's settings glass */
  --edge-quiet: #5d6a65;           /* tags, fields, quiet chips */
  --edge-live: #1fa866; --edge-accent: #e4b24c; --edge-warn: #ff9a45; --edge-danger: #ff7a5c; --edge-dim: #46524e;
  --fill-card: #121b18;
  --fill-card-hi: linear-gradient(160deg, #16302a 0%, #0f1f19 100%);
  --fill-glass: linear-gradient(160deg, #13261f 0%, #0a1410 100%);
  --fill-tile: #0b1210;            /* a stat tile inside glass */
  --fill-inset: #0a100e;           /* inputs */
  --fill-tag: #0c1110;
  --fill-live: #0d2219; --fill-warn: #20160d; --fill-accent-soft: #221b0c;
  --fill-primary: linear-gradient(180deg, #f7dc9a 0%, #f0c873 30%, #e4b24c 100%);
  --fill-secondary: linear-gradient(180deg, #1b2925, #111a17);
  --fill-danger: linear-gradient(180deg, #d3452e, #c63d27);
  --fill-on: linear-gradient(180deg, #11704a, #0e5a3a);
  --fill-now: linear-gradient(90deg, #12301f 0%, #121b18 75%);
  --focus-ring: 0 0 0 2px #070909, 0 0 0 5px #e4b24c;
  --scrim: rgba(2, 4, 4, .82);

  /* ---- status ---- */
  --live: var(--emerald-300); --stale: var(--steel-400); --warn: var(--signal-400); --danger: var(--danger-300);
  --up: var(--emerald-300); --down: var(--signal-400);

  /* ---- the balls ---- */
  --ball-1: #b3261e; --ball-2: #c9a227; --ball-3: #1f7a3a; --ball-4: #6b3f1d; --ball-5: #1f4fa3; --ball-6: #c45c86; --ball-7: #1a1a1a;
  --ball-ink: #ffffff; --ball-ink-dark: #1a1300; --ball-rim: #555f5b; --cue-ball: #f3f1ea;

  /* ---- charts (the station's: Snooker emerald, Shootout its own colour) ---- */
  --chart-1: #4fd896; --chart-1-fill: rgba(79, 216, 150, .14); --chart-2: #f0c873;
  --chart-grid: #2a3a34; --chart-band-a: rgba(255, 255, 255, .035); --chart-band-b: rgba(255, 255, 255, .015);

  /* ---- the front page's hero ---- */
  /* ---- the front page: the shade over the film ---- */
  --hero-shade: linear-gradient(180deg, rgba(7, 9, 9, .15) 0%, rgba(7, 9, 9, 0) 35%, rgba(7, 9, 9, .82) 100%);
  --solid: #000;                  /* the mask's ink: never seen */
}

/* ---- fonts: self-hosted copies of snooker-app/public/fonts (OFL). swap: text paints at once in the fallback face ---- */
@font-face { font-family: "Chakra Petch"; src: url("fonts/ChakraPetch-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/ChakraPetch-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/ChakraPetch-700i.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/BarlowSemiCondensed-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/BarlowSemiCondensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/BarlowSemiCondensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
