﻿/* 全服 VOID GACHA 排行榜 · 賽博朋克 */
.leaderboard-view .lb-intro {
    margin: -6px 0 14px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}

#leaderboard-panel {
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    background:
        linear-gradient(165deg, rgba(4, 8, 20, 0.97), rgba(8, 4, 18, 0.96)),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        );
    padding: 20px 18px 22px;
    min-height: 360px;
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.08),
        inset 0 0 60px rgba(127, 0, 255, 0.06);
    position: relative;
    overflow: hidden;
}

#leaderboard-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(0, 255, 255, 0.04) 50%, transparent 60%);
    pointer-events: none;
    animation: lb-scan 6s linear infinite;
}

@keyframes lb-scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.lb-head {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.lb-head-title {
    margin: 0 0 6px;
    font-family: Orbitron, 'Noto Sans TC', sans-serif;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 900;
    letter-spacing: 0.12em;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #00ffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lb-title-glow 4s linear infinite;
}

@keyframes lb-title-glow {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.lb-head-sub {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: rgba(0, 255, 255, 0.65);
}

.lb-categories {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.lb-cat {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 209, 102, 0.28);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lb-cat.active {
    border-color: rgba(255, 209, 102, 0.65);
    background: rgba(255, 209, 102, 0.14);
    color: #ffd56a;
}

.lb-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.lb-tabs--scroll {
    flex-wrap: wrap;
    justify-content: center;
}

.lb-tabs--scroll .lb-tab {
    flex: 0 1 auto;
    min-width: 84px;
    padding: 12px 14px;
    font-size: 14px;
}

.lb-tab {
    flex: 1;
    padding: 12px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.45);
    color: rgba(200, 230, 255, 0.8);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.lb-tab:hover {
    border-color: rgba(255, 0, 255, 0.5);
    color: #fff;
}

.lb-tab.active {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 128, 0.25));
    border-color: rgba(0, 255, 255, 0.6);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.25);
}

.lb-tab-desc {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    color: rgba(230, 240, 255, 0.92);
    position: relative;
    z-index: 1;
}

.lb-tab-desc strong {
    color: #00ffff;
}

.lb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.lb-row {
    display: grid;
    grid-template-columns: 52px 52px minmax(0, 1fr) minmax(118px, 132px);
    gap: 12px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 255, 0.22);
    background: rgba(6, 10, 24, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}

.lb-row:hover {
    transform: translateX(4px);
    border-color: rgba(0, 255, 255, 0.45);
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.15);
}

.lb-row--you {
    border-color: rgba(255, 215, 0, 0.55);
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.14), rgba(6, 10, 24, 0.92));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── 前三名 · 頒獎台熱血特效 ── */
.lb-row--top1,
.lb-row--top2,
.lb-row--top3 {
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
    gap: 14px;
    border-width: 2px;
    grid-template-columns: 64px 68px minmax(0, 1fr) minmax(118px, 132px);
}

.lb-row--top1::before,
.lb-row--top2::before,
.lb-row--top3::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    z-index: 0;
}

.lb-row--top1 > *,
.lb-row--top2 > *,
.lb-row--top3 > * {
    position: relative;
    z-index: 1;
}

.lb-podium-flair {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    white-space: nowrap;
    pointer-events: none;
}

.lb-row--top1 {
    border-color: rgba(255, 200, 60, 0.85);
    background:
        linear-gradient(120deg, rgba(255, 120, 0, 0.22) 0%, transparent 42%),
        linear-gradient(300deg, rgba(255, 215, 0, 0.18) 0%, transparent 38%),
        linear-gradient(180deg, rgba(40, 18, 0, 0.92), rgba(12, 8, 28, 0.96));
    box-shadow:
        0 0 36px rgba(255, 160, 0, 0.45),
        0 0 80px rgba(255, 60, 0, 0.15),
        inset 0 1px 0 rgba(255, 240, 180, 0.2);
    animation: lb-podium-pulse-gold 2.4s ease-in-out infinite;
}

.lb-row--top1::before {
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 220, 120, 0.35) 50%,
        transparent 62%
    );
    animation: lb-podium-shine 3.2s ease-in-out infinite;
}

.lb-row--top1 .lb-podium-flair {
    color: #2a1400;
    background: linear-gradient(90deg, #ffe566, #ff9a2e);
    box-shadow: 0 0 16px rgba(255, 180, 0, 0.7);
    animation: lb-flair-bounce 1.8s ease-in-out infinite;
}

.lb-row--top2 {
    border-color: rgba(180, 220, 255, 0.75);
    background:
        linear-gradient(120deg, rgba(120, 180, 255, 0.16) 0%, transparent 45%),
        linear-gradient(180deg, rgba(16, 24, 48, 0.94), rgba(8, 10, 26, 0.96));
    box-shadow:
        0 0 28px rgba(140, 200, 255, 0.35),
        inset 0 1px 0 rgba(220, 240, 255, 0.15);
    animation: lb-podium-pulse-silver 2.8s ease-in-out infinite;
}

.lb-row--top2::before {
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(200, 230, 255, 0.22) 50%,
        transparent 60%
    );
    animation: lb-podium-shine 3.8s ease-in-out infinite;
}

