
/* Lovezii Preloader (CSS only) — v1.0 */
/* Full-screen overlay with elegant glow + spinner. */
/* Respects prefers-reduced-motion and supports skip/fade-out. */

:root {
  --lz-z: 2147483647;
  --lz-bg: radial-gradient(120vmax 120vmax at 20% 10%, rgba(118,0,255,.25), transparent 40%),
           radial-gradient(100vmax 100vmax at 80% 80%, rgba(255,0,150,.25), transparent 45%),
           radial-gradient(60vmax 60vmax at 10% 90%, rgba(0,255,200,.18), transparent 50%),
           #0f172a;
  --lz-fg: #ffffff;
  --lz-accent: #ec4899;
  --lz-min: 900ms;     /* used for animations only; real min is in JS */
  --lz-out: 420ms;
}

html[data-lz-active="1"] { overflow: hidden; }
.lz-preloader {
  position: fixed;
  inset: 0;
  z-index: var(--lz-z);
  display: grid;
  place-items: center;
  background: var(--lz-bg);
  color: var(--lz-fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--lz-out) ease, visibility var(--lz-out) step-end;
}

.lz-preloader.lz-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lz-core {
  display: grid;
  place-items: center;
  gap: 18px;
  text-align: center;
  padding: 24px 24px 28px;
}

.lz-logo {
  width: clamp(96px, 14vw, 160px);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
  animation: float 3.2s ease-in-out infinite;
}

.lz-title {
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 700;
  letter-spacing: .4px;
}

.lz-strap {
  font-size: clamp(12px, 2vw, 14px);
  opacity: .85;
  margin-top: -6px;
}

.lz-ring {
  position: relative;
  width: clamp(140px, 22vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.lz-ring::before, .lz-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.lz-ring::before {
  border: 6px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 60px rgba(255,255,255,.06);
}

.lz-ring::after {
  border: 6px solid transparent;
  border-top-color: var(--lz-accent);
  border-right-color: rgba(255,255,255,.7);
  filter: drop-shadow(0 0 16px rgba(236,72,153,.55));
  animation: spin 1.2s linear infinite;
}

.lz-progress {
  width: clamp(180px, 32vw, 320px);
  height: 6px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-top: 6px;
}

.lz-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background:
    linear-gradient(90deg, rgba(255,255,255,.0) 0%, rgba(255,255,255,.7) 50%, rgba(255,255,255,.0) 100%);
  animation: sweep 1400ms ease-in-out infinite;
}

.lz-skip {
  appearance: none;
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: var(--lz-fg);
  cursor: pointer;
  font-size: 14px;
  margin-top: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, background .2s ease;
}
.lz-skip:hover { background: rgba(255,255,255,.24); }
.lz-preloader.lz-armed .lz-skip { opacity: 1; pointer-events: auto; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes sweep { 50% { transform: translateX(0%); } 100% { transform: translateX(100%);} }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lz-logo, .lz-ring::after, .lz-progress::after { animation: none; }
}
