@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&display=swap');

/* HomeCourt — Hardwood & Floodlight
   Warm charcoal court, basketball-orange signal, cream/amber accents, red only for live risk. */
:root {
  --hc-ink: #1b1612;
  --hc-deep: #221c17;
  --hc-panel: #2b241e;
  --hc-panel-raised: #372e27;
  --hc-cream: #f5ecde;
  --hc-white: #f5ecde;
  --hc-muted: #a99b89;
  --hc-ball: #ff7a1a;
  --hc-ball-hi: #ffa24d;
  --hc-accent-warm: #e8b88a;
  --hc-ice: var(--hc-accent-warm);
  --hc-live: #ff4a4a;
  --hc-mint: #ff7a1a;
  --hc-cyan: var(--hc-accent-warm);
  --hc-amber: #ffa24d;
  --hc-red: #ff4a4a;
  --hc-line: color-mix(in srgb, var(--hc-ball-hi) 16%, transparent);
  --hc-ease: cubic-bezier(.16, 1, .3, 1);
}

/* Court surface: hardwood planks + a single floodlight sweep */
html, body { background: var(--hc-ink) !important; color: var(--hc-cream) !important; }

#player-page.hc-player-page {
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#player-page.hc-player-page.is-open {
  opacity: 1;
  pointer-events: auto;
}
body {
  background-image:
    repeating-linear-gradient(90deg, transparent 0 79px, color-mix(in srgb, var(--hc-ball-hi) 4%, transparent) 79px 80px),
    linear-gradient(180deg, color-mix(in srgb, var(--hc-ball) 5%, transparent), transparent 360px) !important;
  background-size: 80px 100%, 100% 100% !important;
  background-attachment: fixed !important;
}
body::before {
  content: ''; position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 998; pointer-events: none;
  inset: auto; opacity: .5; mix-blend-mode: normal;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--hc-ball-hi) 55%, transparent), transparent);
  animation: hc-floodsweep 11s linear infinite;
}
@keyframes hc-floodsweep { 0% { transform: translateY(-4vh); opacity: 0; } 8% { opacity: .5; } 92% { opacity: .5; } 100% { transform: translateY(104vh); opacity: 0; } }

