@font-face {
  font-family: "CV Display";
  src: url("/broadcast/display.woff?v=60ab8d2cf0") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #080b11;
  --surface: #0e131c;
  --raised: #14202e;
  --line: #253243;
  --text: #f2f5fa;
  --muted: #aab7c9;
  --dim: #8494aa;
  --accent: #168cff;
  --display: "CV Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(16px, 4.3vw, 68px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 0; background: var(--ink); }
body { margin: 0; min-width: 0; color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: .65; }
img { max-width: 100%; display: block; }
svg { display: block; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.symbols { width: 0; height: 0; position: absolute; overflow: hidden; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 16px; color: var(--ink); background: var(--accent); }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.015em; text-transform: uppercase; }
.tagline { display: flex; align-items: center; gap: 9px; margin: 0 0 5px; color: var(--dim); font: 650 .67rem/1.3 var(--mono); letter-spacing: .12em; }
.slash { display: inline-block; width: 8px; height: 12px; flex: 0 0 8px; background: var(--accent); transform: skew(-20deg); margin-inline: 2px; }

.masthead { padding-top: env(safe-area-inset-top); border-bottom: 1px solid #1d2837; background: var(--ink); }
.mast-inner { min-height: 78px; max-width: 1500px; margin: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 26px; }
.wordmark { align-self: center; display: inline-flex; align-items: center; gap: 11px; justify-self: start; color: var(--text); text-decoration: none; font: 700 1.58rem/.87 var(--display); text-transform: uppercase; white-space: nowrap; }
.wordmark-accent { color: var(--accent); }
.wordmark small { display: block; margin-top: 7px; color: var(--dim); font: 600 .53rem/1.1 var(--mono); letter-spacing: .105em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--accent); color: var(--ink); border-radius: 5px; }
.brand-mark svg { width: 27px; height: 27px; }
.tabs { display: flex; gap: clamp(8px, 1.5vw, 23px); align-items: stretch; }
.tab { min-height: 44px; min-width: 64px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 4px 8px 2px; font-size: .84rem; font-weight: 650; }
.tab .icon { width: 17px; height: 17px; }
.tab[aria-current="page"] { color: var(--text); border-color: var(--accent); }
.tab[aria-current="page"] .icon { color: var(--accent); }
.connection { display: inline-flex; align-items: center; justify-self: end; align-self: center; gap: 8px; border: 1px solid var(--line); border-radius: 3px; padding: 8px 11px; color: var(--muted); font: 600 .65rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.signal { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.connection[data-state="online"] .signal { background: var(--accent); box-shadow: 0 0 10px #168cffaa; }
.connection[data-state="online"] { color: var(--text); }
.connection[data-state="delayed"] .signal { background: transparent; border: 1px solid var(--dim); }

.shell { max-width: 1500px; margin: auto; padding: clamp(18px, 2.6vw, 39px) var(--gutter) 0; }
.shell:focus { outline: 0; }
.broadcast { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(342px, 33vw, 495px); display: flex; align-items: center; background: #040608; border: 1px solid #22334b; border-top: 2px solid var(--accent); }
.broadcast-art { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center 13%; }
.broadcast::after { content: ""; position: absolute; inset: 0; z-index: -2; background: #05091128; pointer-events: none; }
.broadcast-content { width: min(68%, 680px); padding: clamp(26px, 4vw, 60px); text-shadow: 0 2px 18px #000a; }
.hero-kicker { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; color: #e1e7f1; font: 650 clamp(.61rem, .9vw, .76rem)/1.1 var(--mono); letter-spacing: .105em; text-transform: uppercase; }
.hero-kicker time { color: #bcc9da; }
.kicker-divider { width: 22px; height: 1px; background: #6d7b90; }
.hero-title { margin: 0; color: #fff; font-size: clamp(4.15rem, 8.8vw, 9rem); letter-spacing: -.025em; line-height: .82; }
.hero-title > span, .page-title > span { color: var(--accent); }
.hero-caption { margin: clamp(13px, 1.7vw, 23px) 0 0; color: #c1cddd; font-size: clamp(.9rem, 1.25vw, 1.12rem); font-weight: 500; }
.court-drawing { position: absolute; z-index: -1; width: min(34%, 340px); height: auto; right: -13px; bottom: -60px; color: #579efe; opacity: .28; pointer-events: none; fill: none; stroke: currentColor; stroke-width: .8px; }
.hero-index { display: flex; align-items: center; gap: 9px; position: absolute; bottom: 16px; right: 22px; padding: 5px 8px; background: #080b11b8; color: #c4d4e9; font: 650 .57rem/1.15 var(--mono); letter-spacing: .055em; pointer-events: none; }
.hero-index span:first-child { color: var(--accent); font: 700 1.7rem/.9 var(--display); }
.spotlight-slot { min-height: 58px; margin-top: 23px; display: flex; align-items: center; }
.spotlight-idle { font: 600 .72rem/1.45 var(--mono); color: #b7c6d9; }
.spotlight { max-width: 100%; min-height: 56px; display: inline-flex; align-items: center; padding: 8px 12px; gap: clamp(10px, 1.25vw, 19px); border: 1px solid #39618a; border-left: 3px solid var(--accent); border-radius: 3px; background: #0a1421f2; text-align: left; }
.spot-name { display: block; color: var(--dim); font: 650 .56rem/1.15 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.spot-label { display: block; margin-top: 4px; color: var(--text); font: 650 .66rem/1.1 var(--mono); text-transform: uppercase; white-space: nowrap; }
.spot-label.is-live { color: var(--accent); }
.spot-score { display: flex; align-items: center; white-space: nowrap; gap: 6px; }
.spot-score > span { display: inline-flex; align-items: baseline; gap: 5px; }
.spot-score b { font: 700 1.08rem/1 var(--display); }
.spot-score strong { font: 700 1.68rem/.8 var(--display); font-variant-numeric: tabular-nums; }
.spot-score i { font: .78rem/1 var(--mono); color: var(--dim); }
.spotlight > .icon { color: var(--accent); width: 16px; height: 16px; }

.slate-rail { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; border: 1px solid var(--line); border-top: 0; background: var(--surface); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 700px; margin: 0; }
.metrics > div { min-height: 76px; display: flex; justify-content: center; align-items: baseline; align-content: center; flex-wrap: wrap; gap: 6px 10px; border-right: 1px solid var(--line); padding: 9px 7px; }
.metrics dd { order: -1; margin: 0; color: var(--text); font: 700 2.5rem/.86 var(--display); font-variant-numeric: tabular-nums; }
.metrics dt { color: var(--muted); font: 600 .65rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.metrics .metric-live dd { color: var(--accent); }
.sync { display: flex; align-items: center; gap: 10px; padding: 5px 17px 5px 10px; color: var(--dim); font: 600 .67rem/1.25 var(--mono); text-align: right; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #111b28; }
.icon-btn .icon { width: 18px; height: 18px; }
.board-section { margin-top: clamp(31px, 4vw, 58px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin: 0 0 17px; }
.section-head.tight { margin-top: 31px; }
.section-title { margin: 0; font-size: clamp(2.05rem, 3.55vw, 3.4rem); line-height: .96; }
.segments { display: inline-flex; min-width: 0; padding: 3px; gap: 2px; align-items: stretch; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.segments button { background: transparent; border: 1px solid transparent; border-radius: 3px; padding: 7px 13px; min-height: 37px; color: var(--muted); font-size: .78rem; line-height: 1.15; font-weight: 680; text-align: center; }
.segments button[aria-pressed="true"] { background: var(--accent); color: #08121e; border-color: var(--accent); }
.game-grid, .portrait-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.game-card, .player-card, .cross-link { width: 100%; padding: 0; min-width: 0; text-align: left; position: relative; }
.game-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.game-card.is-live { box-shadow: inset 0 2px var(--accent); }
.game-card__head, .game-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 14px; min-width: 0; }
.game-card__head { border-bottom: 1px solid var(--line); }
.game-card__footer { border-top: 1px solid var(--line); color: var(--dim); font: 600 .63rem/1.25 var(--mono); }
.game-card__head > .game-clock { color: var(--muted); font: 600 .64rem/1.2 var(--mono); text-align: right; white-space: nowrap; }
.game-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 700 .66rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.game-label.is-live { color: var(--accent); }
.game-label.is-live::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.game-card__teams { display: grid; gap: 5px; padding: 13px 14px; }
.team-line { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 40px; }
.team-logo { display: block; width: 36px; height: 36px; object-fit: contain; }
.team-line .team-name, .team-line .team-record { display: block; }
.team-line .team-name { color: var(--text); font-size: .93rem; line-height: 1.15; font-weight: 720; }
.team-record { margin-top: 3px; color: var(--dim); font: 600 .63rem/1.15 var(--mono); }
.team-score { min-width: 40px; text-align: right; color: var(--text); font: 700 2.55rem/.85 var(--display); font-variant-numeric: tabular-nums; }
.game-card.is-final .team-line:not(.winner) .team-score, .game-card.is-pregame .team-score { color: var(--dim); }
.court-place { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.open-label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; text-transform: uppercase; color: var(--muted); }
.open-label .icon { width: 13px; height: 13px; color: var(--accent); }
.cross-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.cross-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); background: transparent; border-radius: 4px; padding: 14px; }
.cross-icon { display: grid; place-items: center; width: 40px; height: 40px; background: var(--raised); color: var(--accent); }
.cross-link > .icon { color: var(--accent); }
.cross-link strong, .cross-link small { display: block; }
.cross-link small { color: var(--muted); font-size: .78rem; }

.page-intro { position: relative; display: flex; justify-content: space-between; overflow: hidden; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); background: var(--surface); padding: clamp(22px, 4vw, 54px); }
.page-title { margin: 0; font-size: clamp(4rem, 8.8vw, 8rem); line-height: .84; }
.intro-copy { color: var(--muted); font-size: clamp(.87rem, 1.35vw, 1.06rem); margin: 17px 0 0; }
.page-stamp { display: block; align-self: center; color: #576d86; font: 700 clamp(2.4rem, 7vw, 6.5rem)/.8 var(--display); white-space: nowrap; pointer-events: none; }
.page-stamp span { color: var(--dim); font: 600 .65rem/1 var(--mono); }
.counter { color: var(--muted); padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; font: 600 .67rem/1.2 var(--mono); white-space: nowrap; text-transform: uppercase; }
.counter:empty { display: none; }
.calendar-panel { background: #0b1018; padding: 16px; border: 1px solid var(--line); border-top: 0; }
.date-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.date-chip { min-height: 63px; color: var(--muted); background: var(--surface); padding: 6px 4px; border: 1px solid var(--line); border-radius: 4px; text-align: center; }
.date-chip span { display: block; font: 600 .61rem/1.2 var(--mono); text-transform: uppercase; }
.date-chip strong { display: block; color: var(--text); font: 700 1.9rem/.95 var(--display); }
.date-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #08121e; }
.date-chip[aria-pressed="true"] strong { color: #08121e; }
.date-form, .settings-form { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.date-form label { width: min(100%, 220px); }
label { display: grid; gap: 5px; color: var(--muted); font-size: .8rem; font-weight: 670; }
input, select, .btn { min-height: 44px; border: 1px solid var(--line); border-radius: 4px; }
input, select { min-width: 0; width: 100%; background: #0a0f17; color: var(--text); padding: 8px 11px; font-size: 1rem; }
input::placeholder { color: var(--dim); opacity: 1; }
input[type="date"] { display: block; appearance: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 13px; background: var(--raised); color: var(--text); text-align: center; font-weight: 700; font-size: .82rem; white-space: normal; }
.btn .icon { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #08121e; }
.player-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 11px; margin-top: 15px; }
.directory-tabs button { padding: 8px 12px; min-height: 42px; }
.search-form { display: flex; align-items: center; flex: 1 1 285px; max-width: 480px; min-width: 0; gap: 8px; padding: 4px 4px 4px 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.search-form > .icon { color: var(--accent); }
.search-form input { border: 0; background: transparent; padding: 5px; }
.search-form .btn { min-width: 79px; }
.portrait-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.player-card { display: flex; flex-direction: column; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.portrait-stage { isolation: isolate; position: relative; display: grid; place-items: end center; width: 100%; aspect-ratio: 1.91; overflow: hidden; background: #101d2c; border-bottom: 1px solid var(--line); }
.portrait-stage::before, .profile-image::before { content: ""; position: absolute; z-index: -1; width: 66%; aspect-ratio: 1; border: 1px solid #315479; border-radius: 50%; bottom: -34%; right: -3%; }
.portrait-stage::after { content: ""; position: absolute; z-index: -1; height: 130%; width: 17%; top: -15%; left: 13%; border-inline: 1px solid #294767; transform: skewX(-18deg); }
.portrait-stage img { position: absolute; object-fit: contain; object-position: center bottom; width: min(99%, 360px); height: 102%; bottom: 0; left: 50%; transform: translateX(-50%); }
.portrait-grid[data-gallery="legends"] .portrait-stage { aspect-ratio: 1.65; background: #1a2330; }
.portrait-grid[data-gallery="legends"] .portrait-stage img { inset: 0; width: 100%; height: 100%; transform: none; object-fit: cover; object-position: center 31%; filter: grayscale(1) brightness(.86); }
.portrait-index { position: absolute; top: 10px; left: 10px; z-index: 1; color: #dbe8fa; background: #080b11c9; padding: 4px 6px; border-left: 2px solid var(--accent); font: 650 .6rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.player-card-content { display: flex; flex-direction: column; gap: 5px; flex: 1; width: 100%; padding: 13px 14px; }
.player-card-name { font: 700 clamp(1.5rem, 2.35vw, 2.25rem)/.98 var(--display); text-transform: uppercase; }
.player-card-meta, .player-card-fact { color: var(--muted); font-size: .81rem; line-height: 1.4; }
.player-card-fact { margin: 4px 0; color: #cbd5e3; }
.player-card-content > .open-label { font: 650 .65rem/1.2 var(--mono); margin-top: auto; padding-top: 6px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.setting-card { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: clamp(15px, 2.6vw, 35px); }
.setting-card > p:not(.tagline) { color: var(--muted); max-width: 45ch; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.empty-state, .skeleton { grid-column: 1 / -1; display: grid; justify-items: center; align-content: center; min-height: 141px; gap: 7px; padding: 17px; border: 1px dashed var(--line); background: #0b1018; text-align: center; color: var(--muted); border-radius: 4px; }
.empty-state .icon { width: 30px; height: 30px; color: var(--accent); }
.empty-state h3, .empty-state p { margin: 0; }
.empty-state h3 { color: var(--text); font: 700 1.5rem/1.14 var(--display); text-transform: uppercase; }
.empty-state p { font-size: .84rem; }
.empty-state .btn { margin-top: 6px; }
.skeleton::before { content: ""; width: 1.4em; height: 1.4em; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.footer { display: flex; align-items: baseline; gap: 11px; border-top: 1px solid var(--line); padding: 17px 0 22px; margin-top: 30px; color: var(--dim); }
.footer p { font-size: .73rem; margin: 0; }
.footer-mark { font: 700 .68rem/1 var(--mono); white-space: nowrap; color: var(--accent); }

.modal { max-width: min(calc(100vw - 32px), 920px); width: 100%; max-height: min(850px, calc(100vh - 42px)); max-height: min(850px, calc(100dvh - 42px)); margin: auto; padding: 0; border: 1px solid #3a4d63; border-top: 2px solid var(--accent); border-radius: 6px; background: var(--ink); color: var(--text); }
.modal::backdrop { background: #02060bc7; backdrop-filter: blur(4px); }
.sheet-head { position: sticky; top: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--ink); border-bottom: 1px solid var(--line); padding: 13px clamp(14px, 3vw, 26px); }
.sheet-head h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.55rem); line-height: .96; }
.sheet-body { padding: clamp(12px, 2.8vw, 24px); }
.match-scorebar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; gap: 12px; padding: 17px 10px; background: var(--surface); border: 1px solid var(--line); }
.match-team { display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 0; }
.match-team .team-logo { width: 63px; height: 63px; }
.match-team b { font-size: .85rem; }
.match-team small { color: var(--dim); font: 600 .65rem/1.15 var(--mono); text-transform: uppercase; }
.match-team .match-abbr { display: none; }
.match-center strong { display: block; white-space: nowrap; font: 700 clamp(2.55rem, 8vw, 4.85rem)/.85 var(--display); font-variant-numeric: tabular-nums; }
.match-center strong i { color: var(--dim); font-style: normal; padding: 0 .08em; }
.match-center .game-label { margin-top: 10px; justify-content: center; }
.match-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 10px; margin: 9px 0 14px; color: var(--dim); font: 600 .69rem/1.25 var(--mono); text-align: center; }
.period-table, .box-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.period-table { margin-bottom: 15px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.period-table table { text-align: right; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: #c9d4e2; background: var(--raised); font: 650 .67rem/1.3 var(--mono); }
td { background: var(--surface); font-size: .82rem; }
tr:last-child td { border-bottom: 0; }
.period-table th:first-child, .period-table td:first-child { text-align: left; }
.box-head { align-items: center; margin: 20px 0 9px; }
.box-head .section-title { font-size: clamp(1.6rem, 4vw, 2.35rem); }
.box-scroll table { min-width: 630px; text-align: right; }
.box-scroll tr > :first-child { position: sticky; z-index: 1; left: 0; text-align: left; box-shadow: 1px 0 #253243; }
.box-scroll .box-pts { color: var(--text); font-weight: 800; }
.box-person { display: flex; align-items: center; gap: 7px; min-height: 35px; color: var(--text); background: none; border: 0; padding: 0; text-align: left; font-weight: 680; font-size: .8rem; }
.box-person small { display: block; color: var(--dim); font: 500 .62rem/1.2 var(--mono); }
.box-headshot { width: 33px; height: 33px; border-radius: 3px; background: var(--raised); object-fit: contain; }
.box-team button { padding-inline: 13px; }
.profile-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: 1px solid var(--line); background: var(--surface); }
.profile-image { isolation: isolate; position: relative; display: grid; place-items: end center; min-height: 186px; overflow: hidden; background: #101d2c; aspect-ratio: 1.59; }
.profile-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; object-position: center bottom; }
.profile-copy { position: relative; padding: clamp(12px, 3vw, 27px) clamp(48px, 5vw, 60px) clamp(11px, 3vw, 27px) clamp(11px, 3vw, 27px); display: grid; align-content: center; min-width: 0; }
.profile-copy h3 { overflow-wrap: anywhere; font-size: clamp(1.9rem, 6vw, 4.25rem); line-height: .9; margin: 2px 0 8px; }
.profile-copy p { color: var(--muted); font-size: .81rem; margin: 0; }
.profile-copy .profile-bio { margin-top: 6px; color: var(--dim); font-size: .73rem; }
.favorite-toggle { position: absolute; top: 9px; right: 9px; }
.favorite-toggle[aria-pressed="true"] .icon { fill: var(--accent); stroke: var(--accent); }
.average-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 17px; }
.avg { background: var(--surface); padding: 13px 7px; border: 1px solid var(--line); border-top: 2px solid var(--accent); text-align: center; }
.avg strong { display: block; font: 700 clamp(2.15rem, 5.5vw, 3.5rem)/.85 var(--display); font-variant-numeric: tabular-nums; }
.avg small { color: var(--muted); font: 650 .65rem/1.3 var(--mono); }
.stat-head { align-items: end; margin-bottom: 10px; }
.stat-head .section-title { font-size: clamp(1.62rem, 4vw, 2.5rem); }
.stat-head label { min-width: 110px; }
.season-note { color: var(--muted); font-size: .77rem; margin: 3px 0 10px; }
.stat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 0; border: 1px solid var(--line); background: var(--line); }
.statline { display: flex; justify-content: space-between; align-items: center; gap: 7px; background: var(--surface); min-height: 40px; padding: 7px 10px; color: var(--muted); font-size: .8rem; }
.statline b { color: var(--text); font-variant-numeric: tabular-nums; }
.toast { position: fixed; z-index: 8; bottom: calc(22px + env(safe-area-inset-bottom)); left: 50%; max-width: calc(100vw - 32px); width: max-content; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 11px 16px; border: 1px solid #4b7098; border-left: 3px solid var(--accent); background: var(--raised); border-radius: 4px; transition: opacity .16s ease, transform .16s ease; font-weight: 650; font-size: .83rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.no-script { margin: 14px; text-align: center; }
.tab, a.game-card, a.player-card, .btn { text-decoration: none; }
.feed-note { color: var(--dim); font: 500 .69rem/1.6 var(--mono); overflow-wrap: anywhere; }
#feedNotice { margin: -6px 0 15px; }
.feed-notice { padding: 17px; border: 1px solid #667896; background: var(--raised); margin-bottom: 18px; }
.feed-notice h2 { margin: 0; font-size: 1.1rem; }
.full-row { grid-column: 1 / -1; }
.watch-filter { display: inline-flex; gap: 9px; align-items: center; color: var(--muted); font-size: .78rem; margin-bottom: 15px; min-height: 30px; cursor: pointer; }
.watch-filter input { width: 18px; height: 18px; accent-color: var(--accent); }
.server-card .team-line { grid-template-columns: minmax(0, 1fr) auto; }
.analysis-card { min-width: 0; margin-top: 20px; padding: clamp(15px, 2.6vw, 25px); border: 1px solid var(--line); background: var(--surface); }
.analysis-card .section-title { font-size: clamp(1.6rem, 3.5vw, 2.6rem); line-height: 1; margin: 7px 0 17px; }
.analysis-card > p:not(.tagline):not(.feed-note):not(.chart-caption), .analysis-card li { color: var(--muted); font-size: .85rem; }
.analysis-card h4 { margin: 20px 0 7px; font-size: .95rem; }
.insight-list { display: grid; gap: 12px; padding-left: 20px; margin: 17px 0; }
.insight-list li::marker { color: var(--accent); }
.metric-grid, .analytics-grid, .comparison-candidates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.metric-card { border-top: 2px solid var(--accent); padding: 15px; background: #111e2d; }
.metric-card dl { margin: 12px 0 0; }
.metric-card dl > div { display: flex; gap: 9px; align-items: center; justify-content: space-between; padding: 6px 0; }
.metric-card dt { color: var(--muted); font-size: .75rem; }
.metric-card dd { margin: 0; font: 700 1.6rem/1 var(--display); font-variant-numeric: tabular-nums; }
.methodology { margin-top: 16px; color: var(--dim); font-size: .72rem; }
.methodology summary { cursor: pointer; min-height: 30px; padding: 5px 0; color: var(--muted); }
.methodology p { margin-top: 2px; }
.probability { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 13px; }
.probability p { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .72rem; }
.probability b { color: var(--text); font-size: 1rem; }
.probability small { color: var(--dim); font-size: .69rem; }
.probability-track { display: block; width: 100%; height: 6px; background: var(--line); margin-bottom: 9px; }
.probability-track rect { fill: var(--accent); }
.shot-court { width: 100%; height: auto; max-height: 370px; background: #09131f; border: 1px solid #203b59; }
.shot-court > rect, .shot-court > path, .shot-court > circle:not(.shot) { fill: none; stroke: #345375; stroke-width: 1.4; }
.shot-court .shot.made { fill: #319fff; stroke: #a2d1ff; stroke-width: .9; opacity: .86; }
.shot-court .shot.missed { fill: #111c29; stroke: #d59e86; stroke-width: 1.4; opacity: .85; }
.chart-caption { color: var(--muted); font: 500 .64rem/1.6 var(--mono); }
.shot-key { display: inline-block; height: 8px; width: 8px; border-radius: 50%; margin-right: 4px; }
.shot-key.made { background: #319fff; }
.shot-key.missed { border: 1px solid #d59e86; margin-left: 8px; }
.tone-away { --shot-color: #49baff; }
.tone-home { --shot-color: #ffc36a; }
.tone-unknown { --shot-color: #c4ccda; }
.tone-both { --shot-color: #e3eaf5; }
.atlas-heading { display:flex; justify-content:space-between; align-items:start; gap:16px; }
.atlas-refresh { color:var(--muted); font:500 .8rem/1.5 var(--mono); text-align:right; margin:0; }
.atlas-refresh span { color:var(--dim); }
.atlas-toolbar { display:flex; flex-wrap:wrap; gap:14px; align-items:end; border-block:1px solid var(--line); padding:16px 0; }
.atlas-team-filter { display:flex; flex-wrap:wrap; gap:6px; }
.atlas-team { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:9px 13px; color:var(--muted); border:1px solid var(--line); background:#101b29; border-radius:3px; font-size:.875rem; font-weight:650; }
.atlas-team[aria-pressed="true"] { color:var(--text); border-color:var(--shot-color); background:#182a3d; }
.atlas-swatch { display:inline-block; flex-shrink:0; width:10px; height:10px; border-radius:50%; background:var(--shot-color); }
.atlas-player-label { flex:1; min-width:165px; font-size:.875rem; color:var(--muted); }
.atlas-player-label select { width:100%; min-height:44px; margin-top:4px; font-size:.875rem; }
.atlas-results button { min-height:44px; font-size:.875rem; }
.atlas-stats { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; margin:16px 0; color:var(--muted); font-size:.875rem; font-variant-numeric:tabular-nums; }
.atlas-stats b { color:var(--text); font-weight:750; }
.atlas-stats > :last-child { margin-left:auto; font:500 .75rem/1.5 var(--mono); }
.atlas-team-breakdown { margin:0 0 18px; border:1px solid var(--line); background:#0c1724; }
.atlas-team-totals { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.atlas-team-totals caption { text-align:left; padding:12px 14px 8px; color:var(--text); font-size:.875rem; font-weight:700; }
.atlas-team-totals th,.atlas-team-totals td { padding:10px 14px; text-align:right; font-size:.9375rem; }
.atlas-team-totals thead th { color:var(--muted); font-size:.875rem; font-weight:500; }
.atlas-team-totals tr > :first-child { text-align:left; }
.atlas-team-totals tbody tr { border-top:1px solid var(--line); }
.atlas-team-totals tbody th { border-left:3px solid var(--shot-color); color:var(--shot-color); }
.team-summary-name { display:inline-flex; gap:8px; align-items:center; }
.atlas-team-totals td { color:var(--text); font-weight:650; }
.atlas-team-totals td small { display:block; color:var(--muted); font-size:.75rem; font-weight:400; }
.atlas-summary-note { margin:0; padding:9px 14px 12px; color:var(--dim); font-size:.8125rem; line-height:1.5; border-top:1px solid var(--line); }
@media (max-width:520px) {
  .atlas-team-totals th,.atlas-team-totals td { padding:10px 5px; font-size:.875rem; }
  .atlas-team-totals thead th { font-size:.875rem; }
  .atlas-team-totals caption { padding:12px 9px 8px; }
  .atlas-team-totals tbody th { padding-left:7px; }
  .team-summary-name { gap:5px; }
  .team-summary-name .atlas-swatch { width:8px; height:8px; }
  .atlas-summary-note { padding-inline:9px; }
}
.atlas-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(235px,.65fr); gap:20px; align-items:start; }
.atlas-map,.atlas-sidebar { min-width:0; }
.shot-court.interactive { height:auto; max-height:640px; width:100%; overflow:visible; padding:10px; }
.court-lines { fill:none; stroke:#375779; stroke-width:1.3; }
.shot-target { cursor:pointer; outline:none; }
.shot-target .shot-hit { fill:transparent; stroke:none; }
.shot-target .shot { stroke:var(--shot-color); stroke-width:1.6; }
.shot-target .shot.made { fill:var(--shot-color); stroke:var(--shot-color); opacity:1; }
.shot-target .shot.missed { fill:#09131f; stroke:var(--shot-color); opacity:.62; }
.shot-target .shot.mixed { fill:#152434; stroke:var(--shot-color); stroke-dasharray:3 1.5; }
.shot-target.tone-both .shot { stroke:#49baff; }
.shot-target.tone-both .shot.made { fill:#20344b; }
.shot-team-half { fill:none; stroke:#ffc36a; stroke-width:2.5; }
.shot-value { fill:#06111d; font:750 10px/1 sans-serif; pointer-events:none; user-select:none; }
.shot-target.tone-both .shot-value,.shot-value.count { fill:#f5f8ff; }
.shot-target:not(.tone-both) .shot.made + .shot-value.count { fill:#06111d; }
.shot-target:hover .shot,.shot-target:focus-visible .shot,.shot-target.is-selected .shot { stroke:#fff; stroke-width:3; opacity:1; filter:drop-shadow(0 0 3px #ffffff66); }
.atlas-legend { display:flex; flex-wrap:wrap; align-items:center; gap:7px; color:var(--muted); font-size:.8125rem; line-height:1.6; }
.legend-made,.legend-cluster { display:inline-grid; place-items:center; width:19px; height:19px; border-radius:50%; background:#49baff; color:#06111d; font-size:.75rem; font-weight:800; }
.legend-miss { width:14px; height:14px; border:1.5px solid #ffc36a; border-radius:50%; margin-left:8px; }
.legend-cluster { margin-left:8px; background:#182a3d; border:1px solid #dfe8f6; color:#dfe8f6; }
.atlas-readout { min-height:64px; padding:12px; border-left:2px solid var(--accent); background:#102033; color:var(--text); font-size:.875rem; line-height:1.5; }
.atlas-sidebar h4 { font-size:1rem; margin:16px 0 8px; color:var(--text); }
.atlas-sidebar .atlas-hint { color:var(--muted); font-size:.875rem; line-height:1.5; margin:0 0 12px; }
.atlas-location { border:1px solid #35516f; padding:13px; background:#101d2b; }
.location-heading { display:flex; justify-content:space-between; align-items:start; gap:10px; }
.location-heading h4 { margin:8px 0 0; }
.location-heading .tagline { font-size:.75rem; letter-spacing:.04em; }
.location-group { margin:14px 0; border-top:1px solid var(--line); padding-top:12px; }
.location-group h5 { color:var(--shot-color); display:flex; align-items:center; gap:8px; margin:0 0 8px; font-size:.875rem; }
.atlas-log { max-height:370px; overflow-y:auto; overscroll-behavior:contain; scrollbar-color:#385578 #0c1724; padding-right:3px; }
.atlas-shot-row { display:flex; align-items:center; gap:9px; width:100%; min-height:59px; padding:9px 5px; border:0; border-bottom:1px solid var(--line); background:none; color:var(--text); text-align:left; font-size:.875rem; }
.atlas-shot-row:hover,.atlas-shot-row:focus-visible { background:#19304a; }
.atlas-shot-row > span:nth-child(2) { flex:1; min-width:0; }
.atlas-shot-row b { display:block; overflow-wrap:anywhere; font-size:.875rem; line-height:1.3; }
.atlas-shot-row small { display:block; color:var(--muted); font-size:.75rem; margin-top:5px; }
.atlas-shot-result { min-width:32px; min-height:32px; display:grid; place-items:center; border-radius:50%; border:1px solid var(--shot-color); color:var(--shot-color); font:650 .8125rem/1 var(--mono); }
.atlas-shot-result.made { background:var(--shot-color); color:#07111e; border:0; }
.atlas-shot-result.missed { font-size:.6875rem; opacity:.75; }
.atlas-row-action { color:var(--muted); font-size:.75rem; max-width:42px; text-align:right; }
.atlas-more { width:100%; margin-top:12px; min-height:44px; }
.shot-atlas .atlas-method { font-size:.8125rem; line-height:1.6; margin:18px 0 0; padding-top:15px; border-top:1px solid var(--line); }
.shot-player-context { border:1px solid var(--shot-color); border-left:3px solid var(--shot-color); padding:16px; margin:0 0 18px; background:#112033; }
.shot-player-context .tagline { font-size:.75rem; }
.shot-player-context > div { display:flex; align-items:center; gap:18px; margin-top:10px; flex-wrap:wrap; }
.shot-player-context strong { color:var(--shot-color); font:700 2rem/1 var(--display); text-transform:uppercase; }
.shot-player-context b { color:var(--text); font-size:1rem; }
.shot-player-context p { color:var(--muted); font-size:.875rem; }
.shot-player-context .btn { min-height:44px; font-size:.875rem; }
@media (max-width:700px) {
  .atlas-heading { flex-direction:column; gap:0; }
  .atlas-refresh { text-align:left; font-size:.75rem; margin-bottom:14px; }
  .atlas-layout { grid-template-columns:minmax(0,1fr); }
  .atlas-team-filter,.atlas-results { width:100%; }
  .atlas-team,.atlas-results button { flex:1; }
  .atlas-player-label { flex-basis:100%; }
  .atlas-stats > :last-child { flex-basis:100%; margin-left:0; }
  .shot-court.interactive { max-height:none; }
  .atlas-log { max-height:310px; }
}
.momentum-chart { width: 100%; height: auto; margin: 24px 0 8px; overflow: visible; }
.momentum-chart path { stroke: #516580; stroke-dasharray: 5 5; fill: none; }
.momentum-chart polyline { stroke: var(--accent); fill: none; stroke-width: 2; stroke-linejoin: round; }
.clutch-list { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 12px; }
.clutch-list span { display: block; font: 500 .65rem/1.5 var(--mono); color: var(--accent); }
.efficiency-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.efficiency-rail > div { padding: 17px 10px; }
.efficiency-rail > div:not(:last-child) { border-right: 1px solid var(--line); }
.efficiency-rail strong { display: block; font: 700 clamp(1.9rem, 4vw, 3.25rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.efficiency-rail span { display: block; font: 500 .63rem/1.4 var(--mono); color: var(--dim); margin-top: 5px; }
.data-scroll { overflow-x: auto; max-width: 100%; scrollbar-color: #355273 var(--surface); }
.data-scroll table { border-collapse: collapse; width: 100%; min-width: 360px; font-variant-numeric: tabular-nums; }
.data-scroll caption { font: 700 1.8rem/1.2 var(--display); text-transform: uppercase; text-align: left; padding-bottom: 14px; color: var(--text); }
.data-scroll th, .data-scroll td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; font-size: .79rem; }
.data-scroll th { color: var(--muted); font-weight: 550; }
.data-scroll td { color: var(--text); }
.data-scroll thead th { font: 550 .64rem/1.5 var(--mono); background: #132132; }
.data-scroll tr > :first-child { text-align: left; }
.text-link { background: none; border: none; color: #68b3ff; padding: 4px 0; text-align: inherit; font: inherit; cursor: pointer; }
.team-watchlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.team-follow { min-width: 0; padding: 12px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; gap: 10px; text-align: left; }
.team-follow > span { flex: 1; min-width: 0; }
.team-follow b, .team-follow small { display: block; }
.team-follow b { font-size: .77rem; }
.team-follow small { font: 500 .62rem/1.5 var(--mono); color: var(--dim); margin-top: 3px; }
.team-follow .icon { width: 17px; height: 17px; color: var(--dim); }
.team-follow[aria-pressed="true"] { background: #10243b; border-color: var(--accent); }
.team-follow[aria-pressed="true"] .icon { color: var(--accent); fill: var(--accent); }
.comparison-form { display: grid; grid-template-columns: 1fr 1fr 160px auto; align-items: end; gap: 14px; }
.comparison-form label { min-width: 0; }
.comparison-form input { width: 100%; }
.comparison-form .btn { min-height: 44px; }
.comparison-form [hidden] { display: none !important; }
.comparison-form:has(#compareMode option[value="same"]:checked) { grid-template-columns: 1fr 1fr 170px 150px auto; }
.comparison-form select { width: 100%; min-height: 44px; }
.comparison-player-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 22px 0; }
.comparison-player { min-width: 0; padding: 18px; background: #101b29; border: 1px solid var(--line); border-top: 2px solid var(--accent); }
.comparison-player .section-title { overflow-wrap: anywhere; font-size: 1.7rem; }
.comparison-player label { display: block; color: var(--muted); font-size: .75rem; margin-top: 14px; }
.comparison-player select { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 8px; }
.compare-season-label { font-size: .8rem; color: #b7cae0; line-height: 1.6; }
.compare-column-season { display: block; color: var(--muted); font-size: .75rem; margin-top: 7px; }
.comparison-actions,.profile-compare-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.comparison-candidates .analysis-card { max-height: 460px; overflow-y: auto; }
@media(max-width: 950px) { .comparison-form:has(#compareMode option[value="same"]:checked) { grid-template-columns: 1fr 1fr; } }
@media(max-width: 700px) { .comparison-player-controls { grid-template-columns: minmax(0,1fr); } }
@media(max-width: 460px) { .comparison-form:has(#compareMode option[value="same"]:checked) { grid-template-columns: minmax(0,1fr); } }
.candidate { width: 100%; min-height: 60px; background: #111c29; border: 1px solid var(--line); padding: 11px 13px; display: block; text-align: left; margin: 8px 0; }
.candidate b, .candidate small { display: block; }
.candidate small { color: var(--muted); font-size: .72rem; margin-top: 4px; }
.candidate[aria-pressed="true"] { border-color: var(--accent); background: #122b45; }
.comparison-table th:not(:first-child), .comparison-table td { width: 33%; }
#compareOutput { min-height: 160px; }
#serverDetail { margin-bottom: 20px; }

@media (hover: hover) {
  .tab:hover, .box-person:hover { color: var(--accent); }
  .game-card, .player-card, .cross-link, .spotlight, .btn, .date-chip, .icon-btn { transition: background .15s ease, border-color .15s ease; }
  .game-card:hover, .player-card:hover, .cross-link:hover, .spotlight:hover, .date-chip:hover:not([aria-pressed="true"]), .icon-btn:hover { background: var(--raised); border-color: var(--accent); }
  .btn:hover:not(.primary), .segments button:hover:not([aria-pressed="true"]) { border-color: var(--accent); }
  .btn.primary:hover, .segments button[aria-pressed="true"]:hover { filter: brightness(1.13); }
}
@media (max-width: 950px) {
  .mast-inner { gap: 12px; }
  .tab .icon { display: none; }
  .tab { min-width: 53px; padding-inline: 6px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics dd { font-size: 2.15rem; }
  .metrics > div { min-height: 67px; }
}
@media (max-width: 700px) {
  .mast-inner { min-height: 61px; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); grid-template-columns: 1fr auto; }
  .wordmark { font-size: 1.4rem; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .wordmark small { margin-top: 6px; font-size: .48rem; }
  .connection { padding: 6px 7px; font-size: .6rem; }
  .tabs { z-index: 5; position: fixed; left: 0; bottom: 0; right: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: #080d14; }
  .tab { min-width: 0; min-height: 54px; flex-direction: column; gap: 4px; border-top: 2px solid transparent; border-bottom: 0; padding: 4px 0 6px; font-size: clamp(.59rem, 2.6vw, .72rem); line-height: 1; }
  .tab .icon { display: block; width: 18px; height: 18px; }
  .tab[aria-current="page"] { background: #101b28; }
  .shell { padding-top: 15px; padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .broadcast { align-items: end; min-height: clamp(300px, 58vw, 380px); }
  .broadcast-art { object-position: 62% 14%; }
  .broadcast::after { background: #05091150; }
  .broadcast-content { width: 100%; padding: 20px; }
  .hero-title { font-size: clamp(3.5rem, 12.6vw, 6.3rem); }
  .hero-index { display: none; }
  .spotlight-slot { min-height: 52px; margin-top: 16px; }
  .spotlight { min-height: 50px; padding: 7px 9px; }
  .metrics > div { display: grid; place-content: center; justify-items: center; min-height: 58px; text-align: center; gap: 4px; }
  .metrics dd { font-size: 1.9rem; }
  .metrics dt { font-size: .54rem; letter-spacing: 0; }
  .sync { flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 5px 7px; min-width: 51px; font-size: .57rem; }
  .sync .icon-btn { width: 42px; height: 42px; flex-basis: 42px; }
  .sync #lastUpdated { display: none; }
  .section-head { margin-bottom: 12px; }
  .game-card__head, .game-card__footer { padding-inline: 10px; }
  .game-card__teams { padding-inline: 10px; }
  .player-controls { align-items: stretch; }
  .search-form { max-width: none; }
  .page-intro { padding: 23px 15px; }
  .page-stamp { font-size: 2.35rem; align-self: start; }
  .page-stamp span { display: none; }
  .calendar-panel { padding: 10px; }
  .date-strip { gap: 3px; }
  .date-chip { min-height: 56px; padding-inline: 1px; }
  .date-chip span { font-size: .57rem; }
  .portrait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .player-card-content { padding: 10px; }
  .player-card-fact, .player-card-meta { font-size: .75rem; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .footer { margin-top: 20px; }
  .modal { margin: auto 0 0; max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - max(18px, env(safe-area-inset-top))); border-radius: 8px 8px 0 0; }
  .sheet-body { padding-bottom: calc(13px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(67px + env(safe-area-inset-bottom)); }
  .analytics-grid, .comparison-candidates { grid-template-columns: minmax(0, 1fr); }
  .comparison-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-watchlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .efficiency-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .efficiency-rail > div:nth-child(2) { border-right: 0; }
  .efficiency-rail > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .game-grid, .cross-links { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .board-section .section-head { flex-direction: column; align-items: stretch; }
  .board-section .segments button { flex: 1; min-height: 40px; padding-inline: 6px; }
  .cross-links { margin-top: 16px; }
  .page-title { font-size: clamp(3.2rem, 12vw, 4.7rem); }
  .date-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 5px; }
  .date-form label { width: 100%; }
  .date-form .btn { padding-inline: 8px; }
  .date-form .icon { display: none; }
  .match-team .team-logo { width: 42px; height: 42px; }
  .match-team .match-name { display: none; }
  .match-team .match-abbr { display: block; }
  .match-center .game-label { font-size: .61rem; white-space: normal; }
  .box-scroll tr > :first-child { min-width: 128px; }
  .profile-image { min-height: 137px; height: 100%; aspect-ratio: auto; }
  .profile-hero { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .profile-copy { padding: 12px 10px; min-height: 137px; }
  .favorite-toggle { position: static; order: 5; margin-top: 8px; width: 44px; height: 44px; }
  .profile-copy h3 { font-size: clamp(1.48rem, 6.2vw, 2.2rem); }
  .team-watchlist { grid-template-columns: minmax(0, 1fr); }
  .comparison-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 365px) {
  :root { --gutter: 11px; }
  .hero-title { font-size: clamp(3.02rem, 13vw, 3.5rem); }
  .date-form { grid-template-columns: 1fr 1fr; gap: 7px; }
  .date-form label { grid-column: 1 / -1; }
  .page-intro { padding-inline: 12px; }
  .page-stamp { display: none; }
  .directory-tabs { width: 100%; }
  .directory-tabs button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===== CourtVision on Cloudflare: legal-safe art, badges, a11y and tap-target overrides ===== */

/* Masthead: app icon art */
.brand-mark { background: none; padding: 0; overflow: hidden; border-radius: 9px; box-shadow: 0 0 0 1px #2a3d57, 0 6px 18px -6px #168cff88; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Hero: original illustration, extra legibility wash on the text side */
.broadcast::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(90deg, #04070cf2 0%, #04070cb0 34%, #04070c20 62%, transparent 100%); }
.broadcast-art { object-position: 70% 26%; }
@media (max-width: 700px) {
  .broadcast-art { object-position: 80% 30%; }
  .broadcast::before { background: linear-gradient(180deg, #04070c10 0%, #04070c66 40%, #04070cee 78%); }
}

/* Neutral team badges (no logos, no team colors) */
.team-badge { display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #1f2d40, #111a26 70%); border: 1px solid #33465f; box-shadow: inset 0 1px 0 #ffffff14; color: #e6edf7; container-type: inline-size; }
.team-badge > span { font: 700 31cqi/1 var(--mono); letter-spacing: .02em; }
@supports not (font-size: 1cqi) { .team-badge > span { font-size: .62rem; } .match-team .team-badge > span { font-size: 1rem; } }

/* Player badges: initials over an original silhouette (no photos) */
.portrait-badge { position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 30%, #1d3550 0%, #101d2c 62%); color: #dbe8fa; container-type: inline-size; }
.portrait-silhouette { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; fill: #22405f; opacity: .75; }
.portrait-initials { position: relative; font: 700 30cqi/1 var(--display); letter-spacing: .02em; color: #eef4fb; text-shadow: 0 2px 14px #000a; }
.portrait-stage .portrait-badge { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: auto; height: 96%; aspect-ratio: 1; background: none; }
.portrait-initials { transform: translateY(58%); }
.portrait-stage .portrait-initials { font-size: 21cqi; }
.profile-image .portrait-initials { font-size: 19cqi; }
.portrait-grid[data-gallery="legends"] .portrait-stage .portrait-badge { inset: auto auto 0 50%; height: 100%; filter: none; }
.portrait-grid[data-gallery="legends"] .portrait-stage { background: linear-gradient(160deg, #1a2330, #0f1620); }
.profile-image .portrait-badge { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; aspect-ratio: 1; background: none; }
.box-headshot.portrait-badge { width: 33px; height: 33px; border-radius: 50%; background: var(--raised); flex: 0 0 auto; }
.box-headshot .portrait-silhouette { display: none; }
.box-headshot .portrait-initials { font: 700 .72rem/1 var(--mono); text-shadow: none; transform: none; }

/* Tap targets >= 44px */
.segments button, .directory-tabs button, .board-section .segments button { min-height: 44px; min-width: 48px; }
.wordmark { min-height: 44px; }
.icon-btn { min-width: 44px; min-height: 44px; }
.watch-filter { min-height: 44px; padding-right: 8px; margin-bottom: 8px; }
.watch-filter input { width: 22px; height: 22px; margin: 0; }
.date-chip, .btn, .text-link { min-height: 44px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }

/* Footer + about */
.footer { align-items: flex-start; }
.footer-copy { display: grid; gap: 6px; }
.footer-copy p { font-size: .73rem; margin: 0; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { color: var(--muted); font-size: .76rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #3a4c63; }
.footer-links a:hover { color: var(--accent); }
.legal-notice { color: #c3cedd; }
.about-card .action-row { flex-wrap: wrap; }
@media (max-width: 700px) { .footer { flex-direction: column; gap: 8px; padding-bottom: calc(80px + env(safe-area-inset-bottom)); } }
.team-badge { aspect-ratio: 1; }
.team-follow > .team-badge { flex: 0 0 36px; width: 36px; height: 36px; }
