:root {
  --ink: #161616;
  --muted: #5b6265;
  --paper: #f8faf8;
  --line: #d7ded8;
  --grass: #1f7a4d;
  --grass-strong: #0f5d38;
  --gold: #f0bf42;
  --red: #b82f32;
  --white: #ffffff;
  --charcoal: #262b28;
  --lion-navy: #030a24;
  --lion-navy-soft: #071437;
  --lion-gold: #f5bd21;
  --shadow: 0 18px 45px rgba(14, 27, 19, 0.16);
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 86px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 20px;
  background: rgba(248, 250, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.app-version {
  flex: 0 0 auto;
  border: 1px solid rgba(245, 189, 33, 0.28);
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(245, 189, 33, 0.12);
  color: var(--lion-gold);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.access-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(3, 10, 36, 0.12);
  border-radius: 8px;
  background: rgba(3, 10, 36, 0.06);
  color: var(--lion-navy);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.site-utility-bar {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 25;
}

.site-utility-bar .access-controls {
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(245, 189, 33, 0.18);
  border-radius: 8px;
  background: rgba(3, 10, 36, 0.92);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.site-utility-bar .access-badge {
  border-color: rgba(245, 189, 33, 0.18);
  background: rgba(245, 189, 33, 0.1);
  color: var(--lion-gold);
}

.site-utility-bar .secondary-action {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 10, 36, 0.62);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(100%, 440px);
  border: 1px solid rgba(245, 189, 33, 0.2);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(7, 20, 55, 0.98), rgba(3, 10, 36, 0.98));
  color: var(--white);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

.admin-auth-card {
  display: grid;
  gap: 14px;
}

.admin-auth-card .mini-head h3,
.admin-auth-card .player-meta,
.admin-auth-card label {
  color: var(--white);
}

.admin-auth-card input {
  width: 100%;
}

.mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 8px;
  background: var(--grass-strong);
  color: var(--white);
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.1;
}

h2 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.15;
}

h3 {
  margin: 0;
  font-size: 1rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tab,
.secondary-action,
.primary-action {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 9px 13px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.tab.is-active,
.primary-action {
  border-color: var(--grass-strong);
  background: var(--grass-strong);
  color: var(--white);
}

.secondary-action:hover,
.tab:hover {
  border-color: var(--grass);
}

main {
  display: grid;
  gap: 24px;
}

.scoreboard-band {
  position: relative;
  min-height: 178px;
  isolation: isolate;
  overflow: hidden;
  background: var(--charcoal);
}

.field-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
}

.scoreboard-band::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(16, 26, 20, 0.86), rgba(16, 26, 20, 0.34));
}

.game-glass {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  width: min(1380px, calc(100% - 32px));
  min-height: 150px;
  margin: 0 auto;
  padding: 18px 0;
  color: var(--white);
}

.game-glass h2 {
  font-size: 1.7rem;
}

.game-glass p {
  margin: 8px 0 0;
  color: #edf5ee;
}

.scoreline {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 8px;
}

.scoreline div {
  min-width: 100px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.scoreline span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.scoreline strong {
  display: block;
  font-size: 1.85rem;
  line-height: 1;
}

.diamond {
  position: relative;
  width: 92px;
  height: 92px;
  transform: rotate(45deg);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.base,
.plate {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--white);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}

.base.is-filled {
  background: var(--gold);
  border-color: var(--gold);
}

.first {
  right: -11px;
  top: calc(50% - 10px);
}

.second {
  left: calc(50% - 10px);
  top: -11px;
}

.third {
  left: -11px;
  top: calc(50% - 10px);
}

.plate {
  left: calc(50% - 10px);
  bottom: -11px;
  background: var(--white);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.home-panel,
.score-status-card,
.scorebook-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.home-panel {
  padding: 14px;
  min-height: 100%;
}

.home-hero-panel {
  display: grid;
  gap: 18px;
  min-height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f4 64%, #fff7de 100%);
}

.home-field-image {
  width: 100%;
  height: 142px;
  border-radius: 8px;
  object-fit: cover;
}

.home-record {
  font-size: 2rem;
}

.home-next-game {
  display: grid;
  gap: 8px;
}

.compact-leaders {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 10px 0 0;
  align-items: stretch;
}

.home-upcoming-panel,
.home-past-panel {
  grid-column: 1 / -1;
}

.upcoming-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.upcoming-game-card {
  display: grid;
  grid-template-columns: minmax(130px, 0.46fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.upcoming-game-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  object-fit: cover;
}

.upcoming-game-card h4 {
  margin: 2px 0 4px;
  font-size: 1.05rem;
}

.result-score {
  display: block;
  margin: 4px 0;
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 900;
}

.result-score.is-win {
  color: #55d987;
}

.result-score.is-loss {
  color: #ff6b6b;
}

.result-score.is-tie {
  color: var(--lion-gold);
}

.upcoming-scout-button {
  width: fit-content;
  margin-top: 8px;
}

.upcoming-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  font-weight: 800;
}

.score-status-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(110px, auto) minmax(88px, auto) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 14px 16px;
}

.score-status-card h3,
.home-next-game h3 {
  font-size: 1.22rem;
}

.game-state-focus {
  min-width: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7faf7;
}

.game-state-focus span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-state-focus strong {
  display: block;
  margin-top: 3px;
  color: var(--grass-strong);
  font-size: 1.55rem;
  line-height: 1;
}

.game-state-context {
  grid-column: 1 / -1;
  margin: -4px 0 0;
}

.clean-scoreline div {
  border-color: var(--line);
  background: #f7faf7;
  color: var(--ink);
}

.clean-scoreline span {
  color: var(--muted);
}

.view {
  display: none;
  width: min(1380px, calc(100% - 28px));
  margin: 0 auto 28px;
}

.view.is-visible {
  display: block;
}

.section-head,
.mini-head,
.player-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-head {
  margin-bottom: 12px;
}

.score-grid,
.lab-grid,
.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(280px, 0.75fr);
  gap: 14px;
  align-items: start;
}

#scoreView .score-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.32fr);
}

.score-form,
.pitch-panel,
.spray-panel,
.runner-panel,
.play-panel,
.optimizer-board,
.coach-card,
.player-form,
.game-form,
.player-card,
.game-card,
.archive-card,
.metric-card,
.tracking-list,
.value-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.score-form {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: minmax(220px, 1.4fr) 90px 90px minmax(220px, 1.2fr);
  grid-area: form;
  gap: 9px;
  padding: 12px;
  align-items: center;
}

.sync-status-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 26px;
}

.game-sync-meta {
  border: 1px solid rgba(245, 189, 33, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(245, 189, 33, 0.06);
}

#scoreView .score-form {
  justify-content: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#scoreView .auto-score {
  width: min(540px, 100%);
  background: rgba(255, 255, 255, 0.9);
}

.game-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(240px, 1fr);
  gap: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

#gamesView .game-form[hidden] {
  display: none;
}

#gamesView .game-form {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
}

#gamesView .game-form label:nth-of-type(1),
#gamesView .game-form label:nth-of-type(2),
#gamesView .game-form label:nth-of-type(5) {
  grid-column: span 2;
}

#gamesView .game-form label:nth-of-type(3),
#gamesView .game-form label:nth-of-type(4) {
  grid-column: span 1;
}

.game-form-actions {
  align-items: center;
}

.team-side-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7faf7;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.team-side-card strong {
  color: var(--ink);
}

.game-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.game-filter-row .is-active {
  border-color: rgba(245, 189, 33, 0.72);
  background: linear-gradient(180deg, var(--lion-gold), #c98b13);
  color: var(--lion-navy);
}

.lineup-builder {
  display: none;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.lineup-builder.is-visible {
  display: grid;
}

.lineup-builder-rows {
  display: grid;
  gap: 8px;
}

.lineup-builder-row {
  display: grid;
  grid-template-columns: 48px minmax(180px, 1fr) 110px auto;
  gap: 8px;
  align-items: end;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.lineup-order {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--grass-strong);
  color: var(--white);
  font-weight: 900;
}

.scorer-stack {
  display: grid;
  position: relative;
  grid-template-columns: 1fr;
  grid-template-areas:
    "field"
    "form";
  gap: 12px;
}

.pitch-panel,
.spray-panel,
.runner-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.pitch-panel {
  grid-area: field;
  position: relative;
  z-index: 4;
  align-self: start;
  justify-self: center;
  width: min(1040px, calc(100% - 24px));
  min-height: 0;
  margin-top: 8px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(14px);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.pitch-panel.is-outcome {
  border-color: transparent;
  background: transparent;
}

.ab-face {
  grid-area: 1 / 1;
  display: grid;
  gap: 10px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.batter-face {
  grid-template-columns: minmax(0, 1fr);
}

.batter-face .mini-head,
.opponent-face .mini-head {
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 32px rgba(14, 27, 19, 0.18);
  backdrop-filter: blur(12px);
}

.outcome-face,
.opponent-face {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.pitch-panel.is-outcome .batter-face,
.pitch-panel.is-opponent .batter-face,
.pitch-panel.is-opponent .outcome-face {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

.pitch-panel.is-outcome .outcome-face {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pitch-panel.is-opponent .opponent-face {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pitch-panel.is-opponent {
  border-color: transparent;
  background: transparent;
}

.spray-panel {
  grid-area: field;
  position: relative;
  min-height: 720px;
  padding: 0;
  overflow: hidden;
}

.runner-panel {
  grid-area: field;
  z-index: 3;
  align-self: stretch;
  justify-self: center;
  width: min(920px, calc(100% - 24px));
  margin-bottom: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.scorer-stack.is-defense {
  grid-template-areas:
    "field"
    "form";
}

.count-display {
  display: grid;
  min-width: 64px;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--grass-strong);
  border-radius: 8px;
  background: #edf8f0;
  color: var(--grass-strong);
  font-size: 1.12rem;
  font-weight: 900;
}

.count-pair {
  display: flex;
  gap: 8px;
}

.pitcher-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.2fr);
  gap: 10px;
  align-items: end;
}

.pitcher-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.pitcher-stat-strip span {
  min-height: 46px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.pitcher-stat-strip strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.batter-summary {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  min-height: 52px;
}

.summary-chip {
  display: grid;
  align-content: center;
  min-height: 48px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.summary-chip strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.pitch-buttons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-self: end;
  width: min(720px, calc(100% - 24px));
  margin: 430px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 36px rgba(14, 27, 19, 0.2);
  backdrop-filter: blur(14px);
}

.pitch-btn {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  padding: 9px 8px;
  background: #f2f5f2;
  color: var(--ink);
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08), 0 10px 22px rgba(14, 27, 19, 0.12);
}

.pitch-btn.ball {
  background: linear-gradient(180deg, #eef9f1, #ccebd7);
  color: #115a37;
}

.pitch-btn.strike {
  background: linear-gradient(180deg, #fff2f2, #f3c5c6);
  color: #8e2225;
}

.pitch-btn.foul {
  background: linear-gradient(180deg, #fff8df, #f5dc91);
  color: #715014;
}

.pitch-btn.in-play {
  background: linear-gradient(180deg, #eef8fb, #c5e4ee);
  color: #1b6078;
}

.pitch-btn.hbp {
  background: linear-gradient(180deg, #f7f3ff, #d9d0f0);
  color: #413467;
}

.opponent-outcomes {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.opponent-outs {
  border-color: var(--red);
  background: #fff1f1;
  color: var(--red);
}

.auto-score {
  min-height: 40px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fbfdfb;
  color: var(--muted);
  font-weight: 800;
}

.score-form.is-defense label,
.score-form.is-defense .quick-outcomes,
.score-form.is-defense .auto-score,
.score-form.is-defense .bip-panel,
.score-form.is-defense button[type="submit"],
.score-form.is-defense #undoBtn {
  display: none;
}

.score-form.is-defense {
  grid-template-columns: 1fr;
}

.spray-panel.is-defense {
  opacity: 0.4;
}

.button-group {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.outcome-face {
  align-self: end;
  width: min(780px, calc(100% - 24px));
  margin: 328px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(14, 27, 19, 0.22);
  backdrop-filter: blur(14px);
}

.quick-outcomes {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(92px, 1fr));
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.quick-outcomes > span,
.button-group > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.quick-outcomes > span {
  grid-column: auto;
}

.bip-panel {
  display: grid;
  gap: 8px;
  padding: 0;
}

.launch-detail-group,
.score-form label:first-child,
.score-form .quick-outcomes {
  display: none;
}

.compact-action {
  min-height: 34px;
  padding: 6px 10px;
}

.compact-group {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.choice-btn {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.choice-btn.is-selected {
  border-color: var(--grass-strong);
  background: var(--grass-strong);
  color: var(--white);
}

.danger-action {
  border-color: rgba(184, 47, 50, 0.45);
  color: var(--red);
}

.pitch-trail {
  display: none;
  min-height: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.pitch-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 8px;
  padding: 4px 8px;
  background: #f1f4f1;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.pitch-chip.ball {
  background: #dcf2e4;
  color: #115a37;
}

.pitch-chip.strike {
  background: #fde1e1;
  color: #8e2225;
}

.pitch-chip.foul {
  background: #fff0c8;
  color: #715014;
}

.pitch-chip.in_play {
  background: #dff1f6;
  color: #1b6078;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  resize: vertical;
  line-height: 1.35;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(240, 191, 66, 0.45);
  outline-offset: 2px;
}

.wide {
  grid-column: 1 / -1;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#scoreView .button-row.wide {
  justify-content: center;
}

.play-panel,
.optimizer-board,
.coach-card,
.tracking-list,
.value-board {
  padding: 12px;
}

.play-panel {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 106px);
  overflow: hidden;
}

.lineup-list,
.optimized-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 14px;
  padding-left: 24px;
}

.lineup-list li,
.optimized-list li {
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.lineup-list .is-current {
  border-color: var(--grass);
  background: #edf8f0;
}

.sub-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.sub-panel.is-hidden {
  display: none;
}

.player-meta,
.play-meta,
.archive-meta,
.small-copy {
  color: var(--muted);
  font-size: 0.86rem;
}

.play-feed {
  display: grid;
  gap: 7px;
  max-height: 300px;
  overflow: auto;
}

.play-item {
  padding: 8px;
  border-left: 4px solid var(--grass);
  background: #f4f8f4;
}

.spray-panel .mini-head {
  position: absolute;
  left: 50%;
  right: auto;
  top: 86px;
  z-index: 2;
  width: min(560px, calc(100% - 24px));
  align-items: center;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(12, 45, 28, 0.72);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.spray-panel .mini-head .player-meta,
.spray-panel .mini-head h3 {
  color: var(--white);
}

.spray-panel select {
  max-width: 170px;
}

.spray-chart {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border: 2px solid #2f734d;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 96%, #c99045 0 6%, transparent 6.2%),
    radial-gradient(circle at 50% 74%, rgba(201, 144, 69, 0.95) 0 11%, transparent 11.3%),
    radial-gradient(circle at 50% 100%, #3e9c61 0 42%, #2f8d59 42.4% 66%, #28784d 66.4% 100%);
}

#scoreView .spray-chart {
  border-width: 0;
}

.fence-line {
  position: absolute;
  left: 5%;
  top: 5%;
  width: 90%;
  height: 78%;
  border: 5px solid rgba(255, 255, 255, 0.82);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  box-shadow: 0 3px 0 rgba(15, 93, 56, 0.36);
}

.spray-chart::before {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 18px;
  height: 18px;
  content: "";
  transform: translateX(-50%) rotate(45deg);
  border: 2px solid var(--white);
  border-radius: 3px;
  background: var(--white);
}

.foul-line {
  position: absolute;
  bottom: 9%;
  left: 50%;
  width: 2px;
  height: 84%;
  transform-origin: bottom center;
  background: rgba(255, 255, 255, 0.72);
}

.left-line {
  transform: rotate(-43deg);
}

.right-line {
  transform: rotate(43deg);
}

.infield-arc,
.outfield-arc {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.infield-arc {
  bottom: 20%;
  width: 44%;
  height: 28%;
}

.outfield-arc {
  bottom: 28%;
  width: 86%;
  height: 58%;
}

.spray-label {
  position: absolute;
  min-width: 34px;
  border-radius: 8px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--grass-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

.spray-base {
  position: absolute;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  transform: rotate(45deg);
  border: 2px solid var(--white);
  border-radius: 4px;
  background: #f7f7f1;
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 900;
  z-index: 1;
}

.spray-first-base {
  right: 34%;
  bottom: 26%;
}

.spray-second-base {
  left: calc(50% - 14px);
  bottom: 44%;
}

.spray-third-base {
  left: 34%;
  bottom: 26%;
}

.fielder-icon {
  position: absolute;
  display: grid;
  min-width: 28px;
  min-height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: rgba(22, 22, 22, 0.5);
  color: var(--white);
  font-size: 0.64rem;
  font-weight: 900;
  z-index: 1;
}

.fielder-p {
  left: calc(50% - 14px);
  bottom: 31%;
}

.fielder-c {
  left: calc(50% - 14px);
  bottom: 10%;
}

.fielder-1b {
  right: 23%;
  bottom: 34%;
}

.fielder-2b {
  right: 36%;
  bottom: 48%;
}

.fielder-ss {
  left: 36%;
  bottom: 48%;
}

.fielder-3b {
  left: 23%;
  bottom: 34%;
}

.fielder-lf {
  left: 18%;
  top: 28%;
}

.fielder-cf {
  left: calc(50% - 14px);
  top: 16%;
}

.fielder-rf {
  right: 18%;
  top: 28%;
}

.left-field {
  left: 12%;
  top: 28%;
  display: none;
}

.center-field {
  left: calc(50% - 17px);
  top: 8%;
  display: none;
}

.right-field {
  right: 12%;
  top: 28%;
  display: none;
}

.plate-label {
  left: calc(50% - 17px);
  bottom: 3%;
}

.spray-markers {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.spray-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-weight: 800;
}

.spray-dot {
  position: absolute;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.spray-dot.hit {
  background: var(--grass-strong);
}

.spray-dot.out {
  background: var(--red);
}

.spray-dot.pending {
  width: 24px;
  height: 24px;
  background: var(--gold);
  color: var(--ink);
}

.base-tracker {
  position: relative;
  min-height: 252px;
  aspect-ratio: 1 / 0.82;
  overflow: hidden;
  border: 2px solid #2f734d;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.6) 48.4% 49%, transparent 49.4%),
    linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.6) 48.4% 49%, transparent 49.4%),
    radial-gradient(circle at 50% 78%, #c99045 0 14%, transparent 14.4%),
    #2f8d59;
}

#scoreView .base-tracker {
  position: absolute;
  inset: 0;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
  background: transparent;
  pointer-events: none;
}

#scoreView .runner-panel .mini-head {
  position: absolute;
  left: 50%;
  bottom: 170px;
  width: min(420px, calc(100% - 24px));
  transform: translateX(-50%);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(14, 27, 19, 0.16);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

#scoreView .steal-grid {
  position: absolute;
  left: 50%;
  bottom: 74px;
  width: min(720px, calc(100% - 24px));
  grid-template-columns: repeat(6, minmax(0, 1fr));
  transform: translateX(-50%);
  pointer-events: auto;
}

#scoreView .runner-play-grid {
  position: absolute;
  left: 50%;
  bottom: 118px;
  width: min(720px, calc(100% - 24px));
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  pointer-events: auto;
}

#scoreView .runner-first {
  right: 33%;
  bottom: 26%;
}

#scoreView .runner-second {
  left: calc(50% - 37px);
  top: 42%;
}

#scoreView .runner-third {
  left: 33%;
  bottom: 26%;
}

#scoreView .runner-plate {
  left: calc(50% - 37px);
  bottom: 9%;
}

.runner-base,
.runner-plate {
  position: absolute;
  display: grid;
  width: 74px;
  min-height: 62px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--grass-strong);
  text-align: center;
  font-weight: 900;
  pointer-events: auto;
}

.runner-base span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.runner-base.is-occupied {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.runner-base.is-occupied span {
  color: var(--ink);
}

.runner-base.is-pending-out {
  border-color: var(--red);
  background: #fff1f1;
  color: var(--red);
}

.runner-first {
  right: 10%;
  bottom: 29%;
}

.runner-second {
  left: calc(50% - 37px);
  top: 12%;
}

.runner-third {
  left: 10%;
  bottom: 29%;
}

.runner-plate {
  left: calc(50% - 37px);
  bottom: 8%;
  min-height: 48px;
  background: var(--white);
}

.steal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.runner-play-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.runner-play-grid.is-visible {
  display: grid;
}

.runner-play-grid > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.runner-play-grid .is-selected {
  border-color: var(--red);
  background: #fff1f1;
  color: var(--red);
}

.steal-grid button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.games-grid.is-grouped {
  grid-template-columns: 1fr;
  gap: 18px;
}

.game-order-section {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.game-order-section.is-live {
  border-color: rgba(77, 214, 141, 0.38);
  background: linear-gradient(180deg, rgba(77, 214, 141, 0.1), rgba(255, 255, 255, 0.035));
}

.game-order-section.is-completed {
  opacity: 0.92;
}

.game-order-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.game-order-head h3 {
  margin: 2px 0 0;
  color: var(--white);
}

.game-order-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.game-order-section.is-live .game-order-grid {
  grid-template-columns: 1fr;
}

.game-order-empty {
  margin: 0;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .game-order-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-order-grid {
    grid-template-columns: 1fr;
  }
}

.record-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.game-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

#gamesView .game-card {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
}

#gamesView .game-card.is-active {
  border-color: rgba(77, 214, 141, 0.68);
  box-shadow:
    0 0 0 1px rgba(77, 214, 141, 0.16),
    0 20px 52px rgba(0, 0, 0, 0.3);
}

#gamesView .game-card.is-future {
  opacity: 1;
}

#gamesView .game-card.is-completed {
  opacity: 0.74;
}

.game-status-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

#gamesView .game-card.is-active .game-status-tag {
  border-color: rgba(77, 214, 141, 0.5);
  background: rgba(77, 214, 141, 0.16);
  color: #86efac;
}

#gamesView .game-card.is-completed .game-status-tag {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.62);
}

.game-card-matchup {
  width: 104px;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  object-fit: cover;
}

#gamesView .game-card .archive-meta,
#gamesView .game-card .game-actions {
  grid-column: 1 / -1;
}

.games-archive-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 850;
}

.game-card.is-active {
  border-color: var(--grass);
  background: #edf8f0;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}

.game-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.coach-card {
  display: grid;
  gap: 14px;
}

.full {
  width: 100%;
}

.player-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 80px minmax(180px, 1fr) 90px auto;
  gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.roster-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.roster-toolbar label {
  max-width: 240px;
}

.roster-grid,
.archive-grid,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.roster-grid {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 18px;
}

.game-order-section {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.game-order-section.is-live {
  border-color: rgba(77, 214, 141, 0.38);
  background: linear-gradient(180deg, rgba(77, 214, 141, 0.1), rgba(255, 255, 255, 0.035));
}

.game-order-section.is-completed {
  opacity: 0.92;
}

.game-order-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.game-order-head h3 {
  margin: 2px 0 0;
  color: var(--white);
}

.game-order-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.game-order-section.is-live .game-order-grid {
  grid-template-columns: 1fr;
}

.game-order-empty {
  margin: 0;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .game-order-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-order-grid {
    grid-template-columns: 1fr;
  }
}

.record-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.game-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

#gamesView .game-card {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
}

#gamesView .game-card.is-active {
  border-color: rgba(77, 214, 141, 0.68);
  box-shadow:
    0 0 0 1px rgba(77, 214, 141, 0.16),
    0 20px 52px rgba(0, 0, 0, 0.3);
}

#gamesView .game-card.is-future {
  opacity: 1;
}

#gamesView .game-card.is-completed {
  opacity: 0.74;
}