/* Surfaces and text */
.bg-background, .bg-surface, .bg-surface-container-lowest { background-color: var(--hc-ink) !important; }
.bg-surface-container-low { background-color: var(--hc-deep) !important; }
.bg-surface-container, .bg-surface-container-high, .bg-surface-container-highest { background-color: var(--hc-panel) !important; }
.bg-surface-bright { background-color: var(--hc-panel-raised) !important; }
.text-on-surface, .text-on-background { color: var(--hc-cream) !important; }
.text-on-surface-variant { color: var(--hc-muted) !important; }
.text-primary { color: var(--hc-ball) !important; }
.bg-primary { background-color: var(--hc-ball) !important; color: #2b1100; }
.border-primary { border-color: var(--hc-ball) !important; }
.text-secondary { color: var(--hc-ice) !important; }
.bg-secondary { background-color: var(--hc-ice) !important; color: #2b1100; }
.border-secondary { border-color: var(--hc-ice) !important; }
/* Tailwind Material secondary palette → warm hardwood (no UI blue) */
.text-secondary-container, .text-on-secondary, .text-on-secondary-container, .text-on-secondary-fixed, .text-secondary-fixed { color: var(--hc-cream) !important; }
.bg-secondary-container, .bg-secondary-fixed, .bg-secondary-fixed-dim { background-color: color-mix(in srgb, var(--hc-ball) 28%, var(--hc-panel-raised)) !important; }
.text-secondary-fixed-dim { color: var(--hc-accent-warm) !important; }
.border-secondary-container { border-color: color-mix(in srgb, var(--hc-ball) 35%, transparent) !important; }
.from-secondary { --tw-gradient-from: var(--hc-ball-hi) !important; --tw-gradient-to: rgb(255 162 77 / 0) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.via-secondary { --tw-gradient-via: var(--hc-accent-warm) !important; --tw-gradient-to: rgb(232 184 138 / 0) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to) !important; }
.to-secondary { --tw-gradient-to: var(--hc-ball-hi) !important; }
.hc-accent-rule { background: linear-gradient(90deg, var(--hc-ball), var(--hc-ball-hi), var(--hc-ball)) !important; }

/* Shot Lab — #1 alpha prop card */
.hc-prop-alpha-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 1.65rem 1.85rem 1.45rem;
  border-radius: 1.15rem;
  background: linear-gradient(165deg, color-mix(in srgb, var(--hc-panel-raised) 94%, var(--hc-ball) 6%), var(--hc-panel));
  border: 1px solid var(--hc-line);
  box-shadow: 0 20px 48px color-mix(in srgb, var(--hc-ink) 38%, transparent), inset 0 1px 0 color-mix(in srgb, var(--hc-cream) 6%, transparent);
}
.hc-prop-alpha-rule { height: 3px; width: 100%; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--hc-ball), var(--hc-ball-hi), var(--hc-ball), transparent); margin: -0.35rem 0 0.15rem; }
.hc-prop-alpha-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.hc-prop-alpha-identity { display: flex; align-items: flex-start; gap: 1rem; min-width: 0; }
.hc-prop-alpha-avatar {
  width: 3.25rem; height: 3.25rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--hc-ball-hi);
}
.hc-prop-alpha-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.65rem; margin-bottom: 0.35rem; }
.hc-prop-alpha-meta { padding: 0.2rem 0.55rem; border-radius: 0.35rem; background: color-mix(in srgb, var(--hc-ball) 16%, transparent); color: var(--hc-ball-hi); font-weight: 700; }
.hc-prop-alpha-matchup { line-height: 1.45; max-width: 28rem; }
.hc-prop-alpha-badge { padding: 0.35rem 0.75rem; border-radius: 0.45rem; background: var(--hc-ball); color: #2b1100; font-weight: 800; white-space: nowrap; }
.hc-prop-alpha-callout {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem;
  padding: 1.1rem 1.25rem; border-radius: 0.85rem;
  background: color-mix(in srgb, var(--hc-ink) 22%, var(--hc-panel));
  border: 1px solid color-mix(in srgb, var(--hc-ball) 18%, transparent);
}
.hc-prop-alpha-sub { margin-top: 0.45rem; line-height: 1.5; }
.hc-prop-alpha-dot { opacity: 0.45; margin: 0 0.35rem; }
.hc-prop-alpha-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.65rem; }
.hc-prop-alpha-chart-body { min-height: 7.5rem; padding: 0.85rem 0.75rem 0.55rem; border-radius: 0.75rem; background: color-mix(in srgb, var(--hc-ink) 30%, transparent); border: 1px solid color-mix(in srgb, var(--hc-line) 80%, transparent); }
.hc-prop-bar-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0.4rem; align-items: end; height: 6.25rem; }
.hc-prop-bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 0.3rem; }
.hc-prop-bar-val { font: 600 0.58rem/1 'JetBrains Mono', monospace; color: var(--hc-muted); }
.hc-prop-bar { width: 100%; min-height: 4px; border-radius: 0.25rem 0.25rem 0.1rem 0.1rem; transition: height 0.45s var(--hc-ease); }
.hc-prop-bar-hit { background: linear-gradient(180deg, var(--hc-ball-hi), var(--hc-ball)); box-shadow: 0 0 10px color-mix(in srgb, var(--hc-ball) 35%, transparent); }
.hc-prop-bar-miss { background: color-mix(in srgb, var(--hc-muted) 35%, var(--hc-panel)); }
.hc-prop-alpha-empty { margin: 0; padding: 1rem 0.5rem; text-align: center; font-size: 0.8rem; color: var(--hc-muted); }
.hc-prop-alpha-reason { padding: 1rem 1.15rem; border-radius: 0.85rem; background: color-mix(in srgb, var(--hc-panel-raised) 88%, transparent); border: 1px solid var(--hc-line); }
.hc-prop-alpha-reason-title { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hc-prop-alpha-reason-list { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; line-height: 1.45; }
.hc-prop-alpha-actions { display: flex; gap: 0.85rem; align-items: stretch; }
.hc-prop-alpha-slip {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.85rem 1rem; border: 0; border-radius: 0.65rem; cursor: pointer;
  background: var(--hc-ball); color: #2b1100;
  box-shadow: 0 0 22px color-mix(in srgb, var(--hc-ball) 42%, transparent);
  transition: transform 0.2s var(--hc-ease), background-color 0.2s ease;
}
.hc-prop-alpha-slip:hover { background: var(--hc-ball-hi); transform: translateY(-1px); }
.hc-prop-alpha-secondary {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.85rem 1rem;
  border-radius: 0.65rem; border: 1px solid var(--hc-line); background: var(--hc-panel-raised); color: var(--hc-cream); cursor: pointer;
}
.hc-prop-alpha-live { margin: 0; text-align: right; opacity: 0.85; }
.hc-prop-alpha-card.hc-prop-alpha--idle .hc-prop-alpha-badge { background: color-mix(in srgb, var(--hc-muted) 40%, var(--hc-panel)); color: var(--hc-cream); }
.text-tertiary { color: var(--hc-ball-hi) !important; }
.bg-tertiary { background-color: var(--hc-ball-hi) !important; }
.text-error { color: var(--hc-live) !important; }
.bg-error { background-color: var(--hc-live) !important; }
.border-outline-variant { border-color: var(--hc-line) !important; }
::selection { background: var(--hc-ball); color: #2b1100; }

/* Shared matchup identity: the same logo, player outline, team-name, and score language as the slate. */
.font-athletic, .hc-team-name { font-family: 'Barlow Condensed', 'Chakra Petch', sans-serif !important; letter-spacing: .02em; }
.font-scoreboard, .hc-score { font-family: 'Barlow Condensed', 'Chakra Petch', sans-serif !important; font-feature-settings: 'tnum' on, 'lnum' on; line-height: .95; }
.hc-team-name:not(.score-fade):not(.hc-team-wordmark) {
  color: var(--hc-team-color) !important;
  text-shadow: 0 0 14px color-mix(in srgb, var(--hc-team-color) 28%, transparent);
}
.hc-team-wordmark,
.hc-team-name.score-fade {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.hc-team-away, .hc-team-home { --hc-team-color: var(--hc-away-color, var(--hc-muted)); }
.hc-team-home { --hc-team-color: var(--hc-home-color, var(--hc-ball-hi)); }
.score-fade { background-size: 220% 220%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: hc-score-drift 6s ease-in-out infinite; }
.score-fade[class*="score-fade-"] { background-image: linear-gradient(160deg, color-mix(in srgb, var(--tc, var(--hc-team-color)) 42%, white) 0%, var(--tc, var(--hc-team-color)) 40%, color-mix(in srgb, var(--tc, var(--hc-team-color)) 70%, black) 74%, color-mix(in srgb, var(--tc, var(--hc-team-color)) 48%, white) 100%); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--tc, var(--hc-team-color)) 45%, transparent)); }
.hc-team-logo, img[src*="/img/teams/"], img[src*="./img/teams/"] { object-fit: contain; transition: transform .35s var(--hc-ease), filter .35s ease; }
.hc-team-logo:hover, img[src*="/img/teams/"]:hover, img[src*="./img/teams/"]:hover { transform: scale(1.045) translateY(-2px); }
.hc-matchup-logos { align-items: center; }
.hc-matchup-logos img { border-radius: .75rem; padding: .3rem; background: color-mix(in srgb, var(--hc-panel-raised) 86%, transparent); border: 1px solid var(--hc-line); }
.hc-score-logo { object-fit: contain; }
#hc-sim-matchup-head .hc-score-logo { display: none !important; }
.hc-sim-title-row { display: flex; align-items: center; gap: .65rem; min-height: clamp(3rem, 5.5vw, 3.75rem); width: 100%; }
.hc-sim-side-away .hc-sim-title-row { justify-content: flex-start; }
.hc-sim-side-away .hc-sim-team-mark { margin-left: auto; margin-right: -.1rem; transform: translateX(.2rem); }
.hc-sim-side-home .hc-sim-title-row { justify-content: flex-end; flex-direction: row-reverse; }
.hc-sim-side-home .hc-sim-team-mark { margin-right: auto; margin-left: -.1rem; transform: translateX(-.2rem); }
.hc-sim-team-mark { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hc-sim-team-mark .hc-sim-team-logo,
.hc-sim-team-mark .hc-team-logo { width: clamp(3.1rem, 5.8vw, 4.35rem) !important; height: clamp(3.1rem, 5.8vw, 4.35rem) !important; padding: 0; border-radius: 0; background: transparent !important; border: none !important; box-shadow: 0 10px 22px color-mix(in srgb, var(--hc-ink) 48%, transparent), 0 0 18px color-mix(in srgb, var(--hc-team-color, var(--hc-ball)) 22%, transparent); }
.hc-sim-lineup { display: flex; flex-direction: column; gap: .35rem; min-height: 0; margin-top: .15rem; }
.hc-sim-lineup-home { align-items: flex-end; text-align: right; }
.hc-sim-lineup-away { align-items: flex-start; }
.hc-sim-lineup-label { font: 600 .62rem/1.15 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--hc-muted); }
.hc-lineup-slots { display: flex; flex-wrap: nowrap; gap: .4rem; align-items: flex-end; }
.hc-sim-lineup-home .hc-lineup-slots { flex-direction: row-reverse; justify-content: flex-start; }
.hc-lineup-slot { position: relative; width: clamp(2.35rem, 4.2vw, 2.85rem); height: clamp(2.85rem, 5vw, 3.45rem); flex-shrink: 0; border-radius: .55rem .55rem .35rem .35rem; overflow: visible; background: transparent !important; border: 1px solid color-mix(in srgb, var(--hc-team-color, var(--hc-line)) 38%, transparent); box-shadow: none; }
.hc-lineup-slot img { width: 100%; height: 100%; object-fit: contain !important; object-position: center bottom; display: block; background: transparent !important; }
.hc-matchup-matrix .hc-lineup-slots { --hc-lineup-cutout-h: clamp(2.65rem, 5.2vw, 3.2rem); align-items: flex-end; }
.hc-matchup-matrix .hc-lineup-slot { overflow: visible; }
.hc-matchup-matrix .hc-lineup-slot img.hc-player-cutout,
.hc-matchup-matrix .hc-lineup-slot img {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: auto !important;
  height: var(--hc-lineup-cutout-h) !important;
  max-width: 148% !important;
  min-height: var(--hc-lineup-cutout-h);
  object-fit: contain !important;
  object-position: center bottom;
}
.hc-matrix-team-row { margin-bottom: .35rem; align-items: center; }
.hc-matrix-panel .hc-sim-team-mark .hc-team-logo,
.hc-matrix-panel .hc-sim-team-mark .hc-sim-team-logo {
  width: clamp(2.4rem, 4.6vw, 3.1rem) !important;
  height: clamp(2.4rem, 4.6vw, 3.1rem) !important;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: 0 8px 16px color-mix(in srgb, var(--hc-ink) 42%, transparent);
  object-fit: contain;
}
.hc-lineup-num { position: absolute; right: 3px; bottom: 2px; padding: 0 3px; border-radius: 3px; font: 700 .58rem/1 'JetBrains Mono', monospace; color: var(--hc-cream); background: color-mix(in srgb, var(--hc-ink) 72%, transparent); }
.hc-player-cutout, img[src*="/img/players/"], img[src*="./img/players/"] { object-fit: contain; object-position: center bottom; filter: drop-shadow(0 12px 16px rgba(0,0,0,.58)) drop-shadow(0 0 10px color-mix(in srgb, var(--hc-player-color, var(--hc-ice)) 42%, transparent)); transition: transform .45s var(--hc-ease), filter .45s ease; }
.hc-player-cutout:hover, img[src*="/img/players/"]:hover, img[src*="./img/players/"]:hover { translate: 0 -5px; scale: 1.025; filter: drop-shadow(0 16px 22px rgba(0,0,0,.64)) drop-shadow(0 0 14px color-mix(in srgb, var(--hc-player-color, var(--hc-ice)) 58%, transparent)); }
@keyframes hc-score-drift { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }

/* Header: drops in, orange underline races across on load */
header { background-color: rgba(27, 22, 18, .82) !important; border-bottom: 1px solid var(--hc-line) !important; box-shadow: none !important; animation: hc-header-in .7s var(--hc-ease) both; }
header::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--hc-ball), var(--hc-ball-hi), transparent); transform-origin: left; animation: hc-underline 1.6s var(--hc-ease) .2s both; }
@keyframes hc-header-in { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hc-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Cards: warm panel, cursor spotlight, tip-off edge on hover */
main .game-slate-row, main [class*="rounded-xl"], main [class*="rounded-2xl"], main [class*="rounded-3xl"], #game-hub-dialog {
  background-color: var(--hc-panel) !important;
  background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), color-mix(in srgb, var(--hc-ball) 9%, transparent), transparent 62%) !important;
  border: 1px solid var(--hc-line) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 236, 214, .05) !important;
}
main [class*="rounded-xl"]::before, main [class*="rounded-2xl"]::before, main [class*="rounded-3xl"]::before, #game-hub-dialog::before { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hc-ball-hi) 4%, transparent) !important; }
main .game-slate-row:hover, main [class*="rounded-xl"]:hover, main [class*="rounded-2xl"]:hover, main [class*="rounded-3xl"]:hover {
  border-color: color-mix(in srgb, var(--hc-ball) 50%, transparent) !important;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .5), 0 0 22px color-mix(in srgb, var(--hc-ball) 9%, transparent) !important;
}
.game-slate-row::after { content: ''; position: absolute; top: -1px; left: 10%; right: 10%; height: 2px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--hc-ball), var(--hc-ball-hi), transparent); transform: scaleX(0); transition: transform .7s var(--hc-ease); border-radius: 2px; }
.game-slate-row:hover::after { transform: scaleX(1); }

