/* SEC Baseball — editorial sports almanac aesthetic.
   Cream + deep ink + NCAA-blue accent; serif display, mono numbers, sans UI. */

:root {
  --bg: #f3efe6;
  --bg-2: #ebe6d9;
  --paper: #fbf9f4;
  --ink: #0f1820;
  --ink-2: #2c3a45;
  --muted: #74808a;
  --line: rgba(15, 24, 32, 0.12);
  --line-2: rgba(15, 24, 32, 0.22);
  --hover: rgba(15, 24, 32, 0.04);
  --accent: #0033a0;                  /* NCAA blue — primary accent */
  --accent-2: #00256f;
  --win: oklch(0.5 0.12 145);
  --loss: oklch(0.5 0.13 30);
  --ncaa-blue: var(--accent);         /* ranking chip tracks the primary accent */

  --font-serif: "DM Serif Display", "Big Caslon", "Hoefler Text", Georgia, serif;
  --font-sans: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --radius: 4px;
}

/* Dark mode — warm darks to keep the almanac feel; just overrides the palette
   vars, since the whole UI is built on them. Toggled via [data-theme] on <html>. */
:root[data-theme="dark"] {
  --bg: #15171a;
  --bg-2: #1d2024;
  --paper: #202529;
  --ink: #ece7db;
  --ink-2: #c4c9ce;
  --muted: #8b949d;
  --line: rgba(255, 255, 255, 0.13);
  --line-2: rgba(255, 255, 255, 0.26);
  --hover: rgba(255, 255, 255, 0.06);
  --accent: #3d7be0;                 /* brighter NCAA blue for the dark bg */
  --accent-2: #2f63c0;
  --win: oklch(0.72 0.14 145);
  --loss: oklch(0.7 0.16 30);
  /* --ncaa-blue inherits var(--accent) from :root, so it follows this too */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

.app { min-height: 100vh; display: flex; flex-direction: column; }

.container {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px 64px;
}

/* ─── Topbar ─── */
.topbar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 32px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.topbar__mark {
  color: var(--accent);
  font-size: 18px;
  transform: translateY(-1px);
}
.topbar__title { font-weight: 400; }
.topbar__title-thin { color: var(--muted); font-style: italic; font-size: 18px; }
.topbar__nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}
.topbar__link { cursor: pointer; padding: 4px 0; border-bottom: 2px solid transparent; transition: 120ms; }
.topbar__link--active { border-bottom-color: var(--accent); }
.topbar__link:hover { color: var(--ink); }
.topbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar__date {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.topbar__theme {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  color: var(--ink-2);
  transition: 120ms;
}
.topbar__theme:hover {
  background: var(--hover);
  border-color: var(--line-2);
  color: var(--accent);
}

/* ─── Display type ─── */
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 4px 0 8px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.bold { font-weight: 700; }
.small { font-size: 12px; }

/* ─── Monogram ─── */
.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.monogram span { position: relative; z-index: 1; }
.monogram--logo {
  background: transparent;
  box-shadow: none;
  padding: 2px;
}
.monogram--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ─── Loading / empty states ─── */
.loading-block {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Rank chip ─── */
.rank-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  color: var(--ncaa-blue);
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.rank-sm { font-size: 10px; }
.rank-md { font-size: 11px; }
.rank-lg { font-size: 13px; }
.rank-unranked {
  color: var(--muted);
  font-weight: 400;
}

/* ─── Standings ─── */
.standings__header { margin-bottom: 28px; }
.standings__sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.dot { opacity: 0.6; }

.standings__legend {
  display: flex;
  gap: 28px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
}
.legend-item { display: flex; align-items: center; gap: 8px; }

.legend-streak {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}
.legend-streak.win { color: var(--win); background: oklch(0.5 0.12 145 / 0.12); }
.legend-streak.loss { color: var(--loss); background: oklch(0.5 0.13 30 / 0.10); }

.table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.stand-table, .sched-table, .box-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  cursor: default;
  user-select: none;
}
.th--right { text-align: right; }
.th--left { text-align: left; }
.stand-table .th { cursor: pointer; }
.stand-table .th:hover { color: var(--ink); }
.th--active { color: var(--ink) !important; }
.th__sort { color: var(--accent); }

.td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.td--right { text-align: right; }
.td--pos {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 12px;
  width: 36px;
}
.td--chev {
  color: var(--muted);
  width: 24px;
  font-size: 18px;
  transition: 150ms;
}
.row { cursor: pointer; transition: 100ms; }
.row:hover { background: var(--hover); }
.row:hover .td--chev { color: var(--accent); transform: translateX(2px); }
.row:last-child .td { border-bottom: 0; }

.team-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.team-cell--sm { gap: 10px; }
.team-cell__name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.team-cell__city {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.standings__footer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  font-style: italic;
}

/* ─── Team Detail ─── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  transition: 120ms;
}
.back-link:hover { color: var(--accent); }
.back-link__arrow { font-size: 16px; }

.team-hero {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.team-hero__band {
  height: 6px;
  background: var(--team-color);
}
.team-hero__inner {
  display: flex;
  gap: 28px;
  padding: 28px 32px 32px;
  align-items: center;
}
.team-hero__text { flex: 1; }
.team-hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 6px;
}
.team-hero__name {
  font-size: 56px;
  margin: 0 0 18px;
}
.team-hero__stats {
  display: flex;
  gap: 40px;
}
.micro-stat__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.micro-stat__value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tabs {
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  gap: 4px;
}
.tab {
  padding: 12px 18px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: 120ms;
}
.tab:hover { color: var(--ink); }
.tab--active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.tab-spacer { flex: 1; }

/* Segmented control in tab bar (Team / Players) */
.segmented {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px;
  margin-bottom: 8px;
}
.segmented__btn {
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--muted);
  border-radius: 2px;
  transition: 100ms;
}
.segmented__btn:hover { color: var(--ink); }
.segmented__btn--active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 24, 32, 0.08);
}

