html.leaderboard-document { scroll-snap-type: none; }
.leaderboard-shell { max-width: 900px; margin: auto; padding: 0 32px 48px; }
.leaderboard-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.leaderboard-header a, .leaderboard-header button { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; }
.leaderboard-header button { border: 0; background: transparent; padding: 0 4px; }
.leaderboard-header a:hover, .leaderboard-header button:hover { color: var(--paper); }
.leaderboard-header button:disabled { opacity: .55; cursor: wait; }
.leaderboard-main { padding: clamp(20px, 6vh, 70px) 0 30px; }
.leaderboard-main h1 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(43px, 6vw, 62px); font-weight: 500; line-height: 1.1; }
.score-status { margin: 0; min-height: 24px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.score-status[data-state="error"] { color: var(--paper); }
.score-chart { margin: 55px 0 0; }
.score-row + .score-row { margin-top: 42px; }
.score-label { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.score-label h2 { margin: 0; font-size: 24px; font-family: var(--serif); font-weight: 500; }
.score-total { font-size: clamp(34px, 5vw, 48px); line-height: 1; font-variant-numeric: tabular-nums; }
.score-boys { color: var(--gold); }
.score-girls { color: var(--lavender); }
.bar-track { height: 65px; width: 100%; background-color: #ffffff05; border-left: 1px solid #ffffff25; background-image: linear-gradient(to right, transparent calc(100% - 1px), #ffffff10 1px); background-size: 25% 100%; }
.score-bar { width: 0; height: 100%; background: currentColor; transition: width 650ms ease; }
.score-chart[aria-busy="true"] .bar-track { opacity: .4; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; margin-top: 16px; }
.axis-label { text-align: right; margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.score-updated { color: var(--muted); font-size: 11px; line-height: 1.8; min-height: 20px; margin: 38px 0 0; }
@media (max-width: 720px) {
  .leaderboard-shell { padding: 0 20px 32px; }
  .leaderboard-header { min-height: 76px; }
  .leaderboard-main { padding-top: 32px; }
  .score-chart { margin-top: 40px; }
  .score-label h2 { font-size: 24px; }
  .bar-track { height: 48px; }
  .score-row + .score-row { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .score-bar { transition: none; }
}
