/* exonware-site-web/public/boot.css
   Linked from index.html so Vite 7 does not inline this as html-proxy CSS. */
html,
body {
  /* This sheet remains loaded after XWUI starts. Yield to its active color
     token so the early light fallback cannot sit behind dark-mode text. */
  background: var(--bg-app, #fdf9f4);
  margin: 0;
}
html[data-theme='exonware-dark'],
html[data-theme='exonware-dark'] body {
  background: var(--bg-app, #081524);
}
/* The theme the site draws in, until XWUI's own stylesheet for it has arrived. */
html:is([data-theme='shadcn-dark'], [data-theme='dark'], [data-theme='night'], [data-theme='dark-true-gray']),
html:is([data-theme='shadcn-dark'], [data-theme='dark'], [data-theme='night'], [data-theme='dark-true-gray']) body {
  background: var(--bg-app, #09090b);
}
/* A phone or tablet sees the orbit at once, before any script has run (user, 8-Nov-2026: about 10 s of black on a
   tablet while the page and the planet loaded). The still is the engine's own orbit view (media/orbit-*.webp); the
   boot screen, the planet's stage and the page all draw over it. Raw colour as above: this sheet runs before
   XWUI's tokens exist. */
@media (pointer: coarse) and (hover: none), (max-width: 759px) {
  html[data-theme] {
    background: #09090b url('/media/orbit-portrait.webp') center / cover no-repeat fixed;
  }
  html[data-theme] body { background: transparent; }
}
@media (pointer: coarse) and (hover: none) and (orientation: landscape) {
  html[data-theme] { background-image: url('/media/orbit-landscape.webp'); }
}
/* A phone opens on the whole planet in the middle (user, 12-Nov-2026; planet/orbit-intro.ts touchOrbitFrame), so its
   still is that very frame: media/orbit-phone.webp, captured from the engine at the phone home (390 x 860 CSS px at 2x,
   21 KB). The engine fits the globe to the screen's width and centres it, so the still is laid the same way (100% auto,
   centred) and stands where the 3D will on any phone's height. It was the tablet's close orbit, cropped, and read as a
   blurred piece of an unknown planet until the 3D came (user, 13-Nov-2026, iPhone 17 Pro). The canvas fades in over
   it (mobile.css). */
@media (max-width: 599px), (pointer: coarse) and (hover: none) and (max-height: 599px) {
  html[data-theme] {
    background: #09090b url('/media/orbit-phone.webp') center / 100% auto no-repeat fixed;
  }
}
