/* One illustrated world behind every app screen. Component surfaces and the
   actual chapter maps keep their own styles. */
html:root {
  background: #9aaa8f !important;
}

/* A viewport layer avoids tiling on long pages and stretching the scene to
   document height. Large viewport units keep Android toolbar motion from
   repeatedly resizing the artwork. It cannot intercept taps or cover content. */
html:root::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  background: #9aaa8f url('/assets/backgrounds/academy-forest-wide.webp') center / cover no-repeat;
}

@media (orientation: portrait) {
  html:root::before {
    background-image: url('/assets/backgrounds/academy-forest-portrait.webp');
  }
}

html:root body {
  background: transparent !important;
}

@media print {
  html:root { background: white !important }
  html:root::before { display: none }
}
