html,
body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
}

body {
  display: grid;
  place-items: center;
  background: #143814;
  color: #9aff9a;
  padding: clamp(20px, 3vw, 36px);
  overflow: hidden;
  position: relative;
  font-smooth: never;
  -webkit-font-smoothing: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(220, 255, 220, 0.055) 0,
      rgba(220, 255, 220, 0.055) 1px,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0) 4px
    );
  opacity: 0.42;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 140% 110% at 50% 50%,
      rgba(150, 255, 150, 0.12) 0%,
      rgba(70, 160, 70, 0.06) 38%,
      rgba(0, 0, 0, 0.04) 62%,
      rgba(0, 0, 0, 0.16) 82%,
      rgba(0, 0, 0, 0.28) 100%
    );
  animation: crt-flicker 6s infinite steps(1, end);
}

.devnull-console-line {
  margin: 0;
  white-space: pre;
  font-family: "Courier New", "Lucida Console", Monaco, monospace;
  font-size: clamp(14px, 2.4vw, 22px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #98ff98;
  text-shadow:
    0 0 2px rgba(180, 255, 180, 0.98),
    0 0 8px rgba(110, 255, 110, 0.52),
    0 0 18px rgba(80, 255, 80, 0.22);
  filter: contrast(1.08) saturate(1.04) brightness(1.04);
}

#terminal {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: none;
  min-height: calc(100vh - (clamp(20px, 3vw, 36px) * 2));
  padding: 0;
  background: transparent;
  display: grid;
  place-items: center;
  text-align: center;
  transform-origin: center center;
  will-change: transform;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes crt-flicker {
  0% { opacity: 0.996; }
  10% { opacity: 0.991; }
  18% { opacity: 1; }
  54% { opacity: 0.993; }
  80% { opacity: 0.998; }
  100% { opacity: 0.995; }
}

@media (max-width: 640px) {
  body {
    padding: 16px;
  }

  .devnull-console-line {
    font-size: clamp(10px, 2.9vw, 14px);
    line-height: 1.18;
    letter-spacing: 0;
  }

  #terminal {
    min-height: calc(100vh - 32px);
  }
}
