/* Fullscreen loading overlay */
#loading-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  display: flex;
  align-items: center;       /* vertical center */
  justify-content: center;   /* horizontal center */
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Hide when loaded */
#loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Your loader animation */
.loader {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;       /* center shapes vertically */
  justify-content: center;   /* center shapes horizontally */
  aspect-ratio: 1;
}

.loader:before,
.loader:after {
  content: "";
  flex: 1;
  aspect-ratio: 1;
  --g: conic-gradient(from -90deg at 10px 10px, #6a0447 90deg, #0000 0);
  background: var(--g), var(--g), var(--g);
  filter: drop-shadow(30px 30px 0 #6a0447);
  animation: l20 1s infinite;
}

.loader:after {
  transform: scaleX(-1);
}

@keyframes l20 {
  0%   {background-position:0 0,10px 10px,20px 20px}
  33%  {background-position:10px 10px}
  66%  {background-position:0 20px,10px 10px,20px 0}
  100% {background-position:0 0,10px 10px,20px 20px}
}
