/* ===== #280 (2026-10-21): retired chains defined NATIVELY in the Gamecast/Matchups family sheet (gamecast-d3.css).
   Values are the canonical d3 values the retired d3-convert.css bridge
   used to remap to — same computed result, no second layer. Retired names
   survive ONLY as definitions in this sheet. The bridge file leaves service
   when the last in-scope family drops its link. ===== */
:root[data-theme="d3"] {
  /* desert chain (canonical values) */
  --desert-bg: #0C121B; --desert-bg-rgb: 12,18,27;
  --desert-card: #141F2C; --desert-card-rgb: 20,31,44;
  --desert-pressed: #1B2A3B; --desert-pressed-rgb: 27,42,59;
  --desert-ink: #C7D0DA; --desert-ink-rgb: 199,208,218;
  --desert-ink-dim: #A4B3C2; --desert-ink-faint: #8FA3B5;
  --desert-rule: #223343;
  --desert-accent: #F2BC68; --desert-accent-rgb: 242,188,104;
  --desert-accent-soft: rgba(242,188,104,.12);
  --desert-accent-faint: rgba(242,188,104,.08);
  --desert-accent-ember: #F2BC68;
  --desert-accent-glow: rgba(242,188,104,.35);
  --desert-accent-glow-lg: rgba(242,188,104,.55);
  --desert-accent-deep: #B07E2E; --desert-accent-deep-rgb: 176,126,46;
  --desert-glass: rgba(12,18,27,.92);
  --desert-shadow: rgba(0,0,0,.45); --desert-shadow-rgb: 0,0,0;
  --desert-scrim-strong: rgba(12,18,27,.95);
  --desert-scrim-mid: rgba(12,18,27,.55);
  --desert-scrim-soft: rgba(12,18,27,.35);
  --desert-win-wash: rgba(242,188,104,.08);
  /* brand chain */
  --brand-red: #F2BC68; --brand-red-deep: #B07E2E;
  --brand-red-rgb: 242,188,104; --brand-red-ember: #F2BC68;
  --brand-action: #F2BC68; --brand-bg: #0C121B;
  --brand-ink: #C7D0DA; --brand-secondary: #A4B3C2;
  /* color chain */
  --color-bg: #0C121B; --color-surface: #141F2C;
  --color-surface-deep: #0A0F16; --color-text: #C7D0DA;
  --color-text-dim: #A4B3C2; --color-text-faint: #8FA3B5;
  --color-line: #223343; --color-accent: #F2BC68;
  --color-accent-deep: #B07E2E; --color-on-accent: #0C121B;
  --color-live: #F46B62;
  /* bible chain (the subset bible.css components consume on d3 pages) */
  --bible-bg: #0C121B; --bible-card: #141F2C; --bible-ink: #C7D0DA;
  --bible-ink-soft: #A4B3C2; --bible-ink-dim: #8FA3B5;
  --bible-red: #F2BC68; --bible-red-deep: #B07E2E;
  --bible-rule: #223343; --bible-minibar: rgba(12,18,27,.97);
  --bible-indexbar: rgba(12,18,27,.96); --bible-tabbar: rgba(12,18,27,.97);
  --bible-white: #F9F8F3; --bible-cream: #F9F8F3;
  --bible-cream-dim: rgba(249,248,243,.82);
  --bible-serif: 'Previously Display',Georgia,serif;
  --bible-hero-a: #1B2A3B; --bible-hero-b: #0C121B;
  --bible-hero-c: #0A0F16; --bible-hero-d: #0A0F16;
  --bible-art-a: #223343; --bible-art-b: #141F2C; --bible-art-c: #0A0F16;
  /* display token: the family's measured value (bridge :root re-point) */
  --d3-font-display: 'Previously Display', 'Inter', sans-serif;
  /* pv + generic font pins (tokens.css aliases resolve through these) */
  --pv-serif: 'Previously Display',Georgia,serif;
  --pv-live: #F46B62;
  --font-serif: 'Previously Display',Georgia,serif;
}

