/* ==========================================================================
   transition.css — scene-swap styling.
   Driver: js/controller.js
   ========================================================================== */

/* During a scene transition: block hotspot clicks */
#pano.is-transitioning .link-hotspot {
  pointer-events: none !important;
}

/* Dark vignette that blooms in from the edges during a scene swap */
#scene-fade {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.05) 55%,
    rgba(0, 0, 0, 0.4) 100%
  );
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-out, visibility 0s linear 0.4s;
}

#scene-fade.is-covering {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease-in, visibility 0s linear;
}

/* Spinner */
#scene-fade__spinner {
  width: 40px;
  height: 40px;
}

#scene-fade__spinner::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgb(var(--brand-dark-rgb) / 0.15),
    var(--brand-primary),
    var(--color-mint),
    rgb(var(--brand-dark-rgb) / 0.15)
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: scene-fade-spin 0.9s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  #scene-fade__spinner::before { animation: none; }
}
