html.is-loading,
html.is-loading body {
  overflow: hidden;
}

html.is-loading .page-content {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

html.is-ready .page-content {
  opacity: 1;
  transition: opacity 0.55s ease 0.05s, visibility 0.55s ease 0.05s;
  visibility: visible;
}

.vc-loader {
  align-items: center;
  background:
    radial-gradient(900px 700px at 50% 18%, color-mix(in srgb, var(--accent, #7c6aef) 18%, transparent), transparent 62%),
    radial-gradient(700px 560px at 82% 88%, color-mix(in srgb, var(--accent-2, #2dd4bf) 14%, transparent), transparent 58%),
    var(--bg, #09090b);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  inset: 0;
  justify-content: center;
  position: fixed;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  z-index: 99999;
}

html.is-ready .vc-loader {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.vc-loader-core {
  height: 76px;
  position: relative;
  width: 76px;
}

.vc-loader-ring,
.vc-loader-pulse {
  border-radius: 50%;
  inset: 0;
  position: absolute;
}

.vc-loader-ring {
  animation: vcLoaderSpin 1s linear infinite;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent, #7c6aef);
  border-right-color: color-mix(in srgb, var(--accent, #7c6aef) 55%, transparent);
}

.vc-loader-ring-2 {
  animation: vcLoaderSpin 1.45s linear infinite reverse;
  border-top-color: var(--accent-2, #2dd4bf);
  border-right-color: color-mix(in srgb, var(--accent-2, #2dd4bf) 55%, transparent);
  inset: 11px;
}

.vc-loader-pulse {
  animation: vcLoaderPulse 1.2s ease-in-out infinite;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent, #7c6aef) 70%, #fff),
    color-mix(in srgb, var(--accent-2, #2dd4bf) 35%, transparent) 70%,
    transparent 72%
  );
  inset: 25px;
}

.vc-loader-text {
  color: rgba(255, 255, 255, 0.72);
  font: 600 0.78rem/1.2 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.28em;
  margin: 0;
  text-transform: uppercase;
}

.vc-loader-text::after {
  animation: vcLoaderDots 1.2s steps(4, end) infinite;
  content: "";
}

@keyframes vcLoaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes vcLoaderPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.84); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes vcLoaderDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

@media (prefers-reduced-motion: reduce) {
  .vc-loader-ring,
  .vc-loader-pulse,
  .vc-loader-text::after {
    animation: none !important;
  }
}