.game-status-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

#gamesView .game-card.is-active .game-status-tag {
  border-color: rgba(77, 214, 141, 0.5);
  background: rgba(77, 214, 141, 0.16);
  color: #86efac;
}

#gamesView .game-card.is-completed .game-status-tag {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.62);
}

.game-card-matchup {
  width: 104px;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  object-fit: cover;
}

#gamesView .game-card .archive-meta,
#gamesView .game-card .game-actions {
  grid-column: 1 / -1;
}

.games-archive-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 850;
}

.game-card.is-active {
  border-color: var(--grass);
  background: #edf8f0;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}

.game-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.coach-card {
  display: grid;
  gap: 14px;
}

.full {
  width: 100%;
}

.player-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 80px minmax(180px, 1fr) 90px auto;
  gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.roster-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.roster-toolbar label {
  max-width: 240px;
}

.roster-grid,
.archive-grid,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.roster-grid {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 18px;
}

.player-card {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(245, 189, 33, 0.36);
  border-radius: 8px;
  padding: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(245, 189, 33, 0.22), transparent 30%),
    linear-gradient(145deg, var(--lion-navy) 0%, var(--lion-navy-soft) 62%, #010512 100%);
  box-shadow: 0 20px 42px rgba(3, 10, 36, 0.24);
  color: var(--white);
}

.player-card-logo {
  position: absolute;
  right: -44px;
  bottom: -38px;
  z-index: 0;
  width: min(78%, 360px);
  aspect-ratio: 1;
  background: url("./lions-logo.png") center / contain no-repeat;
  opacity: 0.08;
  transform: rotate(-6deg);
}

.player-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 10, 36, 0.16), rgba(3, 10, 36, 0.72)),
    linear-gradient(90deg, rgba(3, 10, 36, 0.9), rgba(3, 10, 36, 0.44));
}

.player-card-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  padding: 18px;
  min-width: 0;
}

.player-card .player-topline {
  align-items: flex-start;
  gap: 12px;
}

.player-card .player-topline > div,
.player-card label,
.player-card input,
.player-card .stat-strip span {
  min-width: 0;
}

.number-pill {
  display: inline-grid;
  min-width: 52px;
  min-height: 38px;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--lion-gold), #cf9213);
  color: var(--lion-navy);
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.player-card h3 {
  color: var(--white);
  font-size: 1.26rem;
  line-height: 1.1;
}

.player-card .player-topline p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.active-toggle {
  flex: 0 0 78px;
  min-width: 78px;
  justify-items: center;
  align-self: start;
  border: 1px solid rgba(245, 189, 33, 0.34);
  border-radius: 8px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.active-toggle input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--lion-gold);
}

.player-edit-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 92px;
  gap: 10px;
}

.player-card .player-edit-row {
  grid-template-columns: minmax(0, 1fr) minmax(76px, 0.38fr);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.player-card label {
  color: rgba(255, 255, 255, 0.74);
}

.player-card input:not([type="range"]):not([type="checkbox"]) {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--lion-navy);
  font-weight: 800;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat-strip span,
.metric-card {
  min-height: 70px;
  padding: 12px;
}

.stat-strip span {
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.player-card .stat-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.player-card .stat-strip span {
  min-height: 78px;
  padding: 10px;
  border-color: rgba(245, 189, 33, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)),
    rgba(3, 10, 36, 0.36);
  color: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.stat-strip strong,
.metric-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
}

.player-card .stat-strip strong {
  margin-top: 4px;
  color: var(--white);
  font-size: 1.22rem;
  letter-spacing: 0;
}

.grade-row {
  display: grid;
  gap: 10px;
}

.player-card .grade-row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2px;
}

.player-card .grade-row label {
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.player-card input[type="range"] {
  width: 100%;
  max-width: 100%;
  min-height: 24px;
  padding: 0;
  accent-color: var(--lion-gold);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.player-card input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.player-card input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -6px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--lion-gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
  appearance: none;
  -webkit-appearance: none;
}

.player-card input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.player-card input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--lion-gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
}

.search-box {
  max-width: 360px;
}

.archive-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.archive-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
}

.metrics-grid {
  margin-bottom: 18px;
}

.value-board {
  display: grid;
  gap: 10px;
}

.value-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.bar-track {
  height: 10px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 8px;
  background: #e6ece7;
}

.bar-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--grass));
}

.tracking-list {
  display: grid;
  gap: 10px;
}

.tracking-list p {
  margin: 0;
}

.opponent-lineup-editor {
  margin: 0 0 14px;
}

.opponent-lineup-editor textarea {
  min-height: 108px;
}

.stats-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.stats-subhead {
  padding: 14px 14px 4px;
}

.stats-spray-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  padding: 0 14px 12px;
}

.stats-spray-panel {
  display: none;
}

.stats-spray-panel.is-visible {
  display: block;
}

.stats-spray-shell {
  background: #fbfdfb;
}

.stats-spray-chart {
  max-width: 680px;
  min-height: 330px;
  margin: 0 auto 14px;
}

.stats-spray-chart .fielder-icon {
  opacity: 0.72;
  transform: scale(0.88);
}

.stats-table th button {
  min-height: 30px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-weight: 900;
}

.stats-table th button::after {
  content: " △▽";
  color: #96a19a;
  font-size: 0.68rem;
}

.stats-table th button.is-sorted[data-direction="asc"]::after {
  content: " ▲";
  color: var(--grass-strong);
}

.stats-table th button.is-sorted[data-direction="desc"]::after {
  content: " ▼";
  color: var(--grass-strong);
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.leader-card {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
  min-height: 164px;
  height: 100%;
}

.leader-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.leader-row strong {
  color: var(--ink);
}

.game-breakdown {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.breakdown-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfb;
}

.box-score-card {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.box-score-summary {
  padding: 16px;
}

.box-score-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.box-score-team-summary {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.box-score-team-summary strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.box-score-team-summary span:last-child,
.box-score-final span,
.box-score-table td span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.box-score-abbrev {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--lion-navy);
  color: var(--lion-gold);
  font-weight: 950;
  letter-spacing: 0;
}

.box-score-final {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 92px;
}

.box-score-final strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.box-score-table-wrap {
  overflow: auto;
}

.box-score-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.box-score-table th,
.box-score-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: right;
  white-space: nowrap;
}

.box-score-table th:first-child,
.box-score-table td:first-child {
  text-align: left;
}

.box-score-table thead th {
  background: #f4f8f4;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.box-score-table tbody th {
  color: var(--ink);
}

.box-score-table tbody tr:last-child th,
.box-score-table tbody tr:last-child td {
  border-bottom: 0;
}

.line-score-table {
  min-width: 760px;
}

.box-score-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.box-score-tabs button {
  min-height: 48px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 950;
}

.box-score-tabs button:last-child {
  border-right: 0;
}

.box-score-tabs button.is-active {
  background: var(--lion-gold);
  color: var(--lion-navy);
}

.box-score-empty {
  color: var(--muted);
  text-align: center !important;
}

.scorebook-layout {
  display: grid;
  gap: 16px;
}

.scorebook-panel {
  overflow: hidden;
}

.scorebook-panel .mini-head {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.scorebook-table-wrap {
  overflow: auto;
}

.scorebook-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.scorebook-table th,
.scorebook-table td {
  min-width: 136px;
  height: 142px;
  border: 1px solid var(--line);
  padding: 7px;
  vertical-align: top;
}

.scorebook-table thead th {
  height: auto;
  background: #f4f8f4;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.scorebook-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 190px;
  background: var(--white);
  text-align: left;
}

.scorebook-table tbody th span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.scorebook-cell {
  display: grid;
  gap: 5px;
  min-height: 124px;
  border-radius: 8px;
  padding: 7px;
  background: #fbfdfb;
  color: #172033;
}

.scorebook-diamond {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 2px auto 0;
}

.scorebook-diamond::before {
  position: absolute;
  inset: 10px;
  content: "";
  border: 1px dashed #aab5ae;
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.6);
}

.scorebook-diamond.is-run::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 2px solid var(--red);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.scorebook-diamond strong {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  min-width: 36px;
  color: #172033;
  text-align: center;
  transform: translate(-50%, -50%);
  font-size: 0.94rem;
}

.scorebook-diamond small {
  position: absolute;
  right: -8px;
  bottom: -3px;
  z-index: 2;
  color: #334155;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scorebook-diamond .path {
  position: absolute;
  z-index: 1;
  height: 4px;
  width: 30px;
  border-radius: 999px;
  background: #d6ddd8;
  transform-origin: center;
}

.scorebook-diamond .path.is-active {
  background: var(--grass-strong);
}

.scorebook-diamond .hp-1 {
  right: 12px;
  bottom: 18px;
  transform: rotate(-45deg);
}

.scorebook-diamond .one-2 {
  right: 12px;
  top: 18px;
  transform: rotate(45deg);
}

.scorebook-diamond .two-3 {
  left: 12px;
  top: 18px;
  transform: rotate(-45deg);
}

.scorebook-diamond .three-h {
  left: 12px;
  bottom: 18px;
  transform: rotate(45deg);
}

.scorebook-cell span,
.scorebook-cell em,
.scorebook-empty {
  color: #334155;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 750;
}

.scorebook-cell.is-hit {
  background: #fff7de;
}

.scorebook-cell.is-out {
  background: #f8eded;
}

.scorebook-cell.is-reach {
  background: #edf7f0;
}

.scorebook-game-picker {
  min-width: 260px;
}

.scorebook-meta {
  margin: -4px 0 12px;
}

.scouting-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.scouting-actions a {
  text-decoration: none;
}

.scouting-controls {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(260px, 1fr);
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.scout-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.scouting-report,
.scouting-grid {
  display: grid;
  gap: 14px;
}

.scouting-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scouting-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.scouting-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f4 62%, #fff7de 100%);
}

.scout-link {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--white);
  color: var(--grass-strong);
  font-size: 0.85rem;
  font-weight: 900;
  text-decoration: none;
}

