/* ═══════════════════════════════════════════════════
   MUR DE COMPTEURS — Modern dark interface
   ═══════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────── */
:root {
    --bg:           #080c14;
    --bg-panel:     rgba(255,255,255,0.025);
    --bg-card:      rgba(255,255,255,0.038);
    --bg-card-h:    rgba(255,255,255,0.065);
    --border:       rgba(255,255,255,0.07);
    --border-h:     rgba(139,92,246,0.45);
    --accent:       #8b5cf6;
    --accent-dim:   rgba(139,92,246,0.15);
    --gold:         #f59e0b;
    --gold-dim:     rgba(245,158,11,0.12);
    --green:        #22c55e;
    --text:         #e2e8f0;
    --text-sub:     #94a3b8;
    --text-muted:   #475569;
    --header-h:     56px;
    --panel-w:      320px;
    --footer-h:     56px;
    --radius-card:  10px;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ── Ambient background blobs ───────────────────────── */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: blobDrift 20s ease-in-out infinite alternate;
}
.bg-blob-1 {
    width: 620px; height: 620px;
    background: rgba(139,92,246,0.14);
    top: -180px; left: -120px;
    animation-delay: 0s;
}
.bg-blob-2 {
    width: 420px; height: 420px;
    background: rgba(59,130,246,0.10);
    bottom: -60px; right: 25%;
    animation-delay: -7s;
}
.bg-blob-3 {
    width: 320px; height: 320px;
    background: rgba(59,130,246,0.08);
    top: 25%; right: -80px;
    animation-delay: -13s;
}
.bg-blob-4 {
    width: 360px; height: 360px;
    background: rgba(139,92,246,0.09);
    bottom: 15%; left: 32%;
    animation-delay: -4s;
}
@keyframes blobDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, 30px) scale(1.08); }
}

/* ── Neon grid overlay ──────────────────────────────── */
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(139,92,246,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139,92,246,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* ── Header stats bar ───────────────────────────────── */
.stats-header {
    position: relative;
    z-index: 10;
    height: var(--header-h);
    background: rgba(0,0,0,0.55);
    border-bottom: 1px solid rgba(139,92,246,0.22);
    box-shadow: 0 1px 0 rgba(139,92,246,0.08), 0 4px 28px rgba(139,92,246,0.05);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 0;
}
.stats-brand {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-right: 24px;
    flex-shrink: 0;
    text-shadow: 0 0 14px rgba(139,92,246,0.8), 0 0 32px rgba(139,92,246,0.35);
}
.stats-items {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}
.stat-sep {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 18px;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stat-icon {
    font-size: 15px;
    line-height: 1;
}
.stat-body {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.stat-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1px;
}
.stat-value {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
}

/* ── Main layout ────────────────────────────────────── */
.main-layout {
    position: relative;
    z-index: 1;
    display: flex;
    height: calc(100vh - var(--header-h) - var(--footer-h));
    overflow: hidden;
}

/* ── Raid panel ─────────────────────────────────────── */
.raid-panel {
    width: var(--panel-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 10px 10px 10px;
    background: var(--bg-panel);
    border-right: 1px solid rgba(139,92,246,0.2);
    box-shadow: 2px 0 28px rgba(139,92,246,0.07);
    overflow: hidden;
}

/* ── Raid spotlight ─────────────────────────────────── */
.raid-spotlight {
    background: var(--bg-card);
    border: 1px solid rgba(139,92,246,0.25);
    box-shadow: 0 0 28px rgba(139,92,246,0.10), inset 0 0 18px rgba(139,92,246,0.03);
    border-radius: 14px;
    padding: 16px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.spotlight-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 20px;
    padding: 4px 10px;
}
.spotlight-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent); }
    50%       { opacity: 0.5; box-shadow: 0 0 2px var(--accent); }
}

.spotlight-avatar-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.spotlight-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(var(--accent), #ec4899, #f59e0b, var(--accent));
    animation: ringRotate 4s linear infinite;
    z-index: 0;
}
.spotlight-ring::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bg);
}
@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

/* ── Spotlight — aura rotative derrière l'avatar ────── */
.spotlight-avatar-wrap::before {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: conic-gradient(
        rgba(139,92,246,0.22) 0deg,
        rgba(236,72,153,0.16) 80deg,
        rgba(245,158,11,0.18) 160deg,
        rgba(96,165,250,0.14) 240deg,
        rgba(139,92,246,0.22) 360deg
    );
    filter: blur(10px);
    animation: auraFloat 9s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}
