/* ============================================================
   preloader.css — Full-screen loading overlay
   ============================================================ */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

#preloader.done {
  opacity: 0;
  pointer-events: none;
}

.preloader-counter {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.05em;
  line-height: 1;
  user-select: none;
}

.preloader-bar-wrap {
  width: 200px;
  height: 2px;
  background: var(--dark-border);
  margin-top: 24px;
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.06s linear;
}

.preloader-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  user-select: none;
}
