"use client"; import { useEffect, useState } from "react"; /** * The fixed ice scene behind every screen: a navy (or pale) base, four soft * glacier blobs and glossy ice orbs that rise slowly through the open band * and fade at its edges. Purely decorative — it never intercepts pointer * events, only transform/opacity animate (each on its own composited layer), * the rise stops under `prefers-reduced-motion`, and everything parks while * the tab is hidden or the window has lost focus, so a page nobody is * looking at costs no compositor work. */ export function IceBackdrop() { const [paused, setPaused] = useState(false); useEffect(() => { const apply = () => setPaused(document.hidden || !document.hasFocus()); apply(); document.addEventListener("visibilitychange", apply); window.addEventListener("focus", apply); window.addEventListener("blur", apply); return () => { document.removeEventListener("visibilitychange", apply); window.removeEventListener("focus", apply); window.removeEventListener("blur", apply); }; }, []); return (