@keyframes auraFloat {
    0%   { transform: rotate(0deg)   scale(1);    opacity: 0.50; }
    25%  { transform: rotate(90deg)  scale(1.07); opacity: 0.68; }
    50%  { transform: rotate(180deg) scale(1);    opacity: 0.50; }
    75%  { transform: rotate(270deg) scale(1.07); opacity: 0.68; }
    100% { transform: rotate(360deg) scale(1);    opacity: 0.50; }
}

/* ── Spotlight — lignes de vitesse radiales ─────────── */
.spotlight-avatar-wrap::after {
    content: '';
    position: absolute;
    width: 216px;
    height: 216px;
    top: 50%; left: 50%;
    margin-top: -108px; margin-left: -108px;
    background: repeating-conic-gradient(
        transparent 0deg,
        transparent 7deg,
        rgba(139,92,246,0.055) 7deg,
        rgba(139,92,246,0.055) 8deg
    );
    border-radius: 50%;
    animation: speedSpin 22s linear infinite;
    z-index: -1;
    pointer-events: none;
}
@keyframes speedSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Spotlight — particules de flammes ───────────────── */
.flame-p {
    position: absolute;
    border-radius: 50% 50% 38% 38% / 60% 60% 40% 40%;
    filter: blur(5px) brightness(1);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    animation: flameRise 2s ease-in infinite;
}
.flame-p-1 {
    width: 18px; height: 28px;
    background: linear-gradient(to top, rgba(245,158,11,0.95), rgba(236,72,153,0.55), transparent);
    bottom: -10px; left: 50%; margin-left: -9px;
    animation-duration: 1.7s; animation-delay: 0s;
}
.flame-p-2 {
    width: 14px; height: 22px;
    background: linear-gradient(to top, rgba(139,92,246,0.95), rgba(236,72,153,0.50), transparent);
    bottom: -8px; left: 30%; margin-left: -7px;
    animation-duration: 2.0s; animation-delay: -0.55s;
}
.flame-p-3 {
    width: 14px; height: 22px;
    background: linear-gradient(to top, rgba(139,92,246,0.95), rgba(96,165,250,0.50), transparent);
    bottom: -8px; right: 30%; margin-right: -7px;
    animation-duration: 1.9s; animation-delay: -1.15s;
}
.flame-p-4 {
    width: 10px; height: 16px;
    background: linear-gradient(to top, rgba(245,158,11,0.85), rgba(139,92,246,0.40), transparent);
    bottom: -5px; left: 18%; margin-left: -5px;
    animation-duration: 1.5s; animation-delay: -0.3s;
}
.flame-p-5 {
    width: 10px; height: 16px;
    background: linear-gradient(to top, rgba(236,72,153,0.85), rgba(139,92,246,0.40), transparent);
    bottom: -5px; right: 18%; margin-right: -5px;
    animation-duration: 2.2s; animation-delay: -1.75s;
}
@keyframes flameRise {
    0%   { transform: translateY(0px)   scaleX(1);    opacity: 0.40; }
    45%  { transform: translateY(-20px) scaleX(0.80); opacity: 0.58; }
    100% { transform: translateY(-36px) scaleX(0.40); opacity: 0; }
}

/* ── Spotlight — ignite (6 s post-tirage) ───────────── */
.raid-spotlight.spotlight-ignite {
    border-color: rgba(139,92,246,0.60);
    box-shadow: 0 0 55px rgba(139,92,246,0.28), 0 0 22px rgba(236,72,153,0.15),
                inset 0 0 32px rgba(139,92,246,0.08);
    transition: border-color 0.4s, box-shadow 0.4s;
}
.raid-spotlight.spotlight-ignite .spotlight-avatar-wrap::before {
    animation: auraFloat 3.5s ease-in-out infinite;
    filter: blur(8px);
    opacity: 1;
}
.raid-spotlight.spotlight-ignite .spotlight-avatar-wrap::after {
    animation: speedSpin 5s linear infinite;
    background: repeating-conic-gradient(
        transparent 0deg,
        transparent 7deg,
        rgba(139,92,246,0.13) 7deg,
        rgba(139,92,246,0.13) 8deg
    );
}
.raid-spotlight.spotlight-ignite .flame-p {
    filter: blur(4px) brightness(2.8);
}
.raid-spotlight.spotlight-ignite .flame-p-1 { animation-duration: 0.85s; }
.raid-spotlight.spotlight-ignite .flame-p-2 { animation-duration: 1.05s; }
.raid-spotlight.spotlight-ignite .flame-p-3 { animation-duration: 1.00s; }
.raid-spotlight.spotlight-ignite .flame-p-4 { animation-duration: 0.75s; }
.raid-spotlight.spotlight-ignite .flame-p-5 { animation-duration: 1.15s; }

