/* Shown before the app bundle has loaded, so it must not depend on any stylesheet or font of the app. */
.boot-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1rem;
  background: #fff;
  color: #333;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  text-align: center;
}

.boot-screen__logo {
  width: 15rem;
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.boot-screen__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #f3d1c5;
  border-top-color: #e5673e;
  border-radius: 50%;
  animation: boot-screen-spin 0.8s linear infinite;
}

.boot-screen__title {
  margin: 0;
  font-size: 1.25rem;
}

.boot-screen__message {
  max-width: 36rem;
  margin: 0;
  line-height: 1.5;
}

.boot-screen--error .boot-screen__title,
.boot-screen--error .boot-screen__message,
.boot-screen__no-script {
  color: #dc2626;
}

.boot-screen__detail {
  max-width: 36rem;
  margin: 0;
  color: #777;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

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

@media (prefers-reduced-motion: reduce) {
  .boot-screen__spinner {
    animation-duration: 2.4s;
  }
}
