/* ==========================================================================
   fumblescore — "Scoreboard" look
   Stadium board: black panels, amber lights, condensed sports numerals.
   Dark is the primary look; light is "the day game".
   theme-color: light #ecedef · dark #050607
   Scoped under [data-look="scoreboard"] so it can coexist with the other
   looks (default = no data-look attribute = the classic cyberpunk HUD).
   ========================================================================== */

/* self-hosted fonts (OFL licensed; license texts in fonts/) */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400-normal-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: 500;
  font-display: swap;
  src: url('../fonts/barlow-500-normal-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: url('../fonts/barlow-600-normal-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: 700;
  font-display: swap;
  src: url('../fonts/barlow-700-normal-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: 'Saira Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/saira-condensed-700-normal-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: 'Saira Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/saira-condensed-800-normal-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;
}

/* ---- 1. TOKENS ---- */

[data-look="scoreboard"] {
  color-scheme: light;
  --bg: #ecedef;
  --grid: transparent;
  --scanline: transparent;
  --card: #ffffff;
  --ink: #0e1013;
  --muted: #4b525c;
  --faint: #656c77;
  --line: #d3d6db;
  --thead: #f3f4f6;
  --row-hover: rgba(154, 88, 0, 0.06);
  --code-bg: #e3e5e8;
  --chip-bg: #ffffff;
  --chip-hover: #e3e5e8;
  --neon: #9a5800;
  --neon-soft: rgba(154, 88, 0, 0.18);
  --accent: #c42f21;
  --shadow: 0 1px 3px rgba(14, 16, 19, 0.12);
  --pill-ink: #ffffff;
  --pill-glow: transparent;
  --caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b525c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  /* ramp: 1 unlit → 2 dim → 3 amber → 4 orange → 5 red */
  --r1-bg: #d3d6db; --r1-ink: #3a4049;
  --r2-bg: #8a919c; --r2-ink: #0e1013;
  --r3-bg: #ffb21a; --r3-ink: #140e02;
  --r4-bg: #f06a1e; --r4-ink: #170602;
  --r5-bg: #c42f21; --r5-ink: #ffffff;
  --font-display: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  /* --font-mono carries meta/dates/footer; a proportional face reads better here */
  --font-mono: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* theme-local: used by the overrides below */
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

[data-look="scoreboard"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #050607;
  --grid: transparent;
  --scanline: rgba(255, 255, 255, 0.015);
  --card: #0e1013;
  --ink: #f1efea;
  --muted: #a9afb8;
  --faint: #8a919c;
  --line: #262b33;
  --thead: #16191e;
  --row-hover: rgba(255, 178, 26, 0.05);
  --code-bg: #16191e;
  --chip-bg: #16191e;
  --chip-hover: #22262c;
  --neon: #ffb21a;
  --neon-soft: rgba(255, 178, 26, 0.25);
  --accent: #ff6a3d;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  --pill-ink: #140e02;
  --pill-glow: transparent;
  --caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9afb8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  --r1-bg: #262a31; --r1-ink: #a9afb8;
  --r2-bg: #4a515c; --r2-ink: #f1efea;
  --r3-bg: #ffb21a; --r3-ink: #140e02;
  --r4-bg: #ff7a2e; --r4-ink: #170602;
  --r5-bg: #ff4b3e; --r5-ink: #170602;
}

/* ---- 2. OVERRIDES ---- */

[data-look="scoreboard"] body { font-family: var(--font-body); }

[data-look="scoreboard"] header h1 {
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  letter-spacing: 0.01em;
}
[data-look="scoreboard"] a.masthead:hover h1 { animation: none; }

[data-look="scoreboard"] .week-chip {
  clip-path: none;
  border-radius: 4px;
  min-width: 104px;
  padding: 10px 14px;
}
[data-look="scoreboard"] .week-chip.active { box-shadow: 0 0 18px var(--neon-soft); }
[data-look="scoreboard"] .wk-label { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; }
[data-look="scoreboard"] .wk-dates { font-size: 0.8rem; }

[data-look="scoreboard"] .week-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: none;
}
[data-look="scoreboard"] .toolbar select,
[data-look="scoreboard"] .theme-toggle { border-radius: 4px; }

[data-look="scoreboard"] .table-wrap { border-radius: 10px; }
[data-look="scoreboard"] .table-wrap::before,
[data-look="scoreboard"] .table-wrap::after { display: none; }

[data-look="scoreboard"] thead th { font-size: 0.82rem; letter-spacing: 0.12em; }
[data-look="scoreboard"] .teams { font-size: 1.05rem; }
[data-look="scoreboard"] .date-cell { font-variant-numeric: tabular-nums; }

[data-look="scoreboard"] .pill {
  clip-path: none;
  border-radius: 3px;
  padding: 3px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}