/* Unified FX — ambient + reveal */

.tca-fx-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.tca-fx-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.38;
  animation: tcaFxOrb 18s cubic-bezier(0.32, 0.72, 0, 1) infinite alternate;
}

.tca-fx-bg__orb--1 {
  width: 20rem;
  height: 20rem;
  top: -5rem;
  left: -4rem;
  background: oklch(42% 0.1 165 / 0.32);
}

.tca-fx-bg__orb--2 {
  width: 16rem;
  height: 16rem;
  top: 38%;
  right: -4rem;
  background: oklch(55% 0.12 88 / 0.2);
  animation-delay: -6s;
}

.tca-fx-bg__orb--3 {
  width: 12rem;
  height: 12rem;
  bottom: 8%;
  left: 22%;
  background: oklch(48% 0.12 155 / 0.16);
  animation-delay: -10s;
}

.tca-fx-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.028;
  background-image:
    linear-gradient(oklch(72% 0.1 88 / 0.5) 1px, transparent 1px),
    linear-gradient(90deg, oklch(72% 0.1 88 / 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
}

@keyframes tcaFxOrb {
  to {
    transform: translate(1.25rem, -0.75rem) scale(1.04);
  }
}

.tca-reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  filter: blur(4px);
  transition:
    opacity 0.75s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.75s cubic-bezier(0.32, 0.72, 0, 1),
    filter 0.75s cubic-bezier(0.32, 0.72, 0, 1);
  transition-delay: var(--tca-delay, 0ms);
}

.tca-reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

body.tca-page .store-wrap,
body.tca-page .app-container,
body.tca-page .auth-wrap,
body.tca-page .store-wrap > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .tca-fx-bg__orb,
  .tca-reveal {
    animation: none;
    filter: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.deposit-page .tca-fx-bg,
body.tr-page .tca-fx-bg,
body.dpay-page .tca-fx-bg,
body.sepay-page .tca-fx-bg,
body.nt-page .tca-fx-bg,
body.dh-page .tca-fx-bg,
body.scratch-page .tca-fx-bg,
body.blind-box-list-page .tca-fx-bg,
body.blind-box-play-page .tca-fx-bg {
  display: none;
}
