#boot-dialog {
  --boot-green: var(--accent);
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  overflow: auto;
  border: 0;
  color: var(--boot-green);
  background: var(--bg);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  color-scheme: inherit;
}
#boot-dialog::backdrop { background: var(--bg); }
#boot-dialog[open] { display: grid; place-items: center; }
.boot-shell { width: min(1000px, calc(100% - 64px)); padding-block: 34px; position: relative; }
.boot-topline, .boot-bottomline { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.boot-topline { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.boot-heading { display: flex; align-items: center; gap: 30px; padding-block: 37px 33px; border-bottom: 1px solid var(--line); }
.boot-emblem { font-size: 52px; letter-spacing: -.1em; white-space: nowrap; }
.boot-heading p { font: inherit; font-size: 9px; letter-spacing: .15em; color: var(--muted); margin-bottom: 11px; }
.boot-heading h2 { font: inherit; font-weight: bold; font-size: clamp(29px, 5.6vw, 60px); letter-spacing: .045em; line-height: 1; color: var(--text); text-shadow: 0 0 25px transparent; }
.boot-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 25px; margin-block: 28px; min-height: 245px; }
.boot-output { color: var(--accent); font: inherit; font-size: 11px; line-height: 1.9; white-space: pre-wrap; min-height: 232px; }
.boot-art { width: 100%; max-width: 100%; }
.boot-meter { display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; letter-spacing: .065em; }
.boot-bar { white-space: nowrap; }
.boot-percent { margin-left: auto; color: var(--muted); font-size: 12px; }
.boot-access { font-size: 11px; letter-spacing: .13em; padding-block: 18px 30px; }
.boot-controls { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.boot-controls label { display: flex; align-items: center; gap: 9px; font-size: 10px; color: var(--muted); cursor: pointer; }
.boot-controls input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.boot-skip { padding: 12px 16px; border: 1px solid var(--subtle); color: var(--accent); background: var(--panel); font: inherit; font-size: 11px; cursor: pointer; }
.boot-skip span { color: var(--muted); font-size: 9px; margin-left: 22px; }
.boot-skip:hover { background: var(--panel-strong); border-color: var(--accent); }
#boot-dialog :focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.boot-bottomline { padding-top: 23px; margin-top: 24px; border-top: 1px solid var(--line); font-size: 7px; }
.boot-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media print { #boot-dialog[open] { display: none; } }
@media (max-width: 650px) {
  .boot-shell { width: calc(100% - 36px); padding-block: 22px; }
  .boot-topline { font-size: 7px; letter-spacing: .025em; gap: 8px; }
  .boot-heading { gap: 18px; padding-block: 20px; }
  .boot-emblem { font-size: 32px; }
  .boot-heading p { font-size: 6px; letter-spacing: .04em; margin-bottom: 10px; }
  .boot-heading h2 { font-size: clamp(26px, 7vw, 43px); letter-spacing: -.02em; }
  .boot-content { display: flex; flex-direction: column; gap: 12px; min-height: 0; margin-block: 16px; }
  .boot-art { order: -1; display: block; width: 100%; max-width: 420px; }
  .boot-output { font-size: 9px; line-height: 1.65; min-height: 76px; height: 76px; width: 100%; overflow: hidden; }
  .boot-meter { font-size: 12px; letter-spacing: 0; }
  .boot-percent { font-size: 10px; }
  .boot-access { font-size: 8px; letter-spacing: .04em; padding-bottom: 23px; }
  .boot-controls { flex-direction: column-reverse; align-items: stretch; gap: 19px; }
  .boot-controls label { font-size: 10px; }
  .boot-skip { display: flex; justify-content: space-between; align-items: center; padding: 15px; }
  .boot-bottomline { font-size: 5px; letter-spacing: .02em; gap: 8px; margin-top: 25px; padding-top: 18px; }
}
@media (max-height: 660px) and (min-width: 651px) {
  .boot-shell { padding-block: 16px; }
  .boot-heading { padding-block: 20px; }
  .boot-content { margin-block: 16px; min-height: 200px; }
  .boot-art { max-width: 360px; justify-self: center; }
  .boot-output { line-height: 1.6; min-height: 190px; }
  .boot-access { padding-block: 12px; }
  .boot-bottomline { padding-top: 14px; margin-top: 15px; }
}

.boot-art { position: relative; }
.boot-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; visibility: hidden; }
.boot-video-playing .boot-art video { visibility: visible; }
.boot-video-playing .boot-art .mascot { opacity: 0; }
