/* Available before the application bundle: no landing-page flash on reload. */
#app-bootstrap { display: none; }
html[data-app-boot="pending"] #root { visibility: hidden; }
html[data-app-boot="pending"] #app-bootstrap { display: grid; position: fixed; inset: 0; z-index: 1000; }

.app-startup-screen {
  align-items: center;
  background: radial-gradient(ellipse at 20% 12%, #e9defb 0, transparent 45%), radial-gradient(ellipse at 88% 84%, #f5e4ee 0, transparent 44%), #f7f5f9;
  box-sizing: border-box;
  color: #211a2d;
  display: grid;
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  justify-items: center;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.app-startup-screen .app-loading-screen {
  align-content: center;
  align-items: center;
  background: rgb(255 255 255 / 78%);
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 32px;
  box-shadow: 0 24px 80px rgb(92 70 180 / 9%);
  box-sizing: border-box;
  display: grid;
  gap: 24px;
  justify-items: center;
  min-height: 0;
  padding: 38px 32px 32px;
  text-align: center;
  width: min(100%, 420px);
}
.app-startup-screen .app-loading-screen__art {
  animation: app-entry-float 3s ease-in-out infinite;
  filter: drop-shadow(0 14px 22px rgb(101 68 177 / 18%));
  height: 144px;
  object-fit: contain;
  width: 144px;
}
.app-startup-screen .app-loading-screen__copy { display: grid; gap: 12px; justify-items: center; max-width: 330px; }
.app-startup-screen .brand-wordmark { align-items: center; color: #6845d7; display: inline-flex; font-family: inherit; font-size: 21px; gap: .24em; letter-spacing: -.055em; line-height: 1.15; margin: 0 0 4px; white-space: nowrap; }
.app-startup-screen .brand-wordmark__skin { font-weight: 700; }
.app-startup-screen .brand-wordmark__mate { font-weight: 300; }
.app-startup-screen .brand-wordmark__drop { color: #6c4be0; height: .7em; margin-left: .08em; width: .7em; }
.app-startup-screen .app-loading-screen__copy h1 { color: #211a2d; font-size: clamp(26px, 5vw, 30px); font-weight: 700; letter-spacing: -.045em; line-height: 1.15; margin: 0; }
.app-startup-screen .app-loading-screen__copy p { color: #7a7186; font-size: 14px; line-height: 1.6; margin: 0; }
.app-loading-screen__spinner {
  animation: app-entry-spin 900ms linear infinite;
  border: 2px solid #e3daf7;
  border-top-color: #7652df;
  border-radius: 50%;
  box-sizing: border-box;
  display: block;
  height: 24px;
  width: 24px;
}
@keyframes app-entry-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes app-entry-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  .app-startup-screen .app-loading-screen { background: transparent; border-color: transparent; box-shadow: none; padding: 24px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-startup-screen .app-loading-screen__art, .app-loading-screen__spinner { animation: none; }
}
