/* ============================================================
   Global Leaderboard Page
   palette: #00d4ff → #5b8bff → #a06bff → #c95cff
   ============================================================ */

.page-leaderboard {
    background:
        radial-gradient(ellipse 1100px 700px at 12% 0%, rgba(0, 130, 255, 0.13) 0%, transparent 60%),
        radial-gradient(ellipse 900px 600px at 88% 18%, rgba(160, 107, 255, 0.12) 0%, transparent 60%),
        #06070d;
    color: #fff;
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
}

/* ===== HERO ===== */
.lb-hero {
    position: relative;
    margin-top: var(--fixed-header-h, 96px);
    padding: 72px 0 60px;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid rgba(160, 107, 255, 0.16);
}
.lb-hero-bg {
    position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(ellipse 70% 100% at 0% 0%, rgba(0, 198, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 80% 100% at 100% 100%, rgba(201, 92, 255, 0.16) 0%, transparent 60%),
        linear-gradient(135deg, #050714 0%, #0a0b18 50%, #0d0a1a 100%);
}
.lb-hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: repeating-linear-gradient(135deg, rgba(91, 139, 255, 0.04) 0 2px, transparent 2px 14px);
    opacity: 0.55;
}
.lb-hero-orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lb-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: lb-orb-drift 18s ease-in-out infinite alternate;
}
.lb-hero-orb--cyan {
    width: 360px; height: 360px;
    top: -110px; left: -70px;
    background: radial-gradient(circle, #00d4ff 0%, transparent 70%);
}
.lb-hero-orb--violet {
    width: 440px; height: 440px;
    bottom: -150px; right: -90px;
    background: radial-gradient(circle, #c95cff 0%, transparent 70%);
    animation-delay: -9s;
}
@keyframes lb-orb-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(36px, 28px) scale(1.06); }
}

