:root {
  --ink: #f7f3fb;
  --muted: #bcb2c8;
  --dim: #82788f;
  --black: #08060b;
  --panel: #120c18;
  --panel-2: #1c1026;
  --plum: #361349;
  --purple: #6f2794;
  --purple-bright: #9a48bd;
  --silver: #c9c8cc;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --green: #7de0ae;
  --red: #ff9b9b;
  --radius: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 2%, rgba(111, 39, 148, 0.23), transparent 31rem),
    radial-gradient(circle at 14% 20%, rgba(87, 27, 113, 0.12), transparent 28rem),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.018) 80px),
    #08060b;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
.site-frame { width: min(1500px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 4px;
  background: rgba(8, 6, 11, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 62px; height: 62px; object-fit: contain; }
.brand span { display: grid; gap: 1px; }
.brand b, .kicker {
  color: #c985e4;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
}
.brand strong { font-size: 1rem; letter-spacing: -.02em; }
.site-header nav { display: flex; align-items: center; gap: 8px; }
.site-header nav a {
  padding: 10px 13px;
  color: var(--muted);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}
.site-header nav a:hover, .site-header nav a:focus-visible { color: white; background: var(--panel-2); }
.site-header nav a.is-active {
  color: white;
  background: linear-gradient(135deg, #43165a, #672488);
  box-shadow: inset 0 0 0 1px rgba(217, 167, 235, .28);
}
.site-header nav .section-switch { color: white; border: 1px solid var(--line-strong); }
main { min-width: 0; display: grid; gap: 64px; padding: 30px 0 72px; }
main > * { min-width: 0; }
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(430px, .85fr);
  gap: 42px;
  align-items: end;
  padding: clamp(30px, 4vw, 58px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(20, 11, 27, .98), rgba(66, 22, 81, .88)),
    var(--panel);
  box-shadow: var(--shadow);
}
.page-hero h1 {
  max-width: 850px;
  margin: 8px 0 14px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: .95;
  letter-spacing: -.065em;
}
.page-hero-copy > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(.95rem, 1.4vw, 1.12rem);
}
.page-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}
.page-metrics div {
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 4, 8, .28);
}
.page-metrics dt {
  color: var(--dim);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.page-metrics dd {
  margin: 3px 0 0;
  overflow: hidden;
  font-size: 1.15rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compact-heading { margin-bottom: 18px; }
.leader-tabs {
  position: sticky;
  top: 96px;
  z-index: 30;
  display: flex;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 12, 24, .92);
  box-shadow: 0 12px 36px rgba(0,0,0,.28);
}
.leader-tab {
  flex: 0 0 auto;
  padding: 9px 14px;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: .78rem;
  font-weight: 800;
}
.leader-tab:hover, .leader-tab:focus-visible {
  color: white;
  background: var(--panel-2);
}
.leader-tab:focus-visible { outline: 2px solid #d795ef; outline-offset: 2px; }
.leader-tab.is-active {
  color: #170d1f;
  background: white;
}
.leader-panel[hidden] { display: none; }
.hero {
  position: relative;
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: center;
  gap: 32px;
  padding: clamp(34px, 5vw, 78px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(125deg, rgba(18, 12, 24, .98), rgba(54, 19, 73, .88)),
    var(--panel);
  box-shadow: var(--shadow);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 52%, rgba(255,255,255,.04) 52.2%, transparent 53%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 780px; }
.hero h1, .player-hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: .93;
  letter-spacing: -.075em;
  font-weight: 900;
}
.hero-copy > p:not(.kicker) { max-width: 660px; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.button.primary { background: white; color: #170d1f; }
.button.ghost { border: 1px solid var(--line-strong); }
.hero-mark { position: relative; z-index: 1; display: grid; place-items: center; }
.hero-mark img { width: min(100%, 390px); filter: drop-shadow(0 28px 45px rgba(0,0,0,.5)); }
.archive-metrics {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  border-top: 1px solid var(--line);
}
.archive-metrics div { padding: 16px 18px 0 0; }
.archive-metrics dt, .player-summary dt {
  color: var(--dim);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.archive-metrics dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 800; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}
.section-heading h2 { margin: 3px 0 0; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.045em; line-height: 1; }
.section-heading > a { color: #d795ef; font-weight: 800; }
.section-heading > p { color: var(--muted); }
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.featured-leader, .leader-board, .career-highs, .career-total-card, .season-card {
  border: 1px solid var(--line);
  background: rgba(18, 12, 24, .92);
  box-shadow: 0 16px 50px rgba(0,0,0,.2);
}
.featured-leader { padding: 21px; border-radius: var(--radius); }
.featured-leader > p { margin: 0 0 12px; color: #c985e4; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.featured-leader a { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; }
.featured-leader a span { color: var(--dim); font-size: .76rem; }
.featured-leader a b { overflow: hidden; font-size: .87rem; text-overflow: ellipsis; white-space: nowrap; }
.featured-leader a strong { color: white; }
.players-section, .games-section, .opponents-section, .leader-section { scroll-margin-top: 106px; }
.directory-controls { display: flex; gap: 12px; margin-bottom: 12px; }
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--panel);
}
.search-field span { color: var(--dim); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.search-field input { width: 100%; border: 0; outline: 0; color: white; background: transparent; }
.search-field input::placeholder { color: #71687b; }
.all-seasons, .season-chip {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel);
}
.all-seasons { padding: 0 18px; border-radius: 15px; font-weight: 800; }
.all-seasons.is-active, .season-chip.is-active { border-color: #9d58ba; background: #3f1953; }
.season-filter {
  display: flex;
  gap: 8px;
  padding: 8px 0 18px;
  overflow-x: auto;
  scrollbar-color: #5c4468 transparent;
}
.season-chip {
  flex: 0 0 auto;
  display: grid;
  gap: 1px;
  padding: 9px 13px;
  color: var(--muted);
  border-radius: 12px;
  text-align: left;
}
.season-chip span { font-size: .78rem; font-weight: 750; }
.season-chip small { color: var(--dim); font-size: .66rem; }
.season-chip.is-active { color: white; }
.roster-table-wrap, .table-scroll { overflow-x: auto; }
.roster-table-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 9, 17, .9);
}
table { width: 100%; border-collapse: collapse; }
.roster-table { min-width: 900px; }
th {
  color: #a89cb4;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-align: left;
  text-transform: uppercase;
}
.roster-table th, .roster-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.roster-table tbody tr { transition: background .15s ease; }
.roster-table tbody tr:nth-child(even) { background: rgba(111,39,148,.075); }
.roster-table tbody tr:hover { background: rgba(111,39,148,.18); }
.roster-table td { color: var(--muted); font-variant-numeric: tabular-nums; }
.roster-table td:first-child { color: white; font-weight: 800; }
.roster-table td:last-child { text-align: right; }
.roster-table a { color: #dfa9f2; font-weight: 800; text-decoration: none; white-space: nowrap; }
.roster-table th.sortable { padding: 0; }
.sort-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  cursor: pointer;
  border: 0;
  color: #a89cb4;
  background: transparent;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.sort-button:hover, .sort-button:focus-visible { color: white; background: rgba(111,39,148,.15); }
.sort-button:focus-visible { outline: 2px solid #c985e4; outline-offset: -3px; }
.sort-indicator { color: #c985e4; font-size: .8rem; line-height: 1; }
.sort-indicator::before { content: "\2195"; opacity: .55; }
.sort-button.is-active .sort-indicator::before { opacity: 1; }
th[aria-sort="ascending"] .sort-indicator::before { content: "\2191"; }
th[aria-sort="descending"] .sort-indicator::before { content: "\2193"; }
.empty-state { padding: 40px; color: var(--muted); text-align: center; }
.game-controls { margin-bottom: 9px; }
.game-help { margin: 0 0 17px; color: var(--muted); font-size: .82rem; }
.game-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 9, 17, .9);
}
.game-archive-table { min-width: 860px; }
.game-archive-table th, .game-archive-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); }
.game-archive-table tbody tr { transition: background .15s ease; }
.game-archive-table tbody tr:hover { background: rgba(111,39,148,.13); }
.game-archive-table td { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.game-archive-table td strong { display: block; color: white; font-size: .8rem; }
.game-archive-table td small { display: block; color: var(--dim); font-size: .65rem; }
.game-archive-table a { color: #dfa9f2; font-weight: 800; text-decoration: none; }
.game-archive-table a:hover, .game-archive-table a:focus-visible { color: white; text-decoration: underline; }
.game-box-link { white-space: nowrap; }
.opponent-controls { margin-bottom: 9px; }
.opponent-help { margin: 0 0 17px; color: var(--muted); font-size: .82rem; }
.opponent-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opponent-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(18,12,24,.92); }
.opponent-card > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 34px;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  transition: background .16s ease;
}
.opponent-card > summary::-webkit-details-marker { display: none; }
.opponent-card > summary:hover, .opponent-card > summary:focus-visible { background: rgba(111,39,148,.16); }
.opponent-card > summary:focus-visible { outline: 2px solid #c985e4; outline-offset: -3px; }
.opponent-card summary > span { min-width: 0; display: grid; gap: 1px; }
.opponent-card summary small { color: var(--dim); font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.opponent-card summary strong { overflow: hidden; color: white; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.opponent-record, .opponent-games { text-align: right; }
.opponent-toggle { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: #d9a7eb; background: rgba(255,255,255,.05); }
.opponent-toggle::before { content: "+"; font-size: 1.2rem; line-height: 1; }
.opponent-card[open] > summary { background: rgba(111,39,148,.18); }
.opponent-card[open] { grid-column: 1 / -1; }
.opponent-card[open] .opponent-toggle::before { content: "-"; }
.opponent-table { min-width: 760px; }
.opponent-table th { padding: 11px 14px; border-top: 1px solid var(--line); text-align: left; }
.opponent-table td { padding: 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; text-align: left; }
.opponent-table td strong { display: block; color: white; font-size: .78rem; }
.opponent-table td small { display: block; color: var(--dim); font-size: .64rem; }
.opponent-game-row { transition: background-color .18s ease; }
.opponent-game-row:nth-child(even) { background: rgba(255,255,255,.025); }
.opponent-game-row:hover, .opponent-game-row:focus-within { background: rgba(111,39,148,.18); }
.opponent-game-link { display: block; min-height: 46px; padding: 11px 14px; color: inherit; text-decoration: none; }
.opponent-game-link:focus-visible { outline: 2px solid #c985e4; outline-offset: -3px; }
.opponent-score-link { display: flex; align-items: center; white-space: nowrap; }
.opponent-score-link small { margin-left: 8px; color: #d9a7eb !important; font-weight: 800; }
.result-pill { display: inline-grid; width: 22px; height: 22px; place-items: center; margin-right: 7px; border-radius: 6px; font-size: .65rem; font-weight: 900; }
.result-pill.win { color: #08130e; background: var(--green); }
.result-pill.loss { color: #1b0909; background: var(--red); }
.result-pill.tie { color: #17131a; background: var(--silver); }
.opponent-empty { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.leader-heading > p { max-width: 670px; margin: 0; font-size: .88rem; }
.leader-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.leader-board { min-width: 0; padding: 20px; border-radius: var(--radius); }
.leader-board h3 { margin: 0 0 12px; font-size: 1rem; }
.leader-board ol { margin: 0; padding: 0; list-style: none; }
.leader-board li a {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}
.leader-board li a:hover .leader-name { color: white; text-decoration: underline; }
.leader-rank { color: var(--dim); font-size: .72rem; font-weight: 800; }
.leader-name { min-width: 0; overflow: hidden; font-size: .82rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.leader-season { display: block; overflow: hidden; color: var(--dim); font-size: .63rem; font-weight: 500; text-overflow: ellipsis; }
.leader-board strong { color: white; font-size: .88rem; font-variant-numeric: tabular-nums; }
.empty-board { padding: 20px 0; color: var(--dim); font-size: .82rem; }
.method-note {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple-bright);
  border-radius: 14px;
  background: rgba(28,16,38,.7);
}
.method-note p { margin: 5px 0 0; color: var(--muted); font-size: .86rem; }
footer { display: flex; justify-content: space-between; padding: 28px 0 38px; border-top: 1px solid var(--line); color: var(--dim); font-size: .8rem; }
footer a { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Player profiles */
.player-site main { gap: 34px; }
.back-link { width: fit-content; color: #d59bea; font-size: .86rem; font-weight: 800; text-decoration: none; }
.player-hero {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(560px, 1.4fr);
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(120deg, #140b1b, #421651);
  box-shadow: var(--shadow);
}
.player-identity { display: flex; align-items: center; gap: 22px; min-width: 0; }
.jersey-number {
  flex: 0 0 96px;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  font-size: 1.8rem;
  font-weight: 900;
}
.player-hero h1 { margin: 4px 0 7px; font-size: clamp(2.2rem, 5vw, 4.8rem); }
.player-identity p:last-child { margin: 0; color: var(--muted); }
.player-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.player-summary div { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(6,4,8,.28); }
.player-summary dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 900; }
.career-highs, .career-total-card { padding: 25px; border-radius: 22px; }
.career-highs .section-heading { align-items: center; }
.career-highs .section-heading p:last-child { margin: 0; color: var(--muted); font-size: .8rem; }
.high-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.high-grid div { padding: 16px; border-radius: 14px; background: var(--panel-2); }
.high-grid span { display: block; color: var(--dim); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.high-grid strong { display: block; margin-top: 3px; font-size: 1.35rem; }
.player-season-nav { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.player-season-nav::-webkit-scrollbar { display: none; }
.player-season-nav > span { flex: 0 0 auto; margin-right: 5px; color: var(--dim); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.player-season-nav a {
  flex: 0 0 auto;
  display: grid;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: white;
  text-decoration: none;
}
.player-season-nav a span { font-size: .74rem; font-weight: 750; }
.player-season-nav a small { color: var(--dim); font-size: .62rem; }
.season-stack { display: grid; gap: 22px; }
.season-card { scroll-margin-top: 105px; overflow: hidden; border-radius: 22px; }
.season-card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px 128px;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(90deg, rgba(111,39,148,.2), transparent);
  transition: background .18s ease;
}
.season-card-heading::-webkit-details-marker { display: none; }
.season-card-heading:hover, .season-card-heading:focus-visible { background: linear-gradient(90deg, rgba(154,72,189,.28), rgba(255,255,255,.025)); }
.season-card-heading:focus-visible { outline: 2px solid #c985e4; outline-offset: -3px; }
.season-card-heading p { margin: 0; color: #c985e4; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.season-card-heading h2 { margin: 2px 0 0; font-size: clamp(1.25rem, 2.5vw, 2rem); letter-spacing: -.04em; }
.season-card-heading dl { display: grid; width: 296px; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.season-card-heading dl div { min-width: 0; padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.06); }
.season-card-heading dt { color: var(--dim); font-size: .6rem; font-weight: 800; }
.season-card-heading dd { margin: 0; font-size: 1rem; font-weight: 900; }
.season-toggle { display: flex; align-items: center; justify-self: end; gap: 10px; color: #d9a7eb; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.season-toggle b { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(255,255,255,.06); }
.season-toggle b::before { content: "+"; font-size: 1.25rem; line-height: 1; }
.season-toggle .when-open { display: none; }
.season-card[open] .season-card-heading { background: linear-gradient(90deg, rgba(154,72,189,.3), rgba(255,255,255,.025)); }
.season-card[open] .season-toggle .when-closed { display: none; }
.season-card[open] .season-toggle .when-open { display: inline; }
.season-card[open] .season-toggle b::before { content: "-"; }
.season-card[open] .table-scroll:first-of-type { border-top: 1px solid var(--line); }
.game-log { min-width: 1200px; }
.game-log th, .game-log td { padding: 9px 12px; border-top: 1px solid var(--line); line-height: 1.25; white-space: nowrap; }
.totals-table th, .totals-table td { padding: 12px 13px; border-top: 1px solid var(--line); white-space: nowrap; }
.game-log td, .totals-table td { color: #ded7e5; font-size: .78rem; font-variant-numeric: tabular-nums; }
.game-log tbody tr { transition: background .15s ease; }
.game-log tbody tr:nth-child(even) { background: rgba(111,39,148,.075); }
.game-log tbody tr:hover { background: rgba(111,39,148,.18); }
.game-log td:first-child { color: var(--muted); }
.game-log .opponent { display: inline-block; max-width: 180px; overflow: hidden; color: white; font-weight: 750; text-overflow: ellipsis; vertical-align: middle; }
.game-result { display: inline-flex; align-items: center; gap: 5px; font-weight: 750; }
.game-result b { font-size: .7rem; font-weight: 900; }
.game-result.win b { color: var(--green); }
.game-result.loss b { color: var(--red); }
.game-result.tie b { color: var(--silver); }
.game-result span { color: var(--muted); }
.game-log td strong { color: white; text-decoration: underline; text-decoration-color: #a658c2; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.season-total-wrap { border-top: 1px solid rgba(255,255,255,.05); background: #21132b; }
.totals-table { min-width: 1380px; }
.totals-table td:first-child { color: white; font-weight: 800; }
.totals-table tbody td { background: rgba(111,39,148,.08); }
.totals-table.compact th, .totals-table.compact td { padding-top: 10px; padding-bottom: 10px; }
.career-total-card .section-heading { margin-bottom: 18px; }

/* Game archive and box scores */
.game-site main { gap: 34px; }
.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(120deg, #140b1b, #421651);
  box-shadow: var(--shadow);
}
.game-hero h1 {
  max-width: 980px;
  margin: 6px 0 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.game-hero h1 span { color: #c7bdcf; font-weight: 500; }
.final-score-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(6, 4, 8, .38);
}
.final-score-card .result-pill { flex: 0 0 auto; width: 34px; height: 34px; margin-right: 2px; font-size: .82rem; }
.final-score-card div { display: grid; min-width: 54px; text-align: center; }
.final-score-card small {
  max-width: 150px;
  overflow: hidden;
  color: var(--dim);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.final-score-card strong { font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.final-score-card b { color: var(--dim); }
.box-score-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(18, 12, 24, .92);
  box-shadow: 0 16px 50px rgba(0,0,0,.2);
}
.box-score-table { min-width: 1240px; }
.box-score-table th, .box-score-table td { padding: 12px 13px; border-top: 1px solid var(--line); white-space: nowrap; }
.box-score-table td { color: #ded7e5; font-size: .78rem; font-variant-numeric: tabular-nums; }
.box-score-table td:first-child { color: white; font-weight: 800; }
.box-score-table td:first-child a { color: white; text-decoration-color: #a658c2; text-underline-offset: 3px; }
.team-total-row td { color: white; background: #21132b; font-weight: 800; }

@media (max-width: 1050px) {
  .page-hero { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
  .player-hero { grid-template-columns: 1fr; }
  .high-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .site-frame { width: min(100% - 20px, 1500px); }
  .site-header { min-height: 72px; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 8px; }
  .brand img { width: 49px; height: 49px; }
  .brand b { display: none; }
  .brand strong { font-size: .9rem; }
  .site-header nav {
    order: 2;
    width: 100%;
    gap: 5px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { flex: 0 0 auto; padding: 8px 10px; font-size: .68rem; }
  .site-header nav .section-switch { padding: 8px 10px; font-size: .68rem; }
  main { gap: 44px; padding-top: 18px; }
  .page-hero { grid-template-columns: 1fr; gap: 26px; padding: 28px 22px; }
  .page-hero h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .page-metrics { width: 100%; }
  .page-metrics div { padding: 12px 13px; }
  .leader-tabs { top: 126px; width: 100%; border-radius: 15px; }
  .hero { min-height: auto; grid-template-columns: 1fr; align-items: start; padding: 30px 24px; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero-mark { display: none; }
  .archive-metrics { grid-template-columns: repeat(2, 1fr); }
  .archive-metrics div { padding-top: 10px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .section-heading h2 { font-size: 2rem; }
  .featured-grid, .leader-grid { grid-template-columns: 1fr; }
  .opponent-list { grid-template-columns: 1fr; }
  .directory-controls { flex-direction: column; }
  .all-seasons { min-height: 48px; }
  .player-identity { align-items: flex-start; flex-direction: column; }
  .jersey-number { width: 72px; height: 72px; flex-basis: 72px; font-size: 1.4rem; }
  .player-summary { grid-template-columns: repeat(2, 1fr); }
  .high-grid { grid-template-columns: repeat(2, 1fr); }
  .season-stack { gap: 12px; }
  .season-card-heading { position: relative; grid-template-columns: 1fr; align-items: start; gap: 14px; padding: 18px 62px 18px 18px; }
  .season-card-heading dl { width: 100%; }
  .season-card-heading dl div { min-width: 0; }
  .season-toggle { position: absolute; top: 18px; right: 16px; }
  .season-toggle > span { display: none !important; }
  .opponent-card > summary { grid-template-columns: minmax(0, 1fr) auto 32px; gap: 10px; }
  .opponent-record { display: none !important; }
  .opponent-card[open] { overflow: hidden; }
  .opponent-card[open] .table-scroll { overflow-x: visible; }
  .opponent-table { width: 100%; min-width: 0; table-layout: auto; border-collapse: separate; border-spacing: 0; }
  .opponent-table thead { display: none; }
  .opponent-table tbody,
  .opponent-table tr,
  .opponent-table td { display: block; width: 100%; }
  .opponent-table .opponent-game-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px 10px;
    border-top: 1px solid var(--line);
  }
  .opponent-table td {
    min-width: 0;
    border-top: 0;
    color: var(--muted);
    font-size: .78rem;
    overflow-wrap: anywhere;
  }
  .opponent-table td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--dim);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .opponent-table td:nth-child(1)::before { content: "Date"; }
  .opponent-table td:nth-child(2)::before { content: "Opponent team"; }
  .opponent-table td:nth-child(3)::before { content: "ECC team / season"; }
  .opponent-table td:nth-child(4)::before { content: "Final score"; }
  .opponent-table td:nth-child(3),
  .opponent-table td:nth-child(4) { grid-column: 1 / -1; }
  .opponent-game-link { min-height: 0; padding: 0; overflow-wrap: anywhere; }
  .opponent-table td strong { white-space: normal; }
  .opponent-score-link { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; white-space: normal; }
  .opponent-score-link small { flex-basis: 100%; margin-left: 0; }
  .result-pill { width: 19px; height: 19px; margin-right: 4px; }
  .game-hero { grid-template-columns: 1fr; gap: 22px; }
  .game-hero h1 { font-size: 2rem; }
  .final-score-card { width: 100%; justify-content: center; }
  .box-score-card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
