/* ============================================================
   AY/OS : boot.css : GRUB language pick → POST log → logo
   ============================================================ */

.boot {
  position: fixed; inset: 0; z-index: 9900;
  background: #04060a;
  color: #d7e6f4;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  transition: opacity .55s var(--ease), visibility .55s;
}
.boot.boot-out { opacity: 0; visibility: hidden; }

/* ---------- GRUB ---------- */
.boot-grub { width: min(560px, 92vw); }
.grub-box {
  border: 1px solid rgba(151, 196, 232, .35);
  border-radius: 10px;
  padding: 26px 26px 20px;
  background: rgba(10, 16, 25, .6);
  box-shadow: 0 0 0 6px rgba(151, 196, 232, .05), 0 30px 90px rgba(0, 0, 0, .6);
  animation: grub-in .5s var(--ease) both;
}
@keyframes grub-in { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.grub-head {
  display: flex; align-items: center; gap: 10px;
  letter-spacing: .18em; font-size: .82rem; color: #9ff2ff;
  margin-bottom: 6px;
}
.grub-diamond { animation: gem-pulse 2.2s ease-in-out infinite; color: #5ad7ff; }
.grub-diamond svg { width: 16px; height: 16px; display: block; }
@keyframes gem-pulse { 50% { opacity: .35; } }
.grub-sub { color: #647890; font-size: .8rem; margin-bottom: 18px; }
.grub-opt {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: start;
  padding: 13px 16px; margin-bottom: 8px;
  border: 1px solid transparent; border-radius: 8px;
  color: #d7e6f4; font-family: var(--f-mono); font-size: 1rem;
  transition: all var(--t-fast) var(--ease);
}
.grub-cursor { opacity: 0; transition: opacity var(--t-fast); color: #5ad7ff; }
.grub-opt:hover, .grub-opt.is-sel {
  background: rgba(90, 215, 255, .09);
  border-color: rgba(90, 215, 255, .4);
}
.grub-opt:hover .grub-cursor, .grub-opt.is-sel .grub-cursor { opacity: 1; }
.grub-foot { margin-top: 14px; font-size: .74rem; color: #647890; text-align: center; }
.grub-foot b { color: #9ff2ff; font-weight: 600; }

/* ---------- POST LOG ---------- */
.boot-post { width: min(680px, 92vw); align-self: flex-start; margin-top: 8vh; }
.boot-log {
  font-family: var(--f-mono); font-size: clamp(.78rem, 1.6vw, .95rem);
  line-height: 1.9; white-space: pre-wrap; color: #aebdcd;
}
.boot-log .ok { color: #3ddc97; }
.boot-log .accent { color: #5ad7ff; }
.boot-log .line { display: block; animation: log-in .18s var(--ease) both; }
@keyframes log-in { from { opacity: 0; transform: translateY(4px); } }

/* ---------- LOGO ---------- */
.boot-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: grub-in .5s var(--ease) both; }
.boot-gem { width: clamp(72px, 12vw, 110px); }
.gem-stroke {
  fill: none; stroke: #5ad7ff; stroke-width: 2.5; stroke-linejoin: round;
  stroke-dasharray: 300; stroke-dashoffset: 300;
  animation: gem-draw 1.1s var(--ease) forwards;
  filter: drop-shadow(0 0 12px rgba(90, 215, 255, .45));
}
.gem-ant   { animation-delay: .05s; }
.gem-smile { animation-delay: .55s; }
.gem-base  { animation-delay: .7s; opacity: .55; }
@keyframes gem-draw { to { stroke-dashoffset: 0; } }
.boot-eye {
  fill: #5ad7ff; opacity: 0;
  filter: drop-shadow(0 0 8px rgba(90, 215, 255, .8));
  animation: eye-pop .35s var(--ease-snap) .85s forwards, bot-blink 4.6s ease-in-out 1.4s infinite;
  transform-origin: center; transform-box: fill-box;
}
.boot-eye2 { animation-delay: 1s, 1.4s; }
@keyframes eye-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

.boot-name {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  color: #eaf3fc; letter-spacing: 0;
  animation: log-in .6s .5s var(--ease) both;
}
.boot-os {
  font-family: var(--f-mono); font-size: .85rem; color: #647890;
  letter-spacing: .3em; text-transform: uppercase;
  animation: log-in .6s .7s var(--ease) both;
}
.boot-lts { color: #3ddc97; letter-spacing: .1em; }
.boot-bar {
  width: min(300px, 60vw); height: 3px; margin-top: 10px;
  background: rgba(151, 196, 232, .15); border-radius: 99px; overflow: hidden;
  animation: log-in .4s .8s var(--ease) both;
}
.boot-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #1f8fdd, #5ad7ff, #9ff2ff);
  border-radius: 99px;
  transition: width .3s var(--ease);
  box-shadow: 0 0 14px rgba(90, 215, 255, .8);
}

.boot-skip {
  position: absolute; bottom: 28px; left: 0; right: 0;
  text-align: center; font-size: .75rem; color: #49596c;
  animation: gem-pulse 2.4s ease-in-out infinite;
}
