.glitch { position: relative; }
.glitch::before, .glitch::after { display: none; }

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-neon-yellow);
    border-radius: 3px;
    animation: float-particle linear infinite;
    opacity: 0;
}

.particle:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; }
.particle:nth-child(2) { left: 15%; animation-duration: 14s; animation-delay: 2s; background: var(--color-neon-magenta); border-radius: 999px; }
.particle:nth-child(3) { left: 25%; animation-duration: 12s; animation-delay: 1s; background: var(--color-neon-green); }
.particle:nth-child(4) { left: 35%; animation-duration: 15s; animation-delay: 4s; }
.particle:nth-child(5) { left: 45%; animation-duration: 11s; animation-delay: 3s; background: var(--color-blue); border-radius: 999px; }
.particle:nth-child(6) { left: 55%; animation-duration: 13s; animation-delay: 1s; }
.particle:nth-child(7) { left: 65%; animation-duration: 12s; animation-delay: 5s; background: var(--color-neon-green); }
.particle:nth-child(8) { left: 75%; animation-duration: 16s; animation-delay: 2s; background: var(--color-purple); }
.particle:nth-child(9) { left: 85%; animation-duration: 12s; animation-delay: 6s; background: var(--color-neon-magenta); border-radius: 999px; }
.particle:nth-child(10) { left: 95%; animation-duration: 14s; animation-delay: 0s; }
.particle:nth-child(n+11) { animation-duration: 18s; background: var(--color-neon-green); }
.particle:nth-child(11) { left: 8%; animation-delay: 7s; }
.particle:nth-child(12) { left: 18%; animation-delay: 9s; }
.particle:nth-child(13) { left: 28%; animation-delay: 6s; }
.particle:nth-child(14) { left: 38%; animation-delay: 8s; }
.particle:nth-child(15) { left: 48%; animation-delay: 10s; }
.particle:nth-child(16) { left: 58%; animation-delay: 7s; }
.particle:nth-child(17) { left: 68%; animation-delay: 11s; }
.particle:nth-child(18) { left: 78%; animation-delay: 9s; }
.particle:nth-child(19) { left: 88%; animation-delay: 12s; }
.particle:nth-child(20) { left: 98%; animation-delay: 8s; }

@keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    15%, 80% { opacity: .72; }
    100% { transform: translateY(-100px) rotate(240deg); opacity: 0; }
}

.game-fullscreen { overflow: hidden; background: #0f172a; }
.play-frame { width: 100vw; height: 100vh; border: 0; background: white; }
.play-overlay-bar {
    position: fixed;
    z-index: 10;
    inset: 0 0 auto 0;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    transition: opacity .25s ease;
}
.play-overlay-bar.is-hidden { opacity: 0; }
