/* ═══════════════════════════════════════════
   LEADERBOARD — lb- prefixed
   ═══════════════════════════════════════════ */

.lb-body {
    margin: 0; padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: #070b14;
    color: #e0e0e0;
    min-height: 100vh;
}

.lb-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.lb-header {
    text-align: center;
    margin: 30px 0 24px;
}
.lb-header h1 {
    font-size: 2rem;
    font-family: "Orbitron", sans-serif;
    margin: 0 0 4px;
    color: #f0c040;
}
.lb-header p {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

/* ── Stat Tabs ── */
.lb-tabs {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.lb-tab-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #999;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.lb-tab-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #ddd;
}
.lb-tab-btn.active {
    background: rgba(240,192,64,0.15);
    border-color: #f0c040;
    color: #f0c040;
    box-shadow: 0 0 12px rgba(240,192,64,0.15);
}

/* ── Table ── */
.lb-table-container {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

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

.lb-table thead th {
    background: rgba(255,255,255,0.05);
    color: #aaa;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lb-col-rank { width: 60px; text-align: center; }
.lb-col-player { }
.lb-col-value { width: 140px; text-align: right; }

.lb-table tbody td {
    padding: 11px 10px;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

.lb-table tbody tr:last-child td {
    border-bottom: none;
}

.lb-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

/* ── Rank badges ── */
.lb-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.85rem;
    color: #888;
    background: rgba(255,255,255,0.06);
}

.lb-rank.top1 { background: #f0c040; color: #1a1a2e; box-shadow: 0 0 14px rgba(240,192,64,0.4); }
.lb-rank.top2 { background: #c0c0c0; color: #1a1a2e; box-shadow: 0 0 10px rgba(192,192,192,0.3); }
.lb-rank.top3 { background: #cd7f32; color: #1a1a2e; box-shadow: 0 0 8px rgba(205,127,50,0.3); }

/* ── Player column ── */
.lb-player-name {
    font-weight: 600;
    color: #e0e0e0;
}
.lb-player-id {
    font-size: 0.65rem;
    color: #555;
    margin-left: 8px;
}

/* ── Value column ── */
.lb-value {
    font-weight: 700;
    color: #4ade80;
    text-align: right;
}
.lb-value.negative {
    color: #f87171;
}

/* ── Loading / Empty ── */
.lb-loading {
    text-align: center;
    color: #666;
    padding: 40px 0;
    font-size: 0.9rem;
}

.lb-empty {
    text-align: center;
    color: #555;
    padding: 40px 0;
}

/* ── Responsive ── */
@media (max-width: 500px) {
    .lb-tab-btn {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    .lb-col-rank { width: 44px; }
    .lb-col-value { width: 100px; }
    .lb-table tbody td { font-size: 0.8rem; padding: 9px 8px; }
}
