/* Self-hosted (OFL) so no visitor data goes to a font CDN: Inter and Oswald, latin, variable weight. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap; src: url("oswald-latin.woff2") format("woff2"); }
/* Night broadcast: one dark theme on every device, one accent, hairlines over boxes. */
:root {
  color-scheme: dark;
  --display: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --page: #08090b;
  --raise: #0f1115;
  --raise-2: #15181d;
  --hair: rgba(255, 255, 255, 0.07);
  --hair-2: rgba(255, 255, 255, 0.13);
  --ink: #f2f3f5;
  --ink-2: #b9bec7;
  --muted: #7d848f;
  --faint: #545a64;
  --accent: #e5383b;
  --link: #f2f3f5;
  --grid: rgba(255, 255, 255, 0.06);
  --axis: rgba(255, 255, 255, 0.16);
  /* data: the validated palette's dark-surface steps */
  --series-for: #3987e5;
  --series-against: #d95926;
  --league: #c3c8d0;
  --shot-ft: #3987e5;
  --shot-two: #d95926;
  --shot-three: #199e70;
  --share: #3987e5;
  --q3: #256abf;
  --q4: #86b6ef;
  --track: rgba(255, 255, 255, 0.07);
  --win: #2fbf71;
  --loss: #f05252;
  --warn: #e8b546;
  --banner-bg: #2a1214;
  --banner-ink: #ffd6d6;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.5 var(--text);
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
main, footer { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[data-tip] { cursor: help; }
[tabindex]:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* ---- header ---------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(8, 9, 11, 0.86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--hair); }
.top .bar, .top .sub { max-width: 1160px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 8px 16px; }
.top .bar { height: 54px; }
.top .sub { height: 30px; border-top: 1px solid var(--hair); justify-content: space-between; }
.season { font-family: var(--display); font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.brand { display: flex; align-items: baseline; gap: 10px; margin-right: auto; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .badge { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .14em; color: var(--accent); }
.brand .word { font-family: var(--display); font-weight: 400; font-size: 15px; text-transform: uppercase; letter-spacing: .22em; color: var(--ink-2); }
.picker select { font: 500 13px/1 var(--display); text-transform: uppercase; letter-spacing: .14em; padding: 10px 34px 10px 14px; border: 1px solid #c8292c; background-color: #c8292c; color: #fff; max-width: 52vw; appearance: none; border-radius: 0; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.picker select:hover { background-color: #b02326; border-color: #b02326; }
.picker select:focus { outline: 1px solid #fff; outline-offset: 2px; }
.picker option { background: #15181d; color: var(--ink); text-transform: none; letter-spacing: 0; }

/* Home page: every team as a large target, straight under the headline. */
.scout { margin: 26px 0 0; }
.scout h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .2em; color: var(--ink); }
.scout h2::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin: 0 10px 2px 0; vertical-align: middle; }
.scout ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair-2); border-left: 1px solid var(--hair-2); background: rgba(8, 9, 11, .55); }
.scout li { border-right: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); }
.scout a { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; padding: 14px 14px; min-height: 48px; color: var(--ink); }
.scout a:hover, .scout a:focus-visible { background: rgba(229, 56, 59, .14); text-decoration: none; color: #fff; outline: none; }
.scout b { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .14em; color: var(--accent); min-width: 3.4em; }
.scout .nm { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scout .rc { font-family: var(--display); font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.status.snapshot { cursor: help; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); display: inline-block; }
.dot.live { background: var(--win); }
.banner { max-width: 1120px; margin: 14px auto 0; padding: 10px 14px; background: var(--banner-bg); color: var(--banner-ink); font-size: 13px; }
@media (max-width: 1160px) { .banner { margin: 14px 20px 0; } }

/* ---- hero ------------------------------------------------------------ */
main { padding-top: 8px; }
.hero { position: relative; isolation: isolate; padding: 36px 0 30px; border-bottom: 1px solid var(--hair); }
.hero::before { content: ""; position: absolute; z-index: -1; top: -8px; bottom: 0; right: -16px; width: min(640px, 62%); pointer-events: none;
  background: url("hero.webp") 55% 50% / cover no-repeat; opacity: .42;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 55%, #000 88%, transparent), linear-gradient(to bottom, #000 45%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 55%, #000 88%, transparent), linear-gradient(to bottom, #000 45%, transparent);
  mask-composite: intersect; }
.kicker { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-family: var(--display); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.kicker .status { font-family: var(--text); text-transform: none; letter-spacing: .02em; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 60px; line-height: .98; letter-spacing: .005em; }
.title { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.title .code { order: 3; font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .2em; color: var(--accent); border: 1px solid rgba(229, 56, 59, .45); padding: 2px 8px 2px 10px; align-self: center; }
.title .rec { order: 2; font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--muted); }
.hero .lede { margin: 12px 0 0; color: var(--ink-2); max-width: 70ch; font-size: 15px; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 30px 0 0; border-top: 1px solid var(--hair); }
.strip .cell { padding: 16px 20px 2px 0; display: flex; flex-direction: column; }
.strip .cell + .cell { padding-left: 20px; border-left: 1px solid var(--hair); }
.strip .k { order: 2; margin-top: 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 500; }
.strip .v { order: 1; font-family: var(--display); font-weight: 500; font-size: 46px; line-height: 1; letter-spacing: -.005em; }
.strip .s { order: 3; margin-top: 2px; font-size: 12px; color: var(--muted); }
.strip .s em { font-style: normal; color: var(--ink-2); font-weight: 500; margin-left: 6px; }

.brief { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.brief li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.brief b { font-family: var(--display); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--ink); padding-top: 3px; }
.brief b::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--accent); margin: 0 9px 2px 0; vertical-align: middle; }
.hero .next { margin: 22px 0 0; font-size: 13px; color: var(--ink-2); }
.hero .next b { font-family: var(--display); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); margin-right: 10px; }
.hero .next a { color: var(--ink); font-weight: 500; }

/* ---- modules --------------------------------------------------------- */
.mod { margin: 40px 0 0; }
.mod > h2, .card > h2 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); font-family: var(--display); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .22em; color: var(--ink); }
.card { min-width: 0; margin: 0; }
.card > h2 { margin-bottom: 4px; }
.cap { font-size: 12px; margin: 0 0 12px; color: var(--muted); }
.foot { font-size: 11.5px; color: var(--faint); margin: 10px 0 0; }
.numbers-note { margin: -4px 0 16px; font-size: 13px; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: 1.15fr 1fr 1.1fr; gap: 40px; margin-top: 44px; align-items: start; }
.grid3 .mod { margin: 0; }

