.leaderboard-intro { padding-bottom: 31px; }
.leaderboard-controls {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.leaderboard-controls label { color: var(--steel); font-size: 13px; font-weight: 700; }
.leaderboard-controls select {
  min-height: 40px;
  min-width: 190px;
  padding: 7px 30px 7px 10px;
  color: var(--ink);
  background: var(--surface-bright);
  border: 1px solid #aebfba;
  border-radius: 4px;
  font: inherit;
}
.leaderboard-controls button {
  min-height: 40px;
  margin-left: auto;
  padding: 8px 14px;
  color: white;
  background: var(--steel);
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}
.leaderboard-controls button:hover { background: #203d45; }
.board-status { min-height: 1.5em; margin: 16px 0 8px; color: var(--muted); font-size: 13px; }
.board-status[data-kind="error"] { color: #8f3d28; }
.leaderboard-content { display: grid; gap: 28px; padding: 8px 0 35px; }
.board-section h2 { margin: 7px 0 14px; font-size: 21px; }
.board-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); }
.board-table { width: 100%; border-collapse: collapse; text-align: left; }
.board-table th, .board-table td { padding: 12px 15px; border-bottom: 1px solid #d6e0da; }
.board-table th { color: #526d72; font-size: 12px; font-weight: 700; }
.board-table td { font-size: 14px; }
.board-table tbody tr:last-child td { border-bottom: 0; }
.board-table td:first-child { width: 64px; color: var(--muted); font-variant-numeric: tabular-nums; }
.board-table td:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.empty-board { max-width: 650px; padding: 22px; color: #435e64; background: var(--surface); border-left: 3px solid var(--amber); line-height: 1.6; }
.empty-board a { font-weight: 700; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .leaderboard-controls { align-items: stretch; flex-wrap: wrap; }
  .leaderboard-controls label { width: 52px; align-self: center; }
  .leaderboard-controls select { flex: 1; min-width: 0; }
  .leaderboard-controls button { margin-left: 63px; }
  .board-table th, .board-table td { padding: 10px 9px; font-size: 12px; }
}
