/* ═══════════════════════════════════════════════════════════
   loader.css — Full-screen loading screen (neobrutalism)
   Calm, flat, no tilted card, no spinning rings — just a
   bordered logo mark, wordmark, and a clean progress bar.
═══════════════════════════════════════════════════════════ */

#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow: hidden;
  transition: opacity 0.45s var(--ease-snap);
}

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

/* ── Logo mark — square, bordered, flat fill, no rotation ── */
.loader-mark {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-mark-letter {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.loader-word {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: -6px;
}

/* ── Progress bar — thin pill, solid fill, no diagonal stripes ── */
.loader-bar-wrap {
  width: clamp(150px, 30vw, 210px);
  height: 8px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--grad-blue);
}

.loader-percent {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--gray-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.loader-percent.ready {
  color: var(--blue);
}