/* Scroll reveal: lighter blur, springy settle, staggered by row */
.scroll-reveal { filter: blur(6px); opacity: .25; transform: translateY(30px) scale(.975); transition: filter .8s var(--hc-ease), opacity .8s var(--hc-ease), transform .9s var(--hc-ease); }
.scroll-reveal.is-in-view { filter: blur(0); opacity: 1; transform: none; }

/* Win-probability bars and movement graphs */
[data-bar] {
  display: flex !important;
  height: 8px !important;
  min-height: 8px !important;
  overflow: hidden;
  border-radius: 999px;
}
.hc-js [data-bar] {
  clip-path: inset(0 100% 0 0 round 999px);
  -webkit-clip-path: inset(0 100% 0 0 round 999px);
  transition: clip-path 1.1s var(--hc-ease) .15s;
}
.hc-js [data-bar].hc-flip {
  clip-path: inset(0 0 0 100% round 999px);
  -webkit-clip-path: inset(0 0 0 100% round 999px);
}
.hc-js [data-bar].hc-bar-on {
  clip-path: inset(0 0 0 0 round 999px);
  -webkit-clip-path: inset(0 0 0 0 round 999px);
}
[data-bar] > [data-team] {
  transition: width .85s var(--hc-ease), background-color .35s ease;
  box-shadow: 0 0 10px color-mix(in srgb, currentColor 35%, transparent);
  filter: saturate(1.15);
}
[data-bar="model"],
.hc-js [data-bar="model"] { height: 10px !important; min-height: 10px !important; }
[data-bar] > [data-team] {
  display: block !important;
  height: 100% !important;
  min-height: 8px !important;
  align-self: stretch;
}
[data-bar] { background-color: color-mix(in srgb, var(--hc-ball-hi) 9%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hc-ball-hi) 12%, transparent) !important; }
[data-bar="hub-prob"] { height: 10px !important; min-height: 10px !important; }

/* Brand kit — win-probability captions match team letter colors (same as score-fade / .hc-team-name). */
.hc-bar-caption { display: block; text-align: center; font-weight: 600; color: var(--hc-muted); font-size: .68rem; letter-spacing: .04em; }
.hc-bar-caption .hc-team-pct { color: var(--hc-team-color, var(--hc-cream)); font-weight: 700; font-family: 'JetBrains Mono', ui-monospace, monospace; text-shadow: 0 0 10px color-mix(in srgb, var(--hc-team-color, var(--hc-cream)) 32%, transparent); }
.hc-bar-caption .hc-bar-caption-prefix { color: var(--hc-muted); font-weight: 600; }
.hc-spark-delta .hc-team-pct { font-weight: 700; font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--hc-team-color, var(--hc-cream)); }
#hub-prob-text.hc-team-name { color: var(--hc-team-color) !important; text-shadow: 0 0 14px color-mix(in srgb, var(--hc-team-color) 28%, transparent); }

.hc-js svg.hc-spark {
  display: block !important;
  width: 100% !important;
  height: 80px !important;
  min-height: 80px !important;
  overflow: visible !important;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  transition: clip-path 1.5s var(--hc-ease) .35s;
}
.hc-js svg.hc-spark.hc-spark-on {
  clip-path: inset(0 calc(100% - var(--hc-spark-end, 100%)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--hc-spark-end, 100%)) 0 0);
}
.hc-js svg.hc-spark.hc-spark-on[data-hc-spark-live="1"] {
  transition: none;
}
.hc-fact-logos img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
}
svg.hc-spark path.hc-spark-away,
svg.hc-spark path.hc-spark-home {
  fill: none !important;
  stroke-width: 3px !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 55%, transparent));
}
svg.hc-spark path.hc-spark-away { opacity: .92; }
svg.hc-spark path.hc-spark-home { opacity: 1; }

/* Live score tick: flashes when a score or clock value changes */
.hc-tick { animation: hc-tick .75s var(--hc-ease); }
@keyframes hc-tick { 0% { transform: scale(1.18); filter: brightness(1.7); } 100% { transform: scale(1); filter: none; } }

/* Live indicators */
.hc-live, [class*="animate-ping"] { animation: hc-live-pulse 1.8s ease-in-out infinite; }
@keyframes hc-live-pulse { 0%, 100% { opacity: .75; box-shadow: 0 0 0 0 color-mix(in srgb, var(--hc-live) 0%, transparent); } 50% { opacity: 1; box-shadow: 0 0 0 6px color-mix(in srgb, var(--hc-live) 14%, transparent); } }

/* Buttons and links */
button, a { transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .35s ease, transform .35s var(--hc-ease) !important; }

/* Claude-style analysis workspace opened from the homepage omnibar. */
.hc-claude-workspace { position: fixed; inset: 0; z-index: 2147483001; display: flex; background: var(--hc-ink); color: var(--hc-cream); opacity: 0; transform: translateY(12px); transition: opacity .22s ease, transform .22s var(--hc-ease); }
.hc-claude-workspace.is-open { opacity: 1; transform: none; }
.hc-claude-sidebar { display: flex; width: 280px; flex: 0 0 280px; flex-direction: column; gap: 1rem; padding: 1.5rem 1rem 1rem; background: var(--hc-deep); border-right: 1px solid var(--hc-line); }
.hc-claude-sidebar-top, .hc-claude-account, .hc-claude-thread { display: flex; align-items: center; gap: .75rem; }
.hc-claude-sidebar-top { padding: 0 .5rem 1rem; }
.hc-claude-wordmark { font: 700 1.25rem/1 'Space Grotesk', Inter, sans-serif; letter-spacing: -.03em; }
.hc-claude-mark { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: .65rem; background: var(--hc-ball); color: #2b1100; font: 800 1.1rem/1 'Space Grotesk', Inter, sans-serif; }
.hc-claude-mark-large { width: 3rem; height: 3rem; border-radius: 1rem; font-size: 1.5rem; }
.hc-claude-new { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: .7rem .85rem; border: 1px solid var(--hc-line); border-radius: .65rem; background: var(--hc-panel); color: var(--hc-cream); font: 600 .82rem/1 Inter, sans-serif; cursor: pointer; }
.hc-claude-new:hover { border-color: var(--hc-ball); background: var(--hc-panel-raised); }
.hc-claude-sidebar-label, .hc-claude-eyebrow, .hc-claude-message-label { color: var(--hc-muted); font: 700 .68rem/1 Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.hc-claude-sidebar-label { padding: .5rem .5rem 0; }
.hc-claude-thread { padding: .7rem .65rem; border-radius: .6rem; color: var(--hc-cream); background: color-mix(in srgb, var(--hc-ball) 10%, transparent); font-size: .8rem; }
.hc-claude-thread-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-claude-sidebar-spacer { flex: 1; }
.hc-claude-account { padding: .75rem .55rem; border-top: 1px solid var(--hc-line); font-size: .78rem; }
.hc-claude-account strong, .hc-claude-account span { display: block; }
.hc-claude-account strong { font-size: .8rem; }
.hc-claude-account div:nth-child(2) span { margin-top: .2rem; color: var(--hc-muted); font-size: .68rem; }
.hc-claude-account > .material-symbols-outlined { margin-left: auto; color: var(--hc-muted); }
.hc-claude-avatar { display: flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--hc-ball-hi); color: #2b1100; font-weight: 800; }
.hc-claude-main { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.hc-claude-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 2rem; border-bottom: 1px solid var(--hc-line); }
.hc-claude-header h1 { margin: .35rem 0 0; color: var(--hc-cream); font: 700 1rem/1.2 'Space Grotesk', Inter, sans-serif; }
.hc-claude-close { display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--hc-muted); cursor: pointer; }
.hc-claude-close:hover { background: var(--hc-panel); color: var(--hc-cream); }
.hc-claude-content { display: flex; width: min(100%, 820px); min-height: 0; flex: 1; flex-direction: column; align-self: center; padding: 10vh 1.5rem 1.5rem; }
.hc-claude-intro { margin: auto 0 2rem; text-align: center; }
.hc-claude-intro h2 { margin: 1.25rem 0 .55rem; color: var(--hc-cream); font: 700 clamp(1.45rem, 3vw, 2.15rem)/1.15 'Space Grotesk', Inter, sans-serif; letter-spacing: -.035em; }
.hc-claude-intro p { margin: 0; color: var(--hc-muted); font-size: .9rem; }
.hc-claude-messages { display: flex; max-height: 38vh; flex-direction: column; gap: 1.1rem; overflow: auto; padding: 0 .5rem; }
.hc-claude-message { max-width: 82%; }
.hc-claude-message-user { align-self: flex-end; padding: .75rem 1rem; border-radius: 1rem 1rem .25rem 1rem; background: var(--hc-panel-raised); }
.hc-claude-message-assistant { align-self: flex-start; }
.hc-claude-message-label { margin-bottom: .4rem; font-size: .62rem; }
.hc-claude-message-body { margin: 0; color: var(--hc-cream); font-size: .92rem; line-height: 1.6; }
.hc-claude-composer { margin-top: 1.5rem; padding: .8rem .85rem .55rem; border: 1px solid var(--hc-line); border-radius: 1rem; background: var(--hc-panel); box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.hc-claude-composer:focus-within { border-color: color-mix(in srgb, var(--hc-ball) 65%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hc-ball) 12%, transparent); }
.hc-claude-composer textarea { display: block; width: 100%; min-height: 2.1rem; max-height: 10rem; resize: none; border: 0; outline: 0; background: transparent; color: var(--hc-cream); font: .92rem/1.45 Inter, sans-serif; }
.hc-claude-composer textarea::placeholder { color: var(--hc-muted); }
.hc-claude-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .65rem; color: var(--hc-muted); font-size: .68rem; }
.hc-claude-composer-footer button { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border: 0; border-radius: .55rem; background: var(--hc-ball); color: #2b1100; cursor: pointer; }
.hc-claude-composer-footer button:hover { background: var(--hc-ball-hi); }
.hc-claude-disclaimer { margin: .7rem 0 0; color: var(--hc-muted); font-size: .65rem; text-align: center; }
@media (max-width: 700px) { .hc-claude-sidebar { display: none; } .hc-claude-header { padding: 1rem; } .hc-claude-content { padding: 8vh 1rem 1rem; } .hc-claude-message { max-width: 92%; } .hc-claude-composer-footer span { max-width: 70%; } }
button:active, a:active { transform: scale(.97); }
.bg-primary:hover, button.bg-primary:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--hc-ball) 22%, transparent); }