.lb-row--top2 .lb-podium-flair {
    color: #0e1a30;
    background: linear-gradient(90deg, #e8f4ff, #9ec8ff);
    box-shadow: 0 0 12px rgba(160, 210, 255, 0.55);
}

.lb-row--top3 {
    border-color: rgba(255, 150, 90, 0.7);
    background:
        linear-gradient(120deg, rgba(255, 100, 50, 0.14) 0%, transparent 45%),
        linear-gradient(180deg, rgba(36, 18, 10, 0.92), rgba(10, 8, 22, 0.96));
    box-shadow:
        0 0 24px rgba(255, 120, 60, 0.3),
        inset 0 1px 0 rgba(255, 200, 150, 0.12);
    animation: lb-podium-pulse-bronze 3s ease-in-out infinite;
}

.lb-row--top3::before {
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 180, 120, 0.2) 50%,
        transparent 60%
    );
    animation: lb-podium-shine 4.2s ease-in-out infinite;
}

.lb-row--top3 .lb-podium-flair {
    color: #2a1208;
    background: linear-gradient(90deg, #ffd0a8, #e87840);
    box-shadow: 0 0 12px rgba(255, 130, 60, 0.45);
}

.lb-row--top1:hover,
.lb-row--top2:hover,
.lb-row--top3:hover {
    transform: translateX(6px) scale(1.01);
}

.lb-row--top1.lb-row--you {
    border-color: rgba(255, 230, 120, 0.95);
    box-shadow:
        0 0 40px rgba(255, 180, 0, 0.55),
        0 0 0 2px rgba(255, 215, 0, 0.35),
        inset 0 0 30px rgba(255, 200, 80, 0.12);
}

.lb-row--top1 .lb-name {
    font-size: 19px;
    background: linear-gradient(90deg, #fff8e0, #ffc84d, #ff6b2e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 8px rgba(255, 160, 0, 0.5));
}

.lb-row--top2 .lb-name {
    font-size: 18px;
    color: #e8f6ff;
    text-shadow: 0 0 12px rgba(160, 210, 255, 0.45);
}

.lb-row--top3 .lb-name {
    font-size: 18px;
    color: #ffe8d8;
    text-shadow: 0 0 10px rgba(255, 140, 80, 0.4);
}

.lb-rank--podium {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 56px;
    align-self: center;
}

.lb-rank-medal {
    font-size: 32px;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(255, 200, 80, 0.6));
    animation: lb-medal-pop 2s ease-in-out infinite;
}

.lb-rank--silver .lb-rank-medal {
    filter: drop-shadow(0 0 8px rgba(180, 220, 255, 0.55));
}

.lb-rank--bronze .lb-rank-medal {
    filter: drop-shadow(0 0 8px rgba(255, 140, 80, 0.5));
}

.lb-rank-tag {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    line-height: 1.2;
}

.lb-rank--gold .lb-rank-tag {
    color: #ffcc44;
    text-shadow: 0 0 10px rgba(255, 180, 0, 0.8);
}

.lb-rank--silver .lb-rank-tag {
    color: #b8dcff;
    text-shadow: 0 0 8px rgba(160, 210, 255, 0.6);
}

.lb-rank--bronze .lb-rank-tag {
    color: #ffb080;
    text-shadow: 0 0 8px rgba(255, 120, 60, 0.5);
}

.lb-rank-honor {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.2em;
    line-height: 1.2;
}

.lb-rank--gold .lb-rank-honor {
    color: #fff0c0;
    text-shadow: 0 0 14px rgba(255, 120, 0, 0.9), 0 2px 0 #8a3a00;
}

.lb-rank--silver .lb-rank-honor {
    color: #f0f8ff;
    text-shadow: 0 0 10px rgba(140, 200, 255, 0.7);
}

.lb-rank--bronze .lb-rank-honor {
    color: #ffe0c8;
    text-shadow: 0 0 10px rgba(255, 100, 50, 0.6);
}

.lb-avatar--podium .lb-avatar-img,
.lb-avatar--podium .lb-avatar-emoji {
    width: 58px;
    height: 58px;
    align-self: center;
}

.lb-avatar--podium-1 .lb-avatar-img,
.lb-avatar--podium-1 .lb-avatar-emoji {
    width: 64px;
    height: 64px;
    font-size: 30px;
    border-width: 3px;
    border-color: rgba(255, 200, 60, 0.9);
    box-shadow:
        0 0 20px rgba(255, 160, 0, 0.6),
        0 0 40px rgba(255, 80, 0, 0.25);
    animation: lb-avatar-ring-gold 2.2s ease-in-out infinite;
}

.lb-avatar--podium-2 .lb-avatar-img,
.lb-avatar--podium-2 .lb-avatar-emoji {
    border-color: rgba(180, 220, 255, 0.85);
    box-shadow: 0 0 16px rgba(140, 200, 255, 0.45);
}

.lb-avatar--podium-3 .lb-avatar-img,
.lb-avatar--podium-3 .lb-avatar-emoji {
    border-color: rgba(255, 150, 90, 0.8);
    box-shadow: 0 0 14px rgba(255, 120, 60, 0.4);
}

.lb-row--top1 .lb-stat-item--rank {
    border-color: rgba(255, 200, 80, 0.5);
    background: rgba(40, 20, 0, 0.55);
}

.lb-row--top2 .lb-stat-item--rank {
    border-color: rgba(160, 210, 255, 0.45);
    background: rgba(12, 24, 48, 0.55);
}

.lb-row--top3 .lb-stat-item--rank {
    border-color: rgba(255, 140, 80, 0.45);
    background: rgba(36, 18, 8, 0.55);
}

@keyframes lb-podium-pulse-gold {
    0%,
    100% {
        box-shadow:
            0 0 36px rgba(255, 160, 0, 0.4),
            0 0 80px rgba(255, 60, 0, 0.12),
            inset 0 1px 0 rgba(255, 240, 180, 0.2);
    }
    50% {
        box-shadow:
            0 0 48px rgba(255, 200, 80, 0.65),
            0 0 100px rgba(255, 80, 0, 0.25),
            inset 0 1px 0 rgba(255, 240, 180, 0.3);
    }
}

@keyframes lb-podium-pulse-silver {
    0%,
    100% {
        box-shadow: 0 0 28px rgba(140, 200, 255, 0.3), inset 0 1px 0 rgba(220, 240, 255, 0.15);
    }
    50% {
        box-shadow: 0 0 40px rgba(180, 230, 255, 0.5), inset 0 1px 0 rgba(220, 240, 255, 0.22);
    }
}

@keyframes lb-podium-pulse-bronze {
    0%,
    100% {
        box-shadow: 0 0 24px rgba(255, 120, 60, 0.28), inset 0 1px 0 rgba(255, 200, 150, 0.12);
    }
    50% {
        box-shadow: 0 0 36px rgba(255, 150, 80, 0.45), inset 0 1px 0 rgba(255, 200, 150, 0.18);
    }
}

@keyframes lb-podium-shine {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes lb-medal-pop {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}

@keyframes lb-avatar-ring-gold {
    0%,
    100% {
        box-shadow:
            0 0 20px rgba(255, 160, 0, 0.55),
            0 0 40px rgba(255, 80, 0, 0.2);
    }
    50% {
        box-shadow:
            0 0 28px rgba(255, 200, 80, 0.8),
            0 0 56px rgba(255, 100, 0, 0.35);
    }
}

@keyframes lb-flair-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.lb-rank {
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    color: #b8ecff;
    font-family: inherit;
    align-self: center;
}

.lb-avatar {
    display: contents;
}

.lb-avatar-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 255, 255, 0.35);
    flex-shrink: 0;
    box-sizing: border-box;
    justify-self: center;
}

