/* Boot splash — static first paint; no fade-in when CSS/JS attach. */

.yw-boot-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  background: #f8fafc;
}

.yw-boot-splash--exit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s linear, visibility 0.12s;
}

.yw-boot-splash__wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 40%, rgba(16, 185, 129, 0.12), transparent 70%);
  pointer-events: none;
}

.yw-boot-splash__cluster {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.yw-boot-splash__stage {
  position: relative;
  width: min(11.5rem, 58vw);
  max-width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yw-boot-splash__bar {
  width: min(9rem, 52vw);
  height: 0.2rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.08);
}

.yw-boot-splash__bar-fill {
  display: block;
  height: 100%;
  width: 12%;
  border-radius: inherit;
  background: linear-gradient(90deg, #059669, #34d399);
  transition: none;
}

.yw-boot-splash__logo-wrap {
  position: relative;
  z-index: 2;
  width: 72%;
  max-width: 100%;
}

.yw-boot-splash__logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(15, 23, 42, 0.08));
}

.yw-boot-splash__ring {
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
}

.yw-boot-splash__orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: yw-boot-orbit-spin 9s linear infinite;
}

.yw-boot-splash__orbit--b {
  inset: -6%;
  animation-duration: 12s;
  animation-direction: reverse;
}

.yw-boot-splash__orbit--c {
  inset: 10%;
  animation-duration: 7s;
}

.yw-boot-splash__spark {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: -0.175rem;
  border-radius: 50%;
  background: #10b981;
  box-shadow:
    0 0 10px rgba(16, 185, 129, 0.85),
    0 0 2px rgba(255, 255, 255, 0.9);
}

.yw-boot-splash__spark--soft {
  width: 0.3rem;
  height: 0.3rem;
  margin-left: -0.15rem;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.75);
}

.yw-boot-splash__spark--dim {
  width: 0.25rem;
  height: 0.25rem;
  margin-left: -0.125rem;
  background: #6ee7b7;
  opacity: 0.9;
  box-shadow: 0 0 6px rgba(110, 231, 183, 0.65);
}

@keyframes yw-boot-orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yw-boot-splash__orbit {
    animation: none !important;
  }
}
