/* Feedback Messages */
.feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card-solid);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 44px 64px;
    border-radius: 32px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    z-index: 100;
    text-align: center;
    display: none;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.feedback.show {
    display: block;
    animation: feedbackPop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes feedbackPop {
    0% { transform: translate(-50%, -50%) scale(0.5) rotate(-5deg); opacity: 0; }
    60% { transform: translate(-50%, -50%) scale(1.1) rotate(2deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}

.feedback.correct {
    border-color: var(--success);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), var(--glow-success);
}

.feedback.wrong {
    border-color: var(--error);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 30px rgba(244, 63, 94, 0.3);
}

.feedback-text {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.feedback.correct .feedback-text {
    color: var(--success);
}

.feedback.wrong .feedback-text {
    color: var(--error);
}

.feedback-emoji {
    font-size: 72px;
    margin-bottom: 16px;
    display: block;
}

.feedback.correct .feedback-emoji {
    animation: celebrate 0.6s ease-out;
}

@keyframes celebrate {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-15deg); }
    50% { transform: scale(1.3) rotate(15deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99;
    display: none;
}

.overlay.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

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

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 101;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s ease-out forwards;
    will-change: transform, opacity;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}
