/* ============================================================
   LEADERBOARD.CSS — Page classement EZZCasino (Luvreizel theme)
   Scoped under body.theme-luv pour rester cohérent avec calls.css
   ============================================================ */

body.theme-luv {
    --lb-gold:   #ffce4d;
    --lb-silver: #d8dde6;
    --lb-bronze: #d98d64;
}

/* Hero ─────────────────────────────────────────────────────*/
body.theme-luv .lb-hero {
    position: relative;
    isolation: isolate;
    padding: 70px 20px 38px;
    text-align: center;
    overflow: hidden;
}
body.theme-luv .lb-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(255, 138, 31, 0.25) 0%, rgba(255, 138, 31, 0.08) 30%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
body.theme-luv .lb-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--luv-line-strong), transparent);
    z-index: -1;
}
body.theme-luv .lb-hero-content {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: callsFadeUp 0.5s ease both;
}

body.theme-luv .lb-title {
    font-family: var(--luv-font-display);
    font-size: clamp(40px, 8vw, 68px);
    line-height: 0.95;
    letter-spacing: 0.5px;
    font-weight: 400;
    color: var(--luv-text);
    margin: 0 0 16px;
}
body.theme-luv .lb-title .text-accent {
    color: var(--luv-orange);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: var(--luv-orange);
}

body.theme-luv .lb-subtitle {
    font-family: var(--luv-font-body);
    font-size: 17px;
    color: var(--luv-text-dim);
    max-width: 620px;
    margin: 0 auto 30px;
    line-height: 1.6;
}
body.theme-luv .lb-subtitle strong { color: var(--luv-text); font-weight: 600; }

body.theme-luv .lb-code {
    display: inline-block;
    padding: 2px 12px;
    margin: 0 2px;
    background: rgba(255, 138, 31, 0.12);
    border: 1px solid rgba(255, 138, 31, 0.45);
    border-radius: var(--luv-r-sm);
    color: var(--luv-orange);
    font-family: var(--luv-font-mono);
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Meta cards ───────────────────────────────────────────────*/
body.theme-luv .lb-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 720px;
    margin: 0 auto 28px;
}
body.theme-luv .lb-meta-card {
    background: var(--luv-card);
    border: 1px solid var(--luv-line);
    border-radius: var(--luv-r-md);
    padding: 18px 16px;
    text-align: center;
    transition: var(--transition);
}
body.theme-luv .lb-meta-card:hover {
    border-color: var(--luv-line-strong);
}
body.theme-luv .lb-meta-label {
    font-family: var(--luv-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--luv-text-mute);
    margin-bottom: 6px;
}
body.theme-luv .lb-meta-value {
    font-family: var(--luv-font-body);
    font-size: 22px;
    font-weight: 700;
    color: var(--luv-text);
    letter-spacing: -0.01em;
}
body.theme-luv .lb-countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-variant-numeric: tabular-nums;
    font-family: var(--luv-font-mono);
}
body.theme-luv .lb-countdown span { min-width: 28px; display: inline-block; }
body.theme-luv .lb-countdown small {
    font-size: 11px;
    color: var(--luv-text-mute);
    font-weight: 600;
    margin-right: 6px;
}
body.theme-luv .lb-countdown small:last-of-type { margin-right: 0; }

body.theme-luv .lb-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--luv-orange);
    color: #1a0a00;
    font-family: var(--luv-font-body);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: var(--luv-r-md);
    transition: background-color .15s;
}
body.theme-luv .lb-cta:hover {
    color: #1a0a00;
    background: var(--luv-orange-2);
}

/* Section ──────────────────────────────────────────────────*/
body.theme-luv .lb-section { padding: 20px 20px 80px; position: relative; z-index: 1; }
body.theme-luv .lb-container { max-width: 1080px; margin: 0 auto; }

/* Loading / empty ──────────────────────────────────────────*/
body.theme-luv .lb-loading,
body.theme-luv .lb-empty {
    padding: 80px 20px;
    text-align: center;
    color: var(--luv-text-mute);
    font-family: var(--luv-font-body);
}
body.theme-luv .lb-empty svg { color: var(--luv-text-mute); margin-bottom: 16px; opacity: 0.5; }
body.theme-luv .lb-empty h3 {
    color: var(--luv-text);
    font-family: var(--luv-font-heading);
    font-weight: 400;
    font-size: 26px;
    margin: 0 0 8px;
    letter-spacing: 0.3px;
}
body.theme-luv .lb-empty p { margin: 0; font-size: 14px; }
body.theme-luv .lb-empty strong { color: var(--luv-orange); }
body.theme-luv .lb-spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--luv-line);
    border-top-color: var(--luv-orange);
    border-radius: 50%;
    margin: 0 auto 14px;
    animation: callsSpin 0.9s linear infinite;
}

