:root {
  color-scheme: dark;
  --board-bg: #111512;
  --board-panel: #1d231e;
  --board-control: #252d24;
  --board-edge: #59624e;
  --board-text: #e9e6d7;
  --board-muted: #b8c1ab;
  --board-amber: #e5b36c;
  --board-green: #bdd98d;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--board-text);
  background: var(--board-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: 24px 12px; }
.leaderboard {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 22px 24px 18px;
  background: var(--board-panel);
  border: 1px solid var(--board-edge);
  border-radius: 7px;
  box-shadow: 0 12px 36px rgb(0 0 0 / 18%);
}
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 16px; align-items: center; }
.eyebrow { color: var(--board-amber); font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; margin: 0 0 5px; }
h1 { font-size: clamp(23px, 4vw, 30px); line-height: 1.15; letter-spacing: -.035em; margin: 0; }
.description { grid-column: 1 / -1; color: var(--board-muted); font-size: 14px; line-height: 1.5; margin: 3px 0 0; }
.play-link { color: var(--board-green); font-size: 13px; font-weight: 650; text-decoration: none; padding: 12px 14px; border-radius: 5px; background: var(--board-control); border: 1px solid var(--board-edge); white-space: nowrap; }
.play-link:hover { background: #343c2d; border-color: var(--board-green); text-decoration: underline; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 10px; margin: 19px 0 17px; }
label { display: grid; gap: 6px; color: var(--board-muted); font-size: 12px; font-weight: 650; }
select, button { font: inherit; font-size: 14px; border-radius: 5px; min-height: 44px; }
select { width: 100%; min-width: 0; color: var(--board-text); background: var(--board-control); padding: 9px 25px 9px 11px; border: 1px solid var(--board-edge); text-overflow: ellipsis; }
button { padding: 9px 17px; border: 1px solid #7c9653; color: #fbf4dc; background: #4c6431; font-weight: 650; cursor: pointer; }
button:hover:not(:disabled) { background: #3f5428; border-color: var(--board-green); }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid var(--board-amber); outline-offset: 3px; }
.board-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
h2 { font-size: 16px; line-height: 1.4; margin: 0; letter-spacing: -.015em; }
.board-category { font-size: 12px; line-height: 1.4; margin: 5px 0 0; color: var(--board-amber); font-weight: 600; }
.board-limit { color: var(--board-muted); background: var(--board-control); font-size: 11px; padding: 4px 8px; border-radius: 5px; font-weight: 650; }
.status { margin: 7px 0 11px; color: var(--board-muted); font-size: 13px; line-height: 1.45; min-height: 19px; }
.status[data-state="error"] { color: #f1ba9f; background: #36281f; border-radius: 5px; padding: 10px 12px; }
.table-wrap { max-height: 270px; overflow: auto; border: 1px solid var(--board-edge); border-radius: 5px; scrollbar-gutter: stable; }
table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 13px; }
th { position: sticky; top: 0; z-index: 1; text-align: left; background: var(--board-control); color: var(--board-muted); font-size: 11px; font-weight: 700; padding: 11px 12px; white-space: nowrap; }
td { padding: 11px 12px; border-top: 1px solid #414c39; vertical-align: middle; }
td:first-child { width: 54px; color: var(--board-muted); font-variant-numeric: tabular-nums; }
td:nth-child(2) { font-weight: 600; overflow-wrap: anywhere; }
td:nth-child(3), td:nth-child(4) { font-variant-numeric: tabular-nums; white-space: nowrap; }
td:nth-child(3) { color: var(--board-amber); font-weight: 700; }
tbody tr:first-child { background: #283022; }
tbody tr:first-child td:first-child { color: var(--board-green); font-weight: 750; }
.muted { font-weight: 500; }
.empty { min-height: 172px; padding: 40px 20px; text-align: center; border: 1px dashed var(--board-edge); background: #171d17; border-radius: 5px; color: var(--board-muted); font-size: 13px; line-height: 1.55; }
.empty p { margin: 0; }
.empty .empty-title { color: var(--board-text); font-size: 16px; font-weight: 650; margin-bottom: 7px; }
.updated { font-size: 11px; color: var(--board-muted); min-height: 16px; margin: 9px 0 0; }
.notes { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--board-edge); color: var(--board-muted); font-size: 11px; line-height: 1.5; }
.notes p { margin: 0; }
.notes strong { color: var(--board-text); font-weight: 650; }
.notes .attribution { margin-top: 6px; color: var(--board-muted); }
.no-script { font-size: 13px; color: var(--board-amber); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filters button { grid-column: 1 / -1; }
  .table-wrap { max-height: 205px; }
}
@media (max-width: 470px) {
  body { padding: 8px; }
  .leaderboard { padding: 17px 15px 15px; border-radius: 7px; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; margin: 16px 0; }
  .filters button { grid-column: 1 / -1; min-height: 44px; }
  .description { font-size: 13px; }
  .play-link { padding: 8px; font-size: 12px; }
  .table-wrap { max-height: 164px; }
  .empty { min-height: 140px; padding: 28px 15px; }
  th, td { padding: 10px; }
  .notes { font-size: 11px; }
}
