/* Game pages (js/pages/game.js): /<league>/game/<id> previews and recaps. Tokens in styles.css. */

/* ---------- page header ---------- */
.gp-head { padding: 30px 0 18px; }
.gp-head .eyebrow a { color: inherit; text-decoration: none; }
.gp-head .eyebrow a:hover { text-decoration: underline; }
.gp-head h1 { font-size: clamp(28px, 3.8vw, 42px); }
.gp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 10px 0 0; color: var(--text-2); font-size: 14.5px; }
.gp-dot { margin: 0 9px; color: var(--border-strong); }
.gp-tv { display: inline-flex; align-items: center; gap: 6px; }
.gp-tv b { color: var(--text); font-weight: 650; }
@media (max-width: 640px) { .gp-head { padding: 20px 0 14px; } .gp-meta { font-size: 13.5px; } .gp-dot { margin: 0 7px; } }

/* ---------- scoreboard ---------- */
.gp-board { padding: 0; overflow: hidden; }
.gp-face { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 26px 28px 22px; }
.gp-side { display: flex; align-items: center; gap: 16px; min-width: 0; color: var(--text); text-decoration: none; border-radius: var(--radius); padding: 6px; margin: -6px; }
.gp-home { flex-direction: row-reverse; text-align: right; }
.gp-side:hover .gp-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gp-side:focus-visible { outline: none; box-shadow: var(--ring); }
.gp-logo { display: grid; place-items: center; flex: none; width: 76px; height: 76px; border-radius: 22px; background: var(--logo-plate); border: 1px solid var(--border); }
.gp-img { width: 52px; height: 52px; object-fit: contain; }
span.gp-img { border-radius: 50%; background: var(--surface-3); }
.gp-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.gp-rk { font: 700 12px/1 var(--font-text); color: var(--muted); letter-spacing: .02em; }
.gp-name { font: 750 22px/1.12 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.gp-short { display: none; }
.gp-rec { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.gp-score { font: 800 56px/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--text); flex: none; }
.gp-side.is-lost .gp-score { color: var(--muted); }
.gp-side.is-lost .gp-name { color: var(--text-2); }
.gp-side.is-won .gp-score { position: relative; }
.gp-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 88px; }
.gp-vs { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); font: 700 12px/1 var(--font-text); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gp-time { font: 700 16px/1.2 var(--font-display); color: var(--text); margin-top: 4px; white-space: nowrap; }
.gp-mid-tv { font-size: 12px; color: var(--text-2); max-width: 150px; }
.gp-mid-tv b { font-weight: 650; }
.gp-fin { font: 700 11.5px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); padding: 8px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }

