/* ============================================================
   BOOT SEQUENCE — MEMBURU PEMANGSA
   Instant reveal per baris (no typewriter) per PRD spec
   ============================================================ */

/* ── BOOT OVERLAY ── */
#boot {
  position: fixed;
  inset: 0;
  z-index: var(--z-boot);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  text-align: center;
  transition: background var(--t-slow);
  cursor: pointer;
}

/* ── BOOT CONTENT CONTAINER ── */
.boot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  max-width: 640px;
  width: 100%;
}

/* ── BOOT TOP: brand mark ── */
.boot-brand {
  display: none;
}

/* ── BOOT LINES CONTAINER ── */
#boot-lines {
  width: 100%;
  text-align: center;
}

/* ── EACH LINE: hidden by default, revealed instantly ── */
.boot-line {
  display: block;
  font-size: clamp(15px, 2.4vw, 20px);
  line-height: 1.95;
  color: var(--ink);
  text-shadow: var(--glow);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 120ms ease-out,
    transform 120ms ease-out;
  white-space: pre-wrap;
  letter-spacing: var(--ls-tight);
  font-weight: bold;
}

.boot-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.boot-line.flash {
  animation: flash-warning 0.15s ease-in-out 4;
}

@keyframes flash-warning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.boot-line.dim {
  color: var(--ink-dim);
  font-size: var(--fs-sm);
}

.boot-line.warn {
  color: var(--amber);
}

.boot-line.spacer {
  height: var(--sp-4);
  display: block;
}

/* ── BOOT PROMPT SYMBOL ── */
.boot-line::before {
  content: '';
}

.boot-line.no-prompt::before {
  content: '';
}

/* ── BOOT CURSOR ── */
.boot-cursor {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  background: var(--ink);
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1s steps(1) infinite;
}

/* ── BOOT FINAL TITLE ── */
#boot-final {
  opacity: 0;
  font-family: var(--font-display);
  font-size: var(--fs-big);
  letter-spacing: var(--ls-wide);
  color: var(--ink-bright);
  text-shadow: var(--glow-lg);
  text-align: center;
  white-space: nowrap;
  transition: opacity 800ms ease-out;
}

#boot-final.show {
  opacity: 1;
}

/* ── BOOT PROGRESS BAR ── */
.boot-progress-wrap {
  display: none;
}

.boot-progress-bar {
  height: 100%;
  background: var(--ink-dim);
  width: 0%;
  transition: width 100ms linear;
  box-shadow: var(--glow-sm);
}

/* ── BYPASS BUTTON ── */
#boot-bypass {
  position: fixed;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.65;
  cursor: pointer;
  transition: opacity var(--t-fast);
  pointer-events: none;
  z-index: 10000;
}

#boot-bypass:hover,
#boot-bypass:focus-visible {
  opacity: 1;
}

/* ── FADE OUT ANIMATION ── */
#boot.fade-out {
  opacity: 0;
  transition: opacity 500ms ease-out;
  pointer-events: none;
}

/* ── REDUCED MOTION overrides ── */
@media (prefers-reduced-motion: reduce) {
  .boot-line {
    transition: none !important;
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  #boot-final {
    transition: none !important;
  }
  #boot.fade-out {
    transition: none !important;
  }
}
