.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: radial-gradient(circle at 20% 20%, #ffedd5 0%, #fdba74 38%, #f97316 100%);
  transition: opacity 220ms ease;
}

.splash-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.splash-card {
  width: min(92vw, 420px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  padding: 18px 18px 16px;
  text-align: center;
}

.splash-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
}

.splash-hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}

.splash-retry-btn {
  margin-top: 12px;
  min-height: 42px;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.34);
  cursor: pointer;
}

.splash-retry-btn:active {
  transform: scale(0.97);
}

.splash-screen.is-stuck .splash-retry-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.splash-screen.is-stuck .splash-hint {
  color: #b91c1c;
  font-weight: 600;
}

.spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.spinner > div {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  animation: splash-bouncedelay 1.1s infinite ease-in-out both;
}

.spinner .bounce1 {
  animation-delay: -0.24s;
}

.spinner .bounce2 {
  animation-delay: -0.12s;
}

@keyframes splash-bouncedelay {
  0%, 80%, 100% {
    transform: scale(0.3);
    opacity: 0.55;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
