.boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono",
    "Courier New", monospace;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 0px 10px 20px;
  box-sizing: border-box;
}

.boot-log {
  width: 100%;
  margin: 0;
  height: 100%;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.35;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding-right: 6px;
  word-break: break-word;
  font-size: clamp(12px, 2.2vw, 16px);
}

.boot-log::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.boot-log::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}
.boot-log::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 420px) {
  .boot-screen {
    padding: 10px;
  }
  .boot-log {
    line-height: 1.25;
    font-size: clamp(11px, 3.5vw, 14px);
  }
}

@media (min-width: 421px) and (max-width: 768px) {
  .boot-log {
    font-size: clamp(12px, 2.6vw, 15px);
  }
}

.boot-log code,
.boot-log pre {
  white-space: pre-wrap;
}

@media (prefers-contrast: more) {
  .boot-screen {
    background: #000;
    color: #fff;
  }
  .boot-log::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
  }
}
