/* The sky behind every chapter (built by js/lib/ambient.js) */
.ambient {
  position: fixed;
  inset: 0;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #FFE5EC 0%, #FFEBEE 48%, #FFF4EE 100%);
}
.sky-cloud { position: absolute; animation: cloud-drift var(--drift) ease-in-out var(--delay) infinite alternate; }
.sky-cloud svg { display: block; width: 100%; height: auto; }
.sky-sparkle { position: absolute; animation: twinkle var(--twinkle) ease-in-out var(--delay) infinite; }
.sky-sparkle svg { display: block; width: 100%; height: auto; }
@keyframes cloud-drift { from { transform: translateX(-18px); } to { transform: translateX(26px); } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.7) rotate(0deg); } 50% { opacity: .95; transform: scale(1) rotate(20deg); } }

@media (prefers-reduced-motion: reduce) {
  .sky-cloud, .sky-sparkle { animation: none; }
  .sky-sparkle { opacity: .6; }
}
