/* Animation styles */
@keyframes sparkle {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

@keyframes clap {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

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

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

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

/* Animation classes */
.sparkle {
    animation: sparkle 0.5s infinite;
}

.clap {
    animation: clap 0.5s ease-in-out;
}

.fade-in {
    animation: fadeIn 0.5s forwards;
}

.slide-in {
    animation: slideIn 0.5s forwards;
}

.pulse {
    animation: pulse 0.8s infinite;
}

.bounce {
    animation: bounce 1s infinite;
}

.slide-in-up {
    animation: slideInUp 0.5s forwards;
}

/* Slot states */
.slot.drag-over {
    background-color: rgba(var(--primary-color-rgb, 74, 134, 232), 0.3);
    border: 3px dashed var(--accent-color);
    transform: scale(1.1);
}

/* Feedback styles */
.feedback-popup.success {
    background-color: var(--success-color);
    color: white;
}

.feedback-popup.error {
    background-color: var(--error-color);
    color: white;
}

.feedback-popup.info {
    background-color: var(--primary-color);
    color: white;
}

/* Character dragging state */
.draggable.dragging {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Game completion celebration */
.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    animation: fall 3s linear forwards;
}

/* Transition for slot fills */
.slot > img {
    transition: all 0.3s ease;
    animation: fadeIn 0.5s forwards;
}