:root {
  --bg: #080807;
  --surface: #10110e;
  --surface-2: #171812;
  --text: #fffdf8;
  --muted: #c9c0a7;
  --line: #2e3028;
  --gold: #fac422;
  --red: #c84b3a;
  --green: #37a66f;
  --blue: #57b8ff;
  --orange: #2f302c;
  --violet: #a783ff;
  --white: #ffffff;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Lato, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

select {
  appearance: none;
  background-image: url("assets/icons/chevron-down.svg");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  padding-right: 36px !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(8, 8, 7, .96);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  font-family: Oswald, sans-serif;
  font-size: 19px;
  font-weight: 700;
}

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

.brand-logo-section {
  display: none;
}

body[data-route]:not([data-route="home"]) .brand-logo-home {
  display: none;
}

body[data-route]:not([data-route="home"]) .brand-logo-section {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a,
.nav-toggle,
.card-actions a,
.text-link,
.back-link {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current],
.card-actions a:hover,
.text-link:hover,
.back-link:hover {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface-2);
}

.nav-toggle {
  display: none;
  background: var(--surface);
}

.event-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 34px 20px 26px;
}

.event-bar h1 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: clamp(38px, 6vw, 74px);
  line-height: .95;
}

.event-bar p,
.section-header p,
.metric-note p,
.empty-state {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.event-controls {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
}

.event-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.event-controls select,
.event-controls input,
.search-trigger {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background-color: var(--surface);
  color: var(--text);
}

.search-trigger {
  display: flex;
  align-items: center;
  color: #8f8a7a;
  cursor: pointer;
  text-align: left;
}

.search-trigger:hover,
.search-trigger:focus {
  border-color: var(--gold);
  color: var(--text);
  outline: none;
}

.search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: start center;
  padding: 92px 20px 20px;
  background: rgba(0, 0, 0, .68);
}

.search-modal {
  width: min(720px, 100%);
  max-height: min(720px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid #3d4037;
  border-radius: 8px;
  background: #10110e;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55);
}

.search-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.search-modal-head input {
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  background: #171812;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.search-modal-head input:focus {
  border-color: var(--gold);
}

.search-modal-head button {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #171812;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.search-result-area {
  max-height: calc(min(720px, 100vh - 120px) - 72px);
  overflow-y: auto;
  padding: 10px;
}

.search-group + .search-group {
  margin-top: 10px;
}

.search-group h3 {
  margin: 0 0 6px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-results {
  display: grid;
  gap: 4px;
}

.search-result {
  display: grid;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 11px;
}

.search-result:hover,
.search-result:focus {
  border-color: var(--line);
  background: #171812;
  outline: none;
}

.search-result strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-region {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 20px 56px;
}

body[data-route="home"] .route-region {
  width: 100%;
  max-width: none;
  padding: 0 0 64px;
}

.hub-home {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: #070807;
}

.hub-home::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(250, 196, 34, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(250, 196, 34, .05) 1px, transparent 1px),
    radial-gradient(circle at 50% 10%, rgba(250, 196, 34, .18), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(190, 54, 45, .14), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(55, 166, 111, .12), transparent 28%),
    linear-gradient(180deg, #111811 0%, #070807 68%, var(--bg) 100%);
  background-size: 84px 84px, 84px 84px, auto, auto, auto, auto;
  content: "";
}

.hub-home::after {
  position: absolute;
  inset: auto 50% 4vh auto;
  z-index: -2;
  width: min(76vw, 680px);
  aspect-ratio: 1;
  background: url("./assets/gbca-logo.png") center / contain no-repeat;
  content: "";
  opacity: .045;
  transform: translateX(50%);
}

.hub-home-hero {
  display: grid;
  justify-items: center;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px) 20px clamp(30px, 5vw, 58px);
  text-align: center;
}

.hub-home-logo {
  width: clamp(86px, 11vw, 124px);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .36));
}

.hub-home-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-top: 1px solid rgba(250, 196, 34, .58);
  border-bottom: 1px solid rgba(250, 196, 34, .58);
  padding: 0 18px;
  color: var(--gold);
  font-family: Orbitron, Oswald, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hub-home h1 {
  max-width: 10ch;
  margin: 22px 0 0;
  color: var(--white);
  font-family: Orbitron, Oswald, sans-serif;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: .98;
}

.hub-home h1 span {
  display: block;
  color: var(--gold);
}

.hub-home-hero > p {
  max-width: 760px;
  margin: 20px 0 0;
  color: #eee5cb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.home-presented {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 850px);
  margin-top: clamp(24px, 4vw, 36px);
}

.home-presented > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f3ead0;
  font-size: 14px;
  font-weight: 900;
}

.home-presented > span::before,
.home-presented > span::after {
  display: block;
  width: 42px;
  height: 1px;
  background: rgba(250, 196, 34, .38);
  content: "";
}

.home-presented-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}

.home-presented-logo img {
  display: block;
  width: min(42vw, 190px);
  max-height: 120px;
  object-fit: contain;
}

.home-event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  width: min(100%, 1220px);
  margin-top: clamp(28px, 4vw, 40px);
  text-align: left;
}

.home-event-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(16, 17, 14, .86);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
  transition: border-color .18s ease, transform .18s ease, background-color .18s ease;
}

.home-event-card:hover {
  border-color: rgba(250, 196, 34, .74);
  background: rgba(23, 24, 18, .95);
  transform: translateY(-2px);
}

.home-event-card span,
.home-game-kicker,
.home-game-main span,
.home-game-main em {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-event-card h2 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.home-event-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.home-event-card b {
  align-self: end;
  color: var(--gold);
  font-size: 14px;
}

.home-event-card.is-primary {
  border-color: rgba(250, 196, 34, .48);
  background: linear-gradient(180deg, rgba(31, 29, 18, .94), rgba(16, 17, 14, .9));
}

.live-stats-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  border-color: var(--gold);
  background: var(--gold);
  color: #080807;
}

.home-upcoming-panel {
  width: min(100%, var(--max));
  margin: 22px auto 0;
  padding: 0 20px;
}

.home-leaderboards {
  width: min(100%, var(--max));
  margin: 22px auto 0;
  padding: 0 20px 18px;
}

.home-panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.home-panel-header h2 {
  margin: 7px 0 0;
  font-family: Oswald, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.home-panel-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.home-game-rail {
  display: grid;
  grid-auto-columns: minmax(280px, calc((100% - 36px) / 4));
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-color: var(--gold) #20221e;
  scrollbar-width: thin;
  scroll-padding-inline: 1px;
  scroll-snap-type: x mandatory;
}

.home-game-rail::-webkit-scrollbar {
  height: 8px;
}

.home-game-rail::-webkit-scrollbar-track {
  background: #20221e;
}

.home-game-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--gold);
}

.home-game-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-height: 224px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  scroll-snap-align: start;
}

.home-game-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.home-game-kicker span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-game-main {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.home-game-main div {
  display: grid;
  gap: 4px;
}

.home-game-main strong {
  color: var(--muted);
  font-family: Lato, sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.home-game-main em {
  color: var(--gold);
  font-style: normal;
}

.home-game-teams {
  display: grid;
  gap: 10px;
}

.home-game-teams div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
}

.home-game-teams span {
  overflow: hidden;
  color: var(--white);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-game-teams b {
  color: var(--white);
  font-family: Oswald, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.home-game-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.home-game-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.home-game-actions a:hover,
.home-game-actions .home-box-link {
  border-color: var(--gold);
  color: var(--gold);
}

.home-game-actions .home-box-link {
  background: transparent;
}

.home-game-actions .home-box-link:hover {
  background: rgba(250, 196, 34, .14);
}

.home-leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-leaderboard-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
}

.home-leaderboard-card-head {
  display: grid;
  gap: 5px;
}

.home-leaderboard-card-head span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-leaderboard-card-head h3 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.05;
}

.home-leaderboard-card-head p {
  margin: 0;
  color: var(--muted);
}

.home-leaderboard-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-mini-table {
  min-width: 0;
  overflow-x: auto;
}

.home-mini-table h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-family: Oswald, sans-serif;
  font-size: 18px;
}

.home-mini-table table {
  min-width: 0;
}

.home-mini-table th,
.home-mini-table td {
  padding: 8px 6px;
  font-size: 12px;
}

.home-mini-table td:last-child,
.home-mini-table th:last-child {
  text-align: right;
}

.home-pool-stack {
  display: grid;
  gap: 10px;
}

.home-pool-section {
  overflow: hidden;
  border: 1px solid #383b34;
  border-radius: 8px;
  background: #151711;
}

.home-pool-section h5 {
  margin: 0;
  border-bottom: 1px solid #383b34;
  padding: 7px 8px;
  background: #20221e;
  color: var(--gold);
  font-family: Oswald, sans-serif;
  font-size: 16px;
  line-height: 1.1;
}

.home-pool-section table {
  width: 100%;
}

.home-pool-section th,
.home-pool-section td {
  padding: 6px;
}

.home-pool-section th:first-child,
.home-pool-section td:first-child {
  width: 28px;
  color: var(--muted);
  text-align: left;
}

.home-pool-section th:nth-child(2),
.home-pool-section td:nth-child(2) {
  text-align: left;
}

.home-pool-section td:nth-child(3),
.home-pool-section th:nth-child(3),
.home-pool-section td:last-child,
.home-pool-section th:last-child {
  text-align: right;
}

.route-event-bar {
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  margin: 0;
  padding: 28px 0 24px;
}

