/* MATHBHOOT Villa Globe — Transition Overlays & Animations */

.portal-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(
    circle at center,
    rgba(251, 191, 36, 0.95) 0%,
    rgba(168, 85, 247, 0.9) 35%,
    rgba(10, 7, 27, 0.98) 75%,
    #030108 100%
  );
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-transition-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.portal-vortex {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid var(--color-gold-bright);
  box-shadow: 0 0 60px var(--color-gold-bright), inset 0 0 50px var(--color-purple-bright);
  animation: spin-vortex 1.5s linear infinite;
}

.portal-vortex::before,
.portal-vortex::after {
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(56, 189, 248, 0.72);
  border-radius: 50%;
  content: "";
  transform: rotate(58deg) scaleY(0.38);
}

.portal-vortex::after {
  border-color: rgba(196, 92, 255, 0.78);
  transform: rotate(-58deg) scaleY(0.38);
}

.portal-text {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-transform: uppercase;
}

@keyframes spin-vortex {
  0% { transform: rotate(0deg) scale(0.8); }
  50% { transform: rotate(180deg) scale(1.3); }
  100% { transform: rotate(360deg) scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .portal-transition-overlay { transition-duration: 0.01ms; }
  .portal-vortex { animation: none; transform: scale(1); }
}
