/* ============================================
   BONUS TIMER
   ============================================ */

.bonus-timer-container {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: timerPulse 2s infinite, timerAppear 0.5s ease-out;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    animation-fill-mode: forwards;
}

@keyframes timerAppear {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes timerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.timer-label {
    font-size: 0.75rem;
    color: #EF4444;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: monospace;
    color: #F87171;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    line-height: 1;
}

.timer-display.urgent {
    color: #FF0000;
    animation: urgentBlink 0.5s ease-in-out infinite alternate;
}

.timer-display.expired {
    color: #6B7280;
    text-shadow: none;
}

@keyframes urgentBlink {
    from {
        opacity: 1;
        text-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    }

    to {
        opacity: 0.7;
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    }
}

/* Last Chance State */
.timer-display.last-chance {
    color: #FBBF24;
    font-size: 1.3rem;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
    animation: lastChancePulse 0.8s ease-in-out infinite;
    font-family: var(--font-family);
    letter-spacing: 1px;
}

.bonus-timer-container.last-chance-active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    border: 2px solid rgba(251, 191, 36, 0.6);
    animation: lastChanceGlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
}

.bonus-timer-container.last-chance-active .timer-label {
    color: #FBBF24;
    animation: labelShake 0.5s ease-in-out infinite;
}

@keyframes lastChancePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes lastChanceGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), 0 0 40px rgba(251, 191, 36, 0.2);
        border-color: rgba(251, 191, 36, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.6), 0 0 60px rgba(251, 191, 36, 0.3);
        border-color: rgba(251, 191, 36, 0.9);
    }
}

@keyframes labelShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(2px);
    }
}