.leaderboard-page {
    background:
        radial-gradient(900px 500px at -10% 0, rgba(124, 92, 255, .26), transparent 60%),
        radial-gradient(900px 600px at 110% 100%, rgba(46, 230, 166, .22), transparent 60%),
        var(--bg);
    overflow: hidden;
}

.leaderboard-hero {
    position: relative;
    padding: 82px 0 42px;
    overflow: hidden;
}

.leaderboard-hero-bg {
    position: absolute;
    inset: -30% -10%;
    background:
        radial-gradient(1100px 550px at 0 0, rgba(124, 92, 255, .36), transparent 60%),
        radial-gradient(900px 500px at 100% 100%, rgba(46, 230, 166, .32), transparent 70%),
        repeating-linear-gradient(115deg, rgba(124, 92, 255, .055) 0 2px, transparent 2px 12px);
    opacity: .85;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: leaderboard-gridshift 18s linear infinite;
}

@keyframes leaderboard-gridshift {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 0 0, 0 0, 600px -400px;
    }
}

.leaderboard-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 36px;
    align-items: center;
}

.leaderboard-hero-copy h1 {
    font-size: clamp(2.05rem, 3.6vw, 3.2rem);
    line-height: 1.08;
    margin: .2rem 0 .7rem;
    letter-spacing: -.045em;
}

.leaderboard-hero-copy .lead {
    max-width: 58ch;
    color: #b8c8e4;
    font-size: 1.02rem;
    margin: 0 0 16px;
}

.leaderboard-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 20px;
}

.leaderboard-hero-pills span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    color: #cfe1ff;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .09);
    font-size: .88rem;
    font-weight: 700;
}

.leaderboard-hero-pills i {
    color: var(--brand-2);
    font-size: 16px;
}

.leaderboard-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.leaderboard-hero-visual {
    justify-self: center;
    text-align: center;
}

.leaderboard-trophy-ring {
    position: relative;
    width: min(290px, 80vw);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .45), transparent 65%),
        conic-gradient(from 220deg, rgba(124, 92, 255, .55), rgba(46, 230, 166, .45), rgba(124, 92, 255, .7));
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .7);
    overflow: hidden;
}

.leaderboard-trophy-ring::before {
    content: "";
    position: absolute;
    inset: 15%;
    border-radius: inherit;
    border: 1px dashed rgba(220, 232, 255, .5);
    opacity: .78;
}

.leaderboard-trophy-orbit {
    position: absolute;
    inset: 6%;
    border-radius: inherit;
    border: 2px solid rgba(255, 255, 255, .18);
    border-top-color: rgba(255, 255, 255, .9);
    border-right-color: rgba(46, 230, 166, .85);
    border-left-color: rgba(124, 92, 255, .85);
    filter: drop-shadow(0 0 18px rgba(46, 230, 166, .6));
    animation: leaderboard-orbit 11s linear infinite;
}

@keyframes leaderboard-orbit {
    to {
        transform: rotate(360deg);
    }
}

.leaderboard-trophy-core {
    position: relative;
    width: 84%;
    height: 84%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .18), rgba(12, 18, 26, .96));
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, .7);
}

.leaderboard-trophy-core i {
    font-size: 76px;
    background: linear-gradient(180deg, #fff7db, #e3c564 65%, #b48b2d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .55));
}

.leaderboard-trophy-core span {
    color: #cde0ff;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.leaderboard-mini-note {
    margin: 14px auto 0;
    max-width: 36ch;
    color: #9fb1cd;
    font-size: .92rem;
}

.leaderboard-notice-section {
    padding: 0 0 24px;
}

.leaderboard-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(46, 230, 166, .07);
    border: 1px dashed rgba(46, 230, 166, .22);
    box-shadow: var(--shadow);
}

.leaderboard-notice i {
    color: var(--brand-2);
    font-size: 22px;
    margin-top: 2px;
}

.leaderboard-notice p {
    margin: 0;
    color: #b8c8e4;
}

.leaderboard-notice strong {
    color: #fff;
}

.leaderboard-section {
    padding: 44px 0;
}

.leaderboard-section--month {
    background:
        radial-gradient(900px 500px at 0 0, rgba(124, 92, 255, .16), transparent 60%),
        rgba(255, 255, 255, .015);
    border-top: 1px solid rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: end;
    margin-top: 24px;
}

.podium-card {
    position: relative;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 24px 18px 18px;
    border-radius: 24px;
    background:
        radial-gradient(500px 280px at 50% -20%, rgba(255, 255, 255, .1), transparent 65%),
        linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .022));
    border: 1px solid rgba(135, 158, 222, .42);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.podium-card::before {
    content: "";
    position: absolute;
    inset: -45%;
    opacity: .35;
    background: radial-gradient(circle at 50% 0, rgba(124, 92, 255, .35), transparent 58%);
    pointer-events: none;
    transition: opacity .22s ease;
}

.podium-card:hover {
    transform: translateY(-6px);
    border-color: rgba(46, 230, 166, .28);
    box-shadow: 0 20px 46px rgba(0, 0, 0, .45);
}

.podium-card:hover::before {
    opacity: .55;
}

.podium-card--first {
    min-height: 405px;
    transform: translateY(-16px);
}

.podium-card--first:hover {
    transform: translateY(-22px);
}

.podium-card--gold {
    border-color: rgba(227, 197, 100, .48);
}

.podium-card--silver {
    border-color: rgba(205, 214, 235, .4);
}

.podium-card--bronze {
    border-color: rgba(227, 169, 106, .42);
}