/* Page entry */
main { animation: hc-page-in .8s var(--hc-ease) both; }
@keyframes hc-page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* The Shot Lab selector stays tied to the active team's player pool. */
.hc-player-selector select {
  min-width: 12rem;
  color-scheme: dark;
  cursor: pointer;
}
.hc-player-selector select:focus-visible {
  outline: 3px solid var(--hc-ball-hi);
  outline-offset: 2px;
}

/* The targeted scenario modeler is a real, readable control instead of a decorative track. */
[data-scenario-modeler] {
  gap: .75rem !important;
  border: 1px solid var(--hc-line) !important;
  background: color-mix(in srgb, var(--hc-panel-raised) 88%, transparent) !important;
}
[data-scenario-modeler] .scenario-range {
  height: .5rem;
  margin: .35rem 0 .15rem;
  accent-color: var(--hc-ball);
  cursor: pointer;
}
[data-scenario-modeler] .scenario-range:focus-visible {
  outline: 3px solid var(--hc-ball-hi);
  outline-offset: 4px;
}
[data-shot-lab] { position: relative; gap: 1rem; border: 1px solid color-mix(in srgb, var(--hc-ice) 26%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--hc-panel-raised) 92%, transparent), var(--hc-panel)); box-shadow: 0 18px 42px color-mix(in srgb, var(--hc-ink) 34%, transparent), inset 0 1px 0 color-mix(in srgb, var(--hc-cream) 7%, transparent); }
[data-shot-lab] > .flex:first-child { padding-bottom: .95rem; border-bottom: 1px solid color-mix(in srgb, var(--hc-ice) 16%, transparent); }
[data-shot-lab] [role="group"][aria-label="Shot filter"] { border: 1px solid color-mix(in srgb, var(--hc-ice) 14%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--hc-cream) 5%, transparent); }
[data-shot-lab] [data-shot-filter] { min-height: 2rem; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
[data-shot-lab] [data-shot-filter][aria-pressed="true"] { box-shadow: 0 6px 14px color-mix(in srgb, var(--hc-ball) 18%, transparent); transform: translateY(-1px); }
.hc-shot-replay { margin-top: 1rem; padding: .8rem .9rem .7rem; border: 1px solid var(--hc-line); border-radius: .65rem; background: color-mix(in srgb, var(--hc-panel-raised) 82%, transparent); }
.hc-shot-replay-track { margin-top: .65rem; }
.hc-shot-replay-range { display: block; width: 100%; height: .45rem; accent-color: var(--hc-ball); cursor: pointer; }
.hc-shot-replay-range:focus-visible { outline: 3px solid var(--hc-ball-hi); outline-offset: 4px; }
.hc-shot-replay-button, .hc-shot-replay-reset { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--hc-line); border-radius: .45rem; padding: .35rem .55rem; background: var(--hc-panel); color: var(--hc-cream); font: 700 .68rem/1 Inter, sans-serif; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.hc-shot-replay-button:hover, .hc-shot-replay-reset:hover { border-color: var(--hc-ball); background: var(--hc-panel-raised); }
.hc-shot-replay-button[aria-pressed="true"] { border-color: var(--hc-ball); color: var(--hc-ball); }
.hc-shot-replay-reset { color: var(--hc-muted); }
.hc-shot-replay-speed { display: inline-flex; align-items: center; gap: .2rem; padding: .2rem; border: 1px solid var(--hc-line); border-radius: .45rem; background: var(--hc-panel); }
.hc-shot-replay-speed-label { padding: 0 .25rem; color: var(--hc-muted); font: 600 .62rem/1 "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.hc-shot-replay-speed-btn { border: 1px solid transparent; border-radius: .35rem; padding: .3rem .4rem; background: transparent; color: var(--hc-muted); font: 700 .62rem/1 Inter, sans-serif; letter-spacing: .03em; cursor: pointer; }
.hc-shot-replay-speed-btn:hover { color: var(--hc-cream); background: var(--hc-panel-raised); }
.hc-shot-replay-speed-btn[aria-pressed="true"] { border-color: var(--hc-ball); color: var(--hc-ball); background: color-mix(in srgb, var(--hc-ball) 10%, transparent); }
.hc-shot-replay-speed-btn:focus-visible { outline: 2px solid var(--hc-ball-hi); outline-offset: 2px; }
.hc-person-menu { position:absolute; top:calc(100% + .75rem); right:0; z-index:60; min-width:12rem; padding:.4rem; border:1px solid var(--hc-line); border-radius:.75rem; background:var(--hc-panel); box-shadow:0 18px 40px rgba(0,0,0,.42); }
.hc-person-menu[hidden] { display:none; }
.hc-person-menu a { display:flex; align-items:center; gap:.6rem; padding:.65rem .7rem; border-radius:.5rem; color:var(--hc-white); font:600 .76rem/1.2 Inter, sans-serif; text-decoration:none; white-space:nowrap; }
.hc-person-menu a:hover, .hc-person-menu a:focus-visible { background:color-mix(in srgb, var(--hc-ball) 14%, transparent); color:var(--hc-mint); outline:none; }
.hc-person-menu .material-symbols-outlined { color:var(--hc-ball-hi); font-size:18px; }

/* Landing slate: each game card spans 75% of the viewport; template keeps hero proportions. */
.hc-brandkit-lockup { min-height: 3.25rem; border: 1px solid transparent; }
.hc-brandkit-lockup:hover, .hc-brandkit-lockup:focus-visible { border-color: color-mix(in srgb, var(--hc-ball) 28%, transparent); background: color-mix(in srgb, var(--hc-ball) 8%, transparent); outline: none; }
.hc-brandkit-lockup svg { width: 2.75rem; height: 2.75rem; filter: drop-shadow(0 5px 8px color-mix(in srgb, var(--hc-ink) 65%, transparent)) drop-shadow(0 0 12px color-mix(in srgb, var(--hc-ball-hi) 18%, transparent)); }
.hc-brandkit-lockup > span { font-size: clamp(1.4rem, 2.1vw, 2.15rem); letter-spacing: .14em; }
.hc-home-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .65rem;
  background: var(--hc-ball);
  color: var(--hc-ink);
  box-shadow: 0 0 14px color-mix(in srgb, var(--hc-ball) 42%, transparent);
  transition: transform .25s var(--hc-ease), background-color .25s ease, box-shadow .25s ease;
  flex-shrink: 0;
}
.hc-home-icon-btn .material-symbols-outlined { font-size: 1.35rem; font-variation-settings: 'FILL' 0, 'wght' 600; }
.hc-home-icon-btn:hover, .hc-home-icon-btn:focus-visible {
  transform: scale(1.06);
  background: var(--hc-ball-hi);
  outline: none;
  box-shadow: 0 0 18px color-mix(in srgb, var(--hc-ball-hi) 55%, transparent);
}

/* Vo landing boot splash (index.html entry) */
#hc-boot-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hc-ink);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 79px, color-mix(in srgb, var(--hc-ball-hi) 4%, transparent) 79px 80px),
    linear-gradient(180deg, color-mix(in srgb, var(--hc-ball) 8%, transparent), transparent 50vh);
  background-size: 80px 100%, 100% 100%;
  transition: opacity var(--hc-ease) .45s, visibility .45s;
}
#hc-boot-splash::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--hc-ball-hi) 70%, transparent), transparent);
  animation: hc-floodsweep 2.5s var(--hc-ease) infinite;
}
.hc-boot-splash-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--hc-ink);
}
.hc-boot-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hc-boot-foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  padding: 3rem 24px calc(2.2rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--hc-ink) 82%, transparent));
}
/* Brand ball that bounces from screen centre up into the header logo once the page is ready. */
.hc-boot-flyball { position: fixed; left: 0; top: 0; z-index: 2147483647; pointer-events: none; will-change: transform; }
.hc-boot-flyball svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--hc-ball-hi) 55%, transparent)); }
.hc-boot-tagline {
  margin: 0;
  min-height: 1.2em;
  text-align: center;
  font: 600 clamp(.66rem, 1.6vw, .8rem)/1.2 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--hc-muted);
}
.hc-boot-progress {
  width: min(78vw, 380px);
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--hc-cream) 10%, transparent);
}
.hc-boot-progress > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hc-ball), var(--hc-ball-hi));
  box-shadow: 0 0 12px color-mix(in srgb, var(--hc-ball) 70%, transparent);
}
.hc-boot-splash-out { opacity: 0; visibility: hidden; pointer-events: none; }

