:root {
  --bg: #000080;
  --fg: #ffffff;
  --dim: color-mix(in srgb, var(--fg) 60%, transparent);
  --blink: 1.6s;
}

* { box-sizing: border-box; }
html { height: 100%; background: var(--bg); }
body { height: 100%; margin: 0; overflow: hidden; }

.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--height, 100dvh);
  translate: 0 var(--top, 0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 5vh, 56px) clamp(20px, 5vw, 72px);
  color: var(--fg);
  font: 400 clamp(17px, 2vw, 24px)/1.35 "Noto Sans Mono", monospace;
  cursor: text;
  -webkit-user-select: none;
  user-select: none;
}

.term { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; overflow: hidden; }
.term p { margin: 0; min-height: 1.35em; white-space: pre-wrap; overflow-wrap: anywhere; }
.brand { display: none; }
.has-text .brand, .has-log .brand { display: block; }
.comment { color: var(--dim); }
.ghost { opacity: .45; }
.has-text .ghost { display: none; }

.caret {
  display: inline-block;
  width: .1em;
  height: 1.05em;
  vertical-align: -.22em;
  background: currentColor;
  animation: blink var(--blink) steps(1) infinite;
}
.typing .caret { animation: none; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

#input { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; }
