.startup-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-image: radial-gradient(circle at center, #1e3a8a 0%, #0f172a 45%, #000000 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 120% 120%;
  animation: splash-breathe 0.8s ease-in-out infinite alternate;
}

.startup-overlay[hidden] {
  display: none !important;
}

.splash-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.splash-logo {
  display: block;
  width: 96px;
  height: 96px;
}

.splash-logo-action {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.splash-logo-action:focus-visible {
  outline: 2px solid rgba(83, 201, 246, 0.9);
  outline-offset: 8px;
}

.splash-logo-action:hover {
  filter: brightness(1.08);
}

.splash-logo-action:disabled {
  cursor: wait;
  filter: saturate(0.7);
  opacity: 0.72;
}

.splash-title {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 30px;
  font-weight: 700;
  line-height: 33px;
  letter-spacing: 0.1em;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.startup-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  color: #5288c1;
}

.status-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 2px solid rgba(82, 136, 193, 0.28);
  border-top-color: currentColor;
  border-right-color: currentColor;
  border-radius: 999px;
  animation: spinner-rotate 1s linear infinite;
}

@keyframes splash-breathe {
  from {
    background-size: 120% 120%;
  }

  to {
    background-size: 180% 180%;
  }
}

@keyframes spinner-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .startup-overlay,
  .status-spinner {
    animation: none;
  }
}