/* threat cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 22px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.threat-card { display: flex; align-items: center; gap: 18px; padding: 18px 20px 18px 0; min-width: 0; }
.threat-card + .threat-card { padding-left: 20px; border-left: 1px solid var(--hair); }
.jersey { flex: none; min-width: 62px; font-family: var(--display); font-weight: 400; font-size: 58px; line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); letter-spacing: -.01em; text-align: left; }
.threat-card:first-child .jersey { -webkit-text-stroke: 1px var(--accent); }
.who { min-width: 0; flex: 1; }
.who .rank { font-family: var(--display); font-size: 10.5px; font-weight: 400; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.who .rank::before { content: "Threat "; }
.who h3 { margin: 2px 0 0; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.005em; }
.nums { display: flex; gap: 16px; margin-top: 6px; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.nums b { font-family: var(--display); font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: 0; margin-right: 4px; }

/* ---- tables ---------------------------------------------------------- */
.table-wrap { overflow: hidden; }
table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--hair); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
thead th { font-size: 10px; font-weight: 500; color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .14em; border-bottom: 1px solid var(--hair-2); padding-top: 0; }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; }
tr[data-href] { cursor: pointer; transition: background .12s; }
tr[data-href]:hover td { background: var(--raise); }
td.rank { color: var(--faint); font-family: var(--display); font-weight: 400; width: 2.4em; }
td.team a { color: var(--ink); font-weight: 500; display: flex; align-items: center; gap: 12px; min-width: 0; }
td.team .code { font-family: var(--display); font-weight: 400; font-size: 11px; letter-spacing: .14em; color: var(--muted); width: 3.6em; flex: none; }
tbody td { color: var(--ink-2); }
td.strong, tr.lead td.name { color: var(--ink); font-weight: 600; }
td.name { max-width: 0; width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.results td.q { color: var(--faint); }
.results td.q.won { color: var(--ink); font-weight: 600; }
.results td.score { color: var(--ink); font-weight: 600; }
.results td a { color: var(--ink); }
.tag { display: inline-block; font-size: 9.5px; line-height: 1.6; padding: 0 6px; border: 1px solid var(--hair-2); color: var(--muted); vertical-align: 1px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.mark { font-size: 9px; margin-left: 2px; padding: 0 3px; color: var(--warn); font-weight: 600; border: 1px solid rgba(232, 181, 70, .4); }
.warn { display: inline-block; font-size: 10px; padding: 1px 8px; border: 1px solid rgba(232, 181, 70, .45); color: var(--warn); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.result { display: inline-block; min-width: 16px; font-family: var(--display); font-weight: 500; font-size: 14px; }
.result.W { color: var(--win); }
.result.L { color: var(--loss); }
.result.D { color: var(--muted); }

/* mini bars inside table cells */
.bar-col { width: 22%; min-width: 96px; }
.minibar { display: flex; align-items: center; gap: 10px; }
.minibar .v { min-width: 3.4em; text-align: right; }
.minibar .track { position: relative; flex: 1; height: 3px; background: var(--track); }
.minibar .track i { position: absolute; left: 0; top: 0; bottom: 0; }
.minibar .track i.three { background: var(--shot-three); }
.minibar .track i.share { background: var(--share); }
.minibar .track b.ref { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--league); }

/* ---- results ticker -------------------------------------------------- */
.ticker { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); border-top: 1px solid var(--hair); }
.scorebox { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hair); }
.scorebox + .scorebox { padding-left: 16px; border-left: 1px solid var(--hair); }
.scorebox.void { opacity: .6; }
.scorebox .when { display: block; font-size: 9.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 6px; }
.scorebox .line { display: flex; justify-content: space-between; font-family: var(--display); font-size: 17px; color: var(--faint); line-height: 1.4; }
.scorebox .line:hover { text-decoration: none; color: var(--ink-2); }
.scorebox .line b { font-weight: 400; letter-spacing: .1em; }
.scorebox .line.won { color: var(--ink); }
.scorebox .line.won b, .scorebox .line.won span { font-weight: 500; }

