html,
body,
#app {
  height: 100%;
}

body {
  margin: 0;
  background: #f5f7fb;
}

html[data-theme='dark'] body {
  background: #09090b;
}

.initial-loading {
  align-items: center;
  background: #f5f7fb;
  color: #64748b;
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  gap: 14px;
  inset: 0;
  justify-content: center;
  position: fixed;
  transition: opacity 160ms ease;
  z-index: 9999;
}

html[data-theme='dark'] .initial-loading {
  background: #09090b;
  color: #a1a1aa;
}

.initial-loading.is-ready {
  opacity: 0;
  pointer-events: none;
}

.initial-loading-spinner {
  animation: initial-loading-spin 800ms linear infinite;
  border: 3px solid rgb(255 171 87 / 24%);
  border-radius: 50%;
  border-top-color: #e48b2b;
  height: 30px;
  width: 30px;
}

html[data-theme='dark'] .initial-loading-spinner {
  border-color: rgb(255 185 109 / 22%);
  border-top-color: #ffb96d;
}

.initial-loading span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

@media (prefers-reduced-motion: reduce) {
  .initial-loading,
  .initial-loading-spinner {
    animation: none;
    transition: none;
  }
}
