/* A dedicated HUD rail: the pitch canvas can never sit underneath the score. */
#match-screen,#game:has(> .hud){--hud-rail:88px;background:#101f1c}
#match-screen>#field,#game:has(> .hud)>#field{position:absolute;left:0;top:var(--hud-rail);width:100%;height:calc(100% - var(--hud-rail))}
#match-screen>.hud,#game>.hud{top:10px;z-index:2;min-height:58px;padding:8px 20px;gap:22px;background:#1b302b;border:1px solid #839b7955;border-radius:12px;box-shadow:0 4px 16px #0003}
.hud .time{min-width:112px}.hud .score{font-variant-numeric:tabular-nums}
.leaderboard-player{font:inherit;color:#ebefdc;background:transparent;border:0;padding:3px 0;text-align:left;text-decoration:underline;text-decoration-color:#bdd39a55;text-underline-offset:3px;overflow-wrap:anywhere}
.leaderboard-player:hover,.leaderboard-player:focus-visible{color:#e9d39d;text-decoration-color:currentColor}
.all-time-podium{margin:0 0 10px;padding:10px;background:#d6bc6c0a;border:1px solid #d6bc6c44;border-radius:8px}
.all-time-podium h2{margin:0 0 3px;font-size:12px;letter-spacing:.04em;color:#e5d5a0}
.all-time-podium p{font-size:10px;color:#a7bbac;margin:0 0 6px}
.all-time-podium ol{list-style:none;padding:0;margin:0;display:grid;gap:5px}
.all-time-podium li{display:flex;align-items:center;gap:8px;font-size:11px}
.all-time-podium .podium-place{width:18px;color:#dfc37e;font:700 11px ui-monospace,monospace}
.all-time-podium .podium-elo{margin-left:auto;color:#f4e6b7;font-variant-numeric:tabular-nums;white-space:nowrap}
.leaderboard-empty{font-size:11px;color:#a7bbac;padding:8px}
@media(max-width:600px){
 #match-screen,#game:has(> .hud){--hud-rail:78px}
 #match-screen>.hud,#game>.hud{left:10px;transform:none;top:8px;min-height:54px;padding:6px 12px;gap:10px}
 .hud .time{min-width:96px}.hud .score{min-width:24px;font-size:23px}
 #match-menu,#online-menu{right:10px;top:16px;padding:8px;font-size:10px}
}