.spotlight-avatar-inner {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
}
.spotlight-placeholder {
    font-size: 38px;
    line-height: 1;
}
.spotlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.spotlight-info {
    text-align: center;
    width: 100%;
}
.spotlight-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.spotlight-subs-wrap {
    display: flex;
    align-items: baseline;
    gap: 5px;
    justify-content: center;
    margin-top: 2px;
}
.spotlight-subs {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.spotlight-subs-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
}
.spotlight-pts {
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    margin-top: 3px;
    min-height: 16px;
}

.spotlight-timer {
    width: 100%;
}
.timer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.timer-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
}
.timer-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}
.timer-track {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
}
.timer-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ec4899);
    border-radius: 99px;
    transition: width 1s linear;
    box-shadow: 0 0 8px rgba(139,92,246,0.7), 0 0 18px rgba(236,72,153,0.35);
}

/* ── Leaderboard ────────────────────────────────────── */
.leaderboard {
    background: var(--bg-card);
    border: 1px solid rgba(139,92,246,0.18);
    box-shadow: 0 0 18px rgba(139,92,246,0.07);
    border-radius: 14px;
    padding: 12px 12px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.leaderboard-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-sub);
    margin-bottom: 6px;
    flex-shrink: 0;
}
.leaderboard-empty {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 14px 0;
    line-height: 1.6;
}
.leaderboard-empty strong {
    color: var(--accent);
}
#leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.lb-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: 9px;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
    transition: all 0.25s;
}
.lb-item.lb-leader {
    background: var(--gold-dim);
    border-color: rgba(245,158,11,0.2);
}
.lb-rank {
    font-size: 17px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.lb-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.lb-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255,255,255,0.08);
}
.lb-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-pts {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-sub);
    flex-shrink: 0;
}
.lb-leader .lb-pts {
    color: var(--gold);
}
.lb-skip {
    font-size: 10px;
    margin-left: 3px;
}
.lb-streak {
    font-size: 11px;
    margin-left: 3px;
}

