:root {
  --orbital-art: url('/assets/mosaic/jovian-rings.webp');
}

:where(.ink-garden-host) {
  position: relative;
}

.ink-garden-output {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
}

.sky-window {
  display: block;
  position: relative;
  height: clamp(58px, 5.4vw, 80px);
  overflow: hidden;
  pointer-events: none;
  background-color: var(--paper);
  background-image: var(--orbital-art);
  background-repeat: no-repeat;
  background-size: 100% clamp(275px, 50vw, 970px);
  background-position: right 56%;
}

/* Keep the still artwork available during image decoding and to no-JS browsers.
   Once the first dithered frame is painted, the canvas owns the entire image. */
.sky-window[data-ink-ready] {
  background-image: none;
}

@media (max-width: 680px) {
  :root {
    --orbital-art: url('/assets/mosaic/jovian-rings-mobile.webp');
  }

  .sky-window {
    height: 58px;
    background-size: 100% auto;
    background-position: right 57%;
  }

  .discovery-hero:has(.market-prompt:not([hidden])) .sky-window {
    background-position: right 80%;
  }
}