/* our model strip */
.gp-model { border-top: 1px solid var(--border); background: var(--surface-2); padding: 16px 28px 18px; }
.gp-model-label { margin: 0 0 8px; text-align: center; font: 700 11.5px/1.3 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: flex; justify-content: center; align-items: center; gap: 4px; }
.gp-model-label span { color: var(--muted); letter-spacing: .06em; }
.gp-wc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.gp-wc-n { display: flex; align-items: baseline; gap: 6px; font: 800 30px/1 var(--font-display); letter-spacing: -0.03em; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4.2ch; }
.gp-wc-n:last-child { justify-content: flex-end; }
.gp-wc-n.fav { color: var(--accent); }
.gp-wc-n small { font: 650 12px/1 var(--font-text); letter-spacing: .02em; color: var(--muted); }
.gp-wc-bar { display: flex; gap: 3px; height: 12px; }
.gp-wc-bar i { display: block; height: 100%; border-radius: 999px; min-width: 4px; }
.gp-wc-bar .fav { background: var(--accent); }
.gp-wc-bar .dog { background: var(--prob-other); }
.gp-kv { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; margin: 14px 0 0; }
.gp-kv > div { padding: 0 22px; min-width: 0; text-align: center; }
.gp-kv > div + div { border-left: 1px solid var(--border); }
.gp-kv dt { font-size: 12px; color: var(--muted); line-height: 1.35; }
.gp-kv dt .info { vertical-align: -3px; }
.gp-kv dd { margin: 2px 0 0; font: 700 17px/1.25 var(--font-display); letter-spacing: -0.01em; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gp-dash, .gp-of { color: var(--muted); font-weight: 500; }
.gp-verdict { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 0; margin: 12px 0 0; font-size: 14px; color: var(--text-2); text-align: center; }
.gp-vt { font-weight: 700; }
.gp-vt :is(.won, .upset) { font-weight: 700; }

@media (max-width: 900px) {
  .gp-name { font-size: 19px; }
  .gp-score { font-size: 46px; }
  .gp-logo { width: 64px; height: 64px; border-radius: 18px; }
  .gp-img { width: 44px; height: 44px; }
  .gp-side { gap: 12px; }
}
@media (max-width: 680px) {
  /* stacked: time strip on top, then the two teams side by side */
  .gp-face { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "mid mid" "a h"; gap: 12px 10px; padding: 16px 14px; }
  .gp-mid { grid-area: mid; flex-direction: row; justify-content: center; gap: 8px; min-width: 0; }
  .gp-vs { display: none; }
  .gp-time { margin: 0; font-size: 14px; }
  .gp-mid-tv { max-width: none; }
  .gp-away { grid-area: a; } .gp-home { grid-area: h; }
  .gp-side, .gp-home { flex-direction: column; text-align: center; gap: 8px; margin: 0; padding: 4px; }
  .gp-who { align-items: center; flex: none; }
  .gp-long { display: none; } .gp-short { display: inline; }
  .gp-name { font-size: 17px; }
  .gp-rec { font-size: 12px; }
  .gp-logo { width: 56px; height: 56px; border-radius: 16px; }
  .gp-img { width: 38px; height: 38px; }
  .gp-score { font-size: 42px; order: 3; }
  .gp-model { padding: 14px 14px 16px; }
  .gp-wc { gap: 10px; }
  .gp-wc-n { font-size: 22px; min-width: 0; }
  .gp-wc-n small { display: none; }
  .gp-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
  .gp-kv > div { padding: 0 8px; }
  .gp-kv > div + div { border-left: 0; }
  .gp-kv > div:nth-child(even) { border-left: 1px solid var(--border); }
  .gp-kv dd { font-size: 16px; white-space: normal; }
  .gp-verdict { font-size: 13px; gap: 4px 14px; }
  .gp-verdict .gp-dot { display: none; }
}

/* ---------- shared bits inside cards ---------- */
.gp-note { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 90ch; }
.gp-note a { font-weight: 600; }
.gp-empty { text-align: center; padding: 26px 12px; }
.gp-h3 { font: 700 11.5px/1.3 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.card-head h2 .logo { width: 22px; height: 22px; }

/* tiles: our numbers, how our model did, excitement parts */
.gp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.gp-tiles > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 14px 12px; min-width: 0; }
.gp-tiles dt { font: 650 11px/1.3 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.gp-tiles dd { margin: 4px 0 0; font: 750 20px/1.2 var(--font-display); letter-spacing: -0.015em; color: var(--text); font-variant-numeric: tabular-nums; }
.gp-tiles dd.gp-sub { margin-top: 4px; font: 400 12.5px/1.4 var(--font-text); letter-spacing: 0; color: var(--text-2); }
.gp-tiles.gp-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gp-list { margin: 0; }
.gp-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--grid); }
.gp-list > div:last-child { border-bottom: 0; }
.gp-list dt { font-size: 14px; color: var(--text-2); }
.gp-list dd { margin: 0; font: 700 16px/1.2 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }

