:root {
  --nav-height: 71px;
  --regalia: #522d80;
  --regalia-deep: #2d1548;
  --regalia-soft: #7d55a4;
  --orange: #f56600;
  --orange-deep: #b94700;
  --orange-soft: #ffe4cf;
  --ink: #1f1a25;
  --muted: #70687a;
  --line: #e0d8e8;
  --paper: #fffaf6;
  --surface: #ffffff;
  --surface-2: #f7f0fb;
  --gold: #f2b84b;
  --green: #16825d;
  --red: #bd2b22;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(82,45,128,.05) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(0deg, rgba(245,102,0,.05) 1px, transparent 1px) 0 0 / 36px 36px,
    var(--paper);
}
button, select { font: inherit; }
button { cursor: pointer; }

.hero {
  min-height: var(--nav-height);
  color: white;
  background: var(--regalia-deep);
  position: relative;
}
.hero.landing-active {
  min-height: 92vh;
  background:
    radial-gradient(circle at 88% 20%, rgba(245,102,0,.38), transparent 28%),
    linear-gradient(138deg, var(--regalia-deep) 0%, var(--regalia) 58%, #6c318a 100%);
  overflow: hidden;
}
.hero.landing-active::before {
  content: "";
  position: absolute;
  inset: 88px 0 auto;
  height: 280px;
  background:
    repeating-linear-gradient(90deg, transparent 0 66px, rgba(255,255,255,.08) 66px 70px),
    linear-gradient(180deg, rgba(255,255,255,.1), transparent);
  transform: skewY(-6deg);
}
.topline {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  margin: 0;
  padding: 12px max(28px, calc((100vw - 1380px) / 2 + 28px));
  border-bottom: 1px solid rgba(255,255,255,.16);
  background: rgba(45,21,72,.96);
  box-shadow: 0 10px 26px rgba(20,8,32,.24);
  backdrop-filter: blur(14px);
}
.topline.filters-hidden {
  grid-template-columns: auto minmax(0, 1fr);
}
.topline.filters-hidden .tabs {
  grid-column: 2;
}
.topline.race-mode .nav-controls {
  grid-template-columns: auto auto;
}
.topline.race-mode .nav-controls label:last-child {
  display: none;
}
.brand {
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.34);
  background: var(--orange);
  color: var(--regalia-deep);
  font-weight: 950;
}
.brand strong,
.brand small { display: block; }
.brand small { margin-top: 2px; color: rgba(255,255,255,.68); }
.tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.nav-controls {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
}
.nav-controls[hidden] { display: none; }
.filter-title {
  color: var(--orange-soft);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}
.nav-controls label {
  gap: 4px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
}
.nav-controls select {
  min-width: 138px;
  height: 38px;
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.94);
  font-weight: 800;
}
.tab {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  padding: 0 13px;
  font-weight: 800;
}
.tab.active,
.tab:hover {
  background: var(--orange);
  color: var(--regalia-deep);
  border-color: var(--orange);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(560px, 1.18fr);
  align-items: end;
  gap: 42px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 134px 28px 54px;
}
.hero-grid[hidden] { display: none; }
#summary,
main {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}
.hero-copy { padding-bottom: 22px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 72px;
  line-height: .94;
  letter-spacing: 0;
}
.lede {
  max-width: 650px;
  margin-bottom: 26px;
  color: rgba(255,255,255,.78);
  font-size: 20px;
  line-height: 1.45;
}
label {
  display: grid;
  gap: 7px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
select {
  min-width: 168px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.95);
  color: var(--ink);
  padding: 0 11px;
}
.hero-board {
  display: grid;
  grid-template-columns: minmax(330px, 1.1fr) minmax(260px, .9fr);
  gap: 16px;
  align-self: stretch;
}
.champion-spotlight,
.hero-rotator {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(255,255,255,.2);
  background:
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04)),
    rgba(20, 11, 30, .42);
  box-shadow: inset 0 5px 0 var(--orange), 0 24px 80px rgba(21, 8, 34, .3);
  overflow: hidden;
}
.champion-spotlight {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 26px;
}
.champion-trophy {
  position: absolute;
  z-index: 0;
  top: 4px;
  right: 5%;
  width: min(68%, 285px);
  height: 280px;
  object-fit: contain;
  object-position: top right;
  filter: drop-shadow(0 24px 25px rgba(0,0,0,.38));
}
.champion-spotlight::after {
  content: "";
  position: absolute;
  inset: auto -18% -42% 16%;
  height: 58%;
  background: radial-gradient(ellipse at center, rgba(245,102,0,.38), transparent 66%);
}
.champion-spotlight > * {
  position: relative;
  z-index: 1;
}
.champion-spotlight > .champion-trophy { z-index: 0; }
.champion-year {
  width: max-content;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--orange);
  color: var(--regalia-deep);
  font-size: 18px;
  font-weight: 950;
}
.champion-spotlight h2 {
  max-width: 480px;
  margin: 0 0 14px;
  color: white;
  font-size: 46px;
  line-height: .95;
}
.champion-spotlight p {
  max-width: 520px;
  margin-bottom: 24px;
  color: rgba(255,255,255,.78);
  font-size: 20px;
  line-height: 1.35;
}
.champion-spotlight dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.champion-spotlight div:not(.champion-year) {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.16);
}
.champion-spotlight dt {
  color: var(--orange-soft);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.champion-spotlight dd {
  margin: 4px 0 0;
  color: white;
  font-size: 22px;
  font-weight: 950;
}
.hero-rotator {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px;
}
.rotator-stack {
  position: relative;
  min-height: 270px;
}
.stat-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(18px);
  animation: stat-rotate 16s infinite;
  animation-delay: calc(var(--slide-index) * 4s);
}
.stat-slide span {
  color: var(--orange-soft);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}
