/* Equipment columns stay local to the leaderboard page. */
.leaderboard-table th, .leaderboard-table td { padding: 12px; }
.leaderboard-table .character-content { display: inline-flex; align-items: center; gap: 8px; }
.leaderboard-table .character img { width: 32px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--cyan); }
.leaderboard-table .snowboard { min-width: 8ch; max-width: 15ch; white-space: normal; font-size: 0.9375rem; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .leaderboard-table, .leaderboard-table tbody { display: block; }
  .leaderboard-table caption { display: block; }
  .leaderboard-table thead { display: block; padding: 12px 16px; }
  .leaderboard-table thead tr { display: flex; justify-content: space-between; }
  .leaderboard-table th[aria-sort] { display: block; padding: 0; }
  .leaderboard-table th button { min-height: 44px; display: inline-flex; align-items: center; }
  .leaderboard-table th:not([aria-sort]) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .leaderboard-table tbody tr { display: flex; flex-wrap: wrap; align-items: start; gap: 14px 12px; padding: 18px 16px; }
  .leaderboard-table td { display: grid; align-content: start; flex: 0 0 calc(50% - 6px); padding: 0; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .leaderboard-table td::before { content: attr(data-label); color: var(--muted); font-size: 0.8125rem; font-weight: 700; margin-bottom: 4px; }
  .leaderboard-table td.rank { flex: 0 0 24px; align-self: center; width: auto; }
  .leaderboard-table td.rider { display: flex; flex: 1 1 calc(100% - 36px); align-items: center; }
  .leaderboard-table td.rank::before, .leaderboard-table td.rider::before { content: none; }
  .leaderboard-table td.snowboard { max-width: none; font-size: 0.9375rem; }
  .leaderboard-table .character-content { min-height: 40px; }
}
