:root {
  color-scheme: dark;
  --white: #fff;
  --text: #fff;
  --muted: #fff;
  --line: #666;
  font: 16px/1.45 'Courier New', Courier, monospace;
  background: #000;
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(18px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  display: grid;
  place-items: center;
  background: #000;
}
button, a { color: inherit; font: inherit; touch-action: manipulation; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, a:focus-visible { outline: 1px dashed var(--white); outline-offset: 3px; }
p,h1,h2 { margin: 0; }
.terminal {
  width: min(100%, 580px);
}
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 3px double var(--line);
}
.mast h1 { display: flex; }
.mast img { width: clamp(88px, 20vw, 125px); height: auto; image-rendering: pixelated; }
.machine { align-self: flex-end; text-align: right; line-height: 1.3; font-size: 14px; letter-spacing: .035em; color: var(--white); }
.status { font-size: 11px; text-transform: uppercase; letter-spacing: .10em; }
.screen > #waiting { width: min(100%, 25rem); container-type: inline-size; }
.start-prompt {
  display: grid;
  gap: .45rem;
  text-align: left;
  white-space: nowrap;
  font-size: min(.875rem, 3.5cqi);
  font-weight: bold;
}
.start-prompt [lang="en"] { font-size: .92em; font-style: italic; font-weight: normal; }
.screen {
  display: grid;
  align-items: center;
  min-height: 263px;
  padding: 24px 0;
}
.command { font-size: clamp(17px, 4.5vw, 23px); letter-spacing: -.035em; line-height: 1.3; margin-bottom: 18px; }
.address, nav a { color: var(--white); }
.address { font-weight: bold; }
.cursor {
  display: inline-block;
  width: .55em;
  height: .18em;
  margin-left: .15em;
  background: var(--white);
  animation: blink 1.12s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.skip { min-height: 44px; text-align: left; display: inline-flex; gap: .7em; align-items: center; }
.key { display: inline-block; padding: 0 .28em; border: 1px solid var(--line); border-bottom-width: 2px; font-size: .84em; text-align: center; line-height: 1.35; }
.divider, .dots { color: var(--muted); }
.skip:hover, #sound:hover { color: #fff; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.log { font-size: clamp(13px, 3.5vw, 16px); min-height: 9em; line-height: 1.5; }
#kb { font-variant-numeric: tabular-nums; }
.skip { color: white; font-size: inherit; letter-spacing: inherit; text-transform: uppercase; }
h2 { font-size: .95rem; font-weight: normal; margin-bottom: 7px; }
nav { display: grid; justify-items: start; }
nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .65em;
  padding: 0 .6em 0 0;
  text-decoration: none;
  font-size: 1.12rem;
}
.arrow { opacity: 0; }
nav a:focus .arrow, nav a:hover .arrow { opacity: 1; }
nav a:hover, nav a:focus { background: #242424; }
.number { color: var(--muted); }
.status { border-top: 1px solid var(--line); display: flex; align-items: center; gap: 18px; min-height: 45px; color: var(--muted); }
.status > span { display: inline-flex; gap: 7px; align-items: center; }
.led { width: 6px; height: 6px; border: 1px solid #999; }
.led.on { background: #fff; box-shadow: 0 0 5px #ffffff60; }
#sound { margin-left: auto; min-height: 44px; text-transform: uppercase; letter-spacing: .04em; }
#sound-state { color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 410px) {
  .screen { min-height: 240px; }
  .status { gap: 11px; font-size: 10px; }
}
@media (max-height: 420px) {
  .mast { padding-bottom: 6px; }
  .screen { min-height: 0; padding: 10px 0; }
  .command { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
.screen > div {
  width: min(100%, 22rem);
  margin-inline: auto;
}

.status { flex-wrap: wrap; column-gap: clamp(8px, 2vw, 18px); row-gap: 0; }
.status .app-actions { margin-left: auto; }
@media (max-width: 410px) {
  .status { letter-spacing: 0; }
  .skip { gap: 4px; }
}