.stat-slide strong {
  color: white;
  font-size: 52px;
  line-height: .9;
  font-variant-numeric: tabular-nums;
}
.stat-slide small {
  max-width: 280px;
  color: rgba(255,255,255,.72);
  font-size: 18px;
  line-height: 1.25;
}
.record-link {
  width: max-content;
  color: white;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 4px;
  font-weight: 950;
  text-decoration: none;
}
@keyframes stat-rotate {
  0%, 18% {
    opacity: 1;
    transform: translateY(0);
  }
  24%, 100% {
    opacity: 0;
    transform: translateY(-18px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stat-slide {
    animation: none;
    opacity: 0;
  }
  .stat-slide:first-child {
    opacity: 1;
    transform: none;
  }
}
.stat-tile {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(20, 11, 30, .42);
  padding: 16px;
  box-shadow: inset 0 4px 0 var(--orange);
}
.stat-tile span {
  color: var(--orange-soft);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.stat-tile strong {
  margin: 15px 0 8px;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1;
}
.stat-tile small {
  color: rgba(255,255,255,.72);
  line-height: 1.25;
}

main {
  max-width: 1380px;
  margin: 0 auto;
  padding: 34px 28px 54px;
}
.view { display: none; }
.view.active { display: block; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  color: var(--regalia-deep);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}
.section-head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
#view-race {
  width: min(1800px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
}
.race-shell {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 50px rgba(45,21,72,.1);
}
.race-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.race-summary {
  color: var(--muted);
  line-height: 1.4;
}
.race-summary strong { color: var(--regalia-deep); }
.race-summary span { margin-left: 8px; }
.race-clear {
  flex: 0 0 auto;
  border: 1px solid var(--regalia);
  background: white;
  color: var(--regalia);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}
.race-chart-scroll {
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.race-chart {
  display: block;
  width: 100%;
  min-width: 1120px;
  height: auto;
  background: linear-gradient(180deg, rgba(82,45,128,.025), transparent 44%), white;
}
.race-week-grid line,
.race-rank-grid line {
  stroke: var(--line);
  stroke-width: 1;
}
.race-week-grid line { stroke-dasharray: 3 6; }
.race-week-grid.future { opacity: .35; }
.race-week-grid text,
.race-rank-grid text {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.race-series {
  color: var(--team-color);
  transition: opacity .16s ease;
}
.race-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-width .16s ease;
}
.race-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 20;
  cursor: pointer;
  outline: none;
}
.race-node {
  fill: white;
  stroke: currentColor;
  stroke-width: 2.5;
  pointer-events: none;
}
.race-logo { pointer-events: none; }
.race-logo circle {
  fill: white;
  stroke: currentColor;
  stroke-width: 5;
  filter: drop-shadow(0 3px 3px rgba(31,26,37,.24));
}
.race-logo text {
  fill: var(--regalia-deep);
  font-size: 10px;
  font-weight: 950;
}
.race-series.muted,
.race-team.muted { opacity: .1; }
.race-series.active .race-line { stroke-width: 7; }
.race-series.active .race-node {
  fill: currentColor;
  stroke: white;
  stroke-width: 2;
}
.race-series.active .race-logo circle { fill: var(--orange-soft); }
.race-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  padding: 18px;
}
.race-team-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.race-team {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 7px 9px;
  text-align: left;
  transition: opacity .16s ease, border-color .16s ease, background .16s ease;
}
.race-team > span:first-child {
  width: 10px;
  height: 10px;
  background: var(--team-color);
}
.race-team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.race-team strong {
  color: var(--team-color);
  text-align: right;
}
.race-team:hover,
.race-team:focus-visible,
.race-team.active {
  border-color: var(--team-color);
  background: color-mix(in srgb, var(--team-color) 8%, white);
  outline: none;
}
.race-detail {
  min-height: 128px;
  border-left: 4px solid var(--orange);
  background: var(--regalia-deep);
  color: white;
  padding: 16px;
}
.race-detail span,
.race-detail strong { display: block; }
.race-detail span {
  color: var(--orange-soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.race-detail strong {
  margin: 7px 0;
  font-size: 22px;
}
.race-detail p {
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.4;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.wide { margin-top: 18px; }
.feature-panel,
.season-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 16px 38px rgba(45,21,72,.08);
}
.feature-panel h3,
.season-card h3 {
  margin: 0 0 14px;
  color: var(--regalia);
  font-size: 20px;
}
.accent-panel {
  color: white;
  background:
    linear-gradient(135deg, rgba(245,102,0,.92), rgba(82,45,128,.94)),
    var(--regalia);
  border-color: transparent;
}
.accent-panel h3 { color: white; }

.bar-list { display: grid; gap: 10px; }
.bar-row {
  display: grid;
  grid-template-columns: 34px minmax(150px, 1fr) minmax(160px, 2fr) 86px;
  align-items: center;
  gap: 10px;
}
.rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--regalia-deep);
  font-weight: 950;
}
.bar-track {
  height: 24px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--regalia), var(--orange));
}
.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.moment-list {
  display: grid;
  gap: 10px;
}
.moment-list article,
.rivalry-card {
  border-left: 4px solid var(--orange);
  background: var(--surface-2);
  padding: 12px;
}
.moment-list span,
.rivalry-card span,
.rivalry-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.moment-list strong,
.rivalry-card strong {
  display: block;
  margin-top: 4px;
  line-height: 1.3;
}
.trophy-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
}
.trophy-card:last-child { margin-bottom: 0; }
.trophy-card p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.78);
}
.trophy-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #3b2200;
  font-weight: 950;
  clip-path: polygon(12% 0, 88% 0, 100% 52%, 70% 100%, 30% 100%, 0 52%);
}
.pulse-chart,
.histogram {
  height: 260px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding-top: 16px;
  border-bottom: 1px solid var(--line);
}
.pulse-col,
.hist-bar {
  flex: 1;
  min-width: 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: end;
  flex-direction: column;
  background: linear-gradient(180deg, var(--orange), var(--regalia));
  color: white;
  padding: 8px 4px;
}
.pulse-col span,
.hist-bar strong {
  font-size: 12px;
  font-weight: 950;
}
.pulse-col small,
.hist-bar span {
  margin-top: 5px;
  color: rgba(255,255,255,.78);
  font-size: 11px;
}
.pulse-col b {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 0;
  right: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.season-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.season-standings-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 540px;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scroll-snap-type: x proximity;
}
.season-standings-scroll.single {
  grid-auto-flow: row;
  grid-template-columns: minmax(0, 760px);
  overflow: visible;
}
.season-standings-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(45,21,72,.08);
  scroll-snap-align: start;
}
.season-standings-panel .season-card {
  border-width: 0 0 1px;
  box-shadow: none;
}
.season-table-wrap {
  border: 0;
  overflow: visible;
}
.season-table-wrap table {
  min-width: 0;
  table-layout: fixed;
}
.season-table-wrap th:first-child,
.season-table-wrap td:first-child {
  width: 58px;
}
.season-table-wrap th:nth-child(3),
.season-table-wrap td:nth-child(3) {
  width: 106px;
}
.season-table-wrap th:nth-child(4),
.season-table-wrap td:nth-child(4),
.season-table-wrap th:nth-child(5),
.season-table-wrap td:nth-child(5) {
  width: 46px;
}
.standing-team {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.points-leader-badge {
  flex: 0 0 auto;
  padding: 3px 5px;
  border: 1px solid rgba(245, 102, 0, .28);
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.season-card {
  border-top: 5px solid var(--orange);
}
.season-year {
  display: block;
  margin-bottom: 12px;
  color: var(--orange-deep);
  font-size: 18px;
  font-weight: 950;
}
.season-honors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.season-honor {
  min-width: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--regalia);
  background: var(--surface-2);
}
.champion-honor {
  border-left-color: var(--orange);
}
.season-honor span,
.season-honor strong,
.season-honor small {
  display: block;
}
.season-honor span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}
.season-honor strong {
  overflow-wrap: anywhere;
  color: var(--regalia-deep);
  font-size: 19px;
  line-height: 1.15;
}
.season-honor small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}
.season-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}
.season-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.season-card dd {
  margin: 3px 0 0;
  font-weight: 950;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: middle;
}
th {
  background: #f2ebf8;
  color: var(--regalia);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.h2h-wrap { max-height: 70vh; }
.h2h { min-width: 980px; }
.h2h th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
}
.h2h td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.same {
  color: var(--muted);
  text-align: center;
  background: repeating-linear-gradient(135deg, #fbf8fe, #fbf8fe 8px, #efe6f7 8px, #efe6f7 16px);
}
.muted { color: var(--muted); }

.record-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 14px;
}
.record-board {
  padding: 0;
}
.record-board > h3 {
  margin: 0;
  padding: 18px;
}
.record-table-wrap {
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}
.record-comparison {
  min-width: 1120px;
  table-layout: fixed;
}
.record-comparison thead th {
  position: static;
  top: auto;
}
.record-comparison th:first-child {
  width: 48px;
  text-align: center;
}
.record-comparison thead th:not(:first-child) {
  width: calc((100% - 48px) / 4);
}
.record-comparison tbody tr {
  height: 72px;
}
.record-comparison tbody th {
  position: sticky;
  left: 0;
  top: auto;
  z-index: 1;
  background: #f2ebf8;
  color: var(--regalia);
}
.record-comparison td {
  position: relative;
  height: 72px;
  padding: 8px 12px;
  overflow: hidden;
}
.record-comparison td::before {
  content: "";
  position: absolute;
  inset: 9px auto 9px 0;
  width: var(--record-bar, 0%);
  background: linear-gradient(90deg, rgba(245,102,0,.16), rgba(82,45,128,.08));
  border-right: 3px solid rgba(245,102,0,.28);
  pointer-events: none;
}
.record-entry {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
}
.record-entry > div {
  min-width: 0;
}
.record-entry strong,
.record-entry span {
  display: block;
}
.record-entry strong {
  color: var(--regalia-deep);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.record-entry span {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-info,
.dialog-close {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--regalia);
  font-weight: 950;
}
.record-info {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-style: italic;
}
.record-info:hover,
.record-info:focus-visible {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--regalia-deep);
}
.record-dialog {
  width: min(430px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-top: 6px solid var(--orange);
  padding: 24px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 26px 80px rgba(24,10,38,.36);
}
.record-dialog::backdrop {
  background: rgba(30,15,43,.6);
}
.record-dialog h3 {
  margin: 0 38px 10px 0;
  color: var(--regalia-deep);
  font-size: 24px;
}
.record-dialog p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  font-size: 24px;
}
.trophy-room {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.trophy-case {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 6px solid var(--orange);
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(45,21,72,.12);
}
.trophy-case:nth-child(even) {
  border-top-color: var(--regalia);
}
.trophy-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.15);
  background:
    linear-gradient(135deg, rgba(82,45,128,.97), rgba(31,18,46,.98) 68%),
    var(--regalia-deep);
}
.trophy-stage::before {
  content: "";
  position: absolute;
  inset: 9% 12%;
  border: 1px solid rgba(245,102,0,.5);
  pointer-events: none;
}
.trophy-stage img {
  position: relative;
  z-index: 1;
  width: 82%;
  height: 96%;
  object-fit: contain;
  filter: drop-shadow(0 20px 20px rgba(0,0,0,.32));
}
.trophy-history {
  padding: 16px;
}
.trophy-history h3 {
  margin: 0 0 12px;
  color: var(--regalia);
  font-size: 19px;
}
.trophy-scope {
  margin: -4px 0 10px;
  padding-left: 8px;
  border-left: 3px solid var(--orange);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.trophy-seasons {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trophy-seasons li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.trophy-seasons time {
  color: var(--orange-deep);
  font-size: 16px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.trophy-seasons div {
  min-width: 0;
}
.trophy-seasons strong,
.trophy-seasons small {
  display: block;
}
.trophy-seasons strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trophy-seasons small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.trophy-seasons em {
  max-width: 150px;
  padding: 5px 7px;
  border-left: 3px solid var(--orange);
  color: var(--regalia);
  background: var(--surface-2);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.empty {
  padding: 24px;
  color: var(--muted);
  background: var(--surface-2);
}
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 20px 28px 30px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .topline {
    grid-template-columns: auto auto minmax(240px, 1fr);
  }
  .brand > span:last-child {
    display: none;
  }
  .hero-grid,
  .section-head {
    display: grid;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }
  h1 { font-size: 60px; }
  .hero-board {
    grid-template-columns: 1fr;
  }
  .span-4,
  .span-5,
  .span-7,
  .span-8 {
    grid-column: 1 / -1;
  }
  .record-grid {
    grid-template-columns: repeat(2, minmax(230px, 1fr));
  }
  .trophy-room {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .race-lower { grid-template-columns: 1fr; }
  .race-team-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :root { --nav-height: 118px; }
  .hero-grid,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topline {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 9px 16px;
    align-items: center;
  }
  .brand > span:last-child {
    display: none;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
  }
  .tabs {
    grid-column: 2;
    grid-row: 1;
    justify-content: start;
  }
  .nav-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    margin-left: 0;
  }
  .nav-controls select {
    width: 100%;
    min-width: 0;
  }
  .topline.race-mode .nav-controls {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }
  .hero-grid { padding-top: 154px; }
  h1 { font-size: 46px; }
  .champion-spotlight h2 { font-size: 40px; }
  .stat-slide strong { font-size: 48px; }
  .hero-board,
  .trophy-room,
  .record-grid,
  .season-strip {
    grid-template-columns: 1fr;
  }
  .trophy-stage {
    min-height: 260px;
  }
  .trophy-seasons li {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .trophy-seasons em {
    grid-column: 2;
    max-width: none;
  }
  .season-standings-scroll,
  .season-standings-scroll.single {
    grid-auto-flow: column;
    grid-auto-columns: calc(100vw - 32px);
    grid-template-columns: none;
    overflow-x: auto;
  }
  .season-honors {
    grid-template-columns: 1fr;
  }
  .season-table-wrap table {
    font-size: 12px;
  }
  .season-table-wrap th,
  .season-table-wrap td {
    padding: 8px 5px;
  }
  .season-table-wrap th:first-child,
  .season-table-wrap td:first-child {
    width: 42px;
  }
  .season-table-wrap th:nth-child(3),
  .season-table-wrap td:nth-child(3) {
    width: 80px;
  }
  .season-table-wrap th:nth-child(4),
  .season-table-wrap td:nth-child(4),
  .season-table-wrap th:nth-child(5),
  .season-table-wrap td:nth-child(5) {
    width: 32px;
  }
  .bar-row {
    grid-template-columns: 30px 1fr 76px;
  }
  .bar-track {
    grid-column: 2 / -1;
  }
  .pulse-chart,
  .histogram {
    overflow-x: auto;
  }
  .pulse-col,
  .hist-bar {
    min-width: 54px;
  }
  .race-summary span {
    display: block;
    margin: 3px 0 0;
  }
  .race-chart { min-width: 1040px; }
  .race-team-list { grid-template-columns: 1fr; }
}
