/* Shared by the HTML cold-start screen and React's later loading states.
   One timeline: the mark shows for a split second, spins backwards into
   the rainbow loading ring, and the ring keeps spinning until the app is ready. */
.app-boot-screen {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  margin: 0 !important; padding: 0 !important;
  background: #fff !important;
  transition: opacity 220ms ease;
}
.boot { position: relative; width: 112px; height: 112px; }
/* Installed phone app: same size and spot as the phone's own launch screen,
   so the hand-off from the native splash doesn't jump. */
.boot-native .boot { width: min(200px, 50vw); height: min(200px, 50vw); }
.boot-logo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  animation: boot-spinup 1.1s cubic-bezier(0.55, 0, 0.9, 0.4) 300ms forwards;
  will-change: transform, filter, opacity;
}
.boot-ring-wrap {
  position: absolute; inset: 7%;
  opacity: 0; transform: scale(1.08); filter: blur(8px);
  animation: boot-ring-in 450ms cubic-bezier(0.2, 0.8, 0.2, 1) 950ms forwards;
}
.boot-ring-wrap.on { opacity: 1; transform: none; filter: none; animation: none; }
/* A reload in the same session (sign-in hand-off, update) never replays the
   logo: it goes straight to the loading ring. */
.boot-replay .boot-logo { display: none; }
.boot-replay .boot-ring-wrap { opacity: 1; transform: none; filter: none; animation: none; }
.boot-ring {
  position: absolute; inset: 0; border-radius: 9999px;
  background: conic-gradient(from 0deg, #ff6a00, #ff1f3d, #d100ff, #7a00ff, #1f6bff, #00e0ff, #00ff8c, #ffd000, #ff6a00);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61.5%, #000 70%, transparent 71.5%);
  mask: radial-gradient(circle, transparent 60%, #000 61.5%, #000 70%, transparent 71.5%);
  animation: boot-spin 0.95s linear infinite;
}
.boot-glow {
  position: absolute; inset: 4%; border-radius: 9999px;
  background: conic-gradient(from 0deg, #ff6a00, #d100ff, #1f6bff, #00e0ff, #ff6a00);
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 66%, transparent 78%);
  mask: radial-gradient(circle, transparent 55%, #000 66%, transparent 78%);
  filter: blur(14px); opacity: 0.55;
  animation: boot-spin 0.95s linear infinite;
}
@keyframes boot-spinup {
  0% { transform: rotate(0deg) scale(1); filter: blur(0); opacity: 1; }
  55% { filter: blur(0.6px); opacity: 1; }
  85% { filter: blur(5px); opacity: 0.8; }
  100% { transform: rotate(-1260deg) scale(0.9); filter: blur(10px); opacity: 0; }
}
@keyframes boot-ring-in { to { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes boot-spin { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
  .boot-logo { animation: none; }
  .boot-ring-wrap:not(.on) { animation: none; opacity: 0; }
  .boot-ring, .boot-glow { animation: none; }
  .app-boot-screen { transition: none; }
}
