/* Boot splash: mismo layout que el splash nativo PWA (fondo blanco, ícono centrado, nombre abajo). */
.boot-splash {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: env(safe-area-inset-top, 0px) 24px env(safe-area-inset-bottom, 0px);
  background-color: #ffffff;
  color: #101114;
  font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  text-align: center;
}

.boot-splash__stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
}

.boot-splash__mark-wrap {
  position: relative;
  width: 12rem;
  height: 12rem;
}

.boot-splash__halo {
  position: absolute;
  inset: -18%;
  border-radius: 32%;
  background: radial-gradient(circle, rgba(113, 50, 245, 0.28) 0%, rgba(113, 50, 245, 0) 72%);
  animation: boot-halo 2.6s ease-in-out infinite;
  pointer-events: none;
}

.boot-splash__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 12rem;
  height: 12rem;
  border-radius: 22%;
  background-color: #7132f5;
  animation: boot-mark-settle 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.boot-splash__mark::after {
  content: '';
  width: 62%;
  height: 62%;
  background-color: #fff;
  -webkit-mask: url('/dotia-mark.svg') center / contain no-repeat;
  mask: url('/dotia-mark.svg') center / contain no-repeat;
}

.boot-splash__status {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #101114;
  animation: boot-status-in 0.45s ease 0.16s both;
}

.boot-splash__bar {
  display: block;
  width: 3rem;
  height: 2px;
  border-radius: 1px;
  overflow: hidden;
  background: rgba(113, 50, 245, 0.16);
}

.boot-splash__bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: #7132f5;
  animation: boot-bar 1.15s ease-in-out infinite;
}

.boot-splash__wordmark {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #101114;
}

.boot-splash__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes boot-mark-settle {
  from {
    transform: scale(0.97);
    opacity: 0.92;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes boot-halo {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes boot-status-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes boot-bar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(280%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-splash__mark,
  .boot-splash__halo,
  .boot-splash__status,
  .boot-splash__bar::after {
    animation: none;
  }

  .boot-splash__halo {
    opacity: 0.7;
    transform: none;
  }
}
