:root {
  color-scheme: dark;
  --bg: #000000;
  --text: #00ff00;
  --muted: #4dff4d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 0 1px rgba(0, 255, 0, 0.2);
}

.terminal {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 4px 6px 6px;
  background: linear-gradient(180deg, rgba(0, 12, 0, 0.98), rgba(0, 0, 0, 1));
  cursor: pointer;
}

.output {
  flex: 1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 2px;
  min-height: 0;
  overflow-y: auto;
}

.line {
  margin: 0;
  min-height: 1em;
}

.prompt-line {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 1em;
}

.prompt-start {
  margin-bottom: 2px;
}

.prompt-end {
  margin-top: 2px;
}

.prompt {
  color: var(--muted);
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1em;
  margin-left: 0.05em;
  background: var(--text);
  box-shadow: 0 0 6px rgba(0, 255, 0, 0.7);
  animation: blink 0.8s steps(1) infinite;
}

.output::after {
  content: "";
  display: block;
  height: 0;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (min-width: 700px) {
  .terminal {
    min-height: 100vh;
    padding: 6px 8px 8px;
  }
}