.scout-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.scout-metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.scout-metric span,
.scout-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.scout-metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1.16rem;
}

.scout-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.scout-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(42px, auto) minmax(48px, auto) minmax(72px, auto);
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fbfdfb;
}

.scout-row strong {
  overflow-wrap: anywhere;
}

.scout-row-muted {
  background: #f7f8f7;
  opacity: 0.78;
}

.scout-value {
  color: var(--grass-strong) !important;
  font-weight: 900 !important;
  text-align: right;
}

.scout-plan {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding-left: 18px;
}

.scout-plan li {
  color: var(--charcoal);
  line-height: 1.4;
}

.stats-spray-chart {
  max-width: 680px;
  min-height: 330px;
  margin: 0 auto 14px;
}

.stats-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.stats-table th,
.stats-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.stats-table th:first-child,
.stats-table td:first-child {
  text-align: left;
}

.stats-table th {
  background: #f4f8f4;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.stats-table tbody tr:hover {
  background: #fbfdfb;
}

#scoreView .pitch-panel {
  width: min(520px, calc(100% - 24px));
  padding: 0;
  pointer-events: none;
  backdrop-filter: none;
}

#scoreView .ab-face,
#scoreView .pitch-panel button,
#scoreView .pitch-panel select,
#scoreView .pitch-panel input,
#scoreView .pitch-panel textarea {
  pointer-events: auto;
}

#scoreView .outcome-face,
#scoreView .opponent-face,
#scoreView .pitch-panel.is-outcome .batter-face,
#scoreView .pitch-panel.is-opponent .batter-face,
#scoreView .pitch-panel.is-opponent .outcome-face {
  pointer-events: none;
}

#scoreView .pitch-panel.is-outcome .outcome-face,
#scoreView .pitch-panel.is-opponent .opponent-face,
#scoreView .pitch-panel:not(.is-outcome):not(.is-opponent) .batter-face {
  pointer-events: auto;
}

#scoreView .batter-face .mini-head,
#scoreView .opponent-face .mini-head {
  min-height: 76px;
  border-color: #111827;
  background: #111827;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
  backdrop-filter: none;
}

#scoreView .batter-face .mini-head .player-meta,
#scoreView .opponent-face .mini-head .player-meta {
  color: #d7dee7;
}

#scoreView .count-display {
  min-width: 68px;
  border: 0;
  background: transparent;
  color: #61d38a;
  font-size: 1.45rem;
}

#scoreView .opponent-outs {
  color: #ef8787;
}

#scoreView .pitch-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 8px auto 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#scoreView .pitch-btn {
  min-height: 64px;
  border: 1px solid transparent;
  box-shadow: 0 8px 16px rgba(14, 27, 19, 0.08);
  font-size: 1rem;
}

#scoreView .pitch-btn.ball {
  background: #9ed9ae;
  color: #ffffff;
}

#scoreView .pitch-btn.strike {
  background: #ef8c8c;
  color: #ffffff;
}

#scoreView .pitch-btn.foul {
  background: #f2b48f;
  color: #ffffff;
}

#scoreView .pitch-btn.in-play {
  background: #90aaf0;
  color: #ffffff;
}

#scoreView .pitch-btn.hbp {
  background: #c6b5ef;
  color: #ffffff;
}

#scoreView .pitch-trail {
  display: flex;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.94);
}

#scoreView .batter-face > .button-row,
#scoreView .opponent-face > .button-row {
  justify-content: center;
}

#scoreView .outcome-face {
  align-self: start;
  width: min(520px, calc(100% - 24px));
  margin: 92px auto 0;
  border-color: #b7d0ff;
  padding: 12px;
  background: #eef5ff;
  box-shadow: 0 14px 28px rgba(32, 75, 140, 0.16);
  backdrop-filter: none;
}

#scoreView .outcome-face .mini-head {
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

#scoreView .button-group[aria-label="Select batted ball result"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-color: #c8d9ff;
  padding: 10px;
  background: transparent;
}

#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn {
  min-height: 56px;
  background: #e8faed;
  border-color: #a8e5b9;
}

#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn[data-choice-value="GO"],
#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn[data-choice-value="DP"],
#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn[data-choice-value="SAC"] {
  background: #f2f5f7;
  border-color: #d9e1e8;
}

#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn[data-choice-value="ROE"] {
  background: #fff0dc;
  border-color: #f0bf7a;
}

#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn.is-selected {
  background: var(--grass-strong);
  border-color: var(--grass-strong);
  color: var(--white);
}

#scoreView .spray-panel .mini-head,
#scoreView .runner-panel .mini-head,
#scoreView .runner-play-grid {
  backdrop-filter: none;
}

#scoreView .score-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.28fr);
  align-items: start;
}

#scoreView .scorer-stack {
  grid-template-areas:
    "field"
    "form";
  gap: 10px;
  overflow: visible;
}

#scoreView .spray-panel {
  position: relative;
  min-height: 720px;
  border: 1px solid #1e6e47;
  border-radius: 8px;
  background: #1f7a4d;
  box-shadow: var(--shadow);
}

#scoreView .spray-chart {
  min-height: 720px;
  border-radius: 8px;
  cursor: crosshair;
}

#scoreView .spray-panel .mini-head {
  top: 12px;
  left: 12px;
  width: min(320px, calc(100% - 24px));
  transform: none;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(17, 24, 39, 0.88);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.2);
}

#scoreView .spray-panel select {
  max-width: 130px;
  min-height: 32px;
  padding: 5px 8px;
  font-size: 0.78rem;
}

#scoreView .pitch-panel {
  position: relative;
  grid-area: field;
  z-index: 6;
  width: 100%;
  min-height: 720px;
  margin: 0;
  pointer-events: none;
}

#scoreView .ab-face {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

#scoreView .pitch-panel.is-outcome .batter-face {
  opacity: 1;
  transform: none;
}

#scoreView .pitch-panel.is-outcome .batter-face .pitch-buttons,
#scoreView .pitch-panel.is-outcome .batter-face .pitch-trail,
#scoreView .pitch-panel.is-outcome .batter-face > .button-row,
#scoreView .pitch-panel.is-placing .batter-face .pitch-buttons,
#scoreView .pitch-panel.is-placing .batter-face .pitch-trail,
#scoreView .pitch-panel.is-placing .batter-face > .button-row {
  display: none;
}

#scoreView .batter-face .mini-head,
#scoreView .opponent-face .mini-head {
  position: absolute;
  top: 12px;
  left: 50%;
  width: min(520px, calc(100% - 24px));
  transform: translateX(-50%);
  pointer-events: auto;
}

#scoreView .count-pair {
  align-items: center;
}

#scoreView .count-display {
  min-width: 58px;
  min-height: 36px;
}

#scoreView .pitch-buttons {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(600px, calc(100% - 24px));
  pointer-events: auto;
}

#scoreView .pitch-btn {
  min-height: 58px;
}

#scoreView .pitch-trail {
  position: absolute;
  left: 50%;
  bottom: 90px;
  width: min(520px, calc(100% - 24px));
  max-height: 54px;
  overflow: auto;
  transform: translateX(-50%);
  pointer-events: auto;
}

#scoreView .batter-face > .button-row,
#scoreView .opponent-face > .button-row {
  position: absolute;
  right: 12px;
  top: 96px;
  pointer-events: auto;
}

#scoreView .batter-face > .button-row .secondary-action,
#scoreView .opponent-face > .button-row .secondary-action {
  min-height: 32px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.92);
}

#scoreView .outcome-face {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(620px, calc(100% - 24px));
  margin: 0;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
}

#scoreView .pitch-panel.is-outcome .outcome-face {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

#scoreView .button-group[aria-label="Select batted ball result"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#scoreView .button-group[aria-label="Select batted ball result"] > span {
  display: none;
}

#scoreView .runner-panel {
  position: absolute;
  inset: 0;
  z-index: 12;
  width: 100%;
  padding: 0;
}

#scoreView .runner-panel .mini-head {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 13;
  display: flex;
  pointer-events: auto;
}

#scoreView .base-tracker {
  position: absolute;
  inset: 0;
}

#scoreView .runner-base,
#scoreView .runner-plate {
  width: 54px;
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 16px rgba(14, 27, 19, 0.14);
  font-size: 0.78rem;
}

#scoreView .runner-base span {
  display: none;
}

#scoreView .runner-base.is-occupied {
  width: 82px;
  min-height: 54px;
  border-color: var(--gold);
  background: var(--gold);
}

#scoreView .runner-base.is-occupied span {
  display: block;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#scoreView .runner-first {
  right: 32%;
  bottom: 25%;
}

#scoreView .runner-second {
  left: calc(50% - 27px);
  top: 40%;
}

#scoreView .runner-third {
  left: 32%;
  bottom: 25%;
}

#scoreView .runner-plate {
  display: none;
}

#scoreView .steal-grid {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 13;
  width: min(420px, calc(100% - 24px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  transform: translateX(-50%);
  pointer-events: auto;
}

#scoreView .steal-grid button:disabled {
  display: block;
  opacity: 0.52;
}

#scoreView .steal-grid .secondary-action,
#scoreView .runner-play-grid .secondary-action {
  min-height: 32px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
}

#scoreView .runner-play-grid {
  left: 12px;
  bottom: 90px;
  width: min(310px, calc(100% - 24px));
  grid-template-columns: 1fr;
  transform: none;
  background: rgba(255, 255, 255, 0.92);
}

#scoreView .score-form {
  grid-area: form;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: none;
}

#scoreView .score-form .auto-score {
  grid-column: 1;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
}

#scoreView .score-form label.wide {
  grid-column: 1;
}

#scoreView .score-form .button-row.wide {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-content: flex-end;
}

#scoreView .score-form .button-row.wide .secondary-action {
  min-height: 34px;
  padding: 6px 10px;
}

#scoreView .score-form.is-defense {
  display: grid;
}

#scoreView .score-form.is-defense label.wide,
#scoreView .score-form.is-defense .auto-score {
  display: none;
}

#scoreView .score-form.is-defense .button-row.wide {
  grid-column: 1 / -1;
  grid-row: auto;
}

#scoreView .spray-panel.is-defense {
  opacity: 0.75;
}

#scoreView .opponent-face {
  position: absolute;
  inset: 0;
}

#scoreView .pitch-panel.is-opponent .opponent-face {
  pointer-events: none;
}

#scoreView .pitch-panel.is-opponent .opponent-face .mini-head,
#scoreView .pitch-panel.is-opponent .opponent-face .pitch-buttons,
#scoreView .pitch-panel.is-opponent .opponent-face .pitch-trail,
#scoreView .pitch-panel.is-opponent .opponent-face .button-row,
#scoreView .pitch-panel.is-opponent .opponent-face .opponent-outcomes {
  pointer-events: auto;
}

#scoreView .opponent-face .opponent-outcomes {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(680px, calc(100% - 24px));
  transform: translateX(-50%);
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 940px) {
  .pitcher-row {
    grid-template-columns: 1fr;
  }

  .pitcher-stat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .topbar,
  .game-glass,
  .section-head,
  .home-grid,
  .score-status-card,
  .score-grid,
  .lab-grid,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .upcoming-game-grid {
    grid-template-columns: 1fr;
  }

  #gamesView .game-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #gamesView .game-form label:nth-of-type(n) {
    grid-column: span 1;
  }

  #gamesView .game-form label:nth-of-type(1),
  #gamesView .game-form label:nth-of-type(5) {
    grid-column: 1 / -1;
  }

  .topbar,
  .game-glass {
    display: grid;
  }

  .tabs {
    justify-content: flex-start;
  }

  .scorer-stack {
    grid-template-columns: 1fr;
    grid-template-areas:
      "field"
      "form";
  }

  .scorer-stack.is-defense {
    grid-template-areas:
      "field"
      "form";
  }

  .play-panel {
    position: static;
    max-height: none;
  }

  .play-feed {
    max-height: 260px;
  }

  .score-form,
  .game-form,
  .game-summary-grid,
  .lineup-builder-row,
  .scouting-controls,
  .scouting-grid,
  .steal-grid,
  .player-form,
  .games-grid,
  .archive-grid,
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .roster-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  }

  .pitch-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #scoreView .steal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .button-group {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .opponent-outcomes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quick-outcomes {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .quick-outcomes > span {
    grid-column: 1 / -1;
  }

  .compact-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 12px;
  }

  .view,
  .game-glass {
    width: min(100% - 20px, 1380px);
  }

  .scoreboard-band {
    min-height: 150px;
  }

  .game-glass {
    gap: 12px;
    min-height: 132px;
    padding: 12px 0;
  }

  #gamesView .game-form,
  #gamesView .game-card {
    grid-template-columns: 1fr;
  }

  #gamesView .game-form label:nth-of-type(n) {
    grid-column: 1 / -1;
  }

  .game-card-matchup {
    width: min(100%, 220px);
  }

  .games-archive-note {
    align-items: stretch;
    flex-direction: column;
  }

  .scoreline {
    grid-template-columns: 1fr 1fr;
  }

  .scorer-stack {
    grid-template-columns: 1fr;
    grid-template-areas:
      "field"
      "form";
  }

  .scorer-stack.is-defense {
    grid-template-areas:
      "field"
      "form";
  }

  .scoreline,
  .score-form,
  .home-grid,
  .score-status-card,
  .game-form,
  .lineup-builder-row,
  .scouting-actions,
  .scouting-controls,
  .scouting-grid,
  .scout-metrics,
  .stats-spray-controls,
  .steal-grid,
  .player-form,
  .roster-grid,
  .games-grid,
  .archive-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .pitch-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #scoreView .steal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opponent-outcomes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-outcomes,
  .compact-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pitch-btn {
    min-height: 48px;
  }

  .scout-row {
    grid-template-columns: 1fr 1fr;
  }

  .game-glass h2 {
    font-size: 1.42rem;
  }

  .diamond {
    margin-left: 16px;
  }

  .spray-chart {
    min-height: 560px;
  }

  #scoreView .base-tracker {
    min-height: 132px;
  }
}

