/* ============================================
   MATCHUP PAGE CSS (ticket 472)
   ============================================
   Consumed by: js/components/pages/MatchupPage.js
   Zone 1 (dark hero scoreboard) only — slot-by-slot rows (Zone 3) land in
   ticket 473, the win-probability strip (Zone 2) is a later ticket. Uses the
   --color-scoreboard-* token family (public/styles/design-tokens.css) —
   the first dark surface in the app. See design-tokens.css for the
   contrast-measurement notes behind the -lead/-accent/-live accent tokens. */

.matchup-page {
  display: flex;
  flex-direction: column;
}

/* Visually-hidden SR status announcement (ticket 473 slate switcher — "Now
   viewing X versus Y"). Same clip-based pattern other features scope
   locally (e.g. .lot-sr-only in features/lottery.css); no shared global
   .sr-only utility exists yet. */
.matchup-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;
}

/* ----------------------------------------
   LOADING / EMPTY STATES (light — matches the rest of the app; the dark
   hero only ever renders once real matchup data exists)
   ---------------------------------------- */

.matchup-loading {
  padding: var(--space-base);
}

.matchup-skeleton {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: var(--border-width-default) solid var(--border-default);
  animation: matchupSkeletonPulse 1.5s ease-in-out infinite;
}

.matchup-skeleton.hero {
  height: 220px;
  margin-bottom: var(--space-base);
}

.matchup-skeleton.row {
  height: 64px;
  margin-bottom: var(--space-sm);
}

@keyframes matchupSkeletonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.matchup-none {
  text-align: center;
  padding: var(--space-base);
}

.matchup-none-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-default);
  padding: var(--space-2xl);
  border: var(--border-width-medium) solid var(--border-default);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-base);
}

.matchup-none-link {
  min-height: var(--touch-target-min);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius-default);
  border: var(--border-width-default) solid var(--color-action-primary);
  background: none;
  color: var(--color-action-primary);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}

/* ----------------------------------------
   ZONE 1 — SCOREBOARD (hero)
   ---------------------------------------- */

.matchup-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--color-scoreboard-hero-top) 0%,
    var(--color-scoreboard-chrome) 100%
  );
  border-bottom: var(--border-width-thick) solid var(--color-scoreboard-lead);
  padding: var(--space-md) var(--space-md) var(--space-sm);
}

/* Retro scoreboard texture — a faint diagonal stripe overlay. Decorative
   only; kept at a literal low-alpha white rather than a token since it is
   a translucent overlay, not a flat surface fill. */
.matchup-hero-band {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.035) 0 2px,
    transparent 2px 9px
  );
}

.matchup-week-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 2.5px;
  color: var(--color-scoreboard-accent);
  margin-bottom: var(--space-md);
}

.matchup-live-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--color-scoreboard-live);
  animation: matchupLivePulse 1.4s infinite;
}

@keyframes matchupLivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.matchup-duel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
}

.matchup-duel-seam {
  position: absolute;
  left: 50%;
  top: -14px;
  bottom: -12px;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--color-scoreboard-seam),
    transparent
  );
}

.matchup-duel-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.matchup-duel-side.right {
  align-items: flex-end;
  text-align: right;
}

/* The team-name tap target. Visually compact (17px name + 9.5px record)
   but padded to the 44px WCAG 2.5.5 minimum via min-height, not by
   inflating the visible text. */
.matchup-duel-info {
  min-height: var(--touch-target-min);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
}

.matchup-duel-side.right .matchup-duel-info {
  align-items: flex-end;
}

.matchup-duel-name {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 1.2px;
  color: var(--color-white);
  line-height: 1.05;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.matchup-duel-record {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-scoreboard-text-muted);
  letter-spacing: 1px;
  margin-top: 2px;
}

.matchup-duel-vs {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--color-scoreboard-text-dim);
  text-align: center;
}

.matchup-duel-score {
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 0.86;
  letter-spacing: 1px;
  margin-top: var(--space-xs);
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
  transition: color var(--transition-slow);
}

.matchup-duel-score.lead {
  color: var(--color-scoreboard-lead);
  /* Glow tracks whichever lead color is active per theme — a fixed orange
     rgba() here would put an orange halo around Eagles green / Giants pink
     on the 3 themes with a --color-scoreboard-lead override. */
  text-shadow: 0 0 26px color-mix(in srgb, var(--color-scoreboard-lead) 45%, transparent);
}

