@font-face {
  font-family: "IBM PC MDA";
  src: url("/fonts/ibm-mda-437.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 87.5%;
}
@font-face {
  font-family: "NeoDunggeunmo";
  src: url("/fonts/neodgm.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7FF, U+FFA0-FFDC;
}
:root {
  color-scheme: dark;
  font-family: "IBM PC MDA", "NeoDunggeunmo", Monaco, "Lucida Console", "Liberation Mono", monospace;
  color: #ededed;
  background: #000;
}
body {
  margin: 0;
}
.booting .terminal { visibility: hidden; }
.terminal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-width: 0;
}
.cursor {
  width: .58em;
  height: 1em;
  margin-inline-start: -.37em;
  background: currentColor;
  animation: blink 1.2s step-end infinite;
}
@keyframes blink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
.interaction {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  scrollbar-color: #575757 #191919;
  padding-block: max(17px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-bottom));
  padding-left: max(clamp(14px, 3vw, 24px), env(safe-area-inset-left));
  padding-right: max(clamp(14px, 3vw, 24px), env(safe-area-inset-right));
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
}
#last-login { margin: 0 0 .4em; white-space: pre-wrap; }
#history:not(:empty) { margin: 8px 0; }
#history p { margin: 0 0 .55em; white-space: pre-wrap; overflow-wrap: anywhere; }
.question { color: #a6a6a6; }
.answer { color: #c1d3cb; }
.notice { color: #b8b8b8; }
form { display: flex; align-items: center; gap: .6em; }
form[hidden] { display: none; }
form.prompt-suspended { opacity: 0; pointer-events: none; }
@media (pointer: coarse) {
  html, body { overflow: hidden; }
  .terminal {
    position: fixed;
    inset: var(--terminal-top, 0px) 0 auto;
    height: var(--terminal-height, 100dvh);
  }
}
.prompt { flex: none; white-space: nowrap; color: #aaa; }
.prompt .identity { color: #d4d4d4; }
.prompt strong { color: #ededed; font-weight: 400; }
.prompt .location { color: #ededed; }
.entry { position: relative; flex: 1; min-width: 0; }
input {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  outline: none;
  font: inherit;
  color: inherit;
  caret-color: currentColor;
  background: transparent;
}
.entry .cursor {
  position: absolute;
  top: 50%;
  left: 0;
  margin: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.entry:focus-within .cursor, .entry.has-text .cursor { display: none; }
#status { color: #b8b8b8; margin: .3em 0 .45em; }
#status:empty { display: none; }

#history .guest2,
#history .guest2 .prompt,
#history .guest2 .identity,
#history .guest2 strong,
#history .guest2 .location { color: #efbe70; }

.typing::after {
  display: inline-block;
  width: .58em;
  height: 1em;
  background: currentColor;
  vertical-align: -.14em;
  content: "";
}

[hidden]{display:none!important}
#admin-frame{position:fixed;inset:0;width:100%;height:100%;border:0;z-index:2;background:transparent}