/* ── Points popup ───────────────────────────────────── */
.points-popup {
    min-height: 0;
    flex-shrink: 0;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.popup-item {
    background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(245,158,11,0.18));
    border: 1px solid rgba(139,92,246,0.4);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    animation: popupIn 0.3s ease;
    transition: opacity 0.5s ease, transform 0.5s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.popup-item.popup-exit {
    opacity: 0;
    transform: translateY(-6px);
}
.popup-item strong {
    color: var(--accent);
}
@keyframes popupIn {
    from { opacity: 0; transform: translateY(6px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Channel wall ───────────────────────────────────── */
.channel-wall {
    flex: 1;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    align-content: start;
    overflow: hidden;
}

/* ── Channel cards ──────────────────────────────────── */
.card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    height: 90px;
    overflow: hidden;
    transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
    opacity: 0;
    animation: cardEntry 0.1s ease forwards;
    animation-delay: var(--entry-delay, 0ms);
}
.card:hover {
    background: var(--bg-card-h);
    border-color: var(--border-h);
    transform: translateY(-1px);
}
.card.activee {
    border-color: rgba(139,92,246,0.65);
    background: rgba(139,92,246,0.10);
    box-shadow: 0 0 16px rgba(139,92,246,0.28), inset 0 0 8px rgba(139,92,246,0.06);
    animation: cardEntry 0.1s ease forwards, newPulse 2.5s ease-in-out infinite;
    animation-delay: var(--entry-delay, 0ms), 0.5s;
}

.channelImage {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
}

.card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    position: relative;
    z-index: 1;
    padding-right: 44px;
}
.channelName {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.subscriberCount {
    font-size: 21px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

/* ── Card extras : vues, meta, bannière, live ───────── */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--card-banner-url, none);
    background-size: cover;
    background-position: center top;
    filter: blur(10px) brightness(0.28);
    border-radius: var(--radius-card);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
    z-index: 0;
}
.card.has-banner::before { opacity: 1; }

.channelImage {
    position: relative;
    z-index: 1;
}
.card-bottom-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    margin-top: 1px;
}
.views-icon {
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.75;
}
.viewCount {
    font-size: 12px;
    font-weight: 600;
    color: #c4b5fd;
    line-height: 1;
    flex-shrink: 0;
}
.card-meta {
    font-size: 11px;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    margin-left: 3px;
}
.card-flag {
    position: absolute;
    right: 8px;
    bottom: 8px;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}
.card:not(.card-live) .card-flag {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}
.card-flag-img {
    width: 28px;
    height: auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Flash abonnés */
.card.card-updated {
    background: rgba(139,92,246,0.11);
    border-color: rgba(139,92,246,0.38);
    box-shadow: 0 0 14px rgba(139,92,246,0.18);
}

/* Badge LIVE */
.card-live-badge {
    display: none;
    position: absolute;
    top: 6px;
    right: 7px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(220,38,38,0.88);
    border: 1px solid rgba(255,100,100,0.45);
    border-radius: 4px;
    padding: 2px 5px;
    animation: livePulse 1.4s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}
.card-live .card-live-badge { display: inline-block; }
.card-live {
    border-color: rgba(220,38,38,0.40);
    box-shadow: 0 0 12px rgba(220,38,38,0.16);
}
@keyframes livePulse {
    0%, 100% { opacity: 1;   box-shadow: 0 0 5px rgba(220,38,38,0.50); }
    50%       { opacity: 0.7; box-shadow: 0 0 9px rgba(220,38,38,0.80); }
}

/* ── Footer bar (ticker) ────────────────────────────── */
.footer-bar {
    position: relative;
    z-index: 10;
    height: var(--footer-h);
    background: rgba(0,0,0,0.78);
    border-top: 1px solid rgba(139,92,246,0.22);
    box-shadow: 0 -1px 0 rgba(139,92,246,0.08), 0 -6px 24px rgba(139,92,246,0.05);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 0 0 14px;
    gap: 0;
}
.ticker-label {
    flex-shrink: 0;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 14px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    box-shadow: 0 0 14px rgba(139,92,246,0.75), 0 0 30px rgba(139,92,246,0.4);
}
.ticker-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 100%;
    mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
}
.ticker-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll var(--ticker-dur, 55s) linear infinite;
    will-change: transform;
}
.ticker-content:hover {
    animation-play-state: paused;
}
.ticker-msg {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-sub);
    padding: 0 28px;
}
.ticker-msg strong {
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(139,92,246,0.55);
}
.ticker-msg.ticker-event {
    color: var(--gold);
    font-weight: 600;
}
.ticker-msg.ticker-event strong {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(245,158,11,0.55);
}
.ticker-sep-item {
    color: var(--accent);
    opacity: 0.35;
    font-size: 13px;
    flex-shrink: 0;
}
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Winner splash overlay — shared container ────────── */
#raid-winner-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    opacity: 0;
}
#raid-winner-splash.active {
    animation: splashBg 5.1s ease forwards;
}

@keyframes splashBg {
    0%   { opacity: 0; background: transparent; }
    8%   { opacity: 1; background: rgba(0,0,0,0.82); }
    88%  { opacity: 1; background: rgba(0,0,0,0.82); }
    100% { opacity: 0; background: transparent; }
}

/* Shared enter/exit animation for inner elements */
@keyframes splashEnter {
    0%   { opacity: 0; transform: scale(0.85) translateY(16px); }
    12%  { opacity: 1; transform: scale(1.02) translateY(0); }
    86%  { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.95) translateY(-8px); }
}
@keyframes splashEnterDelay {
    0%   { opacity: 0; transform: translateY(12px); }
    18%  { opacity: 1; transform: translateY(0); }
    86%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-6px); }
}

