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

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

#video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background: #000;
}

#controls {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 20px;
    transition: opacity 0.5s ease;
}

#progress-container {
    width: 100%;
    height: 3px;
    background: rgba(255, 0, 0, 0.2);
    cursor: pointer;
    transition: height 0.2s;
}

#progress-container:hover {
    height: 5px;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: #ff0000;
    transition: background 0.2s;
    box-shadow: 0 0 10px #ff0000;
}

#progress-container:hover #progress-bar {
    background: #ff0000;
    box-shadow: 0 0 15px #ff0000;
}

#credit {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

#credit:hover {
    opacity: 1;
}

#credit a {
    color: #ff0000;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 8px #ff0000;
    transition: all 0.3s;
}

#credit a:hover {
    text-shadow: 0 0 15px #ff0000;
    letter-spacing: 2px;
}

#start-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s;
}

#start-prompt.hidden {
    opacity: 0;
    pointer-events: none;
}

#start-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff0000;
    cursor: pointer;
    box-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
    transition: all 0.3s;
}

#start-dot:hover {
    box-shadow: 0 0 30px #ff0000, 0 0 60px #ff0000;
    transform: scale(1.1);
}

#start-dot.charging {
    animation: pulse 0.8s ease-in-out infinite;
}

#fullscreen-dot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff0000;
    cursor: pointer;
    box-shadow: 0 0 15px #ff0000, 0 0 30px #ff0000;
    z-index: 100;
    transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

#fullscreen-dot.visible {
    opacity: 0.8;
    pointer-events: auto;
}

#fullscreen-dot:hover {
    opacity: 1;
    box-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
    transform: scale(1.2);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
    }
    50% {
        transform: scale(1.5);
        box-shadow: 0 0 40px #ff0000, 0 0 80px #ff0000;
    }
}

.noise-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
    pointer-events: none;
    animation: particle-diffuse 1s ease-out forwards;
    top: 50%;
    left: 50%;
    margin: -3px 0 0 -3px;
}

@keyframes particle-diffuse {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

#start-dot.pressing {
    transition: transform 0.1s ease-out;
}