/* Podium ───────────────────────────────────────────────────*/
body.theme-luv .lb-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 16px;
    align-items: end;
    margin-bottom: 48px;
}
body.theme-luv .lb-podium-card {
    position: relative;
    background: var(--luv-card);
    border: 1px solid var(--luv-line);
    border-radius: var(--luv-r-lg);
    padding: 28px 18px 24px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    transition: var(--transition);
}
body.theme-luv .lb-podium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--lb-accent-tint, transparent) 0%, transparent 60%);
    z-index: -1;
    opacity: 0.9;
}
body.theme-luv .lb-podium-card:hover { border-color: var(--luv-line-strong); }

body.theme-luv .lb-podium-card[data-rank="1"] {
    --lb-accent: var(--lb-gold);
    --lb-accent-tint: rgba(255, 206, 77, 0.16);
    border-color: rgba(255, 206, 77, 0.4);
    padding-top: 36px;
    padding-bottom: 32px;
    box-shadow: 0 12px 40px rgba(255, 206, 77, 0.14);
}
body.theme-luv .lb-podium-card[data-rank="2"] {
    --lb-accent: var(--lb-silver);
    --lb-accent-tint: rgba(216, 221, 230, 0.10);
    border-color: rgba(216, 221, 230, 0.28);
}
body.theme-luv .lb-podium-card[data-rank="3"] {
    --lb-accent: var(--lb-bronze);
    --lb-accent-tint: rgba(217, 141, 100, 0.14);
    border-color: rgba(217, 141, 100, 0.32);
}

body.theme-luv .lb-podium-medal {
    width: 54px; height: 54px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lb-accent), color-mix(in srgb, var(--lb-accent) 70%, #000));
    color: #0a1428;
    font-family: var(--luv-font-heading);
    font-weight: 400;
    font-size: 22px;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--lb-accent) 35%, transparent);
}
body.theme-luv .lb-podium-card[data-rank="1"] .lb-podium-medal { width: 64px; height: 64px; font-size: 28px; }

body.theme-luv .lb-podium-crown {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--lb-gold);
    filter: drop-shadow(0 4px 8px rgba(255, 206, 77, 0.55));
}

body.theme-luv .lb-podium-user {
    font-family: var(--luv-font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--luv-text);
    margin: 0 0 4px;
    word-break: break-all;
}
body.theme-luv .lb-podium-card[data-rank="1"] .lb-podium-user { font-size: 18px; }
body.theme-luv .lb-podium-sub {
    font-family: var(--luv-font-mono);
    font-size: 11px;
    color: var(--luv-text-mute);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 16px;
}
body.theme-luv .lb-podium-wager {
    font-family: var(--luv-font-mono);
    font-size: 11px;
    color: var(--luv-text-mute);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
body.theme-luv .lb-podium-wager-val {
    font-family: var(--luv-font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--luv-text);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
body.theme-luv .lb-podium-card[data-rank="1"] .lb-podium-wager-val { font-size: 26px; }
body.theme-luv .lb-podium-prize {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 14px;
    background: rgba(255, 138, 31, 0.12);
    border: 1px solid rgba(255, 138, 31, 0.45);
    border-radius: 999px;
    color: var(--luv-orange);
    font-family: var(--luv-font-mono);
    font-weight: 700;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

/* Table ────────────────────────────────────────────────────*/
body.theme-luv .lb-table-wrap {
    background: var(--luv-card);
    border: 1px solid var(--luv-line);
    border-radius: var(--luv-r-lg);
    overflow: hidden;
    margin-bottom: 32px;
}
body.theme-luv .lb-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--luv-line);
}
body.theme-luv .lb-table-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--luv-font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--luv-text-mute);
    margin: 0;
}
body.theme-luv .lb-table-title svg { color: var(--luv-orange); }
body.theme-luv .lb-updated {
    font-family: var(--luv-font-mono);
    font-size: 11px;
    color: var(--luv-text-mute);
    font-variant-numeric: tabular-nums;
}
body.theme-luv .lb-table-scroll { overflow-x: auto; }
body.theme-luv .lb-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--luv-font-body);
    font-size: 14px;
}
body.theme-luv .lb-table thead th {
    text-align: left;
    font-family: var(--luv-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--luv-text-mute);
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid var(--luv-line);
}
body.theme-luv .lb-th-rank { width: 70px; }
body.theme-luv .lb-th-wager,
body.theme-luv .lb-th-prize { text-align: right !important; }
body.theme-luv .lb-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--luv-line);
    color: var(--luv-text-dim);
    vertical-align: middle;
}
body.theme-luv .lb-table tbody tr:last-child td { border-bottom: none; }
body.theme-luv .lb-table tbody tr { transition: background 0.15s ease; }
body.theme-luv .lb-table tbody tr:hover { background: rgba(255, 138, 31, 0.05); }

