/* TOMRULEZ.WIN — BIOS POST, AUTOEXEC, BIOS setup */

#boot {
  position: absolute;
  inset: 0;
  z-index: 500;
  padding: 24px 32px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: clamp(15px, 2.1vw, 21px);
  line-height: 1.18;
  color: var(--term-fg);
  background: var(--term-bg);
  white-space: pre-wrap;
}

#boot.hidden {
  display: none;
}

.post-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.post-brand {
  color: var(--term-bright);
}

.post-energy {
  flex: none;
  font-size: 0.72em;
  line-height: 1.05;
  color: var(--term-cyan);
  text-align: right;
  white-space: pre;
}

.post-rule {
  margin: 6px 0;
  color: var(--lo);
}

.post-line {
  min-height: 1.18em;
}

.post-line .ok {
  color: var(--term-green);
}

.post-line .val {
  color: var(--term-bright);
}

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

.post-foot {
  position: absolute;
  right: 32px;
  bottom: 24px;
  left: 32px;
  color: var(--term-bright);
}

.post-foot .hint {
  color: var(--term-amber);
}

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  vertical-align: text-bottom;
  background: var(--term-fg);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* AUTOEXEC scroll */
#boot.dos {
  color: var(--term-fg);
}

.dos-line {
  min-height: 1.18em;
}

.dos-line .prompt {
  color: var(--term-bright);
}

/* ------------------------------------------------------------------ *
 * BIOS setup (F2)
 * ------------------------------------------------------------------ */

#bios {
  position: absolute;
  inset: 0;
  z-index: 600;
  display: flex;
  flex-direction: column;
  padding: 18px 24px;
  font-family: var(--mono);
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.25;
  color: var(--hi);
  background: var(--bios-bg);
}

#bios.hidden {
  display: none;
}

.bios-title {
  padding-bottom: 4px;
  color: #000;
  text-align: center;
  background: var(--bios-panel);
}

.bios-tabs {
  display: flex;
  gap: 2px;
  margin: 10px 0 0;
}

.bios-tab {
  padding: 2px 14px;
  color: var(--hi);
  background: transparent;
}

.bios-tab[aria-selected='true'] {
  color: #000;
  background: var(--bios-panel);
}

.bios-body {
  display: flex;
  flex: 1;
  gap: 18px;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid var(--hi);
}

.bios-items {
  flex: 1;
  min-width: 0;
}

.bios-help {
  flex: none;
  width: 30%;
  min-width: 180px;
  padding-left: 14px;
  color: #d8d8d8;
  border-left: 1px solid var(--hi);
}

.bios-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px;
}

.bios-item[aria-selected='true'] {
  color: #000;
  background: var(--bios-panel);
}

.bios-item.locked {
  color: #7f9fd0;
}

.bios-item[aria-selected='true'].locked {
  color: #444;
}

.bios-foot {
  padding-top: 6px;
  color: #000;
  text-align: center;
  background: var(--bios-panel);
}

/* ------------------------------------------------------------------ *
 * BSOD
 * ------------------------------------------------------------------ */

#bsod {
  position: absolute;
  inset: 0;
  z-index: 9500;
  padding: 8% 10%;
  font-family: var(--mono);
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.35;
  color: #c8c8c8;
  background: #0000a8;
}

#bsod.hidden {
  display: none;
}

#bsod .bsod-head {
  display: block;
  width: fit-content;
  margin: 0 auto 1.4em;
  padding: 0 10px;
  color: #0000a8;
  background: #c8c8c8;
}

#bsod p {
  margin-bottom: 1.1em;
}

#bsod .bsod-foot {
  text-align: center;
}
