/* ============================================================
   BOOT.CSS — landing curtain + boot terminal
   ============================================================ */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: transparent;
}

/* two curtain halves that split apart to reveal the desktop */
.curtain {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-image: url("../assets/wallpaper.png");
  background-size: 100vw 100vh;
  background-repeat: no-repeat;
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 1;
}
/* left half shows image's left portion, right half its right portion,
   so the centred dragon is whole and unbroken across the seam */
.curtain-left  { left: 0;  background-position: 0% center;   }
.curtain-right { right: 0; background-position: 100% center; }
/* dim overlay so the boot terminal stays readable over the art */
#boot-screen::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 42%, rgba(4,7,13,0.35) 0%, rgba(4,7,13,0.82) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
#boot-screen.open::before { opacity: 0; }

#boot-screen.open .curtain-left  { transform: translateX(-101%); }
#boot-screen.open .curtain-right { transform: translateX(101%); }
#boot-screen.open #boot-core { opacity: 0; transform: scale(1.06); }
#boot-screen.done { display: none; }

#boot-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 24px;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* emblem */
/* the full wallpaper dragon now fills the curtain, so the small
   emblem is hidden to avoid a double dragon */
#boot-logo { display: none; }

#boot-logo .emblem-stroke {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.4s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

#boot-logo .emblem-eye {
  opacity: 0;
  animation: eye-on 0.4s ease 2.2s forwards;
}
@keyframes eye-on { to { opacity: 1; } }

/* boot terminal */
#boot-terminal {
  font-family: var(--font-mono);
  font-size: clamp(15px, 2.3vw, 22px);
  font-weight: 600;
  line-height: 1.5;
  color: #ffcf4d;                 /* warm amber — pops against the blue art */
  text-shadow: 0 0 10px rgba(255, 176, 32, 0.45), 0 2px 6px rgba(0, 0, 0, 0.8);
  min-height: 11em;
  width: min(720px, 90vw);
  white-space: pre-wrap;
}
#boot-terminal .ok {
  color: #4dffa0;                 /* bright mint for [ OK ] lines */
  text-shadow: 0 0 10px rgba(55, 255, 139, 0.5), 0 2px 6px rgba(0, 0, 0, 0.8);
}
#boot-terminal .cursor {
  display: inline-block;
  width: 0.55em; height: 1.15em;
  background: #ffcf4d;
  box-shadow: 0 0 10px rgba(255, 176, 32, 0.6);
  vertical-align: text-bottom;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

#boot-skip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: blink 1.6s steps(1) infinite;
}
#boot-skip.ready {
  color: var(--term);
  font-size: 14px;
  text-shadow: 0 0 12px rgba(55, 255, 139, 0.6);
  animation: pulse-ready 1.4s ease-in-out infinite;
}
@keyframes pulse-ready {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.05); }
}