body.theme-luv .lb-row-rank {
    font-family: var(--luv-font-mono);
    font-weight: 700;
    color: var(--luv-text);
    font-variant-numeric: tabular-nums;
}
body.theme-luv .lb-row-user {
    font-weight: 600;
    color: var(--luv-text);
    word-break: break-all;
}
body.theme-luv .lb-row-wager,
body.theme-luv .lb-row-prize {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-family: var(--luv-font-mono);
}
body.theme-luv .lb-row-wager { color: var(--luv-text); }
body.theme-luv .lb-row-prize { color: var(--luv-orange); font-weight: 700; }
body.theme-luv .lb-row-prize.lb-row-prize-none { color: var(--luv-text-mute); font-weight: 500; }

/* Info block ───────────────────────────────────────────────*/
body.theme-luv .lb-info {
    background: var(--luv-card);
    border: 1px solid var(--luv-line);
    border-radius: var(--luv-r-lg);
    padding: 24px 26px;
}
body.theme-luv .lb-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--luv-font-heading);
    font-size: 22px;
    font-weight: 400;
    color: var(--luv-text);
    margin: 0 0 16px;
    letter-spacing: 0.3px;
}
body.theme-luv .lb-info-title svg { color: var(--luv-orange); }
body.theme-luv .lb-info-list {
    margin: 0 0 4px;
    padding-left: 20px;
    color: var(--luv-text-dim);
    font-size: 14px;
    line-height: 1.7;
}
body.theme-luv .lb-info-list li { margin-bottom: 4px; }
body.theme-luv .lb-info-list a { color: var(--luv-orange); text-decoration: none; font-weight: 600; }
body.theme-luv .lb-info-list a:hover { text-decoration: underline; }
body.theme-luv .lb-info-list strong { color: var(--luv-orange); }

/* Responsive ───────────────────────────────────────────────*/
@media (max-width: 720px) {
    body.theme-luv .lb-hero { padding: 48px 16px 32px; }
    body.theme-luv .lb-title { font-size: clamp(28px, 9vw, 44px); }
    body.theme-luv .lb-subtitle { font-size: 15px; }
    body.theme-luv .lb-hero-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    body.theme-luv .lb-meta-value { font-size: 18px; }
    body.theme-luv .lb-podium {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    body.theme-luv .lb-podium-card[data-rank="1"] { order: -1; }
    body.theme-luv .lb-table thead th,
    body.theme-luv .lb-table tbody td { padding: 12px 14px; }
    body.theme-luv .lb-table { font-size: 13px; }
    body.theme-luv .lb-table-header { padding: 14px 16px; flex-wrap: wrap; }
}

@media (max-width: 420px) {
    body.theme-luv .lb-th-prize,
    body.theme-luv .lb-row-prize { display: none; }
}

/* ============================================================
   Raffinements Wager Race CrazyBet
   ============================================================ */

/* Hero centré + logo CrazyBet */
body.theme-luv .luv-hero--centered { justify-items: center; text-align: center; }
body.theme-luv .luv-hero--centered .luv-hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}
body.theme-luv .luv-hero--centered .luv-hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
body.theme-luv .luv-hero--centered .luv-hero-chips { justify-content: center; }
body.theme-luv .luv-hero--centered .luv-hero-left .luv-hero-actions { justify-content: center; }

/* Logo CrazyBet entier dans un encadré façon overlay carrousel :
   bords arrondis + lumière violette venant du haut. */
