/* Backgrounds: light beams and mint mesh
   .env-rays (js/motion/03-light-beams.js) and .env-mesh (05-white-mesh.js) layers.
   Part of the ENVY visual layer: files are loaded in numeric order and later files win — keep the order. See ../../README.md */
/* light beams (aurora / light through water) — minimal, slow, cool teal with a hint of green */
.env-rays { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.env-ray {
  position: absolute; bottom: -22%; left: var(--x); width: var(--w); height: 165%;
  transform-origin: 50% 100%; rotate: var(--r); opacity: 1;
  background: linear-gradient(to top, rgba(92,176,190,var(--a)) 0%, rgba(58,138,150,calc(var(--a) * .5)) 38%, rgba(40,100,112,0) 82%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 50%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 50%, transparent 100%);
  will-change: rotate, opacity;
  animation: env-ray-sway var(--d, 18s) ease-in-out var(--dl, 0s) infinite alternate;
}
.env-ray-g { background: linear-gradient(to top, rgba(60,200,150,var(--a)) 0%, rgba(40,150,120,calc(var(--a) * .5)) 40%, rgba(30,110,90,0) 82%); }
@keyframes env-ray-sway {
  0%   { rotate: calc(var(--r) - 2.5deg); opacity: .55; }
  50%  { opacity: 1; }
  100% { rotate: calc(var(--r) + 2.5deg); opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
  .env-ray { animation: none; }
}
/* the rays stand still everywhere (as on the sphere): a rotating masked gradient layer was re-composited every frame — in the player block that alone was ~25% of the frame time (measured with the test panel's ablation) */
.env-ray { animation: none !important; will-change: auto; opacity: .85; }
/* white blocks: mesh gradient — soft mint pools + faint vertical light lines, fading up into the white */
.env-mesh { opacity: .72; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; z-index: -1; overflow: hidden; pointer-events: none; border-radius: inherit; }
.env-mesh-b { height: 56%; }
.env-mesh i { position: absolute; inset: -6% -8%; display: block; will-change: translate; }
.env-mesh i:last-child { will-change: auto; }
@keyframes env-mesh-drift { from { translate: -3% 0; } to { translate: 3% -2.5%; } }
@media (prefers-reduced-motion: reduce) {
  .env-mesh i { animation: none; }
}
/* white blocks: ONE hue only (mint). A calm tilted mint ribbon at the bottom + hairlines at the same angle; no blue / yellow / apricot. */
.env-mesh i:first-child {
  background:
    linear-gradient(116deg, rgba(255,255,255,0) 20%, rgba(120,236,208,.46) 40%, rgba(96,226,196,.58) 50%, rgba(255,255,255,0) 72%),
    linear-gradient(to top, rgba(176,248,228,.42) 0%, rgba(255,255,255,0) 78%);
  animation: env-mesh-drift 34s ease-in-out infinite alternate;
}
.env-mesh i:last-child { display: none; }
/* SMOOTHNESS: FAQ accordion, mesh geometry, last-block layers */
/* mesh height no longer depends on the panel height (it changed every frame while the accordion opened) */
.env-mesh { height: clamp(420px, 62vh, 680px) !important; }
.env-mesh-b { height: clamp(380px, 56vh, 620px) !important; }
/* white blocks: no tilted ribbon (its box edge showed as a hard line) — just two very soft mint pools at the bottom edge that fade out well inside the box */
.env-mesh i:first-child {
  background:
    radial-gradient(52% 46% at 64% 100%, rgba(112,232,204,.30) 0%, rgba(150,242,220,.14) 42%, rgba(255,255,255,0) 100%),
    radial-gradient(40% 36% at 16% 100%, rgba(176,248,228,.26) 0%, rgba(255,255,255,0) 100%) !important;
}