.lb-hero-content { max-width: 900px; }
.lb-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #c5b8ff;
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(139, 92, 255, 0.45);
    background: rgba(91, 139, 255, 0.12);
    border-radius: 999px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(123, 92, 255, 0.18);
}
.lb-hero-eyebrow i {
    color: #ffd24c;
    filter: drop-shadow(0 0 6px rgba(255, 210, 76, 0.6));
}
.lb-hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: #fff;
}
.lb-hero-title-grad {
    background: linear-gradient(135deg, #5fd9ff 0%, #8b5cff 60%, #c95cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 30px rgba(160, 107, 255, 0.4));
}
.lb-hero-sub {
    max-width: 620px;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ===== STATS STRIP ===== */
.lb-stats-strip {
    position: relative;
    z-index: 3;
    margin-top: -32px;
    margin-bottom: 30px;
}
.lb-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 991px) {
    .lb-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .lb-stats-grid { grid-template-columns: 1fr; }
}

.lb-stat-card {
    position: relative;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 84px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.lb-stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 0%, transparent 55%, var(--stat-c, #5b8bff) 100%);
    -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;
    opacity: 0.55;
    pointer-events: none;
}
.lb-stat-card::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -30%;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--stat-c, #5b8bff) 0%, transparent 70%);
    opacity: 0.14;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.lb-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 14px 30px rgba(0, 0, 0, 0.36),
        0 0 22px color-mix(in srgb, var(--stat-c, #5b8bff) 22%, transparent);
}
.lb-stat-card:hover::after { opacity: 0.28; transform: scale(1.1); }

.lb-stat-card--cyan   { --stat-c: #00d4ff; }
.lb-stat-card--blue   { --stat-c: #5b8bff; }
.lb-stat-card--purple { --stat-c: #a06bff; }
.lb-stat-card--violet { --stat-c: #c95cff; }

.lb-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--stat-c, #5b8bff) 14%, rgba(255, 255, 255, 0.02));
    border: 1px solid color-mix(in srgb, var(--stat-c, #5b8bff) 36%, transparent);
    color: var(--stat-c, #5b8bff);
    font-size: 1.15rem;
    box-shadow: 0 0 16px color-mix(in srgb, var(--stat-c, #5b8bff) 30%, transparent);
}
.lb-stat-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lb-stat-value {
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 16px color-mix(in srgb, var(--stat-c, #5b8bff) 50%, transparent);
    word-break: break-all;
    margin-bottom: 2px;
}
.lb-stat-value--text {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-stat-label {
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* ===== MAIN ===== */
.lb-main { padding-bottom: 80px; }

/* ===== FILTER PANEL ===== */
.lb-filter-panel {
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.008) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.lb-filter-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.lb-filter-panel-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    text-transform: uppercase;
}
.lb-filter-panel-title i {
    color: #8b5cff;
    filter: drop-shadow(0 0 6px rgba(139, 92, 255, 0.5));
}
.lb-filter-panel-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.lb-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 38px;
}

/* 칩 스켈레톤 */
.lb-chip-skeleton-wrap { display: contents; }
.lb-chip-skeleton {
    display: inline-block;
    height: 30px;
    width: 90px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(91, 139, 255, 0.12) 50%, rgba(255, 255, 255, 0.04) 100%);
    background-size: 200% 100%;
    animation: lb-skeleton-shimmer 1.4s ease-in-out infinite;
}
.lb-chip-skeleton:nth-child(2) { width: 75px; }
.lb-chip-skeleton:nth-child(3) { width: 105px; }
.lb-chip-skeleton:nth-child(4) { width: 80px; }
.lb-chip-skeleton:nth-child(5) { width: 95px; }
.lb-chip-skeleton:nth-child(6) { width: 85px; }
.lb-chip-skeleton:nth-child(7) { width: 100px; }
.lb-chip-skeleton:nth-child(8) { width: 78px; }

/* 실제 stage 칩 */
.lb-stage-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.lb-stage-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-color: rgba(139, 92, 255, 0.35);
    transform: translateY(-1px);
}
.lb-stage-chip.is-active {
    background: linear-gradient(135deg, rgba(31, 155, 255, 0.18), rgba(139, 92, 255, 0.22));
    border-color: rgba(139, 92, 255, 0.6);
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(139, 92, 255, 0.5) inset,
        0 4px 16px rgba(123, 92, 255, 0.32);
}

/* ===== 테이블 패널 ===== */
.lb-table-panel {
    padding: 22px 22px 24px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.008) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 32px rgba(0, 0, 0, 0.28);
    position: relative;
    overflow: hidden;
}
.lb-table-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    /* 블루 → 퍼플 그라데이션 (퍼플 단색 톤 완화) */
    background: linear-gradient(135deg, rgba(31, 155, 255, 0.5) 0%, transparent 50%, rgba(160, 107, 255, 0.6) 100%);
    -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;
    opacity: 0.55;
    pointer-events: none;
}
.lb-table-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    /* 블루 톤도 섞은 divider */
    border-bottom: 1px solid;
    border-image: linear-gradient(90deg, rgba(91, 139, 255, 0.32) 0%, rgba(160, 107, 255, 0.18) 100%) 1;
}
.lb-table-panel-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    text-transform: uppercase;
}
.lb-table-panel-title i {
    color: #5b8bff;
    filter: drop-shadow(0 0 6px rgba(91, 139, 255, 0.6));
}
.lb-table-panel-meta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
}
.lb-click-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.76rem;
}
.lb-click-hint i { color: #5b8bff; }

/* ===== TABLE ===== */
.lb-table-wrap { overflow-x: auto; }
.lb-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}
.lb-table thead th {
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    padding: 12px 12px;
    /* 블루 → 퍼플 그라데이션 underline */
    border-bottom: 1px solid;
    border-image: linear-gradient(90deg, rgba(91, 139, 255, 0.25) 0%, rgba(160, 107, 255, 0.18) 100%) 1;
    background: transparent;
    white-space: nowrap;
}
.lb-table tbody td {
    padding: 12px 12px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.lb-table tbody tr {
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}
.lb-table tbody tr:hover {
    /* 블루+퍼플 혼합 hover 톤 */
    background: linear-gradient(90deg, rgba(31, 155, 255, 0.06), rgba(160, 107, 255, 0.06));
}
.lb-table tbody tr:last-child td { border-bottom: none; }

/* 랭크 셀 */
.lb-rank-cell { text-align: center; }
.lb-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    border-radius: 8px;
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-variant-numeric: tabular-nums;
}
.lb-rank-1 { color: #ffd24c; background: rgba(255, 210, 76, 0.1); border-color: rgba(255, 210, 76, 0.45); text-shadow: 0 0 12px rgba(255, 210, 76, 0.5); }
.lb-rank-2 { color: #dcdcdc; background: rgba(220, 220, 220, 0.08); border-color: rgba(220, 220, 220, 0.35); text-shadow: 0 0 10px rgba(220, 220, 220, 0.4); }
.lb-rank-3 { color: #e09558; background: rgba(224, 149, 88, 0.1); border-color: rgba(224, 149, 88, 0.4); text-shadow: 0 0 10px rgba(224, 149, 88, 0.45); }

/* 1/2/3등 행 배경 */
.lb-table tbody tr.lb-row-rank-1 { background: linear-gradient(90deg, rgba(255, 210, 76, 0.08), transparent 60%); }
.lb-table tbody tr.lb-row-rank-2 { background: linear-gradient(90deg, rgba(220, 220, 220, 0.05), transparent 60%); }
.lb-table tbody tr.lb-row-rank-3 { background: linear-gradient(90deg, rgba(224, 149, 88, 0.05), transparent 60%); }
.lb-table tbody tr.lb-row-rank-1:hover { background: linear-gradient(90deg, rgba(255, 210, 76, 0.14), color-mix(in srgb, #a06bff 6%, transparent) 60%); }
.lb-table tbody tr.lb-row-rank-2:hover { background: linear-gradient(90deg, rgba(220, 220, 220, 0.1), color-mix(in srgb, #a06bff 6%, transparent) 60%); }
.lb-table tbody tr.lb-row-rank-3:hover { background: linear-gradient(90deg, rgba(224, 149, 88, 0.1), color-mix(in srgb, #a06bff 6%, transparent) 60%); }

.lb-driver {
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-weight: 800;
    font-size: 0.96rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.005em;
}
.lb-driver-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lb-driver-link:hover { color: #c5a8ff; }
.lb-driver-link .bi-arrow-up-right {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.32);
    transition: transform 0.18s ease;
}
.lb-driver-link:hover .bi-arrow-up-right {
    color: #a06bff;
    transform: translate(2px, -2px);
}

.lb-vehicle {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-input-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}
.lb-input-badge--wheel    { color: #00d4ff; border-color: rgba(0, 212, 255, 0.34); background: rgba(0, 212, 255, 0.08); box-shadow: 0 0 10px rgba(0, 212, 255, 0.22); }
.lb-input-badge--pad      { color: #5b8bff; border-color: rgba(91, 139, 255, 0.34); background: rgba(91, 139, 255, 0.08); box-shadow: 0 0 10px rgba(91, 139, 255, 0.22); }
.lb-input-badge--keyboard { color: #a06bff; border-color: rgba(160, 107, 255, 0.34); background: rgba(160, 107, 255, 0.08); box-shadow: 0 0 10px rgba(160, 107, 255, 0.22); }

.lb-tyre-badge {
    display: inline-block;
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 3px 9px;
    border-radius: 5px;
    letter-spacing: 0.04em;
}

.lb-time {
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    /* 블루 → 퍼플 그라데이션 (이전엔 white→purple→violet으로 보라가 강했음) */
    background: linear-gradient(135deg, #5fd9ff 0%, #8b5cff 60%, #c5a8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    filter: drop-shadow(0 0 8px rgba(91, 139, 255, 0.55));
    white-space: nowrap;
}
.lb-date {
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ===== SKELETON ===== */
.lb-skeleton-row td { background: transparent !important; }
.lb-skeleton {
    display: inline-block;
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg,
        var(--skel-track, rgba(255, 255, 255, 0.045)) 0%,
        var(--skel-track, rgba(255, 255, 255, 0.045)) 35%,
        var(--skel-halo, rgba(0, 198, 255, 0.10)) 44%,
        var(--skel-sheen, rgba(0, 198, 255, 0.34)) 50%,
        var(--skel-halo, rgba(0, 198, 255, 0.10)) 56%,
        var(--skel-track, rgba(255, 255, 255, 0.045)) 65%,
        var(--skel-track, rgba(255, 255, 255, 0.045)) 100%);
    background-size: 220% 100%;
    animation: lb-skeleton-shimmer 1.4s ease-in-out infinite;
}
.skeleton-rank { width: 30px; height: 30px; border-radius: 8px; }
.skeleton-driver { width: 70%; max-width: 160px; }
.skeleton-car { width: 80%; max-width: 200px; }
.skeleton-tyre { width: 48px; height: 22px; border-radius: 5px; }
.skeleton-time { width: 90px; }
.skeleton-date { width: 100px; }

@keyframes lb-skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.lb-empty {
    text-align: center;
    padding: 64px 16px;
    color: rgba(255, 255, 255, 0.4);
}
.lb-empty i {
    display: block;
    font-size: 2.4rem;
    margin-bottom: 12px;
    color: rgba(160, 107, 255, 0.4);
}
.lb-empty-text { font-size: 0.95rem; }
.lb-empty-sub {
    margin-top: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}
.lb-empty--prompt {
    padding: 80px 16px;
}
.lb-empty--prompt i {
    font-size: 3rem;
    color: rgba(160, 107, 255, 0.55);
    filter: drop-shadow(0 0 18px rgba(160, 107, 255, 0.45));
    animation: lb-empty-bounce 2.2s ease-in-out infinite;
}
.lb-empty--prompt .lb-empty-text {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    font-size: 1.05rem;
}
@keyframes lb-empty-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ===== MODAL ===== */
.lb-modal .modal-dialog { max-width: 560px; }
.lb-modal-content {
    position: relative;
    padding: 28px 28px 24px;
    border-radius: 20px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(160, 107, 255, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, rgba(20, 18, 38, 0.95) 0%, rgba(10, 11, 24, 0.98) 100%);
    border: 1px solid rgba(139, 92, 255, 0.32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(123, 92, 255, 0.18);
    color: #fff;
    overflow: hidden;
}
.lb-modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(31, 155, 255, 0.5), transparent 50%, rgba(201, 92, 255, 0.5));
    -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;
}
.lb-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    z-index: 2;
    cursor: pointer;
}
.lb-modal-close:hover {
    background: rgba(255, 100, 100, 0.12);
    border-color: rgba(255, 100, 100, 0.35);
    color: #ff7676;
}

.lb-modal-header {
    text-align: center;
    margin-bottom: 22px;
}
.lb-modal-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f9bff 0%, #8b5cff 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(123, 92, 255, 0.42);
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}
.lb-modal-title {
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    word-break: break-all;
}
.lb-modal-car {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.62);
    word-break: break-all;
}

.lb-modal-time-block {
    text-align: center;
    padding: 18px 18px 20px;
    border-radius: 14px;
    background: rgba(160, 107, 255, 0.06);
    border: 1px solid rgba(160, 107, 255, 0.2);
    margin-bottom: 20px;
}
.lb-modal-time-label {
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.lb-modal-time-value {
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #c5a8ff 50%, #d77dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
    filter: drop-shadow(0 0 16px rgba(160, 107, 255, 0.6));
}

.lb-modal-sectors-block { margin-bottom: 22px; }
.lb-modal-section-label {
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.lb-modal-sectors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.lb-sector-box {
    padding: 11px 12px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}
.lb-sector-label {
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 4px;
}
.lb-sector-time {
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 1.04rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.lb-sector-time.is-best {
    background: linear-gradient(135deg, #c95cff 0%, #ff5cb8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(201, 92, 255, 0.6));
}

.lb-modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 540px) {
    .lb-modal-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lb-modal-sectors { grid-template-columns: 1fr; }
    .lb-modal-time-value { font-size: 2rem; }
}
.lb-modal-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 6px;
    text-align: center;
}
.lb-modal-meta i {
    font-size: 1rem;
    color: rgba(139, 92, 255, 0.65);
    margin-bottom: 2px;
    filter: drop-shadow(0 0 4px rgba(139, 92, 255, 0.4));
}
.lb-modal-meta-label {
    font-family: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}
.lb-modal-meta-val {
    font-size: 0.84rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* ===== 모바일 ===== */
@media (max-width: 768px) {
    .lb-hero { padding: 56px 0 44px; }
    .lb-stats-strip { margin-top: -20px; }
    .lb-stat-card { padding: 13px 14px; min-height: 72px; }
    .lb-stat-icon { width: 38px; height: 38px; font-size: 1rem; }
    .lb-stat-value { font-size: 1.25rem; }
    .lb-table thead th, .lb-table tbody td { padding: 10px 8px; }
}
