/* 레벨 클리어 오버레이 */
.level-clear-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    animation: fadeIn 0.5s ease;
}

.clear-message {
    text-align: center;
    color: white;
}

.clear-message h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: bounceIn 0.6s ease;
}

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

.btn-large {
    font-size: 1.5rem;
    padding: 20px 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease 0.3s backwards;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.btn-large:hover {
    transform: translateY(-5px) scale(1.05);
}

/* 인라인 퀴즈 스타일 */
.quiz-inline {
    margin-top: 30px;
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    animation: slideUp 0.5s ease 0.3s backwards;
}

.quiz-inline-question {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.quiz-inline-options {
    display: grid;
    gap: 12px;
}

.quiz-inline-option {
    background: white;
    border: 3px solid #ddd;
    border-radius: 10px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.quiz-inline-option:hover {
    border-color: #667eea;
    transform: translateX(5px);
    background: #f0f0ff;
}

.quiz-inline-option.correct {
    border-color: #4caf50;
    background: #e8f5e9;
    animation: correctBounce 0.5s ease;
}

.quiz-inline-option.incorrect {
    border-color: #ff6b6b;
    background: #ffebee;
    animation: shake 0.5s ease;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 클리어 통계 */
.clear-stats {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.clear-stats p {
    font-size: 1.3rem;
    margin: 10px 0;
}

/* 반응형 */
@media (max-width: 768px) {
    .clear-message h2 {
        font-size: 2rem;
    }
    
    .btn-large {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
    
    .clear-stats p {
        font-size: 1.1rem;
    }
}

