:root {
  --ink: #0b1f2a;
  --navy: #102f3e;
  --navy-2: #17485a;
  --chalk: #f4f0e6;
  --paper: #fbfaf6;
  --white: #ffffff;
  --turf: #0e8b79;
  --turf-dark: #087064;
  --orange: #f0643b;
  --orange-soft: #fff0ea;
  --amber: #9a5800;
  --amber-soft: #fff7df;
  --amber-bright: #ffc857;
  --sky: #a9d7df;
  --muted: #667881;
  --line: #d9dfdc;
  --soft-line: #e9ece8;
  --shadow: 0 18px 50px rgba(11, 31, 42, 0.12);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.2, .85, .25, 1.15);
  --motion-fast: 160ms;
  --motion-base: 240ms;
  --motion-view: 760ms;
  --display: "DIN Condensed", "Arial Narrow", "Avenir Next Condensed", sans-serif;
  --body: "Avenir Next", Avenir, Inter, system-ui, sans-serif;
  --utility: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* A signed-in league must never briefly expose the fixture prototype while its
   server-scoped lineup context is still loading. */
.authoritative-preboot .app-shell { visibility: hidden; }
#authoritative-boot-shell {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  background: #f7f3ea;
  color: #061e27;
  font: 700 13px var(--utility);
  letter-spacing: .06em;
  text-align: center;
}
#authoritative-boot-shell strong,
#authoritative-boot-shell span { display: block; }
#authoritative-boot-shell strong { font: 900 28px var(--display); text-transform: uppercase; }
#authoritative-boot-shell span { max-width: 460px; color: #4d6872; }
#authoritative-boot-shell button { justify-self: center; margin-top: 10px; padding: 10px 14px; border: 0; background: #061e27; color: #fff; cursor: pointer; font: 800 11px var(--utility); }
#authoritative-boot-shell[hidden] { display: none; }
html.is-authoritative [data-view-target="simulator"],
html.is-authoritative #view-simulator { display: none !important; }

/* Live ranks are decision surfaces: preserve names and readable state labels
   instead of compressing them into ellipses on narrow boards. */
.team-cell strong,
.team-cell span,
.mini-player strong,
.score-breakdown-player strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.team-cell strong,
.mini-player strong { font-size: clamp(16px, 1.15vw, 21px); line-height: 1.18; }
.team-cell span,
.mini-player span { font-size: clamp(13px, .9vw, 16px); }
.score-breakdown-player > span,
.score-breakdown-phase,
.score-breakdown-total small { font-size: 12px; }
.score-breakdown-player strong { font-size: clamp(20px, 2vw, 30px); line-height: 1.1; }
.score-breakdown-total strong { margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: .84; }
@media (max-width: 700px) {
  .team-cell strong, .mini-player strong { font-size: 17px; }
  .team-cell span, .mini-player span { font-size: 14px; }
  .score-breakdown-player strong { font-size: 24px; }
}