.lb-avatar-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(0, 255, 255, 0.25);
    flex-shrink: 0;
    box-sizing: border-box;
    justify-self: center;
    overflow: hidden;
}

.lb-player {
    min-width: 0;
    text-align: center;
}

.lb-name {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.lb-you-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
    background: rgba(255, 215, 0, 0.35);
    color: #1a1200;
    vertical-align: middle;
}

.lb-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(210, 225, 255, 0.92);
    margin-top: 4px;
}

.lb-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 255, 255, 0.15);
    text-align: center;
}

.lb-row--you .lb-stat-item {
    border-color: rgba(255, 215, 0, 0.2);
    background: rgba(20, 16, 8, 0.55);
}

.lb-stat-grid--modes .lb-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 118px;
    gap: 0;
    padding: 8px 10px 8px;
}

.lb-stat-grid--modes .lb-stat-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-top: auto;
    padding-top: 4px;
    padding-bottom: 2px;
    min-height: 52px;
}

.lb-stat-grid--modes .lb-stat-val {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 4px;
}

.lb-stat-grid--modes .lb-stat-item--mode-active {
    border-color: rgba(255, 209, 102, 0.72);
    background: rgba(255, 209, 102, 0.12);
    box-shadow:
        0 0 0 1px rgba(255, 209, 102, 0.25),
        0 0 14px rgba(255, 209, 102, 0.18);
}

.lb-stat-grid--modes .lb-stat-item--mode-active .lb-stat-label {
    color: #ffd56a;
}

.lb-stat-grid--modes .lb-stat-item--mode-active .lb-stat-val {
    color: #fff8ec;
}

.lb-stat-grid--modes .lb-stat-meta {
    margin-top: 0;
    padding-top: 0;
    min-height: 0;
    gap: 2px;
}

.lb-stat-grid--modes .lb-stat-meta--empty {
    visibility: hidden;
}

.lb-stat-grid--modes .lb-stat-meta span {
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.58);
}

.lb-stat-grid--modes .lb-stat-item--mode-active .lb-stat-meta span {
    color: rgba(255, 232, 180, 0.82);
}