/* Site-wide maintenance screen — see maintenance-check.js + /api/maintenance. */
html.hc-maintenance body > *:not(#hc-maintenance-screen) { display: none !important; }
#hc-maintenance-screen {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--hc-ink);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--hc-ball) 10%, transparent), transparent 55vh);
}
.hc-maintenance-card { max-width: 440px; text-align: center; }
.hc-maintenance-ball {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--hc-ball);
  border: 2px solid var(--hc-ball-hi);
  box-shadow: 0 0 24px color-mix(in srgb, var(--hc-ball) 40%, transparent);
  animation: hc-live-pulse 1.8s ease-in-out infinite;
}
.hc-maintenance-ball::before, .hc-maintenance-ball::after { content: ''; position: absolute; background: var(--hc-ink); }
.hc-maintenance-ball::before { left: 50%; top: 2px; bottom: 2px; width: 2px; transform: translateX(-50%); }
.hc-maintenance-ball::after { top: 50%; left: 2px; right: 2px; height: 2px; transform: translateY(-50%); }
#hc-maintenance-screen h1 {
  margin: 0 0 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--hc-cream);
}
#hc-maintenance-screen p { margin: 0; color: var(--hc-muted); font-size: 15px; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .hc-maintenance-ball { animation: none; } }

/* Shown over the slate card whenever a refresh is in flight, so cached/stale games never look
   like final, live data with no feedback — see ui-bind.js bindSlate(). */
.hc-slate-stale-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 14px;
  padding: 7px 16px;
  width: fit-content;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hc-ball) 14%, var(--hc-panel));
  border: 1px solid color-mix(in srgb, var(--hc-ball) 30%, transparent);
  color: var(--hc-cream);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.hc-slate-stale-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hc-ball-hi);
  animation: hc-live-pulse 1.1s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hc-slate-stale-dot { animation: none; }
}
/* Splash covers the viewport; do not hide siblings — stale hc-app-booting used to brick scroll. */
html.hc-app-booting main { animation: none !important; }
html.hc-app-booting body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  #hc-boot-splash { display: none !important; }
  html.hc-app-booting body > * { visibility: visible !important; pointer-events: auto !important; }
}

/* Brand kit reference (tokens): see docs/brand-kit.md — team letters, prob bars, dual-team graphs share TEAM_COLOR. */

.hc-featured-game-card { padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 3.5vw, 3.5rem) !important; }
.hc-featured-game-card > div:first-child > div:first-child > div:first-child { min-height: clamp(22rem, 34vw, 31rem); }
.hc-featured-game-card img[src*="/img/teams/"] { width: clamp(13rem, 21vw, 20rem); height: clamp(13rem, 21vw, 20rem); filter: drop-shadow(0 20px 22px color-mix(in srgb, var(--hc-ink) 80%, transparent)) drop-shadow(0 0 20px color-mix(in srgb, var(--hc-ball-hi) 24%, transparent)); }
.hc-featured-game-card .font-scoreboard { transform: scale(1.08); }
.hc-featured-game-card .score-fade { font-size: clamp(2.35rem, 4vw, 4rem); }

#hc-slate {
  width: 75vw;
  max-width: 75vw;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
#hc-slate .game-slate-row {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
#hc-slate .game-slate-row .font-scoreboard {
  padding: .5rem .75rem !important;
  gap: .5rem !important;
  border-radius: .75rem;
  background: color-mix(in srgb, var(--hc-ink) 72%, transparent);
  border: 1px solid var(--hc-line);
}
#hc-slate .game-slate-row:focus-visible {
  outline: 3px solid var(--hc-ball-hi);
  outline-offset: 4px;
}

/* Game hub: line-to-watch badge sits under matchup, not over team names */
#game-hub-dialog #hub-edge-badge {
  line-height: 1.35;
  word-break: break-word;
}
#game-hub-dialog .hub-matchup-row {
  row-gap: 0.85rem;
}
#game-hub-dialog .hub-matchup-row > .font-headline-lg {
  flex: 0 0 auto;
  min-width: 1.75rem;
  text-align: center;
}

/* Slate odds sparklines: labeled axes (home win %, open → now) */
.hc-spark-labeled {
  display: block !important;
  width: 100% !important;
  height: 5.5rem !important;
  min-height: 5.5rem !important;
  overflow: visible !important;
}
.hc-spark-axis {
  fill: color-mix(in srgb, var(--hc-cream) 55%, transparent);
  font: 600 11px/1.2 'JetBrains Mono', ui-monospace, monospace;
}
.hc-spark-end-val { font: 700 12px/1.2 'JetBrains Mono', ui-monospace, monospace; }
.hc-spark-axis-sub {
  fill: color-mix(in srgb, var(--hc-cream) 42%, transparent);
  font: 500 8px/1.2 Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Featured read: concise signal block for the lower-right of the first card. */
.hc-featured-read { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: .4rem 1.25rem; min-width: min(100%, 19rem); padding: .25rem 0 .15rem 1.25rem; border-left: 1px solid var(--hc-line); }
.hc-featured-read > .font-label-tag { grid-column: 1 / -1; }
.hc-featured-read div { display: flex; flex-direction: column; gap: .18rem; }
.hc-featured-read strong { color: var(--hc-ball); font: 700 1rem/1.1 'JetBrains Mono', ui-monospace, monospace; }
.hc-featured-read span:not(.font-label-tag) { color: var(--hc-muted); font: 600 .63rem/1.2 Inter, sans-serif; text-transform: uppercase; letter-spacing: .06em; }

/* Slate card: matchup + score on the left, stats in the middle, odds graphs on the right */
@media (min-width: 1024px) {
  #hc-slate .game-slate-row > .grid > div:first-child {
    grid-column: span 6 / span 6;
    padding-left: 0;
  }
  #hc-slate .game-slate-row > .grid > div:first-child > div:first-child {
    justify-content: flex-start;
    gap: 1rem;
  }
  #hc-slate .game-slate-row > .grid > div:first-child img[src*="/img/teams/"] {
    width: clamp(8rem, 12vw, 15rem);
    height: clamp(8rem, 12vw, 15rem);
  }
  #hc-slate .game-slate-row > .grid > div:nth-child(2) {
    grid-column: span 6 / span 6;
    justify-content: flex-end;
  }
  #hc-slate .game-slate-row > .grid > div:nth-child(2) > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.5fr);
    column-gap: 1.75rem;
    max-width: none;
    align-content: center;
  }
  #hc-slate .game-slate-row > .grid > div:nth-child(2) > .grid > .col-span-2 {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin-top: 0;
    gap: 1.75rem;
    padding-left: 1.75rem;
    border-left: 1px solid var(--hc-line);
  }
}
@media (max-width: 767px) {
  .hc-featured-read { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; padding: .9rem 0 0; border-left: 0; border-top: 1px solid var(--hc-line); }
}
@media (max-width: 1023px) {
  #hc-slate {
    width: min(75vw, 100%);
    max-width: 100%;
  }
  #hc-slate .game-slate-row > div:first-child > div:first-child > div:first-child {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Featured card layout: clear matchup first, compact readout second, charts in a dedicated rail. */
