/* ==========================================================================
   loader.css — full-screen branded loading screen.
   Shown until the first panorama is fully rendered (see js/app.js).
   ========================================================================== */

#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--loader-gradient);
  opacity: 1;
  transition: opacity 0.8s ease;
}

#loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader__logo {
  width: clamp(140px, 18vw, 220px);
  height: auto;
  object-fit: contain;
}

.loader__text {
  margin-top: 44px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Dots reveal one at a time and reset, at full opacity:
   "Loading" → "Loading." → "Loading.." → "Loading..." → repeat.
   The container reserves the width of three dots so the text never shifts. */
.loader__dots {
  display: inline-block;
  width: 1.5em;
  text-align: left;
}
.loader__dots span { opacity: 0; }
.loader__dots span:nth-child(1) { animation: loader-dot-1 1.6s steps(1, end) infinite; }
.loader__dots span:nth-child(2) { animation: loader-dot-2 1.6s steps(1, end) infinite; }
.loader__dots span:nth-child(3) { animation: loader-dot-3 1.6s steps(1, end) infinite; }

@keyframes loader-dot-1 { 0% { opacity: 0; } 25%, 100% { opacity: 1; } }
@keyframes loader-dot-2 { 0% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes loader-dot-3 { 0% { opacity: 0; } 75%, 100% { opacity: 1; } }
