body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.neon-bg {
    background:
        radial-gradient(circle at 15% 85%, rgba(0, 115, 255, 0.38), transparent 34%),
        radial-gradient(circle at 90% 75%, rgba(210, 35, 255, 0.36), transparent 30%),
        radial-gradient(circle at 50% 0%, rgba(17, 43, 132, 0.75), transparent 42%),
        #030615;
}

.glass {
    background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(18px);
}

.accent-stick {
    width: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff4ec7, #00d9ff);
    box-shadow: 0 0 24px rgba(0, 217, 255, 0.5);
}

.option-cyan {
    border-color: rgba(6, 182, 212, 0.85);
    color: #22d3ee;
}

.option-purple {
    border-color: rgba(168, 85, 247, 0.78);
    color: #a855f7;
}

.option-pink {
    border-color: rgba(236, 72, 153, 0.78);
    color: #f472b6;
}

.option-orange {
    border-color: rgba(249, 115, 22, 0.78);
    color: #fb923c;
}

.result-track {
    background: rgba(30, 41, 59, 0.68);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.25);
}

.screen-shell {
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(circle at 8% 92%, rgba(0, 102, 255, 0.42), transparent 32%),
        radial-gradient(circle at 94% 90%, rgba(229, 38, 255, 0.42), transparent 30%),
        linear-gradient(180deg, #030615 0%, #06102d 100%);
}

.screen-compact {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1644px;
    height: 1000px;
    transform: translateX(-50%) scale(var(--screen-scale, 1));
    transform-origin: top center;
}

.timer-card {
    min-width: 250px;
}

.polling-card {
    min-height: 424px;
}

.screen-qr-card {
    min-height: 350px;
}

.screen-qr-box {
    width: 250px !important;
    height: 250px !important;
}

.screen-qr-box canvas,
.screen-qr-box img {
    width: 220px !important;
    height: 220px !important;
}

.screen-live-card {
    min-height: 252px;
}

.screen-word-cloud {
    min-height: 204px;
}

.word-cloud-panel {
    background: linear-gradient(145deg, rgba(10, 18, 48, 0.82), rgba(8, 9, 35, 0.72));
    border: 1px solid rgba(168, 85, 247, 0.72);
    box-shadow: inset 0 0 36px rgba(48, 67, 180, 0.12), 0 0 28px rgba(168, 85, 247, 0.12);
    backdrop-filter: blur(18px);
}

.word-cloud span {
    text-shadow: 0 0 18px rgba(90, 130, 255, 0.22);
    white-space: nowrap;
}

@media (max-height: 760px) {
    .screen-compact {
        transform: translateX(-50%) scale(var(--screen-scale, 1));
    }
}

.wish-wall-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 42% 48%, rgba(25, 104, 255, 0.18), transparent 26%),
        radial-gradient(circle at 61% 58%, rgba(237, 38, 255, 0.22), transparent 24%),
        radial-gradient(circle at 9% 90%, rgba(0, 94, 255, 0.38), transparent 28%),
        radial-gradient(circle at 86% 90%, rgba(174, 38, 255, 0.34), transparent 30%),
        linear-gradient(180deg, #030614 0%, #06102f 100%);
}

.wish-wall-stage::before,
.wish-wall-stage::after {
    content: "";
    position: absolute;
    inset: auto -8% -12% -8%;
    height: 230px;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 22% 66%, rgba(0, 164, 255, 0.42), transparent 36%),
        radial-gradient(ellipse at 84% 55%, rgba(235, 45, 255, 0.35), transparent 35%);
    filter: blur(2px);
    opacity: 0.9;
}

.wish-wall-stage::after {
    inset: 0;
    height: auto;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.22;
}

.wish-particles span {
    position: absolute;
    z-index: 1;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #b984ff;
    box-shadow: 0 0 16px rgba(185, 132, 255, 0.9);
    animation: wishTwinkle 3s ease-in-out infinite;
}

.floating-wish {
    position: absolute;
    padding: 14px;
    border: 1px solid rgba(91, 121, 255, 0.62);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(9, 18, 52, 0.82), rgba(8, 9, 34, 0.64));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24), inset 0 0 24px rgba(68, 87, 200, 0.1);
    backdrop-filter: blur(14px);
    animation: floatWish 7s ease-in-out infinite;
}

