/* ============================================================
   THE VAULT — LOSFL public design system
   night-game broadcast + plaque wall + leather ledger
   ============================================================ */
:root {
  --night: #070B12;
  --navy: #101826;
  --turf-deep: #163024;
  --gold: #C4A35A;
  --gold-dim: #8C7340;
  --paper: #E7D9C4;
  --ink: #1A140E;
  --chalk: #F3EEE4;
  --mute: #8B93A1;
  --win: #7C9A6C;
  --loss: #C44536;
  --tie: #C4A35A;
  --live: #E2B857;
  --line: color-mix(in oklab, var(--gold) 28%, transparent);
  --line-soft: color-mix(in oklab, var(--gold) 14%, transparent);
  --panel: color-mix(in oklab, var(--navy) 82%, var(--night));
  --panel-2: color-mix(in oklab, var(--navy) 60%, var(--night));

  --f-display: "Big Shoulders Display", "Barlow Condensed", Impact, sans-serif;
  --f-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --bar-h: 56px;
  --tab-h: 62px;
  --gutter: 16px;
  --max: 1180px;
  --r: 4px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--night); color: var(--chalk);
  font: 16px/1.5 var(--f-body); font-variant-numeric: tabular-nums;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  min-height: 100vh;
}
body::after { /* grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px; mix-blend-mode: screen;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--gold-dim); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--live); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- type ---------- */
.display { font-family: var(--f-display); font-weight: 800; letter-spacing: -.01em; line-height: .95; }
.label { font-family: var(--f-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--mute); }
.mono { font-family: var(--f-mono); }
.num { font-family: var(--f-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.serif { font-family: var(--f-serif); }
h1, h2, h3 { margin: 0; }
h1.display { font-size: clamp(38px, 8vw, 84px); text-wrap: balance; }
[data-split] .sw { display: inline-block; white-space: nowrap; }
h2.display { font-size: clamp(26px, 4.6vw, 44px); }
h3.display { font-size: clamp(20px, 3vw, 28px); }
.lede { color: var(--mute); max-width: 62ch; }
.kicker { color: var(--gold); }
p { margin: .4em 0; }

/* ---------- chrome: broadcast bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 30; height: var(--bar-h);
  background: color-mix(in oklab, var(--night) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 0 var(--gutter);
}
.lockup { display: flex; align-items: center; gap: 10px; color: var(--chalk); }
.lockup:hover { text-decoration: none; }
.mark { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; }
.mark svg { width: 34px; height: 34px; }
.lockup .word { font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
@media (max-width: 420px) { .lockup .word { font-size: 16px; } }
.lockup .est { font-family: var(--f-label); font-size: 10px; letter-spacing: .16em; color: var(--gold-dim); text-transform: uppercase; display: block; margin-top: 2px; }
.bar-ctx { text-align: center; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--mute); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bar-right { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--mute); white-space: nowrap; }
.bar-right .pub b { color: var(--gold); font-weight: 500; }
.bar-right .pub-short { display: none; }
@media (max-width: 720px) { .bar-ctx { display: none; } .bar { grid-template-columns: auto 1fr; } .bar-right { justify-self: end; } .bar-right .pub span { display: none; } .bar-right .pub-long { display: none; } .bar-right .pub-short { display: inline; } }

/* ---------- nav: desktop tabs / mobile bottom bar ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in oklab, var(--night) 92%, transparent); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(7, 1fr);
}
.nav a .full { display: none; } .nav a .short { display: inline; }
.nav a { display: grid; place-items: center; gap: 3px; color: var(--mute); font-family: var(--f-label); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 2px 6px; min-height: 44px; text-align: center; line-height: 1.1; }
.nav a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav a.on { color: var(--gold); }
.nav a:hover { text-decoration: none; color: var(--chalk); }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .nav { position: sticky; top: var(--bar-h); bottom: auto; height: 44px; padding: 0; grid-template-columns: repeat(7, max-content); justify-content: center; gap: 4px; border-top: 0; border-bottom: 1px solid var(--line-soft); }
  .nav a .full { display: inline; } .nav a .short { display: none; }
  .nav a { grid-auto-flow: column; gap: 8px; padding: 0 18px; min-height: 44px; font-size: 12px; }
  .nav a svg { width: 16px; height: 16px; }
  .nav a.on { box-shadow: inset 0 -2px 0 var(--gold); }
}

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
main { padding-block: 22px 40px; }
.section { margin-block: 34px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 14px; }
.section-head .label { color: var(--gold); }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.hair { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.stack > * + * { margin-top: 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.right { text-align: right; }
.muted { color: var(--mute); }
.gold { color: var(--gold); }
.small { font-size: 13px; }

/* ---------- plaque ---------- */
.plaque {
  position: relative; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line);
  padding: 16px 16px 14px; border-radius: var(--r); transition: transform .18s ease, border-color .18s ease;
}
.plaque::before, .plaque::after { content: ""; position: absolute; width: 10px; height: 10px; border-color: var(--gold); border-style: solid; }
.plaque::before { top: 6px; left: 6px; border-width: 1px 0 0 1px; }
.plaque::after { bottom: 6px; right: 6px; border-width: 0 1px 1px 0; }
@media (hover: hover) { .plaque:hover { transform: translateY(-2px); border-color: var(--gold-dim); } }
.plaque .num { font-size: clamp(44px, 7vw, 72px); color: var(--chalk); line-height: .9; margin: 6px 0 4px; }
.plaque .num small { font-size: .38em; color: var(--gold); font-family: var(--f-label); letter-spacing: .1em; margin-left: 4px; }
.plaque .who { font-weight: 600; }
.plaque .prov { font-family: var(--f-mono); font-size: 11px; color: var(--mute); margin-top: 8px; }
.plaque .prov a { color: var(--gold-dim); }
.plaque .blurb { color: var(--mute); font-size: 14px; margin-top: 4px; }
.plaque.champion { border-color: var(--gold); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--gold) 20%, transparent); }
.plaque.last { border-color: color-mix(in oklab, var(--loss) 60%, var(--line)); }