@media (max-width: 720px) {
  .hub-home-hero {
    padding: 34px 20px 28px;
  }

  .hub-home h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .home-event-cards {
    grid-template-columns: 1fr;
  }

  .home-event-card {
    min-height: 0;
  }

  .home-panel-header {
    display: grid;
    align-items: start;
  }

  .home-panel-header .text-link {
    justify-self: start;
  }

  .home-game-rail {
    grid-auto-columns: minmax(270px, 84vw);
    padding-left: 0;
  }

  .home-game-card {
    min-height: 218px;
  }

  .home-leaderboard-grid,
  .home-leaderboard-tables,
  .wiki-grid,
  .wiki-debug-layout,
  .boys-pool-grid {
    grid-template-columns: 1fr;
  }

  .program-age-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-event-bar {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .live-stats-action {
    justify-self: start;
  }
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.home-bracket-row {
  display: grid;
  min-width: 0;
}

.content-section,
.bracket-panel,
.quick-nav,
.metric-note {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.content-section {
  margin-top: 18px;
}

.primary-column,
.side-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.section-header {
  margin-bottom: 14px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.breadcrumbs a,
.breadcrumbs span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.breadcrumbs a {
  color: var(--ui-accent, #eeef45);
}

.breadcrumbs a:first-child::before {
  margin-right: 6px;
  content: "\2190";
  font-size: 13px;
  line-height: 1;
}

.breadcrumbs span[aria-current="page"] {
  color: var(--text);
}

.breadcrumb-divider {
  color: #626658;
}

.player-profile-header {
  display: block;
}

.player-profile-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.team-title-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.team-record-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(250, 196, 34, .52);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(250, 196, 34, .12);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.team-shot-chart-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.team-shot-chart-link:hover {
  border-color: rgba(250, 196, 34, .52);
  color: var(--gold);
}

.event-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.session-event-header h1 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(250, 196, 34, .5);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(250, 196, 34, .14);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-header h2,
.table-panel h3,
.team-box h3 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 22px;
  line-height: 1.15;
}

.wiki-page {
  display: grid;
  gap: 18px;
}

.wiki-hero h2 {
  margin: 6px 0 0;
  font-family: Oswald, sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
}

.wiki-hero p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.wiki-card,
.wiki-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151711;
}

.wiki-card {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 14px;
}

.wiki-card:hover {
  border-color: rgba(250, 196, 34, .72);
}

.wiki-card span,
.wiki-panel h3 {
  color: var(--gold);
  font-family: Oswald, sans-serif;
  font-size: 19px;
  line-height: 1.1;
}

.wiki-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.wiki-card b {
  align-self: end;
  color: var(--text);
  font-size: 13px;
}

.wiki-debug-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wiki-panel {
  padding: 14px;
}

.wiki-panel h3 {
  margin: 0 0 10px;
}

.wiki-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.wiki-panel code {
  color: var(--text);
}

.scoreboard-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scoreboard-list.wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-grid .primary-column > .scoreboard-list {
  display: grid;
  grid-auto-columns: minmax(300px, calc((100% - 36px) / 4));
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-color: var(--gold) #20221e;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}

.home-grid .primary-column > .scoreboard-list .game-card {
  scroll-snap-align: start;
}

.game-date-group {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.game-date-group:first-of-type {
  margin-top: 0;
}

.game-date-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #141510;
  color: var(--text);
  cursor: pointer;
  font-family: Oswald, sans-serif;
  font-size: 22px;
  line-height: 1;
  text-align: left;
}

.game-date-toggle:hover {
  border-color: #4a4d41;
  background: #1b1d17;
}

.game-date-toggle em {
  color: var(--muted);
  font-family: Lato, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.game-date-toggle::after {
  justify-self: end;
  color: var(--gold);
  content: "+";
  font-family: Lato, sans-serif;
  font-size: 20px;
  font-weight: 900;
}

.game-date-toggle[aria-expanded="true"]::after {
  content: "-";
}

.game-card,
.table-panel,
.team-box,
.stat-panel,
.history-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.game-card {
  padding: 13px;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.score-row a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-row strong {
  font-family: Oswald, sans-serif;
  font-size: 24px;
  text-align: right;
}

.score-row.winner a,
.score-row.winner strong {
  color: var(--gold);
}

.card-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.card-actions a.primary-action {
  border-color: var(--gold);
  background: transparent;
  color: var(--gold);
}

.card-actions a.primary-action:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #080807;
}

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

.bracket-panel-head h2 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 24px;
  line-height: 1.1;
}

.bracket-panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.bracket-select {
  display: grid;
  gap: 6px;
  min-width: min(330px, 100%);
}

.bracket-select span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-select select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #0b0c0a;
  color: var(--text);
  font-weight: 900;
  padding: 0 10px;
}

/* Exposure GA-only "brackets" are round schedules, not single-elimination trees. */
.bracket-round-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.bracket-round-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b0c0a;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  min-height: 36px;
  padding: 0 14px;
  text-transform: uppercase;
}

.bracket-round-tabs button:hover,
.bracket-round-tabs button.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: #080807;
}

.bracket-round-board {
  display: grid;
  gap: 16px;
}

.bracket-round-board.is-preview {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.bracket-round-section {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.bracket-round-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.bracket-round-section-head h3 {
  margin: 0;
  color: var(--gold);
  font-family: Oswald, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.bracket-round-section-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  min-width: 0;
}

.bracket-game {
  display: grid;
  gap: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0b0c0a;
}

.bracket-game-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  border-bottom: 1px solid rgba(46, 48, 40, .74);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-top: 1px solid rgba(46, 48, 40, .45);
  padding: 8px 10px;
}

.bracket-team:first-of-type {
  border-top: 0;
}

.bracket-team a,
.bracket-team span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-team a:hover,
.bracket-team.is-winner a,
.bracket-team.is-winner span {
  color: var(--white);
}

.bracket-team b {
  color: var(--white);
  font-family: Oswald, sans-serif;
  font-size: 19px;
  line-height: 1;
}

@media (max-width: 720px) {
  .bracket-panel-head {
    display: grid;
    align-items: start;
  }

  .bracket-select {
    min-width: 0;
  }

  .bracket-round-board.is-preview {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

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

.quick-nav {
  display: grid;
  gap: 8px;
}

.quick-nav a {
  border-top: 1px solid var(--line);
  padding: 12px 0 4px;
  color: var(--text);
  font-weight: 900;
}


/* Leaderboard modules are built as NBA-style ranked lists instead of dense data tables. */
.leaderboard-section {
  display: grid;
  gap: 18px;
}

.leaderboard-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.leaderboard-controls-simple {
  justify-content: flex-end;
}

.leaderboard-control-stack {
  display: grid;
  gap: 8px;
}

.leaderboard-toolbar {
  display: inline-flex;
  width: fit-content;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10110f;
}

.leaderboard-mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 10px 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.leaderboard-mode-button:last-child {
  border-right: 0;
}

.leaderboard-mode-button[aria-pressed="true"] {
  background: var(--white);
  color: #070807;
}

.age-toggle {
  display: grid;
  gap: 6px;
  min-width: min(360px, 100%);
}

.universal-age-bar {
  position: sticky;
  top: 67px;
  z-index: 18;
  width: auto;
  margin: 0 -20px 16px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 7, .94);
  backdrop-filter: blur(14px);
}

.universal-age-bar .age-toggle {
  width: 100%;
  min-width: 0;
}

body[data-route="home"] .universal-age-bar {
  margin-right: 0;
  margin-left: 0;
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
}

.age-toggle > span {
  color: var(--cream);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.age-toggle-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.universal-age-bar .age-toggle-buttons {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-padding-left: 0;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.age-toggle-buttons button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.universal-age-bar .age-toggle-buttons button {
  flex: 1 0 min(170px, 42vw);
  scroll-snap-align: start;
}

.age-toggle-buttons button[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: #080806;
}

.leaderboard-division-filter {
  display: grid;
  min-width: min(280px, 100%);
  gap: 6px;
}

.leaderboard-view-control {
  display: grid;
  gap: 6px;
}

.leaderboard-view-control > span {
  color: var(--cream);
  font-size: 12px;
  font-weight: 900;
}

.leaderboard-division-filter span {
  color: var(--cream);
  font-size: 12px;
  font-weight: 900;
}

.leaderboard-division-filter select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
}

.nba-leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.nba-leaderboard-card {
  min-width: 0;
}

.nba-leaderboard-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.nba-leaderboard-card h3 {
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
}

.nba-leaderboard-card-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.nba-leaderboard-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.nba-leaderboard-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(34px, auto);
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.leaderboard-rank {
  color: var(--text);
  font-weight: 900;
  text-align: right;
}

.leaderboard-player-copy {
  display: grid;
  min-width: 0;
}

.leaderboard-player-copy span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-player-copy a {
  color: var(--white);
  font-weight: 900;
}

.leaderboard-player-copy em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.leaderboard-player-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nba-leaderboard-list strong {
  color: var(--white);
  font-size: 18px;
  line-height: 1;
  text-align: right;
}

.leaderboard-empty {
  display: block !important;
  color: var(--muted);
  font-weight: 700;
}

.full-leaderboard-panel {
  overflow-x: auto;
  position: relative;
  scrollbar-color: #7d6817 #202219;
}

.full-leaderboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.full-leaderboard-head h3 {
  margin: 0;
}

.full-leaderboard-head p,
.full-leaderboard-head span {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.full-leaderboard-table {
  table-layout: fixed;
  min-width: 1120px;
}

.full-leaderboard-table .rank-column {
  width: 42px;
  text-align: left;
}

.full-leaderboard-table td.rank-column {
  color: var(--text);
  font-weight: 700;
}

.full-leaderboard-table .player-column {
  width: 132px;
  text-align: left;
}

.full-leaderboard-table .number-column {
  width: 30px;
  text-align: center;
}

.full-leaderboard-table .team-column {
  width: 132px;
  text-align: left;
}

.full-leaderboard-table .division-column {
  width: 64px;
  text-align: left;
}

.full-leaderboard-table .team-record-column {
  width: 84px;
  text-align: right;
}

.full-leaderboard-table .stat-column {
  width: 44px;
  text-align: center;
  white-space: nowrap;
}

.full-leaderboard-table .stat-cram {
  width: 52px;
}

.full-leaderboard-table .stat-gamesplayed {
  width: 38px;
}

.full-leaderboard-table .stat-minpergame,
.full-leaderboard-table .stat-tov {
  width: 42px;
}

.full-leaderboard-table .stat-fgpct,
.full-leaderboard-table .stat-threeptpct {
  width: 50px;
}

.full-leaderboard-table .stat-fgapergame,
.full-leaderboard-table .stat-threepapergame {
  width: 52px;
}

.full-leaderboard-table .stat-ftmadeattempt {
  width: 62px;
}

.full-leaderboard-table.is-5ms-view {
  min-width: 840px;
}

.full-leaderboard-table.is-5ms-view .stat-column {
  width: 48px;
}

.full-leaderboard-table.is-5ms-view .stat-cram {
  width: 52px;
}

.full-leaderboard-table.is-5ms-view .stat-gamesplayed {
  width: 38px;
}

.full-leaderboard-table.is-5ms-view .stat-minpergame {
  width: 42px;
}

.team-stats-table {
  min-width: 2360px;
}

.team-stats-table .team-name-column {
  width: 210px;
}

.team-stats-panel {
  margin-top: 0;
}

.team-stats-controls {
  justify-content: flex-start;
}

.team-stats-search-filter input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
}

.leaderboard-player-search-filter input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
}

.leaderboard-player-search-filter input:focus {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.full-leaderboard-table .stat-separator {
  border-left: 1px solid var(--line);
}

.full-leaderboard-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  padding: 0;
  text-align: center;
  text-transform: uppercase;
}

.full-leaderboard-sort-button:hover,
.full-leaderboard-sort-button[aria-pressed="true"] {
  color: var(--gold);
}

.full-leaderboard-sort-button .sort-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.full-leaderboard-sort-button .sort-icon-desc {
  background-image: url("assets/icons/chevron-down.svg");
}

.full-leaderboard-sort-button .sort-icon-asc {
  background-image: url("assets/icons/chevron-up.svg");
}

.team-roster-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  padding: 0;
  text-transform: uppercase;
}

.team-roster-sort-button:hover,
.team-roster-sort-button[aria-pressed="true"] {
  color: var(--gold);
}

.team-roster-sort-button .sort-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.team-roster-sort-button .sort-icon-desc {
  background-image: url("assets/icons/chevron-down.svg");
}

.team-roster-sort-button .sort-icon-asc {
  background-image: url("assets/icons/chevron-up.svg");
}
.leader-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.leader-grid.has-pool-standings {
  grid-template-columns: minmax(0, 1fr);
}

.leader-grid.has-pool-standings .boys-pool-standings-panel,
.leader-grid.has-pool-standings .overview-leader-categories-panel {
  grid-column: 1 / -1;
}

.table-panel {
  overflow-x: auto;
  padding: 12px;
}

.overview-table-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.overview-table-head h3 {
  margin: 0;
}

.overview-table-actions {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.overview-filter-cluster {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.overview-table-filter {
  display: grid;
  min-width: 150px;
  gap: 4px;
}

.overview-table-filter span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.overview-table-filter select,
.overview-search-filter input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background-color: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.overview-search-filter {
  min-width: 180px;
}

.overview-search-filter input {
  width: 100%;
}

.overview-full-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.overview-full-link:hover {
  background: rgba(250, 196, 34, .14);
}

.table-panel h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  border-top: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

td {
  color: var(--text);
  font-size: 14px;
}

td a {
  color: var(--gold);
  font-weight: 700;
}

.partner-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.partner-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--white);
  color: #111;
  font-weight: 900;
  text-align: center;
}

.partner-strip a.on-dark {
  background: #090a08;
}

.partner-strip img {
  width: 100%;
  max-width: 118px;
  max-height: 38px;
  object-fit: contain;
}

.site-footer {
  width: min(100%, var(--max));
  margin: 18px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.site-footer > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.metric-ring-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric-ring-card {
  --ring-color: var(--gold);
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-2);
}

.metric-ring-card.tone-green {
  --ring-color: var(--green);
}

.metric-ring-card.tone-blue {
  --ring-color: var(--blue);
}

.metric-ring-card.tone-orange {
  --ring-color: var(--orange);
}

.metric-ring-card.tone-red {
  --ring-color: var(--red);
}

.metric-ring-card.tone-violet {
  --ring-color: var(--violet);
}

.metric-ring {
  display: grid;
  place-items: center;
  width: 86px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface-2) 0 58%, transparent 59%),
    conic-gradient(var(--ring-color) var(--metric-fill), #2e3028 0);
}

.metric-ring strong {
  font-family: Oswald, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.metric-ring-copy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.metric-ring-copy h3 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.metric-ring-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.info-button {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #0b0c0a;
  color: var(--muted);
  cursor: help;
  font-size: 12px;
  font-weight: 900;
}

.info-button span {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  display: none;
  width: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #050606;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.info-button:hover span,
.info-button:focus-visible span,
.info-button[aria-expanded="true"] span {
  display: block;
}

.mobile-player-meta {
  display: none;
}

.metric-info-mobile-popover {
  display: none;
}

.text-link,
.back-link,
.box-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--gold);
}

.box-link {
  margin-top: 0;
  font-weight: 900;
}

.metric-note .box-link {
  margin-top: 12px;
  margin-left: 12px;
}

.muted-cell {
  color: var(--muted);
}

.box-score-grid,
.profile-grid,
.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.box-score-stack {
  display: grid;
  gap: 14px;
}

.box-table-panel {
  overflow: hidden;
  border: 1px solid #383b34;
  border-radius: 8px;
  background: #171916;
  color: var(--text);
}

.box-team-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #383b34;
  padding: 11px 13px;
  background: #20221e;
  color: var(--text);
  font-weight: 900;
}

.box-team-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.box-team-title em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.box-team-title strong {
  font-family: Oswald, sans-serif;
  font-size: 24px;
}

.box-table-scroll {
  overflow-x: auto;
}

.box-table {
  min-width: 980px;
  color: var(--text);
}

.box-table th,
.box-table td {
  border-top: 1px solid #34372f;
  padding: 7px 8px;
  color: #f0eee8;
  font-size: 13px;
  text-align: center;
}

.box-table th {
  background: #1d1f1b;
  color: #c9c0a7;
  font-size: 12px;
}

.box-table th:first-child,
.box-table td:first-child {
  position: sticky;
  left: 0;
  width: 210px;
  border-right: 1px solid #3b3e36;
  box-shadow: 10px 0 14px -14px rgba(0, 0, 0, .9);
  text-align: left;
}

.box-table th:first-child {
  z-index: 3;
  background: #1d1f1b;
}

.box-table tbody tr:nth-child(odd) td:first-child {
  z-index: 2;
  background: #171916;
}

.box-table tbody tr:nth-child(even) td:first-child {
  z-index: 2;
  background: #20221e;
}

.box-table tbody tr:nth-child(odd) {
  background: #171916;
}

.box-table tbody tr:nth-child(even) {
  background: #20221e;
}

.box-table td a {
  color: var(--white);
  font-weight: 900;
}

.team-total-row {
  background: #2a2d27 !important;
  font-weight: 900;
}

.team-total-row td:first-child {
  background: #2a2d27 !important;
}

.team-profile-stats-panel {
  margin-bottom: 14px;
  padding: 12px;
  overflow-x: auto;
}

