/* Custom preloader — replaces the stock theme's "KIDSA" letter-spelling animation
   (leftover template branding) with a mark built on this site's own logo + color
   tokens. Scoped entirely to its own classes so it doesn't touch/override main.css. */

#preloader.preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.ds-preloader {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-preloader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 5px solid var(--bg);
  border-top-color: var(--theme);
  border-right-color: var(--theme2);
  animation: ds-spin 1.1s linear infinite;
}

.ds-preloader__logo {
  width: 92px;
  height: auto;
  object-fit: contain;
  animation: ds-pulse 1.4s ease-in-out infinite;
}

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

@keyframes ds-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.88); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-preloader__ring { animation-duration: 2.5s; }
  .ds-preloader__logo { animation: none; }
}
