.leaderboard { padding-block: 28px 0; }
.leaderboard .pagehero { padding-block: clamp(12px, 3vw, 40px) 26px; }
.leaderboard-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.leaderboard h2 { margin-top: 0; }
.leaderboard [hidden] { display: none !important; }
.leaderboard table { width: 100%; border-collapse: collapse; }
.leaderboard :is(th, td) { padding: 10px 5px; text-align: left; border-bottom: 1px solid var(--stroke); overflow-wrap: anywhere; }
.leaderboard th:first-child { width: 3.25rem; white-space: nowrap; }
.leaderboard :is(th, td):last-child { text-align: right; font-variant-numeric: tabular-nums; }
.leaderboard dt { color: var(--muted); }
.leaderboard dd { margin: 0 0 12px; font-weight: 700; }
.leaderboard button:disabled { opacity: .55; cursor: default; }
.leaderboard .actions { flex-wrap: wrap; }
@media (max-width: 800px) { .leaderboard-grid { grid-template-columns: 1fr; } }

.leaderboard .your-row { background: #30204a; color: #f5eaff; }
.rank-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rank-stats > div { border: 1px solid var(--stroke); border-radius: 12px; padding: 12px; }
.rank-stats dd { margin-bottom: 0; overflow-wrap: anywhere; }
.moderation-panel { margin-top: 20px; }
.moderation-panel fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.moderation-panel label { display: grid; gap: 4px; min-width: 0; }
.moderation-panel :is(input, select) { width: 100%; padding: 8px; border-radius: 8px; border: 1px solid var(--stroke); background: #12152a; color: inherit; }
.moderation-panel ul { list-style: none; padding: 0; }
.moderation-panel li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 8px; border-bottom: 1px solid var(--stroke); }

.score-sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.score-sections a { display: inline-flex; padding: 10px 13px; border: 1px solid var(--stroke); border-radius: 12px; background: #171529; color: #e4d5fa; text-decoration: none; font-weight: 700; }
.score-sections a[aria-current] { border-color: #b983ff; background: #34204f; color: #fff; }
.score-sections a:hover { border-color: #b983ff; }
.score-sections a:focus-visible { outline: 2px solid #c294fa; outline-offset: 2px; }
.week-picker { display: grid; gap: 4px; width: max-content; max-width: 100%; }
.week-picker select { padding: 8px; border-radius: 8px; border: 1px solid var(--stroke); background: #12152a; color: inherit; }
.challenge-play .rank-stats { margin-top: 16px; }
.challenge-play .rank-stats dd { font-variant-numeric: tabular-nums; }
