/* Arranque de la PWA: una sola superficie de marca mientras terminan los scripts.
   No simula porcentaje ni bloquea el inicio más de lo necesario. */
.app-boot {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgb(66 91 130 / .28), transparent 34%),
    linear-gradient(145deg, #142442 0%, #101b30 58%, #0b1425 100%);
  color: #f5f8ff;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms cubic-bezier(.23, 1, .32, 1), visibility 220ms;
}
.app-boot::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: radial-gradient(circle, #8fa8ff 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000 0, transparent 62%);
}
.app-boot.is-complete { opacity: 0; visibility: hidden; pointer-events: none; }
.app-boot__content { position: relative; display: grid; justify-items: center; width: min(300px, 82vw); text-align: center; }
.app-boot__mark {
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  filter: drop-shadow(0 16px 28px rgb(0 0 0 / .28));
  animation: codego-boot-mark 1.3s cubic-bezier(.23, 1, .32, 1) both;
}
.app-boot__name { margin: 0; font-size: 25px; font-weight: 780; line-height: 1; letter-spacing: -.045em; }
.app-boot__name span { color: #8fa8ff; }
.app-boot__edition { margin: 8px 0 0; color: #b9c8e2; font-size: 10px; font-weight: 750; letter-spacing: .24em; text-transform: uppercase; }
.app-boot__rail { width: 156px; height: 2px; margin-top: 28px; overflow: hidden; border-radius: 999px; background: rgb(185 200 226 / .22); }
.app-boot__rail::after {
  content: "";
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5f7de8, #9ab7ff);
  animation: codego-boot-rail 1s cubic-bezier(.77, 0, .175, 1) infinite;
}
.app-boot__status { margin: 11px 0 0; color: #b9c8e2; font-size: 11px; font-weight: 560; letter-spacing: .01em; }
@keyframes codego-boot-mark { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes codego-boot-rail { from { transform: translateX(-115%); } to { transform: translateX(330%); } }
@media (prefers-reduced-motion: reduce) {
  .app-boot, .app-boot__mark { transition: none; animation: none; }
  .app-boot__rail::after { width: 100%; animation: none; opacity: .72; }
}
