:root {
  --splash-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

#app-splash,
.app-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbfc;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app-splash {
  transition: opacity 0.35s var(--splash-ease), visibility 0.35s var(--splash-ease);
}

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

.splash-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.splash-spinner,
.ysa-spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  border: 1.5px solid rgb(0 71 171 / 0.14);
  border-top-color: #0047ab;
  border-right-color: #ffcc00;
  animation: ysa-spin 0.7s linear infinite;
}

.ysa-spinner--sm {
  width: 0.875rem;
  height: 0.875rem;
  border-width: 1.25px;
}

.ysa-spinner--lg {
  width: 1.75rem;
  height: 1.75rem;
}

.splash-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #003380;
}

@keyframes ysa-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-spinner,
  .ysa-spinner {
    animation: none;
    border-color: #0047ab;
  }
}