.gp-check { margin-top: 10px; padding: 11px 14px 12px; border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.gp-check-k { display: flex; align-items: center; gap: 3px; font: 650 11px/1.3 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gp-check p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.gp-check b { color: var(--text); font-weight: 650; }

/* every model */
.model-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.model-bars li { display: grid; grid-template-columns: minmax(0, 11.5em) minmax(0, 1fr) 3.2em; align-items: center; gap: 12px; font-size: 14px; }
.mb-name { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-bar { position: relative; height: 8px; border-radius: 999px; background: var(--prob-other); overflow: hidden; }
.mb-bar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--surface); }
.mb-bar i { display: block; height: 100%; background: color-mix(in oklab, var(--accent) 55%, var(--prob-other)); border-radius: 999px 0 0 999px; }
.model-bars b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.model-bars li.mb-published { padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px solid var(--grid); }
.model-bars li.mb-published .mb-name { color: var(--accent); font-weight: 700; }
.model-bars li.mb-published b { color: var(--text); font: 750 16px/1 var(--font-display); }
.model-bars li.mb-published .mb-bar { height: 10px; }
.model-bars li.mb-published .mb-bar i { background: var(--accent); }

/* ---------- tale of the tape: butterfly table ---------- */
.gp-tape { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; table-layout: fixed; }
.gp-tape thead th { padding: 0 0 10px; border-bottom: 1px solid var(--border-strong); font: 700 14px/1.2 var(--font-text); color: var(--text); white-space: nowrap; }
.gp-tape thead th:nth-child(2) { width: 13.5em; }
.gp-tape .tp-team { display: inline-flex; align-items: center; gap: 8px; }
.gp-tape thead .tp-a { text-align: right; }
.gp-tape thead .tp-h { text-align: left; }
.gp-tape tbody th { padding: 8px 10px; text-align: center; font-size: 13px; font-weight: 600; color: var(--text-2); line-height: 1.3; }
.gp-tape tbody th .info { vertical-align: -2px; }
.gp-tape tbody td { padding: 7px 0; }
.gp-tape tbody tr:not(.tp-group) > * { border-bottom: 1px solid var(--grid); }
.gp-tape tbody tr:hover > * { background: var(--row-hover); }
.gp-tape tr.tp-group th { padding: 18px 0 7px; text-align: left; font: 700 11px/1.2 var(--font-text); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); background: none !important; }
.gp-tape tbody tr:first-child.tp-group th { padding-top: 12px; }
.tp-cell { display: flex; align-items: center; gap: 12px; }
.tp-a .tp-cell { justify-content: flex-end; }
.tp-v { display: inline-flex; align-items: baseline; gap: 5px; font-weight: 550; color: var(--text); white-space: nowrap; }
.tp-a .tp-v { flex-direction: row-reverse; }
.tp-v small { font-size: 11px; color: var(--muted); font-weight: 500; min-width: 3ch; }
.tp-a .tp-v small { text-align: right; }
.tp-bar { flex: 1; display: flex; height: 6px; border-radius: 999px; background: var(--grid); overflow: hidden; min-width: 24px; max-width: 220px; }
.tp-a .tp-bar { justify-content: flex-end; }
.tp-bar.none { visibility: hidden; }
.tp-bar i { display: block; height: 100%; border-radius: 999px; background: var(--border-strong); }
td.edge .tp-v { font-weight: 800; color: var(--accent); }
td.edge .tp-bar.none { visibility: hidden; }
.tp-bar i { background: var(--accent); }
.gp-tape-text td { padding: 9px 0; }
.gp-tape-text .tp-v { white-space: normal; display: block; font-weight: 600; }
.gp-tape-text .tp-a .tp-v { text-align: right; }
.gp-backup { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.gp-tape-box .tp-v small { min-width: 0; }
@media (max-width: 640px) {
  .gp-tape thead th:nth-child(2) { width: 8.4em; }
  .gp-tape tbody th { font-size: 12px; padding: 8px 6px; }
  .tp-cell { gap: 7px; }
  .tp-bar { min-width: 14px; height: 5px; }
  .tp-v { flex-direction: column !important; align-items: flex-end; gap: 0; }
  .tp-h .tp-v { align-items: flex-start; }
  .tp-v small { min-width: 0; font-size: 10.5px; }
  .gp-tape thead .logo { display: none; }
}

/* largest gaps, above the tape */
.tp-gaps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -2px 0 16px; }
.tp-gaps-l { font: 700 11px/1.2 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.tp-gap { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: 13px; }
.tp-gap .logo { width: 18px; height: 18px; }
.tp-gap .hint { font-size: 12px; color: var(--text-2); }

/* ---------- recent form ---------- */
.gp-strip { display: inline-flex; gap: 3px; }
.gp-strip i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; font: 700 10px/1 var(--font-text); font-style: normal; color: #fff; }
.gp-strip .r-W, .gp-res.r-W { background: var(--good-text); }
.gp-strip .r-L, .gp-res.r-L { background: var(--critical); }
.gp-strip .r-T, .gp-res.r-T { background: var(--muted); }
:root[data-theme="dark"] .gp-strip i, :root[data-theme="dark"] .gp-res { color: #0d1015; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gp-strip i, :root:not([data-theme="light"]) .gp-res { color: #0d1015; } }
.gp-form-key { display: flex; justify-content: space-between; margin: -6px 0 4px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.gp-form { list-style: none; margin: 0; padding: 0; }
.gp-form li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 4.6em 3.6em; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--grid); font-size: 14px; min-height: 42px; }
.gp-form li:last-child { border-bottom: 0; }
.gp-res { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 11.5px; font-weight: 800; color: #fff; }
.gp-form-opp { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); text-decoration: none; }
.gp-form-opp > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-form-opp:hover > span { text-decoration: underline; }
.gp-form-score { font-weight: 700; color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums; }
a.gp-form-score:hover { color: var(--accent); text-decoration: underline; }
.gp-form-p { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.gp-upset { font-size: 10.5px; font-weight: 700; color: var(--critical); text-transform: uppercase; letter-spacing: .04em; }
.gp-form-date { text-align: right; color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) { .gp-form-date { display: none; } .gp-form li { grid-template-columns: auto minmax(0, 1fr) auto 4.2em; gap: 8px; } }

/* ---------- head to head ---------- */
.gp-h2h-sum { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin-bottom: 14px; }
.gp-h2h-sum p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.gp-h2h-sum p b { color: var(--text); }
.gp-h2h-n { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.gp-h2h-n span { display: inline-flex; align-items: center; gap: 8px; }
.gp-h2h-n b { font: 800 28px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gp-h2h-n i { font-style: normal; color: var(--muted); }
.gp-h2h-w { display: inline-flex; align-items: center; gap: 6px; }
.gp-h2h .logo { width: 20px; height: 20px; }

/* ---------- who's missing / injuries ---------- */
.miss-grid, .inj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 640px) { .miss-grid, .inj-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.miss-team h3, .inj-side h3, .pf-side h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.miss-total { margin-left: auto; font: 650 13px/1 var(--font-text); color: var(--critical); font-variant-numeric: tabular-nums; }
.miss-list, .inj-list, .pl-list { list-style: none; margin: 0; padding: 0; }
.miss-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--grid); }
.miss-list li:last-child, .inj-list li:last-child, .pl-list li:last-child { border-bottom: 0; }
.miss-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.miss-name { font-weight: 650; }
.miss-name a { color: var(--text); text-decoration: none; }
.miss-name a:hover { color: var(--accent); text-decoration: underline; }
.miss-st { font-size: 12.5px; color: var(--muted); }
.miss-imp { font: 750 17px/1 var(--font-display); color: var(--critical); font-variant-numeric: tabular-nums; }
.miss-imp.pos, .miss-total.pos { color: var(--good-text); }
.miss-full { margin: 10px 0 0; color: var(--text-2); font-size: 14px; }
.miss-already { margin: 8px 0 0; }
.inj-list li { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--grid); font-size: 14px; line-height: 1.35; }
.inj-st { font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: capitalize; }
.inj-st.inj-out { color: var(--critical); }
.inj-st.inj-q { color: color-mix(in oklab, var(--series-2) 75%, var(--text)); }
.inj-name { min-width: 0; overflow-wrap: anywhere; }
.pl-list li { padding: 6px 0; border-bottom: 1px solid var(--grid); font-size: 14px; line-height: 1.4; }
.pl-stats { font-variant-numeric: tabular-nums; }
.sit-p { margin: 0 0 10px; }
table.kv th { text-align: left; font-weight: 600; color: var(--text-2); }
.sit-more { margin-top: 10px; }
.sit-more summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 650; padding: 7px 0; }