.lb-stat-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(190, 220, 255, 0.95);
    text-align: center;
}

.lb-stat-val {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    text-align: center;
}

.lb-metric-wrap {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.lb-stat-item--rank {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 10px;
    min-height: 100%;
    border-color: rgba(0, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.5);
}

.lb-row--you .lb-stat-item--rank {
    border-color: rgba(255, 215, 0, 0.35);
    background: rgba(24, 20, 10, 0.58);
}

.lb-stat-item--rank .lb-stat-val {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-top: 2px;
}

.lb-stat-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.lb-stat-meta span {
    font-size: 14px;
    font-weight: 700;
    color: rgba(210, 228, 255, 0.92);
    line-height: 1.4;
    font-family: inherit;
    text-align: center;
}

.lb-modal-stat-line {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(235, 245, 255, 0.95);
    margin-bottom: 6px;
}

.lb-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.lb-page-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.5);
    color: #00ffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    font-family: Orbitron, sans-serif;
}

.lb-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.lb-page-btn:not(:disabled):hover {
    background: rgba(0, 255, 255, 0.15);
}

.lb-page-nums {
    display: flex;
    gap: 6px;
}

.lb-page-num {
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.45);
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.lb-page-num.active {
    border-color: rgba(255, 0, 128, 0.6);
    background: linear-gradient(135deg, rgba(127, 0, 255, 0.5), rgba(255, 0, 128, 0.35));
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 0, 128, 0.35);
}

.lb-pager-meta {
    text-align: center;
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--muted);
    position: relative;
    z-index: 1;
}

.lb-list-empty {
    list-style: none;
    text-align: center;
    padding: 36px 20px;
    border-radius: 12px;
    border: 1px dashed rgba(0, 255, 255, 0.2);
    color: var(--muted);
}

.lb-list-empty p {
    margin: 0 0 8px;
    font-size: 15px;
    color: rgba(200, 220, 255, 0.9);
}

.lb-list-empty-sub {
    font-size: 12px;
    line-height: 1.6;
}

/* 榮譽展示櫃彈窗 */
#lb-showcase-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background:
        radial-gradient(ellipse 58% 95% at 0% 48%, rgba(255, 90, 20, 0.42) 0%, transparent 58%),
        radial-gradient(ellipse 58% 95% at 100% 52%, rgba(255, 40, 140, 0.38) 0%, transparent 58%),
        radial-gradient(ellipse 50% 45% at 8% 18%, rgba(0, 255, 255, 0.18) 0%, transparent 52%),
        radial-gradient(ellipse 50% 45% at 92% 22%, rgba(180, 80, 255, 0.2) 0%, transparent 52%),
        radial-gradient(ellipse 90% 55% at 50% 108%, rgba(255, 200, 60, 0.22) 0%, transparent 55%),
        linear-gradient(180deg, rgba(8, 2, 24, 0.94) 0%, rgba(2, 4, 18, 0.96) 100%);
    backdrop-filter: blur(10px) saturate(1.25);
    overflow: hidden;
    box-sizing: border-box;
}

/* 左右 · 華麗熱血光效 */
.lb-modal-ambience {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.lb-modal-wing {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(140px, 32vw, 380px);
    overflow: hidden;
}

.lb-modal-wing--left {
    left: 0;
}

.lb-modal-wing--right {
    right: 0;
}

.lb-modal-wing--right .lb-amb-beam--diag {
    transform: scaleX(-1);
}

.lb-modal-wing--right .lb-amb-sunburst {
    right: -15%;
    left: auto;
}

.lb-amb-sunburst {
    position: absolute;
    top: 50%;
    left: -20%;
    width: min(420px, 95vw);
    height: min(420px, 85vh);
    margin-top: -210px;
    border-radius: 50%;
    opacity: 0.55;
    mix-blend-mode: screen;
    animation: lb-amb-sunburst-spin 18s linear infinite;
}

.lb-amb-sunburst--gold {
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 215, 0, 0.55) 40deg,
        transparent 80deg,
        rgba(255, 120, 40, 0.45) 140deg,
        transparent 200deg,
        rgba(255, 240, 160, 0.5) 260deg,
        transparent 320deg
    );
    filter: blur(2px);
}

.lb-amb-sunburst--fire {
    top: 28%;
    width: min(320px, 70vw);
    height: min(320px, 60vh);
    margin-top: -160px;
    opacity: 0.4;
    animation-duration: 12s;
    animation-direction: reverse;
    background: conic-gradient(
        from 90deg,
        transparent,
        rgba(255, 60, 20, 0.5) 60deg,
        rgba(255, 180, 0, 0.35) 120deg,
        transparent 180deg
    );
}

.lb-amb-sunburst--cyan {
    background: conic-gradient(
        from 180deg,
        transparent,
        rgba(0, 255, 255, 0.45) 50deg,
        transparent 110deg,
        rgba(120, 200, 255, 0.4) 200deg,
        transparent 280deg
    );
}