.floating-muted {
    opacity: 0.78;
    filter: blur(0.2px);
}

.floating-soft {
    z-index: -1;
    opacity: 0.62;
    filter: blur(0.4px);
    transform: scale(0.9);
}

.floating-back {
    z-index: -2;
    opacity: 0.38;
    filter: blur(1.4px);
    transform: scale(0.88);
}

.wish-mini-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.wish-mini-head img {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.22);
}

.wish-mini-head strong {
    display: block;
    font-size: 13px;
    line-height: 1.1;
}

.wish-mini-head span {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: rgb(196 181 253);
}

.floating-wish p {
    font-size: 14px;
    line-height: 1.45;
    color: rgb(241 245 249);
}

.wish-reaction {
    position: absolute;
    right: 14px;
    bottom: 12px;
    width: 21px;
    height: 21px;
    animation: reactionPop 2.2s ease-in-out infinite;
}

.spotlight-wish {
    background:
        radial-gradient(circle at 7% 88%, rgba(0, 221, 255, 0.24), transparent 30%),
        radial-gradient(circle at 99% 6%, rgba(255, 55, 230, 0.2), transparent 30%),
        linear-gradient(145deg, rgba(9, 18, 52, 0.9), rgba(8, 9, 35, 0.78));
    border: 2px solid rgba(50, 217, 255, 0.9);
    box-shadow:
        0 0 0 1px rgba(255, 63, 235, 0.55),
        0 0 34px rgba(0, 217, 255, 0.82),
        0 0 54px rgba(240, 55, 255, 0.55),
        inset 0 0 42px rgba(67, 97, 255, 0.2);
    backdrop-filter: blur(20px);
    animation: spotlightPulse 3.6s ease-in-out infinite;
}

.spotlight-wish blockquote::before {
    content: "“";
    color: #ff7ac8;
    font-size: 46px;
    line-height: 0;
    margin-right: 8px;
    vertical-align: -18px;
}

.spotlight-wish blockquote::after {
    content: "”";
}

.spotlight-enter {
    animation: spotlightEnter 900ms cubic-bezier(.22,1,.36,1), spotlightPulse 3.6s ease-in-out infinite 900ms;
}

.reaction-bubble {
    display: inline-block;
    filter: drop-shadow(0 0 16px rgba(255, 86, 210, 0.7));
    animation: reactionPop 2s ease-in-out infinite;
}

.animation-delay-1 { animation-delay: .4s; }
.animation-delay-2 { animation-delay: .9s; }
.animation-delay-3 { animation-delay: 1.4s; }
.animation-delay-4 { animation-delay: 1.9s; }
.animation-delay-5 { animation-delay: 2.4s; }
.delay-300 { animation-delay: .3s; }
.delay-500 { animation-delay: .5s; }
.delay-700 { animation-delay: .7s; }
.delay-1000 { animation-delay: 1s; }

@keyframes floatWish {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(var(--wish-rotate, 0deg));
    }
    50% {
        transform: translate3d(0, -16px, 0) rotate(calc(var(--wish-rotate, 0deg) + 1.5deg));
    }
}

@keyframes spotlightPulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 63, 235, 0.52),
            0 0 34px rgba(0, 217, 255, 0.75),
            0 0 54px rgba(240, 55, 255, 0.48),
            inset 0 0 42px rgba(67, 97, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 63, 235, 0.85),
            0 0 48px rgba(0, 217, 255, 0.95),
            0 0 72px rgba(240, 55, 255, 0.68),
            inset 0 0 52px rgba(67, 97, 255, 0.28);
    }
}

@keyframes spotlightEnter {
    0% {
        opacity: 0;
        transform: translate(-50%, -30%) scale(0.9);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -36%) scale(1);
        filter: blur(0);
    }
}

@keyframes wishTwinkle {
    0%, 100% {
        opacity: .25;
        transform: scale(.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.8);
    }
}

@keyframes reactionPop {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-7px) scale(1.12);
    }
}
