/* ============================================================
   ANIMATIONS — cursor, ticker, boot, transitions
   ============================================================ */

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes boot-fade-out {
  to { opacity: 0; visibility: hidden; }
}

/* ---------- Boot screen ---------- */
.boot-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-black);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boot-overlay.done {
  animation: boot-fade-out 0.5s ease forwards;
}
.boot-content {
  text-align: center;
  max-width: 460px;
  width: 90%;
}
.boot-logo {
  display: inline-block;
  background: var(--amber);
  color: var(--bg-black);
  font-size: var(--fs-xxl);
  font-weight: 700;
  letter-spacing: 3px;
  padding: 6px 20px;
  margin-bottom: 18px;
}
.boot-logo-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 18px;
  image-rendering: -webkit-optimize-contrast;
}
.boot-title {
  color: var(--amber);
  font-size: var(--fs-md);
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 24px;
}
.boot-status {
  color: var(--green-up);
  font-size: var(--fs-sm);
  letter-spacing: 1px;
  min-height: 18px;
  margin-bottom: 14px;
}
.boot-status::after {
  content: "_";
  animation: blink 1s step-end infinite;
}
.boot-progress {
  height: 8px;
  background: var(--bg-near-black);
  border: 1px solid var(--border);
  overflow: hidden;
}
.boot-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--amber-dim), var(--amber));
  transition: width 0.3s ease;
}
.boot-version {
  margin-top: 18px;
  color: var(--grey-text);
  font-size: var(--fs-xs);
  letter-spacing: 1px;
}

/* Typing caret used by typing-effect.js */
.type-caret::after {
  content: "█";
  color: var(--amber);
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}

/* Skip boot for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-content { animation-duration: 80s; }
  .screen { animation: none; }
}
