.saturn-scene {
  position:absolute;inset:0;overflow:hidden;pointer-events:none;direction:ltr;
  container-type:size;isolation:isolate;
  background:radial-gradient(ellipse at 90% 47%,#100c20 0%,#060511 54%,#03040c 93%);
}
.cosmic-backdrop > .saturn-scene {display:none}
html.earth-home[data-world=saturn] .cosmic-backdrop > .saturn-scene {display:block;z-index:4}
html.earth-home[data-world=saturn][data-theme] .cosmic-backdrop,
html.earth-home[data-world=saturn][data-theme] body.has-messages .cosmic-backdrop {background:#060511}
html.earth-home[data-world=saturn] .cosmic-backdrop::before,
html.earth-home[data-world=saturn] .cosmic-backdrop::after,
html.earth-home[data-world=saturn] body.has-messages .cosmic-backdrop::before,
html.earth-home[data-world=saturn] #earth-city-trigger,
html.earth-home[data-world=saturn] #earth-surface,
html.earth-home[data-world=saturn] .earth-city-point,
html.earth-home[data-world=saturn] .nebula-canvas {display:none}

.saturn-plate {
  --plate-image:url('/assets/saturn-system.webp');
  position:absolute;
  width:var(--saturn-art-width,min(105cqw,190cqh));
  aspect-ratio:1672/941;
  left:var(--saturn-art-x,73%);top:var(--saturn-art-y,50%);
  transform:translate(-69.25%,-46.3%);
}
.saturn-system {
  position:absolute;inset:0;background:var(--plate-image) center/100% 100% no-repeat;
  transform-origin:69.25% 46.3%;
  isolation:isolate;
}
kurus-saturn-winds {
  display:block;position:absolute;left:52.85%;top:17.21%;
  width:32.63%;aspect-ratio:1;mix-blend-mode:overlay;
}
kurus-saturn-winds canvas {display:block;width:100%;height:100%}
.saturn-ring-light {
  display:none;position:absolute;inset:0;
  background:url('/assets/saturn-ringlight.webp') center/100% 100% no-repeat;
  mask-image:linear-gradient(103deg,transparent 30%,#000 49%,transparent 67%);
  mask-size:190% 100%;mask-repeat:no-repeat;
  mix-blend-mode:screen;
}
.saturn-moon-orbit {
  position:absolute;width:67%;height:41%;left:69.25%;top:46.3%;
  transform:translate(-50%,-50%) rotate(-18.3deg);
}
.saturn-moon {
  position:absolute;left:9%;top:77%;
  width:clamp(3px,.55cqw,10px);aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle at 80% 28%,#f4dcbb 0%,#a99a90 27%,#484654 62%,#21212d 85%);
  box-shadow:0 0 2px #fbe2be36;
}
.saturn-preview-sky {
  position:absolute;inset:0;overflow:hidden;pointer-events:none;
  --saturn-art-width:min(82cqw,238cqh);--saturn-art-x:73%;--saturn-art-y:51%;
}
html[data-chat-layout=scenic] body.has-messages .cosmic-backdrop .saturn-scene {
  --saturn-art-width:min(152cqw,205cqh);--saturn-art-x:50%;--saturn-art-y:49%;
}
@media(max-width:1050px) and (orientation:portrait) {
  html.earth-home[data-world=saturn] body:not(.has-messages) .saturn-scene {
    --saturn-art-width:min(144cqw,205cqh);--saturn-art-x:52%;--saturn-art-y:49%;
  }
}
@media(max-width:849px) {
  html[data-chat-layout=scenic] body.has-messages .cosmic-backdrop .saturn-scene {
    --saturn-art-width:min(145cqw,192cqh);--saturn-art-x:53%;--saturn-art-y:58%;
  }
}
@media(max-width:640px) {
  .saturn-preview-sky {--saturn-art-width:min(122cqw,166cqh);--saturn-art-x:54%;--saturn-art-y:30%}
}

@keyframes saturn-view-orbit {
  0%,100% {transform:translate(-.18%,0) rotate(-.75deg) scaleX(.997)}
  25% {transform:translate(0,-.22%) rotate(0) scaleX(1)}
  50% {transform:translate(.18%,0) rotate(.75deg) scaleX(.997)}
  75% {transform:translate(0,.22%) rotate(0) scaleX(.995)}
}
@keyframes saturn-ring-sheen {
  from {mask-position:100% 0}
  to {mask-position:0% 0}
}
@keyframes saturn-moon-pass {
  from {offset-distance:0%}
  to {offset-distance:100%}
}
/* The moon goes behind the planet during the far half of the orbit. */
@keyframes saturn-moon-eclipse {
  0%,61%,88%,100% {opacity:1}
  63%,86% {opacity:0}
}
@media(prefers-reduced-motion:no-preference) {
  html:is([data-motion=subtle],[data-motion=cinematic]) .saturn-system {animation:saturn-view-orbit 116s ease-in-out -13s infinite}
  html:is([data-motion=subtle],[data-motion=cinematic]) .saturn-ring-light {display:block;animation:saturn-ring-sheen 26s ease-in-out -8s infinite alternate}
  @supports(offset-path:ellipse(50% 50% at 50% 50%)) {
    html:is([data-motion=subtle],[data-motion=cinematic]) .saturn-moon {
      left:0;top:0;offset-path:ellipse(50% 50% at 50% 50%);
      offset-anchor:center;offset-rotate:0deg;
      animation:saturn-moon-pass 70s linear -32s infinite,saturn-moon-eclipse 70s linear -32s infinite;
    }
  }
}
html[data-saturn-paused] .saturn-scene *,html[data-saturn-paused] .saturn-scene *::before,
html[data-quiet=true] body.has-messages .cosmic-backdrop .saturn-scene *,
html[data-quiet=true] body.has-messages .cosmic-backdrop .saturn-scene *::before {animation-play-state:paused}