@media (max-width: 940px) {
  #scoreView .score-grid {
    grid-template-columns: 1fr;
  }

  #scoreView .play-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 620px) {
  #scoreView .spray-panel,
  #scoreView .spray-chart {
    min-height: 620px;
  }

  #scoreView .spray-panel .mini-head {
    top: 8px;
    left: 8px;
    width: calc(100% - 16px);
  }

  #scoreView .batter-face .mini-head,
  #scoreView .opponent-face .mini-head {
    top: 74px;
    width: calc(100% - 16px);
  }

  #scoreView .pitch-buttons,
  #scoreView .button-group[aria-label="Select batted ball result"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #scoreView .pitch-buttons,
  #scoreView .outcome-face {
    bottom: 12px;
    width: calc(100% - 16px);
  }

  #scoreView .pitch-trail {
    bottom: 150px;
    width: calc(100% - 16px);
  }

  #scoreView .steal-grid,
  #scoreView .runner-play-grid {
    bottom: 214px;
    width: min(220px, calc(50% - 12px));
  }

  #scoreView .runner-play-grid {
    left: 8px;
  }

  #scoreView .steal-grid {
    right: 8px;
  }

  #scoreView .score-form {
    grid-template-columns: 1fr;
  }

  #scoreView .score-form .auto-score,
  #scoreView .score-form label.wide,
  #scoreView .score-form .button-row.wide {
    grid-column: 1;
    grid-row: auto;
  }

  #scoreView .score-form .button-row.wide {
    justify-content: flex-start;
  }

  #scoreView .opponent-face .opponent-outcomes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: 12px;
    width: calc(100% - 16px);
  }
}

/* Sketch-aligned scoring field */
#scoreView .spray-panel {
  min-height: clamp(660px, 72vh, 860px);
  overflow: hidden;
  border: 0;
  background: #0f5f2b;
}

#scoreView .spray-chart {
  isolation: isolate;
  min-height: clamp(660px, 72vh, 860px);
  background:
    radial-gradient(ellipse at 50% 20%, rgba(37, 128, 64, 0.38) 0 34%, transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.04) 50% 75%, transparent 75%) 0 0 / 44px 44px,
    linear-gradient(180deg, #126d34, #0f602d 72%, #0a461f);
}

#scoreView .spray-chart::after {
  position: absolute;
  left: 50%;
  bottom: 7.5%;
  z-index: 0;
  width: min(520px, 44%);
  aspect-ratio: 1;
  content: "";
  transform: translateX(-50%) rotate(45deg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%),
    #51432b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#scoreView .spray-chart::before {
  z-index: 4;
  bottom: 7.6%;
  width: 20px;
  height: 20px;
}

#scoreView .fence-line {
  left: -6%;
  top: -15%;
  z-index: 2;
  width: 112%;
  height: 42%;
  border-width: 4px;
  border-color: rgba(255, 255, 255, 0.7);
  opacity: 0.72;
}

#scoreView .foul-line {
  bottom: 8.5%;
  z-index: 2;
  height: 110%;
  width: 3px;
  background: rgba(255, 255, 255, 0.72);
}

#scoreView .left-line {
  transform: rotate(-49deg);
}

#scoreView .right-line {
  transform: rotate(49deg);
}

#scoreView .infield-arc,
#scoreView .outfield-arc {
  display: none;
}

#scoreView .spray-base {
  z-index: 5;
  width: 30px;
  height: 30px;
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  color: transparent;
}

#scoreView .spray-first-base {
  right: 34%;
  bottom: 30%;
}

#scoreView .spray-second-base {
  left: calc(50% - 15px);
  bottom: 52%;
}

#scoreView .spray-third-base {
  left: 34%;
  bottom: 30%;
}

#scoreView .fielder-icon {
  z-index: 3;
  min-width: 34px;
  min-height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(17, 24, 39, 0.22);
  color: rgba(255, 255, 255, 0.82);
}

#scoreView .fielder-p {
  left: calc(50% - 17px);
  bottom: 33%;
}

#scoreView .fielder-c {
  display: none;
}

#scoreView .fielder-1b {
  right: 26%;
  bottom: 36%;
}

#scoreView .fielder-2b {
  right: 39%;
  bottom: 52%;
}

#scoreView .fielder-ss {
  left: 39%;
  bottom: 52%;
}

#scoreView .fielder-3b {
  left: 26%;
  bottom: 36%;
}

#scoreView .fielder-lf {
  left: 20%;
  top: 20%;
}

#scoreView .fielder-cf {
  left: calc(50% - 17px);
  top: 11%;
}

#scoreView .fielder-rf {
  right: 20%;
  top: 20%;
}

#scoreView .spray-panel .mini-head,
#scoreView .batter-face .mini-head,
#scoreView .opponent-face .mini-head {
  top: 10px;
}

#scoreView .batter-face .mini-head,
#scoreView .opponent-face .mini-head {
  width: min(620px, calc(100% - 24px));
  min-height: 68px;
  border: 1px solid rgba(245, 189, 33, 0.34);
  background: rgba(3, 10, 36, 0.92);
}

#scoreView .spray-panel .mini-head {
  width: min(330px, calc(100% - 24px));
  background: rgba(3, 10, 36, 0.72);
}

#scoreView .pitch-buttons {
  bottom: 26%;
  z-index: 8;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(500px, calc(100% - 36px));
  gap: 10px;
}

#scoreView .pitch-btn {
  min-height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(3, 10, 36, 0.28);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(3, 10, 36, 0.18);
}

#scoreView .pitch-btn.ball,
#scoreView .pitch-btn.strike,
#scoreView .pitch-btn.foul,
#scoreView .pitch-btn.in-play,
#scoreView .pitch-btn.hbp {
  background: rgba(3, 10, 36, 0.3);
  color: var(--white);
}

#scoreView .pitch-btn[data-pitch="ball"] {
  order: 1;
}

#scoreView .pitch-btn[data-pitch="called_strike"] {
  order: 2;
}

#scoreView .pitch-btn[data-pitch="in_play"] {
  order: 3;
}

#scoreView .pitch-btn[data-pitch="swinging_strike"] {
  order: 4;
}

#scoreView .pitch-btn[data-pitch="foul"] {
  order: 5;
}

#scoreView .pitch-btn.hbp {
  order: 6;
}

#scoreView .pitch-trail {
  bottom: 15%;
  width: min(500px, calc(100% - 36px));
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(3, 10, 36, 0.7);
}

#scoreView .pitch-trail .player-meta {
  color: rgba(255, 255, 255, 0.72);
}

#scoreView .outcome-face {
  bottom: 23%;
  width: min(610px, calc(100% - 36px));
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(238, 245, 255, 0.94);
}

#scoreView .pitch-panel.is-placing .batter-face .mini-head::after {
  display: block;
  margin-top: 4px;
  color: var(--lion-gold);
  content: "Tap the field to place the ball";
  font-size: 0.78rem;
  font-weight: 900;
}

#scoreView .pitch-panel.is-runner-decision .batter-face .mini-head::after {
  content: "Review runners, then resolve the play";
}

#scoreView .runner-base {
  z-index: 7;
  width: 58px;
  min-height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(3, 10, 36, 0.38);
  color: var(--white);
}

#scoreView .runner-base.is-occupied {
  width: 90px;
  border-color: var(--lion-gold);
  background: var(--lion-gold);
  color: var(--lion-navy);
}

#scoreView .runner-first {
  right: calc(34% - 30px);
  bottom: calc(30% - 10px);
}

#scoreView .runner-second {
  left: calc(50% - 45px);
  top: auto;
  bottom: calc(52% - 12px);
}

#scoreView .runner-third {
  left: calc(34% - 30px);
  bottom: calc(30% - 10px);
}

#scoreView .steal-grid,
#scoreView .runner-play-grid {
  z-index: 9;
  bottom: 11%;
}

#scoreView .score-form {
  margin-top: 10px;
}

@media (max-width: 700px) {
  #scoreView .spray-panel,
  #scoreView .spray-chart {
    min-height: 640px;
  }

  #scoreView .spray-chart::after {
    width: min(390px, 58%);
  }

  #scoreView .pitch-buttons {
    bottom: 25%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100% - 24px);
    gap: 7px;
  }

  #scoreView .pitch-btn {
    min-height: 46px;
    padding: 6px 5px;
    font-size: 0.82rem;
  }

  #scoreView .outcome-face {
    bottom: 18%;
    width: calc(100% - 24px);
  }

  #scoreView .pitch-trail {
    bottom: 11%;
    width: calc(100% - 24px);
  }
}

/* Keep scoring controls anchored inside the field, down by the lower box/home-plate area. */
#scoreView .pitch-panel {
  min-height: clamp(660px, 72vh, 860px);
}

#scoreView .pitch-buttons {
  bottom: 7%;
  width: min(520px, calc(100% - 48px));
}

#scoreView .outcome-face {
  bottom: 7%;
  width: min(640px, calc(100% - 48px));
}

#scoreView .pitch-trail {
  bottom: 17%;
}

@media (max-width: 700px) {
  #scoreView .pitch-panel {
    min-height: 640px;
  }

  #scoreView .pitch-buttons,
  #scoreView .outcome-face {
    bottom: 7%;
    width: calc(100% - 24px);
  }

  #scoreView .pitch-trail {
    bottom: 18%;
  }
}

/* Roster profile cards */
.roster-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 720px), 1fr));
  gap: 22px;
  align-items: start;
}

.player-card {
  max-width: 920px;
  min-height: 560px;
  margin: 0 auto;
  border-color: rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 189, 33, 0.18), transparent 34%),
    linear-gradient(145deg, #1e2233 0%, #141827 42%, #070913 100%);
  box-shadow: 0 28px 70px rgba(3, 10, 36, 0.32);
}

.player-card-logo {
  left: 50%;
  right: auto;
  bottom: 18px;
  width: min(58%, 470px);
  opacity: 0.09;
  transform: translateX(-18%) rotate(0deg);
}

.player-card-overlay {
  background:
    linear-gradient(90deg, rgba(20, 24, 39, 0.96), rgba(20, 24, 39, 0.78) 54%, rgba(20, 24, 39, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(3, 10, 36, 0.48));
}

.player-card-content {
  gap: 24px;
  padding: 32px 34px 30px;
}

.player-card .player-topline {
  align-items: start;
}

.player-card .player-topline > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 22px;
  align-items: center;
}

.player-card .number-pill {
  min-width: 68px;
  min-height: 56px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #bd3b35, #9d2f2b);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
}

.player-card h3 {
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0;
}

.player-card .player-topline p {
  grid-column: 2;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.28rem;
  font-weight: 500;
}

.player-card .active-toggle {
  position: relative;
  display: grid;
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
}

.player-card .active-toggle span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.player-card .active-toggle input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  min-height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.player-card .active-toggle::after {
  display: grid;
  width: 42px;
  height: 42px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 8px;
  background: #4d37a5;
  color: var(--white);
  content: "";
  place-items: center;
}

.player-card .active-toggle::before {
  position: absolute;
  z-index: 1;
  width: 18px;
  height: 10px;
  content: "";
  transform: rotate(-45deg) scale(0);
  border-left: 5px solid var(--white);
  border-bottom: 5px solid var(--white);
  transition: transform 140ms ease;
}

.player-card .active-toggle:has(input:checked)::before {
  transform: rotate(-45deg) scale(1);
}

.player-card .player-edit-row {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.26fr);
  gap: 16px;
  border: 0;
  padding: 10px 0 0;
  background: transparent;
}

.player-card .player-edit-row label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  font-weight: 900;
}

.player-card input:not([type="range"]):not([type="checkbox"]) {
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  caret-color: var(--white);
}

.player-card .player-edit-row:focus-within input:not([type="range"]):not([type="checkbox"]) {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--lion-navy);
}

.player-card .stat-strip {
  gap: 12px;
}

.player-card .stat-strip span {
  min-height: 116px;
  border-color: rgba(255, 255, 255, 0.16);
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
  letter-spacing: 0;
}

.player-card .stat-strip strong {
  margin-top: 12px;
  font-size: 2.2rem;
  line-height: 1;
}

.player-card .grade-row {
  gap: 24px;
  border-top: 0;
  padding-top: 8px;
}

.player-card .grade-row label {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: 70px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.player-card input[type="range"] {
  --grade-fill: 50%;
  height: 20px;
}

.player-card input[type="range"]::-webkit-slider-runnable-track {
  height: 9px;
  background: linear-gradient(90deg, var(--lion-gold) 0 var(--grade-fill), rgba(255, 255, 255, 0.78) var(--grade-fill) 100%);
}

.player-card input[type="range"]::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -8.5px;
  border-color: var(--lion-gold);
}

.player-card input[type="range"]::-moz-range-track {
  height: 9px;
  background: linear-gradient(90deg, var(--lion-gold) 0 var(--grade-fill), rgba(255, 255, 255, 0.78) var(--grade-fill) 100%);
}

.player-card input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-color: var(--lion-gold);
}

@media (max-width: 760px) {
  .player-card {
    min-height: 0;
  }

  .player-card-content {
    padding: 22px;
  }

  .player-card h3 {
    font-size: 1.75rem;
  }

  .player-card .player-topline p {
    font-size: 1rem;
  }

  .player-card .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-card .stat-strip span {
    min-height: 96px;
  }
}

/* Premium dark sports-app skin */
:root {
  --app-bg: #060918;
  --app-bg-2: #0d1328;
  --panel-dark: rgba(20, 25, 43, 0.82);
  --panel-dark-solid: #151a2d;
  --panel-line: rgba(255, 255, 255, 0.12);
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-muted-dark: rgba(255, 255, 255, 0.56);
  --shadow-dark: 0 24px 70px rgba(0, 0, 0, 0.34);
}

html {
  min-height: 100%;
  background: var(--app-bg);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(245, 189, 33, 0.1), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(91, 75, 180, 0.16), transparent 30%),
    radial-gradient(circle at 52% 92%, rgba(35, 71, 135, 0.18), transparent 34%),
    linear-gradient(180deg, #0e1326 0%, #070a18 48%, #030611 100%);
  color: var(--white);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.025) 50% 75%, transparent 75%) 0 0 / 56px 56px,
    radial-gradient(ellipse at center, transparent 36%, rgba(0, 0, 0, 0.48) 100%);
  opacity: 0.9;
}

