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

body {
    overflow: hidden;
    background: #000;
    font-family: 'Courier New', monospace;
}

#visualizer {
    display: block;
    width: 100vw;
    height: 100vh;
    background: #000;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Permission Overlay */
.permission-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #000 0%, #1a0000 50%, #000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: scanlines 8s linear infinite;
}

.permission-content {
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    animation: glitchText 2s infinite;
}

.permission-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 
        3px 3px 0 #ff0000,
        -3px -3px 0 #00ff00,
        0 0 20px #ffff00;
    letter-spacing: 0.3rem;
}

.permission-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ffff00;
    text-shadow: 2px 2px 0 #000;
}

#startButton {
    padding: 1rem 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ff0000, #ffff00, #00ff00);
    border: 4px solid #fff;
    color: #000;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
    letter-spacing: 0.2rem;
}

#startButton:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 0 40px rgba(255, 255, 0, 0.8);
}

#startButton:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes scanlines {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

@keyframes glitchText {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
    98% {
        transform: translate(2px, 2px);
    }
}

/* Hidden state */
.permission-overlay.hidden {
    display: none;
}
