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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 90%;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.status-indicator {
    font-size: 1.2rem;
    padding: 8px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.status-indicator.waiting {
    background: rgba(255, 165, 0, 0.3);
    border-color: rgba(255, 165, 0, 0.6);
    animation: pulse 1s infinite;
}

.status-indicator.countdown {
    background: rgba(255, 69, 0, 0.3);
    border-color: rgba(255, 69, 0, 0.6);
    animation: pulse 0.5s infinite;
}

.status-indicator.running {
    background: rgba(0, 255, 0, 0.3);
    border-color: rgba(0, 255, 0, 0.6);
}

.status-indicator.paused {
    background: rgba(255, 255, 0, 0.3);
    border-color: rgba(255, 255, 0, 0.6);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.timer-display {
    margin: 40px 0;
}

.countdown {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: countdownPulse 1s ease-in-out;
}

@keyframes countdownPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shootExplosion {
    0% { 
        transform: scale(0.5) rotate(-10deg); 
        opacity: 0;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    25% { 
        transform: scale(1.5) rotate(5deg); 
        opacity: 1;
        text-shadow: 0 0 50px rgba(255, 215, 0, 1), 0 0 100px rgba(255, 69, 0, 0.8);
    }
    50% { 
        transform: scale(1.2) rotate(-2deg); 
        opacity: 1;
        text-shadow: 0 0 60px rgba(255, 0, 0, 1), 0 0 120px rgba(255, 215, 0, 0.9);
    }
    75% { 
        transform: scale(1.3) rotate(3deg); 
        opacity: 1;
        text-shadow: 0 0 80px rgba(255, 255, 255, 1), 0 0 150px rgba(255, 69, 0, 1);
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1;
        text-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    }
}

@keyframes screenFlash {
    0% { background: rgba(255, 255, 255, 0); }
    15% { background: rgba(255, 215, 0, 0.3); }
    30% { background: rgba(255, 69, 0, 0.2); }
    45% { background: rgba(255, 255, 255, 0.4); }
    60% { background: rgba(255, 215, 0, 0.15); }
    100% { background: rgba(255, 255, 255, 0); }
}

@keyframes containerShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-5px) rotateZ(-1deg); }
    20% { transform: translateX(5px) rotateZ(1deg); }
    30% { transform: translateX(-3px) rotateZ(-0.5deg); }
    40% { transform: translateX(3px) rotateZ(0.5deg); }
    50% { transform: translateX(-2px) rotateZ(-0.25deg); }
    60% { transform: translateX(2px) rotateZ(0.25deg); }
    70% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    90% { transform: translateX(0); }
}

.countdown.animate {
    animation: countdownPulse 1s ease-in-out;
}

.countdown.shoot-explosion {
    animation: shootExplosion 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(45deg, #ffd700, #ff6b6b, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown.countdown-three {
    background: linear-gradient(45deg, #00ff00, #32cd32, #228b22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 0, 0.8), 0 0 60px rgba(50, 205, 50, 0.6);
    font-weight: 900;
}

.countdown.countdown-two {
    background: linear-gradient(45deg, #ffd700, #ffb347, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 165, 0, 0.6);
    font-weight: 900;
}

.countdown.countdown-one {
    background: linear-gradient(45deg, #ff4500, #ff6b6b, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 69, 0, 0.8), 0 0 60px rgba(255, 0, 0, 0.6);
    font-weight: 900;
}

.container.shake {
    animation: containerShake 1s ease-in-out;
}

body.flash {
    animation: screenFlash 1s ease-out;
}

.timer {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 40px;
    border-radius: 15px;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.controls {
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.instruction {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.key {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.action {
    font-weight: 600;
}

.start-btn, .reset-btn {
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.start-btn {
    background: rgba(0, 255, 0, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.6);
}

.start-btn:hover:not(:disabled) {
    background: rgba(0, 255, 0, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.4);
}

.start-btn:disabled {
    background: rgba(128, 128, 128, 0.3);
    cursor: not-allowed;
    border-color: rgba(128, 128, 128, 0.3);
}

.reset-btn {
    background: rgba(255, 69, 0, 0.8);
    border: 1px solid rgba(255, 69, 0, 0.6);
}

.reset-btn:hover:not(:disabled) {
    background: rgba(255, 69, 0, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
}

.reset-btn:disabled {
    background: rgba(128, 128, 128, 0.3);
    cursor: not-allowed;
    border-color: rgba(128, 128, 128, 0.3);
}

.footer {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer p {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .countdown {
        font-size: 3rem;
        height: 80px;
    }
    
    .timer {
        font-size: 2rem;
        padding: 15px 30px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .buttons {
        order: 1;
    }
    
    .instruction {
        order: 2;
        margin-top: 15px;
    }
} 