/* --- Leaderboard --- */
#leaderboard-screen .menu-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 90vh;
    width: 100%;
}
#leaderboard-list {
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#leaderboard-list::-webkit-scrollbar { display: none; }
.leaderboard-entry { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 0.75rem 1rem; border-radius: 0.5rem; border: 1px solid var(--panel-border); background: rgba(255, 255, 255, 0.03); animation: list-item-fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; opacity: 0; }
.leaderboard-entry .rank { font-size: 1.25rem; font-weight: 900; text-align: center; color: var(--text-dark); }
.leaderboard-entry .name { font-weight: 700; font-size: 1.125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.leaderboard-entry .stats { font-family: 'Roboto Mono', monospace; font-size: 1rem; color: var(--price-green); }
.leaderboard-entry .stats .win-rate { display: inline; }
.leaderboard-entry.rank-1 { border-color: #FFD700; background: radial-gradient(ellipse at top left, rgba(255, 215, 0, 0.2), transparent 60%); box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); }
.leaderboard-entry.rank-1 .rank { color: #FFD700; }
.leaderboard-entry.rank-2 { border-color: #C0C0C0; background: radial-gradient(ellipse at top left, rgba(192, 192, 192, 0.15), transparent 60%); }
.leaderboard-entry.rank-2 .rank { color: #C0C0C0; }
.leaderboard-entry.rank-3 { border-color: #CD7F32; background: radial-gradient(ellipse at top left, rgba(205, 127, 50, 0.15), transparent 60%); }
.leaderboard-entry.rank-3 .rank { color: #CD7F32; }
.leaderboard-entry.current-user {
    border-color: var(--accent-cyan) !important;
    background: var(--accent-glow) !important;
    box-shadow: 0 0 20px var(--accent-glow) !important;
}
