/* WaifuHunter Live – Feier im Stream (live-celebrate.js): Feuerwerk,
   Gewinnerkarte und Namensrad. Liegt über allem, Klicks gehen hindurch. */

.wh-celebrate {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-items: center; padding: 16px;
    pointer-events: none;
    opacity: 0; transition: opacity .35s ease;
}
.wh-celebrate.is-visible { opacity: 1; }
.wh-celebrate.is-leaving { opacity: 0; }
.wh-celebrate.is-contained { position: absolute; padding: 10px; }
.wh-celebrate-host { position: relative; }
.wh-celebrate__sky { position: absolute; inset: 0; width: 100%; height: 100%; }

.wh-celebrate__card {
    position: relative; width: 100%; max-width: 440px;
    padding: 20px 22px 18px; border-radius: 22px;
    text-align: center; color: #fff;
    background: radial-gradient(120% 140% at 50% 0%, rgba(199, 33, 185, .6), rgba(28, 10, 38, 0) 62%), #1C0A26;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .55), 0 0 0 4px rgba(199, 33, 185, .25);
    transform: scale(.86) translateY(14px);
    transition: transform .5s cubic-bezier(.2, 1.4, .4, 1);
}
.wh-celebrate.is-visible .wh-celebrate__card { transform: none; }
.wh-celebrate.is-leaving .wh-celebrate__card { transform: scale(.96); }

.wh-celebrate__kicker {
    margin: 0 0 4px; font-size: .78rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: #F3CDEF;
    overflow-wrap: anywhere;
}
.wh-celebrate__title { margin: 0; font-family: var(--font-brand, system-ui, sans-serif); font-size: 1.2rem; font-weight: 700; }
.wh-celebrate__name {
    margin: 8px 0 6px; font-family: var(--font-brand, system-ui, sans-serif);
    font-size: clamp(1.8rem, 8vw, 2.7rem); font-weight: 800; line-height: 1.1;
    overflow-wrap: anywhere; color: #FFD166;
    text-shadow: 0 0 18px rgba(255, 209, 102, .55), 0 2px 0 rgba(0, 0, 0, .35);
}
.wh-celebrate__names { list-style: none; margin: 8px 0 6px; padding: 0; }
.wh-celebrate__names .wh-celebrate__name { margin: 2px 0; font-size: clamp(1.4rem, 6vw, 2rem); }
.wh-celebrate__detail { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .88); overflow-wrap: anywhere; }
.wh-celebrate__cheer { margin: 12px 0 0; font-size: 1.08rem; font-weight: 700; }
.wh-celebrate__mine {
    margin: 10px 0 0; padding: 8px 10px; border-radius: 12px;
    background: rgba(126, 226, 168, .18); color: #BFF5D3; font-size: .9rem; font-weight: 600;
}

/* Namensrad */
.wh-celebrate__reel {
    position: relative; overflow: hidden;
    display: grid; place-items: center;
    height: 3.6rem; margin: 12px 0 8px; border-radius: 14px;
    background: #12061A; border: 1px solid rgba(255, 255, 255, .16);
    transition: border-color .3s ease, box-shadow .3s ease;
}
.wh-celebrate__reel::before, .wh-celebrate__reel::after {
    content: ''; position: absolute; inset-inline: 0; height: 30%; pointer-events: none;
}
.wh-celebrate__reel::before { top: 0; background: linear-gradient(#12061A, transparent); }
.wh-celebrate__reel::after { bottom: 0; background: linear-gradient(transparent, #12061A); }
.wh-celebrate__reel-name {
    padding: 0 12px; max-width: 100%;
    font-family: var(--font-brand, system-ui, sans-serif); font-size: 1.7rem; font-weight: 800;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wh-celebrate__reel-name.is-tick { animation: wh-reel-tick 120ms ease-out; }
.wh-celebrate__reel.is-final { border-color: #FFD166; box-shadow: 0 0 0 3px rgba(255, 209, 102, .35), 0 0 30px rgba(255, 209, 102, .45); }
.wh-celebrate__reel.is-final .wh-celebrate__reel-name { color: #FFD166; animation: wh-reel-pop .5s ease-out; }
.wh-celebrate__chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 8px; padding: 0; }
.wh-celebrate__chip { padding: 2px 10px; border-radius: 999px; background: rgba(255, 209, 102, .2); color: #FFE7A8; font-size: .85rem; font-weight: 700; }

/* Nur für Screenreader: das Ergebnis einmal ansagen, nicht jeden Namen im Rad */
.wh-celebrate__sr {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Klein im Studio (über der Vorschau) */
.wh-celebrate.is-compact .wh-celebrate__card { max-width: 320px; padding: 12px 14px; border-radius: 16px; }
.wh-celebrate.is-compact .wh-celebrate__name { font-size: 1.6rem; }
.wh-celebrate.is-compact .wh-celebrate__reel { height: 2.8rem; }
.wh-celebrate.is-compact .wh-celebrate__reel-name { font-size: 1.3rem; }

@keyframes wh-reel-tick { from { transform: translateY(-55%); opacity: .25; } to { transform: none; opacity: 1; } }
@keyframes wh-reel-pop { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .wh-celebrate, .wh-celebrate__card, .wh-celebrate__reel { transition: none; }
    .wh-celebrate__card { transform: none; }
    .wh-celebrate__reel-name.is-tick, .wh-celebrate__reel.is-final .wh-celebrate__reel-name { animation: none; }
}