.lb-amb-sunburst--violet {
    top: 62%;
    opacity: 0.38;
    animation-duration: 22s;
    background: conic-gradient(
        from 45deg,
        transparent,
        rgba(200, 80, 255, 0.5) 70deg,
        rgba(255, 100, 200, 0.35) 150deg,
        transparent 240deg
    );
}

.lb-amb-beam {
    position: absolute;
    pointer-events: none;
    filter: blur(1px);
    mix-blend-mode: screen;
}

.lb-amb-beam--up {
    bottom: 0;
    left: 18%;
    width: 38%;
    height: 72%;
    background: linear-gradient(
        0deg,
        rgba(255, 120, 30, 0.65) 0%,
        rgba(255, 200, 80, 0.35) 35%,
        transparent 72%
    );
    clip-path: polygon(35% 100%, 65% 100%, 100% 0%, 0% 0%);
    animation: lb-amb-beam-pulse 3.2s ease-in-out infinite;
}

.lb-modal-wing--right .lb-amb-beam--up {
    left: auto;
    right: 18%;
    background: linear-gradient(
        0deg,
        rgba(255, 60, 140, 0.6) 0%,
        rgba(0, 240, 255, 0.28) 40%,
        transparent 72%
    );
}

.lb-amb-beam--diag {
    top: 8%;
    left: 0;
    width: 85%;
    height: 55%;
    background: linear-gradient(
        125deg,
        transparent 30%,
        rgba(255, 215, 0, 0.25) 48%,
        rgba(255, 255, 255, 0.35) 52%,
        rgba(255, 80, 40, 0.2) 58%,
        transparent 72%
    );
    animation: lb-amb-beam-sweep 5s ease-in-out infinite;
}

.lb-modal-wing--right .lb-amb-beam--diag {
    background: linear-gradient(
        235deg,
        transparent 30%,
        rgba(0, 255, 255, 0.22) 48%,
        rgba(255, 255, 255, 0.32) 52%,
        rgba(200, 80, 255, 0.22) 58%,
        transparent 72%
    );
}

.lb-amb-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(36px);
    animation: lb-amb-orb-pulse 2.8s ease-in-out infinite;
}

.lb-amb-orb--gold {
    top: 12%;
    left: 8%;
    width: 140px;
    height: 140px;
    background: rgba(255, 200, 60, 0.75);
}

.lb-amb-orb--crimson {
    bottom: 18%;
    left: 22%;
    width: 110px;
    height: 110px;
    background: rgba(255, 40, 60, 0.65);
    animation-delay: 0.9s;
}

.lb-amb-orb--cyan {
    top: 20%;
    right: 10%;
    width: 130px;
    height: 130px;
    background: rgba(0, 255, 255, 0.55);
}

.lb-amb-orb--magenta {
    bottom: 22%;
    right: 18%;
    width: 120px;
    height: 120px;
    background: rgba(255, 60, 180, 0.6);
    animation-delay: 1.1s;
}

.lb-amb-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 8px #fff,
        0 0 16px rgba(255, 220, 100, 0.9),
        0 0 24px rgba(255, 100, 40, 0.7);
    animation: lb-amb-spark-float 4s ease-in-out infinite;
}

.lb-modal-wing--left .lb-amb-spark:nth-child(7) {
    top: 22%;
    left: 35%;
    animation-delay: 0s;
}

.lb-modal-wing--left .lb-amb-spark:nth-child(8) {
    top: 48%;
    left: 55%;
    width: 6px;
    height: 6px;
    animation-delay: 1.2s;
}

.lb-modal-wing--left .lb-amb-spark:nth-child(9) {
    bottom: 28%;
    left: 28%;
    animation-delay: 2.4s;
}

.lb-modal-wing--right .lb-amb-spark:nth-child(7) {
    top: 30%;
    right: 32%;
    animation-delay: 0.5s;
    box-shadow:
        0 0 8px #fff,
        0 0 16px rgba(0, 255, 255, 0.85),
        0 0 22px rgba(200, 80, 255, 0.7);
}

.lb-modal-wing--right .lb-amb-spark:nth-child(8) {
    top: 58%;
    right: 48%;
    width: 5px;
    height: 5px;
    animation-delay: 1.8s;
}

.lb-modal-wing--right .lb-amb-spark:nth-child(9) {
    bottom: 20%;
    right: 26%;
    animation-delay: 0.3s;
}

.lb-amb-rune {
    position: absolute;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    color: rgba(255, 230, 140, 0.35);
    text-shadow:
        0 0 20px rgba(255, 180, 0, 0.8),
        0 0 40px rgba(255, 60, 20, 0.5);
    animation: lb-amb-rune-glow 3.5s ease-in-out infinite;
    user-select: none;
}

.lb-modal-wing--left .lb-amb-rune:not(.lb-amb-rune--alt) {
    top: 38%;
    left: 12%;
}

.lb-modal-wing--left .lb-amb-rune--alt {
    bottom: 32%;
    left: 48%;
    font-size: clamp(22px, 3vw, 36px);
    color: rgba(255, 200, 100, 0.4);
    animation-delay: 1.5s;
}