.matchup-margin-bar {
  height: 12px;
  border-radius: var(--border-radius-full);
  background: var(--color-scoreboard-row);
  border: var(--border-width-default) solid var(--color-scoreboard-border);
  overflow: hidden;
  display: flex;
  margin-top: var(--space-md);
}

.matchup-margin-fill {
  display: block;
  height: 100%;
  transition: width 0.5s ease;
}

.matchup-margin-fill.you {
  background: var(--color-scoreboard-lead);
}

.matchup-margin-fill.them {
  background: var(--color-scoreboard-accent);
}

.matchup-margin-caption {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 1px;
  margin-top: var(--space-xs);
  color: var(--color-scoreboard-text-muted);
}

.matchup-storyline {
  margin-top: var(--space-md);
  text-align: center;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 1.6px;
  color: var(--color-highlight-cream);
}

/* #477: the UP/DOWN/TIED margin number. --color-scoreboard-lead (NOT raw
   --color-action-primary — see design-tokens.css's measured-contrast note
   at that token's definition, and every other on-dark orange use in this
   file) is the per-theme-safe alias the leading score/tug fill already use,
   per the README ("Storyline line ... with the number in orange"). The
   prefix word (.matchup-storyline-prefix) needs no separate rule — it
   inherits .matchup-storyline's cream color already (review-round fold-in:
   the earlier explicit re-declaration was a no-op). */
.matchup-storyline-number {
  color: var(--color-scoreboard-lead);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------
   ZONE 2 — WIN PROBABILITY STRIP (ticket 476)
   Deliberately small (README: "context for the scoreboard, not a competitor
   to it"). Sits directly below the hero, above the week-slate switcher's
   light chrome and Zone 3's slot rows — same dark-surface family as both.
   ---------------------------------------- */

.matchup-wp {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) var(--space-base);
  background: var(--color-scoreboard-surface);
  /* BLOCKING-6 (review round): spec/prototype both call for a 2px bottom
     border here — --border-width-thick is 4px, the hero's border weight,
     not this strip's. */
  border-bottom: var(--border-width-default) solid var(--color-scoreboard-border);
}

.matchup-wp-num {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 0.9;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  /* --color-scoreboard-lead (not raw --color-action-primary): measured
     against --color-scoreboard-surface, the raw per-theme action color
     FAILS outright for 3 of 8 themes here (eagles 2.49:1, giants 2.85:1,
     bengals 1.04:1 — same class of failure design-tokens.css documents for
     -hero-top) — the -lead override token is already theme-corrected for
     exactly this dark-surface family and re-measured clean at all 8 (>=
     6.06:1, the dolphins/default floor). Don't swap back to the raw
     action-primary token. */
  color: var(--color-scoreboard-lead);
  /* Same duration as the hero's leader-score color flip (.matchup-duel-score,
     --transition-slow) — the two numbers change color for the same reason
     (a lead flip) so they shouldn't visibly transition at different speeds. */
  transition: color var(--transition-slow);
}

.matchup-wp-num.trail {
  /* --color-danger-lighter (not -light): -light is theme-overridden with
     much darker per-team reds that read as near-black on this dark bg — the
     exact "-light fails on non-dolphins themes" finding from the slot-rows
     and box-score review rounds. -lighter is the one danger shade themeConfig.js never
     overrides, so it's the SAME fixed brick-red-300 value (6.59:1 against
     --color-scoreboard-surface) in every theme. Same precedent as the slot
     rows' loss rib / negative margin text below. */
  color: var(--color-danger-lighter);
}

.matchup-wp-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 1.6px;
  /* 8.64:1 against --color-scoreboard-surface — same token the hero's
     slot-margin caption already uses for small mono labels on this family. */
  color: var(--color-scoreboard-text-muted);
  margin-top: 3px;
}

.matchup-wp-chart {
  position: relative;
  height: 46px;
}

.matchup-wp-svg {
  display: block;
  width: 100%;
  height: 100%;
  /* Sets `currentColor` for the gradient stops + stroke inside this SVG
     (both read `stop-color="currentColor"` / `stroke="currentColor"` — no
     raw hex in the SVG, per the ticket's "SVG included" rule). Always the
     lead/action color regardless of leading/trailing — only the percentage
     number flips shade; the sparkline itself stays the design's "orange
     line" consistently (README Zone 2 spec). */
  color: var(--color-scoreboard-lead);
}