/* Server-gated regular-season launch admission. */
.invite-page { min-height: 100vh; display: grid; align-content: center; gap: 24px; padding: clamp(24px, 6vw, 88px); background: #071f28; color: #f7f2e8; }
.invite-hero, .invite-card { width: min(100%, 560px); margin: 0 auto; }
.invite-hero h1 { margin: 8px 0 12px; font-size: clamp(2.5rem, 8vw, 5rem); line-height: .92; letter-spacing: -.055em; }
.invite-hero p { max-width: 48ch; color: #b7c9cc; font-size: 1.05rem; line-height: 1.6; }
.invite-eyebrow { margin: 0; color: #e8bf56 !important; font-size: .75rem !important; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.invite-card { padding: clamp(22px, 4vw, 34px); border: 1px solid #31515a; background: #0d2c36; box-shadow: 12px 12px 0 rgba(0,0,0,.14); }
.invite-card h2 { margin: 0 0 8px; font-size: 1.4rem; }
.invite-card p { color: #b7c9cc; line-height: 1.5; }
.invite-card form { display: grid; gap: 10px; margin-top: 18px; }
.invite-card label { margin-top: 6px; color: #d7e1df; font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.invite-card label span { color: #91aeb3; font-weight: 600; text-transform: none; }
.invite-card input, .invite-card select { width: 100%; min-height: 46px; box-sizing: border-box; border: 1px solid #45636a; border-radius: 0; padding: 10px 12px; background: #08232c; color: #f7f2e8; font: inherit; }
.invite-card input:focus-visible, .invite-card select:focus-visible, .invite-card a:focus-visible, .invite-card button:focus-visible { outline: 3px solid #e8bf56; outline-offset: 3px; }
.invite-primary, .invite-secondary { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; margin-top: 8px; border: 0; padding: 10px 15px; background: #e8bf56; color: #071f28; font: inherit; font-weight: 900; text-decoration: none; cursor: pointer; }
.invite-secondary { border: 1px solid #45636a; background: transparent; color: #f7f2e8; }
.invite-primary:disabled, .invite-secondary:disabled { cursor: wait; opacity: .65; }
.invite-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 20px 0 4px; color: #91aeb3; font-size: .78rem; }
.invite-divider::before, .invite-divider::after { content: ""; height: 1px; background: #31515a; }
@media (prefers-reduced-motion: reduce) { .invite-page *, .invite-page *::before, .invite-page *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
html.is-large-text { --accessibility-text-scale: 1.2; }
html.is-large-text .rules-card .scoring-rule-row > span strong { font-size: 21px; }
html.is-large-text .rules-card .scoring-rule-row > span small { font-size: 17px; }
html.is-large-text .rules-card .scoring-rule-row > b { font-size: 28px; }
html.is-large-text .rules-card .scoring-summary-card p { font-size: 17px; }

button, input, select { font: inherit; }
button { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button:active { transform: scale(.985); }

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 90px;
  top: 12px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.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;
}

.app-shell { min-height: 100vh; }

.rail {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--ink);
  color: var(--chalk);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.brand-mark {
  width: 82px;
  height: 82px;
  border: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
  font-family: var(--display);
  font-size: 31px;
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -1px;
}
.brand-mark span:nth-child(2) { font-size: 15px; transform: translateY(-2px); }

.rail-nav {
  width: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding-top: 34px;
}

.rail-link {
  position: relative;
  min-height: 70px;
  border: 0;
  background: transparent;
  color: #8fa4ad;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rail-link::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 3px;
  background: transparent;
}
.rail-link:hover { color: var(--chalk); }
.rail-link.is-active { color: var(--white); }
.rail-link.is-active::before { background: var(--orange); }
.rail-link svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.profile-orb {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  margin: 0 0 25px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  background: var(--navy-2);
  color: var(--white);
  cursor: pointer;
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  overflow: hidden;
  transition: transform var(--motion-fast) var(--ease-spring), border-color var(--motion-fast) ease;
}
.profile-orb:hover { transform: translateY(-2px) rotate(-2deg); border-color: var(--sky); }

.workspace { margin-left: 82px; }

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(22px, 4vw, 62px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar h1 {
  margin: 2px 0 0;
  font-size: clamp(20px, 2.3vw, 29px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.025em;
}
#page-title:focus { outline: none; }
.eyebrow, .section-kicker, .utility-label {
  margin: 0;
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); }
.eyebrow span { color: var(--orange); padding: 0 4px; }

.topbar-actions { display: flex; align-items: center; gap: 12px; }
.freshness {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.freshness strong { color: var(--ink); }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turf);
  box-shadow: 0 0 0 4px rgba(14,139,121,.12);
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  cursor: pointer;
  transition: color var(--motion-fast) ease, border-color var(--motion-fast) ease, background var(--motion-fast) ease, transform var(--motion-fast) ease;
}
.icon-button:hover { border-color: var(--ink); }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.is-spinning svg { animation: spin .65s ease; }

.game-ticker {
  position: relative;
  z-index: 10;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ticker-label {
  min-width: 124px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: .08em;
}
.ticker-label .live-dot { background: var(--white); box-shadow: 0 0 0 4px rgba(255,255,255,.17); }
.ticker-label > span:last-child { opacity: .75; }
.ticker-games {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 226, 232, .62) rgba(255,255,255,.08);
  outline-offset: -3px;
}
.ticker-games::-webkit-scrollbar { height: 6px; }
.ticker-games::-webkit-scrollbar-track { background: rgba(255,255,255,.08); }
.ticker-games::-webkit-scrollbar-thumb { background: rgba(184, 226, 232, .62); border-radius: 999px; }
.ticker-games:focus-visible { outline: 2px solid var(--sky); }
.ticker-game {
  min-width: 196px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 22px;
  padding: 7px 20px;
  border-right: 1px solid rgba(255,255,255,.12);
  font-family: var(--utility);
  font-variant-numeric: tabular-nums;
}
.ticker-game .game-status { grid-row: 1 / 3; align-self: center; color: var(--sky); font-size: 8px; letter-spacing: .06em; }
.ticker-game strong { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; }
.ticker-game strong span { color: #bacbd1; font-weight: 500; }
.ticker-game.is-red-zone { box-shadow: inset 3px 0 0 var(--orange); }
.ticker-game.is-red-zone .game-status { color: #ff9778; }
.ticker-game.is-final { opacity: .62; }
.ticker-action {
  min-width: 190px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.12);
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: background var(--motion-fast) ease;
}
.ticker-action:hover { background: var(--navy-2); }
.ticker-action:disabled { color: #9eb0b7; background: var(--ink); cursor: default; }

.view { animation: viewIn var(--motion-base) var(--ease-out) both; }
.view[hidden] { display: none; }

.lineup-brief {
  min-height: 94px;
  display: grid;
  grid-template-columns: minmax(180px,.75fr) minmax(340px,1.8fr) minmax(170px,.72fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.lineup-brief > div {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 16px clamp(22px, 3vw, 42px);
  background: var(--white);
}
.lineup-brief strong { font-size: 18px; }
.lineup-brief span:not(.utility-label):not(.yard-fill) { color: var(--muted); font-size: 11px; }
.deadline-block strong {
  margin: 2px 0;
  font-family: var(--utility);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.deadline-block.is-missed { background: #fff0ee; }
.deadline-block.is-missed strong { color: #9e2d20; }
.cut-block { border-left: 3px solid var(--orange); }

.week-progress-copy { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.yard-line {
  position: relative;
  height: 9px;
  background: #dfe5e1;
}
.yard-line .yard-fill { position: absolute; inset: 0 auto 0 0; width: 50%; background: var(--turf); }
.yard-line i { position: absolute; top: -2px; width: 1px; height: 13px; background: var(--white); opacity: .75; }
.yard-line b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 24px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: var(--white);
  font-family: var(--utility);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .06em;
}

.lineup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(295px, 360px);
  gap: clamp(22px, 3.2vw, 48px);
  padding: clamp(24px, 4vw, 54px) clamp(22px, 4vw, 62px) 70px;
}

.roster-panel { min-width: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2, .leaderboard-hero h2, .recap-title-row h2 {
  margin: 3px 0 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: .95;
  text-transform: uppercase;
}
.section-heading h2 { font-size: clamp(38px, 4.5vw, 58px); }
.section-kicker { color: var(--turf-dark); }
.lineup-heading-actions { display: flex; align-items: center; gap: 10px; }
.week-selector {
  min-height: 48px;
  display: grid;
  grid-template-columns: 38px minmax(108px, 1fr) 38px;
  border: 1px solid var(--line);
  background: var(--white);
}
.week-selector button { border: 0; background: var(--navy); color: var(--white); cursor: pointer; font-size: 16px; }
.week-selector button:hover:not(:disabled) { background: var(--turf-dark); }
.week-selector button:disabled { opacity: .34; cursor: not-allowed; }
.week-selector label { min-width: 108px; display: grid; align-content: center; padding: 5px 10px; border-inline: 1px solid var(--line); }
.week-selector label span { font-family: var(--utility); font-size: 7px; letter-spacing: .12em; color: var(--muted); }
.week-selector select { width: 100%; border: 0; outline: 0; appearance: none; background: transparent; color: var(--ink); font-family: var(--display); font-size: 21px; font-weight: 900; line-height: 1; cursor: pointer; }
.completion-chip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--utility);
  font-size: 11px;
}
.completion-chip strong { color: var(--ink); }
.completion-chip.is-saved { border-color: #b9ddd4; background: #e8f5f1; color: var(--turf-dark); font-weight: 700; }
.completion-chip.is-dirty { border-color: #f0b6a5; background: var(--orange-soft); color: #a33c20; font-weight: 700; }
.completion-chip.is-eliminated { border-color: #df9b91; background: #fff0ee; color: #9e2d20; font-weight: 700; }
.completion-chip.is-final { border-color: #b9ddd4; background: #e8f5f1; color: var(--turf-dark); font-weight: 700; }

.submission-policy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.policy-item {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #b9ddd4;
  background: #f1faf7;
}
.policy-item.is-warning { border-color: #f0b6a5; background: var(--orange-soft); }
.policy-item svg { flex: 0 0 25px; width: 25px; fill: none; stroke: var(--turf-dark); stroke-width: 1.7; }
.policy-item.is-warning svg { stroke: #b54425; }
.policy-item strong, .policy-item span { display: block; }
.policy-item strong { font-size: 12px; }
.policy-item span { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }

.elimination-huddle {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0 0 20px;
  padding: 17px 20px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: repeating-linear-gradient(-45deg, #fff0ee 0 11px, #fff8f5 11px 22px);
}
.elimination-huddle[hidden] { display: none; }
.elimination-huddle .utility-label { color: #9e2d20; }
.elimination-huddle h3 { margin: 4px 0 5px; font-family: var(--display); font-size: clamp(25px, 3vw, 38px); line-height: .9; text-transform: uppercase; }
.elimination-huddle p { max-width: 560px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.elimination-football { position: relative; width: 78px; height: 50px; transform: rotate(-18deg); border: 3px solid var(--ink); border-radius: 50%; background: #bf442d; box-shadow: 5px 5px 0 var(--ink); }
.elimination-football::before { content: ""; position: absolute; inset: 6px 36px; border-inline: 2px solid #f7d1b8; }
.elimination-football i { position: absolute; top: 22px; left: 23px; width: 31px; border-top: 3px solid #f7d1b8; }
.elimination-football b { position: absolute; top: 14px; left: 36px; width: 3px; height: 19px; background: #f7d1b8; }
@media (prefers-reduced-motion: no-preference) { .elimination-football { animation: elimination-whistle 620ms var(--ease-spring) both; } }
@keyframes elimination-whistle { from { opacity: 0; transform: translateX(-24px) rotate(-44deg); } to { opacity: 1; transform: translateX(0) rotate(-18deg); } }

.roster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.roster-slot {
  min-height: 82px;
  padding: 0;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: stretch;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}
.roster-slot:hover { transform: translateY(-2px); border-color: var(--turf); box-shadow: 0 8px 20px rgba(11,31,42,.08); }
.roster-slot:disabled { cursor: not-allowed; }
.roster-slot:disabled:hover { transform: none; border-color: var(--line); box-shadow: none; }
.roster-slot.is-locked { background: #f1f3f1; }
.roster-slot.is-locked .slot-position { background: #53666e; }
.roster-slot.is-locked .slot-player span { color: #54676f; }
.roster-slot.is-locked.is-finalizing { border-color: #9bcbd7; background: #edf8fa; }
.roster-slot.is-locked.is-finalizing .slot-position { background: var(--navy-2); }
.roster-slot.is-locked.is-finalizing .slot-player .slot-matchup { color: var(--navy); }
.roster-slot.is-locked.is-finalizing .slot-player .player-current-stats { color: #1d6383; }
.roster-slot.is-recent { animation: slotConfirm 420ms var(--ease-spring) both; border-color: var(--turf); }
.roster-slot.is-empty { border-style: dashed; background: rgba(255,255,255,.52); }
.roster-slot.is-empty:hover { background: var(--white); }
.slot-position {
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
}
.player-art {
  --player-team: var(--navy);
  --player-accent: var(--orange);
  --player-accent-text: var(--ink);
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 3px solid var(--player-accent);
  border-radius: 13px;
  background: var(--player-team);
}
.player-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-art-position,
.player-art-team {
  position: absolute;
  z-index: 1;
  padding: 3px 5px;
  font-family: var(--utility);
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
}
.player-art-position {
  left: 0;
  bottom: 0;
  background: var(--player-accent);
  color: var(--player-accent-text);
}
.player-art-team {
  right: 0;
  top: 0;
  background: var(--player-team);
  color: #fff;
}
.player-identity .player-art-position {
  color: var(--player-accent-text);
  font-size: 7px;
}
.player-identity .player-art-team {
  color: #fff;
  font-size: 7px;
}
.player-art-roster {
  align-self: center;
  justify-self: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
}
.player-art-used {
  width: 38px;
  height: 38px;
  border-width: 2px;
  border-radius: 10px;
}
.player-art-picker {
  width: 56px;
  height: 56px;
}
.slot-player { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 12px 14px; }
.slot-player strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.slot-player span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.slot-player .slot-matchup { color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.slot-player .player-current-stats { color: #667881; font-family: var(--utility); font-size: 9px; font-weight: 700; line-height: 1.3; }
.is-empty .slot-player strong { color: var(--turf-dark); }
.slot-projection {
  align-self: center;
  padding-right: 14px;
  text-align: right;
  font-family: var(--utility);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #75878e;
}
.slot-projection strong { display: block; color: #53666e; font-size: 14px; }
.slot-projection span { display: block; margin-top: 2px; }
.slot-lock-indicator {
  align-self: center;
  min-width: 60px;
  padding-right: 12px;
  color: #53666e;
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  text-align: center;
}
.slot-lock-indicator svg { display: block; width: 17px; margin: 0 auto 3px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.slot-live-score { align-self: center; min-width: 78px; padding-right: 12px; text-align: right; font-family: var(--utility); }
.slot-live-score strong { display: block; color: var(--turf-dark); font-size: 14px; }
.slot-live-score .slot-score-label { display: block; margin-top: 2px; color: var(--turf-dark); font-size: 7px; font-weight: 800; letter-spacing: .05em; }
.slot-live-score small { display: block; margin-top: 1px; color: #75878e; font-size: 7px; font-weight: 700; letter-spacing: .04em; }
.slot-upcoming { align-self: center; min-width: 72px; padding-right: 12px; text-align: right; font-family: var(--utility); }
.slot-upcoming strong { display: block; color: var(--orange); font-size: 8px; letter-spacing: .07em; }
.slot-upcoming span { display: block; margin-top: 2px; color: #53666e; font-size: 7px; letter-spacing: .04em; }
.slot-live-zero-pending strong, .slot-live-zero-pending .slot-score-label { color: var(--turf-dark); }
.slot-live-score.is-finalizing strong, .slot-live-score.is-finalizing .slot-score-label { color: #1d6383; }
.slot-add { align-self: center; margin-right: 16px; font-size: 23px; font-weight: 300; color: var(--turf); }

.lineup-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; }
.lineup-note { display: flex; align-items: center; gap: 10px; max-width: 470px; color: var(--muted); font-size: 11px; }
.lineup-note svg { flex: 0 0 24px; width: 24px; fill: none; stroke: var(--turf); stroke-width: 1.6; }

.primary-button, .secondary-button {
  min-height: 48px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.primary-button { min-width: 190px; }
.primary-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.primary-button:not(:disabled):hover { background: #d9502c; }
.primary-button:disabled { background: #bbc3c0; cursor: not-allowed; }
.primary-button.is-loading { position: relative; color: transparent; }
.primary-button.is-loading { background: #d9502c; }
.primary-button.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.38);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.primary-button.is-confirmed { background: var(--turf); box-shadow: 0 0 0 4px rgba(14,139,121,.16); }

.week-panel { display: flex; flex-direction: column; gap: 18px; }
.score-card { background: var(--navy); color: var(--white); padding: 24px; }
.score-card-head { display: flex; align-items: center; justify-content: space-between; }
.status-badge {
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--sky);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: .08em;
}
.projected-score { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 22px; }
.projected-score strong { font-family: var(--display); font-size: 76px; line-height: .75; letter-spacing: -.04em; }
.projected-score span { font-family: var(--utility); font-size: 10px; color: var(--sky); }
.actual-score-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -4px 0 20px; padding: 12px 0; border-block: 1px solid rgba(255,255,255,.14); }
.actual-score-row > div { min-width: 0; }
.actual-score-label { display: flex; align-items: center; gap: 7px; color: #bdd0d6; font-family: var(--utility); font-size: 8px; letter-spacing: .08em; }
.actual-score-label .live-dot { width: 6px; height: 6px; background: #7f9198; box-shadow: none; }
.actual-score-row.is-live .actual-score-label .live-dot { background: #4fe0b8; box-shadow: 0 0 0 4px rgba(79,224,184,.12); }
.actual-score-row.is-final .actual-score-label .live-dot { background: var(--sky); box-shadow: none; }
.actual-score-row.is-finalizing .actual-score-label { color: var(--sky); }
.actual-score-row.is-finalizing .actual-score-label .live-dot { background: var(--sky); box-shadow: 0 0 0 4px rgba(169,215,223,.16); }
.actual-score-row.is-finalizing > strong small { color: var(--sky); }
.actual-score-row small { display: block; margin-top: 4px; color: #91a8b0; font-size: 8px; font-weight: 500; }
.actual-score-row > strong { flex: 0 0 auto; font-family: var(--utility); font-size: 19px; color: var(--white); }
.actual-score-row > strong small { display: inline; color: var(--sky); font-family: var(--utility); font-size: 8px; }
.score-benchmark > div:first-child { display: flex; justify-content: space-between; color: #bdd0d6; font-size: 10px; }
.score-benchmark > div strong { color: var(--white); }
.score-benchmark p { margin: 8px 0 0; font-size: 10px; color: #bdd0d6; }
.benchmark-track { position: relative; height: 8px; margin-top: 7px; background: rgba(255,255,255,.14); }
.benchmark-track span { display: block; width: 100%; height: 100%; background: var(--turf); transform: scaleX(var(--benchmark-scale, .74)); transform-origin: left center; transition: transform var(--motion-base) var(--ease-out); }
.benchmark-track i { position: absolute; top: -3px; left: 64%; width: 2px; height: 14px; background: var(--orange); }
.lineup-scoring-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -8px 0 20px;
  padding: 10px 13px;
  border: 1px solid #9fcfc1;
  border-radius: 6px;
  background: #e8f5f1;
  color: var(--turf-dark);
  cursor: pointer;
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-fast) ease;
}
.lineup-scoring-button span:last-child { color: var(--turf); font-size: 18px; line-height: 1; }
.lineup-scoring-button:hover { border-color: var(--turf); background: #d9f0e8; }
.lineup-scoring-button:focus-visible { outline: 3px solid rgba(14,139,121,.5); outline-offset: 3px; }

.used-card { padding: 22px 24px 17px; background: var(--white); border: 1px solid var(--line); }
.used-card-heading { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--soft-line); }
.used-card-heading h3 { margin: 3px 0 0; font-size: 15px; }
.used-card-heading > strong { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--orange); }
.used-player { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--soft-line); }
.player-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chalk);
  color: var(--navy);
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 700;
}
.used-player div { min-width: 0; }
.used-player div strong, .used-player div span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.used-player div strong { font-size: 12px; }
.used-player div span, .used-player > span { color: var(--muted); font-size: 9px; }
.text-button { min-height: 44px; border: 0; background: transparent; padding: 10px 0 0; color: var(--turf-dark); cursor: pointer; font-size: 12px; font-weight: 700; }

/* Leaderboard */
.leaderboard-hero {
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 44px clamp(22px, 4vw, 62px) 38px;
  background-color: var(--navy);
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--white);
}
.leaderboard-hero h2 { max-width: 700px; font-size: clamp(52px, 7vw, 90px); }
.leaderboard-hero p { max-width: 570px; margin: 17px 0 0; color: #bfd0d5; font-size: 13px; }
.hero-stat { flex: 0 0 150px; padding-left: 20px; border-left: 2px solid var(--orange); }
.hero-stat span, .hero-stat small { display: block; color: #bfd0d5; font-size: 10px; }
.hero-stat strong { display: block; font-family: var(--display); font-size: 72px; line-height: .9; }

.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px clamp(22px, 4vw, 62px) 18px; }
.segmented-control { display: inline-flex; gap: 6px; }
.segmented-control button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; transition: background var(--motion-fast) ease, color var(--motion-fast) ease, border-color var(--motion-fast) ease; }
.segmented-control button span { margin-left: 4px; font-family: var(--utility); font-size: 9px; }
.segmented-control button.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.search-box { min-width: 220px; height: 44px; padding: 0 12px; border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; background: var(--white); transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease; }
.search-box svg { width: 17px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
.sample-label { margin-left: auto; color: var(--muted); font-family: var(--utility); font-size: 9px; }

.leaderboard-card { margin: 0 clamp(22px, 4vw, 62px) 70px; background: var(--white); border: 1px solid var(--line); }
.roster-privacy-banner {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 18px;
  border-bottom: 1px solid #b9ddd4;
  background: #f1faf7;
}
.roster-privacy-banner svg { width: 25px; flex: 0 0 auto; fill: none; stroke: var(--turf-dark); stroke-width: 1.7; }
.roster-privacy-banner strong, .roster-privacy-banner span { display: block; }
.roster-privacy-banner strong { font-size: 12px; }
.roster-privacy-banner span { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.leaderboard-head, .leaderboard-row {
  display: grid;
  grid-template-columns: 72px minmax(190px,1.5fr) minmax(90px,.7fr) minmax(110px,.8fr) 36px;
  align-items: center;
  gap: 14px;
}
.leaderboard-week-picker { display: flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--utility); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.leaderboard-week-menu { position: relative; }
.leaderboard-week-menu > button { min-width: 164px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; background: var(--white); color: var(--ink); cursor: pointer; font: inherit; letter-spacing: .06em; text-align: left; }
.leaderboard-week-menu > button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2.25; transition: transform var(--motion-fast) ease; }
.leaderboard-week-menu > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.leaderboard-week-menu > button:focus-visible, .leaderboard-week-option:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.leaderboard-week-options { position: absolute; z-index: 4; top: calc(100% + 6px); left: 0; min-width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--white); box-shadow: 0 14px 28px rgba(7,24,32,.18); }
.leaderboard-week-option { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-bottom: 1px solid var(--soft-line); padding: 0 12px; background: var(--white); color: var(--ink); cursor: pointer; font: inherit; letter-spacing: .06em; text-align: left; }
.leaderboard-week-option:last-child { border-bottom: 0; }
.leaderboard-week-option:hover, .leaderboard-week-option[aria-selected="true"] { background: #f1faf7; color: var(--turf-dark); }
.leaderboard-week-option[aria-selected="true"]::after { content: "CURRENT VIEW"; font-size: 7px; color: var(--turf-dark); }
.leaderboard-head { min-height: 40px; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--utility); font-size: 9px; letter-spacing: .1em; }
.leaderboard-row-wrap { position: relative; }
.leaderboard-row { min-height: 70px; padding: 0 18px; border-bottom: 1px solid var(--soft-line); }
.leaderboard-row-wrap:last-child .leaderboard-row { border-bottom: 0; }
.leaderboard-row:hover { background: #f9faf7; }
.leaderboard-row.is-user { box-shadow: inset 3px 0 0 var(--turf); background: #f2f9f6; }
.rank-number { font-family: var(--display); font-size: 25px; }
.rank-change { display: block; font-family: var(--utility); font-size: 8px; color: var(--turf-dark); }
.rank-change.down { color: var(--orange); }
.team-cell { min-width: 0; display: flex; align-items: center; gap: 11px; }
.team-avatar { width: 44px; height: 44px; flex: 0 0 auto; border: 2px solid var(--white); border-radius: 12px; box-shadow: 0 2px 0 rgba(7,24,32,.18); }
.football-avatar {
  position: relative;
  display: inline-block;
  background-color: var(--navy);
  background-image: url("/assets/avatars/curated/fox-huddle.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: none;
}
.avatar-fox-huddle { background-image: url("/assets/avatars/curated/fox-huddle.webp"); }
.avatar-fox-rush { background-image: url("/assets/avatars/curated/fox-rush.webp"); }
.avatar-fox-victory { background-image: url("/assets/avatars/curated/fox-victory.webp"); }
.avatar-bulldog-huddle { background-image: url("/assets/avatars/curated/bulldog-huddle.webp"); }
.avatar-bulldog-rush { background-image: url("/assets/avatars/curated/bulldog-rush.webp"); }
.avatar-bulldog-victory { background-image: url("/assets/avatars/curated/bulldog-victory.webp"); }
.avatar-bison-huddle { background-image: url("/assets/avatars/curated/bison-huddle.webp"); }
.avatar-bison-rush { background-image: url("/assets/avatars/curated/bison-rush.webp"); }
.avatar-bison-victory { background-image: url("/assets/avatars/curated/bison-victory.webp"); }
.avatar-black-cat-huddle { background-image: url("/assets/avatars/curated/black-cat-huddle.webp"); }
.avatar-black-cat-rush { background-image: url("/assets/avatars/curated/black-cat-rush.webp"); }
.avatar-black-cat-victory { background-image: url("/assets/avatars/curated/black-cat-victory.webp"); }
.avatar-eagle-huddle { background-image: url("/assets/avatars/curated/eagle-huddle.webp"); }
.avatar-eagle-rush { background-image: url("/assets/avatars/curated/eagle-rush.webp"); }
.avatar-eagle-victory { background-image: url("/assets/avatars/curated/eagle-victory.webp"); }
.avatar-bear-huddle { background-image: url("/assets/avatars/curated/bear-huddle.webp"); }
.avatar-bear-rush { background-image: url("/assets/avatars/curated/bear-rush.webp"); }
.avatar-bear-victory { background-image: url("/assets/avatars/curated/bear-victory.webp"); }
.avatar-wolf-huddle { background-image: url("/assets/avatars/curated/wolf-huddle.webp"); }
.avatar-wolf-rush { background-image: url("/assets/avatars/curated/wolf-rush.webp"); }
.avatar-wolf-victory { background-image: url("/assets/avatars/curated/wolf-victory.webp"); }
.avatar-ram-huddle { background-image: url("/assets/avatars/curated/ram-huddle.webp"); }
.avatar-ram-rush { background-image: url("/assets/avatars/curated/ram-rush.webp"); }
.avatar-ram-victory { background-image: url("/assets/avatars/curated/ram-victory.webp"); }
.avatar-alligator-huddle { background-image: url("/assets/avatars/curated/alligator-huddle.webp"); }
.avatar-alligator-rush { background-image: url("/assets/avatars/curated/alligator-rush.webp"); }
.avatar-alligator-victory { background-image: url("/assets/avatars/curated/alligator-victory.webp"); }
.avatar-raccoon-huddle { background-image: url("/assets/avatars/curated/raccoon-huddle.webp"); }
.avatar-raccoon-rush { background-image: url("/assets/avatars/curated/raccoon-rush.webp"); }
.avatar-raccoon-victory { background-image: url("/assets/avatars/curated/raccoon-victory.webp"); }
.avatar-lion-huddle { background-image: url("/assets/avatars/curated/lion-huddle.webp"); }
.avatar-lion-rush { background-image: url("/assets/avatars/curated/lion-rush.webp"); }
.avatar-lion-victory { background-image: url("/assets/avatars/curated/lion-victory.webp"); }
.avatar-tiger-huddle { background-image: url("/assets/avatars/curated/tiger-huddle.webp"); }
.avatar-tiger-rush { background-image: url("/assets/avatars/curated/tiger-rush.webp"); }
.avatar-tiger-victory { background-image: url("/assets/avatars/curated/tiger-victory.webp"); }
.avatar-shark-huddle { background-image: url("/assets/avatars/curated/shark-huddle.webp"); }
.avatar-shark-rush { background-image: url("/assets/avatars/curated/shark-rush.webp"); }
.avatar-shark-victory { background-image: url("/assets/avatars/curated/shark-victory.webp"); }
.avatar-owl-huddle { background-image: url("/assets/avatars/curated/owl-huddle.webp"); }
.avatar-owl-rush { background-image: url("/assets/avatars/curated/owl-rush.webp"); }
.avatar-owl-victory { background-image: url("/assets/avatars/curated/owl-victory.webp"); }
.avatar-rhino-huddle { background-image: url("/assets/avatars/curated/rhino-huddle.webp"); }
.avatar-rhino-rush { background-image: url("/assets/avatars/curated/rhino-rush.webp"); }
.avatar-rhino-victory { background-image: url("/assets/avatars/curated/rhino-victory.webp"); }
.avatar-stallion-huddle { background-image: url("/assets/avatars/curated/stallion-huddle.webp"); }
.avatar-stallion-rush { background-image: url("/assets/avatars/curated/stallion-rush.webp"); }
.avatar-stallion-victory { background-image: url("/assets/avatars/curated/stallion-victory.webp"); }
.avatar-gorilla-huddle { background-image: url("/assets/avatars/curated/gorilla-huddle.webp"); }
.avatar-gorilla-rush { background-image: url("/assets/avatars/curated/gorilla-rush.webp"); }
.avatar-gorilla-victory { background-image: url("/assets/avatars/curated/gorilla-victory.webp"); }
.avatar-cobra-huddle { background-image: url("/assets/avatars/curated/cobra-huddle.webp"); }
.avatar-cobra-rush { background-image: url("/assets/avatars/curated/cobra-rush.webp"); }
.avatar-cobra-victory { background-image: url("/assets/avatars/curated/cobra-victory.webp"); }
.avatar-boar-huddle { background-image: url("/assets/avatars/curated/boar-huddle.webp"); }
.avatar-boar-rush { background-image: url("/assets/avatars/curated/boar-rush.webp"); }
.avatar-boar-victory { background-image: url("/assets/avatars/curated/boar-victory.webp"); }
.avatar-moose-huddle { background-image: url("/assets/avatars/curated/moose-huddle.webp"); }
.avatar-moose-rush { background-image: url("/assets/avatars/curated/moose-rush.webp"); }
.avatar-moose-victory { background-image: url("/assets/avatars/curated/moose-victory.webp"); }
.avatar-badger-huddle { background-image: url("/assets/avatars/curated/badger-huddle.webp"); }
.avatar-badger-rush { background-image: url("/assets/avatars/curated/badger-rush.webp"); }
.avatar-badger-victory { background-image: url("/assets/avatars/curated/badger-victory.webp"); }
.avatar-rabbit-huddle { background-image: url("/assets/avatars/curated/rabbit-huddle.webp"); }
.avatar-rabbit-rush { background-image: url("/assets/avatars/curated/rabbit-rush.webp"); }
.avatar-rabbit-victory { background-image: url("/assets/avatars/curated/rabbit-victory.webp"); }
.avatar-dragon-huddle { background-image: url("/assets/avatars/curated/dragon-huddle.webp"); }
.avatar-dragon-rush { background-image: url("/assets/avatars/curated/dragon-rush.webp"); }
.avatar-dragon-victory { background-image: url("/assets/avatars/curated/dragon-victory.webp"); }
.avatar-octopus-huddle { background-image: url("/assets/avatars/curated/octopus-huddle.webp"); }
.avatar-octopus-rush { background-image: url("/assets/avatars/curated/octopus-rush.webp"); }
.avatar-octopus-victory { background-image: url("/assets/avatars/curated/octopus-victory.webp"); }
.team-cell strong, .team-cell span { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.team-cell strong { font-size: 13px; }
.team-cell span { color: var(--muted); font-size: 9px; }
.score-cell strong { display: block; font-family: var(--utility); font-size: 14px; font-variant-numeric: tabular-nums; }
.score-cell span { color: var(--muted); font-size: 9px; }
.team-status { justify-self: start; padding: 5px 8px; background: #e8f5f1; color: var(--turf-dark); font-family: var(--utility); font-size: 8px; font-weight: 700; letter-spacing: .07em; }
.team-status.eliminated { background: var(--orange-soft); color: #b54425; }
.expand-row { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 17px; transition: color var(--motion-fast) ease, background var(--motion-fast) ease, transform var(--motion-fast) ease; }
.expand-row:hover { background: var(--chalk); }
.expand-row-unavailable { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); }
.leaderboard-row-wrap.is-score-fresh .score-cell:nth-child(3) strong { animation: scoreTick 420ms var(--ease-spring); color: var(--turf-dark); }
.expanded-lineup { display: none; padding: 16px 24px 18px 104px; background: var(--chalk); border-bottom: 1px solid var(--line); }
.leaderboard-row-wrap.is-expanded .expanded-lineup { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.mini-player {
  min-height: 70px;
  display: grid;
  /* Authoritative rank rows render copy only. Keep it in the full card width. */
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--soft-line);
}
.mini-player:has(.player-art-mini) {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 9px;
}
.mini-player-score {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) ease;
}
.mini-player-unavailable { grid-template-columns: minmax(0, 1fr); }
.mini-player-score:hover { border-color: var(--turf); box-shadow: 0 5px 14px rgba(7, 24, 32, .1); transform: translateY(-1px); }
.mini-player-score:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.mini-player-action {
  align-self: end;
  color: var(--turf-dark);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}
.mini-player-unavailable-copy {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}
.mini-player span, .mini-player strong { display: block; }
.mini-player-copy { min-width: 0; }
.mini-player-copy > span { color: var(--muted); font-family: var(--utility); font-size: 8px; }
.mini-player strong {
  /* Preserve player-name words; never split a surname just to fill the card. */
  overflow-wrap: normal;
  word-break: normal;
  font-size: 10px;
  line-height: 1.25;
}
.mini-player em { display: block; margin-top: 3px; color: var(--mini-player-status-color, var(--turf-dark)); font-family: var(--utility); font-size: 8px; font-style: normal; font-weight: 700; }
/* Lifecycle state is carried in the status label and reinforced with a
   consistent semantic accent. Finalizing is deliberately sky/navy, not a
   warning color: the score is present while its receipt is being verified. */
.mini-player.is-status-finalizing { --mini-player-status-color: #1d6383; border-color: #9bcbd7; background: #edf8fa; }
.mini-player.is-status-final { --mini-player-status-color: var(--navy); border-color: #b9cbd1; background: #f1f6f7; }
.mini-player.is-status-live { --mini-player-status-color: var(--turf-dark); border-color: #a8d8ce; background: #f0faf7; }
.mini-player.is-status-pending { --mini-player-status-color: #5d6f78; border-color: #cbd5d8; background: #f7f9f8; }
.mini-player.is-status-review { --mini-player-status-color: #b54425; border-color: #f1b7a4; background: var(--orange-soft); }
.mini-player.is-status-stale { --mini-player-status-color: #486b7a; border-color: #b6cdd5; background: #eff6f8; }
.mini-player.is-status-corrected { --mini-player-status-color: #4c5778; border-color: #c4c8db; background: #f3f4fa; }
.player-art-mini {
  width: 46px;
  height: 46px;
  border-width: 2px;
  border-radius: 10px;
}
.mini-player .player-art-position,
.mini-player .player-art-team {
  font-size: 6px;
}
.mini-player.is-private { background: repeating-linear-gradient(135deg, #f4f4ef, #f4f4ef 8px, #ecece5 8px, #ecece5 16px); border-style: dashed; }
.mini-player.is-private strong { color: var(--muted); }
.mini-player.is-private em { color: #7d8582; }
.mini-player.is-finalizing { border-color: #9bcbd7; background: #edf8fa; box-shadow: inset 3px 0 0 var(--navy-2); }
.mini-player.is-finalizing em,
.mini-player.is-finalizing .mini-player-action { color: #1d6383; }

/* Rankings are the live score surface. Keep the hierarchy readable at a
   normal desktop viewing distance instead of using utility-sized copy. */
.leaderboard-head {
  min-height: 58px;
  font-size: 12px;
  letter-spacing: .12em;
}
.leaderboard-row {
  min-height: 108px;
  padding-inline: 28px;
}
.rank-number { font-size: 38px; }
.team-cell { gap: 15px; }
.team-avatar { width: 56px; height: 56px; }
.team-cell strong { font-size: 20px; line-height: 1.15; }
.team-cell span { margin-top: 5px; font-size: 12px; }
.score-cell strong { font-size: 23px; }
.score-cell span { margin-top: 5px; font-size: 12px; }
.team-status { padding: 8px 11px; font-size: 11px; }
.expand-row, .expand-row-unavailable { width: 48px; height: 48px; font-size: 21px; }
.expanded-lineup { padding: 22px 30px 24px 132px; }
.leaderboard-row-wrap.is-expanded .expanded-lineup { gap: 14px; }
.mini-player { min-height: 116px; padding: 15px 16px; }
.mini-player-copy > span { font-size: 11px; }
.mini-player strong { margin-top: 4px; font-size: 17px; line-height: 1.22; }
.mini-player em { margin-top: 8px; font-size: 12px; line-height: 1.3; }
.mini-player-action { font-size: 11px; }
.mini-player-unavailable-copy { margin-top: 7px; font-size: 11px; }

@media (max-width: 760px) {
  .leaderboard-row { min-height: 90px; padding-inline: 14px; }
  .rank-number { font-size: 30px; }
  .team-avatar { width: 46px; height: 46px; }
  .team-cell strong { font-size: 16px; }
  .team-cell span, .score-cell span { font-size: 10px; }
  .score-cell strong { font-size: 18px; }
  .expanded-lineup { padding: 16px; }
  .mini-player { min-height: 98px; padding: 12px; }
  .mini-player strong { font-size: 15px; }
  .mini-player em { font-size: 10px; }
}
.cut-line { position: relative; height: 34px; display: flex; align-items: center; padding: 0 18px; background: var(--orange-soft); color: #9b3d24; font-family: var(--utility); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.cut-line::before { content: ""; flex: 1; height: 1px; margin-right: 12px; background: var(--orange); }
.cut-line.is-tie { background: #eaf2f4; color: var(--ink); }
.cut-line.is-tie::before { background: var(--sky); }
.empty-state { padding: 50px 24px; text-align: center; color: var(--muted); }

/* Recap */
.recap-sheet { min-height: calc(100vh - 82px); padding: 32px clamp(22px, 5vw, 74px) 60px; background: var(--paper); }
.recap-header { border-top: 8px solid var(--ink); }
.recap-masthead { min-height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-bottom: 1px solid var(--ink); font-family: var(--utility); font-size: 9px; letter-spacing: .1em; }
.recap-masthead strong { font-family: var(--display); font-size: 26px; }
.recap-masthead span:last-child { text-align: right; }
.recap-title-row { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.7fr); gap: clamp(34px,6vw,90px); align-items: end; padding: 50px 0 42px; border-bottom: 1px solid var(--ink); }
.recap-title-row h2 { margin-top: 10px; font-size: clamp(58px, 8vw, 104px); }
.recap-title-row p { margin: 0 0 6px; font-size: clamp(15px,1.6vw,20px); line-height: 1.55; }
.recap-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; }
.recap-story { position: relative; min-height: 230px; display: flex; gap: 18px; padding: 26px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.recap-story:nth-child(3) { border-right: 0; }
.recap-story-main { grid-row: span 2; min-height: 460px; align-items: flex-end; background: var(--navy); color: var(--white); }
.recap-story-main .utility-label { color: var(--sky); }
.recap-story-main p { color: #c6d5d9; }
.recap-story h3 { margin: 9px 0; font-family: var(--display); font-size: clamp(30px,3.5vw,48px); line-height: .95; text-transform: uppercase; }
.recap-story p { max-width: 420px; margin: 0; font-size: 12px; }
.story-number { flex: 0 0 auto; font-family: var(--utility); font-size: 10px; opacity: .65; }
.stat-line { display: flex; align-items: flex-end; gap: 12px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.25); }
.stat-line strong { font-family: var(--display); font-size: 78px; line-height: .8; }
.stat-line span { color: #c6d5d9; font-size: 10px; }
.danger-story { background: var(--orange-soft); border-right: 0; }
.recap-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; }
.recap-footer strong { display: block; margin-top: 4px; }
.secondary-button { background: var(--ink); }
.secondary-button:hover { background: var(--navy-2); }

/* Player picker */
.modal-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(6, 20, 27, .58);
  animation: fadeIn .2s ease;
}
.modal-backdrop[hidden] { display: none; }
.player-drawer {
  width: min(700px, 92vw);
  height: 100%;
  overflow-y: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: slideIn .3s cubic-bezier(.2,.8,.2,1);
}
.drawer-header { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 30px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 3px 0 0; font-family: var(--display); font-size: 46px; line-height: .9; text-transform: uppercase; }
.picker-tools { display: flex; gap: 12px; padding: 20px 30px 14px; }
.player-search { flex: 1; min-width: 0; }
.filter-chips { display: flex; gap: 5px; }
.filter-chip { min-width: 42px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-family: var(--utility); font-size: 9px; font-weight: 700; }
.filter-chip { min-height: 44px; transition: background var(--motion-fast) ease, color var(--motion-fast) ease, border-color var(--motion-fast) ease; }
.filter-chip.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.picker-context { min-height: 38px; display: flex; align-items: center; gap: 16px; padding: 0 30px; color: var(--muted); font-size: 9px; }
.picker-context > span { display: flex; align-items: center; gap: 5px; }
.picker-context .picker-count { margin-left: auto; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--turf); }
.legend-dot.used { background: #adb7b4; }
.legend-dot.locked { background: #b54425; }
.player-table-head, .player-row { display: grid; grid-template-columns: minmax(190px,1.6fr) minmax(110px,.8fr) 65px 86px; align-items: center; gap: 12px; padding: 0 30px; }
.player-table-head { min-height: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--utility); font-size: 8px; letter-spacing: .08em; }
.player-row { position: relative; width: 100%; min-height: 76px; border: 0; border-bottom: 1px solid var(--soft-line); background: var(--white); cursor: pointer; text-align: left; }
.player-row:hover { background: #f2f9f6; }
.player-row:disabled { cursor: not-allowed; opacity: .58; background: #f5f5f1; }
.player-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.player-identity .player-badge { flex: 0 0 auto; }
.player-identity strong, .player-identity span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player-identity strong { font-size: 13px; }
.player-identity span, .matchup-cell span { color: var(--muted); font-size: 9px; }
.matchup-cell strong, .matchup-cell span { display: block; }
.matchup-cell strong { font-size: 11px; }
.projection-cell { font-family: var(--utility); font-size: 13px; font-weight: 700; }
.availability { justify-self: start; padding: 5px 7px; background: #e8f5f1; color: var(--turf-dark); font-family: var(--utility); font-size: 8px; font-weight: 700; }
.availability.used { background: #e5e8e6; color: #687571; }
.availability.locked { background: #fff0ee; color: #9e2d20; }
.injury-tag { color: #b54425; font-weight: 700; }

.profile-menu {
  position: fixed;
  z-index: 50;
  left: 18px;
  bottom: 76px;
  width: min(430px, calc(100vw - 30px));
  height: min(700px, calc(100dvh - 94px));
  max-height: calc(100dvh - 94px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(11,31,42,.18);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 26px 70px rgba(7,24,32,.24), 0 4px 14px rgba(7,24,32,.12);
  animation: menuReveal var(--motion-base) var(--ease-out) both;
}
.profile-menu[hidden] { display: none; }
@keyframes menuReveal { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.profile-menu-identity {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0,1fr);
  align-items: center;
  gap: 15px;
  min-height: 112px;
  padding: 18px 22px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    var(--navy);
  background-size: 24px 24px;
  color: var(--white);
}
.profile-menu-identity::after { content: ""; position: absolute; top: 0; right: 24px; width: 4px; height: 34px; background: var(--orange); box-shadow: 0 48px 0 var(--orange), 0 96px 0 var(--orange); }
.profile-menu-avatar { width: 68px; height: 68px; border: 3px solid var(--white); border-radius: 19px; background-color: var(--navy-2); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.profile-menu-identity-copy { min-width: 0; }
.profile-menu-identity strong, .profile-menu-identity span { display: block; }
.profile-menu-identity strong { overflow: hidden; margin: 4px 0 3px; font-family: var(--display); font-size: 30px; line-height: .9; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.profile-menu .profile-menu-kicker { color: var(--sky); font-family: var(--utility); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.profile-menu .profile-nickname { overflow: hidden; color: #c8d7db; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu .profile-role-chip { display: inline-flex; width: fit-content; margin-top: 8px; padding: 4px 7px; background: var(--turf); color: var(--white); font-family: var(--utility); font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.settings-menu-scroll { min-height: 0; padding: 7px 10px 10px; overflow-y: auto; scrollbar-color: var(--turf) transparent; }
.settings-menu-group { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; padding: 10px 4px 4px; }
.settings-menu-group[hidden], .profile-menu button[hidden], .profile-menu a[hidden] { display: none; }
.settings-menu-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 2px; color: var(--muted); font-family: var(--utility); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.settings-menu-heading i { color: #a0aba7; font-style: normal; }
.settings-menu-action { width: 100%; min-height: 56px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--soft-line); border-radius: 9px; background: rgba(255,255,255,.52); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; transition: background var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease; }
.settings-menu-group #edit-profile-button { grid-column: 1 / -1; }
.settings-menu-action:hover { z-index: 1; background: var(--white); transform: translateX(3px); }
.settings-action-icon { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--turf-dark); }
.settings-action-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.settings-action-copy { min-width: 0; }
.settings-action-copy strong, .settings-action-copy small { display: block; }
.settings-action-copy strong { font-size: 13px; line-height: 1.2; }
.settings-action-copy small { display: -webkit-box; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.settings-action-arrow { color: var(--orange); font-family: var(--utility); font-size: 15px; transition: transform var(--motion-fast) var(--ease-out); }
.settings-menu-action:hover .settings-action-arrow { transform: translateX(3px); }
.commissioner-settings-group { margin-top: 8px; padding: 13px 7px 8px; border-radius: 10px; background: var(--navy); color: var(--white); }
.commissioner-settings-group .settings-menu-heading { padding-inline: 5px; color: var(--sky); }
.commissioner-settings-group .settings-menu-heading i { width: 24px; height: 24px; display: grid; place-items: center; margin-top: -4px; border-radius: 50%; background: var(--orange); color: var(--white); font-family: var(--display); font-size: 15px; }
.commissioner-settings-intro { grid-column: 1 / -1; margin: -2px 5px 3px; color: #c7d5d9; font-size: 10px; }
.commissioner-settings-group .settings-menu-action { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.055); color: var(--white); }
.commissioner-settings-group .settings-menu-action:hover { background: rgba(255,255,255,.07); }
.commissioner-settings-group .settings-action-icon { border-color: rgba(169,215,223,.3); background: rgba(255,255,255,.07); color: var(--mint, #9fdecf); }
.commissioner-settings-group .settings-action-copy small { color: #b8cacf; }
.league-switcher { gap: 6px; margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--white); }
.league-switcher[hidden] { display: none; }
.league-switcher > span { color: var(--muted); font-family: var(--utility); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.settings-menu-footer { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--white); }
.settings-menu-footer button { min-height: 38px; padding: 0 9px; border: 0; background: transparent; color: var(--muted); font-family: var(--utility); font-size: 9px; font-weight: 750; cursor: pointer; }
.settings-menu-footer button:hover { color: var(--orange); }
.settings-menu-footer #reset-demo-button { margin-right: auto; }
.settings-menu-footer #sign-out-button { display: flex; align-items: center; gap: 7px; }

.invite-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--navy); color: var(--cream); }
.invite-card, .commissioner-invites { width: min(100%, 720px); padding: clamp(24px, 5vw, 52px); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.invite-card h1, .commissioner-invites h1 { margin: 8px 0 12px; font-size: clamp(32px, 7vw, 54px); line-height: .94; }
.invite-action, .invite-form { display: grid; gap: 14px; margin-top: 24px; }
.invite-action form, .invite-form { display: grid; gap: 12px; }
.invite-action label, .invite-form label { display: grid; gap: 6px; font: 700 11px var(--utility); letter-spacing: .08em; text-transform: uppercase; }
.invite-action input, .invite-form input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: 10px; font: inherit; }
.invite-share { display: grid; gap: 10px; margin: 24px 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(11,155,130,.06); }
.invite-share code { overflow-wrap: anywhere; font-size: 12px; }
.invite-list { display: grid; gap: 8px; margin-top: 24px; }
.invite-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.invite-list article span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.invite-list button { border: 0; background: transparent; color: var(--orange); cursor: pointer; font: 700 11px var(--utility); text-transform: uppercase; }
.identity-issues { width: min(100%, 960px); }
.identity-issues > p { max-width: 700px; color: var(--muted); line-height: 1.5; }
.identity-issues-status { margin: 20px 0 0; font: 700 11px var(--utility); letter-spacing: .04em; text-transform: uppercase; }
.identity-issues-notice { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--orange); background: var(--orange-soft); color: #8a3022 !important; font-size: 12px; }
.identity-issues-list { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.identity-issue { padding: 18px; border: 1px solid var(--line); background: var(--white); }
.identity-issue-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.identity-issue h2 { margin: 7px 0 0; font-size: clamp(20px, 4vw, 28px); line-height: 1.05; }
.identity-issue-severity { display: inline-block; padding: 5px 7px; font: 800 9px var(--utility); letter-spacing: .08em; text-transform: uppercase; }
.identity-issue-severity.is-low { background: #e8f5f1; color: var(--turf-dark); }
.identity-issue-severity.is-high { background: #fff0ee; color: #8a3022; }
.identity-issue-player-details, .identity-issue-provider-id { margin: 5px 0 0; color: var(--muted); font: 700 11px var(--utility); letter-spacing: .04em; }
.identity-issue-provider-id { flex: 0 0 auto; text-align: right; font-weight: 600; }
.identity-issue-provider-id code { color: var(--ink); font: 700 11px var(--utility); }
.identity-issue-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 18px; margin: 18px 0 0; padding: 13px 0; border-block: 1px solid var(--line); }
.identity-issue-details div { min-width: 0; }
.identity-issue-details dt { color: var(--muted); font: 800 9px var(--utility); letter-spacing: .08em; text-transform: uppercase; }
.identity-issue-details dd { margin: 4px 0 0; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.identity-issue-severity-copy, .identity-issue-occurrences { margin: 12px 0 0; font-size: 12px; line-height: 1.5; }
.identity-issue-severity-copy { color: var(--ink); font-weight: 700; }
.identity-issue-occurrences { color: var(--muted); }
@media (max-width: 560px) {
  .identity-issue-heading { display: block; }
  .identity-issue-provider-id { margin-top: 14px; text-align: left; }
  .identity-issue-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.commissioner-schedule-preload { display: grid; gap: 10px; margin: 28px 0; padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--turf); background: rgba(11,155,130,.055); }
.commissioner-schedule-preload h2 { margin: 0; font-size: clamp(24px, 4vw, 34px); line-height: 1; }
.commissioner-schedule-preload p { max-width: 620px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.commissioner-schedule-preload > button, .commissioner-confirmation button { width: fit-content; min-height: 42px; padding: 0 14px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); font: 800 10px var(--utility); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.commissioner-schedule-preload > button:hover:not(:disabled), .commissioner-schedule-preload > button:focus-visible, .commissioner-confirmation button:last-child:hover, .commissioner-confirmation button:last-child:focus-visible { background: var(--turf-dark); outline: 3px solid var(--sky); outline-offset: 2px; }
.commissioner-schedule-preload > button:disabled { cursor: wait; opacity: .58; }
.commissioner-operation-success { color: var(--turf-dark) !important; font-weight: 700; }
.commissioner-operation-error { color: #8a3022 !important; font-weight: 700; }
.commissioner-confirmation { width: min(430px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 0 20px 70px rgba(7,24,32,.38); }
.commissioner-confirmation::backdrop { background: rgba(7,24,32,.62); }
.commissioner-confirmation h3 { margin: 0; font-size: 26px; line-height: 1; }
.commissioner-confirmation p { margin: 12px 0 18px; color: var(--muted); line-height: 1.45; }
.commissioner-confirmation div { display: flex; justify-content: flex-end; gap: 8px; }
.commissioner-confirmation button:first-child { background: transparent; color: var(--ink); }
.commissioner-confirmation button:first-child:hover, .commissioner-confirmation button:first-child:focus-visible { background: rgba(7,24,32,.08); outline: 3px solid var(--sky); outline-offset: 2px; }
.league-switcher { display: grid; }
.league-switcher > span { color: var(--muted); font-family: var(--utility); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.league-switcher select { width: 100%; min-height: 39px; border: 1px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font: 700 10px var(--utility); letter-spacing: .02em; padding: 0 9px; }
.league-switcher select:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.league-hub-backdrop { z-index: 70; }
.league-hub-card { width: min(760px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 32px)); overflow: auto; background: var(--paper); box-shadow: 0 20px 70px rgba(7,24,32,.3); }
.league-hub-card > header { display: flex; justify-content: space-between; gap: 20px; padding: 30px clamp(20px,4vw,42px) 22px; border-bottom: 1px solid var(--ink); }
.league-hub-card h2 { margin: 7px 0 9px; font-family: var(--display); font-size: clamp(42px,6vw,64px); line-height: .88; text-transform: uppercase; }
.league-hub-card header p { max-width: 580px; margin: 0; color: var(--muted); font-size: 12px; }
.league-hub-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; }
.league-hub-body > section { padding: 24px clamp(20px,4vw,36px); }
.league-hub-body > section + section { border-left: 1px solid var(--line); background: #eaf4ee; }
.league-hub-list { display: grid; gap: 9px; margin-top: 12px; }
.league-hub-empty { display: grid; gap: 7px; margin-top: 12px; padding: 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 12px; }
.league-hub-empty strong { color: var(--ink); font-family: var(--display); font-size: 21px; text-transform: uppercase; }
.league-hub-choice { display: grid; grid-template-columns: 1fr auto; gap: 10px; width: 100%; padding: 15px; border: 1px solid var(--line); background: var(--white); text-align: left; cursor: pointer; }
.league-hub-choice:hover, .league-hub-choice:focus-visible { border-color: var(--ink); outline: 0; box-shadow: 3px 3px 0 var(--sky); }
.league-hub-choice.is-active { border-color: var(--turf); background: var(--turf); color: var(--white); }
.league-hub-choice strong, .league-hub-choice span { display: block; }
.league-hub-choice strong { font-family: var(--display); font-size: 20px; text-transform: uppercase; }
.league-hub-choice span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.league-hub-choice.is-active span { color: var(--mint); }
.league-hub-actions { display: grid; align-content: start; gap: 16px; }
.league-hub-action { display: grid; gap: 5px; padding: 17px; border: 0; background: var(--orange); color: var(--ink); text-align: left; cursor: pointer; }
.league-hub-action strong { font-family: var(--display); font-size: 21px; text-transform: uppercase; }
.league-hub-action span { font-size: 11px; }
.league-hub-action:hover, .league-hub-action:focus-visible { background: #d9502c; outline: 0; box-shadow: 3px 3px 0 var(--ink); }
.league-create-form { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--ink); background: var(--orange-soft); }
.league-create-form[hidden] { display: none; }
.league-create-heading { display: grid; gap: 2px; }
.league-create-heading strong { font-family: var(--display); font-size: 25px; line-height: .9; text-transform: uppercase; }
.league-create-heading span, .league-hub-join > span { color: var(--muted); font-size: 11px; }
.league-create-form label { display: grid; gap: 6px; font: 800 9px var(--utility); letter-spacing: .05em; text-transform: uppercase; }
.league-create-form input { min-width: 0; min-height: 44px; border: 1px solid var(--ink); background: var(--white); padding: 10px; color: var(--ink); font: 500 14px var(--body); letter-spacing: 0; text-transform: none; }
.league-create-actions { display: flex; justify-content: flex-end; gap: 8px; }
.league-create-actions .primary-button, .league-create-actions .secondary-button { min-width: 0; min-height: 42px; padding: 0 14px; }
.league-hub-join { display: grid; gap: 7px; font: 800 9px var(--utility); letter-spacing: .05em; }
.league-hub-join div { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.league-hub-join input { min-width: 0; border: 1px solid var(--ink); background: var(--white); padding: 10px; font: 500 12px var(--body); }
.league-hub-join .secondary-button { min-height: 0; padding: 0 11px; }
.league-hub-status { margin: 0; color: var(--turf-dark); font: 700 11px var(--body); letter-spacing: 0; }
.league-hub-status.is-error { color: #8a3022; }
@media (max-width: 640px) { .league-hub-card { width: 100vw; max-height: 100dvh; } .league-hub-body { grid-template-columns: 1fr; } .league-hub-body > section + section { border-top: 1px solid var(--line); border-left: 0; } .league-create-actions { display: grid; grid-template-columns: 1fr 1fr; } }

.profile-backdrop { align-items: center; justify-content: center; }
.profile-card {
  width: min(1080px, calc(100vw - 34px));
  max-height: calc(100vh - 34px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border-top: 7px solid var(--orange);
  box-shadow: var(--shadow);
  animation: modalPop var(--motion-base) var(--ease-out) both;
}
.profile-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 28px clamp(22px,4vw,40px) 24px; border-bottom: 1px solid var(--ink); }
.profile-card > form { min-height: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; }
.profile-card h2 { margin: 8px 0 10px; font-family: var(--display); font-size: clamp(48px,6vw,70px); line-height: .88; text-transform: uppercase; }
.profile-card header p { max-width: 590px; margin: 0; color: var(--muted); font-size: 12px; }
.profile-editor { display: grid; grid-template-columns: minmax(230px,.72fr) minmax(0,1.55fr); overflow-y: auto; }
.profile-preview {
  min-height: 430px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.profile-preview-avatar { width: 178px; height: 178px; flex: 0 0 auto; margin-bottom: 24px; border: 5px solid var(--white); border-radius: 42px; box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.profile-preview .utility-label { color: var(--sky); }
.profile-preview strong { margin-top: 8px; font-family: var(--display); font-size: 36px; line-height: .95; text-transform: uppercase; }
.profile-preview > span:last-child { margin-top: 7px; color: #c6d5d9; font-size: 12px; }
.profile-fields { padding: 30px clamp(22px,4vw,38px) 26px; }
.profile-fields .auth-field input { border-color: #bdc6c3; }
.profile-fields .auth-field em { color: var(--muted); font-style: normal; font-weight: 500; text-transform: none; }
.avatar-picker { margin: 24px 0 0; padding: 0; border: 0; }
.avatar-picker legend { margin-bottom: 9px; font-family: var(--utility); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.avatar-picker legend span { color: var(--orange); }
.avatar-search { display: block; margin-bottom: 10px; }
.avatar-search span { display: block; margin-bottom: 5px; color: var(--muted); font-family: var(--utility); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.avatar-search input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #bdc6c3; background: var(--white); }
.avatar-pose-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 10px; }
.avatar-pose-tabs button { min-height: 42px; border: 0; background: #e5e2da; color: var(--muted); font-family: var(--utility); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.avatar-pose-tabs button.is-selected { background: var(--navy); color: var(--white); }
.avatar-options { max-height: 350px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; padding: 2px 5px 2px 2px; overflow-y: auto; scrollbar-color: var(--orange) #e5e8e6; }
.avatar-option { min-width: 0; min-height: 82px; display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--line); background: var(--white); text-align: left; cursor: pointer; }
.avatar-option:hover { border-color: var(--turf); transform: translateY(-1px); }
.avatar-option.is-selected { border: 3px solid var(--orange); background: #fff6f1; }
.avatar-option .football-avatar { width: 62px; height: 62px; flex: 0 0 auto; border-radius: 12px; }
.avatar-option strong { display: block; overflow: hidden; font-family: var(--utility); font-size: 8px; text-overflow: ellipsis; text-transform: uppercase; }
.avatar-option em { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-family: var(--utility); font-size: 6px; font-style: normal; line-height: 1.3; text-overflow: ellipsis; text-transform: uppercase; }
.avatar-empty { grid-column: 1/-1; margin: 12px 0; color: var(--muted); font-size: 10px; }
.profile-status { margin: 16px 0 0; padding: 10px 12px; border-left: 3px solid var(--sky); background: #eaf6f7; color: var(--navy); font-size: 10px; }
.profile-status[hidden] { display: none; }
.profile-status.is-error { border-left-color: var(--orange); background: var(--orange-soft); }
.profile-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px clamp(22px,4vw,40px); border-top: 1px solid var(--line); }
.profile-actions .secondary-button { min-width: 120px; }

.auth-backdrop { align-items: center; justify-content: center; background: var(--navy); }
.auth-card {
  width: min(520px, calc(100vw - 34px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 54px);
  background: var(--paper);
  border-top: 7px solid var(--orange);
  box-shadow: var(--shadow);
  animation: modalPop var(--motion-base) var(--ease-out) both;
}
.auth-mark { display: flex; align-items: baseline; gap: 2px; margin-bottom: 40px; color: var(--orange); font-family: var(--display); font-size: 34px; font-weight: 900; }
.auth-mark i { font-family: var(--body); font-size: 14px; font-style: normal; }
.auth-card h2, .rules-card h2 { margin: 11px 0 16px; font-family: var(--display); font-size: clamp(52px, 7vw, 74px); line-height: .88; text-transform: uppercase; }
.auth-card > p { max-width: 390px; margin: 0 0 26px; color: var(--muted); font-size: 13px; }
.auth-field { display: block; margin-bottom: 12px; }
.auth-field span { display: block; margin-bottom: 6px; font-family: var(--utility); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.auth-field input { width: 100%; height: 48px; padding: 0 13px; border: 1px solid var(--line); background: var(--white); }
.auth-button { width: 100%; }
.auth-card small { display: block; margin-top: 14px; color: var(--muted); font-size: 9px; text-align: center; }
.google-auth-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.google-auth-button:hover { border-color: var(--orange); }
.google-auth-button:focus-visible, .demo-persona-card:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.google-auth-button[hidden], .auth-divider[hidden], #magic-link-form[hidden], .demo-personas[hidden], .auth-pending[hidden] { display: none; }
.google-auth-button > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
}
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 17px 0; color: var(--muted); font-family: var(--utility); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.demo-personas { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ink); }
.demo-personas-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.demo-personas-heading span { color: var(--orange); font-family: var(--utility); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.demo-personas-heading strong { font-size: 11px; }
.demo-persona-grid { display: grid; gap: 8px; }
.demo-persona-card {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--motion-fast) ease, transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.demo-persona-card:hover { border-color: var(--orange); box-shadow: 4px 4px 0 var(--orange-soft); transform: translate(-1px,-1px); }
.demo-persona-avatar { width: 54px; height: 54px; border-radius: 13px; }
.demo-persona-copy { min-width: 0; }
.demo-persona-copy > * { display: block; }
.demo-persona-copy small { color: var(--turf-dark); font-family: var(--utility); font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.demo-persona-copy strong { margin: 3px 0 2px; font-size: 13px; }
.demo-persona-copy span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.demo-persona-arrow { color: var(--orange); font-family: var(--display); font-size: 22px; }
.demo-personas > p { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.auth-status { margin: 14px 0 0 !important; padding: 11px 12px; border-left: 3px solid var(--sky); background: #eaf6f7; color: var(--navy) !important; font-size: 10px !important; }
.auth-status.is-error { border-left-color: var(--orange); background: var(--orange-soft); }
.auth-pending { padding: 18px; border: 1px solid var(--line); background: var(--white); }
.auth-pending strong { display: block; font-family: var(--display); font-size: 30px; text-transform: uppercase; }
.auth-pending p { margin: 7px 0 18px; color: var(--muted); font-size: 11px; }

.rules-backdrop { align-items: center; justify-content: center; }
.rules-card { width: min(1080px, calc(100vw - 34px)); max-height: calc(100vh - 34px); overflow-y: auto; padding: clamp(24px, 4vw, 42px); background: var(--paper); animation: modalPop var(--motion-base) var(--ease-out) both; }
.rules-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.rules-card h2 { margin-bottom: 0; }
.rules-intro { max-width: 660px; margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.rules-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.rules-utility-button { min-height: 44px; padding: 0 13px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-family: var(--utility); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.rules-utility-button:hover { border-color: var(--turf); background: #f2f9f6; }
.rules-utility-button:focus-visible, .scoring-category-nav button:focus-visible, .scoring-rule-section summary:focus-visible { outline: 3px solid rgba(14,139,121,.38); outline-offset: 2px; }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; }
.rules-grid > div { min-height: 150px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rules-grid > div:nth-child(even) { border-right: 0; }
.rules-grid span { color: var(--orange); font-family: var(--utility); font-size: 9px; }
.rules-grid strong { display: block; margin: 12px 0 6px; font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.rules-grid p { margin: 0; color: var(--muted); font-size: 11px; }
.scoring-rulebook { margin-top: 30px; border: 1px solid var(--ink); background: var(--white); }
.scoring-rulebook-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 24px; border-bottom: 1px solid var(--ink); background: var(--navy); color: var(--white); }
.scoring-rulebook-heading .section-kicker { color: var(--sky); }
.scoring-rulebook-heading h3 { margin: 6px 0 5px; font-family: var(--display); font-size: clamp(30px,4vw,46px); line-height: .9; text-transform: uppercase; }
.scoring-rulebook-heading p { max-width: 620px; margin: 0; color: #c3d3d7; font-size: 11px; }
.scoring-rulebook-heading p span { display: block; margin-top: 5px; color: var(--mint); font-family: var(--utility); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.scoring-rulebook-heading > strong { flex: 0 0 auto; padding: 8px 10px; border: 1px solid var(--sky); color: var(--sky); font-family: var(--utility); font-size: 9px; letter-spacing: .08em; }
.scoring-quick-guide { padding: 25px 24px; border-bottom: 1px solid var(--line); background: #f2f9f6; }
.scoring-quick-guide h4 { margin: 5px 0 16px; font-family: var(--display); font-size: clamp(26px, 3vw, 36px); line-height: .95; text-transform: uppercase; }
.scoring-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scoring-summary-card { min-height: 126px; padding: 15px; border: 1px solid #b7cac3; background: var(--white); }
.scoring-summary-card > span { display: block; color: var(--muted); font-family: var(--utility); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.scoring-summary-card strong { display: block; margin-top: 7px; color: var(--turf-dark); font-family: var(--display); font-size: 35px; line-height: .9; }
.scoring-summary-card strong small { font-family: var(--utility); font-size: 11px; }
.scoring-summary-card p { margin: 8px 0 0; color: var(--ink); font-size: 14px; line-height: 1.25; }
.scoring-category-nav { position: sticky; z-index: 2; top: 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
.scoring-category-nav button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-family: var(--utility); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.scoring-category-nav button:hover { border-color: var(--orange); background: var(--orange-soft); }
.scoring-strip { display: grid; grid-template-columns: 1fr; }
.scoring-rulebook-state { grid-column: 1 / -1; min-height: 180px; display: grid; place-content: center; gap: 7px; padding: 30px; background: var(--chalk); text-align: center; }
.scoring-rulebook-state strong { font-family: var(--display); font-size: 30px; text-transform: uppercase; }
.scoring-rulebook-state span { max-width: 440px; color: var(--muted); font-size: 11px; }
.scoring-rulebook-state.is-error { border-top: 4px solid var(--orange); background: var(--orange-soft); }
.scoring-rule-section { min-width: 0; border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
.scoring-rule-section summary { min-height: 62px; display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 15px; padding: 0 24px; background: var(--chalk); color: var(--ink); cursor: pointer; list-style: none; }
.scoring-rule-section summary::-webkit-details-marker { display: none; }
.scoring-rule-section summary > span { font-family: var(--display); font-size: 29px; font-weight: 800; text-transform: uppercase; }
.scoring-rule-section summary > strong { color: var(--muted); font: 800 10px var(--utility); letter-spacing: .05em; text-transform: uppercase; }
.scoring-rule-section summary > i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-style: normal; font-size: 20px; line-height: 1; }
.scoring-rule-section[open] summary { border-bottom: 1px solid var(--line); background: var(--navy); color: var(--white); }
.scoring-rule-section[open] summary > strong { color: var(--sky); }
.scoring-rule-section[open] summary > i { border-color: var(--sky); color: var(--sky); transform: rotate(45deg); }
.scoring-rule-section-content { padding: 6px 0 0; }
.scoring-rule-group { padding: 20px 24px 22px; }
.scoring-rule-group + .scoring-rule-group { border-top: 1px solid var(--line); }
.scoring-rule-group h4 { margin: 0 0 10px; color: var(--turf-dark); font: 800 11px var(--utility); letter-spacing: .1em; text-transform: uppercase; }
.scoring-rule-list { display: grid; gap: 1px; background: var(--soft-line); }
.scoring-rule-row { min-height: 72px; display: grid; grid-template-columns: minmax(0,1fr) 110px; align-items: center; gap: 18px; padding: 12px 16px; background: var(--white); }
.scoring-rule-row > span strong, .scoring-rule-row > span small { display: block; }
.scoring-rule-row > span strong { color: var(--ink); font-size: 17px; line-height: 1.2; }
.scoring-rule-row > span small { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.scoring-rule-row > b { color: var(--turf-dark); font: 800 22px var(--utility); text-align: right; white-space: nowrap; }
.scoring-rule-row > b > span, .scoring-rule-row > b > small { display: block; }
.scoring-rule-row > b i { color: currentColor; font-size: 10px; font-style: normal; letter-spacing: .05em; }
.scoring-rule-row > b > small { margin-top: 3px; color: var(--muted); font: 800 10px var(--utility); letter-spacing: .04em; text-transform: uppercase; }
.scoring-rule-row > b.is-zero { color: #4d5b58; }
.scoring-rule-row > b.is-penalty { color: #a53828; }
.league-rules-details { margin-top: 25px; border: 1px solid var(--line); background: var(--white); }
.league-rules-details > summary { min-height: 58px; display: flex; align-items: center; padding: 0 22px; color: var(--ink); font: 800 14px var(--utility); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.league-rules-details[open] > summary { border-bottom: 1px solid var(--line); }
.rules-card.is-large-type .scoring-rule-row > span strong { font-size: 21px; }
.rules-card.is-large-type .scoring-rule-row > span small { font-size: 17px; }
.rules-card.is-large-type .scoring-rule-row > b { font-size: 28px; }
.rules-card.is-large-type .scoring-summary-card p { font-size: 17px; }

.scoring-backdrop { align-items: center; justify-content: center; }
.scoring-card {
  width: min(1160px, calc(100vw - 34px));
  max-height: calc(100vh - 34px);
  overflow-y: auto;
  background: var(--paper);
  border-top: 7px solid var(--orange);
  box-shadow: var(--shadow);
  animation: modalPop var(--motion-base) var(--ease-out) both;
}
.scoring-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 30px clamp(22px,4vw,42px) 25px; border-bottom: 1px solid var(--ink); }
.scoring-header h2 { margin: 8px 0 10px; font-family: var(--display); font-size: clamp(48px,6vw,72px); line-height: .88; text-transform: uppercase; }
.scoring-header p { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; }
.scoring-preset { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(22px,4vw,42px); background: var(--navy); color: var(--white); }
.scoring-preset strong, .scoring-preset p { display: block; }
.scoring-preset strong { margin-top: 4px; font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.scoring-preset p { margin: 2px 0 0; color: #bfd0d5; font-size: 10px; }
.preset-summary { min-width: 210px; }
.preset-options { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.preset-options button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.32);
  background: transparent;
  color: #d9e6e9;
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease;
}
.preset-options button:hover { border-color: var(--sky); color: var(--white); }
.preset-options button[aria-pressed="true"] { border-color: var(--sky); background: var(--sky); color: var(--navy); }
.preset-options button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.scoring-tabs {
  position: sticky;
  z-index: 4;
  top: 0;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  padding: 0 clamp(22px,4vw,42px);
  border-bottom: 1px solid var(--line);
  background: rgba(248,248,244,.96);
  backdrop-filter: blur(8px);
}
.scoring-tabs button {
  min-height: 54px;
  padding: 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.scoring-tabs button span { margin-left: 5px; color: #899692; font-size: 8px; }
.scoring-tabs button:hover { color: var(--ink); }
.scoring-tabs button[aria-selected="true"] { border-bottom-color: var(--orange); color: var(--ink); }
.scoring-tabs button[aria-selected="true"] span { color: var(--orange); }
.scoring-tabs button:focus-visible { outline: 3px solid rgba(14,139,121,.3); outline-offset: -3px; }
.scoring-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; }
.scoring-fields { padding: 8px clamp(22px,4vw,42px) 24px; }
.scoring-panel[hidden] { display: none; }
.scoring-section-note {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr);
  gap: 10px;
  margin: 18px 0 2px;
  padding: 14px;
  border-left: 3px solid var(--orange);
  background: var(--orange-soft);
  color: #70493d;
  font-size: 10px;
}
.scoring-section-note svg { width: 22px; fill: none; stroke: var(--orange); stroke-width: 1.7; }
.scoring-fields fieldset { margin: 0; padding: 24px 0; border: 0; border-bottom: 1px solid var(--line); }
.scoring-fields fieldset:last-child { border-bottom: 0; }
.scoring-fields legend { width: 100%; margin-bottom: 14px; padding: 0; font-family: var(--display); font-size: 27px; font-weight: 700; text-transform: uppercase; }
.scoring-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.scoring-field { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 132px; align-items: center; gap: 5px 12px; padding: 12px; border: 1px solid var(--line); background: var(--white); cursor: text; }
.scoring-field > span:first-child { font-size: 11px; font-weight: 700; }
.scoring-number { width: 132px; display: grid; grid-template-columns: minmax(0,1fr) 35px; align-items: center; justify-self: end; border: 1px solid #aebbb7; background: var(--paper); }
.scoring-number:focus-within { border-color: var(--turf); box-shadow: 0 0 0 3px rgba(14,139,121,.15); }
.scoring-number input { width: 100%; height: 44px; padding: 0 7px; border: 0; background: transparent; font-family: var(--utility); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.scoring-field input:focus { border-color: var(--turf); outline: 0; box-shadow: 0 0 0 3px rgba(14,139,121,.15); }
.scoring-number input:focus { box-shadow: none; }
.scoring-number i { padding-right: 7px; color: var(--muted); font-family: var(--utility); font-size: 8px; font-style: normal; font-weight: 750; text-align: right; }
.scoring-field small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.unit-input { width: 132px; display: grid; grid-template-columns: auto 54px auto; align-items: center; gap: 5px; justify-self: end; color: var(--muted); font-family: var(--utility); font-size: 8px; font-weight: 700; white-space: nowrap; }
.unit-input input { width: 54px; }
.scoring-preview { align-self: start; padding: 27px 22px; background: var(--chalk); border-left: 1px solid var(--line); }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; }
.preview-heading strong { padding: 5px 7px; background: var(--navy); color: var(--sky); font-family: var(--utility); font-size: 8px; letter-spacing: .05em; }
.preview-matchup { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 5px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.preview-matchup > span { font-size: 11px; font-weight: 700; }
.preview-matchup strong { font-family: var(--display); font-size: 38px; line-height: 1; }
.preview-matchup em { color: var(--muted); font-family: var(--utility); font-size: 8px; font-style: normal; }
.preview-matchup p { grid-column: 1 / -1; margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.qb-edge { margin-top: 20px; padding: 18px; background: var(--orange-soft); border-left: 3px solid var(--orange); }
.qb-edge span, .qb-edge strong { display: block; }
.qb-edge span { color: #9b3d24; font-family: var(--utility); font-size: 8px; font-weight: 700; }
.qb-edge strong { margin: 5px 0; font-family: var(--display); font-size: 31px; }
.qb-edge p { margin: 0; color: #70493d; font-size: 9px; }
.scoring-actions { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px clamp(22px,4vw,42px); border-top: 1px solid var(--line); background: var(--white); }
.scoring-version-note { display: flex; flex-direction: column; max-width: 420px; }
.scoring-version-note strong { font-size: 10px; }
.scoring-version-note span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.scoring-action-buttons { display: flex; align-items: center; gap: 8px; }
.reset-scoring { padding-top: 0; }
.scoring-cancel { min-width: 112px; }

.celebration-overlay {
  position: fixed;
  z-index: 130;
  inset: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(14,139,121,.74), transparent 48%),
    linear-gradient(145deg, #071820 0%, var(--ink) 48%, #06151b 100%);
  color: var(--white);
  animation: celebrationReveal 180ms ease-out both;
}
.celebration-overlay[hidden] { display: none; }
.celebration-overlay::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .22;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(255,255,255,.08) 48px 49px),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255,255,255,.025) 8px 9px);
}
.celebration-overlay::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, transparent 34%, rgba(0,0,0,.38) 100%);
}
.celebration-overlay.is-exiting { animation: celebrationExit 180ms ease-in both; }

.celebration-skip {
  position: absolute;
  z-index: 8;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  min-width: 154px;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(7,24,32,.72);
  color: var(--white);
  cursor: pointer;
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.celebration-skip:hover { border-color: var(--white); background: rgba(255,255,255,.12); }
.celebration-skip svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.celebration-field { position: absolute; z-index: -1; inset: 0; opacity: .24; }
.celebration-field::before,
.celebration-field::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.55);
}
.celebration-field::before { left: 17%; }
.celebration-field::after { right: 17%; }
.yard-number {
  position: absolute;
  top: 48%;
  font-family: var(--display);
  font-size: clamp(64px, 10vw, 150px);
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%) rotate(90deg);
}
.yard-number-left { left: 3%; }
.yard-number-right { right: 3%; transform: translateY(-50%) rotate(-90deg); }
.hash { position: absolute; left: 34%; right: 34%; height: 2px; background: rgba(255,255,255,.52); }
.hash-one { top: 22%; }.hash-two { top: 50%; }.hash-three { top: 78%; }

.celebration-wrap {
  position: relative;
  z-index: 3;
  width: min(1050px, calc(100vw - 32px));
  min-height: min(780px, calc(100dvh - 32px));
  display: grid;
  grid-template-rows: minmax(330px, 1fr) auto;
  align-items: center;
  padding: clamp(70px, 9vh, 110px) clamp(18px, 5vw, 70px) clamp(42px, 6vh, 72px);
}
.celebration-stage { position: relative; width: 100%; min-height: 330px; align-self: end; }
.celebration-scene {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(900px, 94vw);
  overflow: visible;
  opacity: 0;
  transform: translate(-50%, -50%);
}
.is-game-time .scene-game-time,
.is-tush-push .scene-tush-push { opacity: 1; }
.stadium-beams { fill: none; stroke: rgba(255,255,255,.11); stroke-width: 16; }
.impact-mark { fill: none; stroke: var(--orange); stroke-width: 5; transform-box: fill-box; transform-origin: center; opacity: 0; }
.player-shadow, .push-shadow { fill: rgba(0,0,0,.27); }
.helmet { stroke: var(--white); stroke-width: 4; }
.helmet-orange { fill: var(--orange); }
.helmet-ink { fill: var(--navy); }
.helmet-line { fill: none; stroke: var(--white); stroke-width: 5; stroke-linecap: round; }
.jersey { stroke: var(--white); stroke-width: 4; stroke-linejoin: round; }
.jersey-light { fill: var(--chalk); }
.jersey-orange { fill: var(--orange); }
.limb { fill: none; stroke-width: 25; stroke-linecap: round; stroke-linejoin: round; }
.limb-light { stroke: var(--chalk); }
.limb-orange { stroke: var(--orange); }
.jersey-number { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.game-runner, .game-tackler, .flying-football, .impact-mark, .push-pack, .push-arrows {
  transform-box: fill-box;
  transform-origin: center;
}
.game-runner { opacity: 0; }
.game-tackler { opacity: 0; }
.flying-football { opacity: 0; }
.flying-football path:first-child { fill: #8c482b; stroke: var(--white); stroke-width: 4; }
.football-laces { fill: none; stroke: var(--white); stroke-width: 4; stroke-linecap: round; }

.is-game-time .game-runner { animation: runnerCollision 940ms 120ms var(--ease-out) both; }
.is-game-time .game-tackler { animation: tacklerCollision 940ms 120ms var(--ease-out) both; }
.is-game-time .impact-mark { animation: impactFlash 620ms 820ms ease-out both; }
.is-game-time .flying-football { animation: footballToCamera 920ms 790ms cubic-bezier(.16,.78,.19,1) both; }

.yard-to-gain { fill: var(--orange); stroke: var(--orange); stroke-width: 5; }
.yard-to-gain text { stroke: none; font-family: var(--utility); font-size: 16px; font-weight: 700; letter-spacing: .12em; }
.push-player { transform-box: fill-box; transform-origin: center; }
.push-arrows { fill: none; stroke: var(--sky); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.is-tush-push .push-pack { animation: pileDrive 1.45s 120ms var(--ease-out) both; }
.is-tush-push .player-one { animation: shoulderDrive 440ms 250ms ease-out both; }
.is-tush-push .player-two { animation: shoulderDrive 440ms 340ms ease-out both; }
.is-tush-push .player-three { animation: shoulderDrive 440ms 430ms ease-out both; }
.is-tush-push .player-four { animation: shoulderDrive 440ms 520ms ease-out both; }
.is-tush-push .push-arrows { animation: arrowPop 600ms 960ms var(--ease-out) both; }

.celebration-copy-block { position: relative; z-index: 6; align-self: start; text-align: center; }
.celebration-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: 0;
  animation: copyRise 340ms 1.12s var(--ease-out) both;
}
.celebration-copy-block h2 {
  position: relative;
  max-width: 980px;
  margin: 8px auto 0;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(62px, 12vw, 156px);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .78;
  text-wrap: balance;
  text-transform: uppercase;
  opacity: 0;
  animation: headlineHit 480ms 1.22s var(--ease-spring) both;
  text-shadow: 7px 7px 0 var(--orange);
}
.is-tush-push .celebration-copy-block h2 { max-width: 900px; font-size: clamp(44px, 8.5vw, 108px); line-height: .84; }
.celebration-copy-block p {
  margin: 20px auto 0;
  color: #d9edf0;
  font-size: clamp(13px, 1.5vw, 17px);
  font-weight: 600;
  letter-spacing: .02em;
  opacity: 0;
  animation: copyRise 340ms 1.46s var(--ease-out) both;
}

@keyframes celebrationReveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes celebrationExit { from { opacity: 1; } to { opacity: 0; } }
@keyframes runnerCollision { 0% { opacity: 0; transform: translateX(-360px) rotate(-8deg); } 18% { opacity: 1; } 72% { transform: translateX(3px) rotate(-3deg); } 100% { opacity: 1; transform: translateX(18px) rotate(12deg); } }
@keyframes tacklerCollision { 0% { opacity: 0; transform: translateX(360px) rotate(8deg); } 18% { opacity: 1; } 72% { transform: translateX(-3px) rotate(3deg); } 100% { opacity: 1; transform: translateX(-25px) rotate(-17deg); } }
@keyframes impactFlash { 0% { opacity: 0; transform: scale(.25) rotate(-14deg); } 35% { opacity: .95; } 100% { opacity: 0; transform: scale(1.55) rotate(8deg); } }
@keyframes footballToCamera { 0% { opacity: 0; transform: translate(0, 0) rotate(-30deg) scale(.45); } 12% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -45px) rotate(690deg) scale(9); } }
@keyframes pileDrive { 0% { opacity: 0; transform: translateX(-180px) rotate(-3deg); } 18% { opacity: 1; } 58% { transform: translateX(-8px) rotate(-1deg); } 72% { transform: translateX(18px) rotate(1deg); } 83% { transform: translateX(9px); } 100% { opacity: 1; transform: translateX(34px); } }
@keyframes shoulderDrive { 0% { transform: translateX(-12px) rotate(-4deg); } 60% { transform: translateX(12px) rotate(3deg); } 100% { transform: translateX(0) rotate(0); } }
@keyframes arrowPop { 0% { opacity: 0; transform: translateX(-18px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes copyRise { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@keyframes headlineHit { 0% { opacity: 0; transform: translateY(28px) scale(.82); letter-spacing: .02em; } 100% { opacity: 1; transform: translateY(0) scale(1); letter-spacing: -.045em; } }

.toast {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  width: min(390px, calc(100vw - 48px));
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  animation: toastIn .3s ease;
}
.toast[hidden] { display: none; }
.toast svg { width: 25px; flex: 0 0 auto; fill: none; stroke: var(--sky); stroke-width: 1.6; }
.toast strong, .toast span { display: block; }
.toast strong { font-size: 12px; }
.toast span { color: #bdccd1; font-size: 10px; }

.route-wipe {
  position: fixed;
  z-index: 55;
  top: 160px;
  right: 0;
  left: 82px;
  height: 4px;
  pointer-events: none;
}
.route-wipe-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--turf) 0 72%, var(--orange) 72% 100%);
  box-shadow: 0 3px 14px rgba(240, 100, 59, .22);
  transform: scaleX(0);
  transform-origin: left center;
}
.route-wipe > span { display: none; }
.route-wipe.is-active .route-wipe-line { animation: routeSnap 720ms var(--ease-out) both; }

@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slotConfirm { 0% { transform: scale(.98); box-shadow: 0 0 0 0 rgba(14,139,121,.24); } 55% { transform: scale(1.012); box-shadow: 0 0 0 7px rgba(14,139,121,.08); } 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(11,31,42,.08); } }
@keyframes scoreTick { 0% { transform: translateY(4px); opacity: .45; } 55% { transform: translateY(-2px); } 100% { transform: translateY(0); opacity: 1; } }
@keyframes routeSnap {
  0% { transform: scaleX(0); transform-origin: left center; }
  42% { transform: scaleX(1); transform-origin: left center; }
  43% { transform: scaleX(1); transform-origin: right center; }
  100% { transform: scaleX(0); transform-origin: right center; }
}
@keyframes modalPop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 780px) {
  .route-wipe { top: 130px; left: 0; }
}

@media (max-width: 980px) {
  .lineup-layout { grid-template-columns: 1fr; }
  .week-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .lineup-brief { grid-template-columns: 1fr 1.5fr; }
  .cut-block { display: none !important; }
  .recap-grid { grid-template-columns: 1fr 1fr; }
  .recap-story-main { grid-row: span 2; }
  .recap-story:nth-child(3) { border-right: 1px solid var(--ink); }
  .recap-story:nth-child(even) { border-right: 0; }
  .scoring-layout { grid-template-columns: 1fr; }
  .scoring-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; border-top: 1px solid var(--line); border-left: 0; }
  .scoring-preview > .preview-heading, .scoring-preview > .qb-edge { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .rail { inset: auto 0 0 0; width: 100%; height: calc(66px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); flex-direction: row; border-top: 1px solid rgba(255,255,255,.1); border-right: 0; }
  .brand-mark { display: none; }
  .rail-nav { height: 100%; flex-direction: row; justify-content: space-around; padding: 0; }
  .rail-link { flex: 1; min-height: 66px; }
  .rail-link::before { inset: auto 24% 0; width: auto; height: 3px; }
  .profile-orb { width: 44px; height: 44px; margin: 0 10px 0 0; }
  .workspace { margin-left: 0; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 70px; padding: 12px 18px; }
  .topbar .eyebrow { display: none; }
  .freshness span:not(.live-dot) { display: none; }
  .game-ticker { min-height: 54px; grid-template-columns: 78px minmax(0, 1fr); }
  .ticker-label { min-width: 78px; padding: 0 8px; overflow: hidden; }
  .ticker-label strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ticker-label > span:last-child { display: none; }
  .ticker-games { overscroll-behavior-inline: contain; }
  .ticker-game { flex: 0 0 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; gap: 3px; padding: 8px 12px; }
  .ticker-game .game-status { grid-row: auto; overflow-wrap: anywhere; white-space: normal; font-size: 9px; line-height: 1.2; }
  .ticker-game strong { grid-column: 1; min-width: 0; gap: 8px; overflow-wrap: anywhere; white-space: normal; font-size: 11px; line-height: 1.25; }
  .ticker-action { display: none; }
  .lineup-brief { grid-template-columns: 1fr; }
  .week-progress { display: none !important; }
  .deadline-block { align-items: center; text-align: center; }
  .lineup-layout { padding: 26px 17px 45px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .lineup-heading-actions { align-items: stretch; justify-content: space-between; }
  .week-selector { flex: 1; }
  .roster-grid { grid-template-columns: 1fr; }
  .submission-policy { grid-template-columns: 1fr; }
  .lineup-footer { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .week-panel { grid-template-columns: 1fr; }
  .leaderboard-hero { min-height: 255px; align-items: flex-start; flex-direction: column; padding: 38px 20px 28px; }
  .leaderboard-hero h2 { font-size: 54px; }
  .hero-stat { display: none; }
  .board-toolbar { align-items: stretch; flex-direction: column; padding: 20px 17px 12px; }
  .sample-label { margin-left: 0; }
  .segmented-control { display: grid; grid-template-columns: 1fr 1fr; }
  .search-box { width: 100%; }
  .leaderboard-card { margin: 0 17px 45px; }
  .leaderboard-head { display: none; }
  .leaderboard-row { min-height: 132px; grid-template-columns: 44px minmax(0,1fr) 48px; grid-template-areas: "rank team expand" "rank score expand" "rank status status"; gap: 8px 10px; padding: 12px 11px; }
  .leaderboard-row > :nth-child(1) { grid-area: rank; }
  .leaderboard-row > :nth-child(2) { grid-area: team; }
  .leaderboard-row > :nth-child(3) { grid-area: score; }
  .leaderboard-row > :nth-child(4) { display: block; grid-area: status; }
  .leaderboard-row > :nth-child(5) { grid-area: expand; }
  .team-cell strong { overflow: visible; white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }
  .score-cell { min-width: 0; }
  .team-status { align-self: center; justify-self: start; min-height: 28px; overflow-wrap: normal; white-space: normal; text-align: left; }
  .expand-row, .expand-row-unavailable { width: 48px; min-width: 44px; min-height: 44px; height: 48px; }
  .expanded-lineup { padding-left: 20px; }
  .leaderboard-row-wrap.is-expanded .expanded-lineup { grid-template-columns: 1fr 1fr; }
  .recap-sheet { padding: 20px 17px 45px; }
  .recap-masthead { grid-template-columns: 1fr auto; }
  .recap-masthead span:first-child { display: none; }
  .recap-title-row { grid-template-columns: 1fr; padding: 35px 0 30px; }
  .recap-title-row h2 { font-size: 57px; }
  .recap-grid { grid-template-columns: 1fr; }
  .recap-story, .recap-story:nth-child(3) { min-height: 185px; border-right: 0; }
  .recap-story-main { min-height: 400px; }
  .recap-footer { align-items: stretch; flex-direction: column; }
  .player-drawer { width: 100vw; }
  .drawer-header, .picker-tools, .picker-context { padding-left: 18px; padding-right: 18px; }
  .picker-tools { flex-direction: column; }
  .filter-chip { min-height: 36px; flex: 1; }
  .player-table-head { display: none; }
  .player-row { grid-template-columns: minmax(0,1fr) 56px 74px; padding: 0 18px; }
  .player-row .matchup-cell { display: none; }
  .search-box input, .auth-field input { font-size: 16px; }
  .profile-menu { left: auto; right: 10px; bottom: calc(68px + env(safe-area-inset-bottom)); width: min(430px, calc(100vw - 20px)); height: calc(100dvh - 84px - env(safe-area-inset-bottom)); max-height: calc(100dvh - 84px - env(safe-area-inset-bottom)); }
  .profile-card { width: 100vw; max-height: 100dvh; }
  .profile-card > header { padding: 22px 18px 18px; }
  .profile-card h2 { font-size: 48px; }
  .profile-editor { grid-template-columns: 1fr; }
  .profile-preview { min-height: 218px; padding: 24px 18px; }
  .profile-preview-avatar { width: 112px; height: 112px; margin-bottom: 15px; border-radius: 28px; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
  .profile-preview strong { font-size: 30px; }
  .profile-fields { padding: 22px 18px 18px; }
  .avatar-options { max-height: 330px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .avatar-option { min-height: 74px; }
  .avatar-option .football-avatar { width: 52px; height: 52px; }
  .profile-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1.5fr; padding: 13px 18px calc(13px + env(safe-area-inset-bottom)); background: var(--paper); }
  .profile-actions .primary-button, .profile-actions .secondary-button { width: 100%; min-width: 0; }
  .toast { right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); }
  .rules-grid { grid-template-columns: 1fr; }
  .rules-grid > div { min-height: 120px; border-right: 0; }
  .rules-card { width: 100vw; max-height: 100dvh; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .rules-card header { align-items: stretch; flex-direction: column; }
  .rules-header-actions { display: grid; grid-template-columns: 1fr 1fr 44px; }
  .rules-utility-button { min-width: 0; padding-inline: 8px; }
  .rules-intro { font-size: 16px; }
  .scoring-rulebook { margin-top: 20px; }
  .scoring-rulebook-heading { align-items: flex-start; flex-direction: column; padding: 20px 18px; }
  .scoring-quick-guide { padding: 20px 18px; }
  .scoring-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .scoring-summary-card { min-height: 118px; padding: 12px; }
  .scoring-summary-card strong { font-size: 31px; }
  .scoring-summary-card p { font-size: 13px; }
  .scoring-category-nav { top: 0; padding: 10px 18px; }
  .scoring-category-nav button { flex: 1 1 120px; }
  .scoring-rule-section summary { min-height: 62px; padding: 0 18px; }
  .scoring-rule-section summary > span { font-size: 26px; }
  .scoring-rule-group { padding: 17px 14px 19px; }
  .scoring-rule-row { min-height: 72px; grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; padding: 11px 12px; }
  .scoring-rule-row > span strong { font-size: 16px; }
  .scoring-rule-row > span small { font-size: 13px; }
  .scoring-rule-row > b { font-size: 20px; }
  .league-rules-details > summary { padding-inline: 16px; }
  .scoring-card { width: 100vw; max-height: 100dvh; }
  .scoring-header { padding: 24px 18px 20px; }
  .scoring-header h2 { font-size: 52px; }
  .scoring-preset { align-items: stretch; flex-direction: column; padding: 16px 18px; }
  .preset-options { display: grid; grid-template-columns: repeat(2,1fr); }
  .preset-options button { padding: 0 7px; font-size: 8px; }
  .scoring-tabs { grid-template-columns: 1fr 1fr; padding: 0 18px; }
  .scoring-tabs button { min-height: 48px; }
  .scoring-field-grid { grid-template-columns: 1fr; }
  .scoring-fields { padding-inline: 18px; }
  .scoring-field { grid-template-columns: minmax(0,1fr) auto; }
  .scoring-preview { grid-template-columns: 1fr; padding-inline: 18px; }
  .scoring-preview > .preview-heading, .scoring-preview > .qb-edge { grid-column: auto; }
  .scoring-actions { align-items: stretch; flex-direction: column-reverse; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); }
  .scoring-version-note { text-align: center; }
  .scoring-action-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .scoring-action-buttons .reset-scoring { grid-column: 1 / -1; min-height: 44px; }
  .scoring-action-buttons #save-scoring { min-width: 0; }
  .scoring-actions .primary-button, .scoring-actions .secondary-button { width: 100%; min-width: 0; }
  .celebration-skip { top: max(12px, env(safe-area-inset-top)); right: 12px; min-width: 136px; min-height: 44px; }
  .celebration-wrap { min-height: 100dvh; grid-template-rows: minmax(250px, 55vh) auto; padding: 62px 12px calc(42px + env(safe-area-inset-bottom)); }
  .celebration-stage { min-height: 250px; }
  .celebration-scene { width: 720px; max-width: 135vw; }
  .celebration-copy-block h2 { text-shadow: 4px 4px 0 var(--orange); }
  .celebration-copy-block p { max-width: 300px; margin-top: 14px; }
  .yard-number { opacity: .5; }
}

@media print {
  body { background: #fff; color: #000; }
  .app-shell, .modal-backdrop:not(.rules-backdrop), .rules-header-actions, .league-rules-details { display: none !important; }
  .rules-backdrop { position: static; display: block !important; background: #fff; }
  .rules-card { width: 100%; max-height: none; overflow: visible; padding: 0; box-shadow: none; }
  .rules-card > header { display: block; padding: 0 0 16px; }
  .rules-intro { color: #222; }
  .scoring-rulebook { border-color: #000; }
  .scoring-rulebook-heading { padding: 16px; background: #fff; color: #000; border-bottom-color: #000; }
  .scoring-rulebook-heading .section-kicker, .scoring-rulebook-heading p, .scoring-rulebook-heading p span, .scoring-rulebook-heading > strong { color: #000; border-color: #000; }
  .scoring-quick-guide { background: #fff; }
  .scoring-category-nav { display: none; }
  .scoring-rule-section { break-inside: avoid; }
  .scoring-rule-section summary { background: #eee !important; color: #000 !important; }
  .scoring-rule-section summary > strong, .scoring-rule-section summary > i { color: #000 !important; border-color: #000 !important; }
  .scoring-rule-section:not([open]) .scoring-rule-section-content { display: block; }
  .scoring-rule-row { min-height: 56px; }
  .scoring-rule-row > span strong { font-size: 14px; }
  .scoring-rule-row > span small { font-size: 11px; }
  .scoring-rule-row > b { color: #000 !important; font-size: 18px; }
}

@media (max-width: 420px) {
  .profile-menu-identity { grid-template-columns: 62px minmax(0,1fr); min-height: 108px; padding: 16px; }
  .profile-menu-avatar { width: 62px; height: 62px; border-radius: 17px; }
  .profile-menu-identity strong { font-size: 26px; }
  .settings-menu-group { grid-template-columns: 1fr; }
  .settings-menu-group .settings-menu-heading,
  .settings-menu-group #edit-profile-button,
  .commissioner-settings-intro { grid-column: 1; }
  .settings-menu-action { min-height: 59px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .schedule-load-state::before, .rail-link.is-loading::after { animation: none !important; }
  .route-wipe { display: none !important; }
  .flying-football, .impact-mark, .push-arrows { display: none; }
  .game-runner, .game-tackler, .push-pack, .celebration-kicker, .celebration-copy-block h2, .celebration-copy-block p { opacity: 1; transform: none; }
}

@media (max-height: 600px) and (orientation: landscape) {
  .celebration-wrap { min-height: 100dvh; grid-template-columns: 1.2fr .9fr; grid-template-rows: 1fr; gap: 18px; padding: 54px 56px 22px; }
  .celebration-stage { min-height: 260px; }
  .celebration-copy-block { align-self: center; text-align: left; }
  .celebration-kicker { justify-content: flex-start; }
  .celebration-copy-block h2, .is-tush-push .celebration-copy-block h2 { margin-left: 0; font-size: clamp(42px, 8vw, 82px); }
  .celebration-copy-block p { margin-left: 0; }
}

/* Commissioner preseason player-pool setup */
.admin-backdrop { align-items: center; justify-content: center; }
.player-pool-card {
  width: min(780px, calc(100vw - 34px));
  max-height: calc(100dvh - 34px);
  overflow-y: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: modalPop var(--motion-base) var(--ease-out) both;
}
.player-pool-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: clamp(24px,4vw,42px); border-bottom: 1px solid var(--ink); }
.player-pool-header h2 { margin: 4px 0 10px; }
.player-pool-header p { max-width: 540px; margin: 0; color: var(--muted); font-size: 13px; }
.player-pool-summary { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--chalk); }
.player-pool-summary > div { min-height: 126px; display: flex; flex-direction: column; justify-content: center; padding: 20px; border-right: 1px solid var(--line); }
.player-pool-summary > div:last-child { border-right: 0; }
.player-pool-summary span, .player-pool-summary small { font-family: var(--utility); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.player-pool-summary span, .player-pool-summary small { color: var(--muted); }
.player-pool-summary strong { margin: 5px 0 2px; font-family: var(--display); font-size: clamp(32px,4vw,52px); line-height: 1; font-variant-numeric: tabular-nums; }
.player-pool-summary .pool-total { background: var(--navy); color: var(--white); }
.player-pool-summary .pool-total span, .player-pool-summary .pool-total small { color: var(--sky); }
.player-pool-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 28px clamp(24px,4vw,42px) 20px; }
.pool-field { display: grid; grid-template-columns: minmax(0,1fr) 86px; gap: 5px 12px; align-items: center; padding: 14px; border: 1px solid var(--line); background: var(--white); }
.pool-field > span { font-size: 12px; font-weight: 700; }
.pool-field small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.pool-field input { width: 86px; height: 48px; padding: 0 10px; border: 1px solid #aebbb7; background: var(--paper); font-family: var(--utility); font-size: 18px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pool-field input:focus { border-color: var(--turf); outline: 0; box-shadow: 0 0 0 3px rgba(14,139,121,.15); }
.pool-import-note { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 13px; margin: 0 clamp(24px,4vw,42px) 28px; padding: 17px; border-left: 3px solid var(--orange); background: var(--orange-soft); }
.pool-import-note svg { width: 25px; fill: none; stroke: var(--orange); stroke-width: 1.8; }
.pool-import-note strong, .pool-import-note span { display: block; }
.pool-import-note strong { font-size: 12px; }
.pool-import-note span { margin-top: 3px; color: #70493d; font-size: 10px; }
.player-pool-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px clamp(24px,4vw,42px) calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }

/* Illustration-led lineup celebrations: art lives in its own clipped stage; copy never sits on it. */
.celebration-wrap {
  z-index: 5;
  width: min(1060px, calc(100vw - 32px));
  min-height: min(780px, calc(100dvh - 32px));
  grid-template-rows: minmax(315px, 1fr) auto;
  gap: 18px;
  padding: clamp(74px, 10vh, 104px) clamp(18px, 5vw, 70px) clamp(32px, 5vh, 58px);
}
.celebration-stage {
  min-height: 315px;
  height: min(52vh, 460px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: radial-gradient(circle at 50% 42%, rgba(14,139,121,.28), transparent 58%);
  box-shadow: inset 0 -50px 70px rgba(7,24,32,.58);
}
.celebration-stage::before { content: ""; position: absolute; inset: 0; opacity: .45; background: repeating-linear-gradient(90deg, transparent 0 13%, rgba(255,255,255,.11) 13.1% 13.25%); }
.clipart-scene {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 2%;
  object-fit: contain;
  opacity: 0;
  transform-origin: 50% 54%;
  will-change: transform, opacity;
}
.is-game-time .clipart-game-time { animation: clipartTackle 1.1s 80ms var(--ease-out) both; }
.is-tush-push .clipart-tush-push { animation: clipartPush 1.25s 80ms var(--ease-out) both; }
.celebration-copy-block {
  z-index: 6;
  width: min(860px, 100%);
  justify-self: center;
  align-self: end;
  padding: clamp(16px, 2.7vw, 26px) clamp(18px, 4vw, 42px) clamp(18px, 3vw, 28px);
  border-top: 4px solid var(--orange);
  background: rgba(7,24,32,.94);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  text-align: center;
}
.celebration-kicker { animation-delay: 880ms; }
.celebration-copy-block h2 { margin-top: 10px; font-size: clamp(52px, 8.3vw, 106px); line-height: .84; text-shadow: 5px 5px 0 var(--orange); animation-delay: 970ms; }
.is-tush-push .celebration-copy-block h2 { max-width: 780px; font-size: clamp(42px, 6.6vw, 84px); line-height: .86; }
.celebration-copy-block p { margin-top: 14px; animation-delay: 1.15s; }
@keyframes clipartTackle { 0% { opacity: 0; transform: translateX(-4%) translateY(3%) scale(.9) rotate(-2deg); } 58% { opacity: 1; transform: translateX(1.5%) translateY(0) scale(1.035) rotate(.4deg); } 100% { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes clipartPush { 0% { opacity: 0; transform: translateX(-10%) scale(.94); } 42% { opacity: 1; transform: translateX(-1%) scale(1.01); } 64% { transform: translateX(2.6%) scale(1.01); } 78% { transform: translateX(1.1%); } 100% { opacity: 1; transform: translateX(2.2%); } }

@media (max-width: 760px) {
  .player-pool-card { width: 100vw; max-height: 100dvh; }
  .player-pool-header { padding: 24px 18px 20px; }
  .player-pool-header h2 { font-size: 48px; }
  .player-pool-summary { grid-template-columns: 1fr 1fr; }
  .player-pool-summary > div { min-height: 96px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .player-pool-summary > div:nth-child(even) { border-right: 0; }
  .player-pool-summary .pool-total { border-bottom: 0; }
  .player-pool-fields { grid-template-columns: 1fr; padding: 20px 18px 14px; }
  .pool-import-note { margin: 0 18px 20px; }
  .player-pool-actions { display: grid; grid-template-columns: 1fr 1.4fr; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
  .player-pool-actions .primary-button, .player-pool-actions .secondary-button { width: 100%; min-width: 0; }
  .celebration-wrap { width: 100%; min-height: 100dvh; grid-template-rows: minmax(228px, 46svh) auto; gap: 14px; padding: 64px 12px calc(22px + env(safe-area-inset-bottom)); }
  .celebration-stage { min-height: 228px; height: auto; }
  .clipart-scene { padding: 0; }
  .celebration-copy-block { padding: 16px 15px 18px; }
  .celebration-copy-block h2, .is-tush-push .celebration-copy-block h2 { font-size: clamp(39px, 11.5vw, 58px); line-height: .88; text-shadow: 3px 3px 0 var(--orange); }
  .celebration-copy-block p { max-width: 315px; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .clipart-scene { animation: none !important; transform: none; }
  .is-game-time .clipart-game-time, .is-tush-push .clipart-tush-push { opacity: 1; }
}
.system-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 1rem;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  background: #0d2f3b;
  color: #f8f6ef;
}

.system-page h1,
.system-page p {
  margin: 0;
}

/* Commissioner league format: dense controls on the left, a memorable survival
   funnel on the right. The hierarchy mirrors the rest of the field-book UI. */
.format-backdrop { align-items: center; justify-content: center; }
.league-format-card {
  width: min(1040px, calc(100vw - 34px));
  max-height: calc(100dvh - 34px);
  overflow-y: auto;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: modalPop var(--motion-base) var(--ease-out) both;
}
.league-format-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--ink);
}
.league-format-header h2 { margin: 5px 0 10px; font-size: clamp(54px, 7vw, 84px); line-height: .82; }
.league-format-header p { max-width: 730px; margin: 0; color: var(--muted); font-size: 13px; }
.format-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .75fr); }
.format-settings { padding: clamp(25px, 4vw, 42px); }
.format-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.format-section-heading h3, .survival-funnel h3 { margin: 5px 0 0; font-family: var(--display); font-size: 28px; line-height: .95; text-transform: uppercase; }
.format-section-heading > strong { padding: 7px 10px; border: 1px solid var(--turf); color: var(--turf); font-family: var(--utility); font-size: 9px; letter-spacing: .08em; }
.roster-slot-controls { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--ink); background: var(--white); }
.roster-slot-controls label { display: grid; place-items: center; gap: 8px; min-width: 0; padding: 13px 7px; border-right: 1px solid var(--line); }
.roster-slot-controls label:last-child { border-right: 0; }
.roster-slot-controls span { font-family: var(--utility); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.roster-slot-controls input, .format-number-grid input {
  width: 62px;
  height: 46px;
  border: 1px solid #aebbb7;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--utility);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.roster-slot-controls input:focus, .format-number-grid input:focus { border-color: var(--turf); outline: 0; box-shadow: 0 0 0 3px rgba(14,139,121,.15); }
.cut-heading { margin-top: 32px; }
.format-number-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.format-number-grid > label { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 5px 12px; min-height: 92px; padding: 14px; border: 1px solid var(--line); background: var(--white); }
.format-number-grid label > span { font-size: 11px; font-weight: 750; }
.format-number-grid label > div { position: relative; }
.format-number-grid #format-weekly-percent { width: 78px; }
.format-number-grid label > div input { padding-right: 20px; }
.format-number-grid em { position: absolute; right: 7px; top: 16px; font-family: var(--utility); font-size: 9px; font-style: normal; }
.format-number-grid small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.survival-funnel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(25px, 3vw, 36px);
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--white);
}
.survival-funnel > .utility-label { color: var(--mint); }
.survival-funnel h3 { margin-bottom: 24px; font-size: 34px; color: var(--white); }
.funnel-stage { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 2px 12px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.055); }
.funnel-stage span, .funnel-stage small, .funnel-winners span, .funnel-winners small { font-family: var(--utility); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.funnel-stage span, .funnel-stage small { color: var(--sky); }
.funnel-stage strong { grid-row: 1 / 3; grid-column: 2; color: var(--white); font-family: var(--display); font-size: 38px; line-height: .8; text-transform: uppercase; }
.funnel-stage small { grid-column: 1; }
.funnel-cut { margin-inline: 10px; border-color: var(--orange); }
.funnel-cut strong { color: var(--orange); font-size: 30px; }
.funnel-final { margin-inline: 28px; border-color: var(--mint); }
.funnel-final strong { color: var(--mint); }
.survival-funnel > i { width: 1px; height: 20px; margin: 0 auto; background: rgba(255,255,255,.45); }
.funnel-winners { align-self: center; display: grid; grid-template-columns: auto auto; align-items: end; gap: 0 7px; margin-top: 14px; padding: 10px 18px 11px; background: var(--mint); color: var(--navy); text-align: center; clip-path: polygon(9% 0,91% 0,100% 50%,91% 100%,9% 100%,0 50%); }
.funnel-winners strong { grid-row: 1 / 3; grid-column: 2; font-family: var(--display); font-size: 34px; line-height: .8; }
.funnel-winners small { grid-column: 1; }
.format-policy-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--chalk); }
.format-policy-strip > div { min-height: 112px; padding: 20px clamp(16px,2vw,26px); border-right: 1px solid var(--line); }
.format-policy-strip > div:last-child { border-right: 0; }
.format-policy-strip span, .format-policy-strip strong, .format-policy-strip small { display: block; }
.format-policy-strip span { color: var(--turf); font-family: var(--utility); font-size: 8px; letter-spacing: .08em; }
.format-policy-strip strong { margin: 7px 0 5px; font-family: var(--display); font-size: 24px; line-height: .9; text-transform: uppercase; }
.format-policy-strip small { color: var(--muted); font-size: 9px; }
.format-status { margin: 14px clamp(24px,4vw,42px) 0; padding: 10px 12px; border-left: 3px solid var(--turf); background: rgba(14,139,121,.08); color: var(--turf); font-size: 10px; }
.format-status.is-error { border-color: var(--orange); background: var(--orange-soft); color: #704332; }
.league-format-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px clamp(24px,4vw,42px) calc(18px + env(safe-area-inset-bottom)); background: var(--white); }

@media (max-width: 760px) {
  .league-format-card { width: 100vw; max-height: 100dvh; border: 0; }
  .league-format-header { padding: 24px 18px 20px; }
  .league-format-header h2 { font-size: 50px; }
  .format-layout { grid-template-columns: 1fr; }
  .format-settings { padding: 22px 18px; }
  .format-section-heading { align-items: flex-start; }
  .roster-slot-controls { grid-template-columns: repeat(3, 1fr); }
  .roster-slot-controls label { border-bottom: 1px solid var(--line); }
  .roster-slot-controls label:nth-child(3) { border-right: 0; }
  .roster-slot-controls label:nth-child(n+4) { border-bottom: 0; }
  .format-number-grid { grid-template-columns: 1fr; }
  .survival-funnel { min-height: 430px; padding: 26px 22px 30px; }
  .format-policy-strip { grid-template-columns: 1fr; }
  .format-policy-strip > div { min-height: 94px; border-right: 0; border-bottom: 1px solid var(--line); }
  .format-policy-strip > div:last-child { border-bottom: 0; }
  .league-format-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1.5fr; padding: 13px 18px calc(13px + env(safe-area-inset-bottom)); }
  .league-format-actions .primary-button, .league-format-actions .secondary-button { width: 100%; min-width: 0; }
}

/* Explainable player-decision model */
.decision-model-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 4px 30px 16px;
  padding: 11px 13px;
  border-left: 3px solid var(--turf);
  background: #e9f4f0;
  color: #35534c;
  font-family: var(--utility);
  font-size: 8px;
  line-height: 1.45;
  letter-spacing: .025em;
}
.decision-model-note strong { color: var(--turf-dark); letter-spacing: .08em; }
.decision-model-note small { color: var(--muted); font-size: 8px; text-align: right; }
.player-table-head,
.player-row {
  grid-template-columns: minmax(190px, 1.55fr) minmax(150px, .95fr) 92px 86px;
}
.matchup-cell strong { display: flex; align-items: center; gap: 6px; }
.matchup-grade {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-content: center;
  border-radius: 50%;
  background: #dce5e2;
  color: var(--ink);
  font-family: var(--utility);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}
.matchup-grade.grade-a,
.matchup-grade.grade-b { background: #d9f2e9; color: #08715e; }
.matchup-grade.grade-d,
.matchup-grade.grade-f { background: #ffebe5; color: #a83d25; }
.decision-cell { min-width: 0; font-family: var(--utility); }
.decision-cell strong {
  display: inline-grid;
  min-width: 34px;
  height: 34px;
  place-content: center;
  border: 1px solid #8fbeb2;
  border-radius: 4px;
  background: #eff8f5;
  color: var(--turf-dark);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.decision-cell span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Historical preload and request guard */
.history-import-panel {
  margin: 0 clamp(24px, 4vw, 42px) 22px;
  border: 1px solid var(--line);
  background: var(--white);
}
.history-import-heading {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}
.history-import-heading strong { display: block; margin-top: 3px; font-size: 15px; }
.history-ready-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--orange);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .07em;
  white-space: nowrap;
}
.history-ready-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 99, 59, .1);
}
.history-ready-state.is-ready { color: var(--turf); }
.history-window-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.history-window-grid > div { min-height: 100px; padding: 16px; border-right: 1px solid var(--line); }
.history-window-grid > div:last-child { border-right: 0; }
.history-window-grid span,
.history-window-grid strong,
.history-window-grid small { display: block; }
.history-window-grid span {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
}
.history-window-grid strong { margin-top: 11px; font-size: 11px; }
.history-window-grid small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.history-matchup-window { background: #edf7f4; }
.history-request-guard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: var(--white);
}
.history-request-guard strong,
.history-request-guard span { display: block; }
.history-request-guard strong { font-size: 10px; }
.history-request-guard div span { margin-top: 2px; color: var(--sky); font-size: 8px; }
.history-request-guard > span {
  color: var(--sky);
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.history-progress-track { height: 5px; overflow: hidden; background: #cfd8d5; }
.history-progress-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--turf);
  transform: scaleX(var(--history-progress, 0));
  transform-origin: left;
  transition: transform var(--motion-fast) ease;
}

@media (max-width: 760px) {
  .decision-model-note { display: block; margin: 4px 18px 12px; }
  .decision-model-note small { display: block; margin-top: 4px; text-align: left; }
  .player-row { min-height: 86px; grid-template-columns: minmax(0, 1fr) 66px 74px; }
  .decision-cell strong { min-width: 32px; height: 32px; }
  .history-import-panel { margin: 0 18px 18px; }
  .history-import-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .history-window-grid { grid-template-columns: 1fr; }
  .history-window-grid > div { min-height: 78px; border-right: 0; border-bottom: 1px solid var(--line); }
  .history-window-grid > div:last-child { border-bottom: 0; }
}

.system-page .primary-button {
  justify-self: center;
  text-decoration: none;
}

/* 2026 broadcast experience — a Sunday command center, not a generic dashboard. */
:root {
  --ink: #071b24;
  --navy: #0c3241;
  --navy-2: #155164;
  --chalk: #eeeadd;
  --paper: #f9f7f0;
  --turf: #0b9b82;
  --turf-dark: #087563;
  --orange: #ff633b;
  --orange-soft: #ffede5;
  --sky: #b8e2e8;
  --muted: #5b7079;
  --line: #cbd5d2;
  --soft-line: #e2e7e3;
  --shadow: 0 26px 72px rgba(7, 27, 36, .15);
  --shadow-soft: 0 14px 36px rgba(7, 27, 36, .09);
  --display: "Avenir Next Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --body: "Avenir Next", Avenir, Inter, system-ui, sans-serif;
}

body {
  background:
    linear-gradient(90deg, rgba(7, 27, 36, .028) 1px, transparent 1px),
    var(--chalk);
  background-size: 32px 32px;
}

.workspace {
  position: relative;
  min-height: 100dvh;
}

.topbar {
  position: relative;
  min-height: 96px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(249, 247, 240, .94);
  box-shadow: 0 1px 0 rgba(7, 27, 36, .05);
  backdrop-filter: blur(18px);
}

.topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: clamp(150px, 28vw, 440px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange));
}

.topbar-title-group {
  display: grid;
  gap: 3px;
}

.topbar-route,
.command-route {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
}

.topbar-route i,
.command-route i {
  width: 24px;
  height: 1px;
  background: var(--orange);
}

.topbar-route span:first-child {
  color: var(--orange);
}

.topbar h1 {
  font-family: var(--display);
  font-size: clamp(25px, 2.4vw, 35px);
  font-weight: 900;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.topbar-signal {
  min-width: 102px;
  padding: 8px 12px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: var(--utility);
}

.topbar-signal span,
.topbar-signal strong {
  display: block;
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: .09em;
}

.topbar-signal span { color: var(--muted); }
.topbar-signal strong { color: var(--turf-dark); }

.topbar-signal strong::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--turf);
  box-shadow: 0 0 0 3px rgba(11, 155, 130, .12);
}

.topbar-signal[data-provenance="stale"] strong::before { background: var(--orange); box-shadow: 0 0 0 3px rgba(240, 100, 59, .14); }
.topbar-signal[data-provenance="unavailable"] strong::before { background: #c8473f; box-shadow: 0 0 0 3px rgba(200, 71, 63, .14); }
.topbar-signal[data-provenance="recorded"] strong::before { background: var(--sky); box-shadow: 0 0 0 3px rgba(92, 188, 215, .14); }

.data-provenance {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  align-items: center;
  width: min(1320px, calc(100% - 44px));
  margin: 18px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font: 700 8px/1.4 var(--utility);
  letter-spacing: .055em;
}
.data-provenance-label { color: var(--turf-dark); }
.data-provenance-detail { flex: 1 1 260px; letter-spacing: .02em; }
.data-provenance-retry {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--turf-dark);
  font: 800 7px var(--utility);
  letter-spacing: .08em;
  cursor: pointer;
}
.data-provenance-retry:hover { background: var(--turf-dark); color: var(--white); }
.data-provenance-retry:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.data-provenance[data-provenance="stale"] { border-color: rgba(240, 100, 59, .5); background: #fff5ea; }
.data-provenance[data-provenance="stale"] .data-provenance-label,
.data-provenance[data-provenance="stale"] .data-provenance-retry { color: #a94620; }
.data-provenance[data-provenance="unavailable"] { border-color: rgba(200, 71, 63, .48); background: #fff1ef; }
.data-provenance[data-provenance="unavailable"] .data-provenance-label,
.data-provenance[data-provenance="unavailable"] .data-provenance-retry { color: #a3342f; }
.data-provenance[data-provenance="recorded"] { border-color: rgba(92, 188, 215, .52); background: #edf8fb; }

@media (max-width: 640px) {
  .data-provenance { width: calc(100% - 28px); margin-top: 12px; }
  .data-provenance-retry { width: 100%; }
}

.rail {
  box-shadow: 12px 0 42px rgba(7, 27, 36, .17);
}

.brand-mark {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .18), transparent 48%),
    var(--orange);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: auto -20px 10px;
  height: 1px;
  background: rgba(255, 255, 255, .42);
  transform: rotate(-18deg);
}

.rail-link {
  margin: 0 8px;
  border-radius: 8px;
}

.rail-link::before {
  inset: 17px auto 17px -8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
}

.rail-link:hover {
  background: rgba(255, 255, 255, .055);
}

.rail-link.is-active {
  background: linear-gradient(90deg, rgba(255, 99, 59, .13), transparent);
}

.game-ticker {
  min-height: 64px;
  box-shadow: 0 16px 30px rgba(7, 27, 36, .09);
}

.ticker-label {
  min-width: 138px;
  position: relative;
  overflow: hidden;
}

.ticker-label::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.2) 48%, transparent 61%);
  transform: translateX(-120%);
}

.motion-enhanced .ticker-label::after {
  animation: signalSweep 3.8s 1.4s ease-in-out infinite;
}

.ticker-game {
  min-width: 210px;
  padding-inline: 22px;
}

.ticker-action {
  position: relative;
  overflow: hidden;
}

.ticker-action::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(184, 226, 232, .18);
  border-radius: 50%;
}

.sunday-command {
  position: relative;
  min-height: clamp(310px, 30vw, 410px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr);
  align-items: center;
  gap: clamp(36px, 7vw, 112px);
  overflow: hidden;
  padding: clamp(38px, 4.5vw, 62px) clamp(22px, 6vw, 88px);
  background:
    linear-gradient(rgba(184, 226, 232, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 226, 232, .055) 1px, transparent 1px),
    radial-gradient(circle at 82% 48%, rgba(11, 155, 130, .26), transparent 28%),
    linear-gradient(135deg, #061a23 0%, var(--navy) 62%, #0a2936 100%);
  background-size: 38px 38px, 38px 38px, auto, auto;
  color: var(--white);
  isolation: isolate;
}

.sunday-command::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 12%;
  height: 1px;
  background: rgba(184, 226, 232, .21);
  box-shadow: 0 -84px 0 rgba(184, 226, 232, .07), 0 -168px 0 rgba(184, 226, 232, .07);
}

.sunday-command::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 8%;
  bottom: 0;
  width: 1px;
  background: rgba(184, 226, 232, .16);
  box-shadow: -74px 0 0 rgba(184, 226, 232, .07), 74px 0 0 rgba(184, 226, 232, .07);
}

.command-copy {
  position: relative;
  z-index: 2;
}

.command-route {
  margin-bottom: 18px;
  color: var(--sky);
}

.command-route span:first-child {
  color: var(--orange);
}

.command-copy h2 {
  max-width: 830px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 7vw, 100px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .78;
  text-transform: uppercase;
  text-wrap: balance;
}

.command-copy h2 em {
  color: var(--orange);
  font-style: normal;
  -webkit-text-stroke: 1px var(--orange);
}

.command-copy > p {
  max-width: 620px;
  margin: 24px 0 0;
  color: #bed3d8;
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.65;
}

.command-card {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(184, 226, 232, .26);
  border-top: 4px solid var(--orange);
  background: rgba(5, 22, 30, .76);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
}

.command-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.command-card .utility-label {
  color: #b8cdd2;
}

.command-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sky);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.command-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 99, 59, .12);
}

.command-status.is-saved { color: #70e4c8; }
.command-status.is-saved i { background: #48d5b4; box-shadow: 0 0 0 5px rgba(72, 213, 180, .12); }
.command-status.is-danger { color: #ff9b82; }

.command-count {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 28px 0 22px;
}

.command-count strong {
  font-family: var(--display);
  font-size: clamp(78px, 9vw, 118px);
  line-height: .65;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}

.command-count span {
  color: var(--sky);
  font-family: var(--utility);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .08em;
}

.command-progress {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
}

.command-progress i {
  height: 7px;
  background: rgba(255, 255, 255, .13);
  transform-origin: left center;
}

.command-progress i.is-filled {
  background: var(--turf);
  box-shadow: 0 0 15px rgba(11, 155, 130, .22);
}

.command-card > p {
  min-height: 34px;
  margin: 16px 0 0;
  color: #a9c0c6;
  font-size: 10px;
  line-height: 1.55;
}

.command-watermark {
  position: absolute;
  z-index: 0;
  right: -1vw;
  bottom: -3vw;
  color: rgba(255, 255, 255, .028);
  font-family: var(--display);
  font-size: clamp(240px, 35vw, 560px);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: .6;
  pointer-events: none;
}

.lineup-brief {
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-soft);
}

.lineup-brief > div {
  min-height: 108px;
}

.deadline-block {
  position: relative;
  overflow: hidden;
}

.deadline-block::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: var(--orange);
}

.yard-line {
  overflow: visible;
  border-radius: 10px;
}

.yard-line .yard-fill {
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(11, 155, 130, .22);
}

.lineup-layout {
  max-width: 1560px;
  margin: 0 auto;
}

.section-heading h2 {
  text-wrap: balance;
}

.roster-panel {
  padding: clamp(20px, 2vw, 30px);
  border: 1px solid rgba(203, 213, 210, .78);
  background: rgba(249, 247, 240, .72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.roster-slot {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(7, 27, 36, .035);
}

.roster-slot::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--turf);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-base) var(--ease-out);
}

.roster-slot:hover::after,
.roster-slot:focus-visible::after {
  transform: scaleX(1);
}

.roster-slot.is-empty {
  background:
    repeating-linear-gradient(135deg, rgba(11, 155, 130, .025) 0 7px, transparent 7px 14px),
    rgba(255,255,255,.58);
}

.slot-position {
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
}

.primary-button,
.secondary-button,
.segmented-control button,
.week-selector,
.search-box,
.completion-chip {
  border-radius: 6px;
}

.primary-button,
.secondary-button {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(255, 99, 59, .17);
}

.primary-button::before,
.secondary-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 48%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 460ms var(--ease-out);
}

.primary-button:hover::before,
.secondary-button:hover::before {
  transform: translateX(130%);
}

.score-card,
.used-card {
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.score-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 16%, rgba(11, 155, 130, .34), transparent 30%),
    linear-gradient(145deg, var(--navy-2), var(--navy) 58%, var(--ink));
}

.score-card::before {
  content: "W8";
  position: absolute;
  right: -13px;
  bottom: -37px;
  color: rgba(255, 255, 255, .035);
  font-family: var(--display);
  font-size: 148px;
  font-weight: 900;
  line-height: 1;
}

.score-card > * {
  position: relative;
  z-index: 1;
}

.projected-score strong,
.hero-stat strong,
.score-cell strong,
.rank-number,
#countdown {
  font-variant-numeric: tabular-nums;
}

.used-card {
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(10px);
}

.leaderboard-hero {
  min-height: 330px;
  overflow: hidden;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(circle at 78% 50%, rgba(11,155,130,.25), transparent 25%);
  background-size: 36px 36px, 36px 36px, auto;
}

.leaderboard-hero h2 {
  max-width: 880px;
  font-size: clamp(68px, 9.5vw, 132px);
  line-height: .78;
}

.hero-stat {
  flex-basis: 190px;
  padding: 22px 0 22px 25px;
  border-left-width: 4px;
  background: linear-gradient(90deg, rgba(255,99,59,.08), transparent);
}

.hero-stat strong {
  font-size: 96px;
}

.leaderboard-card,
.recap-sheet,
.player-drawer,
.rules-card,
.scoring-card,
.profile-card,
.player-pool-card {
  box-shadow: var(--shadow);
}

.leaderboard-card {
  border-radius: 10px;
  overflow: hidden;
}

.leaderboard-row {
  transition: background var(--motion-fast) ease;
}

.leaderboard-row-wrap:hover .leaderboard-row {
  background: rgba(11, 155, 130, .045);
}

.player-drawer {
  border-left: 4px solid var(--orange);
}

.player-row {
  position: relative;
}

.player-row::after {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--turf);
  transform: scaleY(0);
  transition: transform var(--motion-fast) var(--ease-out);
}

.player-row:not(:disabled):hover::after,
.player-row:not(:disabled):focus-visible::after {
  transform: scaleY(1);
}

.celebration-stage {
  border-radius: 10px;
  perspective: 900px;
}

.cinematic-football {
  position: absolute;
  z-index: 5;
  left: 51%;
  top: 47%;
  width: 70px;
  height: 44px;
  border: 4px solid #fff7ec;
  border-radius: 52% 48% 50% 50%;
  background: #8d472d;
  box-shadow: inset 0 -9px 0 rgba(65, 24, 13, .22), 0 18px 40px rgba(0,0,0,.26);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-24deg) scale(.25);
}

.cinematic-football > i {
  position: absolute;
  left: 17px;
  right: 17px;
  top: 18px;
  height: 3px;
  border-radius: 3px;
  background: #fff7ec;
}

.cinematic-football > b {
  position: absolute;
  top: 12px;
  width: 3px;
  height: 15px;
  border-radius: 3px;
  background: #fff7ec;
}

.cinematic-football > b:nth-of-type(1) { left: 26px; }
.cinematic-football > b:nth-of-type(2) { left: 34px; }
.cinematic-football > b:nth-of-type(3) { left: 42px; }

.impact-ring {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  border: 4px solid var(--orange);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.2);
}

.motion-enhanced .clipart-scene,
.motion-enhanced .celebration-kicker,
.motion-enhanced .celebration-copy-block h2,
.motion-enhanced .celebration-copy-block p {
  animation: none !important;
}

.motion-enhanced .view,
.motion-enhanced .route-wipe.is-active {
  animation: none;
}

.motion-enhanced .route-wipe-line {
  animation: none !important;
}

.motion-enhanced .roster-slot,
.motion-enhanced .leaderboard-row-wrap {
  will-change: transform;
}

.motion-enhanced .roster-slot:hover,
.motion-enhanced .profile-orb:hover {
  transform: none;
}

.auth-backdrop {
  background:
    linear-gradient(rgba(184,226,232,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,226,232,.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(11,155,130,.18), transparent 35%),
    var(--navy);
  background-size: 40px 40px, 40px 40px, auto, auto;
}

.auth-card {
  border-top-width: 6px;
  box-shadow: 0 40px 100px rgba(0,0,0,.32);
}

.demo-auth-button {
  min-height: 50px;
  border: 1px solid var(--navy);
  border-radius: 5px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.demo-auth-button:hover {
  border-color: var(--turf-dark);
  background: var(--turf-dark);
}

@keyframes signalSweep {
  0%, 35% { transform: translateX(-120%); }
  65%, 100% { transform: translateX(120%); }
}

@media (max-width: 1120px) {
  .sunday-command {
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
    gap: 34px;
  }
  .command-copy h2 { font-size: clamp(58px, 8vw, 86px); }
  .topbar-signal { display: none; }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 76px;
    padding: 9px 15px;
  }
  .topbar-route { display: none; }
  .topbar h1 {
    max-width: 230px;
    font-size: 22px;
  }
  .topbar .eyebrow { font-size: 8px; }
  .freshness > span:last-child { display: none; }
  .sunday-command {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 32px 18px 26px;
  }
  .command-copy h2 {
    max-width: 520px;
    font-size: clamp(46px, 14.5vw, 62px);
    line-height: .8;
  }
  .command-copy > p {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.55;
  }
  .command-card {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 14px;
    padding: 16px 18px;
  }
  .command-card-top,
  .command-progress,
  .command-card > p { grid-column: 1 / -1; }
  .command-count { margin: 17px 0 13px; }
  .command-count strong { font-size: 66px; }
  .command-count span { font-size: 8px; }
  .command-card > p {
    min-height: 0;
    margin-top: 10px;
  }
  .command-watermark {
    right: -26px;
    bottom: -30px;
    font-size: 260px;
  }
  .lineup-brief > div { min-height: 96px; }
  .roster-panel {
    margin-inline: -5px;
    padding: 18px 13px;
    border-inline: 0;
    box-shadow: none;
  }
  .score-card,
  .used-card,
  .leaderboard-card { border-radius: 8px; }
  .leaderboard-hero {
    min-height: 290px;
  }
  .leaderboard-hero h2 {
    font-size: clamp(58px, 17vw, 84px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-enhanced .ticker-label::after { animation: none; }
  .cinematic-football,
  .impact-ring { display: none; }
  .motion-enhanced .clipart-scene { opacity: 0; transform: none; }
  .motion-enhanced .is-game-time .clipart-game-time,
  .motion-enhanced .is-tush-push .clipart-tush-push { opacity: 1; }
  .motion-enhanced .celebration-kicker,
  .motion-enhanced .celebration-copy-block h2,
  .motion-enhanced .celebration-copy-block p {
    opacity: 1;
    transform: none;
  }
}

/* Transparent player scoring and season-use ordering */
.player-drawer { width: min(1020px, 94vw); }
.fantasy-edge-model {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(420px, 1.4fr);
  gap: 14px 22px;
  margin: 4px 30px 16px;
  padding: 16px;
  border: 1px solid #8ebcb2;
  border-left: 5px solid var(--turf);
  background: #e9f4f0;
}
.fantasy-edge-intro > span,
.fantasy-edge-intro > h3 { display: block; }
.fantasy-edge-intro > span {
  color: var(--turf-dark);
  font-family: var(--utility);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .09em;
}
.fantasy-edge-intro > h3 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 30px;
  line-height: .9;
  text-transform: uppercase;
}
.fantasy-edge-intro p {
  max-width: 360px;
  margin: 8px 0 0;
  color: #35534c;
  font-size: 9px;
  line-height: 1.45;
}
.fantasy-edge-weights {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  border: 1px solid #b8d2cc;
  background: var(--white);
}
.fantasy-edge-weights > span {
  min-width: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 8px 6px;
  border-right: 1px solid #cadbd7;
  text-align: center;
}
.fantasy-edge-weights > span:last-child { border-right: 0; }
.fantasy-edge-weights small {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 6px;
  letter-spacing: .05em;
}
.fantasy-edge-weights strong {
  margin-top: 5px;
  color: var(--turf-dark);
  font-family: var(--utility);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.fantasy-edge-caution {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 8px;
}
.player-table-head {
  grid-template-columns: minmax(210px, 1.15fr) minmax(140px, .75fr) minmax(330px, 1.5fr) 102px;
}
.player-row {
  width: 100%;
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 102px;
  gap: 12px;
  padding: 0 30px;
  border-bottom: 1px solid var(--soft-line);
  background: var(--white);
  transition: background var(--motion-fast) ease;
}
.player-row:has(.player-row-main:hover) { background: #f2f9f6; }
.player-row.is-season-used { background: #f4f5f2; }
.player-list-pagination,
.player-list-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 30px 28px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: .04em;
}
.player-list-summary { justify-content: flex-end; }
.player-row-main {
  min-width: 0;
  min-height: 85px;
  display: grid;
  grid-template-columns: minmax(210px, 1.15fr) minmax(140px, .75fr) minmax(330px, 1.5fr);
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.player-row-main:disabled {
  opacity: .58;
  cursor: not-allowed;
}
.player-row-tools {
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.fantasy-stat-cell {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px repeat(5, minmax(42px, 1fr));
  align-items: stretch;
  border: 1px solid #d0dbd7;
  background: #f8faf8;
}
.fantasy-stat-cell > span {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 5px 3px;
  border-right: 1px solid #dde5e2;
}
.fantasy-stat-cell > span:last-child { border-right: 0; }
.fantasy-stat-cell small,
.fantasy-stat-cell strong { display: block; }
.fantasy-stat-cell small {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 6px;
  letter-spacing: .05em;
}
.fantasy-stat-cell strong {
  margin-top: 3px;
  font-family: var(--utility);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.fantasy-stat-cell .edge-rating { background: var(--navy); color: var(--white); }
.fantasy-stat-cell .edge-rating strong {
  margin: 0;
  color: var(--white);
  font-size: 16px;
}
.fantasy-stat-cell .edge-rating small { color: var(--sky); }
.player-row-tools .availability {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score-details-button {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #9cbcb5;
  border-radius: 4px;
  background: #f4faf8;
  color: var(--turf-dark);
  cursor: pointer;
  font-family: var(--utility);
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}
.score-details-button:hover {
  border-color: var(--turf);
  background: #e6f5f0;
  transform: translateY(-1px);
}
.score-details-button span {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
}
.score-details-button strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.player-group-separator {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 30px;
  border-block: 1px solid #b9c4c0;
  background: #e8ebe8;
  color: #53615d;
}
.player-group-separator strong,
.player-group-separator span { display: block; }
.player-group-separator strong {
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: .09em;
}
.player-group-separator div span {
  margin-top: 3px;
  font-size: 9px;
}
.player-group-separator > span {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-content: center;
  border: 1px solid #9fa9a5;
  border-radius: 50%;
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 800;
}

.score-breakdown-backdrop {
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 19, 26, .72);
}
.score-breakdown-card {
  width: min(760px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  border-top: 5px solid var(--orange);
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .35);
  animation: scoreReceiptIn 280ms var(--ease-out) both;
}
.score-breakdown-header {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.score-breakdown-header h2 {
  max-width: 620px;
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 58px);
  line-height: .85;
  text-transform: uppercase;
}
.score-breakdown-hero {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 22px 26px;
  background: var(--navy);
  color: var(--white);
}
.score-breakdown-player-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-content: center;
  background: var(--orange);
  color: var(--white);
  font-family: var(--display);
  font-size: 24px;
}
.score-breakdown-player { min-width: 0; }
.score-breakdown-player > span,
.score-breakdown-player small,
.score-breakdown-player strong { display: block; }
.score-breakdown-player > span {
  color: var(--sky);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: .08em;
}
.score-breakdown-player strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score-breakdown-player small {
  margin-top: 5px;
  color: #bcd0d6;
  font-size: 9px;
}
.score-breakdown-total {
  min-width: 132px;
  display: grid;
  grid-template-areas:
    "phase"
    "score"
    "label";
  justify-items: end;
  align-content: center;
  gap: 5px;
  padding-block: 4px;
  text-align: right;
}
.score-breakdown-total > span,
.score-breakdown-total small { display: block; }
.score-breakdown-total > span {
  grid-area: phase;
  color: var(--sky);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1;
}
.score-breakdown-total > span.is-live { color: #66e8c6; }
#score-breakdown-phase.is-finalizing,
#score-breakdown-total.is-finalizing { color: var(--sky); }
.score-breakdown-total strong {
  grid-area: score;
  margin: 0;
  font-family: var(--display);
  font-size: 58px;
  line-height: .84;
  font-variant-numeric: tabular-nums;
}
.score-breakdown-total small {
  grid-area: label;
  color: #bcd0d6;
  font-family: var(--utility);
  font-size: 7px;
  line-height: 1;
}
.score-component-head {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(150px, .9fr) 60px;
  align-items: center;
  gap: 14px;
  padding: 0 22px 0 64px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: .09em;
}
.score-component-head span:last-child { text-align: right; }
.score-stat-book + .score-stat-book { border-top: 5px solid var(--paper); }
.score-stat-book-header { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:42px; padding:0 22px; background:var(--navy); color:var(--white); }
.score-stat-book-header h3 { margin:0; font:800 9px var(--utility); letter-spacing:.12em; text-transform:uppercase; }
.score-stat-book-header > span { color:var(--sky); font:800 7px var(--utility); letter-spacing:.09em; }
.score-stat-book-header strong { margin-left:5px; color:var(--white); font-size:10px; }
.score-stat-book-header strong.is-positive::before { content:"+"; }
.score-receipt-empty { margin:0; padding:32px 22px; color:var(--muted); }
.score-component {
  min-height: 94px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1.2fr) minmax(150px, .9fr) 60px;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--soft-line);
  background: var(--white);
}
.score-component-sign {
  width: 24px;
  height: 24px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: #e6eeeb;
  color: #63706c;
  font-family: var(--utility);
  font-size: 13px;
  font-weight: 900;
}
.score-component-sign.is-positive { background: #ddf2ea; color: #08715e; }
.score-component-sign.is-negative { background: #ffebe5; color: #a83d25; }
.score-component div { min-width: 0; }
.score-component div strong,
.score-component div span { display: block; }
.score-component div strong { font-size: 15px; line-height: 1.2; }
.score-component div span,
.score-component-rule {
  margin-top: 3px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}
.score-component-points {
  font-family: var(--utility);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.score-component-points.is-positive { color: var(--turf-dark); }
.score-component-points.is-negative { color: #a83d25; }
.score-component-points.is-positive::before { content: "+"; }
.score-breakdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
}
.score-breakdown-footer p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}
.score-breakdown-footer .secondary-button { flex: 0 0 auto; min-height: 44px; }
.slot-live-score .slot-score-label { color: var(--turf-dark); font-weight: 800; }

@keyframes scoreReceiptIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .fantasy-edge-model {
    grid-template-columns: 1fr;
    margin: 4px 18px 12px;
    padding: 13px;
  }
  .fantasy-edge-intro > h3 { font-size: 28px; }
  .fantasy-edge-weights {
    grid-template-columns: repeat(2, 1fr);
  }
  .fantasy-edge-weights > span {
    min-height: 50px;
    border-right: 1px solid #cadbd7;
    border-bottom: 1px solid #cadbd7;
  }
  .fantasy-edge-weights > span:nth-child(even) { border-right: 0; }
  .fantasy-edge-weights > span:last-child { border-bottom: 0; }
  .fantasy-edge-caution { grid-column: auto; }
  .player-row {
    min-height: 96px;
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 8px;
    padding: 0 18px;
  }
  .player-row-main {
    min-height: 95px;
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 8px;
  }
  .player-row-main .matchup-cell { display: none; }
  .fantasy-stat-cell {
    grid-template-columns: 42px 1fr;
  }
  .fantasy-stat-cell > span { min-height: 44px; }
  .fantasy-stat-cell > span:nth-child(n+3) { display: none; }
  .player-row-tools { gap: 5px; }
  .player-row-tools .availability { padding-inline: 4px; font-size: 7px; }
  .score-details-button { padding-inline: 7px; }
  .score-details-button span { font-size: 6px; }
  .score-details-button strong { font-size: 13px; }
  .player-group-separator { padding-inline: 18px; }

  .score-breakdown-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .score-breakdown-card {
    width: 100%;
    max-height: 100dvh;
    border-top-width: 4px;
    animation-name: scoreReceiptMobileIn;
  }
  .score-breakdown-header { min-height: 92px; padding: 18px; }
  .score-breakdown-header h2 { max-width: 290px; font-size: 40px; }
  .score-breakdown-hero {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }
  .score-breakdown-player-badge { width: 48px; height: 48px; font-size: 21px; }
  .score-breakdown-player strong { font-size: 16px; }
  .score-breakdown-total {
    grid-column: 1 / -1;
    min-width: 0;
    grid-template-columns: max-content max-content;
    grid-template-areas:
      "phase phase"
      "score label";
    justify-content: start;
    justify-items: start;
    align-items: baseline;
    column-gap: 10px;
    row-gap: 3px;
    padding-top: 9px;
    text-align: left;
  }
  .score-breakdown-total strong { font-size: 48px; }
  .score-component-head { display: none; }
  .score-component {
    /* Keep the observed stat, rule multiplier, and result in one visible row.
       Fractional columns shrink together, so narrow handsets never create a
       hidden horizontal stat column. */
    grid-template-columns: 20px minmax(0, 1.15fr) minmax(0, .95fr) minmax(46px, .5fr);
    gap: 7px;
    min-height: 88px;
    padding: 13px 16px;
  }
  .score-component-sign { width: 20px; height: 20px; font-size: 11px; }
  .score-component-stat,
  .score-component-rule,
  .score-component-points {
    min-width: 0;
    grid-column: auto;
    grid-row: auto;
  }
  .score-component-stat::before,
  .score-component-rule::before,
  .score-component-points::before {
    content: attr(data-score-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-family: var(--utility);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
  }
  .score-component-stat strong,
  .score-component-stat span,
  .score-component-rule,
  .score-component-points {
    overflow-wrap: anywhere;
  }
  .score-component-stat strong { font-size: 11px; line-height: 1.1; }
  .score-component-stat span,
  .score-component-rule { margin-top: 0; font-size: 8px; line-height: 1.25; }
  .score-component-points { align-self: start; font-size: 13px; line-height: 1.1; }
  .score-breakdown-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  }
  .score-breakdown-footer .secondary-button { width: 100%; }
}

@keyframes scoreReceiptMobileIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .score-breakdown-card { animation: none; }
  .score-details-button:hover { transform: none; }
}

/* League-specific weekly metrics */
.league-metrics {
  margin-top: 48px;
  border-top: 8px solid var(--turf-dark);
  color: var(--ink);
}
.league-metrics-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--ink);
}
.league-metrics-header h2 {
  max-width: 820px;
  margin: 8px 0 10px;
  font-family: var(--display);
  font-size: clamp(50px, 6.2vw, 84px);
  line-height: .88;
  text-transform: uppercase;
}
.league-metrics-header p {
  max-width: 680px;
  margin: 0;
  font-size: 12px;
}
.recap-week-control {
  min-width: 164px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
}
.recap-week-control select {
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: 700 13px var(--utility);
}
.league-metrics-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--ink);
}
.league-metrics-summary > div {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
  border-right: 1px solid var(--ink);
}
.league-metrics-summary > div:last-child { border-right: 0; }
.league-metrics-summary span,
.perfect-eight-total span {
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
}
.league-metrics-summary strong {
  overflow: hidden;
  margin: 9px 0 3px;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: .9;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.league-metrics-summary small { color: var(--muted); font-size: 9px; }
.league-metrics-summary .is-positive {
  background: var(--turf-dark);
  color: var(--white);
}
.league-metrics-summary .is-positive small { color: #bcd3cd; }
.league-metrics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  border-bottom: 1px solid var(--ink);
}
.usage-board {
  min-width: 0;
  border-right: 1px solid var(--ink);
}
.usage-board > header,
.perfect-eight > header {
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--ink);
}
.usage-board > header {
  align-items: center;
  padding: 22px 28px;
}
.perfect-eight > header {
  align-items: flex-end;
  padding: 20px 22px;
}
.usage-board h3,
.perfect-eight h3 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 34px;
  line-height: .9;
  text-transform: uppercase;
}
.metrics-position-filter {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(54px, 1fr));
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #f8f6ef;
  scrollbar-width: none;
}
.metrics-position-filter::-webkit-scrollbar { display: none; }
.metrics-position-filter button {
  position: relative;
  min-width: 54px;
  min-height: 52px;
  padding: 2px 12px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 700 9px var(--utility);
  letter-spacing: .055em;
  transition: color var(--motion-fast) var(--ease-out), background var(--motion-fast) var(--ease-out);
}
.metrics-position-filter button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--motion-fast) var(--ease-out);
}
.metrics-position-filter button:hover { color: var(--ink); }
.metrics-position-filter button.is-active {
  background: rgba(255,255,255,.72);
  color: var(--ink);
}
.metrics-position-filter button.is-active::after { transform: scaleX(1); }
.metrics-position-filter button:focus-visible {
  outline: none;
  background: rgba(255,255,255,.72);
  color: var(--ink);
}
.metrics-position-filter button:focus-visible::after { transform: scaleX(1); }
.position-group-spotlight {
  --position-team: var(--navy);
  --position-accent: var(--orange);
  --position-accent-text: var(--ink);
  position: relative;
  min-height: 164px;
  display: grid;
  grid-template-columns: minmax(220px, .82fr) minmax(300px, 1.18fr);
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(115deg, var(--position-team) 0 58%, color-mix(in srgb, var(--position-team) 84%, #000) 58% 100%);
  color: var(--white);
}
.position-group-spotlight[hidden] { display: none; }
.position-group-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 24px 28px;
}
.position-group-copy .utility-label { color: var(--position-accent); }
.position-group-copy strong {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 54px);
  line-height: .86;
  text-transform: uppercase;
}
.position-group-copy small {
  display: block;
  max-width: 360px;
  margin-top: 12px;
  color: rgba(255,255,255,.72);
  font-size: 9px;
  line-height: 1.45;
}
.position-group-art {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  border-left: 5px solid var(--position-accent);
}
.position-group-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--position-team), transparent 42%);
  pointer-events: none;
}
.position-group-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 30%;
}
.position-group-art > span,
.position-group-art > em {
  position: absolute;
  z-index: 1;
  font-family: var(--utility);
  font-style: normal;
  font-weight: 800;
  letter-spacing: .06em;
}
.position-group-art > span {
  right: 18px;
  bottom: 14px;
  padding: 7px 9px;
  background: var(--position-accent);
  color: var(--position-accent-text);
  font-size: 10px;
}
.position-group-art > em {
  top: 14px;
  right: 18px;
  padding: 6px 8px;
  background: var(--position-team);
  color: var(--white);
  font-size: 7px;
}
.usage-table-wrap {
  max-height: 690px;
  overflow: auto;
}
.usage-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.usage-table thead {
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--paper);
}
.usage-table th,
.usage-table td {
  height: 64px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--soft-line);
  text-align: right;
  font: 700 12px var(--utility);
}
.usage-table thead th {
  height: 36px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: .08em;
}
.usage-table th:first-child {
  width: 34%;
  padding-left: 32px;
  text-align: left;
}
.usage-table th:last-child,
.usage-table td:last-child { padding-right: 32px; }
.usage-table th:nth-child(2) { width: 28%; }
.usage-table tbody th {
  text-align: left;
}
.usage-player-copy {
  width: 100%;
  display: block;
}
.usage-table tbody th strong,
.usage-table tbody th small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.usage-table tbody th strong { font-family: var(--body); font-size: 11px; }
.usage-table tbody th small {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 7px;
}
.usage-team-pill {
  min-width: 34px;
  min-height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-left: 4px solid var(--usage-accent);
  background: var(--usage-team);
  color: var(--white);
  font: 800 7px var(--utility);
  letter-spacing: .055em;
}
.usage-position-label {
  color: var(--turf-dark);
  font: 800 7px var(--utility);
  letter-spacing: .08em;
}
.usage-table tbody tr {
  transition: background var(--motion-fast) var(--ease-out);
}
.usage-table tbody tr:hover {
  background: color-mix(in srgb, var(--paper) 90%, var(--turf) 10%);
}
.usage-table td:nth-child(2) {
  text-align: left;
}
.usage-table td:nth-child(2) > strong { display: block; }
.usage-table td:nth-child(2) strong small { color: var(--muted); font-size: 7px; }
.usage-table td:nth-child(2) > small { float: right; margin-top: -9px; color: var(--muted); font-size: 7px; }
.usage-meter {
  height: 5px;
  overflow: hidden;
  display: block;
  margin-top: 7px;
  background: #e1e4de;
}
.usage-meter i {
  height: 100%;
  display: block;
  background: var(--turf);
}
.usage-table .is-up { color: var(--turf-dark); }
.usage-table .is-down { color: #a3432b; }
.perfect-eight {
  min-width: 0;
  background: var(--navy);
  color: var(--white);
}
.perfect-eight > header { border-color: rgba(255,255,255,.25); }
.perfect-eight .utility-label { color: var(--sky); }
.perfect-eight-total {
  flex: 0 0 auto;
  text-align: right;
}
.perfect-eight-total span { display: block; color: #9bb2ba; }
.perfect-eight-total strong {
  display: block;
  margin-top: 5px;
  color: #73d2b9;
  font: 700 27px var(--utility);
}
.perfect-eight > p {
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: #b7c9cf;
  font-size: 10px;
}
.perfect-eight-list { padding: 0 22px; }
.perfect-eight-player {
  min-height: 69px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 52px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.perfect-slot {
  color: var(--sky);
  font: 700 8px var(--utility);
}
.perfect-eight-player > span:nth-child(2) { min-width: 0; }
.perfect-eight-player > span:nth-child(2) strong,
.perfect-eight-player > span:nth-child(2) small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.perfect-eight-player > span:nth-child(2) strong { font-size: 11px; }
.perfect-eight-player > span:nth-child(2) small { margin-top: 3px; color: #91a8b0; font-size: 7px; }
.perfect-points { text-align: right; }
.perfect-points strong { display: block; font: 700 13px var(--utility); }
.perfect-points small { display: block; margin-top: 2px; color: #91a8b0; font: 6px var(--utility); }
.perfect-eight-player em {
  padding: 7px 5px;
  background: rgba(79,224,184,.11);
  color: #73d2b9;
  font: normal 700 10px var(--utility);
  text-align: center;
}
.perfect-eight > footer {
  padding: 20px 22px 24px;
}
.perfect-eight > footer span {
  display: block;
  margin-bottom: 7px;
  color: var(--white);
  font: 700 12px var(--utility);
}
.perfect-eight > footer small { color: #91a8b0; font-size: 8px; line-height: 1.5; }
.league-metrics-note {
  margin: 0;
  padding: 16px 22px;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font: 8px/1.6 var(--utility);
}

@media (max-width: 1080px) {
  .league-metrics-layout { grid-template-columns: 1fr; }
  .usage-board { border-right: 0; border-bottom: 1px solid var(--ink); }
}

@media (max-width: 760px) {
  .league-metrics { margin-top: 38px; }
  .league-metrics-header {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 0;
  }
  .league-metrics-header h2 { font-size: 48px; }
  .recap-week-control { width: 100%; }
  .league-metrics-summary { grid-template-columns: 1fr 1fr; }
  .league-metrics-summary > div {
    min-height: 105px;
    padding: 16px;
  }
  .league-metrics-summary > div:first-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
  .league-metrics-summary > div:nth-child(2) { border-right: 1px solid var(--ink); }
  .league-metrics-summary strong { font-size: 27px; }
  .usage-board > header,
  .perfect-eight > header {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    padding: 18px 14px;
  }
  .metrics-position-filter {
    width: 100%;
    grid-template-columns: repeat(7, minmax(52px, 1fr));
    padding-inline: 0;
  }
  .position-group-spotlight {
    min-height: 150px;
    grid-template-columns: 1fr 1fr;
  }
  .position-group-copy { padding: 20px 14px; }
  .position-group-copy strong { font-size: 34px; }
  .position-group-art { min-height: 150px; }
  .usage-table th,
  .usage-table td { padding-inline: 8px; }
  .usage-table th:first-child { width: 42%; padding-left: 14px; }
  .usage-table th:last-child,
  .usage-table td:last-child { padding-right: 14px; }
  .usage-table th:nth-child(2) { width: 34%; }
  .usage-table th:nth-child(3),
  .usage-table th:nth-child(4),
  .usage-table td:nth-child(3),
  .usage-table td:nth-child(4) { display: none; }
  .usage-table td:nth-child(2) > small { float: none; display: block; margin-top: 4px; }
  .usage-player-copy { width: 100%; }
  .perfect-eight-total { text-align: left; }
  .perfect-eight-list { padding-inline: 14px; }
  .perfect-eight-player { grid-template-columns: 28px minmax(0, 1fr) auto 48px; }
  .perfect-eight > p,
  .perfect-eight > footer,
  .league-metrics-note { padding-inline: 14px; }
}

/* Rest-of-schedule player lab */
.schedule-hero {
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  padding: 48px clamp(22px, 5vw, 74px);
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    var(--navy);
  background-size: 36px 36px, 36px 36px, auto;
  color: var(--white);
}
.schedule-hero h2 {
  margin: 13px 0 17px;
  font-family: var(--display);
  font-size: clamp(66px, 8.5vw, 116px);
  line-height: .78;
  text-transform: uppercase;
}
.schedule-hero p {
  max-width: 610px;
  margin: 0;
  color: #bdd0d6;
  font-size: 13px;
}
.schedule-hero-rule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  align-items: end;
  padding: 24px 0 24px 26px;
  border-left: 4px solid var(--orange);
}
.schedule-hero-rule > span,
.schedule-hero-rule > small {
  grid-column: 1 / -1;
  color: #9eb4bc;
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: .1em;
}
.schedule-hero-rule strong {
  font-family: var(--display);
  font-size: clamp(76px, 8vw, 112px);
  line-height: .65;
}
.schedule-hero-rule i {
  padding-bottom: 2px;
  color: #73d2b9;
  font: normal 700 10px/1.25 var(--utility);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.schedule-hero-rule > small {
  margin-top: 10px;
  line-height: 1.6;
  letter-spacing: 0;
}
.schedule-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px clamp(22px, 4vw, 62px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.schedule-search { width: min(390px, 38vw); flex: 1 1 260px; }
.schedule-search.search-box { min-width: 0; height: 48px; border-color: #b9c8c4; box-shadow: none; }
.schedule-search.search-box input { font: 700 14px/1.2 var(--body); }
.schedule-search.search-box input::placeholder { color: #6b7d7f; opacity: 1; }
.schedule-position-filter {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.schedule-position-filter button {
  position: relative;
  min-width: 44px;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 800 13px/1 var(--body);
  cursor: pointer;
}
.schedule-position-filter button::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .16s ease;
}
.schedule-position-filter button:hover { color: var(--ink); }
.schedule-position-filter button.is-active {
  color: var(--ink);
}
.schedule-position-filter button.is-active::after,
.schedule-position-filter button:focus-visible::after { transform: scaleX(1); }
.schedule-position-filter button:focus-visible { outline: 3px solid #075e76; outline-offset: -3px; }
}
.schedule-eligible-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}
.schedule-eligible-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--turf);
}
.schedule-toolbar .sample-label { margin-left: auto; }
.schedule-board {
  margin: 38px clamp(22px, 4vw, 62px) 76px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.schedule-board > header {
  min-height: 106px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--ink);
}
.schedule-board-eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}
.schedule-board > header h3 {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: clamp(40px, 4vw, 54px);
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.schedule-key {
  display: flex;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 700 13px/1.3 var(--body);
}
.schedule-key span { padding: 12px 14px; border-right: 1px solid var(--line); }
.schedule-key span:last-child { border-right: 0; }
.schedule-key strong { margin-right: 4px; color: var(--ink); font-size: 14px; }
.schedule-runway { padding:0 22px 22px; background:#f7f6f0; }
.schedule-runway-description { margin:0; padding:18px 0; color:#3e555e; font:650 14px/1.5 var(--body); }
.schedule-runway-day { border:1px solid var(--ink); background:var(--white); }
.schedule-runway-day + .schedule-runway-day { margin-top:18px; }
.schedule-runway-day > header { display:grid; grid-template-columns:minmax(180px,1fr) auto auto; gap:12px 24px; align-items:center; padding:14px 16px; background:var(--navy); color:var(--white); }
.schedule-runway-day > header span { color:#a9c8c8; font:800 10px/1 var(--utility); letter-spacing:.08em; text-transform:uppercase; }
.schedule-runway-day > header strong { font:800 18px/1 var(--body); }
.schedule-runway-day > header small { color:#d0dfdf; font:700 11px/1.3 var(--body); }
.schedule-runway-day ol { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; padding:0; list-style:none; }
.schedule-runway-day li { display:grid; grid-template-columns:108px minmax(0,1fr) auto; gap:12px; align-items:center; min-height:62px; padding:10px 16px; border-right:1px solid var(--soft-line); border-bottom:1px solid var(--soft-line); }
.schedule-runway-day li:nth-child(2n) { border-right:0; }
.schedule-runway-day time { color:var(--turf-dark); font:800 12px/1.3 var(--body); }
.schedule-runway-day li strong { font:850 18px/1.2 var(--body); }
.schedule-runway-day li strong span { color:var(--orange); }
.schedule-runway-day li small { color:var(--muted); font:700 11px/1.3 var(--body); text-align:right; }
.schedule-swipe-hint { color: var(--turf-dark); }
.schedule-week-nav { display: grid; grid-template-columns: 48px minmax(142px, auto) 48px; align-items: stretch; border: 1px solid var(--ink); background: var(--white); color: var(--turf-dark); font: 800 13px/1.2 var(--body); }
.schedule-week-nav button { min-width: 48px; min-height: 48px; border: 0; background: var(--white); color: var(--ink); cursor: pointer; font: 700 25px/1 var(--body); transition: background var(--motion-fast) ease, color var(--motion-fast) ease; }
.schedule-week-nav button:first-child { border-right: 1px solid var(--line); }
.schedule-week-nav button:last-child { border-left: 1px solid var(--line); }
.schedule-week-nav button:hover:not(:disabled) { background: #eef8f5; color: var(--turf-dark); }
.schedule-week-nav button:focus-visible { outline: 3px solid #075e76; outline-offset: -3px; }
.schedule-week-nav button:disabled { background: #f2f2ed; color: #a4aeab; cursor: not-allowed; }
.schedule-week-copy { display: grid; min-width: 0; place-content: center; gap: 2px; padding: 6px 14px; text-align: center; white-space: nowrap; }
.schedule-week-copy small { color: var(--muted); font: 800 9px/1 var(--utility); letter-spacing: .09em; text-transform: uppercase; }
.schedule-week-copy strong { color: var(--turf-dark); font: 850 15px/1.1 var(--body); }
.schedule-matrix-wrap {
  overflow: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--turf) #edf0ec;
  scrollbar-width: thin;
}
.schedule-matrix-wrap:focus-visible {
  outline: 3px solid #075e76;
  outline-offset: -3px;
}
.schedule-load-state {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 22px;
  border-bottom: 1px solid var(--soft-line);
  background: #f4faf8;
  color: var(--turf-dark);
  font: 700 10px/1.45 var(--utility);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.schedule-load-state[hidden] { display: none; }
.schedule-load-state::before {
  content: "";
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border: 3px solid #a9ddd0;
  border-top-color: var(--turf);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.schedule-load-state.is-error { background: #fff2ec; color: #a4452e; }
.schedule-load-state.is-error::before { border-color: #f2c1b4; border-top-color: #c44d33; animation: none; }
.rail-link.is-loading { position: relative; color: var(--turf); }
.rail-link.is-loading svg { opacity: .2; }
.rail-link.is-loading::after {
  content: "";
  position: absolute;
  top: 17px;
  width: 15px;
  height: 15px;
  border: 2px solid #91cdbd;
  border-top-color: var(--turf);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.schedule-matrix {
  width: max(100%, 1180px);
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.schedule-load-more {
  display: block;
  width: calc(100% - 44px);
  margin: 18px 22px;
  padding: 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 800 9px var(--utility);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.schedule-load-more[hidden] { display: none; }
.is-authoritative-schedule .schedule-matrix { width: 100%; min-width: 620px; }
.is-authoritative-schedule .schedule-matrix thead th:first-child,
.is-authoritative-schedule .schedule-matrix tbody th { width: 42%; }
.is-authoritative-schedule .schedule-matrix tbody td { width: auto; height: 64px; }
.is-authoritative-schedule .schedule-matrix tbody td > strong { margin: 0; }
.authoritative-schedule-kickoff { color: var(--muted); font: 700 9px/1.4 var(--utility); letter-spacing: .04em; }
.authoritative-schedule-status { display: inline-block; color: var(--turf-dark); font: 800 8px var(--utility); letter-spacing: .06em; }
.authoritative-schedule-status.is-locked { color: #a4452e; }
.schedule-matrix th,
.schedule-matrix td {
  border-right: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}
.schedule-matrix thead th {
  position: sticky;
  z-index: 3;
  top: 0;
  height: 44px;
  background: #f4f3ed;
  color: #3e555e;
  font: 800 13px/1.3 var(--body);
  text-align: center;
}
.schedule-matrix thead th:first-child {
  z-index: 5;
  left: 0;
  width: 290px;
  padding-left: 18px;
  text-align: left;
}
.schedule-matrix tbody th {
  position: sticky;
  z-index: 2;
  left: 0;
  width: 290px;
  height: 82px;
  padding: 0;
  background: var(--white);
  text-align: left;
}
.schedule-player-fixed {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
}
.schedule-matrix tr.is-spent th { background: #f1f2ef; }
.schedule-player-badge {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9e7df;
  color: var(--turf-dark);
  font: 800 11px/1 var(--body);
}
.schedule-player-copy { min-width: 0; }
.schedule-player-copy strong,
.schedule-player-copy small,
.schedule-player-copy b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-player-copy strong { font-size: 17px; line-height: 1.2; }
.schedule-player-copy small { margin-top: 4px; color: var(--muted); font: 600 13px/1.35 var(--body); }
.schedule-player-copy b { margin-top: 5px; color: var(--turf-dark); font: 800 13px/1.3 var(--body); }
.schedule-matrix tbody td {
  position: relative;
  width: 112px;
  height: 82px;
  padding: 15px 10px 11px;
  background: var(--white);
  text-align: center;
}
.schedule-matrix td > small { display: block; color: var(--muted); font: 700 13px/1.35 var(--body); }
.schedule-matrix td > strong {
  display: block;
  margin: 0 auto 7px;
  color: var(--ink);
  font: 800 18px/1.15 var(--body);
  letter-spacing: .01em;
}
.schedule-matrix .is-current-week {
  box-shadow: inset 0 3px 0 var(--orange);
}
.schedule-matrix tr.is-spent th,
.schedule-matrix tr.is-spent td { background: #f4f5f2; }
.schedule-matrix tr.is-spent .schedule-player-copy small {
  color: #704031;
  font-weight: 800;
}
.schedule-empty {
  height: 180px;
  color: var(--muted);
  text-align: center;
}
.schedule-board > footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: center;
  padding: 16px 20px;
  background: var(--navy);
  color: var(--white);
}
.schedule-board > footer strong { font: 800 14px/1.3 var(--body); }
.schedule-board > footer span { color: #d2e0e2; font-size: 14px; line-height: 1.4; }
.schedule-board > footer small { color: #b9cbd1; font: 600 12px/1.4 var(--body); }
.inline-current-stats {
  color: var(--turf-dark) !important;
  font-family: var(--body) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.3;
}
.inline-current-stats { display: block; margin-top: 5px; }
/* The roster card is a denser decision surface: matchup leads, observed stats
   remain secondary, and finalizing inherits the same sky/navy state treatment. */
.roster-slot .player-current-stats {
  color: #667881 !important;
  font-family: var(--utility) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1.3;
}
.roster-slot.is-locked.is-finalizing .player-current-stats { color: #1d6383 !important; }

/* Week 1 rehearsal control booth */
.simulator-view { padding-bottom: 60px; background: #e8e4da; }
.simulator-hero {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr);
  gap: clamp(30px, 7vw, 110px);
  align-items: end;
  padding: 50px clamp(22px, 6vw, 88px) 46px;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.simulator-hero h2 {
  margin: 12px 0 18px;
  font-family: var(--display);
  font-size: clamp(66px, 9vw, 128px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .72;
  text-transform: uppercase;
}
.simulator-hero h2 em { color: var(--orange); font-style: normal; }
.simulator-hero p { max-width: 640px; margin: 0; color: #bad0d6; font-size: 14px; }
.fixture-seal {
  position: relative;
  padding: 24px 0 5px 24px;
  border-left: 4px solid var(--orange);
}
.fixture-seal::before { content: "RECORDED"; position: absolute; right: 0; bottom: 4px; color: rgba(255,255,255,.055); font: 900 62px var(--display); }
.fixture-seal span, .fixture-seal small { display: block; font: 700 8px var(--utility); letter-spacing: .1em; }
.fixture-seal strong { display: block; margin: 4px 0 10px; color: var(--sky); font: 900 58px/.85 var(--display); }
.fixture-seal small { position: relative; color: #91abb4; line-height: 1.6; }
.weekend-drive {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0 clamp(22px, 6vw, 88px);
  background: var(--ink);
  color: #7f969f;
  list-style: none;
}
.weekend-drive::before { content: ""; position: absolute; top: 33px; right: clamp(22px, 6vw, 88px); left: clamp(22px, 6vw, 88px); height: 1px; background: #35505c; }
.weekend-drive li { position: relative; min-height: 103px; padding: 20px 18px 16px 0; }
.weekend-drive button { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.weekend-drive button:focus-visible { outline: 2px solid var(--sky); outline-offset: 7px; }
.weekend-drive button:disabled { cursor: not-allowed; opacity: .48; }
.weekend-drive li.is-active button, .weekend-drive li.is-complete button { opacity: 1; }
.weekend-drive li::before { content: ""; position: absolute; z-index: 1; top: 28px; right: 22px; width: 10px; height: 10px; border: 3px solid var(--ink); border-radius: 50%; background: #47616c; box-shadow: 0 0 0 1px #47616c; }
.weekend-drive span, .weekend-drive strong, .weekend-drive small { display: block; }
.weekend-drive span { margin-bottom: 14px; font: 700 7px var(--utility); letter-spacing: .08em; }
.weekend-drive strong { color: #bdd0d6; font-size: 11px; }
.weekend-drive small { margin-top: 3px; font-size: 8px; }
.weekend-drive li.is-active::before { background: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 0 0 6px rgba(240,100,59,.14); }
.weekend-drive li.is-active strong, .weekend-drive li.is-complete strong { color: var(--white); }
.weekend-drive li.is-active span { color: var(--orange); }
.weekend-drive li.is-complete::before { background: var(--turf); box-shadow: 0 0 0 1px var(--turf); }
.simulator-setup, .simulator-console { width: min(1320px, calc(100% - 44px)); margin: 34px auto 0; }
.simulator-console[hidden] { display: none; }
.simulator-team-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, .9fr) auto;
  gap: 30px;
  align-items: end;
  padding: 34px;
  background: var(--paper);
  border: 1px solid #cbc9c1;
  box-shadow: var(--shadow);
}
.simulator-team-form h3, .simulator-roster h3, .simulator-control h3, .simulator-ledger h3, .simulator-log h3 { margin: 4px 0 0; font-family: var(--display); font-size: 34px; line-height: 1; text-transform: uppercase; }
.simulator-team-form p { max-width: 480px; margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.simulator-team-form label > span { display: block; margin-bottom: 7px; font: 700 8px var(--utility); letter-spacing: .1em; }
.simulator-team-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); background: var(--white); }
.simulator-team-form .primary-button { min-width: 190px; }
.simulator-console { display: grid; grid-template-columns: 1fr; gap: 18px; }
.simulator-roster, .simulator-control, .simulator-ledger, .simulator-log { background: var(--paper); border: 1px solid #cbc9c1; }
.simulator-roster { padding: 26px; }
.simulator-roster > header, .simulator-log > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.simulator-pick-count { padding: 7px 9px; background: var(--ink); color: var(--white); font: 700 8px var(--utility); }
.simulator-readiness { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 12px; }
.simulator-readiness span { color: var(--muted); font: 700 8px var(--utility); }
.simulator-readiness span.is-ready { color: var(--turf-dark); }
.simulator-used-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.simulator-used-strip[hidden] { display: none; }
.simulator-used-strip > div { min-width: 190px; padding-right: 10px; }
.simulator-used-strip > div strong { display: block; margin-top: 4px; font-size: 9px; }
.simulator-used-player { min-width: max-content; display: grid; grid-template-columns: auto auto; gap: 1px 7px; align-items: center; padding: 8px 10px; border: 1px solid #e5c6bb; background: var(--orange-soft); color: var(--ink); font-size: 8px; font-weight: 700; }
.simulator-used-player i { grid-row: 1 / 3; color: var(--orange); font: normal 900 7px var(--utility); }
.simulator-used-player b { color: var(--muted); font: 700 6px var(--utility); }
.simulator-slots { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line); }
.simulator-slot { position: relative; min-width: 0; min-height: 92px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.simulator-slot.is-picked { box-shadow: inset 3px 0 0 var(--turf); }
.simulator-position { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e7eee9; color: var(--turf-dark); font: 900 10px var(--utility); }
.simulator-slot-copy { min-width: 0; }
.simulator-slot-copy strong, .simulator-slot-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.simulator-slot-copy strong { font-size: 11px; }
.simulator-slot-copy small { margin-top: 4px; color: var(--muted); font: 7px var(--utility); }
.simulator-slot select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.simulator-slot select:disabled { cursor: not-allowed; }
.simulator-slot:focus-within { z-index: 1; outline: 3px solid var(--sky); outline-offset: -3px; }
.simulator-source-note { margin: 16px 0 0; color: var(--muted); font: 7px/1.6 var(--utility); }
.simulator-control { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 24px; align-items: center; padding: 24px 26px; }
.simulator-control p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.simulator-advance { min-width: 220px; }
.simulator-ranks[hidden] { display: none; }
.simulator-reset { white-space: nowrap; }
.simulator-ledger { grid-column: 1 / -1; padding: 24px 26px; }
.simulator-ledger[hidden] { display: none; }
.simulator-ledger > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.simulator-ledger > header > strong { padding: 8px 10px; background: #e5f2ed; color: var(--turf-dark); font: 700 8px var(--utility); }
.simulator-ledger > header > strong.is-error { background: var(--orange-soft); color: var(--orange); }
.simulator-ledger-summary { display: flex; border-bottom: 1px solid var(--ink); }
.simulator-ledger-summary > div { min-width: 190px; padding: 14px 20px 14px 0; }
.simulator-ledger-summary span, .simulator-ledger-summary strong, .simulator-ledger-summary small { display: block; }
.simulator-ledger-summary span { color: var(--muted); font: 700 7px var(--utility); letter-spacing: .08em; }
.simulator-ledger-summary strong { margin: 2px 0; font: 900 30px var(--display); }
.simulator-ledger-summary small { color: var(--turf-dark); font: 700 6px var(--utility); }
.simulator-receipts { display: grid; grid-template-columns: repeat(auto-fit, minmax(390px, 1fr)); gap: 18px; margin-top: 18px; }
.simulator-field-audit { margin-top: 18px; border: 1px solid var(--line); background: var(--white); }
.simulator-field-audit[hidden] { display: none; }
.simulator-field-audit > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 13px; border-bottom: 1px solid var(--line); }
.simulator-field-audit h4 { margin: 4px 0 0; font: 900 18px/1 var(--display); text-transform: uppercase; }
.simulator-field-audit > header > small { color: var(--turf-dark); font: 700 7px var(--utility); letter-spacing: .08em; }
#simulator-field-scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.simulator-field-score { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; min-height: 62px; padding: 9px 12px; border-right: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
.simulator-field-score:nth-child(3n) { border-right: 0; }
.simulator-field-score:nth-last-child(-n + 3) { border-bottom: 0; }
.simulator-field-score.is-user { background: #f2f9f6; box-shadow: inset 3px 0 0 var(--turf); }
.simulator-field-score > span { color: var(--muted); font: 700 7px var(--utility); }
.simulator-field-score > strong { min-width: 0; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.simulator-field-score > strong small { display: block; margin-top: 2px; color: var(--muted); font: 6px var(--utility); }
.simulator-field-score > b { font: 900 15px var(--display); white-space: nowrap; }
.simulator-field-score > b small { font: 700 5px var(--utility); }
.simulator-field-score > em { grid-column: 2 / 3; color: var(--turf-dark); font: 700 6px var(--utility); font-style: normal; }
.simulator-field-score > i { grid-column: 3; color: var(--muted); font: 700 5px var(--utility); font-style: normal; text-align: right; }
.simulator-field-score.is-user > i { color: var(--turf-dark); }
.simulator-receipt-week { min-width: 0; border: 1px solid var(--line); background: var(--white); }
.simulator-receipt-week > header { display: flex; justify-content: space-between; padding: 11px 13px; background: var(--ink); color: var(--white); font: 700 7px var(--utility); letter-spacing: .08em; }
.simulator-receipt { min-height: 74px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--soft-line); }
.simulator-receipt:last-child { border-bottom: 0; }
.simulator-receipt-position { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #e7eee9; color: var(--turf-dark); font: 900 7px var(--utility); }
.simulator-receipt div { min-width: 0; }
.simulator-receipt div > strong, .simulator-receipt div > small, .simulator-receipt code { display: block; }
.simulator-receipt div > strong { font-size: 9px; }
.simulator-receipt div > small { margin: 3px 0 5px; overflow: hidden; color: var(--muted); font: 6px var(--utility); text-overflow: ellipsis; white-space: nowrap; }
.simulator-receipt code { color: var(--turf-dark); font: 700 6px var(--utility); }
.simulator-receipt > b { font: 900 20px var(--display); }
.simulator-receipt > b small { font: 700 6px var(--utility); }
.simulator-ledger > p { margin: 16px 0 0; color: var(--muted); font: 6.5px/1.6 var(--utility); }
.simulator-log { grid-column: 1 / -1; padding: 24px 26px; }
.simulator-log ol { margin: 0; padding: 0; list-style: none; }
.simulator-log li { display: grid; grid-template-columns: 35px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--soft-line); font-size: 10px; }
.simulator-log li span { color: var(--turf-dark); font: 700 8px var(--utility); }

@media (max-width: 980px) {
  .simulator-team-form { grid-template-columns: 1fr 1fr; }
  .simulator-team-form > div { grid-column: 1 / -1; }
  .simulator-console { grid-template-columns: 1fr; }
  .simulator-control, .simulator-ledger, .simulator-log { grid-column: 1; }
}

@media (max-width: 760px) {
  .elimination-huddle { grid-template-columns: 62px minmax(0, 1fr); gap: 13px; padding: 14px; }
  .elimination-football { width: 58px; height: 38px; box-shadow: 3px 3px 0 var(--ink); }
  .elimination-football::before { inset: 4px 26px; }
  .elimination-football i { top: 16px; left: 16px; width: 26px; }
  .elimination-football b { top: 9px; left: 28px; height: 17px; }
  .simulator-hero { min-height: 0; grid-template-columns: 1fr; gap: 28px; padding: 34px 18px 30px; }
  .simulator-hero h2 { font-size: 64px; }
  .fixture-seal { max-width: 300px; }
  .weekend-drive { overflow-x: auto; grid-template-columns: repeat(4, 145px); padding: 0 18px; }
  .weekend-drive::before { right: 18px; left: 18px; width: 560px; }
  .simulator-setup, .simulator-console { width: calc(100% - 20px); margin-top: 14px; }
  .simulator-team-form { grid-template-columns: 1fr; gap: 20px; padding: 22px 18px; }
  .simulator-team-form > div { grid-column: 1; }
  .simulator-team-form .primary-button { width: 100%; }
  .simulator-roster { padding: 19px 14px; }
  .simulator-slots { grid-template-columns: 1fr; }
  .simulator-control { grid-template-columns: 1fr; gap: 14px; padding: 20px 16px; }
  .simulator-advance { width: 100%; }
  .simulator-reset { justify-self: start; }
  .simulator-ledger { padding: 20px 14px; }
  .simulator-ledger > header { align-items: flex-start; flex-direction: column; }
  .simulator-ledger-summary { overflow-x: auto; }
  .simulator-receipts { grid-template-columns: 1fr; }
  #simulator-field-scores { grid-template-columns: 1fr 1fr; }
  .simulator-field-score:nth-child(3n) { border-right: 1px solid var(--soft-line); }
  .simulator-field-score:nth-child(2n) { border-right: 0; }
  .simulator-field-score:nth-last-child(-n + 3) { border-bottom: 1px solid var(--soft-line); }
  .simulator-field-score:nth-last-child(-n + 2) { border-bottom: 0; }
  .simulator-receipt { grid-template-columns: 28px minmax(0, 1fr) auto; padding-inline: 8px; }
  .simulator-receipt div > small { white-space: normal; }
  .simulator-receipt code { line-height: 1.45; }
  .simulator-log { padding: 20px 16px; }
}

@media (max-width: 900px) {
  .schedule-hero { grid-template-columns: 1fr; }
  .schedule-hero-rule { max-width: 520px; }
  .schedule-toolbar { align-items: stretch; flex-wrap: wrap; }
  .schedule-search { width: 100%; flex-basis: 100%; }
  .schedule-toolbar .sample-label { width: 100%; margin-left: 0; }
}

@media (max-width: 760px) {
  .schedule-hero {
    min-height: 0;
    gap: 20px;
    padding: 30px 18px 28px;
  }
  .schedule-hero h2 {
    margin-block: 10px 13px;
    font-size: 56px;
    line-height: .8;
  }
  .schedule-hero p { font-size: 12px; line-height: 1.45; }
  .schedule-hero-rule {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 5px 12px;
    padding: 13px 0 13px 15px;
  }
  .schedule-hero-rule strong { font-size: 68px; line-height: .72; }
  .schedule-hero-rule i { font-size: 8px; }
  .schedule-hero-rule > small { margin-top: 5px; }
  .schedule-toolbar { gap: 10px; padding: 16px 17px; }
  .schedule-week-nav { width: 100%; grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .schedule-position-filter {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    border: 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .schedule-position-filter::-webkit-scrollbar { display: none; }
  .schedule-position-filter button {
    position: relative;
    flex: 1 0 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 2px 8px;
    border: 0;
    background: transparent;
    color: var(--muted);
  }
  .schedule-position-filter button.is-active {
    background: transparent;
    color: var(--ink);
  }
  .schedule-position-filter button.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: var(--orange);
  }
  .schedule-eligible-toggle { min-height: 36px; }
  .schedule-toolbar .sample-label {
    width: auto;
    margin-left: auto;
    align-self: center;
  }
  .schedule-board { margin: 14px 10px 42px; }
  .schedule-board > header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 17px 12px 14px;
  }
  .schedule-board-eyebrow { font-size: 12px; }
  .schedule-board > header h3 { font-size: 32px; }
  .schedule-key { width: 100%; }
  .schedule-key { font-size: 12px; }
  .schedule-key span { flex: 0 0 auto; padding: 9px 10px; }
  .schedule-key .schedule-week-nav {
    flex: 1;
    min-width: 0;
  }
  .schedule-matrix-wrap {
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) #ebece7;
  }
  .schedule-matrix { width: 1098px; }
  .is-authoritative-schedule .schedule-matrix { width: 620px; min-width: 620px; }
  .schedule-matrix thead th:first-child,
  .schedule-matrix tbody th {
    width: 154px;
    box-shadow: 7px 0 12px rgba(11, 31, 42, .07);
  }
  .schedule-matrix thead th { height: 40px; font-size: 12px; }
  .schedule-matrix thead th:not(:first-child),
  .schedule-matrix tbody td {
    width: 86px;
    scroll-snap-align: start;
  }
  .schedule-matrix tbody th,
  .schedule-matrix tbody td { height: 76px; }
  .schedule-player-fixed {
    min-height: 76px;
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 9px;
  }
  .schedule-player-badge { display: none; }
  .schedule-player-copy strong { font-size: 15px; }
  .schedule-player-copy small { font-size: 12px; }
  .schedule-player-copy b { margin-top: 4px; font-size: 12px; }
  .schedule-matrix tbody td { padding: 12px 6px 9px; }
  .schedule-matrix td > strong { margin-bottom: 5px; font-size: 16px; }
  .schedule-matrix td > small { font-size: 12px; }
  .schedule-board > footer { grid-template-columns: 1fr; padding: 15px 14px; }
  .schedule-runway { padding: 0 12px 14px; }
  .schedule-runway-day > header { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 13px 14px; }
  .schedule-runway-day > header strong { font-size: 17px; }
  .schedule-runway-day ol { grid-template-columns: 1fr; }
  .schedule-runway-day li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time status" "match match"; gap: 5px 12px; min-height: 0; padding: 12px 14px; border-right: 0; }
  .schedule-runway-day li:nth-child(2n) { border-right: 0; }
  .schedule-runway-day time { grid-area: time; }
  .schedule-runway-day li strong { grid-area: match; min-width: 0; font-size: 17px; overflow-wrap: anywhere; }
  .schedule-runway-day li small { grid-area: status; max-width: 132px; overflow-wrap: anywhere; }
  /* This late mobile override must match the 78px ticker grid track after
     the desktop enhancement below raises label/game minimum widths. */
  .game-ticker .ticker-label { min-width: 78px; }
  .game-ticker .ticker-game { min-width: 0; padding-inline: 12px; }
}
/* Production live-score read model. Kept independent from the prototype shell. */
.live-score-page { min-height: 100vh; padding: clamp(24px, 5vw, 72px); background: #071f28; color: #f7f2e8; }
.live-score-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; max-width: 1100px; margin: 0 auto 28px; }
.live-score-header h1 { margin: 4px 0 8px; font-size: clamp(2rem, 5vw, 4rem); line-height: .98; letter-spacing: -.04em; }
.live-score-header p { max-width: 680px; color: #b7c9cc; }
.live-score-kicker { color: #e8bf56 !important; font-size: .75rem; font-weight: 800; letter-spacing: .16em; }
.live-score-connection { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 10px 14px; border: 1px solid #34545c; border-radius: 999px; text-transform: capitalize; font-size: .8rem; }
.live-score-connection span { width: 8px; height: 8px; border-radius: 50%; background: #e8bf56; }
.live-score-connection.is-live span { background: #61d49b; box-shadow: 0 0 0 5px rgba(97,212,155,.12); }
.live-score-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 1100px; margin: 0 auto 24px; }
.live-score-metrics div { padding: 16px; border: 1px solid #24464f; background: #0d2c36; }
.live-score-metrics span, .live-score-metrics strong { display: block; }
.live-score-metrics span { margin-bottom: 6px; color: #8eaaaf; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.live-score-teams { display: grid; gap: 18px; max-width: 1100px; margin: 0 auto; }
.live-score-team { overflow: hidden; border: 1px solid #31515a; background: #0b2933; }
.live-score-team > header { display: flex; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #31515a; background: #10333e; }
.live-score-team h2 { margin: 0; font-size: 1.05rem; }
.live-score-row { display: grid; grid-template-columns: 64px 1fr 84px; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #1f414a; }
.live-score-row:last-child { border-bottom: 0; }
.live-score-position { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d5a936; color: #f2ca61; font-weight: 900; }
.live-score-player strong, .live-score-player small, .live-score-player em { display: block; }
.live-score-player small { margin-top: 3px; color: #91aeb3; }
.live-score-player em { margin-top: 8px; color: #d2dddd; font-size: .78rem; font-style: normal; }
.live-score-points { text-align: right; }
.live-score-points strong { display: block; color: #f2ca61; font-size: 1.55rem; }
.live-score-points small { color: #91aeb3; font-size: .65rem; letter-spacing: .1em; }
.live-score-error, .live-score-empty { max-width: 1100px; margin: 24px auto; padding: 20px; border: 1px solid #6a4f3b; background: #35251d; }
@media (max-width: 700px) {
  .live-score-header { display: grid; }
  .live-score-metrics { grid-template-columns: 1fr; }
  .live-score-row { grid-template-columns: 48px 1fr 64px; gap: 10px; padding: 14px 12px; }
}
