/* The effect under test. Scope rules to `body.fx-on` so the lab toggle (F) can compare with and without. */

/* fx.js: the page dissolved into particles + feedback, matted in by the noise pattern. Clicks pass through. */
.fx-grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2147483000;
  opacity: 0;
  transition: opacity 0.6s ease;
}
body.fx-on .fx-grain {
  opacity: 1;
}

/* fx-bg: only the body's background image is dissolved; the canvas sits behind all content (above the body's
   background, which the root paints), so the UI stays in the foreground */
body.fx-bg .fx-grain {
  z-index: -1;
}

/* fx-bg: images marked .fx-under are drawn into the background's snapshot and dissolved with it; once the effect
   runs (body.fx-live) their DOM copies make way. Opacity, not visibility, so fx.js still sees them to draw them. */
body.fx-on.fx-bg.fx-live .fx-under {
  opacity: 0;
}
