/* ============================================================
   loading-overlay.css
   Reusable full-page loading veil with a centered neon progress
   bar. Driven by js/loading-overlay.js (window.CaveRushLoadingOverlay).
   ============================================================ */

#cr-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #02030a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  opacity: 1;
  transition: opacity 360ms ease;
}

#cr-loading-overlay.is-dismissed {
  opacity: 0;
  pointer-events: none;
}

.cr-loading-label {
  margin: 0;
  color: rgba(83, 216, 255, 0.72);
  font-size: clamp(0.7rem, 2.8vw, 0.86rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.cr-loading-track {
  width: min(240px, 60vw);
  height: 4px;
  border-radius: 999px;
  background: rgba(83, 216, 255, 0.12);
  overflow: hidden;
}

.cr-loading-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(42, 246, 255, 1) 0%,
    rgba(139, 83, 255, 1) 50%,
    rgba(255, 71, 222, 1) 100%
  );
  box-shadow: 0 0 8px rgba(42, 246, 255, 0.6);
}