.topbar {
  background: rgba(7, 10, 24, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.brand-block h1,
.section-head h2,
.mini-head h3,
.home-next-game h3 {
  color: var(--white);
}

.mark {
  border-color: var(--lion-gold);
  background: linear-gradient(180deg, #151b33, #080c1d);
  color: var(--lion-gold);
}

.eyebrow,
.scout-kicker {
  color: var(--lion-gold);
}

.player-meta,
.play-meta,
.archive-meta,
.small-copy,
.tracking-list p,
.scorebook-meta,
.game-state-context {
  color: var(--text-soft);
}

.tab,
.secondary-action,
.primary-action,
input,
select,
textarea {
  border-color: var(--panel-line);
}

.tab,
.secondary-action {
  background: rgba(255, 255, 255, 0.075);
  color: var(--white);
}

.tab.is-active,
.primary-action {
  border-color: rgba(245, 189, 33, 0.72);
  background: linear-gradient(180deg, var(--lion-gold), #c98b13);
  color: var(--lion-navy);
}

.secondary-action:hover,
.tab:hover {
  border-color: rgba(245, 189, 33, 0.72);
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

label {
  color: var(--text-soft);
}

.home-panel,
.score-status-card,
.scorebook-panel,
.box-score-card,
.box-score-tabs,
.score-form,
.pitch-panel,
.spray-panel,
.runner-panel,
.play-panel,
.optimizer-board,
.coach-card,
.player-form,
.game-form,
.game-card,
.archive-card,
.metric-card,
.tracking-list,
.value-board,
.lineup-builder,
.sub-panel,
.stats-table-wrap,
.leader-card,
.scouting-card,
.breakdown-card {
  border-color: var(--panel-line);
  background: var(--panel-dark);
  box-shadow: var(--shadow-dark);
  color: var(--white);
}

.home-hero-panel,
.scouting-hero-card {
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 189, 33, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(24, 30, 51, 0.92), rgba(12, 16, 31, 0.94));
}

.home-field-image,
.upcoming-game-card img {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(3, 10, 36, 0.88), rgba(24, 30, 51, 0.92));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.home-hero-panel .home-field-image {
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.upcoming-game-card {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 86% 0%, rgba(245, 189, 33, 0.11), transparent 36%),
    rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.upcoming-game-card h4 {
  color: var(--white);
}

.upcoming-empty {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-soft);
}

.score-status-card,
.game-card,
.archive-card,
.lineup-builder,
.stats-table-wrap,
.play-panel {
  backdrop-filter: blur(18px);
}

.game-state-focus,
.clean-scoreline div,
.auto-score,
.summary-chip,
.lineup-list li,
.optimized-list li,
.value-row,
.stat-strip span,
.metric-card,
.pitcher-stat-strip span,
.scorebook-cell,
.scout-row,
.record-summary .metric-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-soft);
}

.scorebook-cell {
  background: #fbfdfb;
  color: #172033;
}

.scorebook-cell.is-hit {
  background: #fff7de;
}

.scorebook-cell.is-out {
  background: #f8eded;
}

.scorebook-cell.is-reach {
  background: #edf7f0;
}

#gamesView .game-card {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 88% 0%, rgba(245, 189, 33, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(20, 25, 43, 0.92), rgba(9, 13, 28, 0.94));
  color: var(--white);
}

#gamesView .game-card.is-active {
  border-color: rgba(245, 189, 33, 0.72);
  background:
    radial-gradient(circle at 88% 0%, rgba(245, 189, 33, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(24, 30, 51, 0.96), rgba(10, 16, 33, 0.96));
  box-shadow:
    0 0 0 1px rgba(245, 189, 33, 0.18),
    0 24px 70px rgba(0, 0, 0, 0.36);
}

#gamesView .game-card h3,
#gamesView .game-card.is-active h3 {
  color: var(--white);
}

#gamesView .game-card .player-meta,
#gamesView .game-card .archive-meta {
  color: rgba(255, 255, 255, 0.76);
}

#gamesView .lineup-builder {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 88% 0%, rgba(245, 189, 33, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(20, 25, 43, 0.92), rgba(9, 13, 28, 0.94));
}

#gamesView .lineup-builder .mini-head h3,
#gamesView .lineup-builder label {
  color: var(--white);
}

#gamesView .lineup-builder .player-meta {
  color: rgba(255, 255, 255, 0.72);
}

#gamesView .lineup-builder-row {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  color: var(--white);
}

#gamesView .lineup-order {
  background: linear-gradient(180deg, #0f6a3e, #07522d);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

#gamesView .lineup-builder-row select,
#gamesView .game-edit-grid input,
#gamesView .game-edit-grid select,
#gamesView .game-form input,
#gamesView .game-form select {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

#gamesView .lineup-builder-row select option,
#gamesView .game-edit-grid select option,
#gamesView .game-form select option {
  background: #151a2d;
  color: var(--white);
}

#gamesView .team-side-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
}

#lineupSetupView {
  color: var(--white);
}

.pregame-shell.lineup-builder {
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 74, 108, 0.76) 0%, rgba(10, 23, 40, 0.96) 52%, rgba(7, 17, 32, 0.98) 100%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.pregame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px;
  background: rgba(0, 0, 0, 0.2);
}

.pregame-header h2,
.pregame-panel-head h3,
.bench-player-card strong {
  margin: 0;
  color: var(--white);
}

.pregame-header .player-meta,
.pregame-panel-head .player-meta {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.pregame-context {
  min-width: 260px;
  max-width: 420px;
  border: 1px solid rgba(245, 189, 33, 0.24);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(245, 189, 33, 0.1);
  color: #f7d173;
  font-weight: 900;
}

.pregame-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  align-items: start;
}

.analysis-grid.is-summary-only {
  grid-template-columns: 1fr;
}

.starting-lineup-panel,
.bench-panel {
  padding: 22px;
}

.bench-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 10, 24, 0.28);
}

.pregame-shell .starting-lineup-panel {
  position: sticky;
  top: 88px;
  align-self: start;
}

.pregame-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.pregame-shell .lineup-builder-rows {
  gap: 12px;
}

.pregame-shell .lineup-builder-row {
  display: grid;
  grid-template-columns: 104px minmax(180px, 1fr) 150px 104px;
  gap: 12px;
  align-items: center;
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.pregame-shell .lineup-builder-row.is-selected {
  border-color: rgba(245, 189, 33, 0.6);
  box-shadow:
    0 0 0 1px rgba(245, 189, 33, 0.18),
    0 18px 46px rgba(0, 0, 0, 0.26);
}

.pregame-shell .lineup-builder-row.is-empty {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.035);
}

.pregame-shell .lineup-builder-row.is-empty .lineup-order {
  opacity: 0.9;
}

.lineup-builder-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pregame-shell .lineup-order {
  width: 48px;
  min-height: 48px;
  background: linear-gradient(180deg, var(--lion-gold), #d89618);
  color: var(--lion-navy);
  font-size: 1.1rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.lineup-move-group {
  display: grid;
  gap: 4px;
}

.lineup-move {
  min-width: 40px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 2px 8px;
  background: rgba(7, 17, 32, 0.72);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 900;
}

.lineup-move:not(:disabled):hover,
.lineup-move:not(:disabled):focus-visible {
  border-color: rgba(245, 189, 33, 0.42);
  background: rgba(245, 189, 33, 0.14);
  color: var(--white);
}

.lineup-player-picker,
.lineup-position-card {
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
}

.lineup-player-picker span,
.lineup-position-card span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.lineup-player-picker select,
.lineup-position-card select {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 17, 32, 0.72);
  color: var(--white);
}

.lineup-player-picker,
.lineup-position-card {
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
}

.lineup-player-picker span,
.lineup-position-card span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.lineup-player-picker select,
.lineup-position-card select {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 17, 32, 0.72);
  color: var(--white);
  font-weight: 900;
}

.lineup-player-picker strong {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: var(--white);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineup-builder-row.is-empty .lineup-player-picker strong {
  color: rgba(255, 255, 255, 0.72);
}

.lineup-position-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 10px;
  background: rgba(7, 17, 32, 0.72);
  text-align: center;
}

.lineup-position-card select {
  margin-top: 4px;
  color: #6ee7a8;
  text-align: center;
}

.lineup-position-card.is-attention,
.starting-pitcher-card.is-attention {
  border-color: rgba(245, 189, 33, 0.82);
  box-shadow:
    0 0 0 2px rgba(245, 189, 33, 0.18),
    0 0 24px rgba(245, 189, 33, 0.18);
}

.lineup-slot-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(7, 17, 32, 0.48);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.lineup-slot-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(7, 17, 32, 0.48);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.lineup-player-eligibility {
  grid-column: 2 / 5;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.8rem;
  font-weight: 800;
}

.lineup-empty-card {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.68);
  font-weight: 900;
}

.bench-card,
.ready-check-card,
.starting-pitcher-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.bench-card {
  display: grid;
  min-height: 0;
}

.starting-pitcher-card {
  display: grid;
  min-height: 0;
}

.starting-pitcher-card {
  display: grid;
  gap: 12px;
}

.starting-pitcher-card h3 {
  margin: 2px 0 0;
  color: var(--white);
}

.starting-pitcher-card label {
  color: rgba(255, 255, 255, 0.72);
}

.starting-pitcher-card select {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 17, 32, 0.72);
  color: var(--white);
  font-weight: 900;
}

.lineup-pitcher-meta {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 900;
}

.bench-list {
  display: grid;
  gap: 10px;
  max-height: min(430px, 52dvh);
  overflow: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.bench-player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(7, 17, 32, 0.66);
  cursor: pointer;
}

.bench-player-card span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
  font-weight: 800;
}

.opponent-lineup-setup {
  margin-top: 0;
}

.opponent-lineup-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
}

.opponent-lineup-rows {
  display: grid;
  gap: 12px;
}

.opponent-lineup-setup-row {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.opponent-lineup-name,
.opponent-lineup-number {
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
}

.opponent-lineup-name span,
.opponent-lineup-number span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.opponent-lineup-name input,
.opponent-lineup-number input {
  margin-top: 6px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 17, 32, 0.72);
  color: var(--white);
  font-weight: 900;
}

.opponent-lineup-help {
  color: rgba(255, 255, 255, 0.72);
}

.ready-check-card {
  border-color: rgba(77, 214, 141, 0.24);
  background: rgba(45, 185, 106, 0.1);
}

.ready-check-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.lineup-missing-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(245, 189, 33, 0.48);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(245, 189, 33, 0.14);
  color: #f7d173;
  font-weight: 950;
  text-align: center;
}

.ready-check-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(245, 189, 33, 0.48);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(245, 189, 33, 0.14);
  color: #f7d173;
  font-weight: 950;
  text-align: center;
}

.ready-check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 850;
}

.ready-check-item span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
}

.ready-check-item.is-ready span {
  background: rgba(77, 214, 141, 0.18);
  color: #6ee7a8;
}

.pregame-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.pregame-actions .primary-action,
.pregame-actions .secondary-action {
  min-height: 54px;
  justify-content: center;
}

@media (max-width: 980px) {
  .pregame-header,
  .pregame-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pregame-context {
    min-width: 0;
    max-width: none;
  }

  .pregame-grid {
    grid-template-columns: 1fr;
  }

  .pregame-shell .starting-lineup-panel {
    position: static;
  }

  .bench-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .pregame-shell .lineup-builder-row {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .lineup-player-eligibility {
    grid-column: 1 / -1;
  }

  .pregame-shell.lineup-builder {
    max-width: 820px;
  }

  .pregame-shell .lineup-builder-row {
    padding: 12px;
  }

  .pregame-shell .lineup-order {
    min-height: 44px;
  }

  .bench-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .starting-lineup-panel,
  .bench-panel,
  .pregame-header {
    padding: 16px;
  }

  .pregame-shell .lineup-builder-row,
  .pregame-actions,
  .bench-player-card {
    grid-template-columns: 1fr;
  }

  .bench-player-card {
    display: grid;
  }
}

#gamesView .team-side-card strong {
  color: var(--white);
}

.game-state-focus strong,
.clean-scoreline strong,
.stat-strip strong,
.metric-card strong,
.pitcher-stat-strip strong,
.leader-row strong,
.value-row span,
.scout-value {
  color: var(--white);
}

.clean-scoreline span,
.game-state-focus span,
.stats-table th,
.scorebook-table thead th,
.scout-row span,
.scout-metric span {
  color: var(--text-muted-dark);
}

.stats-table th,
.box-score-table thead th,
.scorebook-table thead th,
.scorebook-table tbody th {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}

.stats-table td,
.box-score-table th,
.box-score-table td,
.scorebook-table td,
.scorebook-table th {
  border-color: rgba(255, 255, 255, 0.1);
}

.stats-table tbody tr:hover,
.box-score-table tbody tr:hover {
  background: rgba(245, 189, 33, 0.06);
}

.scorebook-table tbody th {
  background: #12182b;
}

.choice-btn {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.choice-btn.is-selected {
  border-color: var(--lion-gold);
  background: var(--lion-gold);
  color: var(--lion-navy);
}

.leader-card,
.scout-metric {
  background: rgba(255, 255, 255, 0.065);
}

.play-item {
  border-left-color: var(--lion-gold);
  background: rgba(255, 255, 255, 0.06);
}

.bar-track {
  background: rgba(255, 255, 255, 0.14);
}

.bar-fill {
  background: linear-gradient(90deg, #b63b36, var(--lion-gold));
}

/* Mockup-matched roster cards */
.roster-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 760px), 1fr));
  gap: 24px;
}

.player-card {
  width: 100%;
  max-width: 940px;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 6%, rgba(245, 189, 33, 0.14), transparent 34%),
    linear-gradient(145deg, #252a3f 0%, #161b2d 42%, #080b17 100%);
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.46);
}

.player-card-logo {
  left: 50%;
  top: 42px;
  bottom: auto;
  width: min(58%, 510px);
  background-image: url("./lions-watermark.png");
  opacity: 0.1;
  transform: translateX(-2%);
}

.player-card-overlay {
  background:
    linear-gradient(90deg, rgba(22, 27, 45, 0.97), rgba(22, 27, 45, 0.74) 52%, rgba(12, 15, 27, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.42));
}

.player-card-content {
  gap: 24px;
  padding: 32px 34px 28px;
}

.player-card .player-topline > div {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 22px;
}

.player-card .number-pill {
  min-width: 68px;
  min-height: 56px;
  border: 0;
  background: linear-gradient(180deg, #be4039, #9d302d);
  color: var(--white);
  font-size: 2rem;
}

.player-card h3 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.45rem);
  line-height: 1;
}

.player-card .player-topline p {
  grid-column: 2;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.player-card .active-toggle::after {
  background: #4f39a7;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
}

.player-card .player-edit-row {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.26fr);
  padding-top: 14px;
}

.player-card .player-edit-row label {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.14rem;
}

.player-card .stat-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.player-card .stat-strip span {
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.14rem;
}

.player-card .stat-strip strong {
  margin-top: 12px;
  color: var(--white);
  font-size: clamp(1.72rem, 3.2vw, 2.2rem);
}

.player-card .grade-row {
  gap: 23px;
  padding-top: 8px;
}

.player-card .grade-row label {
  gap: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.18rem;
}

.player-card input[type="range"]::-webkit-slider-runnable-track {
  height: 9px;
  background: linear-gradient(90deg, var(--lion-gold) 0 var(--grade-fill), rgba(255, 255, 255, 0.78) var(--grade-fill) 100%);
}

.player-card input[type="range"]::-moz-range-track {
  height: 9px;
  background: linear-gradient(90deg, var(--lion-gold) 0 var(--grade-fill), rgba(255, 255, 255, 0.78) var(--grade-fill) 100%);
}

@media (max-width: 760px) {
  .topbar {
    position: static;
  }

  .player-card-content {
    padding: 22px;
  }

  .player-card .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Score view contrast pass: keep this page field-first and readable inside the dark app shell. */
#scoreView {
  --score-field-dark: #06451f;
  --score-field-mid: #127238;
  --score-field-light: #1a8847;
  --score-dirt: #5f4a2e;
  --score-panel: rgba(5, 12, 35, 0.94);
  --score-panel-soft: rgba(9, 18, 46, 0.84);
}

#scoreView .score-grid {
  gap: 14px;
}

#scoreView .scorer-stack {
  grid-template-areas:
    "field"
    "panel"
    "form";
  gap: 12px;
}

#scoreView .score-status-card {
  position: sticky;
  top: 72px;
  z-index: 12;
  grid-template-columns: minmax(280px, 1.18fr) repeat(3, minmax(110px, 0.38fr)) minmax(220px, 0.76fr);
  gap: 10px 14px;
  align-items: stretch;
  border: 1px solid rgba(245, 189, 33, 0.24);
  background: linear-gradient(135deg, rgba(7, 20, 55, 0.98), rgba(3, 10, 36, 0.96));
  color: var(--white);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

#scoreView .score-empty-state {
  display: grid;
  gap: 10px;
  max-width: 620px;
  border: 1px solid rgba(245, 189, 33, 0.24);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(7, 20, 55, 0.96), rgba(3, 10, 36, 0.94));
  color: var(--white);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.2);
}

#scoreView .score-empty-state[hidden] {
  display: none;
}

#scoreView .score-empty-state h3,
#scoreView .score-empty-state .player-meta {
  margin: 0;
  color: var(--white);
}

#scoreView.has-no-game .score-status-card,
#scoreView.has-no-game .score-grid {
  display: none;
}

#scoreView .score-status-card > div:first-child {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(245, 189, 33, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 189, 33, 0.12), transparent 42%),
    rgba(3, 10, 36, 0.68);
}

