html {
  background: #16161a;
  color-scheme: dark;
}

body {
  margin: 0;
  background: #16161a;
  color: #f8fafc;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.boot-loader {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: inherit;
}

.boot-loader__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.boot-loader__spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 2px solid rgba(71, 85, 105, 0.55);
  border-top-color: #ef4444;
  animation: boot-loader-spin 0.8s linear infinite;
}

.boot-loader__eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.boot-loader__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
}

@keyframes boot-loader-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

html.light {
  background: #ffffff;
  color-scheme: light;
}

html.light body {
  background: #ffffff;
  color: #0f172a;
}

html.light .boot-loader__spinner {
  border-color: rgba(148, 163, 184, 0.4);
  border-top-color: #dc2626;
}

html.light .boot-loader__eyebrow,
html.light .boot-loader__title {
  color: #64748b;
}

html.dark body {
  background: #16161a;
  color: #f8fafc;
}

html.dark .boot-loader__spinner {
  border-color: rgba(71, 85, 105, 0.55);
  border-top-color: #ef4444;
}

html.dark .boot-loader__eyebrow,
html.dark .boot-loader__title {
  color: #94a3b8;
}

@media (prefers-color-scheme: dark) {
  html:not(.light) {
    color-scheme: dark;
  }
}

@media (prefers-color-scheme: light) {
  html:not(.dark) {
    color-scheme: light;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-loader__spinner {
    animation: none;
  }
}
