.leaderboard {
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.leaderboard h2 {
    font-family: var(--secondary-font);
    font-size: 12px;
    color: var(--accent);
    text-align: center;
    margin: 0 0 var(--ui-gap-md);
}

.leaderboard ul {
    list-style: none;
    padding: 0 10px 0 0;
    margin-top: var(--ui-gap-lg);
    display: flex;
    flex-direction: column;
    gap: var(--ui-gap-sm);
    overflow-y: auto;
    overflow-x: hidden;
}

.leaderboard li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.leaderboard li:hover {
    background: linear-gradient(180deg, rgba(21, 199, 138, 0.05), transparent);
    border-color: rgba(21, 199, 138, 0.2);
}

.leaderboard li.current-user {
    background: linear-gradient(
        180deg,
        rgba(21, 199, 138, 0.08),
        rgba(21, 199, 138, 0.02)
    );
    border-color: rgba(21, 199, 138, 0.3);
}

.leaderboard li.loading,
.leaderboard li.error,
.leaderboard li.empty {
    justify-content: center;
    color: var(--muted);
    font-style: italic;
}

.leaderboard li.error {
    color: #ff6b6b;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leaderboard-entry .rank {
    font-size: 18px;
    min-width: 32px;
    text-align: center;
}

.leaderboard-entry .player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.leaderboard-entry .username {
    color: #fff;
    font-size: 14px;
}

.leaderboard-entry .level {
    color: var(--muted);
    font-size: 11px;
}

.leaderboard-entry .score-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.leaderboard-entry .score {
    color: var(--accent);
    font-weight: 600;
    font-size: 16px;
}

.leaderboard-entry .date {
    color: var(--muted);
    font-size: 10px;
}

.leaderboard-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}
