/* The classic look: light text on black, the status line in reverse video. */
:root {
  --bg: #000;
  --fg: #c8c8c8;
  --dim: #8a8a8a;
  --font: 'Courier New', Courier, ui-monospace, monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.45 var(--font);
}
body {
  display: flex;
  flex-direction: column;
}
#status {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 2px 1ch;
  background: var(--fg);
  color: var(--bg);
  white-space: nowrap;
  overflow: hidden;
}
#room {
  overflow: hidden;
  text-overflow: ellipsis;
}
#screen {
  flex: 1;
  overflow-y: auto;
  padding: 1em 1ch 2em;
  outline: none;
}
#log {
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 80ch;
}
#log .cmd {
  color: #fff;
}
#prompt {
  display: flex;
  max-width: 80ch;
}
#prompt label {
  padding-right: 0.5ch;
}
#cmd {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  caret-color: var(--fg);
}
#prompt.off {
  display: none;
}