/* ---- charts and legends --------------------------------------------- */
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }
.sw { display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: 0; }
.sw.ft, .seg.ft { background: var(--shot-ft); }
.sw.two, .seg.two { background: var(--shot-two); }
.sw.three, .seg.three { background: var(--shot-three); }
.sw.for { background: var(--series-for); }
.sw.against { background: var(--series-against); }
.sw.league { height: 0; border-top: 1px dashed var(--league); width: 14px; vertical-align: 3px; }
.sw.q3, .latebar .q3 { background: var(--q3); }
.sw.q4, .latebar .q4 { background: var(--q4); }

svg.chart { display: block; width: 100%; height: auto; margin-top: 8px; }
svg.chart .grid { stroke: var(--grid); stroke-width: 1; }
svg.chart .baseline { stroke: var(--axis); stroke-width: 1; }
svg.chart .league { stroke: var(--league); stroke-width: 1.5; stroke-dasharray: 3 3; pointer-events: none; }
svg.chart .tick { fill: var(--faint); font-size: 10px; font-variant-numeric: tabular-nums; font-family: var(--text); }
svg.chart .axis-label { fill: var(--muted); font-size: 12px; font-family: var(--display); font-weight: 400; letter-spacing: .1em; }
svg.chart .axis-label.best { fill: var(--ink); font-weight: 600; }
svg.chart .bar.for { fill: var(--series-for); }
svg.chart .bar.against { fill: var(--series-against); }
svg .hit { outline: none; }
svg .hit:hover .bar, svg .hit:focus .bar { opacity: 0.8; }

