/* Loaded by the HTML so the session gate also applies before JavaScript starts. */
body.startup-pending {
  margin: 0;
  background: #10171f;
}

body.startup-pending > :not(#startupLoading) {
  display: none !important;
}

#startupLoading {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #10171f;
  color: #e4edf7;
  font-family: system-ui, sans-serif;
  text-align: center;
}

#startupLoading[hidden] {
  display: none;
}

#startupLoading p {
  margin: 0;
}

.startup-spinner {
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid #354457;
  border-top-color: #75e0bc;
  border-radius: 50%;
  animation: startup-spin 0.8s linear infinite;
}

@keyframes startup-spin {
  to {
    transform: rotate(360deg);
  }
}

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