:root {
  --bg: #0a0a0a;
  --fg: #00ff9c;
  --border: #1c2b24;
  --glow: rgba(0, 255, 156, 0.45);
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, #0d1210 0%, #06070a 70%, #030304 100%);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vw;
}

.terminal {
  width: min(90vw, 560px);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(6, 8, 7, 0.9);
  box-shadow:
    0 0 0 1px rgba(0, 255, 156, 0.05),
    0 0 40px rgba(0, 255, 156, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: flicker 6s infinite;
}

.titlebar {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: #0f1512;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  opacity: 0.85;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.body {
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.25rem);
  font-family: 'Courier New', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.1rem, 4.5vw, 2rem);
  color: var(--fg);
  white-space: nowrap;
  text-shadow: 0 0 6px var(--glow), 0 0 18px rgba(0, 255, 156, 0.2);
}

.prompt {
  opacity: 0.55;
  margin-right: 0.15em;
}

.type {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typing 1.1s steps(6, end) 0.4s forwards;
  vertical-align: bottom;
}

.cursor {
  display: inline-block;
  animation: blink 1s steps(1) infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 3.7em; }
}

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

@keyframes flicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 0.85; }
  98% { opacity: 1; }
  99% { opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .terminal { animation: none; }
  .type { animation: none; width: 3.7em; }
}
