/* Shown before React boots — keep self-contained (no CSS modules). */
html.boot-splash-active,
html.boot-splash-active body {
  overflow: hidden;
  background: #000;
}

#app-boot-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

#app-boot-splash.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#app-boot-splash .boot-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  transform: translateY(-4px);
}

#app-boot-splash .boot-splash-logo {
  height: 42px;
  width: auto;
  max-width: min(280px, 72vw);
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

#app-boot-splash .boot-splash-track {
  width: 88px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
}

#app-boot-splash .boot-splash-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  /* PropFirm brand: magenta → coral → orange */
  background: linear-gradient(90deg, #e879f9 0%, #fb7185 50%, #fb923c 100%);
  box-shadow: 0 0 12px rgba(232, 121, 249, 0.45);
  animation: boot-splash-slide 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#app-boot-splash.is-complete .boot-splash-bar {
  animation: none;
  width: 100%;
  transition: width 0.28s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  #app-boot-splash .boot-splash-bar {
    animation: none;
    width: 70%;
    left: 15%;
  }
}