/* ── Podium — Scenario A ─────────────────────────────── */
.podium-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 28px 32px;
    animation: splashEnter 5.1s ease forwards;
}
.podium-header {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(245,158,11,0.8), 0 0 60px rgba(245,158,11,0.4);
}
.podium-wrap {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}
.podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    min-width: 120px;
    max-width: 160px;
    opacity: 0.7;
}
.podium-slot.podium-empty {
    visibility: hidden;
    opacity: 0;
}
/* 1st place — center, gold glow */
.podium-slot.podium-rank-1 {
    opacity: 1;
    min-width: 160px;
    padding: 22px 26px 18px;
    border-radius: 18px;
    background: rgba(245,158,11,0.13);
    border-color: rgba(245,158,11,0.45);
    box-shadow: 0 0 40px rgba(245,158,11,0.35), 0 0 80px rgba(245,158,11,0.18);
    animation: podiumGoldPulse 1.4s ease-in-out 0.6s infinite;
}
/* 2nd & 3rd — slightly dimmed */
.podium-slot.podium-rank-2,
.podium-slot.podium-rank-3 {
    opacity: 0.72;
    transform: translateY(12px);
}
@keyframes podiumGoldPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(245,158,11,0.35), 0 0 80px rgba(245,158,11,0.18); }
    50%       { box-shadow: 0 0 60px rgba(245,158,11,0.65), 0 0 120px rgba(245,158,11,0.32); }
}
/* ── Podium avatars ─────────────────────────────────── */
.podium-avatar-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.podium-rank-1 .podium-avatar-wrap {
    width: 88px;
    height: 88px;
}

.podium-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(#f59e0b, #fbbf24, #f59e0b, #d97706, #f59e0b);
    animation: ringRotate 3s linear infinite;
    z-index: 0;
}
.podium-avatar-ring::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: rgba(245,158,11,0.13);
}

.podium-avatar-inner {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
}
.podium-rank-1 .podium-avatar-inner {
    inset: 4px;
}

.podium-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.podium-avatar-placeholder {
    font-size: 22px;
    line-height: 1;
}
.podium-rank-1 .podium-avatar-placeholder {
    font-size: 32px;
}

/* ── Podium medals ───────────────────────────────────── */
.podium-medal {
    font-size: 28px;
    line-height: 1;
}
.podium-rank-1 .podium-medal { font-size: 40px; }
.podium-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.podium-rank-1 .podium-name {
    font-size: 20px;
    color: var(--gold);
    text-shadow: 0 0 18px rgba(245,158,11,0.6);
}
.podium-pts {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sub);
}
.podium-rank-1 .podium-pts {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
}
.podium-announce {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    text-shadow: 0 0 30px rgba(139,92,246,0.9), 0 0 60px rgba(245,158,11,0.5);
    animation: splashEnterDelay 5.1s ease 0.2s forwards;
    padding: 0 20px;
}
.podium-stars {
    font-size: 22px;
    letter-spacing: 8px;
    color: var(--gold);
    animation: splashEnterDelay 5.1s ease 0.35s forwards;
    opacity: 0;
}

/* ── Roulette — Scenario B ───────────────────────────── */
.roulette-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: 0 0 24px rgba(139,92,246,0.8);
    margin-bottom: 24px;
    animation: splashEnter 5.1s ease forwards;
}
.roulette-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: splashEnter 5.1s ease 0.1s forwards;
    opacity: 0;
}
.roulette-arrow {
    font-size: 18px;
    color: var(--accent);
    line-height: 1;
    opacity: 0.7;
}
.roulette-display {
    width: 380px;
    max-width: 90vw;
    padding: 18px 28px;
    border-radius: 14px;
    border: 2px solid rgba(139,92,246,0.4);
    background: rgba(139,92,246,0.1);
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
    transition: color 0.08s;
}
.roulette-display.roulette-blink {
    animation: rouletteBlink 0.09s ease;
}
.roulette-display.roulette-selected {
    border-color: var(--gold);
    background: rgba(245,158,11,0.15);
    color: var(--gold);
    box-shadow: 0 0 40px rgba(245,158,11,0.4), 0 0 80px rgba(245,158,11,0.2);
    text-shadow: 0 0 20px rgba(245,158,11,0.7);
    font-size: 30px;
    animation: rouletteWin 0.4s ease forwards;
}
@keyframes rouletteBlink {
    0%   { transform: scaleY(0.94); }
    50%  { transform: scaleY(1.04); }
    100% { transform: scaleY(1); }
}
@keyframes rouletteWin {
    0%   { transform: scale(0.95); }
    40%  { transform: scale(1.06); }
    70%  { transform: scale(0.98); }
    100% { transform: scale(1); }
}
.roulette-hint {
    margin-top: 22px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-sub);
    animation: splashEnterDelay 5.1s ease 0.2s forwards;
    opacity: 0;
}

/* ── Animations ─────────────────────────────────────── */
@keyframes cardEntry {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes newPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139,92,246,0); }
    50%       { box-shadow: 0 0 0 3px rgba(139,92,246,0.2); }
}