#scoreView .score-status-card h3,
#scoreView .current-batter-card strong {
  color: var(--white);
}

#scoreView .score-status-card h3 {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#scoreView .game-state-batter {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 4px 0 0;
  border: 1px solid rgba(245, 189, 33, 0.28);
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(245, 189, 33, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#scoreView .score-status-card .game-state-context {
  display: none;
}

#scoreView .score-status-card .game-state-focus,
#scoreView .score-status-card .clean-scoreline {
  align-self: stretch;
}

#scoreView .score-status-card .game-state-focus {
  display: grid;
  align-content: center;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(13, 24, 57, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#scoreView .score-status-card .game-state-focus span {
  color: rgba(255, 255, 255, 0.68);
}

#scoreView .score-status-card .game-state-focus strong {
  color: var(--white);
}

#scoreView #headerCountDisplay {
  color: #65e88e;
}

#scoreView #outsStateDisplay {
  color: #ff8e96;
}

#scoreView .current-batter-card {
  grid-column: 1 / 2;
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(74px, 0.28fr);
  gap: 8px;
  align-items: stretch;
  min-width: 0;
  border: 1px solid rgba(245, 189, 33, 0.24);
  border-radius: 8px;
  padding: 9px 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 189, 33, 0.14), transparent 42%),
    rgba(3, 10, 36, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 26px rgba(0, 0, 0, 0.24);
}

#scoreView .current-batter-primary {
  display: grid;
  gap: 6px;
  min-width: 0;
}

#scoreView .current-batter-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#scoreView .current-batter-status {
  display: grid;
  gap: 2px;
  min-width: 74px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.06);
}

#scoreView .current-batter-status span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

#scoreView .current-batter-status strong {
  color: var(--white);
  font-size: 1rem;
}

#scoreView #headerBatterCountDisplay {
  color: #65e88e;
}

#scoreView #headerBatterOutsDisplay {
  color: #ff8e96;
}

#scoreView .current-batter-card > div {
  display: grid;
  align-content: center;
  min-width: 0;
}

#scoreView .current-batter-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

#scoreView .current-batter-card strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  line-height: 1.05;
}

#scoreView .current-batter-card .current-batter-avg {
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
}

#scoreView .current-batter-card .current-batter-avg strong {
  color: #65e88e;
  font-size: 1rem;
}

#scoreView .game-pitcher-card {
  grid-column: 2 / -1;
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(245, 189, 33, 0.24);
  border-radius: 8px;
  padding: 9px 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 189, 33, 0.12), transparent 42%),
    rgba(3, 10, 36, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 26px rgba(0, 0, 0, 0.24);
}

#scoreView .game-pitcher-content {
  display: contents;
}

#scoreView #headerBatterStatus[hidden],
#scoreView #headerCountFocus[hidden],
#scoreView #headerOutsFocus[hidden],
#scoreView #gamePitcherContent[hidden],
#scoreView #gameBattingStatusRow[hidden] {
  display: none !important;
}

#scoreView .game-pitcher-card.is-batting-status {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#scoreView .game-batting-status-row {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  grid-column: 1 / -1;
}

#scoreView .game-batting-status {
  display: grid;
  gap: 4px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

#scoreView .game-batting-status span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

#scoreView .game-batting-status strong {
  color: var(--white);
  font-size: 1rem;
}

#scoreView #pitcherRowCountDisplay {
  color: #65e88e;
}

#scoreView #pitcherRowOutsDisplay {
  color: #ff8e96;
}

#scoreView .game-pitcher-card label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

#scoreView .game-pitcher-card select {
  min-height: 34px;
  min-width: 0;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(7, 15, 38, 0.96);
  color: var(--white);
  font-weight: 900;
}

#scoreView .game-pitcher-card .pitcher-stat-strip {
  min-width: 0;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: 5px;
}

#scoreView .game-pitcher-card .pitcher-stat-strip span {
  min-height: 38px;
  padding: 6px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.66rem;
  text-align: center;
  white-space: nowrap;
}

#scoreView .game-pitcher-card .pitcher-stat-strip strong {
  color: var(--white);
  font-size: 0.9rem;
}

#scoreView .spray-panel,
#scoreView .pitch-panel {
  min-height: clamp(540px, 62vh, 680px);
}

#scoreView .spray-panel {
  position: relative;
  z-index: 7;
  border: 1px solid rgba(245, 189, 33, 0.26);
  background: var(--score-field-dark);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

#scoreView .spray-chart {
  min-height: clamp(540px, 62vh, 680px);
  touch-action: manipulation;
  background:
    radial-gradient(ellipse at 50% 21%, rgba(36, 148, 72, 0.5) 0 35%, transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.045) 50% 75%, transparent 75%) 0 0 / 42px 42px,
    linear-gradient(180deg, var(--score-field-light), var(--score-field-mid) 64%, var(--score-field-dark));
}

#scoreView .spray-markers,
#scoreView .spray-dot {
  pointer-events: none;
}

#scoreView .spray-chart::after {
  width: min(500px, 43%);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 42%),
    var(--score-dirt);
}

#scoreView .foul-line {
  background: rgba(255, 255, 255, 0.82);
}

#scoreView .fence-line {
  border-color: rgba(255, 255, 255, 0.82);
  opacity: 0.84;
}

#scoreView .spray-panel .mini-head {
  border: 1px solid rgba(245, 189, 33, 0.22);
  background: rgba(3, 10, 36, 0.76);
  color: var(--white);
}

#scoreView .spray-panel .mini-head h3,
#scoreView .spray-panel .mini-head .player-meta {
  color: var(--white);
}

#scoreView .spray-panel select {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(3, 10, 36, 0.82);
  color: var(--white);
}

#scoreView .pitch-panel {
  background: transparent;
  box-shadow: none;
}

#scoreView .batter-face .pitch-buttons,
#scoreView .opponent-face .pitch-buttons,
#scoreView .outcome-face,
#scoreView .opponent-face .opponent-outcomes,
#scoreView .batter-face > .button-row,
#scoreView .opponent-face > .button-row,
#scoreView .steal-grid,
#scoreView .runner-play-grid {
  display: none;
}

#scoreView .batter-face .mini-head,
#scoreView .opponent-face .mini-head {
  border: 1px solid rgba(245, 189, 33, 0.5);
  background:
    linear-gradient(135deg, rgba(7, 20, 55, 0.97), rgba(3, 10, 36, 0.94)),
    var(--score-panel);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

#scoreView .batter-face .mini-head h3,
#scoreView .opponent-face .mini-head h3 {
  color: var(--white);
}

#scoreView .batter-face .mini-head .player-meta,
#scoreView .opponent-face .mini-head .player-meta {
  color: rgba(255, 255, 255, 0.82);
}

#scoreView .count-display {
  color: #65e88e;
}

#scoreView .opponent-outs {
  color: #ff8a8f;
}

#scoreView .pitch-buttons {
  bottom: 28px;
  width: min(560px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: rgba(3, 10, 36, 0.62);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

#scoreView .pitch-btn {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

#scoreView .pitch-btn.ball {
  background: linear-gradient(180deg, #48c774, #229455);
}

#scoreView .pitch-btn.strike {
  background: linear-gradient(180deg, #f1797d, #c7434a);
}

#scoreView .pitch-btn.foul {
  background: linear-gradient(180deg, #f4b17f, #cf7843);
}

#scoreView .pitch-btn.in-play {
  background: linear-gradient(180deg, #7ea0ff, #416bd8);
}

#scoreView .pitch-btn.hbp {
  background: linear-gradient(180deg, #b9a8f4, #6c56c8);
}

#scoreView .pitch-trail {
  display: none;
  bottom: 112px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(3, 10, 36, 0.72);
  color: var(--white);
}

#scoreView .pitch-chip {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

#scoreView .pitch-trail .player-meta {
  color: rgba(255, 255, 255, 0.72);
}

#scoreView .batter-face > .button-row,
#scoreView .opponent-face > .button-row {
  top: 96px;
}

#scoreView .batter-face > .button-row .secondary-action,
#scoreView .opponent-face > .button-row .secondary-action {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #172033;
}

#scoreView .outcome-face {
  bottom: 28px;
  border: 1px solid rgba(245, 189, 33, 0.32);
  background: linear-gradient(145deg, rgba(8, 18, 46, 0.96), rgba(3, 10, 36, 0.94));
  color: var(--white);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

#scoreView .pitch-panel.is-outcome .outcome-face {
  opacity: 1;
}

#scoreView .outcome-face .mini-head h3,
#scoreView .outcome-face .mini-head .player-meta {
  color: var(--white);
}

#scoreView .button-group[aria-label="Select batted ball result"],
#scoreView .outcome-face .button-group {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

#scoreView .button-group > span {
  color: rgba(255, 255, 255, 0.68);
}

#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn,
#scoreView .outcome-face .choice-btn {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.1);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.2);
}

#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn[data-choice-value="1B"],
#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn[data-choice-value="2B"],
#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn[data-choice-value="3B"],
#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn[data-choice-value="HR"],
#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn[data-choice-value="GO"],
#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn[data-choice-value="DP"],
#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn[data-choice-value="SAC"],
#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn[data-choice-value="ROE"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.1);
}

#scoreView .button-group[aria-label="Select batted ball result"] .choice-btn.is-selected,
#scoreView .outcome-face .choice-btn.is-selected {
  border-color: var(--lion-gold);
  background:
    linear-gradient(180deg, #ffd867, var(--lion-gold));
  color: var(--lion-navy);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 12px 24px rgba(245, 189, 33, 0.22);
}

#scoreView .score-form {
  border: 1px solid rgba(245, 189, 33, 0.24);
  background: linear-gradient(145deg, rgba(10, 21, 52, 0.96), rgba(3, 10, 36, 0.94));
  color: var(--white);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

#scoreView .scoring-step-panel {
  grid-area: panel;
  position: sticky;
  bottom: 12px;
  z-index: 11;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(245, 189, 33, 0.28);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 189, 33, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(10, 21, 52, 0.98), rgba(3, 10, 36, 0.98));
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

#scoreView .scoring-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#scoreView .scoring-step-head h3 {
  color: var(--white);
  font-size: 1.12rem;
}

#scoreView .scoring-step-head span,
#scoreView .scoring-step-head .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

#scoreView .scoring-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

#scoreView .scoring-step-body {
  display: grid;
  gap: 10px;
}

#scoreView .step-grid {
  display: grid;
  gap: 10px;
}

#scoreView .step-grid-pitches {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

#scoreView .step-grid-outcomes,
#scoreView .step-grid-opponent {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

#scoreView .step-grid-fielders {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

#scoreView .step-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#scoreView .step-button {
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--white);
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 24px rgba(0, 0, 0, 0.22);
}

#scoreView .step-ball {
  background: linear-gradient(180deg, #48c774, #229455);
}

#scoreView .step-strike {
  background: linear-gradient(180deg, #f1797d, #c7434a);
}

#scoreView .step-foul {
  background: linear-gradient(180deg, #f4b17f, #cf7843);
}

#scoreView .step-inplay {
  border-color: rgba(245, 189, 33, 0.72);
  background: linear-gradient(180deg, #ffd867, var(--lion-gold));
  color: var(--lion-navy);
}

#scoreView .step-hit {
  background: linear-gradient(180deg, #43c4a5, #207f71);
}

#scoreView .step-out {
  background: linear-gradient(180deg, #5b6476, #2d3444);
}

#scoreView .step-error,
#scoreView .step-hbp {
  background: linear-gradient(180deg, #f2b05d, #c56d25);
}

#scoreView .step-neutral,
#scoreView .step-button-more {
  background: linear-gradient(180deg, #445575, #202a42);
}

#scoreView .spray-instruction-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
}

#scoreView .spray-instruction-card strong {
  color: var(--lion-gold);
  font-size: 1.15rem;
}

#scoreView .runner-decision-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
}

#scoreView .runner-decision-card strong {
  display: block;
  color: var(--white);
}

#scoreView .runner-decision-card span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
}

#scoreView .runner-decision-card em {
  display: inline-block;
  margin-top: 5px;
  border: 1px solid rgba(245, 189, 33, 0.22);
  border-radius: 8px;
  padding: 3px 7px;
  background: rgba(245, 189, 33, 0.1);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

#scoreView .runner-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

#scoreView .runner-choice {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-weight: 900;
}

#scoreView .runner-choice.is-selected {
  border-color: var(--lion-gold);
  background: var(--lion-gold);
  color: var(--lion-navy);
}

#scoreView .runner-choice.is-out:not(.is-selected) {
  border-color: rgba(255, 138, 143, 0.32);
  color: #ffb0b4;
}

#scoreView .confirm-play-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

#scoreView .confirm-play-button {
  min-width: 180px;
  min-height: 46px;
}

#scoreView .special-action-group {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

#scoreView .special-action-group > span,
#scoreView .special-action-empty {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 900;
}

#scoreView .step-grid-special {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#scoreView .score-form .auto-score {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

#scoreView .score-form label,
#scoreView .score-form label.wide {
  color: rgba(255, 255, 255, 0.82);
}

#scoreView .score-form input {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

#scoreView .score-form .secondary-action,
#scoreView .runner-play-grid .primary-action {
  border-color: rgba(245, 189, 33, 0.38);
  background: rgba(245, 189, 33, 0.16);
  color: var(--white);
}

#scoreView .play-panel {
  border: 1px solid rgba(245, 189, 33, 0.2);
  background: linear-gradient(180deg, rgba(9, 15, 38, 0.98), rgba(4, 8, 24, 0.98));
  color: var(--white);
  overflow: auto;
}

#scoreView .play-panel .mini-head h3,
#scoreView .play-panel .mini-head span {
  color: var(--white);
}

#scoreView .lineup-list li {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

#scoreView .lineup-list li strong {
  color: var(--white);
}

#scoreView .lineup-list li .player-meta {
  color: rgba(255, 255, 255, 0.72);
}

#scoreView .opponent-lineup-row {
  display: grid;
  grid-template-columns: 34px 72px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
}

#scoreView .opponent-lineup-row .player-meta {
  grid-column: 2 / -1;
}

#scoreView .opponent-lineup-row label {
  display: grid;
  gap: 3px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

#scoreView .opponent-lineup-row input {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(3, 10, 36, 0.66);
  color: var(--white);
  font-weight: 900;
}

#scoreView .lineup-list .is-current {
  border-color: rgba(245, 189, 33, 0.74);
  background: linear-gradient(135deg, rgba(245, 189, 33, 0.24), rgba(255, 255, 255, 0.08));
  box-shadow: inset 4px 0 0 var(--lion-gold);
}

#scoreView .lineup-list .is-current strong,
#scoreView .lineup-list .is-current .player-meta {
  color: var(--white);
}

#scoreView .sub-panel {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

#scoreView .sub-panel h3,
#scoreView .sub-panel label {
  color: var(--white);
}

#scoreView .sub-panel select,
#scoreView .opponent-lineup-editor textarea {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(3, 10, 36, 0.78);
  color: var(--white);
}

#scoreView .runner-base {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(3, 10, 36, 0.5);
  color: var(--white);
}

#scoreView .runner-base.is-occupied {
  border-color: var(--lion-gold);
  background: var(--lion-gold);
  color: var(--lion-navy);
}

#scoreView .steal-grid,
#scoreView .runner-play-grid {
  bottom: 96px;
}

#scoreView .runner-play-grid {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(3, 10, 36, 0.78);
  color: var(--white);
}

#scoreView .runner-play-grid > span {
  color: rgba(255, 255, 255, 0.72);
}

#scoreView .steal-grid .secondary-action,
#scoreView .runner-play-grid .secondary-action {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: #172033;
}

#scoreView .spray-panel .mini-head {
  display: none;
}

#scoreView .spray-panel {
  background:
    radial-gradient(ellipse at 50% 12%, rgba(45, 118, 72, 0.34), transparent 44%),
    linear-gradient(180deg, #07142b 0%, #081d22 18%, #052817 100%);
}