.lb-modal-wing--right .lb-amb-rune:not(.lb-amb-rune--alt) {
    top: 42%;
    right: 14%;
    color: rgba(180, 240, 255, 0.35);
    text-shadow:
        0 0 20px rgba(0, 255, 255, 0.75),
        0 0 36px rgba(200, 80, 255, 0.55);
}

.lb-modal-wing--right .lb-amb-rune--alt {
    bottom: 36%;
    right: 42%;
    font-size: clamp(22px, 3vw, 36px);
    animation-delay: 0.8s;
}

.lb-amb-floor-glow {
    position: absolute;
    left: 50%;
    bottom: -8%;
    width: min(120vw, 1400px);
    height: 42%;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse 70% 80% at 50% 100%,
        rgba(255, 140, 40, 0.35) 0%,
        rgba(255, 60, 120, 0.15) 40%,
        transparent 72%
    );
    mix-blend-mode: screen;
    animation: lb-amb-floor-pulse 4s ease-in-out infinite;
}

.lb-amb-center-veil {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 42% 75% at 50% 50%,
        rgba(4, 2, 14, 0.55) 0%,
        transparent 68%
    );
}

@keyframes lb-amb-sunburst-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes lb-amb-beam-pulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scaleY(0.92);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.05);
    }
}

@keyframes lb-amb-beam-sweep {
    0%,
    100% {
        opacity: 0.35;
        transform: translateX(-8%) skewX(-4deg);
    }
    50% {
        opacity: 0.85;
        transform: translateX(6%) skewX(2deg);
    }
}

@keyframes lb-amb-orb-pulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.88);
    }
    50% {
        opacity: 1;
        transform: scale(1.12);
    }
}

@keyframes lb-amb-spark-float {
    0%,
    100% {
        opacity: 0.2;
        transform: translateY(0) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-18px) scale(1.2);
    }
}

@keyframes lb-amb-rune-glow {
    0%,
    100% {
        opacity: 0.45;
        filter: brightness(0.9);
    }
    50% {
        opacity: 1;
        filter: brightness(1.35);
    }
}

@keyframes lb-amb-floor-pulse {
    0%,
    100% {
        opacity: 0.65;
    }
    50% {
        opacity: 1;
    }
}

#lb-showcase-modal.hidden {
    display: none;
}

body.lb-modal-open {
    overflow: hidden;
}

.lb-modal-panel {
    position: relative;
    z-index: 1;
    width: min(860px, calc(100vw - 24px));
    max-height: 96vh;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(232, 121, 249, 0.45);
    background:
        linear-gradient(165deg, rgba(18, 6, 36, 0.98) 0%, rgba(8, 4, 22, 0.99) 48%, rgba(6, 12, 32, 0.98) 100%);
    box-shadow:
        0 0 40px rgba(255, 77, 141, 0.35),
        0 0 80px rgba(168, 85, 247, 0.28),
        0 0 120px rgba(0, 255, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    isolation: isolate;
}

.lb-modal-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        120deg,
        #ff6ec7,
        #e040fb,
        #00ffff,
        #c084fc,
        #ff6ec7,
        #f472b6
    );
    background-size: 320% 100%;
    animation: lb-modal-holo-border 6s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

@keyframes lb-modal-holo-border {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 320% 50%;
    }
}

.lb-modal-top {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    text-align: center;
    padding: 16px 44px 10px 16px;
    border-bottom: 1px solid rgba(232, 121, 249, 0.22);
    background: linear-gradient(180deg, rgba(255, 77, 141, 0.1), rgba(124, 58, 237, 0.04));
}

.lb-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 120, 120, 0.45);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffaaaa;
    font-size: 22px;
    font-weight: 400;
    line-height: 30px;
    cursor: pointer;
}

.lb-modal-close:hover {
    background: rgba(80, 20, 20, 0.65);
    color: #fff;
    border-color: rgba(255, 150, 150, 0.6);
}

.lb-modal-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 8px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.25);
    overflow: hidden;
}

.lb-modal-avatar-emoji {
    font-size: 44px;
}

.lb-modal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-modal-top h3 {
    margin: 0 0 4px;
    font-size: 20px;
    color: #fff;
}

.lb-modal-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 800;
    color: #ff6ec7;
}

.lb-modal-metric,
.lb-modal-rank {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(180, 220, 255, 0.9);
}

.lb-modal-bottom {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 6px 12px 12px;
    box-sizing: border-box;
}

.lb-modal-showcase-head {
    flex-shrink: 0;
    margin-bottom: 6px;
    text-align: center;
}

.lb-modal-showcase-head h4 {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.14em;
    font-family: Orbitron, 'Noto Sans TC', sans-serif;
    font-weight: 800;
    color: #fff4ff;
    text-shadow:
        0 0 10px rgba(255, 110, 199, 0.9),
        0 0 18px rgba(192, 132, 252, 0.65);
}