/* ---------- recap: win probability ---------- */
.wp-chart { margin-top: 4px; touch-action: pan-y; }
.wp-chart .wp-half.h { fill: var(--series-1); fill-opacity: .035; }
.wp-chart .wp-half.a { fill: var(--series-2); fill-opacity: .035; }
.wp-chart .wp-mid { stroke: var(--border-strong); stroke-width: 1; }
.wp-chart .wp-period { stroke-dasharray: 3 3; }
.wp-chart .wp-side { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.wp-chart .wp-side.h { fill: color-mix(in oklab, var(--series-1) 80%, var(--text)); }
.wp-chart .wp-side.a { fill: color-mix(in oklab, var(--series-2) 75%, var(--text)); }
.wp-chart .wp-num { fill: #fff; font-size: 11px; font-weight: 800; pointer-events: none; }
:root[data-theme="dark"] .wp-chart .wp-num { fill: #0d1015; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wp-chart .wp-num { fill: #0d1015; } }
.swing-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.swing-list li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); font-size: 14px; line-height: 1.35; }
.sw-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sw-body b { font-variant-numeric: tabular-nums; }
.sw-when { font-size: 12.5px; color: var(--text-2); }
.sw-num { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 11.5px; font-weight: 800; background: var(--muted); }
.sw-num.home { background: var(--series-1); }
.sw-num.away { background: var(--series-2); }
.sw-num.run { background: var(--text-2); color: var(--surface); }
:root[data-theme="dark"] .sw-num:is(.home, .away) { color: #0d1015; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sw-num:is(.home, .away) { color: #0d1015; } }

/* ---------- recap: top performers ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 640px) { .pf-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.pf-list { list-style: none; margin: 0; padding: 0; }
.pf-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--grid); }
.pf-list li:last-child { border-bottom: 0; }
.pf-pts { display: flex; flex-direction: column; align-items: center; flex: none; width: 52px; padding: 6px 0 5px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.pf-pts b { font: 800 22px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pf-pts small { font: 700 9.5px/1.2 var(--font-text); letter-spacing: .08em; color: var(--muted); margin-top: 2px; }
.pf-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-name { font-weight: 650; font-size: 15px; }
.pf-name a { color: var(--text); text-decoration: none; }
.pf-name a:hover { color: var(--accent); text-decoration: underline; }
.pf-pos { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pf-line { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---------- recap: player box score ---------- */
.bx-seg button { gap: 6px; min-height: 36px; }
.bx-seg .logo { width: 18px; height: 18px; }
.bx-wrap { border: 1px solid var(--border); border-radius: var(--radius); }
table.bx { font-size: 13.5px; min-width: 640px; }
table.bx thead th { background: var(--surface-2); font-size: 11.5px; letter-spacing: .04em; padding: 9px 8px; border-bottom: 1px solid var(--border-strong); }
table.bx td { padding: 8px; }
table.data.bx th:first-child, table.data.bx td:first-child { padding-left: 12px; }
table.bx .bx-name { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; font-weight: 600; white-space: nowrap; box-shadow: inset -1px 0 0 var(--grid); min-width: 150px; }
table.bx thead .bx-name { background: var(--surface-2); z-index: 2; }
table.data.bx tbody th.bx-name { text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--text); }
table.bx tbody th.bx-name { border-bottom: 1px solid var(--grid); padding: 8px 10px 8px 12px; }
table.bx .bx-name a { color: var(--text); text-decoration: none; }
table.bx .bx-name a:hover { color: var(--accent); text-decoration: underline; }
table.bx .bx-name small { margin-left: 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
table.bx tbody tr:hover .bx-name { background: var(--row-hover); }
table.bx tr.bx-group th { position: sticky; left: 0; text-align: left; padding: 10px 12px 6px; font: 700 10.5px/1.2 var(--font-text); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--grid); }
table.bx tr.bx-total > * { border-top: 1px solid var(--border-strong); background: var(--surface-2); font-weight: 650; }
table.bx tr.bx-total .bx-name { background: var(--surface-2); }
.bx-card .card-head { margin-bottom: 12px; }
@media (max-width: 640px) { table.bx .bx-name { min-width: 128px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; } table.bx .bx-name small { display: none; } }

/* scoring summary (football, hockey) */
.sc-list { list-style: none; margin: 0; padding: 0; }
.sc-list li { display: grid; grid-template-columns: 6.5em auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--grid); font-size: 14px; }
.sc-list li:last-child { border-bottom: 0; }
.sc-t { color: var(--muted); font-size: 13px; }
.sc-team { display: inline-flex; align-items: center; gap: 6px; min-width: 3.5em; }
.sc-what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.sc-score { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .sc-list li { grid-template-columns: 5.6em auto minmax(0, 1fr) auto; gap: 6px; font-size: 13px; } }

