/* Critical boot paint — visible before main CSS/JS land */
html {
  background: #000;
  color: #eef2f7;
}

#boot-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  background: #000;
  font-family: system-ui, sans-serif;
}

html.auth-returning #boot-splash {
  display: flex;
}

html.app-ready #boot-splash {
  display: none !important;
}

#boot-splash .boot-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}

#boot-splash .boot-mark i {
  font-size: 1.35rem;
  line-height: 1;
}

#boot-splash .boot-bar {
  width: 7rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#boot-splash .boot-bar > span {
  display: block;
  height: 100%;
  width: 40%;
  background: #fff;
  animation: bootSlide 1s ease-in-out infinite;
}

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