#scoreView .spray-chart {
  cursor: crosshair;
  background:
    radial-gradient(ellipse at 50% 17%, rgba(36, 120, 65, 0.44) 0 34%, transparent 35%),
    radial-gradient(ellipse at 50% 100%, rgba(245, 189, 33, 0.08) 0 12%, transparent 13%),
    linear-gradient(180deg, #0d6033 0%, #0a4928 62%, #062716 100%);
}

#scoreView .spray-chart:focus-visible {
  outline: 3px solid rgba(245, 189, 33, 0.62);
  outline-offset: -5px;
}

#scoreView .spray-chart::after {
  width: min(540px, 45%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), transparent 44%),
    #5a4a30;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    0 14px 36px rgba(0, 0, 0, 0.18);
}

#scoreView .spray-chart::before {
  background: #fffaf0;
  box-shadow: 0 0 0 4px rgba(245, 189, 33, 0.18);
}

#scoreView .foul-line {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

#scoreView .fence-line {
  border-color: rgba(255, 255, 255, 0.74);
  opacity: 0.68;
}

#scoreView .spray-label,
#scoreView .fielder-icon {
  display: none;
}

#scoreView .spray-base {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  background: #fffaf0;
  color: #071437;
  font-size: 0.64rem;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.28);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

#scoreView .spray-second-base {
  left: calc(50% - 18px);
}

#scoreView .spray-base.is-occupied {
  border-color: #fffaf0;
  background: var(--lion-gold);
  color: var(--lion-navy);
  box-shadow:
    0 0 0 5px rgba(245, 189, 33, 0.22),
    0 0 26px rgba(245, 189, 33, 0.62),
    0 12px 24px rgba(0, 0, 0, 0.32);
}

#scoreView .spray-dot.pending {
  width: 30px;
  height: 30px;
  border-color: #fffaf0;
  background: var(--lion-gold);
  color: transparent;
  box-shadow:
    0 0 0 8px rgba(245, 189, 33, 0.2),
    0 0 26px rgba(245, 189, 33, 0.56),
    0 10px 22px rgba(0, 0, 0, 0.28);
  animation: sprayTap 220ms ease-out;
}

#scoreView .spray-dot.pending::after {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--lion-navy);
  content: "";
}

#scoreView .runner-base {
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  will-change: transform;
}

#scoreView .runner-base.is-occupied {
  box-shadow:
    0 0 0 5px rgba(245, 189, 33, 0.2),
    0 0 24px rgba(245, 189, 33, 0.44),
    0 12px 24px rgba(0, 0, 0, 0.24);
  animation: runnerSettle 220ms ease-out;
}

#scoreView .runner-base.is-pending-out {
  border-color: rgba(255, 138, 143, 0.88);
  background: rgba(255, 138, 143, 0.18);
  color: var(--white);
  animation: runnerOut 220ms ease-out;
}

#scoreView .step-grid-pitches {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

#scoreView .panel-secondary-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

#scoreView .panel-secondary-row .step-button-more {
  min-height: 42px;
  min-width: 148px;
  opacity: 0.88;
}

#scoreView .scoring-step-panel {
  gap: 10px;
  border-color: rgba(245, 189, 33, 0.36);
  background:
    radial-gradient(circle at 82% 0%, rgba(245, 189, 33, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(8, 18, 48, 0.98), rgba(3, 10, 32, 0.98));
}

#scoreView .step-button {
  min-height: 58px;
  letter-spacing: 0;
}

#scoreView .step-button:hover,
#scoreView .runner-choice:hover {
  transform: translateY(-1px);
}

#scoreView .spray-instruction-card {
  min-height: 56px;
  border-color: rgba(245, 189, 33, 0.22);
  background:
    linear-gradient(135deg, rgba(245, 189, 33, 0.12), rgba(255, 255, 255, 0.05));
}

#scoreView .runner-decision-card {
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 1fr);
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

#scoreView .runner-decision-card.is-auto {
  border-color: rgba(245, 189, 33, 0.26);
}

#scoreView .runner-decision-card.is-adjusted {
  border-color: rgba(102, 232, 142, 0.42);
}

#scoreView .runner-decision-card .runner-route {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

#scoreView .runner-decision-card .runner-auto-badge {
  border-color: rgba(245, 189, 33, 0.34);
  background: rgba(245, 189, 33, 0.15);
  color: var(--lion-gold);
}

#scoreView .runner-decision-card.is-adjusted .runner-auto-badge {
  border-color: rgba(102, 232, 142, 0.34);
  background: rgba(102, 232, 142, 0.12);
  color: #8ef5aa;
}

#scoreView .runner-choice-group {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(3, 10, 36, 0.38);
  gap: 0;
  justify-content: flex-start;
}

#scoreView .runner-choice {
  flex: 1 1 86px;
  min-height: 42px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: transparent;
}

#scoreView .runner-choice:last-child {
  border-right: 0;
}

#scoreView .runner-choice.is-selected {
  background: var(--lion-gold);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

#scoreView .runner-choice[data-runner-choice="home"].is-selected {
  animation: runnerScore 220ms ease-out;
}

@keyframes sprayTap {
  from {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(0.7);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes runnerSettle {
  from {
    opacity: 0.72;
    transform: translate(-50%, calc(-50% + 6px)) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes runnerOut {
  from {
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    transform: translate(-50%, -50%) scale(0.96);
  }
}

@keyframes runnerScore {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-3px);
  }
}

/* Field coordinate system: all scoring-field anchors use left/top percentages. */
#scoreView {
  --field-home-x: 50%;
  --field-home-y: 88%;
  --field-pitcher-x: 50%;
  --field-pitcher-y: 64%;
  --field-second-x: 50%;
  --field-second-y: 49%;
  --field-first-x: 66%;
  --field-first-y: 72%;
  --field-third-x: 34%;
  --field-third-y: 72%;
  --runner-first-x: 70%;
  --runner-first-y: 75%;
  --runner-second-x: 54%;
  --runner-second-y: 46%;
  --runner-third-x: 30%;
  --runner-third-y: 75%;
}

#scoreView .spray-chart {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 75%, #f2b64b 0 16%, transparent 16.4%),
    radial-gradient(ellipse at 50% 67%, #f2b64b 0 26%, transparent 26.4%),
    radial-gradient(ellipse at 50% 100%, #2b7a22 0 64%, #43a136 64.4% 100%);
}

#scoreView .spray-panel {
  border-color: rgba(245, 189, 33, 0.28);
  background:
    linear-gradient(180deg, #48a83a 0%, #33882d 58%, #247225 100%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

#scoreView .spray-chart::after {
  left: 31%;
  top: 49%;
  z-index: 0;
  width: 38%;
  height: 39%;
  transform: none;
  clip-path: polygon(50% 0, 100% 57%, 50% 100%, 0 57%);
  background:
    radial-gradient(circle at 50% 60%, #2f7f26 0 18%, transparent 18.4%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 46%),
    #f2b64b;
  box-shadow:
    inset 0 0 0 1px rgba(95, 70, 24, 0.18),
    0 12px 26px rgba(0, 0, 0, 0.18);
}

#scoreView .spray-chart::before {
  left: var(--field-home-x);
  top: var(--field-home-y);
  bottom: auto;
  z-index: 9;
  width: 22px;
  height: 22px;
  border-color: rgba(255, 255, 255, 0.92);
  border-radius: 3px;
  background: #fffaf0;
  box-shadow:
    0 0 0 3px rgba(240, 173, 63, 0.36),
    0 8px 18px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%) rotate(45deg);
}

#scoreView .infield-arc {
  display: block;
  left: 50%;
  top: 48%;
  bottom: auto;
  z-index: 2;
  width: 41%;
  height: 34%;
  transform: translate(-50%, 0);
  border: 0;
  border-radius: 0 0 999px 999px;
  background: #f2b64b;
  clip-path: ellipse(50% 72% at 50% 100%);
  opacity: 1;
}

#scoreView .outfield-arc {
  display: block;
  left: 50%;
  top: 4%;
  bottom: auto;
  z-index: 3;
  width: 84%;
  height: 44%;
  transform: translateX(-50%);
  border: 3px solid rgba(255, 224, 128, 0.86);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  opacity: 1;
}

#scoreView .spray-base,
#scoreView .fielder-icon,
#scoreView .spray-label,
#scoreView .runner-base,
#scoreView .runner-plate {
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}

#scoreView .spray-base {
  z-index: 8;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 3px;
  background: #fffaf0;
  color: transparent;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.28),
    0 8px 16px rgba(0, 0, 0, 0.22);
}

#scoreView .batter-face .mini-head,
#scoreView .opponent-face .mini-head {
  display: none;
}

#scoreView .pitch-panel.is-placing .batter-face .mini-head::after,
#scoreView .pitch-panel.is-runner-decision .batter-face .mini-head::after {
  content: none;
  display: none;
}

#scoreView .spray-first-base {
  left: var(--field-first-x);
  top: var(--field-first-y);
}

#scoreView .spray-second-base {
  left: var(--field-second-x);
  top: var(--field-second-y);
}

#scoreView .spray-third-base {
  left: var(--field-third-x);
  top: var(--field-third-y);
}

#scoreView .spray-base.is-occupied {
  transform: translate(-50%, -50%) scale(1.04);
}

#scoreView .fielder-icon {
  display: grid;
  z-index: 6;
  min-width: 34px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(3, 10, 36, 0.18);
  color: rgba(255, 255, 255, 0.48);
  opacity: 0.58;
}

#scoreView .fielder-p {
  left: var(--field-pitcher-x);
  top: var(--field-pitcher-y);
  min-width: 46px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f0ad3f;
  color: rgba(255, 255, 255, 0.82);
  opacity: 1;
  box-shadow:
    inset 0 0 0 1px rgba(139, 91, 22, 0.24),
    0 8px 16px rgba(0, 0, 0, 0.18);
}

#scoreView .fielder-c {
  display: none;
}

#scoreView .fielder-1b {
  left: 73%;
  top: 65%;
}

#scoreView .fielder-2b {
  left: 59%;
  top: 53%;
}

#scoreView .fielder-ss {
  left: 41%;
  top: 53%;
}

#scoreView .fielder-3b {
  left: 27%;
  top: 65%;
}

#scoreView .fielder-lf {
  left: 21%;
  top: 35%;
}

#scoreView .fielder-cf {
  left: 50%;
  top: 21%;
}

#scoreView .fielder-rf {
  left: 79%;
  top: 35%;
}

#scoreView .runner-panel,
#scoreView .base-tracker {
  pointer-events: none;
}

#scoreView .runner-base {
  z-index: 8;
  width: 78px;
  min-height: 46px;
}

#scoreView .runner-base.is-occupied {
  width: 86px;
  min-height: 50px;
}

#scoreView .runner-first {
  left: var(--runner-first-x);
  top: var(--runner-first-y);
}

#scoreView .runner-second {
  left: var(--runner-second-x);
  top: var(--runner-second-y);
}

#scoreView .runner-third {
  left: var(--runner-third-x);
  top: var(--runner-third-y);
}

#scoreView .runner-plate {
  left: var(--field-home-x);
  top: 92%;
  display: none;
}

#scoreView .foul-line {
  bottom: auto;
  left: var(--field-home-x);
  top: var(--field-home-y);
  z-index: 4;
  height: 56%;
  width: 3px;
  transform-origin: top center;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

#scoreView .left-line {
  transform: rotate(128deg);
}

#scoreView .right-line {
  transform: rotate(-128deg);
}

#scoreView .fence-line {
  display: none;
}

#scoreView .spray-panel {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #091326 0%, #07101d 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

#scoreView .spray-chart {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 28%, rgba(245, 189, 33, 0.2), transparent 25%),
    radial-gradient(circle at 50% 58%, rgba(255, 210, 120, 0.11), transparent 42%),
    repeating-linear-gradient(24deg, rgba(255, 255, 255, 0.025) 0 12px, rgba(0, 0, 0, 0.035) 12px 24px),
    radial-gradient(circle at center, #1b4a43 0%, #10332e 48%, #0b1f27 100%);
}

#scoreView .spray-chart::after {
  left: 50%;
  top: 64%;
  z-index: 2;
  width: 34%;
  height: 34%;
  transform: translate(-50%, -50%) rotate(45deg);
  clip-path: none;
  background:
    linear-gradient(180deg, rgba(43, 74, 52, 0.94), rgba(28, 51, 38, 0.96));
  box-shadow: inset 0 0 34px rgba(255, 255, 255, 0.05);
}

#scoreView .spray-chart::before {
  left: 50%;
  top: auto;
  bottom: 11%;
  z-index: 10;
  width: 24px;
  height: 22px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.92);
  clip-path: polygon(50% 0%, 100% 35%, 82% 100%, 18% 100%, 0% 35%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
}

#scoreView .outfield-arc {
  display: block;
  left: 50%;
  top: 6%;
  z-index: 2;
  width: 84%;
  height: 78%;
  border: 2px solid rgba(215, 179, 122, 0.42);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  opacity: 1;
  transform: translateX(-50%);
}

#scoreView .fence-line {
  display: block;
  left: 50%;
  top: 16%;
  z-index: 1;
  width: 68%;
  height: 62%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  transform: translateX(-50%);
}

#scoreView .infield-arc {
  display: block;
  left: 50%;
  top: 57%;
  z-index: 1;
  width: 47%;
  height: 38%;
  border-radius: 50%;
  background: radial-gradient(circle at center, #b88b56 0%, #8f6842 100%);
  clip-path: none;
  opacity: 0.9;
  transform: translateX(-50%);
}

#scoreView .foul-line {
  z-index: 4;
  top: 73%;
  height: 2px;
  width: 42%;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
}

#scoreView .left-line {
  left: 8%;
  transform: rotate(-39deg);
  transform-origin: left center;
}

#scoreView .right-line {
  right: 8%;
  left: auto;
  transform: rotate(39deg);
  transform-origin: right center;
}

#scoreView .spray-base {
  z-index: 8;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.86);
  color: transparent;
  font-size: 0;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.22);
}

#scoreView .spray-second-base {
  left: 50%;
  top: 42%;
}

#scoreView .spray-third-base {
  left: 30%;
  top: 68%;
}

#scoreView .spray-first-base {
  left: 70%;
  top: 68%;
}

#scoreView .fielder-icon {
  display: none;
}

#scoreView .fielder-p {
  display: block;
  left: 50%;
  top: 60%;
  z-index: 9;
  width: 9%;
  min-width: 42px;
  height: 9%;
  min-height: 42px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, #b88b56 0%, #8f6842 100%);
  color: transparent;
  font-size: 0;
  opacity: 1;
  transform: translate(-50%, -50%);
}

#scoreView .fielder-p::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38%;
  height: 22%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.76);
  content: "";
  transform: translate(-50%, -50%);
}

#scoreView .spray-label {
  display: none;
}

#scoreView .field-runner-markers {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
}

#scoreView .field-runner-marker {
  position: absolute;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid #f0be62;
  border-radius: 50%;
  background: #141827;
  color: #f7d27d;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
  pointer-events: auto;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
}

#scoreView .field-runner-marker::after {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 15px;
  height: 15px;
  border-right: 2px solid #f0be62;
  border-bottom: 2px solid #f0be62;
  background: #141827;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

#scoreView .field-runner-marker.is-pending-out {
  border-color: #ff7b7b;
  color: #ffd0d0;
}

#scoreView .field-runner-first {
  left: 70%;
  top: 68%;
}

#scoreView .field-runner-second {
  left: 50%;
  top: 42%;
}

#scoreView .field-runner-third {
  left: 30%;
  top: 68%;
}

#scoreView .spray-markers {
  position: absolute;
  inset: 0;
  z-index: 16;
  pointer-events: none;
}

#scoreView .spray-dot {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #101827;
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}

#scoreView .spray-dot.hit {
  border-color: #f0be62;
  color: #f7d27d;
}