/* ---------- Excitement Index ---------- */
.xi-badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; line-height: 1.6; white-space: nowrap;
  background: var(--surface-3, var(--surface-2)); color: var(--text-2); font-variant-numeric: tabular-nums; }
.xi-badge.xi-mid { background: var(--accent-soft); color: var(--accent); }
.xi-badge.xi-hi { background: var(--critical-soft); color: var(--critical); }
.game .result { align-items: center; gap: 8px; flex-wrap: wrap; }
.xi-top { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.xi-score { display: flex; align-items: baseline; gap: 4px; }
.xi-score b { font: 800 48px/1 var(--font-display, inherit); letter-spacing: -0.03em; }
.xi-score span { color: var(--muted); font-weight: 650; }
.xi-score.xi-hi b { color: var(--critical); }
.xi-score.xi-mid b { color: var(--accent); }
.xi-meta { flex: 1; min-width: 0; display: grid; gap: 8px; }
.xi-meter { height: 8px; border-radius: 999px; background: var(--prob-other); overflow: hidden; }
.xi-meter i { display: block; height: 100%; border-radius: 999px; background: var(--muted); }
.xi-meter.xi-mid i { background: var(--accent); }
.xi-meter.xi-hi i { background: var(--critical); }

/* ---------- game cards elsewhere on the site ---------- */
.game[data-href] { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.game[data-href]:hover { box-shadow: var(--shadow-sm, 0 2px 10px rgba(0,0,0,.08)); }
a.mid { color: inherit; text-decoration: none; }
a.mid:hover .mu-cta { text-decoration: underline; }
.mu-cta { display: block; font-size: 11.5px; font-weight: 700; color: var(--accent); margin-top: 2px; letter-spacing: .02em; }

@media (prefers-reduced-motion: reduce) { .game[data-href] { transition: none; } }

/* ---------- preview: the story, players to watch, our model card, numbers crowd ---------- */
.gp-story { margin: 0; padding: 16px 28px 20px; border-top: 1px solid var(--border); font-size: 15.5px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.gp-model-card .gp-model { border-top: 0; }
.gp-rk-now { font-weight: 500; letter-spacing: 0; text-transform: none; }
.gp-latest { font: 600 10px/1 var(--font-text); color: var(--muted); letter-spacing: .02em; align-self: center; margin-right: 3px; white-space: nowrap; }

.pw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pw-side h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.pw-list { list-style: none; margin: 0; padding: 0; }
.pw-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--grid); }
.pw-list li:last-child { border-bottom: 0; }
.pw-imp { display: flex; flex-direction: column; align-items: center; min-width: 3.4em; line-height: 1; }
.pw-imp b { font: 750 18px/1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.pw-imp small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.pw-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pw-name { font-weight: 650; }
.pw-name a { color: var(--text); text-decoration: none; }
.pw-name a:hover { color: var(--accent); text-decoration: underline; }
.pw-pos { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pw-line { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pw-st { color: var(--critical); font-weight: 600; }

.gp-numbers { margin: 0 0 var(--gap, 20px); }
.gp-numbers > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 20px 16px 44px; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 14px); }
.gp-numbers > summary::-webkit-details-marker { display: none; }
.gp-numbers > summary::before { content: ""; position: absolute; left: 20px; top: 22px; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.gp-numbers[open] > summary::before { transform: rotate(45deg); top: 20px; }
.gp-numbers > summary:hover { border-color: var(--border-strong); }
.gp-numbers > summary:focus-visible { outline: none; box-shadow: var(--ring); }
.gp-numbers-t { font: 700 17px/1.3 var(--font-display); color: var(--text); }
.gp-numbers-s { font-size: 13px; color: var(--muted); }
.gp-numbers-body { margin-top: 14px; display: grid; gap: var(--gap, 20px); }
.gp-numbers-body > .card { margin: 0; }
@media (prefers-reduced-motion: reduce) { .gp-numbers > summary::before { transition: none; } }
@media (max-width: 680px) {
  .gp-story { padding: 14px 14px 16px; font-size: 15px; }
  .pw-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gp-numbers > summary { padding: 14px 14px 14px 38px; }
  .gp-numbers > summary::before { left: 16px; top: 20px; }
}

/* ---------- game cards: one-line chips (absence, predicted excitement) ---------- */
.card-chips { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.abs-pill { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; font-size: 11.5px; font-weight: 600; line-height: 1.5; padding: 1px 9px;
  border-radius: 999px; background: var(--critical-soft, var(--surface-3)); color: var(--critical); white-space: nowrap; }
.abs-txt { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.abs-pill b { flex: none; font-weight: 750; font-variant-numeric: tabular-nums; }
.xi-pred { flex: none; margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.xi-pred b { color: var(--text-2); font-variant-numeric: tabular-nums; }
.card-chips + .tvline { border-top: 0; padding-top: 0; }
.tvline .xi-pred { padding-left: 8px; }
@media (max-width: 640px) {
  .game { gap: 8px; padding: 10px 12px; }
  .game .tvline, .game .linefoot { padding-top: 6px; font-size: 12px; }
  .game .mu-cta { margin-top: 0; }
  .game .side-team { font-size: 13.5px; gap: 6px; }
  .game .mid { font-size: 11.5px; }
}
/* box score: team rebounds/turnovers not credited to a player, above the totals */
table.bx tr.bx-teamrow > * { color: var(--text-2, var(--muted)); border-top: 1px solid var(--border); }
table.bx tr.bx-teamrow .bx-name small { font-weight: 400; }
