/* Splash exibido até o React montar (main.tsx remove a classe page-loading). */
body.page-loading {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

.splash-screen {
  display: none;
}

.page-loading .splash-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #351344, #963cb5);
}

html.dark .page-loading .splash-screen {
  background: linear-gradient(90deg, #24102f, #65267d);
}

.page-loading .splash-screen img {
  width: 72px;
  height: 72px;
  animation: splash-pulse 1.4s ease-in-out infinite;
}

@keyframes splash-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.94); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loading .splash-screen img {
    animation: none;
  }
}
