.cover:has(.motion-scene) { isolation: isolate; }
.motion-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  --motion-gold: #f3c982;
}
.motion-atmosphere {
  position: absolute;
  inset: -8%;
  background: radial-gradient(ellipse at 50% 16%, #ffdea56b, transparent 53%);
  animation: ays-scene-light 13s ease-in-out infinite alternate;
}
.motion-landscape {
  position: absolute;
  width: min(110%, 780px);
  height: min(48%, 380px);
  object-fit: contain;
  object-position: bottom;
  bottom: -1%;
  left: 50%;
  opacity: .63;
  animation: ays-scene-depth 15s ease-in-out infinite alternate;
}
.cover.photo .motion-landscape { opacity: .36; }
.motion-detail {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--motion-gold);
  box-shadow: 0 0 10px #ffe3a4a6;
  animation: ays-scene-drift var(--period) var(--phase) ease-in-out infinite alternate;
}
[data-scene="garden"] .motion-atmosphere {
  background: radial-gradient(ellipse at 25% 19%, #fff0c763, transparent 52%);
}
[data-scene="garden"] .motion-detail {
  width: 9px;
  height: 15px;
  border-radius: 90% 20% 80% 30%;
  background: color-mix(in srgb, var(--accent, #9f6739), #fff4da 38%);
  box-shadow: none;
}
[data-scene="light"] .motion-atmosphere {
  background: radial-gradient(ellipse at 78% 28%, #ffe5b563, transparent 43%);
  mix-blend-mode: screen;
}
[data-scene="light"] .motion-detail { width: 3px; height: 3px; }
[data-scene="paper"] .motion-atmosphere {
  background: repeating-linear-gradient(130deg, transparent 0 8%, #d5b78117 12%, transparent 19%);
}
[data-scene="play"] .motion-detail,
[data-scene="paper"] .motion-detail {
  border-radius: 1px;
  box-shadow: none;
  background: color-mix(in srgb, var(--accent, #b28653), #ffe5b5 24%);
}
.order-no-flowers [data-scene="garden"] .motion-detail { display: none; }
.opening-active .motion-scene *, .opened .motion-scene * { animation-play-state: paused; }
.live-preview .motion-scene *, .order-no-motion .motion-scene * { animation: none; }
.motion-landscape { transform: translateX(-50%); }
@keyframes ays-scene-depth {
  from { transform: translateX(-50%) scale(1); }
  to { transform: translate(-51.5%, -3%) scale(1.045); }
}
@keyframes ays-scene-light {
  from { transform: translate3d(-3%, 1%, 0) scale(1); opacity: .38; }
  to { transform: translate3d(4%, -2%, 0) scale(1.12); opacity: .85; }
}
@keyframes ays-scene-drift {
  from { transform: translate3d(-7px, 18px, 0) rotate(-25deg); opacity: .22; }
  to { transform: translate3d(12px, -26px, 0) rotate(62deg); opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-scene * { animation: none !important; }
}
