/* The boot loader paints the background the app's first frame paints, so
   there is no colour jump. Dark is the app's own default (ThemeCubit); light
   applies only when boot-loader.js finds the user's hint on <html>.
   Compact (<600px) matches AppTheme.scaffoldBackgroundColor; wider windows
   match WebTheme's canvas (AppColors.deepCanvasDark / aquaCanvasLight). */
:root { --boot-bg: #0F1B22; }
html[data-boot-theme="light"] { --boot-bg: #F1F6F8; }
@media (max-width: 599.98px) {
  :root { --boot-bg: #1E252B; }
  html[data-boot-theme="light"] { --boot-bg: #F5F7F9; }
}
/* Short landscape (height < 480, wider than tall) is compact too: window_class.dart. */
@media (min-width: 600px) and (max-height: 479.98px) and (orientation: landscape) {
  :root { --boot-bg: #1E252B; }
  html[data-boot-theme="light"] { --boot-bg: #F5F7F9; }
}
html { color-scheme: dark; }
html[data-boot-theme="light"] { color-scheme: light; }
html, body { margin: 0; height: 100%; background: var(--boot-bg); }
#boot-loader {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: var(--boot-bg);
  transition: opacity 200ms ease-out;
}
#boot-loader.boot-loader-hide { opacity: 0; pointer-events: none; }
#boot-loader img {
  width: min(52vw, 189px); height: auto;
}
@media (prefers-reduced-motion: reduce) {
  #boot-loader { transition: none; }
}