.team-profile-stats-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.team-profile-stats-head h3 {
  margin: 0;
}

.team-stats-scroll {
  overflow-x: auto;
  scrollbar-color: #7d6817 #202219;
}

.team-profile-stats-table {
  table-layout: fixed;
  min-width: 2000px;
}

.team-profile-stats-table .team-split-column {
  width: 92px;
  color: var(--text);
  font-weight: 900;
  text-transform: uppercase;
}

.team-profile-stats-table .stat-column {
  width: 78px;
  text-align: right;
}

.team-profile-stats-table .stat-separator {
  border-left: 1px solid var(--line);
}

.boys-pool-standings-panel {
  min-width: 0;
  overflow-x: visible;
}

.boys-pool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.boys-pool-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #383b34;
  border-radius: 8px;
  background: #151711;
}

.boys-pool-card h3 {
  margin: 0;
  border-bottom: 1px solid #383b34;
  padding: 9px 10px;
  background: #20221e;
  color: var(--gold);
  font-family: Oswald, sans-serif;
  font-size: 18px;
  line-height: 1.1;
}

.boys-pool-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.boys-pool-table th,
.boys-pool-table td {
  box-sizing: border-box;
  border-top: 1px solid #2f322c;
  padding: 7px 6px;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.boys-pool-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.boys-pool-table th:nth-child(2),
.boys-pool-table td:nth-child(2) {
  width: auto;
  padding-left: 2px;
  padding-right: 8px;
  text-align: left;
}

.boys-pool-table th:first-child,
.boys-pool-table td:first-child {
  width: 30px;
  padding-right: 4px;
}

.boys-pool-table th:nth-child(3),
.boys-pool-table td:nth-child(3),
.boys-pool-table th:nth-child(4),
.boys-pool-table td:nth-child(4),
.boys-pool-table th:nth-child(5),
.boys-pool-table td:nth-child(5) {
  width: 36px;
}

.boys-pool-table th:nth-child(6),
.boys-pool-table td:nth-child(6) {
  width: 48px;
}

.boys-pool-table .favorite-name-cell {
  width: 100%;
  min-width: 0;
  gap: 4px;
}

.boys-pool-table .favorite-name-cell a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boys-pool-table td:first-child {
  color: var(--muted);
  font-weight: 900;
}

.overview-leader-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.overview-leader-category-card {
  min-width: 0;
  border: 1px solid #383b34;
  border-radius: 8px;
  background: #151711;
  overflow: hidden;
}

.overview-leader-category-card h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  border-bottom: 1px solid #383b34;
  padding: 9px 10px;
  background: #20221e;
  font-family: Oswald, sans-serif;
  font-size: 18px;
  line-height: 1.1;
}

.overview-leader-category-card h4 span {
  color: var(--text);
}

.overview-leader-category-card h4 b {
  color: var(--gold);
  font-size: 14px;
}

.overview-leader-category-card ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.overview-leader-category-card li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-top: 1px solid #2f322c;
  padding: 7px 10px;
}

.overview-leader-category-card li:first-child {
  border-top: 0;
}

.overview-leader-rank {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.overview-leader-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.overview-leader-copy a {
  overflow: hidden;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-leader-copy em a,
.overview-leader-copy em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.overview-leader-category-card strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.program-age-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #151711;
}

.program-age-nav > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.program-age-nav > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.program-age-nav button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.program-age-nav button:hover,
.program-age-nav button[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: #080807;
}

.profile-session-stack {
  display: grid;
  gap: 14px;
}

.profile-session-section {
  overflow: hidden;
  border: 1px solid #383b34;
  border-radius: 8px;
  background: #171916;
}

.profile-session-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #383b34;
  padding: 11px 13px;
  background: #20221e;
  color: var(--text);
  cursor: default;
  text-align: left;
}

.profile-session-heading span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Oswald, sans-serif;
  font-size: 19px;
}

.profile-session-heading em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-session-table-wrap {
  overflow-x: auto;
  scrollbar-color: #7d6817 #202219;
}

.profile-session-table {
  min-width: 1260px;
  width: 100%;
  border-collapse: collapse;
}

.player-profile-session-table {
  min-width: 1340px;
}

