:root {
  --bg: #000;
  --green: #00ff41;
  --green-dim: #1fa84a;
  --green-dark: #032b10;
  --pink: #ff2bd6;
  --cyan: #00f0ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--green);
  font-family: "Courier New", Courier, ui-monospace, monospace;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 16px;
}
#rain { position: fixed; inset: 0; width: 100%; height: 100%; opacity: .35; z-index: 0; }
.grid { position: fixed; inset: auto 0 0 0; height: 45vh; overflow: hidden; z-index: 0; }
.grid::before {
  content: ""; position: absolute; inset: 0 -50% -20% -50%;
  background-image:
    linear-gradient(rgba(0, 255, 65, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 43, 214, .25) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: top;
  mask-image: linear-gradient(to bottom, transparent, #000 50%);
  animation: roll 3s linear infinite;
}
@keyframes roll { to { background-position: 0 48px, 0 0; } }
.scan {
  position: fixed; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.25) 0 1px, transparent 1px 3px);
  animation: flicker 6s infinite;
}
@keyframes flicker { 0%, 97%, 100% { opacity: 1; } 98% { opacity: .6; } }
main {
  position: relative; z-index: 1; text-align: center;
  width: min(100%, 40rem);
  background: rgba(0, 0, 0, .78);
  border: 1px solid var(--green-dim);
  box-shadow: 0 0 24px rgba(0, 255, 65, .15), inset 0 0 40px rgba(0, 255, 65, .05);
  padding: 1.375rem 1.375rem 1.625rem;
}
.bar {
  text-align: left; font-size: 1rem; color: var(--green-dim);
  border-bottom: 1px dashed var(--green-dim); padding-bottom: .5rem; margin-bottom: 1.5rem;
}
.bar a { color: var(--green); font-weight: bold; }
.bar a:hover { color: var(--bg); background: var(--green); }
h1 {
  font-size: clamp(2.9rem, 13.5vw, 6rem);
  font-weight: bold; letter-spacing: .06em; line-height: 1;
  color: var(--green);
  text-shadow: 0 0 4px var(--green), 0 0 18px rgba(0, 255, 65, .7), 0 0 50px rgba(0, 255, 65, .35);
}
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(100% 0 0 0);
  text-shadow: none;
}
.glitch::before { color: var(--pink); animation: g1 3.2s infinite steps(1); }
.glitch::after  { color: var(--cyan); animation: g2 2.7s infinite steps(1); opacity: .8; }
@keyframes g1 {
  0%, 88%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  90% { clip-path: inset(20% 0 55% 0); transform: translate(-4px, 0); }
  94% { clip-path: inset(60% 0 10% 0); transform: translate(3px, 0); }
}
@keyframes g2 {
  0%, 92%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  94% { clip-path: inset(40% 0 35% 0); transform: translate(4px, 0); }
  97% { clip-path: inset(5% 0 80% 0); transform: translate(-3px, 0); }
}
.sub { margin-top: .95rem; font-size: clamp(.95rem, 3.2vw, 1.1rem); letter-spacing: .15em; color: var(--green); opacity: .85; }
.box {
  width: 100%; margin-top: 1.5rem; border-collapse: collapse;
  text-align: left; font-size: clamp(.95rem, 3vw, 1.025rem);
}
.box th {
  background: var(--green-dark); color: var(--green);
  border: 1px solid var(--green-dim); padding: .425rem .675rem; font-weight: bold;
}
.box td { border: 1px solid var(--green-dark); padding: .475rem .675rem; line-height: 1.3; }
.box td:first-child { color: var(--green-dim); width: 7rem; white-space: nowrap; }
.box b { color: var(--pink); font-weight: normal; }
.prompt { margin-top: 1.375rem; text-align: left; font-size: 1rem; color: var(--green-dim); }
.cursor { color: var(--green); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
