/* Early theme paint (loaded from index.html before the app bundle). */
html.dark-theme {
  color-scheme: dark;
  background-color: #000;
}

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

.app-splash {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
}

html.light-theme .app-splash {
  color: #1a1a1a;
  background-color: #fff;
}

html.dark-theme .app-splash {
  color: #f5f5f5;
  background-color: #000;
}

.app-splash__logo {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 0.5rem;
}

html.light-theme .app-splash__logo--dark {
  display: none;
}

html.dark-theme .app-splash__logo--light {
  display: none;
}

.app-splash__brand {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.app-splash__message {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  opacity: 0.7;
}

.app-splash__spinner {
  box-sizing: border-box;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.25rem;
  border: 2px solid rgba(128, 128, 128, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: app-splash-spin 0.8s linear infinite;
}

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