/* Leaderboard — glass podium, transparent, no shadows */

.public-site--leaderboard main {
    position: relative;
    z-index: 1;
}

.lb-page {
    padding: 7.25rem 0 4.5rem;
    min-height: calc(100vh - 4rem);
}

.lb-page-head {
    text-align: center;
    max-width: 40rem;
    margin-inline: auto;
    margin-bottom: 2.75rem;
}

.lb-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--pub-muted);
    margin-bottom: 0.5rem;
}

.lb-page-head h1 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.lb-desc {
    color: var(--pub-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.lb-layout {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    max-width: 880px;
    margin-inline: auto;
}

.lb-podium-panel {
    border: 1px solid rgba(126, 184, 234, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 2rem 1.25rem 0;
    overflow: hidden;
}

.lb-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: end;
    max-width: 880px;
    margin-inline: auto;
}

.lb-podium-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

.lb-podium-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.7rem;
    padding: 1.25rem 0.75rem 1rem;
}

.lb-podium-rank {
    position: absolute;
    top: 0;
    inset-inline-end: 0.5rem;
    width: 1.85rem;
    height: 1.85rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-family: var(--pub-font-en);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lb-podium-card--rank-1 .lb-podium-rank {
    background: rgba(212, 168, 83, 0.22);
    border-color: rgba(212, 168, 83, 0.45);
    color: #f0d090;
}

.lb-podium-card--rank-2 .lb-podium-rank {
    background: rgba(168, 180, 196, 0.18);
    border-color: rgba(168, 180, 196, 0.38);
    color: #dce4ee;
}

.lb-podium-card--rank-3 .lb-podium-rank {
    background: rgba(196, 136, 90, 0.18);
    border-color: rgba(196, 136, 90, 0.4);
    color: #e8b896;
}

.lb-podium-avatar {
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 999px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(0, 43, 102, 0.35);
    border: 2px solid rgba(126, 184, 234, 0.22);
    margin-top: 0.25rem;
}

.lb-podium-card--rank-1 .lb-podium-avatar {
    width: 5.5rem;
    height: 5.5rem;
    border-color: rgba(212, 168, 83, 0.5);
}

.lb-podium-card--rank-2 .lb-podium-avatar {
    border-color: rgba(168, 180, 196, 0.42);
}

.lb-podium-card--rank-3 .lb-podium-avatar {
    border-color: rgba(196, 136, 90, 0.42);
}

.lb-podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-podium-avatar-fallback {
    font-family: var(--pub-font-en);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pub-accent-soft);
}

.lb-podium-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    max-width: 100%;
    padding-inline: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-podium-time {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(126, 184, 234, 0.14);
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--pub-font-en);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pub-muted-hi);
}

.lb-podium-time svg {
    width: 0.85rem;
    height: 0.85rem;
    opacity: 0.75;
    flex-shrink: 0;
}

.lb-podium-base {
    height: 3.25rem;
    border-top: 1px solid rgba(126, 184, 234, 0.12);
    background: rgba(255, 255, 255, 0.025);
}

.lb-podium-card--rank-1 .lb-podium-base {
    height: 4.5rem;
    border-top-color: rgba(212, 168, 83, 0.28);
    background: rgba(212, 168, 83, 0.06);
}

.lb-podium-card--rank-2 .lb-podium-base {
    height: 2.75rem;
    border-top-color: rgba(168, 180, 196, 0.22);
    background: rgba(168, 180, 196, 0.04);
}

.lb-podium-card--rank-3 .lb-podium-base {
    height: 2.15rem;
    border-top-color: rgba(196, 136, 90, 0.22);
    background: rgba(196, 136, 90, 0.04);
}

.lb-empty {
    padding: 2.75rem 1.25rem;
    text-align: center;
    color: var(--pub-muted);
    font-size: 0.9rem;
    border: 1px solid rgba(126, 184, 234, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    max-width: 480px;
    margin-inline: auto;
}

/* Ranks 4–10 */
.lb-rest {
    border: 1px solid rgba(126, 184, 234, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.lb-rest-head {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid rgba(126, 184, 234, 0.1);
}

.lb-rest-head h2 {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--pub-muted);
}

.lb-rest-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lb-rest-row {
    display: grid;
    grid-template-columns: 2.75rem 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.8rem 1.15rem;
    border-bottom: 1px solid rgba(126, 184, 234, 0.08);
    transition: background 0.12s ease;
}

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

.lb-rest-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.lb-rest-rank {
    font-family: var(--pub-font-en);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pub-muted);
    font-variant-numeric: tabular-nums;
}

.lb-rest-player {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.lb-rest-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(126, 184, 234, 0.18);
    background: rgba(0, 43, 102, 0.3);
}

.lb-rest-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-rest-avatar-fallback {
    font-family: var(--pub-font-en);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pub-muted);
}

.lb-rest-name {
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-rest-time {
    font-family: var(--pub-font-en);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--pub-muted-hi);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .lb-page {
        padding-top: 6.5rem;
    }

    .lb-podium-panel {
        padding: 1.25rem 0.75rem 0;
    }

    .lb-podium {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 22rem;
    }

    .lb-podium-card--rank-1 .lb-podium-base,
    .lb-podium-card--rank-2 .lb-podium-base,
    .lb-podium-card--rank-3 .lb-podium-base {
        height: 1.5rem;
    }

    .lb-podium-card--rank-1 .lb-podium-avatar,
    .lb-podium-avatar {
        width: 4.25rem;
        height: 4.25rem;
    }

    .lb-rest-row {
        grid-template-columns: 2.25rem 1fr;
        grid-template-rows: auto auto;
        row-gap: 0.15rem;
        padding: 0.75rem 1rem;
    }

    .lb-rest-time {
        grid-column: 2;
        font-size: 0.78rem;
        color: var(--pub-muted);
    }
}
