:root {
  color-scheme: light;
  --bg: #eef2f8;
  --paper: #fff;
  --ink: #172a48;
  --muted: #52647e;
  --line: #d9e1ed;
  --accent: #164baa;
  --soft: #eaf0fb;
  --highlight: #b6410f;
  --stripe: #ff762e;
  --radius: 12px;
  --row: 44px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

* { box-sizing: border-box; }
.scores-heading { margin: 28px 0; }
.scores-heading h1 { margin: 6px 0; font-size: clamp(40px, 6vw, 60px); letter-spacing: -2px; line-height: 1.1; }
.scores-heading > p:last-child { color: var(--muted); font-size: 13px; }
.scores-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.day-nav, .score-filters { display: flex; align-items: center; gap: 4px; }
.day-nav a, .score-filters button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font: inherit; font-size: 13px; font-weight: 650; text-decoration: none; color: var(--muted); cursor: pointer; }
.day-nav > span { min-width: 65px; text-align: center; font-size: 13px; font-weight: 650; }
.score-filters { padding: 4px; border-radius: 9px; background: #e5ebf5; }
.score-filters button { background: transparent; border-color: transparent; }
.score-filters button[aria-pressed=true] { color: var(--accent); background: var(--paper); }
.scoreboard-section { margin: 0 0 26px; }
.scoreboard-section > h2 { margin: 0 0 10px; font-size: 14px; font-weight: 650; }
.scoreboard-section > h2 > span { margin-left: 10px; font-size: 10px; color: var(--highlight); text-transform: uppercase; letter-spacing: 1px; }
.scoreboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.score-summary { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--paper); text-decoration: none; }
.score-summary:hover { color: var(--ink); text-decoration: none; border-color: #9bafd0; box-shadow: 0 4px 16px #172a4810; }
.summary-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 18px; min-height: 47px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.summary-status { font-weight: 750; color: var(--ink); }
.score-summary[data-state=live] .summary-meta { background: #123b86; color: #d5e2ff; border-top: 3px solid var(--stripe); padding-top: 10px; }
.score-summary[data-state=live] .summary-status { color: #ffb17d; }
.summary-teams { padding: 16px 18px; }
.summary-team { display: grid; grid-template-columns: 35px minmax(0, 1fr) 28px; align-items: center; gap: 8px; min-height: 40px; }
.summary-code { font-size: 11px; font-weight: 650; color: var(--muted); }
.summary-name { font-size: 14px; overflow-wrap: anywhere; }
.summary-runs { font-size: 26px; text-align: right; }
.summary-team.winner .summary-name, .summary-team.winner .summary-runs { font-weight: 750; }
.summary-detail { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 34px 14px 18px; margin-top: auto; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.summary-arrow { position: absolute; right: 16px; bottom: 16px; }
.pinned-games .scoreboard-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.pinned-games .score-summary { border-top: 3px solid var(--stripe); }
.pinned-feature + .pinned-feature { margin-top: 18px; }
.pinned-feature .preview-probables { margin-top: 16px; }
.pinned-games .pinned-feature ~ .scoreboard-grid { display: none; }
.pinned-games .summary-teams { width: 100%; max-width: 580px; }
.scores-update { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.scores-update .retry-button { margin: 0; }
@media (max-width: 1000px) { .scoreboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .pinned-feature { display: none; }
  .pinned-games .pinned-feature ~ .scoreboard-grid { display: grid; }
  .scoreboard-grid { grid-template-columns: 1fr; gap: 14px; }
  .scores-toolbar { flex-direction: column; align-items: stretch; gap: 14px; }
  .day-nav > a, .score-filters > button { flex: 1; }
  .summary-name { font-size: 15px; }
  .scores-heading { margin-top: 18px; }
}
html { scroll-padding-top: 20px; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); text-decoration: underline; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
abbr[title] { text-decoration: none; cursor: help; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; padding: 12px; background: var(--paper); }
.skip-link:focus { top: 10px; }

.site-header, .page, .site-footer { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; gap: 24px; min-height: 104px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; color: #123b86; text-decoration: none; font-size: 34px; font-weight: 850; letter-spacing: -1.8px; }
.brand-mark { width: 34px; height: 34px; flex: none; color: #bc400b; }
.brand-period { color: #bc400b; }
.header-label { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: 1.7px; text-transform: uppercase; }
.site-nav { display: flex; gap: 18px; margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; text-decoration: none; }
.site-nav a[aria-current] { color: var(--accent); box-shadow: inset 0 -2px var(--highlight); font-weight: 750; }
@media (max-width: 600px) {
  .site-header { flex-wrap: wrap; gap: 8px 12px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 12px; }
  .site-header .update-notice { flex-basis: 100%; max-width: none; margin-bottom: 8px; }
}
.update-notice { margin: 0 0 0 auto; max-width: 15rem; color: var(--highlight); font-size: 13px; text-align: right; }
.update-notice:empty { display: none; }
.page { min-height: calc(100vh - 200px); padding-bottom: 32px; }
.page-eyebrow { display: flex; justify-content: space-between; gap: 12px; margin: 26px 0 14px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: 1.3px; text-transform: uppercase; }

.loading, .error-state, .empty-state { margin: 16px 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.error-state h1, .empty-state h1 { font-size: 24px; }
.retry-button, .refresh-button { min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; color: var(--ink); background: var(--paper); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
button:hover { border-color: var(--accent); }
button:disabled { cursor: wait; opacity: .65; }
.retry-button { display: block; margin-top: 16px; }

.score-card { overflow: hidden; border: 0; border-top: 4px solid var(--stripe); border-radius: var(--radius); color: #fff; background: #123b86; }
.score-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 24px; border-bottom: 1px solid #365b98; color: #d5e2ff; font-size: 12px; }
.game-status { display: flex; align-items: center; gap: 8px; color: #ffb17d; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.game-status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.score-actions { display: flex; align-items: center; gap: 14px; }
.score-venue { color: #d5e2ff; }
.refresh-button { min-height: 44px; padding: 5px 10px; border-color: #5273ac; color: #fff; background: transparent; font-size: 11px; }
.refresh-button:hover { border-color: #ffb17d; }
a.refresh-button { display: inline-flex; align-items: center; text-decoration: none; }
a.refresh-button:hover { color: #fff; text-decoration: none; }
.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 28px 30px; }
.team { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; min-width: 0; }
.team-code { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #5273ac; font-size: 14px; font-weight: 800; letter-spacing: 1px; }
.team-followed .team-code { border-color: transparent; color: #142b50; background: var(--stripe); }
.team-name { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.4; }
.team-name strong { display: block; font-size: 24px; font-weight: 750; letter-spacing: -.7px; }
.team-record { margin: 3px 0 0; color: #c5d6f6; font-size: 12px; }
.team-score { margin: 0; font-size: 70px; font-weight: 650; letter-spacing: -4px; line-height: 1; }
.team-winner .team-score { color: #ffb17d; }
.team-score:empty { display: none; }
.versus { color: #7d99c8; font-size: 24px; font-weight: 300; }
.score-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; min-height: 45px; padding: 13px 24px; border-top: 1px solid #365b98; color: #d5e2ff; font-size: 12px; }
.score-bottom strong { margin-left: 12px; color: #fff; }
.score-bottom strong:first-child { margin-left: 0; }
.live-situation { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px; padding: 18px; border-top: 1px solid #365b98; background: #0f3273; font-size: 14px; }
.count-line { margin: 4px 0 0; color: #d5e2ff; font-size: 12px; }
.live-matchup { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px 12px; margin: 0; }
.live-matchup dt { color: #d5e2ff; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.live-matchup dd { margin: 0; font-weight: 650; }
.live-matchup a { text-decoration: none; }
.live-matchup a:hover { color: #fff; text-decoration: underline; }
.diamond {
  display: grid;
  grid-template-areas:
    ".     second ."
    "third .      first";
  gap: 9px;
  place-items: center;
}
.base { width: 12px; height: 12px; border: 2px solid #d5e2ff; background: transparent; transform: rotate(45deg); }
.base.occupied { border-color: var(--stripe); background: var(--stripe); }
.base-first { grid-area: first; }
.base-second { grid-area: second; }
.base-third { grid-area: third; }

.line-section { margin-top: 16px; border-block: 1px solid var(--line); }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; isolation: isolate; scrollbar-width: thin; scrollbar-color: var(--line) var(--paper); }
table { width: 100%; min-width: 42rem; border-collapse: separate; border-spacing: 0; color: var(--ink); background: var(--paper); font-size: 14px; white-space: nowrap; }
th, td { height: var(--row); padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: right; line-height: 1.2; }
thead th { height: 36px; color: var(--muted); background: var(--soft); font-size: 11px; font-weight: 500; letter-spacing: .35px; }
tbody th { font-weight: 500; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover > * { background: var(--soft); }
th:first-child, td:first-child { position: sticky; left: 0; z-index: 1; min-width: 180px; border-right: 1px solid var(--line); text-align: left; background: var(--paper); }
thead th:first-child { z-index: 2; background: var(--soft); }
.innings { min-width: 38rem; font-size: 13px; }
.innings th, .innings td { padding: 10px 12px; }
.innings tr > :first-child { min-width: 82px; font-weight: 750; }
.innings tr > :nth-last-child(-n+3) { background: var(--soft); font-weight: 750; }
.innings tr > :nth-last-child(3) { border-left: 1px solid var(--line); }
.player-cell a { display: flex; align-items: center; min-height: 44px; margin: -9px -12px; padding: 9px 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.player-cell a:hover { color: var(--accent); text-decoration: underline; }
.player-cell.substitute a { padding-left: 26px; font-weight: 450; }
tr.featured > th { box-shadow: inset 3px 0 var(--accent); }
.player-cell small { color: var(--muted); font-size: 11px; font-weight: 500; }
.totals-row > * { background: var(--soft); font-weight: 750; }
.totals-row > :first-child { background: var(--soft); }
.batting-notes { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.batting-notes strong { margin-left: 10px; color: var(--ink); }
.batting-notes strong:first-child { margin-left: 0; }

.section-nav { display: flex; gap: 28px; margin-top: 20px; border-bottom: 1px solid var(--line); }
.section-nav a { display: flex; align-items: center; min-height: 48px; gap: 10px; text-decoration: none; font-size: 13px; font-weight: 650; }
.section-nav a:first-child { border-bottom: 2px solid var(--accent); color: var(--accent); }
.section-nav a[href="#next"] { margin-left: auto; color: var(--muted); }
.scroll-hint { display: none; margin: 16px 0; color: var(--muted); font-size: 11px; }
.stat-section { overflow: hidden; margin: 30px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.section-title h2 { margin: 0; font-size: 18px; font-weight: 750; line-height: 1.25; letter-spacing: -.35px; }
.section-title > span { color: var(--muted); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.game-notes { color: var(--muted); font-size: 12px; }
.notes-list { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.notes-list strong { color: var(--ink); }

.preview-probables { margin-top: 30px; border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--soft); }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.preview-probables h2 { margin: 5px 0; font-size: 20px; }
.preview-probables { padding: 24px; }
.preview-probables > p { margin: 0 0 8px; }
.preview-probables h2 { font-weight: 400; }
.preview-probables h2 a { color: inherit; font-weight: 750; text-decoration: none; }
.preview-probables h2 a:hover { color: var(--accent); text-decoration: underline; }
.probable-stats { font-weight: 400; }
.updated-at { margin: 24px 0 0; color: var(--muted); font-size: 12px; text-align: right; }

.back-link { display: flex; align-items: center; min-height: 60px; color: var(--muted); font-size: 13px; text-decoration: none; }
.player-hero { padding: 30px; border: 1px solid var(--line); border-top: 4px solid var(--stripe); border-radius: var(--radius); background: var(--paper); }
.player-kicker { display: flex; align-items: center; justify-content: space-between; }
.position { padding: 5px 10px; border: 1px solid var(--line); font-size: 12px; font-weight: 750; }
.player-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.player-heading h1 { min-width: 0; margin: 20px 0 12px; font-size: clamp(38px, 5vw, 64px); font-weight: 750; letter-spacing: -2.7px; line-height: 1.04; overflow-wrap: anywhere; }
.player-heading h1 strong { display: block; font-weight: inherit; }
.player-number { flex: none; color: #e0e9f9; font-size: 110px; font-weight: 700; letter-spacing: -8px; line-height: 1; }
.bio { margin: 0 0 30px; color: var(--muted); font-size: 13px; }
.season-label { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.season-label span:last-child { letter-spacing: 0; text-transform: none; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 20px 0 0; }
.hero-stats + .hero-stats { padding-top: 20px; border-top: 1px solid var(--line); }
.hero-stats > div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-stats > div:first-child { padding-left: 0; border: 0; }
.hero-stats dt { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.hero-stats dd { margin: 3px 0 0; font-size: 40px; font-weight: 600; letter-spacing: -1.5px; }
.hero-stats > div.featured dd { color: var(--highlight); }
.player-page table tr > :first-child { min-width: 84px; }
.stats-table { min-width: 60rem; }
.fielding-table { min-width: 36rem; }
.stat-explain { padding: 6px 0 12px; }
.stat-explain > span { color: var(--muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.stat-explain dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 12px 0; }
.defense-explain dl { grid-template-columns: repeat(2, 1fr); }
.stat-explain dl > div { padding-top: 12px; border-top: 2px solid var(--line); }
.stat-explain dt { color: var(--muted); font-size: 12px; }
.stat-explain dd { margin: 6px 0; font-size: 27px; font-weight: 600; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

@media (max-width: 760px) {
  .site-header, .page, .site-footer { width: calc(100% - 32px); }
  .site-header { min-height: 80px; gap: 12px; }
  .brand { font-size: 28px; }
  .brand-mark { width: 29px; height: 29px; }
  .header-label { display: none; }
  .update-notice { max-width: 130px; font-size: 12px; }
  .page-eyebrow { margin-top: 20px; font-size: 9px; letter-spacing: 1px; }
  .page-eyebrow > span:last-child { display: none; }
  .score-meta { padding: 8px 16px; font-size: 11px; }
  .score-venue { display: none; }
  .matchup { gap: 12px; padding: 22px 18px; }
  .team { grid-template-columns: 1fr; gap: 8px; justify-items: center; text-align: center; }
  .team-code { width: auto; height: auto; min-height: 25px; padding: 3px 8px; font-size: 10px; }
  .team-name { font-size: 11px; }
  .team-name strong { font-size: 22px; }
  .team-record { font-size: 11px; }
  .team-score { margin-top: 3px; font-size: 64px; letter-spacing: -3px; }
  .versus { font-size: 20px; }
  .score-bottom { padding: 12px 16px; gap: 8px; font-size: 10px; }
  .live-situation { gap: 14px 18px; padding: 14px 12px; }
  .line-section { margin-top: 14px; }
  .innings th, .innings td { min-width: 31px; padding: 10px 9px; }
  .innings tr > :first-child { min-width: 64px; }
  .section-nav { gap: 24px; margin-top: 10px; }
  .section-nav a { font-size: 12px; }
  .scroll-hint { display: block; }
  .stat-section { margin: 24px 0; }
  .section-title { padding: 15px 12px; }
  .section-title h2 { font-size: 17px; }
  .section-title > span { display: none; }
  th, td { padding-inline: 10px; }
  th:first-child, td:first-child { min-width: 160px; }
  .player-cell a { margin-inline: -10px; padding-inline: 10px; }
  .player-cell.substitute a { padding-left: 24px; }
  .batting-notes { padding: 12px; font-size: 11px; }
  .preview-probables { padding: 20px; }
  .back-link { font-size: 12px; }
  .player-hero { padding: 22px 18px; }
  .player-heading h1 { font-size: 43px; letter-spacing: -1.5px; }
  .player-number { font-size: 76px; letter-spacing: -5px; }
  .bio { margin-bottom: 26px; font-size: 11px; }
  .season-label { font-size: 9px; }
  .hero-stats > div { padding-left: 12px; }
  .hero-stats dd { font-size: clamp(22px, 6.6vw, 31px); letter-spacing: -0.5px; }
  .hero-stats dt { font-size: 10px; }
  .stat-explain dl { gap: 12px; }
  .stat-explain dt { min-height: 32px; font-size: 11px; }
  .stat-explain dd { font-size: 25px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; padding-top: 20px; font-size: 10px; }
}

@media (max-width: 360px) {
  .site-header, .page, .site-footer { width: calc(100% - 24px); }
  .team-score { font-size: 56px; }
  .hero-stats > div { padding-left: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .base.occupied { border-color: Highlight; background: Highlight; }
  tr.featured > th { border-left: 3px solid; }
}
