/* ======================================================================================
   BOOT.CSS
   Boot Overlay
   Loaded only on index.html
   ====================================================================================== */

/* ======================================================================================
   ROOT VARS (ONLY VARS USED IN THIS FILE)
   ====================================================================================== */

:root {
  --boot-bg: #000;
  --boot-fg: #cfd3d7;
}


/* ======================================================================================
   BOOT OVERLAY
   ====================================================================================== */

.znx-boot {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 2147483647;
  pointer-events: all;
  background: var(--boot-bg);
  color: var(--boot-fg);
  font: 1.05rem Oxanium;
  letter-spacing: .2px;
  opacity: 1;
  transition: opacity .98s cubic-bezier(.22,.61,.36,1);
}

.znx-boot.is-background-exiting {
  opacity: 0;
  pointer-events: none;
}


/* Minimal automatic BIOS intro, inspired by bottom-aligned DOS monitors. */
.boot-bios {
  background:
    radial-gradient(circle at 50% 115%, rgba(68, 56, 74, .22), transparent 48%),
    #151216;
  color: #bdbdc6;
  font-family: Oxanium;
  transition: opacity .42s ease;
}

.boot-bios-screen {
  width: 100%;
  height: 100%;
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition:
    opacity .62s cubic-bezier(.22,.61,.36,1),
    filter .62s cubic-bezier(.22,.61,.36,1),
    transform .62s cubic-bezier(.22,.61,.36,1);
}

.znx-boot.is-text-exiting .boot-bios-screen {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(-4px);
}

.boot-bios-lines {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  gap: 0;
  padding: clamp(18px, 1.5vw, 28px);
  overflow: hidden;
  box-sizing: border-box;
}

.boot-bios-line {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  min-height: 1.28em;
  margin: 0;
  color: #bdbdc6;
  font: 400 clamp(14px, 1vw, 19px)/1.28 Oxanium;
  letter-spacing: .025em;
  white-space: pre-wrap;
  animation: bootBiosLineIn .28s steps(3, end) both;
}

.boot-bios-line.is-blank {
  min-height: .72em;
}

.boot-bios-line.is-failed {
  color: #e17b86;
}

.boot-type-caret {
  color: #e7e7ed;
  animation: bootCaretBlink .72s steps(1, end) infinite;
}

.boot-memory-value,
.boot-rom-loader {
  color: #d5d5dd;
}

.boot-status-ok {
  color: #00ff38;
  font-family: "Linear Beam";
  font-weight: 400;
  text-shadow:
    0 0 4px rgba(0, 255, 56, .95),
    0 0 9px rgba(0, 255, 56, .58);
}

.boot-fullscreen-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  width: min(350px, calc(100vw - 32px));
  padding: 56px 34px 52px;
  border: 2px solid #bdbdc6;
  background: #151216;
  color: #e1e1e8;
  font-family: Oxanium;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .75);
  opacity: 0;
  transform: translate(-50%, -48%);
  transition:
    opacity .44s cubic-bezier(.22,.61,.36,1),
    transform .44s cubic-bezier(.22,.61,.36,1),
    border-color .44s ease,
    box-shadow .44s ease;
}

.boot-fullscreen-prompt.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.boot-fullscreen-title {
  margin-bottom: 28px;
  font: 400 18px/1.3 "Linear Beam";
  letter-spacing: .045em;
  text-align: center;
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition:
    opacity .36s ease,
    filter .36s ease,
    transform .36s ease;
}

.boot-fullscreen-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition:
    opacity .36s ease,
    filter .36s ease,
    transform .36s ease;
}

.boot-fullscreen-prompt.is-selection-exiting .boot-fullscreen-title {
  opacity: 0;
  filter: blur(1.5px);
  transform: translateY(-5px);
}

.boot-fullscreen-prompt.is-selection-exiting .boot-fullscreen-actions {
  opacity: 0;
  filter: blur(1.5px);
  transform: translateY(5px);
}

.boot-fullscreen-prompt.is-window-exiting {
  opacity: 0;
  border-color: transparent;
  box-shadow: 0 0 0 1px transparent;
  transform: translate(-50%, -50%) scale(.965);
}

.boot-fullscreen-actions button {
  min-width: 76px;
  min-height: 42px;
  padding: 8px 16px;
  border: 2px solid #c8c8d0;
  background: #c8c8d0;
  color: #111014;
  font: 400 16px/1 "Linear Beam";
  letter-spacing: .06em;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}

.boot-fullscreen-actions button:hover,
.boot-fullscreen-actions button:focus-visible {
  outline: none;
  background: #151216;
  color: #f0f0f4;
  box-shadow: 0 0 0 2px #151216, 0 0 0 4px #c8c8d0;
}

.boot-fullscreen-actions button:disabled {
  opacity: .55;
}

@keyframes bootCaretBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes bootBiosLineIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 550px) {
  .boot-bios-line {
    font-size: 12px;
  }
}