.mixrow { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 10px; margin: 10px 0; font-size: 12px; }
.mixlabel { color: var(--muted); font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.mix { display: flex; gap: 2px; height: 24px; }
.mix .seg { display: flex; align-items: center; justify-content: center; min-width: 3px; font-style: normal; font-family: var(--display); font-size: 12px; font-weight: 500; color: #08090b; overflow: hidden; }
.mix .seg:hover, .mix .seg:focus { opacity: .85; }

.late { display: flex; flex-direction: column; gap: 7px; }
.laterow { display: grid; grid-template-columns: minmax(0, 46%) 1fr 28px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.latename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latename b { font-family: var(--display); font-weight: 400; color: var(--muted); letter-spacing: .04em; }
.latebar { display: flex; gap: 2px; height: 8px; }
.latebar i { display: block; height: 100%; }
.latepts { font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--ink); }
.laterow:hover .latebar, .laterow:focus .latebar { opacity: .85; }
.coverage { margin: 14px 0 0; }

.notes { font-size: 13px; color: var(--muted); }
.notes ul { margin: 0; padding: 0 0 0 16px; }
.notes li { margin: 6px 0; }
.notes strong { color: var(--ink-2); font-weight: 600; }
footer { margin-top: 56px; padding-top: 18px; padding-bottom: 32px; font-size: 11.5px; color: var(--faint); border-top: 1px solid var(--hair); }

/* ---- league hero ----------------------------------------------------- */
.league-hero h1 { font-size: 52px; }

/* ---- responsive ------------------------------------------------------ */
@media (max-width: 960px) {
  .grid3 { grid-template-columns: 1fr 1fr; gap: 32px; }
  #late { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr; }
  .threat-card { padding: 14px 0; }
  .threat-card + .threat-card { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); }
  .jersey { font-size: 46px; min-width: 54px; }
  .brief { grid-template-columns: 1fr; }
  .scout ul { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  main, footer, .top .bar, .top .sub { padding-left: 16px; padding-right: 16px; }
  .top .bar { height: 50px; }
  .brand .word .opt-wide, .opt { display: none; }
  .brand .word { font-size: 13px; letter-spacing: .18em; }
  .hero { padding: 24px 0 22px; }
  .hero h1, .league-hero h1 { font-size: 36px; }
  .hero::before { width: 78%; opacity: .3; }
  .title { gap: 12px; }
  .title .rec { font-size: 24px; }
  .strip { grid-template-columns: 1fr 1fr; margin-top: 22px; }
  .strip .cell { padding: 14px 12px 12px 0; }
  .strip .cell + .cell { padding-left: 12px; }
  .strip .cell:nth-child(3) { padding-left: 0; border-left: 0; }
  .strip .cell:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .strip .v { font-size: 34px; }
  .brief li { grid-template-columns: 80px 1fr; gap: 10px; font-size: 13.5px; }
  .grid3 { grid-template-columns: 1fr; gap: 36px; }
  .mod { margin-top: 34px; }
  th, td { padding: 8px 6px; }
  .bar-col { width: auto; min-width: 0; }
  .minibar .track { display: none; }
  .minibar .v { min-width: 0; }
  td.name { width: auto; max-width: none; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
  .threats td.num.nowrap { padding-right: 2px; }
  td.team .code { display: none; }
  .ticker { grid-template-columns: 1fr 1fr; }
  .scout ul { grid-template-columns: 1fr 1fr; }
  .scout a { grid-template-columns: 1fr auto; gap: 2px 8px; padding: 11px 12px; }
  .scout b { grid-column: 1; }
  .scout .nm { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .scout .rc { grid-column: 2; grid-row: 1; }
  .picker select { padding: 9px 30px 9px 11px; font-size: 12px; letter-spacing: .1em; }
  .scorebox:nth-child(odd) { padding-left: 0; border-left: 0; }
  .scorebox:nth-child(even) { padding-left: 16px; }
}

#tip { position: fixed; z-index: 10; pointer-events: none; max-width: min(320px, calc(100vw - 16px)); background: #15181d; color: var(--ink); border: 1px solid var(--hair-2); padding: 8px 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
#tip[hidden] { display: none; }
#tip strong { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .04em; }
#tip span { color: var(--ink-2); }
