:root {
  --phosphor: #33ff66;
  --phosphor-dim: #1a8a37;
  --bg: #020602;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--phosphor);
  font-family: "Courier New", Courier, monospace;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
  overflow: hidden;
}

.crt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.terminal {
  position: relative;
  padding: 22px 28px;
  border: 2px solid var(--phosphor-dim);
  border-radius: 10px;
  background: radial-gradient(ellipse at center, #051405 0%, #020602 75%);
  box-shadow: 0 0 18px rgba(51, 255, 102, 0.25), inset 0 0 40px rgba(51, 255, 102, 0.06);
}

#screen {
  margin: 0;
  font-size: 18px;
  line-height: 1.0;
  letter-spacing: 1px;
  white-space: pre;
  text-shadow: 0 0 6px rgba(51, 255, 102, 0.85), 0 0 12px rgba(51, 255, 102, 0.4);
  user-select: none;
}

/* CRT scanlines + flicker */
.crt::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.25) 3px,
    rgba(0, 0, 0, 0.25) 4px
  );
  animation: flicker 4s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.78; }
}

.hint {
  margin: 0;
  font-size: 12px;
  color: var(--phosphor-dim);
  text-align: center;
  max-width: 480px;
  line-height: 1.6;
}

@media (max-width: 480px) {
  #screen { font-size: 14px; }
}
