#pwa-splash {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

#pwa-splash.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
  color: #f3f4f6;
  user-select: none;
}

html:not(.dark) #pwa-splash {
  background-color: #f5f4f0;
}

html:not(.dark) .splash-content {
  color: #1c1917;
}

.splash-logo-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splash-pulse 1.8s ease-in-out infinite alternate;
}

.splash-spinner {
  width: 32px;
  height: 32px;
  border: 2.5px solid rgba(217, 119, 6, 0.2);
  border-top-color: #d97706;
  border-radius: 50%;
  animation: splash-spin 0.8s linear infinite;
}

.splash-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f59e0b;
  margin: 0;
  letter-spacing: 0.02em;
  font-family: inherit;
  text-align: center;
}

@keyframes splash-pulse {
  0% { transform: scale(0.96); opacity: 0.85; }
  100% { transform: scale(1.04); opacity: 1; }
}

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

body.splash-active {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .splash-logo-pulse, .splash-spinner {
    animation: none;
  }
}
