:root {
    --bg-dark: #000000;
    --neon-green: #00ff66;
    --neon-red: #ff0033;
    --neon-blue: #00ffff;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Share Tech Mono', monospace;
    user-select: none;
}

body {
    background: var(--bg-dark);
    height: 100vh; overflow: hidden;
    display: flex; justify-content: center; align-items: center;
}

.scanlines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.5) 50%);
    background-size: 100% 4px; z-index: 999; pointer-events: none;
}

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://w3.org id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05; z-index: 998; pointer-events: none;
}

#desktop-arena {
    position: relative; width: 100vw; height: 100vh;
    display: flex; justify-content: center; align-items: center;
    perspective: 800px;
}

#chaos-trigger {
    background: transparent; border: 3px solid var(--neon-green);
    color: var(--neon-green); font-size: 28px; padding: 25px 50px;
    font-weight: bold; cursor: pointer; z-index: 100;
    text-shadow: 0 0 10px var(--neon-green); box-shadow: 0 0 20px rgba(0,255,102,0.3);
    transition: transform 0.1s ease;
}

#chaos-trigger:active { transform: scale(0.9); }

.fake-popup {
    position: absolute; width: 280px; background: #111;
    border: 2px solid var(--neon-red); border-radius: 4px;
    box-shadow: 0 10px 30px rgba(255, 0, 51, 0.4); z-index: 50;
    animation: popupPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-title {
    background: var(--neon-red); color: #fff; padding: 6px 12px;
    font-weight: bold; font-size: 12px; text-transform: uppercase;
}

.popup-body { padding: 15px; color: #fff; font-size: 14px; text-align: center; }

@keyframes popupPop { 0% { transform: scale(0); } 100% { transform: scale(1); } }

#shatter-zone {
    position: absolute; width: 380px; height: 380px; z-index: 10;
}

#shatter-zone.hidden { display: none; }

#target-img { width: 100%; height: 100%; object-fit: cover; border: 5px solid #fff; }


.shatter-piece {
    position: absolute; background-image: url('https://picsum.photos');
    background-size: 380px 380px; pointer-events: none;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s;
}


.flashing-bg { animation: strobe 0.1s infinite alternate; }
@keyframes strobe { 0% { background: #100; } 100% { background: #001; } }

.glitch-heavy { animation: screenShake 0.1s infinite; filter: hue-rotate(90deg) contrast(2); }
@keyframes screenShake {
    0% { transform: translate(2px, 1px) rotate(0deg); }
    50% { transform: translate(-2px, -1px) rotate(1deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

#victory-screen {
    position: absolute; text-align: center; z-index: 200;
}
#victory-screen.hidden { display: none; }

.neon-text {
    font-family: 'Orbitron', sans-serif; font-size: 72px; font-weight: 900;
    color: #fff; text-shadow: 0 0 10px #fff, 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue), 0 0 80px var(--neon-blue);
    animation: textPulse 0.5s infinite alternate;
}

.sub-neon { color: var(--neon-green); font-size: 20px; letter-spacing: 5px; margin-top: 15px; }

@keyframes textPulse { 0% { transform: scale(0.98); filter: brightness(1); } 100% { transform: scale(1.02); filter: brightness(1.3); } }