.hc-featured-game-card { overflow: hidden; }
.hc-featured-game-card > .grid { align-items: stretch; }
.hc-featured-game-card > .grid > div:first-child { min-width: 0; }
.hc-featured-game-card > .grid > div:first-child > div:first-child { align-items: center; padding: 1.25rem .25rem; gap: 1.5rem; }
.hc-featured-game-card > .grid > div:first-child > div:first-child > .font-scoreboard { flex: 0 0 auto; }
.hc-featured-game-card > .grid > div:first-child > div:nth-child(2) { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--hc-line) 70%, transparent); }
.hc-featured-game-card > .grid > div:nth-child(2) { min-width: 0; }
.hc-featured-game-card > .grid > div:nth-child(2) > .grid { min-width: 0; }
.hc-featured-game-card > .grid > div:nth-child(2) > .grid > div { min-width: 0; }
.hc-featured-game-card > .grid > div:nth-child(2) > .grid > div > span:last-child { overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .hc-featured-game-card > .grid { grid-template-columns: minmax(0, 1.12fr) minmax(25rem, .88fr); column-gap: clamp(2rem, 4vw, 4.5rem); }
  .hc-featured-game-card > .grid > div:first-child { grid-column: auto; padding-inline: .5rem 0; }
  .hc-featured-game-card > .grid > div:first-child > div:first-child { min-height: clamp(22rem, 31vw, 28rem); }
  .hc-featured-game-card > .grid > div:nth-child(2) { grid-column: auto; padding-block: 1.25rem; }
  .hc-featured-game-card > .grid > div:nth-child(2) > .grid { grid-template-columns: minmax(7rem, .82fr) minmax(7rem, .82fr) minmax(13rem, 1.36fr); gap: 1.25rem 1.5rem; align-content: center; }
  .hc-featured-game-card > .grid > div:nth-child(2) > .grid > .col-span-2 { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; padding: .25rem 0 .25rem 1.5rem; border-left: 1px solid var(--hc-line); gap: 1.5rem; }
  .hc-featured-game-card > .grid > div:nth-child(2) > .grid > .col-span-2 > div { min-width: 0; }
}
@media (max-width: 1023px) {
  .hc-featured-game-card > .grid > div:first-child > div:first-child { padding-inline: 0; }
  .hc-featured-game-card > .grid > div:nth-child(2) { padding-top: .5rem; }
  .hc-featured-game-card > .grid > div:nth-child(2) > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: 1.25rem 1.5rem; }
  .hc-featured-game-card > .grid > div:nth-child(2) > .grid > .col-span-2 { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .hc-featured-game-card > .grid > div:first-child > div:first-child { gap: .5rem; padding-block: .5rem; }
  .hc-featured-game-card > .grid > div:first-child > div:nth-child(2) { margin-top: 1.25rem; padding-top: 1rem; }
  .hc-featured-game-card > .grid > div:nth-child(2) > .grid { gap: 1rem; }
}

/* Team and player art keeps the shared broadcast treatment, warmer shadow */
#hc-slate .game-slate-row img[src*="/img/teams/"], #hc-slate .game-slate-row img[src*="./img/teams/"] { aspect-ratio: 1; object-fit: contain; transition: transform .45s var(--hc-ease), filter .45s var(--hc-ease), border-color .35s ease; }
#hc-slate .game-slate-row:hover img[src*="/img/teams/"], #hc-slate .game-slate-row:hover img[src*="./img/teams/"] { filter: drop-shadow(0 12px 18px color-mix(in srgb, var(--hc-ink) 60%, transparent)) drop-shadow(0 0 14px color-mix(in srgb, var(--hc-ball) 28%, transparent)); transform: scale(1.06) rotate(-1deg); }
#hc-slate .game-slate-row:focus-visible img[src*="/img/teams/"], #hc-slate .game-slate-row:focus-visible img[src*="./img/teams/"] { filter: drop-shadow(0 12px 18px color-mix(in srgb, var(--hc-ink) 60%, transparent)) drop-shadow(0 0 18px color-mix(in srgb, var(--hc-ball-hi) 38%, transparent)); transform: scale(1.04); }
#hc-slate .game-slate-row > .grid > * { min-width: 0; }
#hc-slate .game-slate-row .font-scoreboard { transition: transform .35s var(--hc-ease), border-color .35s ease, box-shadow .35s ease; }
#hc-slate .game-slate-row:hover .font-scoreboard, #hc-slate .game-slate-row:focus-visible .font-scoreboard { transform: translateY(-3px); border-color: color-mix(in srgb, var(--hc-ball) 48%, transparent); box-shadow: 0 10px 22px color-mix(in srgb, var(--hc-ink) 36%, transparent); }
img[src*="/img/players/"]:hover, img[src*="./img/players/"]:hover { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .66)) drop-shadow(0 0 12px color-mix(in srgb, var(--hc-ball-hi) 22%, transparent)); }
@media (max-width: 1023px) {
  #hc-slate .game-slate-row > .grid > div:first-child, #hc-slate .game-slate-row > .grid > div:nth-child(2) { grid-column: 1 / -1; }
  #hc-slate .game-slate-row > .grid > div:first-child > div:first-child { flex-wrap: wrap; justify-content: center; }
  #hc-slate .game-slate-row > .grid > div:first-child img[src*="/img/teams/"], #hc-slate .game-slate-row > .grid > div:first-child img[src*="./img/teams/"] { width: clamp(8rem, 28vw, 13rem); height: clamp(8rem, 28vw, 13rem); }
}
@media (max-width: 639px) {
  #hc-slate .game-slate-row { padding-inline: 1rem !important; }
  #hc-slate .game-slate-row > .grid > div:first-child > div:first-child { gap: .25rem; }
  #hc-slate .game-slate-row .font-scoreboard { order: 2; margin-inline: .5rem; }
  #hc-slate .game-slate-row > .grid > div:first-child img[src*="/img/teams/"], #hc-slate .game-slate-row > .grid > div:first-child img[src*="./img/teams/"] { width: clamp(6rem, 30vw, 9rem); height: clamp(6rem, 30vw, 9rem); }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition-duration: .01ms !important; }
  .hc-js [data-bar], .hc-js svg.hc-spark { clip-path: none !important; }
  .scroll-reveal { filter: none !important; opacity: 1 !important; transform: none !important; }
}

/* Shot Lab marks (drawn by shot-lab.js) */
.hc-shot-made circle { fill: var(--hc-ball); stroke: var(--hc-ink); stroke-width: 1; }
.hc-shot-miss line { stroke: var(--hc-muted); stroke-width: 2; stroke-linecap: round; }
.hc-shot-latest-made circle {
  fill: #2fd47a;
  stroke: var(--hc-cream);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px color-mix(in srgb, #2fd47a 72%, transparent));
}
.hc-shot-latest-miss line {
  stroke: var(--hc-live);
  stroke-width: 2.75;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--hc-live) 55%, transparent));
}
.hc-shot { animation: hc-shot-in .35s var(--hc-ease) both; cursor: default; }
.hc-shot-latest { animation: hc-shot-latest-in .45s var(--hc-ease) both; }
@keyframes hc-shot-latest-in { from { opacity: 0; transform: scale(0.65); } to { opacity: 1; transform: scale(1); } }
.hc-shot:hover circle { stroke: var(--hc-cream); stroke-width: 2; }
.hc-shot-latest:hover circle { stroke: #fff; stroke-width: 2; }
.hc-shot-zone { fill: color-mix(in srgb, var(--hc-ball) 16%, transparent); stroke: color-mix(in srgb, var(--hc-ball) 45%, transparent); transition: fill .3s, stroke .3s; }
.hc-shot-zone.hc-zone-cold { fill: color-mix(in srgb, var(--hc-muted) 16%, transparent); stroke: color-mix(in srgb, var(--hc-muted) 42%, transparent); }
[data-shot-lab][aria-busy="true"] [data-shot-layer] { opacity: .4; }
@keyframes hc-shot-in { from { opacity: 0; } to { opacity: 1; } }
.hc-shot-chart { overflow: visible; }
.hc-court-lines { stroke: var(--hc-muted); stroke-width: 2; opacity: .72; }
.hc-court-lines path, .hc-court-lines rect, .hc-court-lines circle { vector-effect: non-scaling-stroke; }
.hc-shot-label { fill: var(--hc-ball); font: 700 12px 'Barlow Condensed', sans-serif; letter-spacing: .08em; }
.hc-shot-label-muted { fill: var(--hc-muted); font-size: 10px; }
.hc-shot-legend-made { background: var(--hc-ball); }
.hc-shot-legend-miss { color: var(--hc-muted); }
.hc-shot-legend-latest-made { background: #2fd47a; box-shadow: 0 0 8px color-mix(in srgb, #2fd47a 45%, transparent); }
.hc-shot-legend-latest-miss { color: var(--hc-live); }
.hc-shot-legend-zone { background: color-mix(in srgb, var(--hc-ball) 28%, transparent); }
@media (prefers-reduced-motion: reduce) { .hc-shot { animation: none; } }

/* Interlinked lab navigation */
/* Brand kit — portraits & logos: outline frame only, no filled discs */
.hc-portrait-frame, .hc-prop-alpha-avatar,
.hc-lineup-slot {
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid color-mix(in srgb, var(--hc-line) 70%, transparent);
  border-radius: .45rem;
}
.hc-logo-frame {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0;
}
.hc-prop-alpha-avatar { border-radius: .5rem; border-color: color-mix(in srgb, var(--hc-ball) 40%, transparent); }
.hc-portrait-frame--sm { width: 2.25rem; height: 2.25rem; display: flex; align-items: flex-end; justify-content: center; overflow: visible; }
.hc-portrait-frame--sm img { border-radius: .35rem; object-fit: contain !important; background: transparent !important; }
.hc-portrait-frame--md { width: 2.85rem; height: 2.85rem; display: flex; align-items: flex-end; justify-content: center; overflow: visible; }
.hc-portrait-frame--md img { border-radius: .35rem; object-fit: contain !important; background: transparent !important; }
.hc-portrait-frame--md .material-symbols-outlined { font-size: 22px; }
.hc-portrait-frame--watch {
  width: 4.25rem;
  height: 3.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--hc-line) 55%, transparent);
  border-radius: .45rem;
  background: transparent !important;
}
.hc-portrait-frame--empty {
  min-height: 3rem;
  background: transparent !important;
}
img.hc-portrait-missing,
img[src*="cdn.nba.com/headshots"],
img[src*="espncdn.com/i/headshots/nba"] {
  visibility: hidden !important;
  max-height: 0 !important;
}
[class*="group/player"] img.hc-player-cutout,
.hc-portrait-frame img.hc-player-cutout {
  object-fit: contain !important;
  object-position: center bottom;
  background: transparent !important;
}
#hc-slate .game-slate-row img[src*="/img/teams/"], #hc-slate .game-slate-row img[src*="./img/teams/"] {
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-sizing: border-box;
}
.hc-who-you-got .hc-who-pick {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: .5rem;
  transition: box-shadow .25s var(--hc-ease), transform .25s var(--hc-ease);
}
.hc-who-you-got .hc-who-pick:focus-visible {
  outline: 2px solid var(--hc-ball);
  outline-offset: 3px;
}
.hc-who-you-got .hc-who-pick-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  padding: .35rem;
  box-sizing: border-box;
}
.hc-who-you-got .hc-who-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0 !important;
  border: none !important;
  padding: 0 !important;
}
.hc-who-you-got .hc-who-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 .72rem/1 'JetBrains Mono', ui-monospace, monospace;
  color: var(--hc-cream);
  text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 12px rgba(0,0,0,.65);
  pointer-events: none;
}
.hc-who-you-got .hc-who-pick.is-picked .hc-who-pick-inner {
  border-color: color-mix(in srgb, var(--hc-ball) 75%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--hc-ball) 45%, transparent), 0 8px 20px color-mix(in srgb, var(--hc-ball) 22%, transparent);
}
.hc-who-you-got .hc-who-pick.is-locked { cursor: default; }
.hc-who-you-got .hc-who-pick.is-locked:hover .hc-who-pick-inner { transform: none; border-color: inherit; }
.hc-who-you-got .hc-who-count {
  font: 600 .7rem/1.2 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .04em;
  color: var(--hc-muted, rgba(255,255,255,.55));
}
.hc-who-you-got .hc-who-pick:not(.is-locked):hover .hc-who-pick-inner {
  border-color: color-mix(in srgb, var(--hc-ball) 50%, transparent);
  transform: scale(1.04);
}
.hc-who-you-got .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.w-9.h-9.rounded-full:has(img[src*="players"]), .w-9.h-9.rounded-full:has(img[src*="/img/players/"]) {
  border-radius: .45rem !important;
  background: transparent !important;
  border: 1px solid color-mix(in srgb, var(--hc-line) 60%, transparent);
  overflow: visible;
}
#hub-spread-text.hc-team-name { text-shadow: 0 0 14px color-mix(in srgb, var(--hc-team-color) 28%, transparent); }
.hc-spread-vs { display: block; margin-top: .15rem; font-size: .72rem; line-height: 1.45; color: var(--hc-muted); }

