/* ============================================================
   NEONODE — ANIMAZIONI DEL KIT (riusate da TUTTE le finestre)
   "Ogni finestra si materializza": non compare di scatto.
   ============================================================ */

@keyframes nn-materializza {
  0%   { opacity: 0; transform: scale(.92) translateY(6px); filter: brightness(1.9);
         clip-path: inset(48% 0 48% 0); }
  55%  { opacity: 1; filter: brightness(1.2);
         clip-path: inset(0 0 0 0); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes nn-smaterializza {
  0%   { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(.96) translateY(4px); clip-path: inset(50% 0 50% 0); }
}
@keyframes nn-entra-basso {
  0%   { opacity: 0; transform: translateY(12px) scale(.98); }
  100% { opacity: 1; transform: none; }
}
@keyframes nn-esci-alto {
  0%   { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-8px); }
}

.nn-anim-in  { animation: nn-materializza   .26s cubic-bezier(.2,.8,.2,1) both; }
.nn-anim-out { animation: nn-smaterializza  .2s  ease-in both; }

/* i toast scivolano invece di tagliarsi */
.nn-toast.nn-anim-in  { animation: nn-entra-basso .22s ease-out both; }
.nn-toast.nn-anim-out { animation: nn-esci-alto   .2s  ease-in  both; }

/* rispetto di chi ha disattivato le animazioni nel telefono */
@media (prefers-reduced-motion: reduce) {
  .nn-anim-in, .nn-anim-out { animation-duration: .001s; }
}
