/* Backdrop layer + scene — Volcano Caldera
   Background package: Volcano Caldera (scene id "volcano"). Built
   2026-11-09 for glass mode (Theme Button One), first worn by the
   Hungry Muse promotional site.

   The scene: a photorealistic look straight down into an active
   caldera (volcano.webp) — a lava lake webbed with fire cracks,
   smoke already painted into the photograph. The living part is
   CSS laid over it: a warm glow breathing over the lava lake
   (9 seconds, the setting is its keyframe span) and two soft smoke
   veils drifting slowly across the crater. Nothing jumps; every
   motion eases back the way it came.

   Family contract (every package in ~/workspace/support/backgrounds):
   - The layer shows only in a glass mode: the host sets
     data-resolved="glass" (Hungry Muse site) or data-theme="glass"
     (Night Drop family) on <html>, and data-glass-scene="volcano"
     when this scene is the visitor's choice. The choice is the
     host's to store; the site stores it under localStorage
     "wk-glass-backdrop" (default scene there is "ski").
   - The crater is dark, so the scrim is the lightest of the five
     scenes: a shade at the top and bottom edges only.
   - Motion parks when the host sets data-motion-paused="1" on
     <html> (this package's engine does it on page hide), and is
     removed entirely for prefers-reduced-motion. */

.hm-backdrop--volcano{position:fixed;inset:0;z-index:-1;display:none;overflow:hidden;pointer-events:none;background:#07080c}
:root[data-resolved="glass"][data-glass-scene="volcano"] .hm-backdrop--volcano,
:root[data-theme="glass"][data-glass-scene="volcano"] .hm-backdrop--volcano{display:block}
.hm-backdrop--volcano .hm-backdrop-photo{position:absolute;inset:0;background:url("volcano.webp") center 42%/cover no-repeat}
.hm-backdrop--volcano .hm-backdrop-glow{position:absolute;left:50%;top:45%;width:135vmin;height:135vmin;transform:translate(-50%,-50%);background:radial-gradient(circle,rgba(255,138,42,.34) 0%,rgba(255,94,20,.15) 38%,rgba(255,94,20,0) 68%);mix-blend-mode:screen;animation:hm-volcano-glow 9s ease-in-out infinite alternate;pointer-events:none}
@keyframes hm-volcano-glow{from{opacity:.5;transform:translate(-50%,-50%) scale(1)}to{opacity:1;transform:translate(-50%,-50%) scale(1.05)}}
.hm-backdrop--volcano .hm-backdrop-smoke{position:absolute;border-radius:50%;filter:blur(16px);background:radial-gradient(closest-side,rgba(203,213,227,.17),rgba(203,213,227,0) 72%);pointer-events:none}
.hm-backdrop--volcano .hm-backdrop-smoke.a{left:2%;top:12%;width:92vmin;height:48vmin;animation:hm-volcano-smoke-a 27s ease-in-out infinite alternate}
.hm-backdrop--volcano .hm-backdrop-smoke.b{right:-8%;top:36%;width:80vmin;height:42vmin;animation:hm-volcano-smoke-b 34s ease-in-out infinite alternate}
@keyframes hm-volcano-smoke-a{from{transform:translate(0,0) scale(1)}to{transform:translate(5%,-7%) scale(1.07)}}
@keyframes hm-volcano-smoke-b{from{transform:translate(0,0) scale(1.05)}to{transform:translate(-6%,-5%) scale(1)}}
.hm-backdrop--volcano .hm-backdrop-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,6,10,.32),rgba(5,6,10,.16) 45%,rgba(5,6,10,.46))}
:root[data-motion-paused="1"] .hm-backdrop--volcano *{animation-play-state:paused!important}
@media (prefers-reduced-motion:reduce){
  .hm-backdrop--volcano *{animation:none!important}
}
