/* demo03 · terminal
 * Phosphor-green text on black. Monospace. CLI output cosplay.
 * Subtle CRT scanlines + flicker for atmosphere.
 */

:root {
  --bg: #050605;
  --fg: #29ff5c;
  --dim: #11833a;
  --warn: #ffb000;
  --link: #6cf6ff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.5 ui-monospace, "Menlo", "Consolas", "Courier New", monospace;
  text-shadow: 0 0 1px currentColor;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { background: var(--link); color: var(--bg); text-shadow: none; }

.crt {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  position: relative;
  min-height: 100vh;
}

/* CRT scanlines */
.crt::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.20) 0px,
    rgba(0,0,0,0.20) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
}

/* Slight phosphor flicker */
.crt::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(41,255,92,0.025);
  pointer-events: none;
  z-index: 1;
  animation: flicker 4.6s infinite;
}
@keyframes flicker {
  0%,100% { opacity: 1; }
  47%     { opacity: 0.96; }
  49%     { opacity: 1; }
  91%     { opacity: 0.94; }
  93%     { opacity: 1; }
}

.banner {
  color: var(--fg);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.1;
  margin: 0 0 24px;
  white-space: pre;
  overflow-x: auto;
}

.line {
  margin: 22px 0 6px;
}
.prompt { color: var(--dim); }
.cmd    { color: #fff; font-weight: 700; }

.out {
  white-space: pre-wrap;
  margin: 0 0 8px;
  padding-left: 4px;
  border-left: 2px solid var(--dim);
  padding: 8px 12px;
  color: var(--fg);
}

.blink {
  display: inline-block;
  width: 0.6em;
  background: var(--fg);
  color: var(--fg);
  animation: blink 1.05s step-end infinite;
  margin-left: 4px;
  text-shadow: none;
}
@keyframes blink {
  50% { background: transparent; }
}

::selection { background: var(--fg); color: var(--bg); text-shadow: none; }

@media (max-width: 600px) {
  .banner { font-size: 8px; }
  body { font-size: 12px; }
}
