.center-wrapper {
    padding: 0;
}

.leaderboard-tabs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 45px 0;
    gap: 12px;
}

.leaderboard-tab {
    padding: 12px 28px;
    font-size: 1.15rem;
    color: #0ff;
    cursor: pointer;
    border: 2px solid #0ff;
    background: rgba(0, 255, 255, 0.06);
    text-shadow: 0 0 8px #0ff;
    transition: 0.25s ease;
    position: relative;
    text-decoration: none;
    clip-path: polygon(10% 0%, 100% 0%, 100% 100%,
            0% 100%, 0% 25%);
    box-shadow: inset 0 0 12px rgba(0, 255, 255, 0.4);
}

.leaderboard-tab:hover {
    background: rgba(0, 255, 255, 0.18);
    box-shadow:
        inset 0 0 18px rgba(0, 255, 255, 0.6),
        0 0 14px rgba(0, 255, 255, 0.8);
}

.leaderboard-tab.active {
    background: #0ff;
    color: #05060a;
    text-shadow: none;
    box-shadow:
        inset 0 0 20px #fff,
        0 0 22px #0ff;
}

/* PAGE WRAPPER */
.leaderboard-shell {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* TITLE */
.lb-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 30px;
}

/* TABLE WRAPPER */
.lb-panel {
    background: var(--panel);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(0, 246, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 246, 255, 0.15);
}

/* DESKTOP TABLE */
.lb-table {
    width: 100%;
    border-collapse: collapse;
    display: table;
}

.lb-table thead {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.lb-table th,
.lb-table td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

/* RANK BADGES */
.rank {
    font-weight: 700;
    font-size: 1.1rem;
}

.rank-1 {
    color: var(--accent);
    text-shadow: var(--shadow-neon);
}

.rank-2 {
    color: #d0d6ff;
}

.rank-3 {
    color: var(--accent-secondary);
    text-shadow: var(--shadow-pink);
}

/* AVATAR */
.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #111;
    background-size: cover;
    background-position: center;
    margin-right: 10px;
    border: 1px solid rgba(0, 246, 255, 0.35);
}

/* NAME CELL */
.name-cell {
    display: flex;
    align-items: center;
    font-weight: 600;
}

/* HIGHLIGHT CURRENT USER */
.you {
    background: rgba(255, 47, 214, 0.08);
    border-left: 3px solid var(--accent-secondary);
}

/* MOBILE CARD VIEW */
.lb-card {
    display: none;
    background: linear-gradient(145deg, #050712, #0b1020);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid rgba(0, 246, 255, 0.18);
    margin-bottom: 14px;
    box-shadow: 0 0 14px rgba(0, 246, 255, 0.12);
}

.lb-card .top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lb-card .name-row {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.lb-card .score {
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .lb-table {
        display: none;
    }

    .lb-card {
        display: block;
    }
}