/* Figma Make — exchange matrix matchup shell (slate hero + sim lab) */
.hc-matchup-matrix {
  --hc-away-color: var(--hc-ball);
  --hc-home-color: var(--hc-ball-hi);
  width: 100%;
  max-width: 58rem;
  margin-inline: auto;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2vw, 1.6rem);
  border-radius: 1.35rem;
  border: 1px solid color-mix(in srgb, var(--hc-ball) 28%, transparent);
  background:
    radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--hc-live) 12%, transparent), transparent 40%),
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--hc-ball) 10%, transparent), transparent 36%),
    var(--hc-panel);
  box-shadow: 0 22px 50px color-mix(in srgb, var(--hc-ink) 46%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--hc-cream) 4%, transparent);
}
.hc-matrix-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.hc-matrix-venue { display: flex; align-items: center; color: var(--hc-ball-hi); margin: 0; }
.hc-matrix-venue > span:first-child {
  width: 7px; height: 7px; margin-right: .5rem; border-radius: 50%;
  background: var(--hc-ball-hi); box-shadow: 0 0 12px color-mix(in srgb, var(--hc-ball-hi) 70%, transparent);
}
.hc-matrix-time { color: var(--hc-cream); font-size: .85rem; letter-spacing: .08em; }
.hc-matrix-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(2.5rem, 6vw, 4.5rem) minmax(0, 1fr);
  align-items: start; gap: clamp(.5rem, 2vw, 1.1rem);
}
.hc-matrix-panel { min-width: 0; }
.hc-matrix-panel.right { text-align: right; }
.hc-matrix-team {
  margin: 0 0 .85rem;
  font-family: 'Barlow Condensed', 'Chakra Petch', sans-serif;
  font-size: clamp(1.65rem, 3.1vw, 2.25rem);
  font-weight: 800; line-height: 1; letter-spacing: .02em;
}
.hc-matrix-panel.hc-team-away { --hc-team-color: var(--hc-away-color); }
.hc-matrix-panel.hc-team-home { --hc-team-color: var(--hc-home-color); }
.hc-matrix-projection {
  display: flex; align-items: baseline; gap: .4rem; color: var(--hc-cream);
  font-family: 'Barlow Condensed', sans-serif;
}
.hc-matrix-panel.right .hc-matrix-projection { justify-content: flex-end; }
.hc-matrix-exp { font-size: clamp(2.35rem, 5vw, 3.4rem); font-weight: 800; line-height: .92; letter-spacing: -.03em; }
.hc-matrix-projection > span {
  font: 700 .62rem/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--hc-muted);
}
.hc-matrix-spread { margin: .45rem 0 0; color: var(--hc-muted); font-size: .76rem; font-weight: 600; }
.hc-matrix-starters-label {
  margin: .85rem 0 .35rem;
  font: 700 .62rem/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--hc-muted);
}
.hc-matrix-panel .hc-lineup-slots { gap: .35rem; }
.hc-matrix-panel .hc-lineup-slot {
  width: clamp(2.5rem, 5.4vw, 3.1rem); height: clamp(2.85rem, 6vw, 3.55rem);
  border-color: color-mix(in srgb, var(--hc-team-color, var(--hc-line)) 55%, transparent);
  background: color-mix(in srgb, var(--hc-team-color, var(--hc-panel)) 14%, var(--hc-deep));
}
.hc-matrix-versus {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  padding-top: clamp(3.5rem, 8vw, 5rem);
  color: color-mix(in srgb, var(--hc-muted) 72%, transparent);
  font: 700 .72rem/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em;
}
.hc-matrix-versus strong { color: var(--hc-ball-hi); font-size: .68rem; }
.hc-matrix-probability { margin-top: 1.25rem; }
.hc-matrix-prob-track {
  display: flex; height: .95rem; overflow: hidden; border-radius: 999px;
  background: color-mix(in srgb, var(--hc-ink) 82%, transparent);
  box-shadow: inset 0 2px 5px color-mix(in srgb, var(--hc-ink) 65%, transparent);
}
.hc-matrix-prob-track .away-segment { background: var(--hc-away-color); }
.hc-matrix-prob-track .home-segment { background: var(--hc-home-color); }
.hc-matrix-prob-seg { display: block; height: 100%; transition: width .65s var(--hc-ease); }
.hc-matrix-prob-labels {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem;
  margin-top: .55rem; font: 700 .66rem/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .06em;
}
.hc-matrix-prob-labels p { margin: 0; grid-column: 2; color: var(--hc-muted); letter-spacing: .12em; text-align: center; }
.hc-matrix-prob-labels .away-pct { color: var(--hc-away-color); }
.hc-matrix-prob-labels .home-pct { color: var(--hc-home-color); text-align: right; }
.hc-matrix-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: 1rem;
}
.hc-matrix-metric { min-height: 4rem; padding: .65rem .7rem; border-radius: .65rem; }
.hc-matrix-metric-dark {
  background: color-mix(in srgb, var(--hc-ink) 78%, transparent);
  box-shadow: inset 0 1px 8px color-mix(in srgb, var(--hc-ink) 50%, transparent);
}
.hc-matrix-metric-featured { border: 1px solid color-mix(in srgb, var(--hc-ball) 22%, transparent); }
.hc-matrix-metric p {
  margin: 0 0 .25rem; font: 700 .58rem/1.2 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .12em; text-transform: uppercase; color: var(--hc-muted);
}
.hc-matrix-metric-featured p, .hc-matrix-metric-featured span { color: var(--hc-ball); }
.hc-matrix-metric strong { display: block; color: var(--hc-cream); font: 700 .82rem/1.25 'JetBrains Mono', ui-monospace, monospace; }
.hc-matrix-metric span { display: block; margin-top: .15rem; color: color-mix(in srgb, var(--hc-muted) 88%, transparent); font-size: .62rem; font-weight: 700; }
.hc-featured-game-card .hc-matchup-matrix,
.hc-sim-matchup-matrix { max-width: none; width: 100%; }
.hc-sim-matchup-matrix { margin-inline: 0; }
main .xl\:col-span-5,
main .xl\:col-span-7 { min-width: 0; }
main .xl\:col-span-5 .rounded-xl p,
main .xl\:col-span-5 .font-body-sm {
  overflow-wrap: normal;
  word-break: normal;
}
@media (max-width: 760px) {
  .hc-matrix-grid { grid-template-columns: minmax(0, 1fr) 2.35rem minmax(0, 1fr); }
  .hc-matrix-prob-labels { grid-template-columns: 1fr 1fr; }
  .hc-matrix-prob-labels p { grid-column: 1 / -1; grid-row: 1; margin-bottom: .35rem; }
  .hc-matrix-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hc-matrix-grid { grid-template-columns: 1fr; }
  .hc-matrix-panel.right { text-align: left; }
  .hc-matrix-panel.right .hc-matrix-projection { justify-content: flex-start; }
  .hc-matrix-versus { flex-direction: row; padding: 0; justify-content: center; }
}
.hc-spread-vs .hc-team-pct { font-weight: 700; }
#hc-page-overlay #hc-page-overlay-frame { padding-top: 48px !important; height: 100% !important; }
.hc-injury-row {
  border-left: 2px solid color-mix(in srgb, var(--hc-team-color, var(--hc-muted)) 58%, transparent);
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--hc-team-color, var(--hc-muted)) 7%, transparent), transparent 42%);
}
.hc-injury-row .hc-team-name {
  color: var(--hc-team-color, var(--hc-cream)) !important;
  text-shadow: 0 0 12px color-mix(in srgb, var(--hc-team-color, var(--hc-cream)) 26%, transparent);
}
.hc-injury-row .hc-team-pct { font-weight: 700; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.hc-hub-injury-player {
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--hc-team-color, var(--hc-ball)) 55%, transparent);
  text-underline-offset: 2px;
}
.hc-injury-status { letter-spacing: .04em; }
.hc-slate-empty-msg { width:100%; text-align:center; padding:48px 16px; color:var(--hc-muted, var(--on-surface-variant, #a99b89)); font-size:14px; font-weight:600; }

/* Sim Lab starting lineups: one even strip of 10 portrait boxes (5 per team) across the full card
   width, instead of two 5-slot rows squeezed into each narrow team half. Boxes are cropped to fill
   (cover, anchored to the top) so faces stay recognizable even at this width. */
.hc-sim-lineup-strip {
  --hc-lineup-gap: clamp(.22rem, .6vw, .4rem);
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: var(--hc-lineup-gap);
  margin-top: 1.1rem; align-items: start;
}
.hc-sim-lineup-strip .hc-sim-lineup { display: block; margin: 0; padding: 0; width: 100%; min-width: 0; }
.hc-sim-lineup-strip .hc-sim-lineup-away { grid-column: 1 / 6; text-align: left; }
.hc-sim-lineup-strip .hc-sim-lineup-home { grid-column: 6 / 11; text-align: right; }
.hc-sim-lineup-strip .hc-sim-lineup-label { display: block; margin: 0 0 .4rem; }
.hc-sim-lineup-strip .hc-lineup-slots {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--hc-lineup-gap);
  width: 100%; direction: ltr; align-items: stretch;
}
.hc-sim-lineup-strip .hc-lineup-slot {
  position: relative; width: 100%; height: auto; min-width: 0; aspect-ratio: 7 / 9;
  overflow: hidden; border-radius: .5rem;
}
.hc-matchup-matrix .hc-sim-lineup-strip .hc-lineup-slot img,
.hc-matchup-matrix .hc-sim-lineup-strip .hc-lineup-slot img.hc-player-cutout {
  position: absolute; inset: 0; left: 0; bottom: 0;
  width: 100% !important; height: 100% !important; min-height: 0 !important; max-width: none !important;
  object-fit: cover !important; object-position: center 8%;
  transform: none !important; filter: none;
}
.hc-matchup-matrix .hc-sim-lineup-strip .hc-lineup-slot img:hover { transform: none !important; filter: none; }
.hc-sim-lineup-strip .hc-lineup-num { z-index: 2; font-size: .6rem; right: 3px; bottom: 3px; }
@media (max-width: 520px) {
  .hc-sim-lineup-strip { grid-template-columns: 1fr; row-gap: .8rem; }
  .hc-sim-lineup-strip .hc-sim-lineup-away,
  .hc-sim-lineup-strip .hc-sim-lineup-home { grid-column: 1 / -1; text-align: left; }
}

/* Lineup slot with no player yet: same size as a portrait box, dashed so it reads as a placeholder. */
.hc-lineup-slot.hc-lineup-slot--empty { border-style: dashed !important; opacity: .55; }

/* Player image hover uses the standalone translate/scale properties so it never replaces a centering transform
   (lineup portraits are centered with translateX(-50%); the old hover transform made them jump sideways). */
.hc-player-cutout, img[src*="/img/players/"], img[src*="./img/players/"] { transition-property: transform, translate, scale, filter; }


/* Odds + model movement charts: stacked in the empty lower half of the card's right column (wide screens). */
.hc-js .hc-has-movement { flex-direction: column; justify-content: flex-start; gap: .85rem; }
.hc-js .hc-has-movement > .grid { height: auto; flex: none; row-gap: 1.15rem; }
.hc-js .hc-movement-side { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; margin-top: 0; padding-top: .7rem; }
.hc-js .hc-movement-side > span { margin-bottom: .45rem; }
.hc-js .hc-movement-side > .grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); row-gap: .6rem; flex: 1 1 0; min-height: 0; }
.hc-js .hc-movement-side > .grid > div { min-height: 0; gap: .2rem; }
.hc-js .hc-movement-side svg.hc-spark.hc-spark-labeled { flex: 1 1 0; height: 100% !important; min-height: 0 !important; }