/* Row holding the batting/pitching tabs (left) and Basic/Advanced toggle (right) */
.player-statsbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.player-statsbar .player-toggle { border-bottom: none; margin-bottom: 0; width: auto; }
.player-statsbar .segmented { margin-bottom: 6px; flex: none; }
.segmented--sm { padding: 2px; }
.segmented--sm .segmented__btn { padding: 4px 12px; font-size: 11px; }

/* Player batting/pitching toggle */
.player-toggle {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
  width: 100%;
}
.player-toggle__btn {
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: 120ms;
}
.player-toggle__btn:hover { color: var(--ink); }
.player-toggle__btn--active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.player-table { font-size: 13px; }
.player-table .th { padding: 8px 8px; font-size: 10px; letter-spacing: 0.08em; }
.player-table .td { padding: 8px 8px; }
.player-table .th--sortable { cursor: pointer; }
.player-table .th--sortable:hover { color: var(--ink); }

/* Stat header help tooltip (advanced columns) */
.th-help {
  position: relative;
  border-bottom: 1px dotted var(--line-2);
  cursor: help;
}
.th-tip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 220px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms;
  pointer-events: none;
}
.th-tip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 14px;
  border: 5px solid transparent;
  border-bottom-color: var(--ink);
}
.th-help:hover .th-tip,
.th-help:focus .th-tip { opacity: 1; visibility: visible; }
.player-name { font-weight: 600; }
.player-note { margin-top: 10px; }

/* ─── Schedule (continuous list) ─── */
.sched-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
}
.sched-summary__item {
  background: var(--paper);
  padding: 12px 16px;
}
.sched-summary__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.sched-summary__value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sched-list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.sched-row {
  display: grid;
  grid-template-columns: 90px 32px minmax(0, 1fr) 160px 24px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: 100ms;
  cursor: pointer;
}
.sched-row:last-child { border-bottom: 0; }
.sched-row:hover { background: var(--hover); }
.sched-row--upcoming { cursor: default; background: var(--bg-2); }
.sched-row--upcoming:hover { background: var(--bg-2); }

