/* Keep each player's identity and total visible together on small screens. */
.leaderboard-pass-detail { display: block; margin-top: 3px; font-size: 11px; color: var(--color-muted); font-weight: 400; }
.leaderboard-identity, .leaderboard-player > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 820px) {
    .content .leaderboard-panel { min-width: 0; overflow: visible; }
    .leaderboard-table { min-width: 0; width: 100%; table-layout: fixed; }
    .leaderboard-rank-column { width: 40px; }
    .leaderboard-total-column { width: 86px; }
    .leaderboard-table th, .leaderboard-table td { padding: 10px 6px; }
    .leaderboard-table th { font-size: 10px; }
    .leaderboard-table .rank-cell { width: auto; font-size: 13px; }
    .leaderboard-table .stat-value { width: auto; text-align: right; overflow-wrap: anywhere; }
    .leaderboard-table .stat-value strong { font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
    .leaderboard-table .leaderboard-pass-detail { font-size: 10px; line-height: 1.4; }
    .leaderboard-player { gap: 7px; align-items: flex-start; }
    .leaderboard-player strong { font-size: 13px; line-height: 1.3; }
    .leaderboard-player small { font-size: 11px; line-height: 1.3; }
    .leaderboard-table .leaderboard-photo { width: 30px; height: 30px; margin: 0; }
    .leaderboard-table .leaderboard-team { margin-left: 0; font-size: 11px; line-height: 1.4; }
}

/* Both statistics import modes remain usable on narrow phone screens. */
.stats-import-options { display: grid; gap: 12px; min-width: 0; }
.stats-import-options[hidden] { display: none; }
.stats-import-options label { min-width: 0; }
.stats-import-options input,
.stats-import-options select { width: 100%; max-width: 100%; }
