:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8f7f4;
}

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

.app-boot {
  box-sizing: border-box;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: #f8f7f4;
  color: #111c33;
}

.app-boot__card {
  display: flex;
  width: min(100%, 22rem);
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid #dedad2;
  border-radius: 0.875rem;
  background: #fffefa;
  box-shadow: 0 12px 36px rgb(17 28 51 / 0.12);
  text-align: center;
}

.app-boot__logo {
  display: block;
  width: min(100%, 13rem);
  height: auto;
}

.app-boot__spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 0.2rem solid #dedad2;
  border-top-color: #111c33;
  border-radius: 999px;
  animation: app-boot-spin 0.8s linear infinite;
}

.app-boot p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.app-boot__notice {
  color: #991b1b;
  font-weight: 600;
}

.app-boot__reload {
  box-sizing: border-box;
  min-height: 2.75rem;
  min-width: 8rem;
  padding: 0.65rem 1rem;
  border: 1px solid #111c33;
  border-radius: 0.5rem;
  background: #111c33;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.app-boot__reload:focus-visible {
  outline: 3px solid #f5b82e;
  outline-offset: 3px;
}

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

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

@media (prefers-color-scheme: dark) {
  :root,
  body,
  .app-boot {
    background: #080d18;
    color: #f1f5f9;
  }

  .app-boot__card {
    border-color: #1c2942;
    background: #101a2e;
    box-shadow: 0 12px 36px rgb(0 0 0 / 0.35);
  }

  .app-boot__spinner {
    border-color: #263653;
    border-top-color: #facc15;
  }

  .app-boot__reload {
    border-color: #facc15;
    background: #facc15;
    color: #111827;
  }
}