.lb-modal-showcase-frame {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: calc(96vh - 188px);
    max-height: calc(96vh - 188px);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(232, 121, 249, 0.35);
    background:
        linear-gradient(
            135deg,
            rgba(255, 77, 141, 0.14) 0%,
            rgba(124, 58, 237, 0.2) 28%,
            rgba(0, 255, 255, 0.08) 52%,
            rgba(255, 110, 199, 0.12) 78%,
            rgba(192, 132, 252, 0.18) 100%
        ),
        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 77, 141, 0.22), transparent 62%),
        rgba(4, 2, 14, 0.92);
    box-shadow:
        inset 0 0 40px rgba(168, 85, 247, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 28px rgba(255, 77, 141, 0.25),
        0 0 48px rgba(124, 58, 237, 0.2);
    overflow: hidden;
}

.lb-modal-showcase-frame::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 42%,
        rgba(0, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.1) 58%,
        transparent 100%
    );
    background-size: 220% 100%;
    animation: lb-showcase-holo-sheen 4.5s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.65;
}

@keyframes lb-showcase-holo-sheen {
    0%,
    100% {
        background-position: 120% 50%;
        opacity: 0.35;
    }
    50% {
        background-position: -20% 50%;
        opacity: 0.75;
    }
}

#lb-modal-grid {
    --lb-gap: 10px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: var(--lb-gap);
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    align-items: stretch;
    justify-items: stretch;
}

.lb-modal-cell {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    border-radius: 10px;
    border: 1px solid rgba(232, 121, 249, 0.5);
    background: #06040c;
    overflow: hidden;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.65),
        0 0 16px rgba(255, 77, 141, 0.22),
        0 0 24px rgba(168, 85, 247, 0.18);
}

.lb-modal-cell[data-rarity='SSR'],
.lb-showcase-tile[data-rarity='SSR'] {
    border-color: rgba(255, 140, 60, 0.58);
    box-shadow:
        inset 0 0 16px rgba(0, 0, 0, 0.6),
        0 0 18px rgba(255, 120, 40, 0.38),
        0 0 28px rgba(255, 80, 20, 0.22);
}

.lb-modal-cell[data-rarity='LR'],
.lb-showcase-tile[data-rarity='LR'] {
    border-color: rgba(255, 179, 71, 0.58);
    box-shadow:
        inset 0 0 16px rgba(0, 0, 0, 0.6),
        0 0 18px rgba(255, 179, 71, 0.35),
        0 0 28px rgba(255, 140, 40, 0.22);
}

.lb-modal-cell[data-rarity='UR'],
.lb-showcase-tile[data-rarity='UR'] {
    border-color: rgba(255, 215, 0, 0.55);
    box-shadow:
        inset 0 0 16px rgba(0, 0, 0, 0.6),
        0 0 18px rgba(255, 215, 0, 0.35),
        0 0 28px rgba(255, 77, 141, 0.2);
}

.lb-modal-cell[data-rarity='MR'],
.lb-showcase-tile[data-rarity='MR'] {
    border-color: rgba(255, 110, 199, 0.6);
    box-shadow:
        inset 0 0 16px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 77, 141, 0.4),
        0 0 32px rgba(224, 64, 251, 0.28);
}

.lb-modal-cell[data-rarity='SEC'],
.lb-showcase-tile[data-rarity='SEC'] {
    border-color: rgba(232, 121, 249, 0.65);
    box-shadow:
        inset 0 0 16px rgba(0, 0, 0, 0.6),
        0 0 22px rgba(232, 121, 249, 0.45),
        0 0 36px rgba(168, 85, 247, 0.3);
}

.lb-showcase-tile {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: inherit;
    background: #06040c;
    cursor: zoom-in;
    overflow: hidden;
    position: relative;
}

.lb-showcase-tile__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: #06040c;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.lb-showcase-tile:not(.lb-showcase-tile--interactive):hover .lb-showcase-tile__img,
.lb-showcase-tile:not(.lb-showcase-tile--interactive):focus-visible .lb-showcase-tile__img {
    transform: scale(1.03);
    filter: brightness(1.08);
}

.lb-showcase-tile--interactive:hover .card-showcase-grid-tilt,
.lb-showcase-tile--interactive:focus-visible .card-showcase-grid-tilt {
    filter: brightness(1.06);
}

.lb-showcase-tile:focus-visible {
    outline: 2px solid rgba(255, 110, 199, 0.85);
    outline-offset: 2px;
}