.sched-row__date {}
.sched-row__date-main {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.sched-row__date-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.sched-row__vs {}
.sched-row__vs-text {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.sched-row__opp {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sched-row__opp-text { min-width: 0; }
.sched-row__opp-name {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-row__opp-conf {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.sched-row__result {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}
.sched-row__score {
  font-size: 15px;
  font-weight: 600;
  min-width: 50px;
  text-align: right;
}
.sched-row__upcoming-pill {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px dashed var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

.sched-row__chev {
  color: var(--muted);
  font-size: 18px;
  text-align: right;
  transition: 120ms;
}
.sched-row:not(.sched-row--upcoming):hover .sched-row__chev {
  color: var(--accent);
  transform: translateX(2px);
}

.sched-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: linear-gradient(to right, var(--bg-2), var(--paper) 50%, var(--bg-2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sched-divider__line {
  flex: 1;
  height: 1px;
  background: var(--line-2);
}
.sched-divider__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.sched-divider--phase { padding: 14px 18px; }
.sched-divider--phase .sched-divider__label { font-size: 12px; letter-spacing: 0.2em; }

.result-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
}
.result-chip.win { background: var(--win); color: white; }
.result-chip.loss { background: var(--loss); color: white; }

/* ─── Scores (daily scoreboard) ─── */
.scores__header { margin-bottom: 18px; }

.scores__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  padding: 12px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.scores__arrow {
  font-size: 24px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 120ms;
}
.scores__arrow:hover:not(:disabled) {
  background: var(--hover);
  border-color: var(--line-2);
  color: var(--accent);
}
.scores__arrow:disabled { opacity: 0.3; cursor: default; }

.scores__date-wrap { position: relative; text-align: center; min-width: 260px; }
.scores__date-main { font-family: var(--font-serif); font-size: 24px; line-height: 1.1; }
.scores__date-sub {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
/* The native <select> is laid over the date label so any day is one click away. */
.scores__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.score-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  transition: 100ms;
  cursor: pointer;
}
.score-row:last-child { border-bottom: 0; }
.score-row:hover { background: var(--hover); }
.score-row--upcoming { cursor: default; background: var(--bg-2); }
.score-row--upcoming:hover { background: var(--bg-2); }

.score-row__final {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.score-row__time { font-size: 12px; color: var(--muted); }

.score-row__teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.score-row__team {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
}
.score-row__name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}
.score-row__num { font-size: 16px; font-weight: 700; text-align: right; }
.score-row__team--lose { color: var(--muted); }
.score-row__team--win .score-row__num { color: var(--accent); }

.score-row__chev {
  color: var(--muted);
  font-size: 18px;
  text-align: right;
  transition: 120ms;
}
.score-row:not(.score-row--upcoming):hover .score-row__chev {
  color: var(--accent);
  transform: translateX(2px);
}

/* ─── Player detail ─── */
.player-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  margin: 14px 0 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--team-color, var(--accent));
}
.player-hero__text { min-width: 0; }
.player-hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.player-hero__name { font-size: 44px; margin: 4px 0 0; }
.player-season { margin-bottom: 32px; }
.player-season__block { margin: 14px 0 18px; }
.player-season__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

/* clickable player names in tables */
.player-link { cursor: pointer; }
.player-link:hover { color: var(--accent); text-decoration: underline; }

/* ─── Stats ─── */
.stats-section { margin-bottom: 32px; }
.stat-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-grid--4 { grid-template-columns: repeat(4, 1fr); }
.stat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stat-cell {
  background: var(--paper);
  padding: 16px 18px;
}
.stat-cell__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.stat-cell__value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-cell__sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.leaders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.leader {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.leader__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.leader__pos {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 700;
}
.leader__note {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.leader__name {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 6px;
}
.leader__line {
  font-size: 12px;
  color: var(--ink-2);
}

/* ─── Game Detail ─── */
.game-hero {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.game-hero__matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
  margin: 12px 0 20px;
}
.team-score {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 6px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.team-score::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--c);
}
.team-score--win { background: var(--paper); }
.team-score__label {
  grid-column: 1 / 3;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.team-score__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.team-score__name {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1;
}
.team-score__rank { margin-top: 4px; }
.team-score__runs {
  grid-row: 2;
  /* Use the page ink (--ink-2), NOT the team's inline --ink, which is often
     white and invisible on the light background for the losing side. */
  color: var(--ink-2);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: 0.55;
  align-self: center;
}
/* Winning team's score in that team's own primary color (--c is set inline). */
.team-score--win .team-score__runs { opacity: 1; color: var(--c); }

.game-hero__mid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.game-hero__final {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.game-hero__time {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.game-hero__meta {
  display: flex;
  gap: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.game-hero__meta .muted {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}

.opp-card {
  margin-bottom: 24px;
}
.opp-card__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--c);
  border-radius: var(--radius);
}
.opp-card__body { flex: 1; }
.opp-card__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.opp-card__name {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.05;
}
.opp-card__meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.opp-card__cta {
  font-size: 13px;
  color: var(--accent);
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  font-weight: 600;
  transition: 120ms;
}
.opp-card__cta:hover { background: var(--accent); color: white; }

.boxscore { margin-bottom: 28px; }
.boxscore__wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}
.box-table {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  table-layout: auto;
}
.box-table thead .th {
  background: var(--bg-2);
  padding: 8px 10px;
}
.box-table .td {
  padding: 9px 10px;
  font-size: 13px;
}
.box-team {
  display: flex;
  align-items: center;
  gap: 8px;
}
.box-team__name { font-weight: 600; }
.row-totals .td {
  font-weight: 700;
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
}

.boxscore-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── Play-by-play ─── */
.pbp {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pbp__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.pbp__row:last-child { border-bottom: 0; }
.pbp__row:nth-child(even) { background: var(--bg-2); }
.pbp__text { color: var(--ink-2); }
.pbp__score {
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
}

.notes {
  list-style: none;
  padding: 16px 20px;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink-2);
}
.notes li {
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}
.notes li:last-child { border-bottom: 0; }

/* ─── Footer ─── */
.footer {
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  background: var(--paper);
  font-style: italic;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .display { font-size: 44px; }
  .team-hero__name { font-size: 36px; }
  .team-hero__inner { flex-direction: column; align-items: flex-start; padding: 22px; }
  .team-hero__stats { gap: 22px; flex-wrap: wrap; }
  .sched-row {
    grid-template-columns: 80px 1fr auto;
    grid-template-areas:
      "date opp result"
      "date opp result";
    row-gap: 4px;
  }
  .sched-row__vs { display: none; }
  .sched-row__chev { display: none; }
  .sched-summary { grid-template-columns: repeat(2, 1fr); }
  .stat-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .leaders { grid-template-columns: 1fr 1fr; }
  .game-hero__matchup { grid-template-columns: 1fr; }
  .boxscore-cols { grid-template-columns: 1fr; }
  .topbar__nav { display: none; }
  .container { padding: 20px 18px 48px; }
  .topbar__date { display: none; }
  .cmp-hero { height: auto; flex-direction: column; }
  .cmp-hero__half { position: relative; width: 100%; height: 130px; clip-path: none !important; }
  .cmp-hero__half.right .cmp-hero__content { flex-direction: row; text-align: left; }
  .cmp-vs { width: 64px; height: 64px; }
  .cmp-tabs { overflow-x: auto; }
}

/* ─── Compare ─── */
.cmp-top { margin-bottom: 22px; }
.cmp-modes {
  display: inline-flex;
  margin-top: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.cmp-mode {
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 999px;
  transition: 120ms;
}
.cmp-mode:hover { color: var(--ink); }
.cmp-mode.active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }

/* picker bar */
.cmp-pickers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.cmp-side { display: flex; flex-direction: column; gap: 8px; }
.cmp-picker { position: relative; }
.cmp-picker--mini .cmp-picker__btn { padding: 9px 12px 9px 16px; }
.cmp-picker--mini .cmp-picker__bar { width: 4px; }
.cmp-picker--mini .cmp-picker__value {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cmp-picker__btn {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 16px 18px 16px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}
.cmp-picker__btn:hover { border-color: var(--line-2); }
.cmp-picker__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); border-radius: var(--radius) 0 0 var(--radius); }
.cmp-picker__value { font-family: var(--font-serif); font-size: 21px; }
.cmp-picker__sub { font-size: 12px; color: var(--muted); letter-spacing: 0.03em; }
.cmp-picker__caret { margin-left: auto; color: var(--muted); align-self: center; }
.cmp-picker__pop {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.cmp-picker__search {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  font: inherit;
  outline: none;
}
.cmp-picker__list { max-height: 320px; overflow-y: auto; }
.cmp-picker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.cmp-picker__item:hover { background: var(--hover); }
.cmp-picker__swatch { width: 10px; height: 22px; border-radius: 2px; flex: 0 0 auto; }
.cmp-picker__iname { font-weight: 600; }
.cmp-picker__imeta { margin-left: auto; font-size: 12px; color: var(--muted); }
.cmp-picker__empty { padding: 16px; color: var(--muted); text-align: center; }
.cmp-swap {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.cmp-swap:hover { border-color: var(--line-2); color: var(--ink); }

/* versus hero */
.cmp-hero {
  position: relative;
  height: 230px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0d10; /* shows through the diagonal gap as the divider */
}
/* The two halves are full-size but clipped to leave a thin diagonal gap
   between them, so the black hero background reads as a divider seam. */
.cmp-hero__half { position: absolute; inset: 0; background: var(--c); }
.cmp-hero__half.left { clip-path: polygon(0 0, 52.5% 0, 45.5% 100%, 0 100%); }
.cmp-hero__half.right { clip-path: polygon(54.5% 0, 100% 0, 100% 100%, 47.5% 100%); }
.cmp-hero__stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 16px);
}
.cmp-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  padding: 0 34px;
}
.cmp-hero__half.right .cmp-hero__content { flex-direction: row-reverse; text-align: right; }
.cmp-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.cmp-hero__kicker { font-size: 13px; color: rgba(255, 255, 255, 0.82); letter-spacing: 0.06em; }
.cmp-hero__name {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.cmp-hero__sub { margin-top: 5px; font-size: 12px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.85); }
.cmp-vs {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #0b0d10;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--paper);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
.cmp-vs__text { font-family: var(--font-serif); font-size: 30px; letter-spacing: 0.02em; }
.cmp-vs__swap {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* numbered stat tabs */
.cmp-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.cmp-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  transition: 120ms;
}
.cmp-tab:hover { color: var(--ink); border-color: var(--line-2); }
.cmp-tab__num { font-size: 10px; opacity: 0.7; }
.cmp-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--ta), var(--tb));
}
.cmp-tab.active .cmp-tab__num { opacity: 0.85; }

/* stat group + bars */
.cmp-group {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 22px 18px;
}
.cmp-group__head { display: flex; align-items: baseline; gap: 10px; padding: 14px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.cmp-group__num { font-size: 12px; color: var(--muted); }
.cmp-group__title { font-family: var(--font-serif); font-size: 19px; }
.cmp-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cmp-lbl { display: inline-flex; align-items: center; gap: 7px; }
.cmp-lbl.right { justify-content: flex-end; }
.cmp-dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.cmp-row {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
}
.cmp-rowval { font-size: 15px; color: var(--muted); }
.cmp-rowval.left { text-align: right; }
.cmp-rowval.right { text-align: left; }
.cmp-rowval.winner { color: var(--ink); font-weight: 700; }
.cmp-barwrap { position: relative; }
.cmp-bartrack {
  display: flex;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-2);
}
.cmp-bar { height: 100%; transition: width 220ms ease; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.cmp-bar.left { border-radius: 3px 0 0 3px; }
.cmp-bar.right { border-radius: 0 3px 3px 0; opacity: 0.85; }
.cmp-bar.winner { opacity: 1; }
.cmp-rowlabel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  white-space: nowrap;
}

/* player mismatch */
.cmp-mismatch {
  background: var(--paper);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.cmp-mismatch__title { font-family: var(--font-serif); font-size: 20px; margin-bottom: 8px; }
.cmp-mismatch__sub { color: var(--muted); max-width: 520px; margin: 0 auto; }

/* ─── Bracket ─── */
.bracket__header { margin-bottom: 22px; }
.bracket__tabs { display: flex; gap: 8px; margin-top: 14px; }
.btab {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  padding: 7px 18px; border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.btab:hover { color: var(--ink); border-color: var(--ink-2); }
.btab--on { background: var(--accent); border-color: var(--accent); color: #fff; }
.bracket__msg { padding: 48px 0; text-align: center; color: var(--ink-2); }

/* Shared game / team rows */
.bgame {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.bgame--click { cursor: pointer; transition: border-color 0.15s; }
.bgame--click:hover { border-color: var(--accent); }
.bgame--live { border-color: var(--loss); }
.bteam {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-bottom: 1px solid var(--line); min-height: 34px;
}
.bgame .bteam:last-child { border-bottom: none; }
.bteam--tbd { color: var(--muted); }
.bteam__seed {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  min-width: 16px; text-align: center;
}
.bteam__logo { width: 20px; height: 20px; object-fit: contain; flex: none; }
.bteam__name {
  flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.bteam__score { font-size: 13px; color: var(--ink-2); min-width: 18px; text-align: right; }
.bteam--win { font-weight: 600; }
.bteam--win .bteam__name { color: var(--ink); }
.bteam--win .bteam__score { color: var(--win); font-weight: 700; }
/* Losing team: crossed out and dimmed. */
.bteam--lose .bteam__name { text-decoration: line-through; color: var(--muted); }
.bteam--lose .bteam__logo { opacity: 0.5; }
.bgame__tag {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em;
  color: var(--muted);
}
.bgame__tag--live { color: var(--loss); font-weight: 700; }

/* SEC: round columns wired together with measured SVG elbow connectors */
/* No own scroll container — the columns flex to fit the width, so the (tall)
   bracket scrolls with the page rather than getting a nested scrollbar. */
.bracket-sec { padding-bottom: 10px; }
.brounds {
  display: flex; gap: 22px; align-items: stretch;
  position: relative; width: 100%; min-height: 1060px;
}
/* SVG overlay sits behind the cards and draws child→game elbows. */
.bconnect { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 0; }
.bconnect path { fill: none; stroke: var(--line-2); stroke-width: 2; }
.bround {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  position: relative; z-index: 1;
}
.bround__head {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
  padding-bottom: 6px; border-bottom: 1px solid var(--line-2); text-align: center;
}
/* Cells are placed by their tree position (inline top %), so the games line up
   with the children they feed. */
.bround__games { position: relative; flex: 1; }
.bslot {
  position: absolute; left: 0; right: 0; transform: translateY(-50%);
  display: flex;
}
.bslot > .bgame { flex: 1; }
/* A bye box is a single team row (no opponent, no score). */
.bbye { background: var(--bg-2); }
.bbye .bteam { min-height: 36px; }
.bracket-sec .bteam { padding: 8px 11px; min-height: 42px; gap: 8px; }
.bracket-sec .bteam__seed { min-width: 14px; font-size: 10px; }
.bracket-sec .bteam__logo { width: 20px; height: 20px; }
.bracket-sec .bteam__name { font-size: 14px; }
.bracket-sec .bteam__score { font-size: 14px; min-width: 15px; }

/* NCAA: sectioned rounds */
.bsection { margin-bottom: 40px; }
.bsection__title {
  font-family: var(--font-serif); font-size: 24px; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.bpod-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.bmatch-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.bpod { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 9px; }
/* Fixed two-line header (school name on top, "Regional" beneath) so every pod is
   the same height regardless of title length — keeps the super boxes vertically
   aligned across the left and right columns, with no truncation. */
.bpod__head {
  display: flex; align-items: flex-start; gap: 6px; margin-bottom: 6px;
  height: 34px; flex-wrap: nowrap; overflow: hidden;
}
.bpod__seed {
  font-family: var(--font-mono); font-size: 10px; color: #fff;
  background: var(--accent); border-radius: 3px; padding: 1px 5px; flex: none;
  margin-top: 1px;
}
.bpod__name {
  font-weight: 600; font-size: 12px; line-height: 1.25; min-width: 0;
  display: flex; flex-direction: column;
}
.bpod__school { white-space: nowrap; }
.bpod__regional { color: var(--muted); font-weight: 600; }
/* CWS pod keeps its single-line title ("World Series"). */
.bpod--cws .bpod__name { display: block; }
.bpod__teams { display: flex; flex-direction: column; gap: 0; }
.bpod__team { display: flex; align-items: center; gap: 6px; padding: 2px 3px; font-size: 12px; }
.bpod__tname { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpod__natseed { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.bpod__rseed {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: var(--muted); min-width: 12px; text-align: center; flex: none;
}
.bpod .bteam__logo { width: 16px; height: 16px; }
.bpod__team--win { font-weight: 700; color: var(--win); }
.bpod__games { display: flex; flex-direction: column; gap: 8px; }
.bmatch__games { display: flex; flex-direction: column; gap: 8px; }

/* ─── NCAA regional double-elim modal ─── */
.bpod--click { cursor: pointer; transition: border-color 0.15s, transform 0.1s; }
.bpod--click:hover { border-color: var(--accent); }
.bpod__expand {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.06em; color: var(--muted); opacity: 0; transition: opacity 0.15s;
}
.bpod--click:hover .bpod__expand { opacity: 1; }

.rmodal {
  position: fixed; inset: 0; z-index: 100; display: flex;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px);
}
.rmodal__box {
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: 8px; width: min(1040px, 96vw); max-height: 92vh;
  overflow: auto; padding: 22px 26px 30px;
}
.rmodal__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.rmodal__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 22px; }
.rmodal__close {
  background: transparent; border: 1px solid var(--line-2); border-radius: 6px;
  color: var(--ink-2); width: 32px; height: 32px; cursor: pointer; font-size: 14px;
}
.rmodal__close:hover { color: var(--ink); border-color: var(--ink-2); }

.rbracket { position: relative; height: 540px; width: 100%; }
.rbracket .bconnect { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 0; }
.rbracket .bconnect path { fill: none; stroke: var(--line-2); stroke-width: 2; }
.rconn--lose { stroke-dasharray: 4 4; opacity: 0.55; }
.rcard {
  position: absolute; width: 23%; transform: translateY(-50%); z-index: 1;
}
.rcard__label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}

/* Eliminated regional teams (2 losses in double-elim) — crossed out. */
.bpod__team--out .bpod__tname { text-decoration: line-through; color: var(--muted); }
.bpod__team--out .bteam__logo { opacity: 0.5; }

/* ─── NCAA bracket tree (regionals → supers, left & right) ─── */
.ncaa-tree { display: flex; gap: 20px; align-items: flex-start; }
.ncaa-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.sunit { position: relative; display: flex; align-items: center; gap: 20px; }
.sunit .bconnect { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 0; }
.sunit .bconnect path { fill: none; stroke: var(--line-2); stroke-width: 2; }
.sunit__pods { display: flex; flex-direction: column; gap: 18px; flex: 1; min-width: 0; z-index: 1; }
.sunit__pod { display: flex; }
.sunit__pod > .bpod { flex: 1; }
.sunit__super { flex: 0 0 168px; z-index: 1; }
/* Keep the regional title on one line (e.g. "West Virginia Regional"). */
.bpod__name { white-space: nowrap; }
.sunit__super-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px; text-align: center;
}
/* Right side mirrors: super on the left, pods on the right. */
.sunit--right { flex-direction: row; }

/* CWS finals center column */
.ncaa-tree { align-items: stretch; }
.ncaa-center {
  flex: 0 0 210px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
}
.ncaa-center__label {
  font-family: var(--font-serif); font-size: 18px; text-align: center; line-height: 1.1;
}
.ncaa-center__finals { width: 100%; }
.ncaa-center__note { font-size: 10px; text-align: center; }

/* CWS half-bracket pods (between supers and finals) */
.ncaa-cws { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.ncaa-cws__half { width: 100%; }
.bpod--cws { background: var(--paper); }
.bpod--cws .bpod__name { font-size: 13px; }