body.theme-luv .lb-hero-logo-frame {
    --cb-purple: #7b3fe4;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 24px 38px;
    margin-bottom: 18px;
    border-radius: 18px;
    border: 1px solid rgba(123, 63, 228, 0.38);
    border-top-color: rgba(168, 116, 255, 0.6);
    background:
        linear-gradient(180deg,
            rgba(123, 63, 228, 0.30) 0%,
            rgba(123, 63, 228, 0.10) 42%,
            rgba(10, 16, 28, 0.55) 100%);
    box-shadow:
        0 18px 44px -18px rgba(123, 63, 228, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
}
body.theme-luv .lb-hero-logo-frame::before {
    /* halo lumineux depuis le haut */
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 70%;
    background: radial-gradient(ellipse at 50% -25%, rgba(168, 116, 255, 0.6) 0%, transparent 72%);
    pointer-events: none;
    z-index: -1;
}
body.theme-luv .lb-hero-logo {
    position: relative;
    width: clamp(180px, 24vw, 260px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(123, 63, 228, 0.5));
}

/* Bouton « Participer » (violet CrazyBet) */
body.theme-luv .luv-hero-cta.lb-cta-participate {
    background: linear-gradient(135deg, #8b54f0 0%, #6a32d6 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(123, 63, 228, 0.4);
}
body.theme-luv .luv-hero-cta.lb-cta-participate:hover {
    filter: brightness(1.08);
}

/* Modale « Comment ça marche ? » */
body.theme-luv .lb-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 10, 18, 0.72);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.2s ease;
}
body.theme-luv .lb-modal-overlay.is-open { opacity: 1; }
body.theme-luv .lb-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    padding: 32px 28px 28px;
    border-radius: var(--luv-r-lg);
    border: 1px solid rgba(123, 63, 228, 0.35);
    border-top-color: rgba(168, 116, 255, 0.55);
    background:
        linear-gradient(180deg, rgba(123, 63, 228, 0.16) 0%, rgba(10, 16, 28, 0.96) 32%),
        var(--luv-card);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.theme-luv .lb-modal-overlay.is-open .lb-modal { transform: translateY(0) scale(1); }
body.theme-luv .lb-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--luv-line);
    background: rgba(0, 0, 0, 0.3);
    color: var(--luv-text-dim);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
body.theme-luv .lb-modal__close:hover { color: var(--luv-text); border-color: var(--luv-line-strong); }
body.theme-luv .lb-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #8b54f0, #6a32d6);
    color: #fff;
    box-shadow: 0 10px 26px rgba(123, 63, 228, 0.45);
}
body.theme-luv .lb-modal__title {
    font-family: var(--luv-font-heading);
    font-weight: 800;
    font-size: 22px;
    color: var(--luv-text);
    margin: 0 0 14px;
}
body.theme-luv .lb-modal__body {
    text-align: left;
    color: var(--luv-text-dim);
    font-size: 14px;
    line-height: 1.6;
}
body.theme-luv .lb-modal__body p { margin: 0 0 12px; }
body.theme-luv .lb-modal__body strong { color: var(--luv-text); font-weight: 700; }
body.theme-luv .lb-modal__code {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 6px;
    background: rgba(123, 63, 228, 0.18);
    color: #b48cff;
    font-family: var(--luv-font-mono);
    font-weight: 700;
    font-size: 0.92em;
}
body.theme-luv .lb-modal__steps-title {
    font-family: var(--luv-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--luv-text-mute);
    margin: 18px 0 8px;
}
body.theme-luv .lb-modal__steps {
    margin: 0 0 4px;
    padding-left: 20px;
}
body.theme-luv .lb-modal__steps li { margin-bottom: 8px; }
body.theme-luv .lb-modal__cta {
    margin-top: 22px;
    width: 100%;
    justify-content: center;
}

/* Indicateur de podium : 2ÈME / 1ER / 3ÈME */
body.theme-luv .lb-podium-nav {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 16px;
    align-items: end;
    max-width: 1080px;
    margin: 0 auto 14px;
}
body.theme-luv .lb-pnav-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--luv-line);
    font-family: var(--luv-font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--luv-text-dim);
}
body.theme-luv .lb-pnav-icon { width: 16px; height: 16px; flex-shrink: 0; }
body.theme-luv .lb-pnav-seg--side:first-child { color: var(--lb-silver); border-color: rgba(216, 221, 230, 0.32); }
body.theme-luv .lb-pnav-seg--side:last-child  { color: var(--lb-bronze); border-color: rgba(217, 141, 100, 0.36); }
body.theme-luv .lb-pnav-seg--first {
    color: #1a0a00;
    background: linear-gradient(135deg, var(--lb-gold), #f0a93c);
    border-color: rgba(255, 206, 77, 0.6);
    font-size: 13px;
    padding: 13px 18px;
    transform: translateY(-8px);
    box-shadow: 0 10px 28px rgba(255, 206, 77, 0.28);
}

/* Récompense 4e/5e en jaune */
body.theme-luv .lb-row-prize.lb-row-prize-gold {
    color: var(--lb-gold);
    font-weight: 800;
}

@media (max-width: 720px) {
    body.theme-luv .lb-podium-nav { display: none; }
}
