/* Keep the decorative layer above the body background and behind its content. */
body {
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(circle, rgba(23, 107, 82, 0.45) 1px, transparent 2px),
    radial-gradient(circle, rgba(23, 107, 82, 0.4) 1.5px, transparent 2.5px),
    radial-gradient(circle, rgba(23, 107, 82, 0.35) 1px, transparent 2px);
  background-size: 383px 431px, 521px 367px, 647px 563px;
  background-position: 24px 36px, 147px 213px, 301px 97px;
  animation: ambient-particle-drift 60s ease-in-out infinite alternate;
}

/* The body retains the tracker theme; only its full-page shells are clear. */
html[data-app="net-worth"] #root > .bg-background {
  background-color: transparent;
}

@keyframes ambient-particle-drift {
  to {
    background-position: 60px 12px, 119px 249px, 321px 65px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}
