* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: "Courier New", Courier, monospace;
}

.screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  background: #0a0e0a;
  color: #4dff88;
  text-shadow: 0 0 4px rgba(77, 255, 136, 0.65);
  padding: 24px;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.2) 3px
  );
  pointer-events: none;
  z-index: 2;
}

#output, #typed, .prompt, .cursor {
  font-size: clamp(13px, 1.8vw, 17px);
  line-height: 1.75;
}

#output {
  white-space: pre-wrap;
  margin: 0;
}

#typed {
  white-space: pre-wrap;
}

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

.prompt {
  color: #8cf59a;
  opacity: 0.85;
}

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