.matchup-wp-endpoint {
  fill: var(--color-highlight-cream);
  stroke: var(--color-scoreboard-lead);
  stroke-width: 2;
  transition: cx 0.3s ease, cy 0.3s ease;
}

/* Dashed 50% reference line — decorative overlay, not a text/flat-surface
   fill. Fold-in (review round): tokenized as --color-scoreboard-fifty-line
   (design-tokens.css, a sibling of --color-scoreboard-seam) rather than left
   as a literal rgba — same "muted line on dark" intent as
   --color-scoreboard-text-muted's rgb triple, just translucent. */
.matchup-wp-fifty {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: var(--border-width-thin) dashed var(--color-scoreboard-fifty-line);
}

/* Fold-in (review round): aria-hidden — these are x-axis captions for a
   chart the SVG already marks aria-hidden; the accessible win-probability
   value is delivered separately via the .matchup-sr-only span next to
   .matchup-wp-num. Index-based spacing (evenly across the strip, not
   proportional to real kickoff times) matches the design prototype as-is;
   sampling the ACTUAL per-game timestamps to space these proportionally is
   a future nicety, not required for v1. */
.matchup-wp-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 1px;
  /* 4.67:1 against --color-scoreboard-surface — matches the prototype's
     literal footer-text value exactly (--color-scoreboard-text-dimmer). */
  color: var(--color-scoreboard-text-dimmer);
  margin-top: var(--space-xs);
}

/* ----------------------------------------
   WEEK-SLATE SWITCHER (ticket 473 — NOT in the design handoff. Light-page chrome,
   sitting above the dark hero, so it reuses the app's standard light-surface
   tokens rather than the --color-scoreboard-* dark-surface family.)
   ---------------------------------------- */

/* Commissioner review (2026-08-21): the strip must live on the same dark
   surface family as the rest of the Face-Off screen — a light card strip
   between the dark header and dark hero read as a seam. */
.matchup-slate {
  padding: var(--space-sm) 0;
  background: var(--color-scoreboard-chrome);
  border-bottom: var(--border-width-thin) solid var(--color-scoreboard-border-strong);
}

.matchup-slate-strip {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: 0 var(--space-base);
  scroll-snap-type: x proximity;
  /* Touch-momentum scrolling (iOS) + hidden scrollbar, matching the
     project's other swipeable strips. */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.matchup-slate-strip::-webkit-scrollbar {
  display: none;
}

.matchup-slate-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: var(--touch-target-min);
  min-width: 132px;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-default);
  border: var(--border-width-default) solid var(--color-scoreboard-border);
  background: var(--color-scoreboard-row);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.matchup-slate-chip:focus-visible {
  outline: 2px solid var(--color-scoreboard-lead);
  outline-offset: 2px;
}

/* Selected state on the dark surface: lead-colored border + bright bold
   text carries "selected" (the tint delta between -row and -hero-top is
   deliberately subtle; the earlier light-theme review proved bg alone
   never reads). --color-scoreboard-lead carries the per-theme contrast
   overrides from ticket 472, so the border clears 3:1 on all 8 themes. */
.matchup-slate-chip.active {
  background: var(--color-scoreboard-hero-top);
  border-color: var(--color-scoreboard-lead);
}

.matchup-slate-chip.active .matchup-slate-chip-team {
  color: var(--color-scoreboard-text-bright);
  font-weight: var(--font-weight-bold);
}

.matchup-slate-chip-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-scoreboard-text-muted);
}

.matchup-slate-chip-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 88px;
}

.matchup-slate-chip-score {
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
  /* Numerals bright, labels muted — the screen-wide dark-surface rule */
  color: var(--color-scoreboard-text-bright);
}

/* ----------------------------------------
   ZONE 3 — SLOT BY SLOT (ticket 473)
   ---------------------------------------- */

.matchup-slots {
  background: var(--color-scoreboard-screen);
  padding-bottom: var(--space-md);
}

.matchup-slots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-base) var(--space-sm);
}

.matchup-slots-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2.2px;
  color: var(--color-white);
}