.profile-session-table th,
.profile-session-table td {
  border-top: 1px solid #34372f;
  padding: 7px 8px;
  color: #f0eee8;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.profile-session-table th {
  background: #1d1f1b;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-session-table th:first-child,
.profile-session-table td:first-child,
.profile-session-table th:nth-child(2),
.profile-session-table td:nth-child(2) {
  text-align: left;
}

.profile-session-table td a {
  color: var(--white);
  font-weight: 900;
}

.profile-summary-row td {
  background: #242720;
  font-weight: 900;
}

.profile-result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  border: 1px solid #464a40;
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.profile-result-pill.is-win {
  border-color: rgba(55, 166, 111, .62);
  background: rgba(55, 166, 111, .14);
  color: #63df9f;
}

.profile-result-pill.is-loss {
  border-color: rgba(200, 75, 58, .56);
  background: rgba(200, 75, 58, .14);
  color: #ff8d7f;
}

.schedule-score-with-result {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
}

.schedule-score-with-result em {
  display: inline-flex;
  justify-content: center;
  min-width: 22px;
  border-radius: 999px;
  padding: 2px 6px;
  background: #252820;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.schedule-score-with-result em.result-win {
  background: rgba(55, 166, 111, .16);
  color: #63df9f;
}

.schedule-score-with-result em.result-loss {
  background: rgba(200, 75, 58, .18);
  color: #ff8d7f;
}

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

.profile-grid.compact {
  margin-top: 0;
}

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

.team-box,
.stat-panel {
  padding: 14px;
}

.team-box strong,
.stat-panel strong {
  display: block;
  margin-top: 8px;
  font-family: Oswald, sans-serif;
  font-size: 42px;
}

.stat-panel em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.player-stat-rail {
  grid-template-columns: repeat(8, minmax(86px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.player-stat-rail .stat-panel {
  min-width: 0;
  min-height: 86px;
  padding: 10px 12px;
}

.player-stat-rail .stat-panel span,
.player-stat-rail .stat-panel em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-stat-rail .stat-panel strong {
  margin-top: 6px;
  font-size: 30px;
  line-height: 1;
}

.player-stat-rail .stat-panel em {
  font-size: 11px;
}

.team-box dl {
  display: flex;
  gap: 20px;
  margin: 12px 0 0;
}

.team-box div {
  display: grid;
  gap: 3px;
}

.team-box dt,
.stat-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.team-box dd {
  margin: 0;
  font-weight: 900;
}

.detail-section {
  margin-top: 0;
}

.metric-note {
  margin-top: 12px;
}

.history-section {
  margin-top: 14px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.history-section h3 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 18px;
}

.history-title-lockup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.history-presented-by {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .04);
  transition: border-color .18s ease, background-color .18s ease;
}

.history-presented-by:hover,
.history-presented-by:focus-visible {
  border-color: rgba(250, 196, 34, .58);
  background: rgba(250, 196, 34, .08);
}

.history-presented-by em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.history-presented-by img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

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

.history-view-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.history-view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 7px 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.history-view-toggle button:last-child {
  border-right: 0;
}

.history-view-toggle button[aria-pressed="true"] {
  background: rgba(250, 196, 34, .12);
  color: var(--text);
}

.history-view-toggle em {
  min-width: 20px;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, .08);
  color: var(--gold);
  font-style: normal;
  line-height: 1.2;
  text-align: center;
}

.history-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.history-toggle {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.history-toggle:hover,
.history-toggle[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--text);
}

.history-status {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.history-table-panel {
  overflow: hidden;
  border: 1px solid #383b34;
  border-radius: 8px;
  background: #171916;
}

.box-table.history-table {
  min-width: 1180px;
  table-layout: fixed;
}

.box-table.history-table th:first-child,
.box-table.history-table td:first-child {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  white-space: normal;
}

.box-table.history-table th:nth-child(2),
.box-table.history-table td:nth-child(2) {
  width: 156px;
  min-width: 156px;
  max-width: 156px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.box-table.history-table th:nth-child(n+3),
.box-table.history-table td:nth-child(n+3) {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  text-align: center;
}

.box-table.history-table th:nth-child(n+12),
.box-table.history-table td:nth-child(n+12) {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
}

.team-roster-panel {
  margin-bottom: 14px;
}

.team-profile-hero-row {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 10px;
}

.team-profile-main {
  min-width: 0;
}

.team-profile-main .breadcrumbs {
  margin-bottom: 10px;
}

.team-profile-header-row {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

.team-profile-title-block {
  display: grid;
  align-content: start;
  min-width: 0;
}

.team-profile-header-side {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.team-upcoming-panel {
  display: grid;
  flex: 1 1 auto;
  gap: 5px;
  max-width: 760px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #11130f;
}

.team-upcoming-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-upcoming-head h3 {
  margin: 1px 0 0;
  font-family: Oswald, sans-serif;
  font-size: 17px;
  line-height: 1.05;
}

.team-upcoming-head .eyebrow {
  font-size: 11px;
  line-height: 1;
}

.team-upcoming-head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-upcoming-rail {
  display: grid;
  grid-auto-columns: minmax(205px, 240px);
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-color: var(--gold) #20221e;
  scrollbar-width: thin;
  scroll-padding-inline: 1px;
  scroll-snap-type: x mandatory;
}

.team-upcoming-rail::-webkit-scrollbar {
  height: 8px;
}

.team-upcoming-rail::-webkit-scrollbar-track {
  background: #20221e;
}

.team-upcoming-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--gold);
}

.team-upcoming-rail .empty-state {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  line-height: 1.25;
}

.team-upcoming-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 7px;
  min-height: 70px;
  border: 1px solid #32352d;
  border-radius: 7px;
  padding: 7px;
  background: #151711;
  scroll-snap-align: start;
}

.team-upcoming-date {
  display: grid;
  align-content: start;
  gap: 2px;
  border-right: 1px solid var(--line);
  padding-right: 7px;
}

.team-upcoming-date strong,
.team-upcoming-date span,
.team-upcoming-matchup span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.team-upcoming-matchup {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
}

.team-upcoming-matchup h4 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  color: var(--white);
  font-family: Oswald, sans-serif;
  font-size: 16px;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.team-upcoming-matchup p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-upcoming-card .upcoming-box-link {
  grid-column: 1 / -1;
  justify-self: start;
}

.team-roster-table {
  min-width: 1120px;
}

@media (max-width: 920px) {
  .team-profile-hero-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .team-profile-header-side {
    width: 100%;
  }

  .team-upcoming-panel {
    max-width: none;
  }
}

.team-roster-table td strong {
  color: var(--white);
}

.player-game-log-table {
  min-width: 1040px;
}

.player-game-log-table td:first-child a {
  display: block;
}

.game-log-score {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.game-log-score.result-win {
  color: var(--gold);
}

.game-log-score.result-loss {
  color: #c9c0a7;
}

.history-table th,
.history-table td {
  padding: 6px 7px;
  font-size: 12px;
}

.history-table th:first-child,
.history-table td:first-child {
  width: 250px;
}

.history-table td strong {
  color: var(--white);
}

.history-table th:nth-child(2),
.history-table td:nth-child(2) {
  text-align: left;
}

.history-metric-ring {
  --ring-color: #4b4e43;
  display: inline-grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #171916 0 58%, transparent 59%),
    conic-gradient(var(--ring-color) var(--metric-fill), #32352d 0);
  vertical-align: middle;
}

.history-metric-ring strong {
  color: var(--text);
  font-family: Oswald, sans-serif;
  font-size: 12px;
  line-height: 1;
}

.history-metric-ring.tier-gold {
  --ring-color: var(--gold);
}

.history-metric-ring.tier-silver {
  --ring-color: #c8ced6;
}

.history-metric-ring.tier-bronze {
  --ring-color: #c7894a;
}

.history-metric-ring.tone-green {
  --ring-color: var(--green);
}

.history-metric-ring.tone-blue {
  --ring-color: var(--blue);
}

.history-metric-ring.tone-orange {
  --ring-color: var(--orange);
}

.history-metric-ring.tone-red {
  --ring-color: var(--red);
}

.history-metric-ring.tone-violet {
  --ring-color: var(--violet);
}

.history-ring-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.mini-ring {
  --ring-color: var(--gold);
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
}

.mini-ring.tone-green {
  --ring-color: var(--green);
}

.mini-ring.tone-blue {
  --ring-color: var(--blue);
}

.mini-ring.tone-orange {
  --ring-color: var(--orange);
}

.mini-ring.tone-red {
  --ring-color: var(--red);
}

.mini-ring.tone-violet {
  --ring-color: var(--violet);
}

.mini-ring-shape {
  display: grid;
  place-items: center;
  width: 56px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface-2) 0 58%, transparent 59%),
    conic-gradient(var(--ring-color) var(--metric-fill), #2e3028 0);
}

.mini-ring strong {
  font-family: Oswald, sans-serif;
  font-size: 16px;
  line-height: 1;
}

.mini-ring span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

@media (min-width: 1400px) {
  :root {
    --max: 1500px;
  }

  .site-header {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    min-width: 260px;
  }

  .event-bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-top: 36px;
    padding-bottom: 22px;
  }

  .home-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .content-section,
  .bracket-panel,
  .quick-nav,
  .metric-note {
    padding: 20px;
  }

  .scoreboard-list {
    gap: 12px;
  }

  .metric-ring-grid,
  .player-stat-grid {
    gap: 12px;
  }

}

@media (max-width: 980px) {
  .event-bar,
  .home-grid,
  .leader-grid,
  .leader-grid.has-pool-standings,
  .boys-pool-grid,
  .overview-leader-category-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    padding: 12px 16px;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: var(--surface);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .event-bar,
  .route-region {
    padding-right: 14px;
    padding-left: 14px;
  }

  .event-controls,
  .scoreboard-list.wide,
  .box-score-grid,
  .partner-strip,
  .profile-grid,
  .player-stat-grid,
  .metric-ring-grid {
    grid-template-columns: 1fr;
  }

  .universal-age-bar {
    top: 64px;
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  body[data-route="home"] .universal-age-bar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .player-profile-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .overview-table-head,
  .overview-table-actions,
  .overview-filter-cluster {
    align-items: stretch;
  }

  .overview-filter-cluster,
  .overview-table-filter,
  .overview-search-filter {
    width: 100%;
    min-width: 0;
  }

  .team-stats-controls,
  .team-stats-search-filter {
    width: 100%;
  }

  .history-card-head {
    display: grid;
  }

  .history-line {
    justify-content: flex-start;
  }

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

  .event-bar h1 {
    font-size: 42px;
  }

  .home-grid .primary-column > .scoreboard-list {
    display: grid;
    grid-auto-columns: minmax(280px, 86vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 10px;
    margin-right: -14px;
    margin-left: 0;
    overflow-x: auto;
    padding: 0 14px 12px 0;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .home-grid .primary-column > .scoreboard-list::-webkit-scrollbar {
    display: none;
  }

  .home-grid .primary-column > .scoreboard-list .game-card {
    scroll-snap-align: start;
  }

}

.box-page-actions {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 14px;
}

.print-box-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--white);
  border-radius: 8px;
  padding: 9px 14px;
  background: var(--white);
  color: #080807;
  cursor: pointer;
  font-weight: 900;
}

.print-box-button:hover {
  border-color: var(--gold);
  background: var(--gold);
}

.print-box-score {
  display: none;
}

.print-preview-shell {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 18px;
  overflow: hidden;
  background: rgba(5, 6, 5, .96);
}

.print-preview-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.print-preview-note > div:first-child {
  display: grid;
  gap: 2px;
}

.print-preview-note strong {
  color: var(--gold);
}

.print-preview-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.print-preview-print,
.print-preview-close {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  background: #171916;
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.print-preview-print {
  min-height: 34px;
  border-radius: 8px;
  padding: 8px 12px;
  color: #080807;
  background: var(--white);
}

.print-preview-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 17px;
}

.mobile-share-only {
  display: none;
}

.print-preview-print:hover,
.print-preview-close:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #080807;
}

.print-preview-stage {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
}

.print-preview-shell .print-box-score {
  display: block;
  width: 900px;
  min-width: 900px;
  max-height: calc(100vh - 86px);
  margin: 0 auto;
  overflow-y: auto;
  padding: 36px;
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

.print-preview-shell .print-score-header {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 190px;
  align-items: end;
  gap: 20px;
  border-bottom: 4px solid #111;
  padding-bottom: 12px;
}

.print-preview-shell .print-brand {
  display: grid;
  gap: 7px;
  align-items: start;
}

.print-preview-shell .print-brand img {
  width: 130px;
  max-width: 100%;
  height: auto;
  filter: none;
}

.print-preview-shell .print-brand span {
  color: #6f5b0f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.print-preview-shell .print-game-meta {
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
}

.print-preview-shell .print-partner-brand {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
}

.print-preview-shell .print-partner-brand img {
  width: 178px;
  max-width: 100%;
  height: auto;
  filter: none;
}

.print-preview-shell .print-game-meta h1,
.print-preview-shell .print-game-meta p {
  margin: 0;
  color: #111;
}

.print-preview-shell .print-game-meta h1 {
  font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  line-height: .95;
}

.print-preview-shell .print-game-meta p {
  color: #4b4b4b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.print-preview-shell .print-scoreline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 20px;
}

.print-preview-shell .print-score-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #111;
  border-left: 8px solid #c5a21d;
  padding: 10px 12px;
}

.print-preview-shell .print-score-team span {
  overflow: hidden;
  color: #111;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-preview-shell .print-score-team strong {
  color: #111;
  font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
  text-align: right;
}

.print-preview-shell .print-team-box {
  break-inside: avoid;
  margin-top: 16px;
}

.print-preview-shell .print-team-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: end;
  gap: 12px;
  border-bottom: 2px solid #c5a21d;
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.print-preview-shell .print-team-title span {
  display: block;
  margin-bottom: 3px;
  color: #6f5b0f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.print-preview-shell .print-team-title h3 {
  margin: 0;
  color: #111 !important;
  font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
  font-size: 21px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.print-preview-shell .print-team-title strong {
  color: #111;
  font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  text-align: right;
}

.print-preview-shell .print-box-table {
  width: 100%;
  border-collapse: collapse;
  color: #111;
  table-layout: fixed;
}

.print-preview-shell .print-box-table th,
.print-preview-shell .print-box-table td {
  border: 0;
  border-bottom: 1px solid #d7d3c5;
  padding: 4px 5px;
  color: #111;
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
}

.print-preview-shell .print-box-table th {
  border-bottom: 1.75px solid #111;
  color: #6f5b0f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.print-preview-shell .print-box-table th:nth-child(1),
.print-preview-shell .print-box-table td:nth-child(1) {
  width: 28px;
}

.print-preview-shell .print-box-table th:nth-child(2),
.print-preview-shell .print-box-table td:nth-child(2) {
  width: 210px;
  text-align: left;
}

.print-preview-shell .print-box-table tbody tr:nth-child(even):not(.print-total-row):not(.print-pct-row) {
  background: #fbfaf5 !important;
}

.print-preview-shell .print-box-table td strong {
  color: #111;
  font-size: 13px;
}

.print-preview-shell .print-total-row td {
  border-top: 2px solid #111;
  border-bottom: 0;
  color: #111;
  font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.print-preview-shell .print-total-row td:first-child {
  text-align: left;
}

.print-preview-shell .print-pct-row td {
  border-bottom: 0;
  padding-top: 0;
  color: #6f5b0f;
  font-size: 12px;
  font-weight: 900;
}

@media print {
  @page {
    size: 8.5in 11in;
    margin: .3in;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html,
  body {
    width: auto;
    min-width: 0;
    background: #fff !important;
    color: #111 !important;
  }

  .site-header,
  .event-bar,
  .back-link,
  .breadcrumbs,
  .detail-section > .section-header,
  .box-page-actions,
  .print-preview-note,
  .box-score-stack,
  .site-footer,
  .search-backdrop {
    display: none !important;
  }

  .app-shell,
  main,
  .route-region,
  .content-section.detail-section {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
  }

  .print-preview-shell {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .print-preview-stage {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .print-preview-shell .print-box-score,
  .print-box-score {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding: 0 !important;
    transform: none !important;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
  }

  .print-score-header {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 190px;
    align-items: end;
    gap: 20px;
    border-bottom: 4px solid #111;
    padding-bottom: 12px;
  }

  .print-brand {
    display: grid;
    gap: 7px;
    align-items: start;
  }

  .print-brand img {
    width: 130px;
    max-width: 100%;
    height: auto;
    filter: none;
  }

  .print-brand span {
    color: #6f5b0f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .print-game-meta {
    display: grid;
    gap: 7px;
    justify-items: center;
    text-align: center;
  }

  .print-partner-brand {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 0;
  }

  .print-partner-brand img {
    width: 178px;
    max-width: 100%;
    height: auto;
    filter: none;
  }

  .print-game-meta h1,
  .print-game-meta p {
    margin: 0;
    color: #111;
  }

  .print-game-meta h1 {
    font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
    line-height: .95;
  }

  .print-game-meta p {
    color: #4b4b4b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .print-scoreline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0 20px;
  }

  .print-score-team {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #111;
    border-left: 8px solid #c5a21d;
    padding: 10px 12px;
  }

  .print-score-team span {
    overflow: hidden;
    color: #111;
    font-size: 16px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .print-score-team strong {
    color: #111;
    font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
    font-size: 30px;
    line-height: 1;
    text-align: right;
  }

  .print-team-box {
    break-inside: avoid;
    margin-top: 16px;
  }

  .print-team-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    align-items: end;
    gap: 12px;
    border-bottom: 2px solid #c5a21d;
    padding-bottom: 6px;
    margin-bottom: 6px;
  }

  .print-team-title span {
    display: block;
    margin-bottom: 3px;
    color: #6f5b0f;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .print-team-title h3 {
    margin: 0;
    color: #111 !important;
    font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
    font-size: 21px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
  }

  .print-team-title strong {
    color: #111;
    font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
    font-size: 25px;
    line-height: 1;
    text-align: right;
  }

  .print-box-table {
    width: 100%;
    border-collapse: collapse;
    color: #111;
    table-layout: fixed;
  }

  .print-preview-shell .print-box-table th,
  .print-preview-shell .print-box-table td,
  .print-box-table th,
  .print-box-table td {
    border: 0;
    border-bottom: 1px solid #d7d3c5;
    padding: 3.5px 4px !important;
    color: #111;
    font-size: 10px !important;
    line-height: 1.1;
    text-align: center;
  }

  .print-preview-shell .print-box-table th,
  .print-box-table th {
    border-bottom: 1.75px solid #111;
    color: #6f5b0f;
    font-size: 8px !important;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .print-preview-shell .print-box-table th:nth-child(1),
  .print-preview-shell .print-box-table td:nth-child(1),
  .print-box-table th:nth-child(1),
  .print-box-table td:nth-child(1) {
    width: 26px !important;
  }

  .print-preview-shell .print-box-table th:nth-child(2),
  .print-preview-shell .print-box-table td:nth-child(2),
  .print-box-table th:nth-child(2),
  .print-box-table td:nth-child(2) {
    width: 170px !important;
    text-align: left;
  }

  .print-box-table tbody tr:nth-child(even):not(.print-total-row):not(.print-pct-row) {
    background: #fbfaf5 !important;
  }

  .print-box-table td strong {
    color: #111;
    font-size: 13px;
  }

  .print-total-row td {
    border-top: 2px solid #111;
    border-bottom: 0;
    color: #111;
    font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
  }

  .print-total-row td:first-child {
    text-align: left;
  }

  .print-pct-row td {
    border-bottom: 0;
    padding-top: 0;
    color: #6f5b0f;
    font-size: 12px;
    font-weight: 900;
  }
}
@media (max-width: 980px) {
  .nba-leaderboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .box-table-panel {
    border-radius: 7px;
  }

  .box-team-title {
    gap: 10px;
    padding: 10px 11px;
  }

  .box-team-title h3 {
    min-width: 0;
    font-size: 18px;
    line-height: 1.05;
  }

  .box-team-title strong {
    font-size: 23px;
  }

  .box-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: var(--gold) #242720;
    scrollbar-width: thin;
  }

  .box-table {
    min-width: 736px;
    table-layout: fixed;
  }

  .box-table th,
  .box-table td {
    padding: 6px 6px;
    font-size: 12px;
    line-height: 1.12;
  }

  .box-table th {
    font-size: 10px;
  }

  .box-table th:first-child,
  .box-table td:first-child {
    width: 146px;
    min-width: 146px;
    max-width: 146px;
    padding-left: 8px;
    white-space: normal;
  }

  .box-table td:first-child a {
    display: inline;
    line-height: 1.15;
    white-space: normal;
  }

  .box-table th:nth-child(2),
  .box-table td:nth-child(2),
  .box-table th:nth-child(3),
  .box-table td:nth-child(3),
  .box-table th:nth-child(8),
  .box-table td:nth-child(8),
  .box-table th:nth-child(9),
  .box-table td:nth-child(9),
  .box-table th:nth-child(10),
  .box-table td:nth-child(10),
  .box-table th:nth-child(11),
  .box-table td:nth-child(11),
  .box-table th:nth-child(14),
  .box-table td:nth-child(14) {
    width: 42px;
  }

  .box-table th:nth-child(4),
  .box-table td:nth-child(4),
  .box-table th:nth-child(5),
  .box-table td:nth-child(5),
  .box-table th:nth-child(6),
  .box-table td:nth-child(6) {
    width: 54px;
  }

  .box-table th:nth-child(7),
  .box-table td:nth-child(7),
  .box-table th:nth-child(12),
  .box-table td:nth-child(12),
  .box-table th:nth-child(13),
  .box-table td:nth-child(13) {
    width: 50px;
  }

  .box-table th:nth-child(15),
  .box-table td:nth-child(15) {
    width: 68px;
  }

  .nba-leaderboard-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .leaderboard-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .leaderboard-controls {
    display: grid;
    gap: 12px;
  }

  .leaderboard-control-stack {
    width: 100%;
  }

  .leaderboard-division-filter {
    min-width: 0;
  }

  .full-leaderboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .leaderboard-mode-button {
    min-height: 42px;
    padding: 9px 10px;
  }

  .leaderboard-player-copy span {
    white-space: normal;
  }
  /* Player profiles need to scan quickly on phones: compact the summary before the deep tables. */
  body[data-route="player"] .event-bar {
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 8px;
  }

  body[data-route="player"] .event-bar h1 {
    font-size: 30px;
    line-height: 1;
  }

  body[data-route="player"] .event-bar p {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.25;
  }

  body[data-route="player"] .event-controls {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 8px;
  }

  body[data-route="player"] .event-controls label {
    gap: 5px;
  }

  body[data-route="player"] .event-controls select,
  body[data-route="player"] .search-trigger {
    min-height: 38px;
    padding: 9px 10px;
  }
  .content-section.detail-section {
    padding: 14px 10px;
  }

  .detail-section > .section-header {
    margin-bottom: 10px;
  }

  .player-profile-title-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .player-profile-title-row h2 {
    min-width: 0;
    font-size: 24px;
  }

  .detail-section > .metric-ring-grid {
    display: grid;
    grid-auto-columns: 92px;
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 8px;
    margin: 0 -10px 10px 0;
    overflow-x: auto;
    padding: 0 10px 8px 0;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .detail-section > .metric-ring-grid::-webkit-scrollbar {
    display: none;
  }

  .detail-section .metric-ring-card {
    justify-items: center;
    gap: 7px;
    min-width: 0;
    padding: 8px;
    scroll-snap-align: start;
  }

  .detail-section .metric-ring {
    width: 58px;
  }

  .detail-section .metric-ring strong {
    font-size: 16px;
  }

  .detail-section .metric-ring-copy {
    width: 100%;
    align-items: center;
    gap: 4px;
  }

  .detail-section .metric-ring-copy h3 {
    font-size: 14px;
  }

  .detail-section .metric-ring-copy span {
    display: none;
  }

  .detail-section .info-button {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .detail-section > .player-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }

  .detail-section > .player-stat-grid .stat-panel {
    min-width: 0;
    padding: 8px 6px;
  }

  .detail-section > .player-stat-grid .stat-panel span {
    font-size: 10px;
  }

  .detail-section > .player-stat-grid .stat-panel strong {
    margin-top: 3px;
    font-size: 23px;
    line-height: 1;
  }

  .detail-section > .player-stat-grid .stat-panel em {
    margin-top: 1px;
    font-size: 10px;
    line-height: 1.15;
  }

  .player-game-log.history-section,
  .detail-section > .history-section {
    margin-top: 10px;
  }
}
@media (max-width: 720px) {
  .print-preview-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: rgba(0, 0, 0, .78);
  }

  .print-preview-note {
    width: min(100%, var(--print-preview-scaled-width, 348px));
    min-height: 42px;
    align-items: center;
    padding: 8px 0;
  }

  .print-preview-note span {
    font-size: 9px;
    line-height: 1.15;
  }

  .print-only {
    display: none;
  }

  .mobile-share-only {
    display: inline-grid;
  }

  .print-preview-print {
    min-height: 40px;
    padding: 8px 12px;
  }

  .print-preview-print:disabled {
    cursor: wait;
    opacity: .72;
  }

  .print-preview-close {
    width: 40px;
    height: 40px;
    border-color: #484b41;
    background: #11130f;
    color: var(--white);
    font-size: 18px;
  }

  .print-preview-stage {
    flex: 0 0 auto;
    width: var(--print-preview-scaled-width, 348px);
    height: var(--print-preview-scaled-height, 310px);
    min-height: 0;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
  }

  .print-preview-shell .print-box-score {
    width: 900px;
    min-width: 900px;
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
    overflow: visible;
    padding: 36px;
    transform: scale(var(--print-preview-scale, .38));
    transform-origin: top center;
    will-change: transform;
  }
}
.upcoming-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
  width: min(100%, var(--max));
  margin: 0 auto 18px;
  padding: 0 20px;
}

.upcoming-hero > div,
.upcoming-source-panel,
.last-week-callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.upcoming-hero > div:first-child {
  padding: 22px;
}

.eyebrow {
  display: inline-flex;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.upcoming-hero h2,
.last-week-callout h2 {
  margin: 8px 0 0;
  font-family: Oswald, sans-serif;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.upcoming-hero p,
.last-week-callout p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.upcoming-source-panel {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
}

.upcoming-source-panel span,
.upcoming-source-panel em,
.upcoming-source-panel small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.upcoming-source-panel strong {
  font-family: Oswald, sans-serif;
  font-size: 34px;
  line-height: 1;
}

.schedule-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.schedule-filter-row label {
  display: grid;
  gap: 7px;
}

.schedule-filter-row span {
  color: var(--cream);
  font-size: 12px;
  font-weight: 900;
}

.schedule-filter-row select,
.schedule-filter-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #32352d;
  border-radius: 6px;
  background-color: #10120d;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  padding: 0 12px;
}

.upcoming-date-group + .upcoming-date-group {
  margin-top: 18px;
}

.upcoming-date-heading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  margin-bottom: 10px;
  padding-bottom: 8px;
  text-align: left;
}

.upcoming-date-heading strong {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 26px;
  line-height: 1;
}

.upcoming-date-heading span {
  display: grid;
  gap: 3px;
}

.upcoming-date-heading em,
.upcoming-date-heading b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
}

.upcoming-date-heading b {
  color: var(--gold);
}

.upcoming-date-body {
  display: grid;
  gap: 14px;
}

.upcoming-time-group {
  display: grid;
  gap: 8px;
}

.upcoming-time-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.upcoming-time-heading span,
.upcoming-time-heading em {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.upcoming-time-heading span {
  color: var(--gold);
}

.upcoming-game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
}

.upcoming-game-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 9px;
  border: 1px solid #32352d;
  border-radius: 7px;
  padding: 10px;
  background: #151711;
}

.upcoming-game-time {
  display: grid;
  align-content: start;
  gap: 4px;
  border-right: 1px solid var(--line);
  padding-right: 9px;
}

.upcoming-game-time strong {
  color: var(--muted);
  font-family: Lato, sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.upcoming-game-time span,
.upcoming-game-time em,
.upcoming-game-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
}

.upcoming-game-time .upcoming-division-label {
  color: var(--muted);
}

.upcoming-matchup {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.upcoming-team-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.upcoming-matchup strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-team-line b {
  color: var(--white);
  font-family: Oswald, sans-serif;
  font-size: 20px;
  line-height: 1;
}

.upcoming-matchup span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.upcoming-game-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.upcoming-box-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: transparent;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  text-decoration: none;
}

.upcoming-box-link:hover {
  background: rgba(250, 196, 34, .14);
  border-color: var(--gold);
}

.upcoming-box-pending {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #3a3c32;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: none;
}

.favorite-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  vertical-align: middle;
}

.favorite-name-cell > a,
.favorite-name-cell > span,
.favorite-name-cell > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-team-code {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.upcoming-favorite-name {
  display: flex;
}

.favorite-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.favorite-matchup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.last-week-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(100%, var(--max));
  margin: 18px auto 0;
  padding: 22px;
}

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

.last-week-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 900;
}

.last-week-actions a:hover,
.last-week-actions .primary-action {
  border-color: var(--gold);
  background: var(--gold);
  color: #080807;
}

@media (max-width: 720px) {
  .upcoming-hero,
  .last-week-callout {
    grid-template-columns: 1fr;
  }

  .schedule-filter-row,
  .upcoming-game-list {
    grid-template-columns: 1fr;
  }

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

  .team-profile-hero-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .team-profile-header-side {
    width: 100%;
    min-width: 0;
  }

  .team-upcoming-head {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .team-upcoming-rail {
    grid-auto-columns: minmax(205px, 76vw);
  }

  .team-upcoming-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .favorite-title-row {
    align-items: flex-start;
  }

  .overview-table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-table-filter {
    width: 100%;
  }

  .overview-table-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .overview-full-link {
    width: 100%;
  }
}

@media (min-width: 981px) {
  .detail-section > .player-stat-rail {
    grid-template-columns: repeat(8, minmax(86px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
  }

  .detail-section > .player-stat-rail .stat-panel {
    min-height: 86px;
    padding: 10px 12px;
  }

  .detail-section > .player-stat-rail .stat-panel strong {
    margin-top: 6px;
    font-size: 30px;
    line-height: 1;
  }

  .detail-section > .player-stat-rail .stat-panel span,
  .detail-section > .player-stat-rail .stat-panel em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/*
  Peach Jam 2026 visual system
  ----------------------------
  This final layer deliberately overrides the earlier EYBL Hub palette without
  changing the underlying layout or data components. Black is reserved for brand,
  headings, and primary interaction; the event surface stays quiet and gray.
*/
:root {
  --bg: #ededeb;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --text: #111111;
  --muted: #5f5f5b;
  --line: #cfcfca;
  --gold: #2f302c;
  --peach-orange: #2f302c;
  --peach-orange-deep: #111111;
  --cream: #3f3f3b;
  --white: #ffffff;
  --max: 1280px;
}

html,
body {
  background: var(--bg);
  color: var(--text);
}

body,
button,
input,
select,
textarea {
  font-family: Lato, sans-serif;
}

/* Editorial body copy stays intentionally plain against Anton display type. */
p,
p * {
  font-family: Helvetica, Arial, sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.event-bar h1,
.hub-home h1,
.upcoming-hero h2,
.session-event-header h1,
.wiki-hero h2,
.section-header h2,
.table-panel h3,
.team-box h3,
.game-date-toggle,
.upcoming-date-heading strong,
.home-event-card h2,
.home-panel-header h2,
.home-leaderboard-card-head h3,
.home-mini-table h4,
.home-pool-section h5,
.box-team-title h3,
.box-team-title strong,
.score-row strong,
.upcoming-team-line b,
.home-game-teams b,
.stat-panel strong {
  font-family: Anton, Impact, sans-serif !important;
  font-weight: 400;
  letter-spacing: .01em;
}

.site-header {
  min-height: 68px;
  border-bottom: 0;
  padding-block: 10px;
  background: #050505;
  box-shadow: none;
}

.brand {
  min-width: 0;
  gap: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
}

.site-nav {
  gap: 0;
}

.site-nav a,
.nav-toggle,
.card-actions a,
.text-link,
.back-link {
  border: 0;
  border-radius: 0;
  color: #e8e8e6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current],
.card-actions a:hover,
.text-link:hover,
.back-link:hover {
  border-color: transparent;
  background: #ffffff;
  color: #050505;
}

.nav-toggle {
  border: 1px solid #5a5a57;
  background: transparent;
}

body[data-route="home"] .route-region {
  padding-bottom: 48px;
}

.hub-home {
  border-bottom: 0;
  background: var(--bg);
}

.hub-home::before,
.hub-home::after {
  display: none;
}

.hub-home-hero {
  width: min(100%, 1160px);
  padding: clamp(54px, 9vw, 118px) 20px clamp(42px, 7vw, 76px);
}

.hub-home-logo {
  display: none;
}

.hub-home-hero > p.hub-home-date {
  margin: 0;
  color: #111111 !important;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(23px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: .025em;
  line-height: 1;
  text-transform: uppercase;
}

.hub-home-eyebrow {
  display: none;
}

.hub-home h1 {
  max-width: none;
  margin-top: 26px;
  color: #050505;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(76px, 12vw, 160px);
  font-weight: 400;
  letter-spacing: .015em;
  line-height: .84;
  text-transform: uppercase;
}

.hub-home h1 span {
  display: inline;
  margin-left: .18em;
  color: #050505;
}

.hub-home-hero > p:not(.hub-home-date) {
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
}

.home-event-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  border: 1px solid #bcbcb7;
  background: #bcbcb7;
}

.home-event-card,
.home-event-card.is-primary {
  min-height: 238px;
  border: 0;
  border-radius: 0;
  padding: 20px;
  background: #ffffff;
  box-shadow: none;
  transition: background-color .15s ease, color .15s ease;
}

.home-event-card:hover,
.home-event-card.is-primary:hover {
  border: 0;
  background: #111111;
  color: #ffffff;
  transform: none;
}

.home-event-card span,
.home-game-kicker,
.home-game-main span,
.home-game-main em,
.home-event-card b,
.home-leaderboard-card-head span {
  color: inherit;
  font-size: 11px;
  letter-spacing: .05em;
}

.home-event-card h2 {
  font-size: 32px;
}

.home-event-card p,
.home-panel-header p,
.home-leaderboard-card-head p {
  color: var(--muted);
}

.home-event-card:hover p,
.home-event-card:hover b {
  color: #d4d4d0;
}

.content-section,
.bracket-panel,
.quick-nav,
.metric-note,
.game-card,
.table-panel,
.team-box,
.stat-panel,
.history-card,
.upcoming-hero > div,
.upcoming-source-panel,
.last-week-callout,
.home-game-card,
.home-leaderboard-card,
.wiki-card,
.wiki-panel,
.home-pool-section,
.upcoming-game-card,
.game-date-toggle {
  border-color: var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.content-section,
.bracket-panel,
.quick-nav,
.metric-note {
  padding: 20px;
}

.eyebrow,
.upcoming-source-panel span,
.upcoming-source-panel em,
.upcoming-source-panel small,
.game-date-toggle em,
.upcoming-date-heading em,
.upcoming-date-heading b,
.upcoming-time-heading span,
.upcoming-time-heading em,
.upcoming-game-time strong,
.upcoming-game-time span,
.upcoming-game-time em,
.upcoming-game-meta span,
.upcoming-matchup span {
  color: var(--muted);
  letter-spacing: .05em;
}

.upcoming-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: min(100%, var(--max));
  margin-bottom: 24px;
}

.upcoming-hero > div:first-child,
.upcoming-source-panel {
  border: 0;
  border-bottom: 1px solid #bfbfbb;
  background: transparent;
}

.upcoming-hero > div:first-child {
  padding: 34px 0 20px;
}

.upcoming-source-panel {
  align-content: end;
  padding: 34px 0 20px 24px;
  text-align: right;
}

.upcoming-hero h2,
.last-week-callout h2 {
  color: #050505;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .88;
  text-transform: uppercase;
}

.upcoming-source-panel strong {
  color: #050505;
  font-family: Anton, Impact, sans-serif;
  font-size: 30px;
  font-weight: 400;
}

table {
  color: var(--text);
}

th {
  color: #4d4d49;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  letter-spacing: .035em;
}

th,
td {
  border-color: var(--line) !important;
}

tbody tr,
.box-table tbody tr:nth-child(odd),
.box-table tbody tr:nth-child(even) {
  background: #ffffff;
}

tbody tr:hover {
  background: #f1f1ef;
}

.team-total-row,
.team-total-row td:first-child {
  background: #e2e2de !important;
  color: #111111;
}

.box-table td a,
.score-row.winner a,
.score-row.winner strong,
.upcoming-team-line b,
.home-game-teams b {
  color: #111111;
}

.box-team-title,
.home-pool-section h5,
.game-date-toggle {
  background: #111111;
  color: #ffffff;
}

.game-date-toggle:hover,
.box-team-title:hover {
  border-color: #111111;
  background: #222222;
}

.box-team-title h3,
.box-team-title strong,
.game-date-toggle em,
.game-date-toggle::after {
  color: #ffffff;
}

input,
select,
.schedule-filter-row select,
.schedule-filter-row input,
.bracket-select select {
  border-color: #bdbdb8;
  border-radius: 0;
  background-color: #ffffff;
  color: #111111;
}

input:focus,
select:focus {
  outline: 2px solid #111111;
  outline-offset: 1px;
}

.primary-action,
.live-stats-action,
.upcoming-box-link,
.card-actions a.primary-action,
.last-week-actions .primary-action,
.overview-full-link {
  border-color: #111111 !important;
  border-radius: 0;
  background: #111111 !important;
  color: #ffffff !important;
}

.primary-action:hover,
.live-stats-action:hover,
.upcoming-box-link:hover,
.card-actions a.primary-action:hover,
.last-week-actions .primary-action:hover,
.overview-full-link:hover {
  background: #ffffff !important;
  color: #111111 !important;
}

.last-week-actions a,
.home-game-actions a,
.upcoming-box-pending,
.status-badge,
.team-record-pill,
.team-shot-chart-link,
.bracket-round-tabs button,
.history-view-toggle button,
.history-toggle {
  border-color: #bdbdb8;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
}

.status-badge,
.team-record-pill {
  font-weight: 900;
}

.bracket-round-tabs button:hover,
.bracket-round-tabs button.is-active,
.history-view-toggle button[aria-pressed="true"],
.history-toggle[aria-pressed="true"] {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.route-region,
.route-region > .content-section,
.route-region > .detail-section {
  color: var(--text);
}

.site-footer,
.footer {
  border-color: var(--line);
  background: #111111;
  color: #ffffff;
}

@media (max-width: 900px) {
  .home-event-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 58px;
  }

  .site-nav {
    border: 1px solid #333333;
    background: #050505;
  }

  .site-nav a {
    border-bottom: 1px solid #262626;
    padding: 13px 14px;
  }

  .hub-home-hero {
    padding-top: 54px;
  }

  .hub-home-date {
    font-size: 21px;
  }

  .hub-home h1 {
    font-size: clamp(66px, 21vw, 104px);
    line-height: .87;
  }

  .hub-home h1 span {
    display: block;
    margin: 6px 0 0;
  }

  .home-event-cards {
    grid-template-columns: 1fr;
  }

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

  .upcoming-source-panel {
    align-content: start;
    padding-top: 18px;
    padding-left: 0;
    text-align: left;
  }
}

/* Keep standings pools and compact leaderboard cards on the light event surface. */
.boys-pool-card,
.overview-leader-category-card {
  border-color: var(--line);
  border-radius: 0;
  background: #ffffff;
}

.boys-pool-card h3,
.overview-leader-category-card h4 {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
}

.boys-pool-card h3,
.overview-leader-category-card h4 span,
.overview-leader-category-card h4 b {
  color: #ffffff;
}

.boys-pool-table th,
.boys-pool-table td,
.overview-leader-category-card li {
  border-color: var(--line);
  background: #ffffff;
  color: #111111;
}

.boys-pool-table th {
  color: #4d4d49;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
}

.boys-pool-table td:first-child,
.overview-leader-rank,
.overview-leader-copy em,
.overview-leader-copy em a {
  color: var(--muted);
}

.overview-leader-copy a,
.overview-leader-category-card strong {
  color: #111111;
}

/* Compact global age navigation: a slim black bar with an unambiguous active state. */
.universal-age-bar {
  top: 67px;
  margin-bottom: 12px;
  padding: 6px 20px;
  border-bottom: 0;
  background: #111111;
  backdrop-filter: none;
}

.universal-age-bar .age-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.universal-age-bar .age-toggle > span {
  color: #ffffff;
  font-size: 10px;
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
}

.universal-age-bar .age-toggle-buttons {
  gap: 2px;
  overflow: visible;
  padding-bottom: 0;
}

.universal-age-bar .age-toggle-buttons button {
  flex: 0 0 70px;
  min-height: 30px;
  border: 1px solid #4a4a47;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-family: Anton, Impact, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1;
  padding: 0 8px;
}

.universal-age-bar .age-toggle-buttons button:hover,
.universal-age-bar .age-toggle-buttons button[aria-pressed="true"] {
  border-color: #ffffff;
  background: #ffffff;
  color: #111111;
}

@media (max-width: 720px) {
  .universal-age-bar {
    top: 57px;
    margin-right: -14px;
    margin-left: -14px;
    padding: 6px 14px;
  }

  .universal-age-bar .age-toggle {
    gap: 10px;
  }

  .universal-age-bar .age-toggle-buttons button {
    flex-basis: 58px;
  }
}

/* Peach Jam contrast pass: dark event headers above a brighter information surface. */
:root {
  --bg: #dededb;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --line: #c7c7c2;
}

.brand-logo {
  width: 50px;
  height: 50px;
}

.hub-home {
  background: #111111;
}

.hub-home-hero {
  padding-top: clamp(48px, 7vw, 92px);
  padding-bottom: clamp(48px, 7vw, 86px);
}

.hub-home-logo {
  display: block;
  width: clamp(86px, 10vw, 130px);
  height: auto;
  margin-bottom: 30px;
}

.hub-home-hero > p.hub-home-date {
  color: #f4f4f1 !important;
}

.hub-home h1,
.hub-home h1 span {
  color: #ffffff;
}

.hub-home h1 span {
  color: #ffffff;
}

.hub-home-hero > p:not(.hub-home-date) {
  color: #e4e4df;
}

.home-event-cards {
  border-color: #efefea;
  background: #efefea;
}

.home-event-card,
.home-event-card.is-primary {
  background: #ffffff;
}

.upcoming-hero {
  margin-top: 0;
  padding: 28px;
  border: 1px solid #111111;
  background: #111111;
}

.upcoming-hero > div:first-child {
  border: 0;
  padding: 0;
  background: transparent;
}

.upcoming-hero .eyebrow {
  color: #f4f4f1;
}

.upcoming-hero h2 {
  color: #ffffff;
}

.upcoming-hero p {
  color: #e4e4df;
}

.content-section,
.table-panel,
.team-box,
.stat-panel,
.game-card,
.history-card,
.wiki-card,
.wiki-panel,
.upcoming-game-card {
  background: #ffffff;
}

tbody tr,
.box-table tbody tr:nth-child(odd),
.box-table tbody tr:nth-child(even),
.boys-pool-table th,
.boys-pool-table td,
.overview-leader-category-card li {
  background: #ffffff;
}

@media (max-width: 720px) {
  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .hub-home-logo {
    width: 82px;
    margin-bottom: 24px;
  }

  .upcoming-hero {
    padding: 24px 20px;
  }

  .upcoming-hero .eyebrow {
    font-size: 11px;
    line-height: 1.2;
  }

  .upcoming-hero h2 {
    max-width: 10ch;
    margin-top: 6px;
    font-size: 48px;
    line-height: .92;
  }
}

@media (max-width: 390px) {
  .upcoming-hero {
    padding: 20px 16px;
  }

  .upcoming-hero h2 {
    font-size: 42px;
  }
}

/* A single Peach Jam entry point uses one clear event action instead of a circuit grid. */
.home-event-cards {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 720px);
  margin-right: auto;
  margin-left: auto;
}

/* The age selector is a full-bleed navigation strip aligned to the site header. */
.universal-age-bar {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
}

.universal-age-bar .age-toggle {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.universal-age-bar .age-toggle-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.universal-age-bar .age-toggle-buttons button {
  width: 100%;
  flex: initial;
}

@media (max-width: 720px) {
  .universal-age-bar {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 14px;
    padding-left: 14px;
  }

  .universal-age-bar .age-toggle-buttons button {
    flex-basis: auto;
  }
}

/* Keep the global selector on the same full-width black rail as the header. */
.universal-age-bar {
  width: 100vw;
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

html,
body {
  overflow-x: clip;
}

/* Profile session rows are information surfaces, not part of the dark title rail. */
.profile-session-section {
  border-color: var(--line);
  border-radius: 0;
  background: #ffffff;
}

.profile-session-heading {
  border-bottom-color: #3d3d39;
  background: #111111;
  color: #ffffff;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
}

.profile-session-heading span,
.profile-session-heading em {
  color: #ffffff;
}

.profile-session-heading em {
  font-family: Lato, Helvetica, Arial, sans-serif;
  font-weight: 800;
}

.profile-session-table-wrap {
  background: #ffffff;
  scrollbar-color: #8d8d87 #ededeb;
}

.profile-session-table {
  background: #ffffff;
  color: #111111;
}

.profile-session-table th,
.profile-session-table td {
  border-color: var(--line);
  background: #ffffff;
  color: #111111;
}

.profile-session-table th {
  background: #1b1b19;
  color: #ffffff;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
}

.profile-session-table td strong,
.profile-session-table td a {
  color: #111111;
}

.profile-summary-row td {
  border-color: #464640;
  background: #252520;
  color: #ffffff;
}

.profile-summary-row td strong,
.profile-summary-row td a {
  color: #ffffff;
}

.profile-result-pill {
  border-color: #777770;
  background: #f2f2ef;
  color: #242420;
}

.profile-result-pill.is-win {
  border-color: #46ae7d;
  background: #e0f5e9;
  color: #137344;
}

.profile-result-pill.is-loss {
  border-color: #db7d72;
  background: #fbe8e5;
  color: #a52f25;
}

.history-table-panel {
  border-color: var(--line);
  border-radius: 0;
  background: #ffffff;
}

/* Team profile rails retain the dark Peach Jam treatment without losing labels. */
.team-upcoming-panel,
.program-age-nav {
  border-color: #363632;
  background: #111111;
  color: #ffffff;
}

.team-upcoming-head h3,
.team-upcoming-head .eyebrow,
.team-upcoming-head > span,
.program-age-nav > span {
  color: #ffffff;
}

.team-upcoming-panel .empty-state {
  border-color: #6c6c66;
  background: #1d1d1a;
  color: #ffffff;
}

.program-age-nav button {
  border-color: #555550;
  background: transparent;
  color: #ffffff;
}

.program-age-nav button:hover,
.program-age-nav button[aria-pressed="true"] {
  border-color: #ffffff;
  background: #ffffff;
  color: #111111;
}

/* Bracket cards use white team names on their dark surface, regardless of result. */
.bracket-game {
  border-color: #363632;
  background: #111111;
}

.bracket-game-meta,
.bracket-game-meta span,
.bracket-team a,
.bracket-team span {
  color: #d8d8d3;
}

.bracket-team a:hover,
.bracket-team.is-winner a,
.bracket-team.is-winner span {
  color: #ffffff;
}

/* Use charcoal rails throughout the event instead of a uniform hard black. */
:root {
  --peach-ink: #1d1d1a;
  --peach-ink-raised: #292926;
}

.site-header,
.universal-age-bar,
.hub-home,
.upcoming-hero,
.box-team-title,
.profile-session-heading,
.team-upcoming-panel,
.program-age-nav,
.bracket-game,
.game-date-toggle,
.home-pool-section h5,
.site-footer {
  background: var(--peach-ink);
}

.profile-summary-row td {
  background: var(--peach-ink-raised);
}

.metric-ring-card {
  border-color: #b8b8b2;
  background: #fbfbf9;
  color: #171716;
}

.metric-ring {
  background:
    radial-gradient(circle at center, #fbfbf9 0 58%, transparent 59%),
    conic-gradient(var(--ring-color) var(--metric-fill), #c7c7c1 0);
}

.metric-ring strong,
.metric-ring-copy h3 {
  color: #171716;
}

.metric-ring-copy span {
  color: #4c4c48;
  font-weight: 800;
}

.info-button {
  border-color: #373733;
  background: var(--peach-ink-raised);
  color: #ffffff;
}

.info-button span {
  border-color: #4a4a45;
  background: var(--peach-ink-raised);
  color: #ffffff;
}

/* Loading schedule state: calm pulse instead of a static "unavailable" block. */
.empty-state-loading {
  display: grid;
  gap: 10px;
  border: 1px solid #d4d4cf;
  background: #ffffff;
  padding: 18px;
  color: #1a1a18;
  font-weight: 900;
}

.empty-state-loading span {
  color: #1a1a18;
}

.empty-state-loading i {
  display: block;
  height: 14px;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ededeb 0%, #f8f8f6 45%, #ededeb 90%);
  background-size: 200% 100%;
  animation: peach-loading-pulse 1.2s ease-in-out infinite;
}

.empty-state-loading i:nth-child(3) {
  width: 72%;
}

.empty-state-loading i:nth-child(4) {
  width: 48%;
}

@keyframes peach-loading-pulse {
  0% {
    background-position: 200% 0;
    opacity: .58;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: -200% 0;
    opacity: .58;
  }
}

/* Table header contrast pass for the light Peach Jam surfaces. */
thead th,
.boys-pool-table th,
.box-table th {
  background: #ecece8;
  color: #181816;
}

.box-table th:first-child {
  background: var(--peach-ink);
  color: #ffffff;
}

.team-roster-sort-button {
  color: #181816;
}

.box-table th:first-child .team-roster-sort-button {
  color: #ffffff;
}

.team-roster-sort-button:hover,
.team-roster-sort-button[aria-pressed="true"] {
  color: #111111;
}

@media (max-width: 720px) {
  .universal-age-bar {
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
  }
}

/*
  Peach Jam data shells
  ---------------------
  The page frame and panel chrome are charcoal; the actual data views stay
  white/gray so dense stats remain scannable.
*/
:root {
  --gold: var(--peach-orange);
  --peach-shell: #1d1d1a;
  --peach-shell-raised: #292926;
  --peach-shell-line: #3b3b35;
  --peach-table: #ffffff;
  --peach-table-alt: #f6f6f3;
  --peach-table-head: #e9e9e4;
  --peach-table-total: #d9d9d3;
}

.hub-home-hero > p.hub-home-date,
.hub-home h1 span,
.upcoming-hero .eyebrow,
.content-section > .section-header .eyebrow {
  color: var(--peach-orange) !important;
}

.content-section .eyebrow,
.home-leaderboard-card-head span,
.upcoming-time-heading span,
.upcoming-date-heading b,
.overview-leader-rank,
.leaderboard-rank,
.game-log-score.result-win,
.team-roster-sort-button:hover,
.team-roster-sort-button[aria-pressed="true"],
.full-leaderboard-sort-button:hover,
.full-leaderboard-sort-button[aria-pressed="true"] {
  color: #111111 !important;
}

.site-nav a:hover,
.site-nav a[aria-current],
.universal-age-bar .age-toggle-buttons button:hover,
.universal-age-bar .age-toggle-buttons button[aria-pressed="true"],
.primary-action,
.live-stats-action,
.upcoming-box-link,
.card-actions a.primary-action,
.last-week-actions .primary-action,
.overview-full-link,
.leaderboard-mode-button[aria-pressed="true"],
.bracket-round-tabs button:hover,
.bracket-round-tabs button.is-active,
.history-toggle[aria-pressed="true"],
.team-shot-chart-link:hover {
  border-color: var(--peach-orange) !important;
  background: var(--peach-orange) !important;
  color: #111111 !important;
}

.primary-action:hover,
.live-stats-action:hover,
.upcoming-box-link:hover,
.card-actions a.primary-action:hover,
.last-week-actions .primary-action:hover,
.overview-full-link:hover {
  border-color: var(--peach-orange) !important;
  background: #ffffff !important;
  color: #111111 !important;
}

input:focus,
select:focus {
  outline-color: var(--peach-orange);
}

.content-section,
.content-section.detail-section,
.table-panel,
.box-table-panel,
.history-table-panel,
.profile-session-section,
.team-profile-stats-panel,
.full-leaderboard-panel,
.boys-pool-standings-panel,
.overview-leader-categories-panel,
.leaderboard-section,
.standings-section,
.upcoming-schedule-section,
.wiki-page,
.last-week-intro,
.last-week-callout {
  border-color: var(--peach-shell-line);
  background: var(--peach-shell) !important;
  color: #ffffff !important;
}

.section-header h2,
.section-header p,
.content-section > h2,
.content-section > h3,
.table-panel h3,
.full-leaderboard-head h3,
.full-leaderboard-head p,
.full-leaderboard-head span,
.overview-table-head h3,
.box-team-title span,
.box-team-title strong,
.box-team-title em,
.history-table-panel h3,
.profile-session-heading,
.profile-session-heading span,
.profile-session-heading em,
.breadcrumb,
.breadcrumb a,
.back-link {
  color: #ffffff;
}

.section-header p,
.full-leaderboard-head p,
.full-leaderboard-head span,
.box-team-title em,
.overview-table-filter span,
.leaderboard-division-filter span,
.leaderboard-view-control > span,
.schedule-filter-row span,
.breadcrumb {
  color: #d4d4ce;
}

.box-team-title,
.profile-session-heading,
.game-date-toggle,
.home-pool-section h5 {
  border-color: var(--peach-orange);
  background: var(--peach-orange) !important;
  color: #111111 !important;
}

.box-team-title {
  border-top: 0;
}

.box-team-title span,
.box-team-title strong,
.box-team-title em,
.profile-session-heading,
.profile-session-heading span,
.profile-session-heading em,
.game-date-toggle em,
.game-date-toggle::after,
.home-pool-section h5 {
  color: #111111 !important;
}

table,
thead,
tbody,
tbody tr,
tbody tr:hover,
.box-table,
.box-table tbody tr:nth-child(odd),
.box-table tbody tr:nth-child(even),
.profile-session-table,
.profile-session-table-wrap,
.boys-pool-table,
.boys-pool-table td,
.overview-leader-category-card li {
  background: var(--peach-table) !important;
  color: #111111;
}

thead th,
th,
.box-table th,
.box-table th:first-child,
.boys-pool-table th,
.profile-session-table th,
.full-leaderboard-table th,
.team-stats-table th,
.team-roster-table th {
  border-color: #c9c9c3 !important;
  background: var(--peach-table-head) !important;
  color: #181816 !important;
}

td,
.box-table td,
.profile-session-table td,
.boys-pool-table td,
.full-leaderboard-table td,
.team-stats-table td,
.team-roster-table td {
  border-color: #c9c9c3 !important;
  background: var(--peach-table) !important;
  color: #111111 !important;
}

tbody tr:nth-child(even) td,
.box-table tbody tr:nth-child(even) td,
.profile-session-table tbody tr:nth-child(even) td,
.full-leaderboard-table tbody tr:nth-child(even) td,
.team-stats-table tbody tr:nth-child(even) td,
.team-roster-table tbody tr:nth-child(even) td {
  background: var(--peach-table-alt) !important;
}

.box-table td:first-child,
.box-table tbody tr:nth-child(odd) td:first-child,
.box-table tbody tr:nth-child(even) td:first-child,
.profile-session-table td:first-child,
.profile-session-table tbody tr:nth-child(even) td:first-child,
.full-leaderboard-table .player-column,
.team-roster-table td:first-child {
  background: #eeeeea !important;
  color: #111111 !important;
}

.team-total-row td,
.team-total-row td:first-child,
.profile-summary-row td,
.profile-summary-row td:first-child {
  background: var(--peach-table-total) !important;
  color: #111111 !important;
}

.box-table td a,
.profile-session-table td a,
.full-leaderboard-table td a,
.team-roster-table td a,
.history-table td:first-child strong,
.history-table td:first-child a,
.team-total-row td strong,
.profile-summary-row td strong {
  color: #111111 !important;
}

.team-roster-sort-button,
.full-leaderboard-sort-button {
  color: #181816;
}

.boys-pool-card,
.overview-leader-category-card,
.nba-leaderboard-card,
.game-card,
.team-box,
.stat-panel,
.history-card,
.metric-ring-card,
.wiki-card,
.wiki-panel,
.home-game-card,
.home-leaderboard-card,
.home-event-card,
.upcoming-game-card,
.empty-state-loading {
  border-color: #d0d0ca;
  background: #ffffff !important;
  color: #111111;
}

.boys-pool-card h3,
.overview-leader-category-card h4,
.nba-leaderboard-card-head,
.home-leaderboard-card-head {
  border-color: var(--peach-orange);
  background: var(--peach-orange) !important;
  color: #111111 !important;
}

.boys-pool-card h3,
.overview-leader-category-card h4,
.overview-leader-category-card h4 span,
.overview-leader-category-card h4 b,
.nba-leaderboard-card-head h3,
.nba-leaderboard-card-head span,
.home-leaderboard-card-head h3,
.home-leaderboard-card-head p {
  color: #111111 !important;
}

.history-presented-by {
  border-color: #4a4a45;
  background: var(--peach-shell-raised);
}

.history-presented-by:hover,
.history-presented-by:focus-visible {
  border-color: #ffffff;
  background: #33332f;
}

.history-presented-by em {
  color: #ffffff !important;
}

/*
  Sticky identity columns
  -----------------------
  Wide stat tables should keep the identifying columns visible while the user
  horizontally scans metrics. These rules live at the end of the Peach Jam layer
  so they win over the older table and mobile overrides.
*/
:root {
  --sticky-game-width: 108px;
  --sticky-opponent-width: 188px;
  --sticky-player-width: 220px;
  --sticky-history-width: 300px;
  --sticky-name-shadow: 10px 0 16px -14px rgba(0, 0, 0, .75);
}

.profile-session-table th:first-child,
.profile-session-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
  width: var(--sticky-game-width);
  min-width: var(--sticky-game-width);
  max-width: var(--sticky-game-width);
  box-shadow: var(--sticky-name-shadow);
}

.profile-session-table th:nth-child(2),
.profile-session-table td:nth-child(2) {
  position: sticky;
  left: var(--sticky-game-width);
  z-index: 4;
  width: var(--sticky-opponent-width);
  min-width: var(--sticky-opponent-width);
  max-width: var(--sticky-opponent-width);
  box-shadow: var(--sticky-name-shadow);
}

.profile-session-table th:first-child,
.profile-session-table th:nth-child(2) {
  z-index: 7;
  background: var(--peach-table-head) !important;
}

.profile-session-table td:first-child,
.profile-session-table td:nth-child(2) {
  background: #eeeeea !important;
  color: #111111 !important;
}

.profile-session-table tbody tr:nth-child(even) td:first-child,
.profile-session-table tbody tr:nth-child(even) td:nth-child(2) {
  background: #e7e7e2 !important;
}

.profile-session-table td:first-child a,
.profile-session-table td:nth-child(2) a,
.profile-session-table td:first-child strong,
.profile-session-table td:nth-child(2) strong {
  color: #111111 !important;
}

.team-roster-table th:first-child,
.team-roster-table td:first-child,
.box-table.player-game-log-table th:first-child,
.box-table.player-game-log-table td:first-child,
.full-leaderboard-table th.player-column,
.full-leaderboard-table td.player-column,
.team-stats-table th.team-name-column,
.team-stats-table td.team-name-column {
  position: sticky;
  left: 0;
  z-index: 5;
  min-width: var(--sticky-player-width);
  max-width: var(--sticky-player-width);
  background: #eeeeea !important;
  color: #111111 !important;
  box-shadow: var(--sticky-name-shadow);
}

.box-table.history-table th:first-child,
.box-table.history-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  width: var(--sticky-history-width);
  min-width: var(--sticky-history-width);
  max-width: var(--sticky-history-width);
  background: #eeeeea !important;
  color: #111111 !important;
  box-shadow: var(--sticky-name-shadow);
}

.team-roster-table th:first-child,
.box-table.history-table th:first-child,
.box-table.player-game-log-table th:first-child,
.full-leaderboard-table th.player-column,
.team-stats-table th.team-name-column {
  z-index: 8;
  background: var(--peach-table-head) !important;
}

.team-roster-table td:first-child a,
.team-roster-table td:first-child strong,
.box-table.history-table td:first-child a,
.box-table.history-table td:first-child strong,
.box-table.player-game-log-table td:first-child a,
.box-table.player-game-log-table td:first-child strong,
.full-leaderboard-table td.player-column a,
.full-leaderboard-table td.player-column strong,
.team-stats-table td.team-name-column a,
.team-stats-table td.team-name-column strong {
  color: #111111 !important;
}

@media (max-width: 720px) {
  :root {
    --sticky-game-width: 92px;
    --sticky-opponent-width: 156px;
    --sticky-player-width: 190px;
    --sticky-history-width: 240px;
  }
}

/*
  Final neutral Peach Jam pass
  ----------------------------
  The event mark can carry orange, but the interface itself should not use orange
  for small text, action fills, or table/header bars. Keep dense data views black,
  white, and gray so standings, box scores, and profile tables stay legible.
*/
:root {
  --gold: #2f302c;
  --orange: #2f302c;
  --peach-orange: #2f302c;
  --peach-orange-deep: #111111;
}

.hub-home-hero > p.hub-home-date,
.hub-home h1 span,
.hub-home-eyebrow,
.upcoming-hero .eyebrow,
.content-section .eyebrow,
.content-section > .section-header .eyebrow,
.home-leaderboard-card-head span,
.upcoming-time-heading span,
.upcoming-date-heading b,
.overview-leader-rank,
.leaderboard-rank,
.game-log-score.result-win,
.team-roster-sort-button:hover,
.team-roster-sort-button[aria-pressed="true"],
.full-leaderboard-sort-button:hover,
.full-leaderboard-sort-button[aria-pressed="true"] {
  color: #f4f4f1 !important;
}

.boys-pool-table a,
.boys-pool-table .favorite-name-cell a,
.home-pool-section a,
.home-pool-section .favorite-name-cell a,
.box-table td a,
.profile-session-table td a,
.full-leaderboard-table td a,
.team-roster-table td a,
.team-stats-table td a,
.history-table td:first-child a,
td a {
  color: #111111 !important;
}

.site-nav a:hover,
.site-nav a[aria-current],
.universal-age-bar .age-toggle-buttons button:hover,
.universal-age-bar .age-toggle-buttons button[aria-pressed="true"],
.primary-action,
.live-stats-action,
.upcoming-box-link,
.card-actions a.primary-action,
.last-week-actions .primary-action,
.overview-full-link,
.leaderboard-mode-button[aria-pressed="true"],
.bracket-round-tabs button:hover,
.bracket-round-tabs button.is-active,
.history-toggle[aria-pressed="true"] {
  border-color: #111111 !important;
  background: #111111 !important;
  color: #ffffff !important;
}

.primary-action:hover,
.live-stats-action:hover,
.upcoming-box-link:hover,
.card-actions a.primary-action:hover,
.last-week-actions .primary-action:hover,
.overview-full-link:hover,
.history-toggle:hover {
  border-color: #111111 !important;
  background: #ffffff !important;
  color: #111111 !important;
}

.box-team-title,
.profile-session-heading,
.game-date-toggle,
.home-pool-section h5,
.boys-pool-card h3,
.overview-leader-category-card h4,
.nba-leaderboard-card-head,
.home-leaderboard-card-head {
  border-color: #111111 !important;
  background: #111111 !important;
  color: #ffffff !important;
}

.box-team-title span,
.box-team-title strong,
.box-team-title em,
.profile-session-heading,
.profile-session-heading span,
.profile-session-heading em,
.game-date-toggle em,
.game-date-toggle::after,
.home-pool-section h5,
.boys-pool-card h3,
.overview-leader-category-card h4,
.overview-leader-category-card h4 span,
.overview-leader-category-card h4 b,
.nba-leaderboard-card-head h3,
.nba-leaderboard-card-head span,
.home-leaderboard-card-head h3,
.home-leaderboard-card-head p,
.home-leaderboard-card-head span {
  color: #ffffff !important;
}

.schedule-filter-row span,
.overview-table-filter span,
.leaderboard-division-filter span,
.leaderboard-view-control > span {
  color: #f4f4f1 !important;
}

/*
  Data table color contract
  -------------------------
  Late sticky-column rules make identity cells gray; this final pass forces all
  header text, metric cells, sticky cells, links, and sort buttons back to dark
  ink unless they sit inside an explicitly dark title bar.
*/
.box-table th,
.box-table th:first-child,
.profile-session-table th,
.profile-session-table th:first-child,
.profile-session-table th:nth-child(2),
.full-leaderboard-table th,
.full-leaderboard-table th.player-column,
.team-roster-table th,
.team-roster-table th:first-child,
.team-stats-table th,
.team-stats-table th.team-name-column,
.boys-pool-table th,
.home-pool-section th {
  background: #e9e9e4 !important;
  color: #111111 !important;
}

.box-table td,
.box-table td:first-child,
.box-table tbody tr:nth-child(odd) td:first-child,
.box-table tbody tr:nth-child(even) td:first-child,
.profile-session-table td,
.profile-session-table td:first-child,
.profile-session-table td:nth-child(2),
.full-leaderboard-table td,
.full-leaderboard-table td.player-column,
.team-roster-table td,
.team-roster-table td:first-child,
.team-stats-table td,
.team-stats-table td.team-name-column,
.boys-pool-table td,
.home-pool-section td {
  color: #111111 !important;
}

.box-table td a,
.profile-session-table td a,
.full-leaderboard-table td a,
.team-roster-table td a,
.team-stats-table td a,
.boys-pool-table td a,
.home-pool-section td a,
.box-table td strong,
.profile-session-table td strong,
.full-leaderboard-table td strong,
.team-roster-table td strong,
.team-stats-table td strong {
  color: #111111 !important;
}

.team-roster-sort-button,
.full-leaderboard-sort-button,
.team-stats-sort-button {
  color: #111111 !important;
}

/*
  Live tournament schedule and bracket
  ------------------------------------
  Peach Jam and PIT share the visual system, but they are parallel tournaments.
  These layouts never imply that PIT feeds into the Peach Jam championship.
*/
.schedule-section-actions,
.schedule-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.schedule-section-actions a,
.schedule-game-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid #ffffff;
  border-radius: 0;
  padding: 0 14px;
  background: #ffffff;
  color: #111111 !important;
  font-weight: 800;
  text-decoration: none;
}

.schedule-section-actions a:hover,
.schedule-game-actions a:hover {
  border-color: #b8b8b2;
  background: #e9e9e4;
}

.pit-hero p {
  max-width: 660px;
  margin: 14px 0 0;
  color: #d4d4ce;
}

.pit-standings-section,
.pit-bracket-section,
.pit-bracket-page,
.schedule-game-detail,
.previous-schedule-page {
  background: #1d1d1a !important;
  color: #ffffff;
}

.live-bracket-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(270px, 1fr));
  align-items: stretch;
  gap: 18px;
  min-height: 620px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
}

.bracket-panel {
  border-color: #3b3b35;
  background: #111111 !important;
  color: #ffffff;
}

.bracket-panel-head h2,
.bracket-panel-head p,
.bracket-round-section-head h3,
.bracket-round-section-head span {
  color: #ffffff !important;
}

.live-bracket-board.round-count-1 {
  grid-template-columns: minmax(270px, 520px);
  min-height: 250px;
}

.live-bracket-board.round-count-1 .bracket-game-grid {
  justify-content: flex-start;
}

.bracket-panel.full .bracket-round-tabs {
  display: none;
}

.live-bracket-board .bracket-round-section {
  grid-template-rows: auto 1fr;
  min-width: 270px;
  scroll-snap-align: start;
}

.live-bracket-board .bracket-game-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 22px;
}

.live-bracket-board .bracket-game {
  flex: 0 0 auto;
  border-radius: 0;
}

.bracket-game-meta {
  color: #d8d8d3 !important;
  text-decoration: none;
}

.bracket-game-meta:hover {
  background: #292926;
  color: #ffffff !important;
}

.bracket-team {
  min-height: 48px;
}

.bracket-team .favorite-name-cell,
.bracket-team .favorite-name-cell > span,
.bracket-team .favorite-name-cell > a {
  min-width: 0;
  overflow: visible;
  color: #f4f4f1 !important;
  text-overflow: clip;
  white-space: normal;
}

.schedule-game-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  margin: 24px 0;
}

.schedule-game-matchup > span {
  align-self: center;
  color: #d4d4ce;
  font-family: Anton, Impact, sans-serif;
  font-size: 24px;
  text-transform: uppercase;
}

.schedule-game-team {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  border: 1px solid #3b3b35;
  padding: 18px;
  background: #111111;
}

.schedule-game-team a,
.schedule-game-team strong {
  color: #ffffff !important;
  font-family: Anton, Impact, sans-serif;
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
}

.schedule-game-team b {
  color: #ffffff;
  font-family: Anton, Impact, sans-serif;
  font-size: 44px;
}

.schedule-game-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 20px;
  border: 1px solid #3b3b35;
  background: #111111;
}

.schedule-game-facts div {
  padding: 14px;
  border-right: 1px solid #3b3b35;
}

.schedule-game-facts div:last-child {
  border-right: 0;
}

.schedule-game-facts dt {
  color: #a8a8a2;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-game-facts dd {
  margin: 5px 0 0;
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 760px) {
  .live-bracket-board {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 86vw);
    min-height: 560px;
  }

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

  .schedule-game-matchup > span {
    justify-self: center;
  }

  .schedule-game-team a,
  .schedule-game-team strong {
    font-size: 27px;
  }

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

  .schedule-game-facts div:nth-child(2) {
    border-right: 0;
  }

  .schedule-game-facts div:nth-child(-n + 2) {
    border-bottom: 1px solid #3b3b35;
  }
}
/* Event stat scopes share one square, high-contrast control across list and profile views. */
.stats-event-scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #3e3e3a;
  background: #1c1c1a;
  color: #fff;
}

.stats-event-scope > span {
  flex: 0 0 auto;
  font-family: "Anton", Impact, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
}

.stats-event-scope > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
}

.stats-event-scope button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #666660;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: 700 0.88rem Helvetica, Arial, sans-serif;
  cursor: pointer;
}

