/* Motion belongs to the celestial scene; surrounding type stays still. */
.planet-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}
.planet-surface.is-ready { opacity: 1; }
.planet::before {
  opacity: .34;
  background: repeating-linear-gradient(20deg, transparent 0 9px, #c7b4c04d 12px 16px, transparent 21px 34px);
  animation: planet-fallback-turn 40s linear infinite;
}
.planet::after { z-index: 3; opacity: .56; pointer-events: none; }
.planet-haze { z-index: 0; }
.orbit-one { animation: orbit-drift 100s linear infinite; }
.orbit-two { animation: orbit-drift 140s linear infinite reverse; }
.orbit-three { animation: outer-orbit-drift 165s linear infinite; }
.heart-constellation {
  transform-origin: 49% 40%;
  animation: constellation-float 10s ease-in-out infinite;
}
.ring-lights {
  position: absolute;
  top: -8px;
  left: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  overflow: visible;
  fill: none;
  pointer-events: none;
}
.ring-lights ellipse {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  animation: ring-revolve 20s linear infinite;
}
.ring-trail {
  stroke: #e8cbb7;
  stroke-width: 1.3;
  stroke-dasharray: 9 91;
  opacity: .48;
}
.ring-traveler {
  stroke: #ffe3c6;
  stroke-width: 3.6;
  stroke-dasharray: .01 99.99;
  filter: drop-shadow(0 0 3px #f7c7a5);
}
.ring-lights .ring-traveler-two {
  stroke-width: 2.5;
  opacity: .7;
  animation-duration: 27s;
  animation-delay: -14s;
}
.celestial-art[data-motion="paused"] *,
.celestial-art[data-motion="paused"] *::before,
.celestial-art[data-motion="paused"] *::after {
  animation-play-state: paused !important;
}
.motion-toggle {
  position: absolute;
  top: 0;
  left: 5%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid #d8b4a329;
  border-radius: 28px;
  background: #10121d88;
  color: #b8a3a5;
  font-size: 9px;
  letter-spacing: 1px;
  transition: color .2s, border-color .2s;
}
.motion-toggle:hover { color: #f2d4c4; border-color: #dfb8a666; }
.motion-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.motion-play-icon { display: none; }
.motion-toggle[data-paused="true"] .motion-pause-icon { display: none; }
.motion-toggle[data-paused="true"] .motion-play-icon { display: block; }
@keyframes planet-fallback-turn {
  from { transform: rotate(-13deg); }
  to { transform: rotate(347deg); }
}
@keyframes orbit-drift {
  from { transform: translate(-50%, -50%) rotate(-33deg); }
  to { transform: translate(-50%, -50%) rotate(327deg); }
}
@keyframes outer-orbit-drift {
  from { transform: translate(-50%, -50%) rotate(-18deg); }
  to { transform: translate(-50%, -50%) rotate(342deg); }
}
@keyframes ring-revolve {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -100; }
}
@keyframes constellation-float {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50% { transform: translateY(-7px) rotate(.6deg); }
}
@media (max-width: 760px) {
  .motion-toggle { top: 4%; left: 0; min-height: 40px; font-size: 8px; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .heart-constellation { transform: none; }
}
