/* Class Boss Challenge Styling */
.ttc-boss-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #312e81 0%, #0f172a 100%);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: k12-boss-rumble 0.1s infinite;
}

@keyframes k12-boss-rumble {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    70% {
        transform: translate(-1px, 1px) rotate(1deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.k12-boss-container {
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    background: rgba(15, 23, 42, 0.95);
    border: 3px solid #ef4444;
    border-radius: 40px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 100px rgba(239, 68, 68, 0.3);
    position: relative;
    overflow-y: auto;
}

.k12-boss-header {
    text-align: center;
    margin-bottom: 40px;
}

.boss-avatar-large {
    font-size: 8rem;
    display: block;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px #ef4444);
    animation: boss-pulse 2s infinite ease-in-out;
}

@keyframes boss-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px #ef4444);
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 40px #ef4444);
    }
}

.boss-title-red {
    color: #ef4444;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0;
}

.boss-timer-container {
    position: absolute;
    top: 40px;
    right: 60px;
    text-align: right;
}

.boss-timer {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.boss-question-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 40px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    text-align: center;
}

.boss-question-text {
    color: white;
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.boss-progress-bar {
    width: 200px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
}

.boss-progress-fill {
    height: 100%;
    background: #ef4444;
    width: 0%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.boss-answer-input {
    width: 100%;
    max-width: 500px;
    background: rgba(15, 23, 42, 1);
    border: 2px solid #ef4444;
    border-radius: 20px;
    padding: 20px;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 30px;
    outline: none;
    text-align: center;
}

.boss-victory-screen {
    text-align: center;
    padding: 100px;
}

.boss-victory-title {
    color: #10b981;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
}