/* ==========================================================
   HORROR SOLITAIRE - motion
   ========================================================== */

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

@keyframes dealIn {
    from {
        opacity: 0;
        transform: translateY(-14px) scale(0.97);
    }
    to {
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 2px #c9a45f, 0 8px 18px rgba(0, 0, 0, 0.6); }
    50%      { box-shadow: 0 0 0 2px #e0bd76, 0 0 22px rgba(224, 189, 118, 0.6), 0 8px 18px rgba(0, 0, 0, 0.6); }
}

.card.selected {
    animation: pulseGlow 1.6s ease-in-out infinite;
}

.overlay-card {
    animation: dealIn 0.45s ease-out;
}

/* A card in flight should not animate its own transform. */
.drag-layer .card {
    animation: none;
    transition: none;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
