* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a1a;
    color: #e0e0e0;
    font-family: 'IBM Plex Mono', monospace;
    min-height: 100vh;
    overflow-x: hidden;
}

/* CRT Scanline overlay */
.crt-overlay {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 3px
    );
    z-index: 9999;
}

/* Vignette */
.vignette {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
    z-index: 9998;
}

/* Title glow */
.neon-title {
    font-family: 'Press Start 2P', cursive;
    color: #00ffcc;
    text-shadow:
        0 0 7px #00ffcc,
        0 0 10px #00ffcc,
        0 0 21px #00ffcc,
        0 0 42px #0fa,
        0 0 82px #0fa;
    animation: flicker 4s infinite alternate;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.85; }
}

/* Drop zone pulse */
.drop-zone-pulse {
    animation: zonePulse 2s ease-in-out infinite;
}

@keyframes zonePulse {
    0%, 100% { border-color: #00ffcc44; box-shadow: 0 0 20px #00ffcc11; }
    50% { border-color: #00ffcc99; box-shadow: 0 0 40px #00ffcc33; }
}

.drop-zone-active {
    border-color: #00ffcc !important;
    box-shadow: 0 0 60px #00ffcc55 !important;
    background: rgba(0, 255, 204, 0.05) !important;
}

/* Retro button */
.retro-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    padding: 10px 16px;
    border: 2px solid #00ffcc;
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.retro-btn:hover {
    background: rgba(0, 255, 204, 0.25);
    box-shadow: 0 0 15px #00ffcc55;
    transform: translateY(-1px);
}

.retro-btn:active {
    transform: translateY(1px);
}

.retro-btn.active {
    background: #00ffcc;
    color: #0a0a1a;
    box-shadow: 0 0 20px #00ffcc66;
}

.retro-btn.magenta {
    border-color: #ff00aa;
    color: #ff00aa;
    background: rgba(255, 0, 170, 0.1);
}

.retro-btn.magenta:hover {
    background: rgba(255, 0, 170, 0.25);
    box-shadow: 0 0 15px #ff00aa55;
}

.retro-btn.magenta.active {
    background: #ff00aa;
    color: #0a0a1a;
}

.retro-btn.amber {
    border-color: #ffaa00;
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.retro-btn.amber:hover {
    background: rgba(255, 170, 0, 0.25);
    box-shadow: 0 0 15px #ffaa0055;
}

/* Volume slider */
input[type="range"].retro-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(90deg, #00ffcc33, #00ffcc);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

input[type="range"].retro-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00ffcc;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffcc88;
    cursor: pointer;
}

input[type="range"].retro-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00ffcc;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffcc88;
    cursor: pointer;
    border: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111128; }
::-webkit-scrollbar-thumb { background: #00ffcc44; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00ffcc88; }

/* Terminal box */
.terminal-box {
    background: #050510;
    border: 1px solid #00ffcc33;
    border-radius: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    line-height: 1.5;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    color: #33ff33;
}

/* Oscilloscope canvas */
.scope-canvas {
    border: 1px solid #33ff3344;
    border-radius: 8px;
    background: #020208;
    box-shadow: inset 0 0 30px rgba(51, 255, 51, 0.03);
}

/* VU meter */
.vu-meter-bg {
    background: #0a0a1a;
    border: 1px solid #333;
    border-radius: 3px;
}

/* Channel label colors */
.ch-color-0 { color: #00ffcc; border-color: #00ffcc; }
.ch-color-1 { color: #ff00aa; border-color: #ff00aa; }
.ch-color-2 { color: #ffaa00; border-color: #ffaa00; }
.ch-color-3 { color: #33ff33; border-color: #33ff33; }
.ch-color-4 { color: #ff6633; border-color: #ff6633; }
.ch-color-5 { color: #6633ff; border-color: #6633ff; }
.ch-color-6 { color: #33ccff; border-color: #33ccff; }
.ch-color-7 { color: #ff33cc; border-color: #ff33cc; }

/* Info panel */
.info-panel {
    background: linear-gradient(135deg, #0d0d22 0%, #111138 100%);
    border: 1px solid #00ffcc22;
    border-radius: 12px;
}

@media (max-width: 640px) {
    .neon-title { font-size: 14px !important; }
    .retro-btn { font-size: 8px; padding: 8px 10px; }
}