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

body {
  background: #0a0a0a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VintageTerminal', 'Courier New', Courier, monospace;
  padding: 20px;
}

/* CRT scanline overlay */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1) 0px,
    rgba(0, 0, 0, 0.1) 2px,
    transparent 2px,
    transparent 4px
  );
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.7);
}

.terminal-wrapper {
  max-width: 780px;
  width: 100%;
  background: #0c0c0c;
  border-radius: 12px;
  padding: 30px 35px;
  box-shadow: 
    inset 0 0 60px rgba(0, 255, 100, 0.03),
    0 0 80px rgba(0, 0, 0, 0.9);
  position: relative;
}

/* CRT glow effect */
.terminal-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 255, 100, 0.015) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.terminal {
  color: #66ff99;
  text-shadow: 0 0 8px rgba(0, 255, 100, 0.1);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 255, 100, 0.08);
}

.prompt {
  color: #88ffaa;
  font-weight: bold;
  text-shadow: 0 0 12px rgba(0, 255, 100, 0.15);
}

.command {
  color: #bbffdd;
  text-shadow: 0 0 10px rgba(0, 255, 100, 0.08);
}

.response {
  color: #99ccaa;
  padding-left: 20px;
  margin-bottom: 8px;
  text-shadow: 0 0 6px rgba(0, 255, 100, 0.05);
  word-break: break-word;
}

.response.highlight {
  color: #ccff88;
  text-shadow: 0 0 20px rgba(100, 255, 100, 0.12);
}

.output > div {
  margin-bottom: 2px;
}

.cursor {
  display: inline-block;
  color: #88ffaa;
  font-weight: bold;
  margin-left: 2px;
}

.blink {
  animation: blink 1s step-end infinite;
}

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

.status-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 255, 100, 0.08);
  font-size: 12px;
  color: #447755;
  letter-spacing: 0.5px;
}

.status-bar span {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 650px) {
  .terminal-wrapper {
    padding: 20px 22px;
  }
  .terminal {
    font-size: 13px;
    line-height: 1.6;
  }
  .status-bar {
    font-size: 10px;
    flex-wrap: wrap;
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .terminal-wrapper {
    padding: 14px 16px;
  }
  .terminal {
    font-size: 11px;
    line-height: 1.5;
  }
  .response {
    padding-left: 10px;
  }
  .status-bar {
    font-size: 9px;
  }
}