/* ── Pre-draw countdown overlay ─────────────────────────── */
#draw-countdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}
#draw-countdown-overlay.active {
    opacity: 1;
}
.draw-pre-label {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: 0 0 24px rgba(139,92,246,0.8);
    animation: drawPrePulse 1.2s ease-in-out infinite;
}
.draw-pre-num {
    font-size: 140px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 80px rgba(139,92,246,0.25);
}
.draw-pre-num.tick {
    animation: drawNumTick 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.draw-pre-bar-wrap {
    width: 260px;
    max-width: 70vw;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}
.draw-pre-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.9s linear;
    box-shadow: 0 0 8px rgba(139,92,246,0.7);
}
@keyframes drawPrePulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; text-shadow: 0 0 36px rgba(139,92,246,1); }
}
@keyframes drawNumTick {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.09); }
    100% { transform: scale(1); }
}

/* ── Strip-wheel (slot machine) ──────────────────────────── */
.wheel-title {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: 0 0 24px rgba(139,92,246,0.8);
    margin-bottom: 14px;
    opacity: 0;
    animation: splashEnter 0.4s ease 0.05s forwards;
}
.wheel-viewport {
    position: relative;
    width: 380px;
    max-width: 86vw;
    overflow: hidden;
    border-radius: 14px;
    border: 2px solid rgba(139,92,246,0.32);
    background: rgba(139,92,246,0.06);
    -webkit-mask-image: linear-gradient(to bottom,
        transparent 0%, black 22%, black 78%, transparent 100%);
    mask-image: linear-gradient(to bottom,
        transparent 0%, black 22%, black 78%, transparent 100%);
}
.wheel-strip {
    will-change: transform;
}
.wheel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    padding: 0 22px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wheel-winner-item {
    color: var(--text);
    font-size: 21px;
}
.wheel-winner-item.wheel-landing {
    color: var(--gold);
    font-size: 23px;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(245,158,11,0.9), 0 0 40px rgba(245,158,11,0.4);
    animation: rouletteWin 0.42s ease forwards;
}
.wheel-center-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-1px);
    background: rgba(139,92,246,0.45);
    pointer-events: none;
}
.wheel-center-line::before,
.wheel-center-line::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateY(-50%);
}
.wheel-center-line::before { left: 0; }
.wheel-center-line::after  { right: 0; }
.wheel-hint {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-sub);
    min-height: 20px;
    opacity: 0;
    animation: splashEnterDelay 0.45s ease 0.35s forwards;
}

/* ── Winner reveal card ──────────────────────────────────── */
.draw-reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: scale(0.82) translateY(18px);
    transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.draw-reveal.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.draw-reveal-badge {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 28px rgba(139,92,246,0.9), 0 0 56px rgba(245,158,11,0.5);
    animation: drawRevealBadgePulse 0.85s ease-in-out infinite;
}
.draw-reveal-avatar {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    background: rgba(245,158,11,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    overflow: hidden;
    box-shadow: 0 0 48px rgba(245,158,11,0.52), 0 0 96px rgba(245,158,11,0.22);
    animation: podiumGoldPulse 1.4s ease-in-out infinite;
}
.draw-reveal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.draw-reveal-name {
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 28px rgba(245,158,11,0.9), 0 0 56px rgba(245,158,11,0.4);
    text-align: center;
    max-width: 78vw;
    animation: podiumGoldPulse 1.4s ease-in-out 0.15s infinite;
}
.draw-reveal-subs {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-sub);
    letter-spacing: 0.04em;
}
@keyframes drawRevealBadgePulse {
    0%, 100% { opacity: 0.85; }
    50%       { opacity: 1;
                text-shadow: 0 0 40px rgba(139,92,246,1), 0 0 80px rgba(245,158,11,0.7); }
}

/* ── draw-sequence-active: opaque background, JS-controlled ─ */
#raid-winner-splash.draw-sequence-active {
    opacity: 1;
    background: var(--bg);
}

/* ── Odometer override for dark theme ───────────────── */
.odometer.odometer-auto-theme,
.odometer.odometer-theme-default {
    font-family: 'Inter', monospace;
    font-weight: 700;
    color: var(--text);
}
.odometer.odometer-auto-theme .odometer-digit,
.odometer.odometer-theme-default .odometer-digit {
    padding: 0;
}
