/* ── Leaderboard Page ── */
.lb-page {
    padding-top: 96px;
    padding-bottom: 4rem;
}

.lb-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.lb-header {
    text-align: center;
    margin-bottom: 2rem;
}

.lb-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.lb-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── Filters ── */
.lb-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.lb-filter-group {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.2rem;
}

.lb-filter {
    padding: 0.4rem 0.9rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    background: transparent;
    border: none;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.lb-filter:hover {
    color: var(--text);
}

.lb-filter.active {
    background: var(--accent);
    color: white;
}

/* ── Table ── */
.lb-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
}

.lb-table th {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.lb-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.lb-row:last-child td {
    border-bottom: none;
}

.lb-col-rank { width: 60px; text-align: center; }
.lb-col-score { text-align: right; font-family: var(--font-display); font-weight: 700; }

/* ── Medals ── */
.lb-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
}

.lb-gold { background: #d4a017; }
.lb-silver { background: #8a8a8a; }
.lb-bronze { background: #a0522d; }

.lb-rank-1 td { background: rgba(212, 160, 23, 0.06); }
.lb-rank-2 td { background: rgba(138, 138, 138, 0.04); }
.lb-rank-3 td { background: rgba(160, 82, 45, 0.04); }

/* ── Responsive ── */
@media (max-width: 600px) {
    .lb-filters {
        flex-direction: column;
        align-items: center;
    }
}