/* ============================================================================
   PREVIOUSLY — GAMECAST FAMILY D3 LAYER (#262, 2026-10-21)
   Matchup/gamecast pages carry an inline <style> (producer:
   /root/migration/matchup-generator/style.html) whose :root palette was the
   retired cream/brick shell. This sheet remaps that exact variable set to the
   canonical d3 values under html[data-theme="d3"] (specificity 0,1,1 beats
   the inline :root 0,1,0 regardless of order) and heals the hard-coded light
   spots the remap cannot reach. Producer style.html carries the same values
   natively, so regenerated pages match with or without this sheet.
   Canonical: ground #0C121B, surface-1 #141F2C, surface-2 #1B2A3B,
   text #C7D0DA/#A4B3C2/#8FA3B5, gold #F2BC68, line #223343.
   ========================================================================== */
html[data-theme="d3"]{
  --bg:#0C121B; --surface:#141F2C; --surface2:#1B2A3B;
  --ink:#C7D0DA; --text:#C7D0DA; --body:#A4B3C2;
  --muted:#A4B3C2; --faint:#8FA3B5;
  --line:#223343; --line-soft:rgba(199,208,218,.13);
  --red:#F2BC68; --red-deep:#B07E2E; --red-soft:rgba(242,188,104,.10);
  --gold:#F2BC68;
  --serif:'Previously Display',Georgia,serif;
}
html[data-theme="d3"] .mu-hero{
  background:
    radial-gradient(560px 300px at 16% -40px, rgba(242,188,104,.05), transparent 70%),
    linear-gradient(180deg, #1B2A3B 0%, var(--bg) 100%);
}
html[data-theme="d3"] .mu-facts-bar{ background:rgba(12,18,27,.94); }
html[data-theme="d3"] .mu-team-mark{ background:var(--surface); }
html[data-theme="d3"] .mu-stakes{ background:var(--red-soft); }
html[data-theme="d3"] .mu-read-more-btn{ background:var(--surface2); color:var(--red-deep); }
html[data-theme="d3"] .mu-player-num{ background:var(--surface2); }
html[data-theme="d3"] .mu-rel:hover{ background:var(--surface2); }
html[data-theme="d3"] .mu-league-tag::before,
html[data-theme="d3"] .mu-league-tag::after{ background:var(--line); }
html[data-theme="d3"] .mu-pmline{ border-top-color:var(--line); }
html[data-theme="d3"] .mu-versus .at{ color:var(--muted); }
/* Gamecast hero plate (.mu-gc, producer style.html gamecast block): brick
   keyline/wordmark underline -> gold; cream panel -> surface-1. --gc-ink
   stays near-black because it is the bug/strip BACKGROUND; the top wordmark
   and league line that used it as a text color are re-pointed explicitly. */
html[data-theme="d3"] .mu-gc.mu-gc{
  --gc-cream:#C7D0DA; --gc-ink:#0A0F16; --gc-brick:#F2BC68;
  --gc-dim:rgba(199,208,218,.52);
  background:#141F2C; border-color:#223343; color:#C7D0DA;
}
html[data-theme="d3"] .mu-gc .mu-gc-word{ color:#C7D0DA; }
html[data-theme="d3"] .mu-gc .mu-gc-lg{ color:#A4B3C2; }
html[data-theme="d3"] .mu-stakes,
html[data-theme="d3"] .mu-read-more-btn{ border-color:rgba(242,188,104,.32); }

/* #280 step 2: tokens consumed by this family's remaining sheets
   (footer.css / pv-player.css / pv-progress.css) homed at their measured
   values after the legacy design-tokens.css link was cut. */
:root[data-theme="d3"] {
  --color-win: #2E7D4F; --media-black: #000000;
  --pv-ivory: #C7D0DA; --pv-noir-2: #141F2C; --pv-rule: #223343;
}
