*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: #0d0d0d;
  color: #c8c8c8;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(12px, 2.5vw, 15px);
  line-height: 1.7;
  overflow-x: hidden;
}

#terminal {
  min-height: 100vh;
  padding: 2rem 1.5rem;
  max-width: 800px;
}

#output {
  white-space: pre-wrap;
  word-break: break-word;
}

.line {
  display: block;
  min-height: 1.7em;
}

.line-ok      { color: #44cc44; }
.line-error   { color: #ff4444; }
.line-dim     { color: #666; }
.line-bold    { color: #ffffff; font-weight: bold; }
.line-reveal  { color: #aaa; font-style: italic; }
.line-cmd     { color: #c8c8c8; }
.line-output  { color: #888; }
.line-sig     { color: #c8c8c8; }

.hostname {
  color: #f0a500;
}

.num404 {
  color: #ff4444;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}
.num404:hover {
  opacity: 0.75;
}

#cursor-line {
  display: flex;
  align-items: center;
  min-height: 1.7em;
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: #c8c8c8;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  margin-left: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.spacer {
  display: block;
  height: 1.7em;
}