/* ---------- bug (status stamp) ---------- */
.bug {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 7px 2px; border: 1px solid currentColor; border-radius: 2px; line-height: 1.2; color: var(--mute); white-space: nowrap;
}
.bug::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bug.final { color: var(--win); }
.bug.provisional { color: var(--live); }
.bug.live { color: var(--live); animation: pulse 1.4s ease-in-out infinite; }
.bug.incomplete, .bug.missing { color: var(--loss); }
.bug.scheduled, .bug.bye { color: var(--mute); }
.bug.champion { color: var(--gold); }
.bug.last { color: var(--loss); }
.bug.playoff { color: var(--gold); }
.bug.consolation { color: var(--mute); }
.bug.inferred { color: var(--mute); border-style: dashed; }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .bug.live { animation: none; } }

/* ---------- ticket (matchup) ---------- */
.ticket {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 12px 14px;
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; transition: transform .18s ease, border-color .18s ease;
}
@media (hover: hover) { .ticket:hover { transform: translateY(-2px); border-color: var(--line); } }
.ticket .t-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; color: var(--mute); }
.ticket .t-side { display: contents; }
.ticket .t-name { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.ticket .t-name .pip { margin-top: 9px; }
.ticket .t-name .tl { margin-top: 1px; width: 32px; height: 32px; }
.ticket .t-name .tl.ph { display: inline-block; border: 1px dashed var(--line); background: transparent; }
.ticket .t-id { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.ticket .t-name .nm { font-weight: 600; overflow-wrap: anywhere; line-height: 1.2; }
.ticket .t-name .mg { color: var(--mute); font-size: 11px; font-family: var(--f-mono); line-height: 1.35; overflow-wrap: anywhere; }
.ticket .t-name .mg a { color: var(--gold-dim); }
.ticket .t-name .mg b { color: var(--chalk); font-weight: 500; }
.paper .ticket .t-name .mg b { color: var(--ink); }
.paper .ticket .t-name .mg a { color: #7a5f27; }
.ticket .t-pts { font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1; text-align: right; color: var(--chalk); align-self: flex-start; padding-top: 2px; }
.ticket .t-pts .proj { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 11px; color: var(--live); margin-top: 2px; }
.ticket .t-side.w .t-pts { color: var(--chalk); }
.ticket .t-side.l .t-pts, .ticket .t-side.l .nm { color: var(--mute); }
.ticket .t-box { grid-column: 1 / -1; display: grid; gap: 2px; font-family: var(--f-mono); font-size: 11px; color: var(--mute); border-top: 1px dashed var(--line-soft); padding-top: 6px; margin-top: 4px; }
.ticket .t-box b { color: var(--chalk); font-weight: 500; }
.paper .ticket .t-box b { color: var(--ink); }
.ticket .t-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; border-top: 1px dashed var(--line-soft); padding-top: 8px; margin-top: 4px; }
.ticket .t-line { font-size: 13px; color: var(--mute); font-style: italic; }
.ticket .t-margin { font-family: var(--f-mono); font-size: 12px; color: var(--gold); white-space: nowrap; }
.tl { width: 24px; height: 24px; border-radius: 4px; object-fit: cover; vertical-align: middle; margin-right: 7px; background: color-mix(in oklab, var(--gold) 12%, transparent); flex: none; }
.tl.lg { width: 56px; height: 56px; border-radius: 6px; }
.nl { width: 20px; height: 20px; vertical-align: middle; margin-right: 5px; }
.nl.sm { width: 14px; height: 14px; margin-right: 3px; }
.hs { width: 26px; height: 19px; object-fit: cover; object-position: top; border-radius: 3px; vertical-align: middle; margin-right: 4px; background: var(--panel); }
.hs.lg { width: 72px; height: 52px; border-radius: 4px; }
table.ledger td.sp { padding: 4px 8px; }
table.ledger td.sp .spark { width: 120px; height: 28px; }
.timeline { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.timeline a { display: grid; place-items: center; gap: 2px; text-decoration: none; }
.timeline .tl { margin: 0; width: 40px; height: 40px; border-radius: 6px; }
.timeline .yr { font-family: var(--f-mono); font-size: 10px; color: var(--mute); }
.timeline .tl.ph { display: inline-block; border: 1px dashed var(--line); background: transparent; }
.idhead { display: flex; gap: 16px; align-items: flex-start; }
.idhead .tl.lg { width: 96px; height: 96px; border-radius: 8px; flex: none; }
.surv { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.surv th, .surv td { padding: 6px 6px; border-bottom: 1px solid var(--line-soft); text-align: center; white-space: nowrap; height: 44px; }
.surv th { font-family: var(--f-label); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); position: sticky; top: 0; background: var(--navy); }
.surv td.who { text-align: left; font-weight: 600; position: sticky; left: 0; background: var(--panel-2); z-index: 1; }
.surv tr.dead td { opacity: .45; }
.surv .cell { display: inline-grid; place-items: center; gap: 2px; }
.surv .cell .nl { margin: 0; width: 26px; height: 26px; }
.surv .cell.win .nl { box-shadow: 0 0 0 2px var(--win); border-radius: 50%; }
.surv .cell.loss .nl { box-shadow: 0 0 0 2px var(--loss); border-radius: 50%; filter: grayscale(.6); }
.surv .cell.pending .nl { box-shadow: 0 0 0 2px var(--live); border-radius: 50%; }
.pip { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pip.W { background: var(--win); } .pip.L { background: var(--loss); } .pip.T { background: var(--tie); } .pip.none { background: var(--mute); opacity: .4; }

/* ---------- ledger (tables) ---------- */
.well { border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--panel-2); }
table.ledger { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; font-size: 14px; }
table.ledger th, table.ledger td { padding: 0 12px; height: 44px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; vertical-align: middle; }
table.ledger th { position: sticky; top: 0; z-index: 2; background: var(--navy); font-family: var(--f-label); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-align: left; }
table.ledger td.n, table.ledger th.n { text-align: right; font-family: var(--f-mono); }
table.ledger td.rk { font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--gold); width: 44px; }
table.ledger .team { position: sticky; left: 0; z-index: 1; background: inherit; font-weight: 600; max-width: 260px; white-space: normal; min-width: 180px; }
table.ledger tr { background: var(--panel-2); }
table.ledger tr:nth-child(even) { background: color-mix(in oklab, var(--panel) 70%, var(--panel-2)); }
table.ledger tr.champ { box-shadow: inset 3px 0 0 var(--gold); }
table.ledger tr.buried { box-shadow: inset 3px 0 0 var(--loss); }
table.ledger .sub { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--mute); font-weight: 400; }
table.ledger .sub a { color: var(--mute); }
table.ledger tbody tr:last-child td { border-bottom: 0; }
.legend { font-family: var(--f-mono); font-size: 11px; color: var(--mute); margin-top: 8px; }

/* ---------- chips / year rail ---------- */
.rail { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.rail a, .rail span { flex: none; scroll-snap-align: center; font-family: var(--f-display); font-weight: 800; font-size: 22px; padding: 6px 12px; border: 1px solid var(--line-soft); border-radius: var(--r); color: var(--mute); min-height: 44px; display: inline-grid; place-items: center; }
.rail a:hover { color: var(--chalk); text-decoration: none; border-color: var(--line); }
.rail a.on { color: var(--night); background: var(--gold); border-color: var(--gold); }
.rail span.off { opacity: .4; position: relative; }
.rail span.off::after { content: "no data"; display: block; font-family: var(--f-label); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-family: var(--f-label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--mute); background: transparent; cursor: pointer; min-height: 40px; }
.chip.on { color: var(--night); background: var(--gold); border-color: var(--gold); }
.chip:hover { border-color: var(--gold-dim); color: var(--chalk); }
.chip.on:hover { color: var(--night); }

/* ---------- stamps ---------- */
.stamp { display: inline-block; font-family: var(--f-label); letter-spacing: .16em; text-transform: uppercase; font-size: 11px; padding: 4px 8px; border: 1px solid var(--gold); color: var(--gold); border-radius: 2px; transform: rotate(-1.5deg); }
.stamp.last { border-color: var(--loss); color: var(--loss); }

/* ---------- notices ---------- */
.notice { border: 1px solid var(--line-soft); border-left: 3px solid var(--gold-dim); background: var(--panel-2); padding: 10px 14px; border-radius: var(--r); font-size: 14px; color: var(--mute); }
.notice.bad { border-left-color: var(--loss); }
.notice.warn { border-left-color: var(--live); }
.gaps li { margin: 4px 0; }
.empty { border: 1px dashed var(--line); padding: 22px 16px; text-align: center; color: var(--mute); border-radius: var(--r); font-style: italic; }

/* ---------- paper surface (ledger/almanac + notes) ---------- */
.paper { background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 22px 20px; box-shadow: 0 0 0 1px var(--gold-dim); color-scheme: light; }
.paper .label { color: #6b5a3a; }
.paper a { color: #5b4726; }
.paper .serif { font-size: 18px; line-height: 1.6; }
.paper .serif p { margin: 0 0 1em; }
.paper .serif h2, .paper .serif h3 { font-family: var(--f-display); margin: 1.2em 0 .4em; }
.paper .meta { font-family: var(--f-mono); font-size: 12px; color: #6b5a3a; }
.paper hr { border: 0; border-top: 1px solid #c9b58f; }
.paper table.ledger { min-width: 0; font-size: 14px; }
.paper table.ledger th { background: #ddd0b9; color: #5b4726; }
.paper table.ledger tr { background: transparent; }
.paper table.ledger tr:nth-child(even) { background: rgba(0,0,0,.035); }
.paper table.ledger td, .paper table.ledger th { border-bottom-color: #d6c7aa; }
.paper .well { border-color: #c9b58f; background: transparent; }
.paper .ticket { background: rgba(255,255,255,.35); border-color: #c9b58f; }
.paper .ticket .t-pts, .paper .ticket .nm, .paper .ticket .t-side.w .t-pts, .paper .ticket .t-side.w .nm { color: var(--ink); }
.paper .ticket .t-side.l .t-pts, .paper .ticket .t-side.l .nm { color: #7a6a4f; }
.paper .ticket .t-head, .paper .ticket .t-line, .paper .ticket .mg, .paper .muted { color: #6b5a3a; }
.paper .ticket .t-margin { color: #7a5f27; }
.paper .bug { color: #6b5a3a; } .paper .bug.final { color: #4f6b3f; } .paper .bug.provisional, .paper .bug.live { color: #9a7413; } .paper .bug.missing { color: #a33a2c; } .paper .bug.playoff { color: #7a5f27; }
.paper .pip.W { background: #4f6b3f; } .paper .pip.L { background: #a33a2c; }
.paper .empty { border-color: #c9b58f; color: #6b5a3a; }
.paper .notice { background: rgba(255,255,255,.35); border-color: #c9b58f; color: #5b4726; }
.paper .plaque { background: #f3eadb; border-color: #c9b58f; }
.paper .plaque .num { color: var(--ink); } .paper .plaque .prov, .paper .plaque .blurb { color: #6b5a3a; }
.paper .stamp { color: #7a5f27; border-color: #7a5f27; } .paper .stamp.last { color: #a33a2c; border-color: #a33a2c; }
.paper .chip { color: #6b5a3a; border-color: #c9b58f; } .paper .chip.on { background: #7a5f27; border-color: #7a5f27; color: var(--paper); }
.paper details summary { cursor: pointer; }

/* ---------- tale of the tape ---------- */
.tape { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; }
.tape .col { text-align: center; }
.tape .col h3 { font-size: clamp(20px, 3.4vw, 34px); overflow-wrap: anywhere; }
.tape .spine { text-align: center; padding: 8px 6px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 110px; }
.tape .spine .num { font-size: clamp(34px, 8vw, 72px); color: var(--gold); }
.tape .stat { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--f-mono); font-size: 14px; }
.tape .stat .k { font-family: var(--f-label); letter-spacing: .12em; text-transform: uppercase; font-size: 11px; color: var(--mute); }
.tape .stat .a { text-align: right; } .tape .stat .b { text-align: left; }
.tape .stat .lead { color: var(--gold); font-weight: 600; }
select.sel { width: 100%; min-height: 44px; background: var(--panel); color: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); font: 15px var(--f-body); padding: 8px 10px; }

/* ---------- depth chart ---------- */
.depth { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.depth li { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 10px 12px; }
.depth .rk { font-family: var(--f-display); font-weight: 800; font-size: 34px; color: var(--gold); line-height: 1; }
.depth .nm { font-weight: 600; }
.depth .cm { grid-column: 2 / -1; font-family: var(--f-serif); font-size: 16px; color: var(--chalk); }
.depth .cm.dry { font-family: var(--f-body); font-size: 13px; color: var(--mute); }
.depth .dl { font-family: var(--f-mono); font-size: 13px; color: var(--mute); white-space: nowrap; }
.depth .dl.up { color: var(--win); } .depth .dl.dn { color: var(--loss); }
.depth .comp { grid-column: 2 / -1; font-family: var(--f-mono); font-size: 11px; color: var(--mute); display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sparkline ---------- */
.spark { width: 100%; height: 36px; display: block; }
.spark path { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.spark .pa { stroke: var(--mute); stroke-dasharray: 2 3; }
.heat { display: grid; gap: 2px; }
.heat .cell { aspect-ratio: 1; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { padding-block: 26px 10px; }
.hero .lede { margin-top: 10px; }
.hero .meta { font-family: var(--f-mono); font-size: 12px; color: var(--mute); margin-top: 8px; }
.h-split { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .h-split { grid-template-columns: 1.4fr 1fr; align-items: end; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 0 30px; font-family: var(--f-mono); font-size: 11px; color: var(--mute); }
footer p { margin: 4px 0; }

/* ---------- motion prefs ---------- */
/* reveal targets are hidden ONLY once the inline head script confirms JS + motion are on */
html.motion-ready [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) { html.motion-ready [data-reveal] { opacity: 1; transform: none; } * { transition: none !important; } }

/* ---------- matchup overlay ---------- */
.ticket.open { cursor: pointer; }
.overlay { position: fixed; inset: 0; z-index: 60; background: color-mix(in oklab, var(--night) 78%, transparent); backdrop-filter: blur(6px); display: grid; place-items: start center; overflow-y: auto; padding: 24px var(--gutter) calc(var(--tab-h) + 24px); }
.overlay-card { width: min(980px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 30px 80px #0009; padding: 18px; position: relative; }
.overlay-card::before, .overlay-card::after { content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--gold); border-style: solid; }
.overlay-card::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; } .overlay-card::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.ov-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--chalk); border-radius: 4px; font: 20px var(--f-label); cursor: pointer; }
.ov-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding-right: 48px; }
.ov-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ov-team.r { flex-direction: row-reverse; text-align: right; }
.ov-team .tl { width: 48px; height: 48px; border-radius: 6px; margin: 0; }
.ov-team .nm { font-weight: 600; overflow-wrap: anywhere; }
.ov-team .mg { font-family: var(--f-mono); font-size: 11px; color: var(--mute); }
.ov-score { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 6vw, 52px); line-height: 1; text-align: center; white-space: nowrap; }
.ov-score .vs { font-size: .45em; color: var(--gold); margin: 0 6px; }
.ov-score .sub { display: block; font: 11px var(--f-mono); color: var(--mute); margin-top: 4px; letter-spacing: .04em; }
.ov-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0 14px; font-family: var(--f-mono); font-size: 11px; color: var(--mute); }
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .ov-grid { grid-template-columns: 1fr; } .ov-head { grid-template-columns: 1fr; padding-right: 0; } .ov-team.r { flex-direction: row; text-align: left; } .ov-score { padding: 6px 0; } }
.ov-col h4 { margin: 0 0 6px; font: 600 11px var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ov-row { display: grid; grid-template-columns: 34px 30px 1fr auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line-soft); min-height: 40px; }
.ov-row .slot { font: 600 10px var(--f-label); letter-spacing: .1em; color: var(--mute); text-transform: uppercase; }
.ov-row .hs { width: 30px; height: 22px; margin: 0; }
.ov-row .nl { width: 18px; height: 18px; margin: 0; }
.ov-row .pl { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.ov-row .pl small { display: block; font: 10px var(--f-mono); color: var(--mute); }
.ov-row .pt { font-family: var(--f-display); font-weight: 800; font-size: 20px; text-align: right; }
.ov-row .pt small { display: block; font: 10px var(--f-mono); color: var(--mute); font-weight: 400; }
.ov-row.best .pt { color: var(--win); } .ov-row.zero .pt { color: var(--loss); }
.ov-row.bench { opacity: .7; }
.ov-tot { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--mute); padding: 8px 0 0; }
.ov-empty { color: var(--mute); font-style: italic; padding: 10px 0; }
body.ov-open { overflow: hidden; }