/* Players to watch tucked under the bars in the left column (wide screens). */
.hc-js .hc-players-side { margin-top: 1rem; padding-top: .85rem; width: 100%; }

/* "Run deep analysis" bar + loading overlay on slate cards (lib/hc-deep-run.js) */
.hc-deep-run { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.75rem; margin:0 auto 1.25rem; }
.hc-deep-run-btn {
  display:inline-flex; align-items:center; gap:.5rem; padding:.6rem 1.15rem; border-radius:999px;
  background:var(--hc-ball); color:#2b1100; font:700 .85rem/1 'Space Grotesk', sans-serif; letter-spacing:.02em;
  border:0; cursor:pointer; box-shadow:0 0 14px color-mix(in srgb, var(--hc-ball) 35%, transparent);
}
.hc-deep-run-btn .material-symbols-outlined { font-size:18px; }
.hc-deep-run-btn:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 0 20px color-mix(in srgb, var(--hc-ball) 50%, transparent); }
.hc-deep-run-btn:focus-visible { outline:2px solid var(--hc-cream, #f5ecde); outline-offset:3px; }
.hc-deep-run-btn:disabled { cursor:progress; opacity:.85; }
.hc-deep-run-btn.is-busy .material-symbols-outlined { animation:hc-deep-spin 1.2s linear infinite; }
.hc-deep-run-status { font:600 .72rem/1.3 'JetBrains Mono', ui-monospace, monospace; color:var(--hc-muted); letter-spacing:.03em; }
#hc-slate.hc-deep-loading article.game-slate-row > :not(.hc-deep-overlay) { filter:blur(3px) saturate(.6); opacity:.45; transition:filter .3s, opacity .3s; pointer-events:none; }
.hc-deep-overlay {
  position:absolute; inset:0; z-index:5; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.45rem;
  border-radius:inherit; background:linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--hc-ball) 7%, transparent) 50%, transparent 70%);
  background-size:220% 100%; animation:hc-deep-shimmer 1.6s linear infinite; pointer-events:none; text-align:center;
}
.hc-deep-spinner { width:28px; height:28px; border-radius:50%; border:3px solid color-mix(in srgb, var(--hc-ball) 25%, transparent); border-top-color:var(--hc-ball); animation:hc-deep-spin .9s linear infinite; }
.hc-deep-overlay-text { font:700 .95rem/1.2 'Space Grotesk', sans-serif; color:var(--hc-cream, #f5ecde); }
.hc-deep-overlay-sub { font:600 .72rem/1.2 'JetBrains Mono', ui-monospace, monospace; color:var(--hc-muted); }
@keyframes hc-deep-spin { to { transform:rotate(360deg); } }
@keyframes hc-deep-shimmer { from { background-position:120% 0; } to { background-position:-120% 0; } }
@media (prefers-reduced-motion: reduce) { .hc-deep-overlay, .hc-deep-spinner, .hc-deep-run-btn.is-busy .material-symbols-outlined { animation:none; } }