.lb-modal-card-mount {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

/* 排行榜展示櫃：僅立繪，與圖鑑格一致 */
.lb-modal-card-mount .card-3d-wrap.card-grid-tile,
.lb-modal-card-mount .card-3d-wrap.card-bag-fill {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    max-height: 100% !important;
    perspective: none;
    transform: none !important;
    filter: none;
    pointer-events: auto;
    cursor: zoom-in;
}

.lb-modal-card-mount .card-grid-tile .card-3d,
.lb-modal-card-mount .card-bag-fill .card-3d {
    width: 100%;
    height: 100%;
    transform: none !important;
}

.lb-modal-card-mount .card-grid-tile .card-face,
.lb-modal-card-mount .card-bag-fill.has-art-only .card-face,
.lb-modal-card-mount .card-bag-fill.has-art .card-face {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
    background: #06040c !important;
}

.lb-modal-card-mount .card-grid-tile .card-face::after,
.lb-modal-card-mount .card-bag-fill.has-art-only .card-face::after,
.lb-modal-card-mount .card-bag-fill.has-art .card-face::after {
    display: none !important;
}

.lb-modal-card-mount .card-grid-tile .card-art,
.lb-modal-card-mount .card-bag-fill.has-art-only .card-art {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-modal-card-mount .card-art-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    filter: none !important;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.lb-modal-card-mount .card-3d-wrap.has-art-only .card-unified-chrome,
.lb-modal-card-mount .card-3d-wrap.has-art-only .card-footer-ui,
.lb-modal-card-mount .card-3d-wrap.has-art-only .card-gold-frame,
.lb-modal-card-mount .card-3d-wrap.has-art-only .card-tags,
.lb-modal-card-mount .card-3d-wrap.has-art-only .card-bound-lock,
.lb-modal-card-mount .card-3d-wrap.has-art-only .rarity-pill,
.lb-modal-card-mount .card-3d-wrap.has-art-only .rarity-emblem {
    display: none !important;
}

.lb-modal-cell--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-modal-empty {
    color: rgba(255, 255, 255, 0.32);
    font-size: clamp(11px, 2.4vw, 14px);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: center;
    line-height: 1.45;
    padding: 10px 12px;
}

@media (max-width: 720px) {
    .leaderboard-view {
        text-align: center;
    }

    .leaderboard-view > h2,
    .leaderboard-view .lb-intro {
        text-align: center;
        margin-inline: auto;
    }

    #leaderboard-panel {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
        padding: 16px 12px 18px;
        box-sizing: border-box;
    }

    .lb-tabs {
        justify-content: center;
    }

    .lb-tab-desc {
        text-align: center;
    }

    .lb-list {
        align-items: center;
    }

    .lb-row,
    .lb-row--top1,
    .lb-row--top2,
    .lb-row--top3 {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: min(420px, 100%);
        margin-inline: auto;
        padding: 16px 14px;
        gap: 10px;
        text-align: center;
        grid-template-columns: unset;
        grid-template-rows: unset;
    }

    .lb-row:hover,
    .lb-row--top1:hover,
    .lb-row--top2:hover,
    .lb-row--top3:hover {
        transform: translateY(-2px);
    }

    .lb-podium-flair {
        position: static;
        align-self: center;
        margin: 0 auto 4px;
    }

    .lb-rank,
    .lb-avatar-emoji,
    .lb-avatar-img {
        align-self: center;
    }

    .lb-player {
        width: 100%;
        text-align: center;
    }

    .lb-name,
    .lb-title {
        text-align: center;
    }

    .lb-you-tag {
        margin-left: 6px;
    }

    .lb-stat-grid {
        width: 100%;
        max-width: 360px;
        margin: 12px auto 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lb-metric-wrap {
        width: 100%;
        max-width: 320px;
        grid-column: unset;
        margin-top: 4px;
    }

    .lb-stat-item--rank {
        text-align: center;
        align-items: center;
    }

    .lb-stat-meta {
        align-items: center;
    }

    .lb-stat-val {
        font-size: 14px;
    }

    .lb-stat-item--rank .lb-stat-val {
        font-size: 16px;
    }

    .lb-stat-meta span {
        font-size: 13px;
    }

    .lb-pager {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 560px) {
    .lb-tabs--scroll .lb-tab {
        min-width: calc(50% - 6px);
        font-size: 13px;
    }

    #lb-modal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(0, 1fr));
    }

    .lb-modal-panel {
        width: min(100vw - 12px, 560px);
        max-height: 96vh;
    }

    .lb-modal-showcase-frame {
        height: calc(96vh - 176px);
        max-height: calc(96vh - 176px);
        padding: 5px;
    }

    .lb-modal-top {
        padding: 16px 44px 10px 14px;
    }
}

@media (max-width: 720px) {
    .lb-modal-wing {
        width: clamp(72px, 22vw, 140px);
        opacity: 0.72;
    }

    .lb-amb-rune,
    .lb-amb-rune--alt {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb-amb-sunburst,
    .lb-amb-beam,
    .lb-amb-orb,
    .lb-amb-spark,
    .lb-amb-rune,
    .lb-amb-floor-glow {
        animation: none !important;
    }

    .lb-modal-panel::before,
    .lb-modal-showcase-frame::before,
    .lb-row--top1,
    .lb-row--top2,
    .lb-row--top3,
    .lb-row--top1::before,
    .lb-row--top2::before,
    .lb-row--top3::before,
    .lb-rank-medal,
    .lb-avatar--podium-1 .lb-avatar-img,
    .lb-avatar--podium-1 .lb-avatar-emoji,
    .lb-podium-flair {
        animation: none;
    }
}
