/* Eisberg Hosting · original geometric backdrop artwork.
 * Contract: the integrator owns selection/visibility and the common motion state.
 * Defaults are a complete static composition. No motion starts implicitly.
 * Theme variables are local to their scene; no content/layout selectors change.
 */
[data-lb-scene="crystal"],
[data-lb-scene="aurora"] {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: paint;
}
[data-lb-scene="crystal"] { opacity: var(--dt-cr-scene-opacity, 1); }
[data-lb-scene="aurora"] { opacity: var(--dt-au-scene-opacity, 1); }
[data-lb-scene="crystal"] .dt-cr-art,
[data-lb-scene="aurora"] .dt-au-art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
/* Inline SVG colors have these dark fallbacks as well, so standalone files work. */
html[data-theme="dark"] [data-lb-scene="crystal"] {
  --dt-cr-base: #10251f;
  --dt-cr-green: #65ac0f;
  --dt-cr-gold: #d0941d;
  --dt-cr-paper: #f1eedf;
  --dt-cr-shadow: #10251f;
}
html[data-theme="dark"] [data-lb-scene="aurora"] {
  --dt-au-base: #10251f;
  --dt-au-green: #65ac0f;
  --dt-au-gold: #d0941d;
  --dt-au-paper: #f1eedf;
  --dt-au-shadow: #10251f;
}
html[data-theme="light"] [data-lb-scene="crystal"] {
  --dt-cr-base: #f3f0e6;
  --dt-cr-green: #65ac0f;
  --dt-cr-gold: #d0941d;
  --dt-cr-paper: #fffdf5;
  --dt-cr-shadow: #35513d;
}
html[data-theme="light"] [data-lb-scene="aurora"] {
  --dt-au-base: #f3f0e6;
  --dt-au-green: #65ac0f;
  --dt-au-gold: #d0941d;
  --dt-au-paper: #fffdf5;
  --dt-au-shadow: #35513d;
}
[data-lb-scene="crystal"] .lb-motion,
[data-lb-scene="aurora"] .lb-motion {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: none;
  animation-play-state: paused;
}
/* Only a selected, dynamic scene may own an animation. Pausing retains its phase.
 * Static / off / inactive / reduced-motion keep animation:none from the base rule.
 */
@media (prefers-reduced-motion: no-preference) {
  html[data-motif="crystal"][data-backdrop="dynamic"] [data-lb-scene="crystal"] .dt-cr-depth {
    animation: dt-cr-depth-drift 43s ease-in-out -11s infinite alternate paused;
  }
  html[data-motif="crystal"][data-backdrop="dynamic"] [data-lb-scene="crystal"] .dt-cr-body {
    animation: dt-cr-body-drift 33s ease-in-out -8s infinite alternate paused;
  }
  html[data-motif="crystal"][data-backdrop="dynamic"] [data-lb-scene="crystal"] .dt-cr-near {
    animation: dt-cr-near-drift 27s ease-in-out -5s infinite alternate paused;
  }
  html[data-motif="aurora"][data-backdrop="dynamic"] [data-lb-scene="aurora"] .dt-au-depth {
    animation: dt-au-depth-drift 44s ease-in-out -13s infinite alternate paused;
  }
  html[data-motif="aurora"][data-backdrop="dynamic"] [data-lb-scene="aurora"] .dt-au-curtain {
    animation: dt-au-curtain-drift 35s ease-in-out -9s infinite alternate paused;
  }
  html[data-motif="aurora"][data-backdrop="dynamic"] [data-lb-scene="aurora"] .dt-au-foreground {
    animation: dt-au-foreground-drift 29s ease-in-out -6s infinite alternate paused;
  }
  html[data-motif="crystal"][data-backdrop="dynamic"][data-backdrop-motion="running"] [data-lb-scene="crystal"] .lb-motion,
  html[data-motif="aurora"][data-backdrop="dynamic"][data-backdrop-motion="running"] [data-lb-scene="aurora"] .lb-motion {
    animation-play-state: running;
  }
}
/* No shape, filter, layout or color property is animated. */
@keyframes dt-cr-depth-drift {
  from { transform: translate(-12px, 8px) scale(1.015); opacity: .49; }
  to { transform: translate(15px, -12px) scale(1.045); opacity: .61; }
}
@keyframes dt-cr-body-drift {
  from { transform: translate(-11px, 17px) rotate(-.8deg) scale(1.01); }
  to { transform: translate(19px, -19px) rotate(.9deg) scale(1.035); }
}
@keyframes dt-cr-near-drift {
  from { transform: translate(25px, -9px) rotate(.65deg) scale(1.04); opacity: .8; }
  to { transform: translate(-24px, 25px) rotate(-.8deg) scale(1.015); opacity: .94; }
}
@keyframes dt-au-depth-drift {
  from { transform: translate(-18px, 7px) scale(1.03); opacity: .53; }
  to { transform: translate(26px, -16px) scale(1.055); opacity: .72; }
}
@keyframes dt-au-curtain-drift {
  from { transform: translate(-26px, 15px) rotate(-1deg) scale(1.025); opacity: .87; }
  to { transform: translate(30px, -18px) rotate(1deg) scale(1.045); opacity: 1; }
}
@keyframes dt-au-foreground-drift {
  from { transform: translate(30px, -18px) rotate(.7deg) scale(1.04); opacity: .81; }
  to { transform: translate(-31px, 21px) rotate(-.8deg) scale(1.025); opacity: .95; }
}