.stats-event-scope button[aria-pressed="true"] {
  border-color: var(--ui-accent, #eeef45);
  background: var(--ui-accent, #eeef45);
  color: #10100f;
}

.profile-stats-scope > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-leader-split-stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.regular-season-leaders-accordion {
  border: 1px solid #3e3e3a;
  background: #1c1c1a;
}

.regular-season-leaders-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 14px 18px;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.regular-season-leaders-accordion > summary::-webkit-details-marker {
  display: none;
}

.regular-season-leaders-accordion > summary span {
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.35rem;
}

.regular-season-leaders-accordion > summary em {
  color: #fff;
  font: 700 0.78rem Helvetica, Arial, sans-serif;
  font-style: normal;
  text-transform: uppercase;
}

.regular-season-leaders-accordion[open] > summary {
  border-bottom: 1px solid #3e3e3a;
}

.regular-season-leaders-accordion > .overview-leader-categories-panel {
  border: 0;
}

.player-event-split-summary {
  margin: 22px 0;
  padding: 22px;
  border: 1px solid #3e3e3a;
  background: #1c1c1a;
  color: #fff;
}

.player-event-split-head h3 {
  margin: 4px 0 18px;
  color: #fff;
}

.player-event-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.player-event-split-grid article {
  padding: 18px;
  border: 1px solid #c8c8c2;
  background: #fff;
  color: #111;
}

.player-event-split-grid h4 {
  margin: 0 0 14px;
  color: #111;
}

.player-event-split-grid dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.player-event-split-grid dl div {
  padding: 0 10px;
  border-left: 1px solid #d0d0ca;
}

.player-event-split-grid dl div:first-child {
  padding-left: 0;
  border-left: 0;
}

.player-event-split-grid dt {
  color: #5c5c57;
  font: 700 0.72rem Helvetica, Arial, sans-serif;
}

.player-event-split-grid dd {
  margin: 4px 0 0;
  color: #111;
  font: 400 1.4rem "Anton", Impact, sans-serif;
}

.team-upcoming-date strong,
.team-upcoming-date span,
.team-upcoming-matchup span,
.team-upcoming-matchup p {
  color: #fff !important;
}

@media (max-width: 760px) {
  .stats-event-scope {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-event-scope > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-event-scope button {
    width: 100%;
  }

  .player-event-split-grid {
    grid-template-columns: 1fr;
  }

  .profile-stats-scope > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-session-table th:nth-child(2),
  .profile-session-table td:nth-child(2) {
    position: static;
    left: auto;
    z-index: auto;
    box-shadow: none;
  }

  .box-table.history-table th:first-child,
  .box-table.history-table td:first-child {
    width: 210px;
    min-width: 210px;
    max-width: 210px;
  }

  .box-table.history-table td:first-child strong {
    display: block;
    max-width: 188px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Mobile freeze panes: identity columns sit flush against the scroll viewport. */
@media (max-width: 720px) {
  .full-leaderboard-panel {
    --leaderboard-scroll-width: 1120px;
    padding: 0;
    scroll-padding-left: 0;
  }

  .full-leaderboard-panel.is-5ms-view {
    --leaderboard-scroll-width: 840px;
  }

  .full-leaderboard-panel.team-stats-panel {
    --leaderboard-scroll-width: 2360px;
  }

  .full-leaderboard-panel > .full-leaderboard-head,
  .full-leaderboard-panel > .full-leaderboard-table {
    box-sizing: border-box;
    width: max(100%, var(--leaderboard-scroll-width));
    min-width: var(--leaderboard-scroll-width);
  }

  .full-leaderboard-panel > .full-leaderboard-head {
    margin: 0;
    padding: 12px;
  }

  .full-leaderboard-table .rank-column,
  .full-leaderboard-table .number-column {
    display: none;
  }

  .full-leaderboard-table th.player-column,
  .full-leaderboard-table td.player-column {
    left: 0;
    box-shadow: none;
    border-right: 2px solid #8d8d87 !important;
  }

  .full-leaderboard-table .mobile-player-meta {
    display: block;
    margin-bottom: 3px;
    color: #5f5f5a;
    font: 700 10px Helvetica, Arial, sans-serif;
  }

  .info-button {
    cursor: pointer;
    touch-action: manipulation;
  }

  .info-button span,
  .info-button:hover span,
  .info-button:focus-visible span,
  .info-button[aria-expanded="true"] span {
    display: none;
  }

  .metric-info-mobile-popover:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    align-items: end;
    padding: 18px 16px max(18px, env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, .56);
  }

  .metric-info-mobile-card {
    position: relative;
    width: 100%;
    border-radius: 0;
    border: 1px solid #565650;
    padding: 20px 52px 20px 18px;
    background: #1d1d1a;
    color: #ffffff;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .38);
  }

  .metric-info-mobile-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-family: Anton, Impact, sans-serif;
    font-size: 24px;
    font-weight: 400;
  }

  .metric-info-mobile-card p {
    margin: 0;
    color: #ffffff;
    font: 400 15px/1.5 Helvetica, Arial, sans-serif;
  }

  .metric-info-mobile-card button {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #777770;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
    font: 700 16px Helvetica, Arial, sans-serif;
  }
}