.matchup-slots-toggle {
  min-height: var(--touch-target-min);
  padding: 0 var(--space-md);
  border-radius: var(--border-radius-default);
  border: var(--border-width-thin) solid var(--color-scoreboard-border-strong);
  background: none;
  color: var(--color-scoreboard-accent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 1.2px;
  cursor: pointer;
}

.matchup-slots-toggle:focus-visible {
  outline: 2px solid var(--color-scoreboard-accent);
  outline-offset: 2px;
}

.matchup-rows {
  padding: 0 var(--space-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.matchup-row {
  background: var(--color-scoreboard-row);
  border: var(--border-width-default) solid var(--color-scoreboard-border);
  border-radius: var(--border-radius-md);
}

/* 6px left rib — countable win/loss signal, no number required. Ties (the
   spec is silent on a tie treatment) keep the plain 2px border.
   BLOCKING fix (review round): --color-danger-primary is theme-overridden
   (paired with -light/-lighter per team) and several themes' overrides read
   as near-black on this dark row fill — niners measured 1.00:1, effectively
   invisible. --color-danger-lighter is the one danger shade themeConfig.js
   never overrides, so it's the same value (and same 6.38:1 contrast) in
   every theme — used here for the rib (non-text, WCAG 1.4.11's 3:1 floor)
   AND below for the margin text (WCAG AA normal-text 4.5:1 floor). Don't
   swap either back to -primary or -light. */
.matchup-row.win {
  border-left-width: var(--border-width-thickest);
  border-left-color: var(--color-positive);
}

.matchup-row.loss {
  border-left-width: var(--border-width-thickest);
  border-left-color: var(--color-danger-lighter);
}

.matchup-row-toggle {
  display: block;
  width: 100%;
  min-height: var(--touch-target-min);
  padding: var(--space-sm) var(--space-md);
  background: none;
  border: none;
  margin: 0;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  /* Full-row tap surface, well above the 44px minimum (top line + tug bar +
     points line + chevron stack to ~78px) — min-height is a floor, not the
     expected size. */
}

.matchup-row-toggle:focus-visible {
  outline: 2px solid var(--color-scoreboard-accent);
  outline-offset: -2px;
}

.matchup-row-top {
  display: grid;
  grid-template-columns: 1fr 46px 1fr;
  align-items: center;
  gap: var(--space-xs);
}

.matchup-row-player {
  min-width: 0;
}

.matchup-row-player.right {
  text-align: right;
}

.matchup-row-player-name {
  font-size: 12.5px;
  font-weight: var(--font-weight-bold);
  color: var(--color-scoreboard-text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.matchup-row-player-meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-scoreboard-text-dim);
}

.matchup-row-player.right .matchup-row-player-meta {
  justify-content: flex-end;
}

.matchup-row-chip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 1px;
  text-align: center;
  border-radius: var(--border-radius-sm);
  padding: var(--space-2xs) 0;
}

.matchup-row-tug {
  position: relative;
  margin-top: var(--space-xs);
  height: 8px;
  border-radius: var(--border-radius-full);
  background: var(--color-scoreboard-screen);
  border: var(--border-width-thin) solid var(--color-scoreboard-border);
  overflow: hidden;
}

.matchup-row-tug-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  transition: width 0.5s ease;
}

.matchup-row-tug-fill.you {
  left: 0;
  background: var(--color-scoreboard-lead);
}

.matchup-row-tug-fill.them {
  right: 0;
  background: var(--color-scoreboard-accent);
}

.matchup-row-tug-notch {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  margin-left: -1px;
  background: var(--color-highlight-cream);
  /* Fold-in fix (review round): a 1px dark ring so the light notch doesn't
     wash out against whichever fill color (orange "you" / aqua "them") it
     happens to sit on top of at the split point. */
  box-shadow: 0 0 0 1px var(--color-scoreboard-screen);
  transition: left 0.5s ease;
}

.matchup-row-points {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: var(--color-scoreboard-text-bright);
}

.matchup-row-margin {
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 1px;
}

.matchup-row-margin.pos {
  color: var(--color-positive);
}

.matchup-row-margin.neg {
  /* BLOCKING fix (review round): --color-danger-light fails AA-normal on
     7/8 themes against this row fill (niners 1.26:1) — see the rib comment
     above for the same root cause. --color-danger-lighter is the fixed
     6.38:1 shade. */
  color: var(--color-danger-lighter);
}

.matchup-row-margin.neu {
  color: var(--color-scoreboard-text-dim);
}

.matchup-row-chevron {
  font-family: var(--font-mono);
  font-size: 9px;
  /* BLOCKING fix (review round): -text-faint is 3.60:1 on this row fill —
     large-text-only, fails AA-normal at 9px. -text-dim clears 5.61:1. */
  color: var(--color-scoreboard-text-dim);
  text-align: center;
  margin-top: 5px;
  letter-spacing: 2px;
}

.matchup-row.open .matchup-row-chevron {
  color: var(--color-scoreboard-accent);
}

/* ----------------------------------------
   EXPANDED BOX SCORE (box-score expansion ticket) — sibling of
   .matchup-row-toggle, not nested inside it (see MatchupPage.js's
   renderSlotDetail comment). Only ever rendered while a row is open, so no
   display:none/height-transition dance is needed here — React mounts/
   unmounts it directly.
   ---------------------------------------- */

.matchup-row-detail {
  margin: 0 var(--space-md) var(--space-sm);
  padding-top: var(--space-sm);
  border-top: var(--border-width-thin) dashed var(--color-scoreboard-border-strong);
}

.matchup-row-detail-cols {
  display: grid;
  grid-template-columns: 1fr var(--border-width-thin) 1fr;
  gap: var(--space-sm);
}

/* review-round fold-in: `--color-scoreboard-border` measured 1.46:1 against
   this row fill — effectively invisible, so the spec'd column split never
   actually read. `--color-scoreboard-text-dim` clears WCAG 1.4.11's 3:1
   non-text floor with headroom (measured 5.61:1, same token already used
   for the chevron elsewhere in this file) — a real hairline, not a text
   color, but bright enough to see against `--color-scoreboard-row`. */
.matchup-row-detail-sep {
  background: var(--color-scoreboard-text-dim);
}

.matchup-row-detail-side {
  min-width: 0;
}

.matchup-row-detail-side.right {
  text-align: right;
}

.matchup-row-detail-header {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: var(--font-weight-black);
  letter-spacing: 1.4px;
  color: var(--color-scoreboard-lead);
  margin-bottom: var(--space-2xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.matchup-row-detail-side.right .matchup-row-detail-header {
  color: var(--color-scoreboard-accent);
}

/* review-round BLOCKING-1: a column can render REAL stat lines that did not
   themselves sum to the displayed points (final/overridden/finalized-week
   cases — buildSlotSide's `pointsSource`) — this badge is the auditability
   signal that distinguishes "these lines are where the score came from"
   (no badge, the derived/live default) from "these lines are real, but the
   score is a separately-authoritative number" (OVERRIDDEN/OFFICIAL). */
.matchup-row-detail-badge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 1px;
  /* Trust signal must not be dimmer than the lines it qualifies (8.37:1) */
  color: var(--color-scoreboard-text-muted);
  margin-bottom: var(--space-2xs);
}

.matchup-row-stat-line {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-scoreboard-text-muted);
  line-height: 1.75;
  overflow-wrap: break-word;
}

/* Every numeral bold + brightened, all surrounding text stays the muted
   parent color — the box-score spec calls out "mixed treatment in one block
   reads as a bug," so this is the ONLY color/weight step inside a line. */
.matchup-row-stat-num {
  color: var(--color-scoreboard-text-bright);
  font-weight: var(--font-weight-black);
}

/* Shared minimal-treatment label for both the truly-empty slot and the
   null-statCounters case (the one-source precedence rule — feed outage,
   override, unresolved schedule, finalized week with nothing stored, bye).
   Never fabricates a 0-stat line under a real cached score. */
.matchup-row-detail-state {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 1px;
  color: var(--color-scoreboard-text-dim);
  line-height: 1.75;
}

/* review-round fold-in: ONE full-width rule under BOTH columns (mirrors the
   design prototype's `.dfoot` pattern), not two per-column hairlines that
   landed at different y-offsets whenever only one side qualified — a
   sibling of `.matchup-row-detail-cols`, not nested inside either side. */
.matchup-row-detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-sm);
  padding-top: var(--space-xs);
  border-top: var(--border-width-thin) solid var(--color-scoreboard-border-subtle);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 1.1px;
  color: var(--color-scoreboard-text-dim);
}

@media (prefers-reduced-motion: reduce) {
  .matchup-live-dot {
    animation: none;
  }
  .matchup-duel-score {
    transition: none;
  }
  .matchup-row-tug-fill,
  .matchup-row-tug-notch {
    transition: none;
  }
  .matchup-wp-num,
  .matchup-wp-endpoint {
    transition: none;
  }
}
