/* Mobile overview backgrounds: retain the full-width artwork, fade only its
   final 150 displayed pixels, then continue in solid black without repeating.
   No image edits, cropping, content-height changes, or desktop overrides. */
body.lm-mobile-background-fade {
  --lm-mobile-art-height: 200vw; /* Tall stars: 1920 x 3840. */
  --lm-mobile-fade-height: 150px;
  --lm-mobile-background-fade: linear-gradient(to bottom,
    transparent calc(var(--lm-mobile-art-height) - var(--lm-mobile-fade-height)),
    #000 var(--lm-mobile-art-height)) left top / 100% 100% no-repeat;
}
body.lm-mobile-background-fade.lm-environments-page {
  --lm-mobile-art-height: calc(100vw * 6400 / 1920);
}
@media (max-width: 800px) {
  html body.lm-pilot.lm-mobile-background-fade.lm-transparent-header .lm-page-backdrop,
  html body.lm-pilot.lm-mobile-background-fade .lm-glow-background-ready::before {
    background: var(--lm-mobile-background-fade),
      var(--lm-page-background, var(--lm-glow-background-image)) left top / 100% auto no-repeat #000;
  }
}
/* The site's held mobile layout also covers touch-device rotation. */
html.cf-mobile-layout-held body.lm-pilot.lm-mobile-background-fade.lm-transparent-header .lm-page-backdrop,
html.cf-mobile-layout-held body.lm-pilot.lm-mobile-background-fade .lm-glow-background-ready::before {
  background: var(--lm-mobile-background-fade),
    var(--lm-page-background, var(--lm-glow-background-image)) left top / 100% auto no-repeat #000;
}
