html.theme-booting {
  --boot-bg: #ffffff;
  --boot-surface: #ffffff;
  --boot-accent: #0f172a;
  --boot-text: #0f172a;
  --boot-muted: #94a3b8;
  background: var(--boot-bg);
}

html.theme-booting body {
  min-height: 100vh;
  background: var(--boot-bg);
  color: var(--boot-text);
}

html.theme-booting #root {
  min-height: 100vh;
  background: var(--boot-bg);
}

html.theme-booting #root > * {
  opacity: 0;
  visibility: hidden;
}

html.theme-booting::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #ffffff;
}

html.theme-booting::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2147483001;
  width: 1.75rem;
  height: 1.75rem;
  min-width: 0;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(15, 23, 42, 0.12);
  border-top-color: rgba(15, 23, 42, 0.55);
  border-radius: 999px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  animation: boot-spin 0.8s linear infinite;
}

html.theme-booting #root::before {
  content: none;
}

html.theme-booting #root::after {
  content: none;
}

@keyframes boot-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.theme-booting::after {
    animation: none;
  }
}
