/* CSS transitions and keyframes */

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

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fadeIn {
    animation: fadeIn 0.25s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-slideInUp {
    animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Canvas overlay hints */
.overlay-hint {
    animation: slideInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
