/* The page canvas matches `src/index.css`'s `html` / `html.dark` rules,
   so the transition from boot screen to page never changes color. */
html {
  background-color: #f7f7fa;
  color-scheme: light;
}
html.dark {
  background-color: #050a18;
  color-scheme: dark;
}

/* The boot screen itself is unlayered and id-scoped on purpose: it must
   keep rendering untouched while the (layered) main stylesheet lands. */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7f7fa;
  color: #18181b;
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease, visibility 200ms ease;
}
html.dark #boot-screen {
  background-color: #050a18;
  color: #a7b0c2;
}
#boot-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#boot-screen .boot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
/* Same recipe as `BrandLogo`: the mark is opaque with its own near-black
   background, so the tile matches it in both themes. box-sizing is
   pinned because the main stylesheet's reset only arrives later. */
#boot-screen .boot-logo {
  box-sizing: border-box;
  display: flex;
  width: 72px;
  height: 72px;
  padding: 6px;
  overflow: hidden;
  border-radius: 18px;
  background-color: #050212;
}
#boot-screen .boot-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* System fonts only: the wordmark must not reflow when the web fonts
   finish loading behind the screen. */
#boot-screen .boot-wordmark {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
#boot-screen .boot-spinner {
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #6d4aff;
  border-top-color: transparent;
  animation: boot-spin 800ms linear infinite;
}
html.dark #boot-screen .boot-spinner {
  border-color: #8b6bff;
  border-top-color: transparent;
}
#boot-screen .boot-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@keyframes boot-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  #boot-screen {
    transition: none;
  }
  #boot-screen .boot-spinner {
    animation: none;
    opacity: 0.65;
  }
}
