* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --fg: #39ff14;
  --fg-dim: #2bd30f;
  --fg-muted: #1d8f0a;
  --glow: rgba(57, 255, 20, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Courier New", "Lucida Console", Monaco, Consolas, monospace;
  min-height: 100vh;
}

.terminal {
  position: relative;
  min-height: 100vh;
  padding: 32px 24px 80px;
  overflow: hidden;
}

.screen {
  max-width: 980px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.5;
  text-shadow: 0 0 8px var(--glow);
  white-space: pre-wrap;
}

.line {
  display: block;
  margin: 2px 0;
}

.line.selectable {
  cursor: pointer;
}

.line.selectable:hover {
  color: var(--fg);
  text-shadow: 0 0 12px var(--glow);
}

.line.prompt {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.prompt-label {
  color: var(--fg);
}

.input {
  flex: 1;
  min-height: 1em;
  outline: none;
  color: var(--fg);
  caret-color: var(--fg);
}

.dim {
  color: var(--fg-dim);
}

.muted {
  color: var(--fg-muted);
}

.alert {
  color: #ff3b3b;
  text-shadow: 0 0 10px rgba(255, 59, 59, 0.6);
}

.ascii {
  white-space: pre;
  letter-spacing: 1px;
}

.cursor {
  display: inline-block;
  width: 10px;
  margin-left: 2px;
  color: var(--fg);
  animation: blink 1s steps(2, start) infinite;
}

.scanlines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(255, 255, 255, 0.03) 50%,
    rgba(0, 0, 0, 0.05) 50%
  );
  background-size: 100% 3px;
  mix-blend-mode: screen;
  opacity: 0.15;
}

.noscript {
  color: var(--fg);
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .terminal {
    padding: 20px 16px 64px;
  }

  .screen {
    font-size: 14px;
  }
}