.podium-crown {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #081018;
    background: radial-gradient(circle at 30% 20%, #fff7db, #e3c564 65%, #b48b2d 100%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
    z-index: 2;
}

.podium-crown i {
    font-size: 22px;
}

.podium-avatar-ring {
    position: relative;
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: conic-gradient(from 220deg, rgba(124, 92, 255, .7), rgba(46, 230, 166, .65), rgba(124, 92, 255, .7));
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
    z-index: 1;
}

.podium-card--first .podium-avatar-ring {
    width: 154px;
    height: 154px;
}

.podium-avatar-glow {
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    border: 2px solid rgba(255, 255, 255, .38);
    filter: drop-shadow(0 0 18px rgba(46, 230, 166, .42));
    animation: podium-breathe 3.2s ease-in-out infinite;
}

@keyframes podium-breathe {
    0%,
    100% {
        transform: scale(1);
        opacity: .7;
    }

    50% {
        transform: scale(1.045);
        opacity: 1;
    }
}

.podium-avatar-ring img {
    width: 78%;
    height: 78%;
    object-fit: cover;
    border-radius: inherit;
    border: 3px solid rgba(255, 255, 255, .76);
    background: rgba(255, 255, 255, .1);
    z-index: 1;
}

.podium-rank {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.podium-rank span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: #081018;
    background: #9ff0cf;
    font-size: .8rem;
    font-weight: 900;
}

.podium-rank strong {
    color: #9fb1cd;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.podium-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.2;
}

.podium-stats {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    gap: 8px;
}

.podium-stats div {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(9, 12, 16, .72);
    border: 1px solid rgba(255, 255, 255, .08);
}

.podium-stats span {
    display: block;
    margin-bottom: 3px;
    color: #9fb1cd;
    font-size: .78rem;
}

.podium-stats strong {
    display: block;
    color: #e8f0ff;
    font-size: 1rem;
}

.ranking-table-card {
    margin-top: 20px;
    padding: 18px;
    border-radius: 24px;
    background:
        radial-gradient(720px 420px at 50% -12%, rgba(124, 92, 255, .12), transparent 68%),
        linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .022));
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--shadow);
}

.table-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.table-card-head h3 {
    margin: 0 0 3px;
    color: #fff;
    font-size: 1.1rem;
}

.table-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.table-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #081018;
    background: #9ff0cf;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ranking-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.ranking-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    overflow: hidden;
}

.ranking-table--monthly {
    min-width: 540px;
}

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

.ranking-table th {
    color: #cfe1ff;
    background: rgba(12, 17, 23, .88);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ranking-table td {
    color: #dbe4ef;
    background: rgba(255, 255, 255, .018);
}

.ranking-table tbody tr:hover td {
    background: rgba(124, 92, 255, .075);
}

.ranking-table tbody tr:last-child td {
    border-bottom: 0;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 30px;
    border-radius: 999px;
    color: #cfe1ff;
    background: rgba(124, 92, 255, .14);
    border: 1px solid rgba(124, 92, 255, .28);
    font-weight: 900;
}

.table-affiliate {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.table-affiliate img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: cover;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
}

.table-affiliate span {
    font-weight: 800;
    color: #fff;
}

.table-empty {
    text-align: center !important;
    color: var(--muted) !important;
}

.empty-board {
    max-width: 620px;
    margin: 24px auto 0;
    padding: 28px;
    text-align: center;
    border-radius: 24px;
    background:
        radial-gradient(600px 300px at 50% 0, rgba(124, 92, 255, .14), transparent 68%),
        linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .022));
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--shadow);
}

.empty-board i {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border-radius: 18px;
    color: #081018;
    background: radial-gradient(circle at 30% 20%, #fff, #cde6ff 55%, #9a86ff 100%);
    font-size: 28px;
}

.empty-board h3 {
    margin: 0 0 6px;
    color: #fff;
}

.empty-board p {
    margin: 0;
    color: var(--muted);
}

.leaderboard-cta-section {
    padding: 46px 0 58px;
}

.leaderboard-cta-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(900px 500px at 0 0, rgba(124, 92, 255, .2), transparent 60%),
        radial-gradient(900px 500px at 100% 100%, rgba(46, 230, 166, .18), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .022));
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--shadow);
}

.leaderboard-cta-card h2 {
    margin: 6px 0 7px;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    letter-spacing: -.035em;
    line-height: 1.1;
}

.leaderboard-cta-card p {
    margin: 0;
    max-width: 64ch;
    color: #b8c8e4;
}

.leaderboard-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 1080px) {
    .leaderboard-hero-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard-hero-visual {
        justify-self: center;
    }

    .podium-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .podium-card,
    .podium-card--first {
        min-height: auto;
        transform: none;
    }

    .podium-card--first:hover,
    .podium-card:hover {
        transform: translateY(-6px);
    }

    .podium-card--first {
        order: -1;
    }
}

@media (max-width: 820px) {
    .leaderboard-hero {
        padding-top: 74px;
    }

    .leaderboard-cta-card {
        grid-template-columns: 1fr;
    }

    .leaderboard-cta-actions {
        justify-content: flex-start;
    }

    .table-card-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .leaderboard-hero-copy h1 {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
    }

    .leaderboard-hero-pills {
        gap: 8px;
    }

    .leaderboard-hero-pills span {
        width: 100%;
    }

    .leaderboard-trophy-ring {
        width: min(230px, 82vw);
    }

    .leaderboard-trophy-core i {
        font-size: 58px;
    }

    .podium-card {
        padding: 20px 14px 16px;
        border-radius: 22px;
    }

    .podium-avatar-ring {
        width: 116px;
        height: 116px;
    }

    .podium-card--first .podium-avatar-ring {
        width: 132px;
        height: 132px;
    }

    .ranking-table-card,
    .leaderboard-cta-card {
        padding: 16px;
        border-radius: 22px;
    }
}