#scoreView .spray-dot.out {
  border-color: #ff8f8f;
  color: #ffd0d0;
}

#scoreView .spray-dot.pending {
  border-color: #86efac;
  color: #bbf7d0;
}

.stats-table td,
.stats-table td:first-child,
.stats-table th,
.stats-table th button {
  color: var(--text-soft);
}

.stats-table tbody td,
.stats-table tbody td:first-child {
  color: rgba(255, 255, 255, 0.86);
}

.box-score-team-summary strong,
.box-score-final strong,
.box-score-table tbody th {
  color: var(--white);
}

.box-score-team-summary span:last-child,
.box-score-final span,
.box-score-table td span,
.box-score-empty {
  color: var(--text-muted-dark);
}

.stats-table-wrap,
.stats-spray-shell,
.leader-card,
.metric-card,
.breakdown-card,
.box-score-card,
.box-score-tabs,
.scouting-card,
.coach-card {
  color: var(--white);
}

.coach-card p,
.coach-card li,
.scouting-card p,
.scouting-card li,
.scout-plan li {
  color: rgba(255, 255, 255, 0.82);
}

.coach-card .player-meta,
.scouting-card .player-meta,
.stats-subhead,
.table-note {
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 940px) {
  #scoreView .score-status-card {
    top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #scoreView .game-pitcher-card,
  #scoreView .current-batter-card,
  #scoreView .game-state-context {
    grid-column: 1 / -1;
  }

  #scoreView .spray-panel,
  #scoreView .spray-chart,
  #scoreView .pitch-panel {
    min-height: 600px;
  }
}

@media (max-width: 700px) {
  .box-score-summary-grid {
    grid-template-columns: 1fr;
  }

  .box-score-final {
    order: -1;
  }

  #scoreView .spray-panel,
  #scoreView .spray-chart,
  #scoreView .pitch-panel {
    min-height: 560px;
  }

  #scoreView .pitch-buttons,
  #scoreView .outcome-face {
    bottom: 20px;
    width: calc(100% - 22px);
  }

  #scoreView .game-pitcher-card {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  #scoreView .current-batter-card {
    grid-template-columns: 1fr minmax(72px, 0.35fr);
  }

  #scoreView .pitch-trail {
    bottom: 108px;
  }

  #scoreView .step-grid-pitches,
  #scoreView .step-grid-outcomes,
  #scoreView .step-grid-opponent,
  #scoreView .step-grid-fielders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #scoreView .panel-secondary-row {
    justify-content: stretch;
  }

  #scoreView .panel-secondary-row .step-button-more {
    width: 100%;
  }

  #scoreView .runner-decision-card {
    grid-template-columns: 1fr;
  }

  .upcoming-game-card {
    grid-template-columns: 1fr;
  }

  .upcoming-scout-button {
    width: 100%;
  }

  #scoreView .runner-choice-group,
  #scoreView .confirm-play-row,
  #scoreView .scoring-step-head {
    justify-content: stretch;
  }
}

.weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 7px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    rgba(3, 10, 36, 0.52);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 850;
}

.weather-chip strong {
  color: var(--white);
}

.weather-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(245, 189, 33, 0.16);
  color: var(--lion-gold);
  font-size: 1rem;
}

#rosterView select,
#statsView .stats-spray-shell select,
#scorebookView select,
#boxScoreView select {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
    rgba(3, 10, 36, 0.82);
  color: var(--white);
  font-weight: 850;
}

#rosterView select option,
#statsView .stats-spray-shell select option,
#scorebookView select option,
#boxScoreView select option {
  background: #151a2d;
  color: var(--white);
}

.roster-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1220px) {
  .roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .roster-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  #scoreView.is-visible {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 10px;
    height: calc(100dvh - 82px);
    margin-bottom: 0;
    overflow: hidden;
  }

  #scoreView .section-head {
    margin-bottom: 0;
  }

  #scoreView .score-grid {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    grid-template-areas: "sidebar main";
    align-items: stretch;
    gap: 14px;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  #scoreView .play-panel {
    grid-area: sidebar;
    position: relative;
    top: auto;
    display: block;
    min-height: 0;
    height: 100%;
    max-height: none;
    overflow: hidden auto;
    overscroll-behavior: contain;
  }

  #scoreView .lineup-list {
    margin-bottom: 12px;
  }

  #scoreView .play-feed {
    max-height: none;
  }

  #scoreView .scorer-stack {
    grid-area: main;
    display: grid;
    grid-template-areas:
      "field"
      "panel"
      "form";
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 10px;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  #scoreView .spray-panel,
  #scoreView .pitch-panel,
  #scoreView .runner-panel {
    grid-area: field;
    min-height: 0;
    height: 100%;
  }

  #scoreView .spray-chart {
    min-height: 0;
    height: 100%;
  }

#scoreView .pitch-panel {
  z-index: 6;
  pointer-events: none;
}

  #scoreView .scoring-step-panel {
    grid-area: panel;
    position: relative;
    bottom: auto;
    z-index: 11;
    min-height: 0;
    max-height: 220px;
  }

  #scoreView .scoring-step-head {
    gap: 10px;
  }

  #scoreView .scoring-step-head h3 {
    font-size: 0.98rem;
  }

  #scoreView .scoring-step-head span {
    font-size: 0.78rem;
  }

  #scoreView .step-button {
    min-height: 50px;
    padding: 8px 10px;
  }

  #scoreView .runner-decision-card {
    padding: 8px;
  }

  #scoreView .runner-choice {
    min-height: 36px;
    padding: 6px 9px;
  }

  #scoreView .score-form {
    grid-area: form;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 0;
    margin-top: 0;
    padding: 8px 10px;
  }

  #scoreView .score-form .auto-score {
    grid-column: 1;
    min-height: 32px;
    padding: 6px 9px;
    font-size: 0.78rem;
  }

  #scoreView .score-form label.wide {
    grid-column: 1;
  }

  #scoreView .score-form label.wide input {
    min-height: 32px;
    padding: 6px 9px;
  }

  #scoreView .score-form .button-row.wide {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    justify-content: flex-end;
  }

  #scoreView .score-form .button-row.wide .secondary-action {
    min-height: 34px;
    padding: 6px 10px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  html,
  body {
    min-width: 0;
    overflow-x: hidden;
  }

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

  .topbar {
    display: grid;
    grid-template-columns: minmax(220px, auto) auto;
    grid-template-areas:
      "brand version"
      "tabs tabs";
    align-items: center;
    gap: 9px 14px;
    padding: 10px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
  }

  .brand-block {
    grid-area: brand;
    min-width: 0;
  }

  .app-version {
    grid-area: version;
    justify-self: end;
  }

  .tabs {
    grid-area: tabs;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .tab {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 11px;
    font-size: 0.88rem;
  }

  main {
    gap: 18px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .view,
  .game-glass {
    width: min(100% - 22px, 1180px);
  }

  .section-head {
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
  }

  .section-head .button-row,
  .mini-head .button-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .game-form,
  .player-form,
  .scouting-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero-panel {
    grid-column: 1 / -1;
  }

  .games-grid,
  .archive-grid,
  .metrics-grid,
  .scouting-grid,
  .upcoming-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-grid,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .stats-table-wrap,
  .box-score-table-wrap,
  .scorebook-table-wrap {
    max-width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .stats-spray-shell,
  .scorebook-panel,
  .box-score-card,
  .lineup-builder,
  .game-form,
  .player-form {
    max-width: 100%;
  }

  .stats-table {
    min-width: 980px;
  }

  .scorebook-table {
    min-width: 980px;
  }

  .scorebook-table th,
  .scorebook-table td {
    min-width: 120px;
  }

  input,
  select,
  textarea {
    min-height: 42px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  .home-grid,
  .games-grid,
  .archive-grid,
  .metrics-grid,
  .scouting-grid,
  .upcoming-game-grid {
    grid-template-columns: 1fr;
  }

  .roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .player-card-content {
    padding: 18px;
  }

  .player-card {
    min-height: 520px;
  }

  .lineup-builder-row {
    grid-template-columns: 44px minmax(0, 1fr) minmax(88px, 0.3fr);
  }

  .lineup-builder-row .secondary-action {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .upcoming-game-card {
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  }

  #scoreView .spray-panel,
  #scoreView .spray-chart,
  #scoreView .pitch-panel {
    min-height: 540px;
  }
}

@media (min-width: 900px) and (max-width: 1199px) and (orientation: landscape) {
  #scoreView.is-visible {
    width: min(100% - 16px, 1180px);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    height: calc(100dvh - 112px);
  }

  #scoreView > .section-head {
    display: none;
  }

  #scoreView .score-status-card {
    margin-bottom: 0;
    position: relative;
    top: auto;
  }

  #scoreView .score-grid {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 10px;
  }

  #scoreView .spray-panel,
  #scoreView .spray-chart,
  #scoreView .pitch-panel {
    min-height: 0;
  }

  #scoreView .play-panel {
    padding: 10px;
  }

  #scoreView .lineup-list li {
    min-height: 38px;
    padding: 7px 8px;
  }

  #scoreView .sub-panel {
    padding: 8px;
  }

  #scoreView .scorer-stack {
    gap: 8px;
  }

  #scoreView .scoring-step-panel {
    max-height: 188px;
    padding: 10px;
  }

  #scoreView .scoring-step-head {
    align-items: center;
  }

  #scoreView .scoring-step-head h3 {
    font-size: 0.94rem;
  }

  #scoreView .scoring-step-body {
    max-height: 118px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  #scoreView .step-grid-pitches,
  #scoreView .step-grid-outcomes,
  #scoreView .step-grid-opponent {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  #scoreView .step-grid-fielders {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }

  #scoreView .step-button {
    min-height: 44px;
    padding: 7px 8px;
    font-size: 0.86rem;
  }

  #scoreView .runner-decision-card {
    grid-template-columns: minmax(140px, 0.3fr) minmax(0, 1fr);
    gap: 8px;
  }

  #scoreView .score-form {
    grid-template-columns: minmax(220px, 1fr) auto;
    padding: 7px 9px;
  }

  #scoreView .score-form .auto-score {
    min-height: 30px;
    padding: 5px 8px;
  }

  #scoreView .score-form label.wide input {
    min-height: 30px;
  }

  #scoreView .score-form .button-row.wide .secondary-action {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 0.82rem;
  }

  .roster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .player-card-content {
    padding: 18px;
  }

  .player-card .stat-strip {
    gap: 7px;
  }

  .game-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lineup-builder-row {
    grid-template-columns: 44px minmax(0, 1fr) 92px auto;
  }
}

/* Layered live-field visual shell for the Score Game spray chart. */
#scoreView .spray-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: transparent;
  box-shadow: none;
}

#scoreView .spray-chart {
  position: relative;
  width: 100%;
  max-width: 980px;
  min-height: 0 !important;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

#scoreView .spray-chart > * {
  position: absolute;
}

#scoreView .spray-chart::before,
#scoreView .spray-chart::after {
  content: none;
}

#scoreView .field-layer {
  position: absolute;
  inset: 0;
}

#scoreView .field-background {
  z-index: 1;
  pointer-events: none;
}

#scoreView .field-background-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: brightness(1.24) saturate(1.22);
}

#scoreView .position-marker-layer {
  z-index: 11;
  pointer-events: none;
  display: none;
}

#scoreView .spray-chart-overlay {
  z-index: 17;
  pointer-events: none;
}

#scoreView .base-runners-overlay {
  z-index: 18;
  pointer-events: auto;
}

#scoreView .field-background > *,
#scoreView .position-marker-layer > *,
#scoreView .spray-chart-overlay > *,
#scoreView .base-runners-overlay > * {
  position: absolute;
}

#scoreView .field-background::before {
  content: none;
}

#scoreView .field-background::after {
  content: none;
}

#scoreView .position-marker-layer .plate-label {
  display: none;
}

#scoreView .position-marker-layer .plate-label::before {
  content: none;
}

#scoreView .outfield-arc,
#scoreView .fence-line,
#scoreView .infield-arc,
#scoreView .foul-line {
  display: none;
}

#scoreView .field-runner-markers {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: auto;
}

#scoreView .field-runner-marker {
  position: absolute;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 220, 132, 0.98);
  border-radius: 50%;
  background: #0d1524;
  color: #ffe8ae;
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 950;
  line-height: 1;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 0 0 4px rgba(255, 206, 97, 0.22),
    0 10px 18px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(255, 197, 79, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translate(-50%, -50%);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}

#scoreView .field-runner-marker::after {
  content: none;
}

#scoreView .field-runner-marker:hover,
#scoreView .field-runner-marker:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow:
    0 0 0 6px rgba(255, 206, 97, 0.28),
    0 12px 22px rgba(0, 0, 0, 0.36),
    0 0 26px rgba(255, 197, 79, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  outline: none;
}

#scoreView .field-runner-marker.is-selected {
  border-color: #fff3c8;
  color: #fff6dc;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow:
    0 0 0 6px rgba(255, 220, 132, 0.34),
    0 14px 24px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 220, 132, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

#scoreView .field-runner-second {
  left: 50%;
  top: 38%;
}

#scoreView .field-runner-third {
  left: 29%;
  top: 64.5%;
}

#scoreView .field-runner-first {
  left: 71%;
  top: 64.5%;
}

#scoreView .field-batter-marker {
  left: 50%;
  top: 86%;
  cursor: default;
  pointer-events: none;
}

#scoreView .field-batter-marker:hover,
#scoreView .field-batter-marker:focus-visible {
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 4px rgba(255, 206, 97, 0.22),
    0 10px 18px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(255, 197, 79, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#scoreView .field-runner-marker.is-pending-out {
  border-color: rgba(255, 128, 128, 0.96);
  color: #ffe2e2;
  box-shadow:
    0 0 0 4px rgba(255, 128, 128, 0.18),
    0 10px 18px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(255, 128, 128, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

#scoreView .steal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#scoreView .steal-grid .secondary-action {
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
}

#scoreView .steal-grid .secondary-action:disabled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.42);
  opacity: 1;
}

/* Final score-view runner action shell: keep the field interactive, but surface the SB/CS/PO row above it. */
#scoreView .runner-panel {
  pointer-events: none;
  z-index: 12;
}

#scoreView .runner-panel .mini-head,
#scoreView .runner-panel .steal-grid {
  pointer-events: auto;
  z-index: 13;
}

#scoreView .runner-panel .mini-head {
  display: none;
}

#scoreView .steal-grid {
  display: none;
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 18px;
  width: min(420px, calc(100% - 24px));
  transform: translateX(-50%);
}

#scoreView .steal-grid button:disabled {
  display: block;
}

#scoreView .runner-action-group > span {
  color: rgba(255, 255, 255, 0.78);
}

#scoreView .runner-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#scoreView .step-safe {
  background: linear-gradient(180deg, #4acf7c, #249756);
}

#scoreView .step-danger {
  background: linear-gradient(180deg, #ef767c, #bd3747);
}

#scoreView .scoring-step-panel[data-step="runner_action"] .scoring-step-head .eyebrow {
  color: rgba(255, 214, 102, 0.84);
}

#scoreView .scoring-step-panel[data-step="runner_action"] .step-button {
  min-height: 72px;
  font-size: 1.02rem;
}

#scoreView .scoring-step-panel[data-step="runner_action"] .step-button:disabled {
  opacity: 0.48;
}

#scoreView .spray-markers {
  position: absolute;
  inset: 0;
  z-index: 17;
  pointer-events: none;
}

#scoreView .spray-dot {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: #111827;
  color: #f8fafc;
  font-size: 0.64rem;
  font-weight: 950;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.34);
}

#scoreView .spray-dot.hit {
  border-color: #f0be62;
  color: #f7d27d;
}

#scoreView .spray-dot.out {
  border-color: #ff8f8f;
  color: #ffd0d0;
}

#scoreView .spray-dot.pending {
  width: 30px;
  height: 30px;
  border-color: #86efac;
  color: #bbf7d0;
}
