.boot-screen {
  position: fixed;
  z-index: 30000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0c0c0c;
  color: #f3f1ed;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  cursor: pointer;
  opacity: 1;
  transition: opacity 360ms ease;
}

.boot-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 4px
  );
}

.boot-screen.boot-leaving {
  opacity: 0;
  pointer-events: none;
}

.boot-panel {
  position: relative;
  width: min(680px, calc(100vw - 48px));
  min-height: 340px;
  padding: 34px 38px 54px;
}

.boot-bios {
  margin-bottom: 24px;
  color: #d8d5d0;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.035em;
}

.boot-bios strong {
  color: #fff;
  font-weight: 700;
}

.boot-log {
  display: grid;
  gap: 9px;
  min-height: 126px;
  color: #a9a6a1;
  font-size: 13px;
  line-height: 1.5;
}

.boot-line {
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.boot-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.boot-ok {
  color: #edf8f4;
}

.boot-brand {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
  transition: opacity 320ms ease, transform 320ms ease;
}

.boot-panel.show-brand .boot-bios,
.boot-panel.show-brand .boot-log {
  opacity: 0;
  transition: opacity 180ms ease;
}

.boot-panel.show-brand .boot-brand {
  opacity: 1;
  transform: scale(1);
}

.boot-mark {
  margin-bottom: 14px;
  font-size: 34px;
  filter: drop-shadow(0 0 13px rgba(255, 255, 255, 0.2));
}

.boot-brand h1 {
  margin: 0;
  font: 700 clamp(30px, 6vw, 52px) / 1 Arial, "Pretendard", "Noto Sans KR", sans-serif;
  letter-spacing: 0.14em;
}

.boot-brand p {
  margin: 13px 0 0;
  color: #aaa6a0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.boot-progress {
  width: min(250px, 66vw);
  height: 2px;
  margin-top: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.boot-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
  transition: width 560ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.boot-panel.show-brand .boot-progress span {
  width: 100%;
}

.boot-skip {
  position: fixed;
  right: 18px;
  bottom: 16px;
  color: #706d68;
  font-size: 10px;
  letter-spacing: 0.08em;
  user-select: none;
}

@media (max-width: 600px) {
  .boot-panel {
    width: calc(100vw - 28px);
    min-height: 300px;
    padding: 25px 16px 46px;
  }

  .boot-bios,
  .boot-log {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-screen,
  .boot-line,
  .boot-brand,
  .boot-panel.show-brand .boot-bios,
  .boot-panel.show-brand .boot-log,
  .boot-progress span {
    transition-duration: 1ms !important;
  }
}
