/* ===== Kesan animasi dikongsi (lihat public/js/fx.js) ===== */

/* Kabus berkilau: atas segala-galanya tetapi tak halang tekanan */
.fx-sparkle { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 70; pointer-events: none; }

/* Huruf muncul satu demi satu */
[data-fx-letters] .fx-word { display: inline-block; white-space: nowrap; }
[data-fx-letters] .fx-ch { display: inline-block; }
[data-fx-letters].fx-go .fx-ch {
  opacity: 0; transform: translateY(.35em) scale(.9); filter: blur(4px);
  animation: fx-letter .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 55ms + 150ms);
}
@keyframes fx-letter { to { opacity: 1; transform: none; filter: blur(0); } }

@media (prefers-reduced-motion: reduce) {
  .fx-sparkle { display: none; }
  [data-fx-letters].fx-go .fx-ch { animation: none; opacity: 1; transform: none; filter: none; }
}
