/* Base Styles */
body {
    background-color: #0a0a0a;
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', sans-serif;
    color: #00ff00;
    height: 100vh;
    overflow: hidden;
    touch-action: manipulation;
}

.container {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Clock Styles */
.clock {
    font-size: clamp(30px, 8vw, 60px);
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00;
}

/* Input Slots */
.slots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.slot-input {
    width: 15vw;
    height: 20vw;
    max-width: 80px;
    max-height: 100px;
    border: 2px solid #aaa;
    border-radius: 5px;
    text-align: center;
    font-size: clamp(24px, 8vw, 40px);
    background-color: rgba(0, 0, 0, 0.5);
    color: #00ff00;
    outline: none;
    caret-color: transparent;
    transition: all 0.3s ease;
}

.slot-input:focus {
    border-color: #00ff00;
    box-shadow: 0 0 15px #00ff00;
}

.slot-input.invalid {
    border-color: red;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Button Styles */
.ok-btn {
    background-color: red;
    border: none;
    padding: 15px 40px;
    font-size: clamp(20px, 5vw, 24px);
    color: white;
    cursor: pointer;
    box-shadow: 0 0 10px red, 0 0 20px red;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.ok-btn:hover {
    background-color: #cc0000;
}

.ok-btn:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

@keyframes flashRed {
    0% { background-color: #0a0a0a; }
    20% { background-color: rgba(255, 0, 0, 0.7); }
    100% { background-color: #0a0a0a; }
}

.flash-red {
    animation: flashRed 0.5s ease-out;
}

@keyframes blinkEffect {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.blink {
    animation: blinkEffect 1s infinite;
}

.fast-blink {
    animation: blinkEffect 0.3s infinite;
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.confetti {
    position: absolute;
    opacity: 1;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Win/Lose Messages */
.win-message {
    position: relative;
    z-index: 200;
}

.glow-green {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 40px #00ff00;
}

.glow-red {
    color: red;
    text-shadow: 0 0 5px red, 0 0 10px red, 0 0 20px red, 0 0 40px red;
}

.game-over-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

.game-over-screen h1 {
    font-size: clamp(30px, 8vw, 60px);
    text-align: center;
}

/* Video */
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: fixed;
    top: 0;
    left: 0;
}

/* Volume Control */
.volume-control {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 80%;
    max-width: 300px;
}

.volume-control label {
    font-size: clamp(14px, 3vw, 16px);
}

.volume-control input {
    width: 100%;
}