* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: #0a0a0a;
  font-family: "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
}

.viewport {
  width: 100vw;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.screen {
  width: 800px;
  height: 600px;
  position: relative;
  background: #e8e8e8;
  overflow: hidden;
  transform-origin: center center;
  transform: scale(min(100vw / 800, 100dvh / 600));
}

.orange-bg {
  position: absolute;
  inset: 0;
  width: 800px;
  height: 600px;
  pointer-events: none;
  z-index: 1;
}

.boot-panel {
  position: absolute;
  left: 68px;
  top: 26px;
  width: 664px;
  height: 302px;
  border: 1px solid #7a7a7a;
  background: transparent;
  z-index: 2;
}

.boot-title {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #7a7a7a;
  background: transparent;
  font-size: 17px;
  font-weight: 700;
  color: #5a7db5;
  letter-spacing: 0.2px;
  text-shadow: 1px 1px 0 #f4f4f4;
}

.boot-list {
  list-style: none;
  padding: 6px 10px 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  color: #2e356e;
  text-shadow: 1px 1px 0 #ededed;
}

.boot-list li {
  white-space: nowrap;
}

.boot-list li.has-submenu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.boot-list li.selected {
  background: #e8d4cc;
  margin: 0 -10px;
  padding: 0 10px;
}

.boot-list li .chevron {
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  color: #2e356e;
}

.hint {
  position: absolute;
  top: 348px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #ffe94a;
  text-shadow: 1px 1px 0 #6b5610;
  z-index: 2;
}

.item-description {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 118px;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: #2e356e;
  text-shadow: 1px 1px 0 #ededed;
  z-index: 2;
}

.item-description p {
  margin: 0.2em 0;
}

.boot-options-panel {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 118px;
  border: 1px solid #7a7a7a;
  background: #e8e8e8;
  z-index: 5;
  padding: 8px 10px 6px;
}

.boot-options-header {
  font-size: 15px;
  font-weight: 700;
  color: #5a7db5;
  text-shadow: 1px 1px 0 #f4f4f4;
  margin-bottom: 6px;
}

.boot-options-line {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #2e356e;
  text-shadow: 1px 1px 0 #ededed;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  padding: 4px 6px;
  border: 1px solid #9a9a9a;
  background: #f4f4f4;
  position: relative;
}

.boot-options-line::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 16px;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: #2e356e;
  animation: boot-options-cursor 1s step-end infinite;
}

@keyframes boot-options-cursor {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.boot-options-footer {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #2e356e;
  text-shadow: 1px 1px 0 #ededed;
}

.brandline {
  position: absolute;
  left: 22px;
  right: 14px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}

.logo {
  font-size: 74px;
  font-family: "Arial Black", "Arial Bold", Gadget, sans-serif;
  font-style: italic;
  font-weight: 900;
  color: #0a0a0a;
  line-height: 0.82;
  letter-spacing: -1px;
}

.right-brand {
  text-align: right;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 13px;
  line-height: 16px;
  color: #1f1f1f;
  padding-bottom: 2px;
}

.terminal-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  padding: 12px 16px 36px;
  overflow: hidden;
}

.terminal-overlay--dark {
  background: #000;
}

.terminal-overlay--dark .terminal-output {
  color: #fff;
}

.terminal-overlay--memtest {
  background: #0000aa;
}

.terminal-overlay--memtest .terminal-output {
  color: #ffff55;
}

.terminal-overlay--dos {
  background: #000;
}

.terminal-overlay--dos .terminal-output {
  color: #aaaaaa;
}

.terminal-output {
  font-family: "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 15px;
  line-height: 1.35;
  white-space: pre-wrap;
  font-weight: 400;
}

.terminal-exit-hint {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 10px;
  font-size: 13px;
  line-height: 1.3;
  opacity: 0.75;
  font-weight: 400;
}

.terminal-overlay--dark .terminal-exit-hint {
  color: #fff;
}

.terminal-overlay--memtest .terminal-exit-hint {
  color: #ffff55;
}

.terminal-overlay--dos .terminal-exit-hint {
  color: #aaaaaa;
}

.ocs-overlay {
  position: absolute;
  inset: 0;
  z-index: 11;
  background: #0000aa;
  overflow: hidden;
  font-family: "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  color: #000;
}

.ocs-header {
  position: absolute;
  top: 4px;
  left: 8px;
  font-size: 13px;
  color: #fff;
  font-weight: 400;
}

.ocs-dialog {
  position: absolute;
  left: 50%;
  top: 52px;
  transform: translateX(-50%);
  width: 720px;
  background: #c0c0c0;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 28px 14px 12px;
}

.ocs-dialog-title {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #c0c0c0;
  padding: 0 8px;
  color: #c00;
  font-weight: 700;
  white-space: nowrap;
  font-size: 14px;
}

.ocs-dialog-body {
  margin-bottom: 8px;
  line-height: 1.35;
  font-size: 14px;
}

.ocs-dialog-body p {
  margin: 0 0 4px;
}

.ocs-menu {
  list-style: none;
  margin: 6px 0 10px;
  padding: 0;
}

.ocs-menu li {
  padding: 1px 4px;
  white-space: pre;
  line-height: 1.35;
}

.ocs-menu li.selected {
  background: #c00;
  color: #fff;
}

.ocs-buttons {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 8px;
  font-size: 14px;
}

.ocs-buttons span {
  padding: 0 2px;
}

.ocs-buttons span.focused {
  background: #000;
  color: #c0c0c0;
}

.ocs-console {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: #000;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.35;
}

.ocs-console-output {
  color: #fff;
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
}

.ocs-console-output .ocs-log-error {
  color: #f55;
}

.ocs-console-prompt {
  color: #fff;
  margin-top: 6px;
  font-size: 14px;
}
