:root {
  --bg: #0b0f0c;
  --fg: #d4e6d4;
  --muted: #7f947f;
  --accent: #4af626;
  --accent-dim: #2f9e1a;
  --cyan: #58d6c9;
  --yellow: #e3c567;
  --red: #ff6b6b;
  --font: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  padding: 24px 20px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.015) 0,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 10;
}

#terminal {
  max-width: 900px;
  margin: 0 auto;
  min-height: 100%;
  cursor: text;
}

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

#output .line {
  min-height: 1.55em;
}

#output .line.error {
  color: var(--red);
}

#output .line.dim {
  color: var(--muted);
}

#output a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dotted var(--cyan);
}

#output a:hover {
  background: var(--cyan);
  color: var(--bg);
}

#input-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.prompt {
  color: var(--cyan);
  white-space: pre;
  text-shadow: 0 0 8px rgba(88, 214, 201, 0.35);
}

#input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font: inherit;
  caret-color: var(--accent);
  min-width: 0;
}

.blink {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

::selection {
  background: rgba(74, 246, 38, 0.25);
}

@media (max-width: 600px) {
  body {
    font-size: 13px;
    padding: 16px 12px;
  }
}
