/* Painterly skies remain intact. Only the whole painted sky gently drifts;
   baked-in planets are not cut out/redrawn. Wisps and stars are separate layers. */
.card-page { --ambient-tint: 173 192 236; }
.card-page.love-journey { --ambient-tint: 238 156 182; }
.card-page.health-journey { --ambient-tint: 133 198 231; }
.card-page.goodluck-journey { --ambient-tint: 168 211 157; }
.card-page.wealth-journey { --ambient-tint: 235 193 126; }
.ambient-sky {
  position: fixed; inset: 0; z-index: 1; overflow: hidden;
  pointer-events: none; contain: strict;
}
.ambient-sky * { pointer-events: none; }
.ambient-cloud {
  position: absolute; width: clamp(150px, 32vw, 520px); height: 44vh;
  border-radius: 50%; opacity: .28;
  background: radial-gradient(ellipse at 30% 40%, rgb(var(--ambient-tint) / .22), transparent 65%),
    radial-gradient(ellipse at 65% 65%, rgb(var(--ambient-tint) / .16), transparent 66%);
  animation: ambient-cloud-drift 24s ease-in-out infinite alternate;
}
.ambient-cloud--0 { left: -12%; top: 12%; animation-delay: -8s; }
.ambient-cloud--1 { right: -12%; bottom: 8%; animation-duration: 31s; animation-delay: -21s; }
.ambient-star {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: rgb(var(--ambient-tint)); box-shadow: 0 0 5px rgb(var(--ambient-tint) / .4);
  animation: ambient-star-drift var(--cycle) var(--phase) ease-in-out infinite alternate;
}
/* Transform the existing illustration rather than introducing vector planets.
   Small overscan hides edges; all content stays still on its own z-index. */
.card-page > :is(.love-sky-glow,.health-sky-glow,.goodluck-sky-glow,.wealth-sky-glow),
.home-journey::before {
  animation: ambient-painted-sky 36s -12s ease-in-out infinite alternate;
}
.home-journey::before {
  content: ''; position: fixed; inset: 0; z-index: 0;
  background: inherit; pointer-events: none;
}
.ambient-paused .ambient-sky > *,
.ambient-paused .home-meteor,
.ambient-paused .card-page > :is(.love-sky-glow,.health-sky-glow,.goodluck-sky-glow,.wealth-sky-glow),
.ambient-paused .home-journey::before { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .ambient-sky > *,
  .card-page > :is(.love-sky-glow,.health-sky-glow,.goodluck-sky-glow,.wealth-sky-glow),
  .home-journey::before { animation: none !important; transform: none !important; }
  .ambient-star { opacity: .25; }
  .home-journey::before { display: none; }
}
@keyframes ambient-cloud-drift {
  from { transform: translate3d(-8px, 8px, 0) scale(.98); opacity: .28; }
  to { transform: translate3d(18px, -12px, 0) scale(1.04); opacity: .48; }
}
@keyframes ambient-star-drift {
  from { transform: translate3d(0, 3px, 0); opacity: .16; }
  to { transform: translate3d(3px, -5px, 0); opacity: .62; }
}
@keyframes ambient-painted-sky {
  from { transform: scale(1.018) translate3d(-2px, 1px, 0); }
  to { transform: scale(1.032) translate3d(2px, -3px, 0); }
}
