/* ==========================================================
   FX ENGINE V8 — Final Edition (Theme-Safe & Collision-Free)
========================================================== */

/* ==========================================================
   IDLE FX — micro movimento universale
========================================================== */
@keyframes fxIdle {
    0%,100% { transform: scale(1); opacity: 1; }
    50%     { transform: scale(1.015); opacity: .96; }
}

/* Idle applicato solo quando richiesto */
[data-fx="idle"] img,
.fx-idle {
    animation: fxIdle 4.5s ease-in-out infinite;
}


/* ==========================================================
   SIGIL FX — ottimizzati per Theme Engine v8
========================================================== */

/* Rotazione lenta — ora isolata dal scale dell’idle */
@keyframes fxRoll {
    from { rotate: 0deg; }
    to   { rotate: 360deg; }
}

[data-fx="roll"] img {
    animation:
        fxIdle 6s ease-in-out infinite,
        fxRoll 18s linear infinite;
    transform-origin: center center;
}


/* ==========================================================
   CARD FX — transizioni leggere e non invasive
========================================================== */

/* Slide-in (entrata elementi) */
@keyframes fxCardSlide {
    from { opacity: 0; translate: 0 14px; }
    to   { opacity: 1; translate: 0 0; }
}

.fx-card-slide {
    animation: fxCardSlide .45s ease-out;
}

/* Glow morbido (usa accent2, più visibile nei temi chiari) */
@keyframes fxCardGlow {
    0%,100% { box-shadow: 0 0 10px var(--accent2); }
    50%     { box-shadow: 0 0 22px var(--accent2); }
}

.fx-card-glow {
    animation: fxCardGlow 1.6s ease-in-out infinite;
}


/* ==========================================================
   POPUP FX — disabilitati
   (interamente gestiti in popup.css v8)
========================================================== */


/* ==========================================================
   BACK TO TOP — non incluso (presente in layout.css)
========================================================== */
