/* Optional full-screen constellation layer. Remove its link for the compact backdrop. */
@media (min-width: 1051px) and (hover: hover) and (pointer: fine) {
  body,
  body:has(#content[data-page="tier-list"]) {
    background-image:
      var(--leyra-sky-pattern),
      url("./leyra-desktop-sky.svg"),
      radial-gradient(ellipse at 86% 9%, var(--leyra-sky-color), transparent 68%),
      radial-gradient(ellipse at 0% 85%, #6847923b, transparent 53%),
      radial-gradient(ellipse at 100% 83%, #6b459239, transparent 48%),
      linear-gradient(126deg, #1a1424 0%, #131019 46%, #171121 100%);
    background-size: min(950px, 72vw) auto, cover, cover, cover, cover, cover;
    background-repeat: no-repeat;
    background-position: right max(0px, calc((100% - 1550px) / 2)) top 54px, center, center, center, center, center;
    background-attachment: fixed;
  }
}
/* Keep the compact top motif; add a quieter chart lower on narrow and touch screens. */
@media (max-width: 1050px), (hover: none), (pointer: coarse) {
  body { isolation: isolate; }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      url("./leyra-mobile-sky.svg") center bottom / max(100%, 450px) 100% no-repeat,
      radial-gradient(ellipse at 5% 88%, var(--leyra-sky-color), transparent 58%) center / cover no-repeat,
      radial-gradient(ellipse at 94% 92%, #60408627, transparent 53%) center / cover no-repeat;
  }
}
@media (forced-colors: active) {
  body, body:has(#content[data-page="tier-list"]) { background-image: none; }
  body::before { content: none; }
}
