/* COUNTDOWN GAME */
.countdown-wrapper {
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
}

/* Timer display */
.countdown-timer-area {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

.countdown-timer {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-green);
    letter-spacing: 4px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.countdown-timer.timer-warning {
    color: var(--accent-yellow);
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
}

.countdown-timer.timer-urgent {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.countdown-timer.timer-shake {
    animation: timerShake 0.5s ease;
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

@keyframes timerShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

/* Counter */
.countdown-counter {
    font-size: 1rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* +5 bonus animation */
.time-bonus {
    position: absolute;
    top: 0;
    right: 20%;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-green);
    animation: bonusFloat 1s ease-out forwards;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

@keyframes bonusFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(1.3);
    }
}

/* Answer slots */
.countdown-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.countdown-slot {
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
}

.countdown-slot.found {
    background: rgba(34, 197, 94, 0.15);
    border-color: var(--accent-green);
    color: var(--accent-green);
    animation: slotReveal 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.countdown-slot.missed {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: rgba(239, 68, 68, 0.7);
}

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

/* RESPONSIVE */
@media (max-width: 480px) {
    .countdown-timer {
        font-size: 3rem;
    }

    .countdown-slot {
        padding: 10px 14px;
        font-size: 0.8rem;
        min-width: 80px;
    }
}
