.app-boot-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(24px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  place-items: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #dff7ef 0%, #dbeafe 48%, #f5f3ff 100%);
  opacity: 1;
  transition: opacity .18s ease;
}

html[data-whatdew-boot="pending"] .app-boot-screen,
html[data-whatdew-boot="leaving"] .app-boot-screen {
  display: grid;
}

html[data-whatdew-boot="leaving"] .app-boot-screen {
  opacity: 0;
  pointer-events: none;
}

.app-boot-card {
  width: min(100%, 340px);
  padding: 28px 24px;
  border: 1px solid rgba(79, 70, 229, .12);
  border-radius: 28px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 22px 60px rgba(51, 35, 63, .14);
  text-align: center;
  backdrop-filter: blur(14px);
}

.app-boot-mark {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 24px rgba(79, 70, 229, .12);
  font-size: 2.6rem;
  line-height: 1;
}

.app-boot-card h1 {
  margin: 0;
  color: #33233f;
  font-size: clamp(1.45rem, 7vw, 1.9rem);
  line-height: 1.05;
}

.app-boot-card p {
  margin: 9px 0 0;
  color: #6d6474;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.45;
}

.app-boot-dots {
  display: inline-flex;
  margin-top: 18px;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.app-boot-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #7c3aed;
  animation: app-boot-pulse .9s ease-in-out infinite alternate;
}

.app-boot-dots span:nth-child(2) { animation-delay: .15s; }
.app-boot-dots span:nth-child(3) { animation-delay: .3s; }

@keyframes app-boot-pulse {
  from { opacity: .28; transform: translateY(2px) scale(.86); }
  to { opacity: 1; transform: translateY(-2px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .app-boot-screen { transition: none; }
  .app-boot-dots span { animation: none; opacity: .72; transform: none; }
}
