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

:root {
  --green: #00ff41;
  --bg: #020402;
  --scan-gap: 3px;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
  cursor: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent var(--scan-gap),
    rgba(0, 0, 0, 0.18) var(--scan-gap),
    rgba(0, 0, 0, 0.18) calc(var(--scan-gap) + 1px)
  );
  pointer-events: none;
  z-index: 90;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
  z-index: 91;
}

#rain {
  position: fixed;
  inset: 0;
  opacity: 0.15;
  z-index: 1;
}

.border {
  position: fixed;
  inset: 24px;
  border: 1px solid rgba(0, 255, 65, 0.12);
  z-index: 95;
  pointer-events: none;
}

.border::before {
  content: "[ cwspecial.com ]";
  position: absolute;
  top: -0.6em;
  left: 20px;
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(0.65rem, 1.4vw, 0.85rem);
  color: rgba(0, 255, 65, 0.38);
  letter-spacing: 0.06em;
  background: var(--bg);
  padding: 0 8px;
}

.stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  z-index: 20;
}

.prompt-line {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(0.65rem, 1.4vw, 0.85rem);
  color: rgba(0, 255, 65, 0.38);
  letter-spacing: 0.06em;
}

.title {
  font-family: "VT323", monospace;
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 400;
  color: var(--green);
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow:
    0 0 8px rgba(0, 255, 65, 0.9),
    0 0 24px rgba(0, 255, 65, 0.4),
    0 0 70px rgba(0, 255, 65, 0.12);
  position: relative;
  user-select: none;
}

.title::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: #ff0040;
  text-shadow: none;
  clip-path: inset(0 0 100% 0);
  animation: glitch-r 5s infinite 2s;
  mix-blend-mode: screen;
}

.title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: #00cfff;
  text-shadow: none;
  clip-path: inset(0 0 100% 0);
  animation: glitch-b 5s infinite 2.15s;
  mix-blend-mode: screen;
}

@keyframes glitch-r {
  0%, 94%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  95% { clip-path: inset(20% 0 55% 0); transform: translate(-3px, 0); }
  96% { clip-path: inset(60% 0 10% 0); transform: translate(2px, 0); }
  97% { clip-path: inset(40% 0 30% 0); transform: translate(-4px, 0); }
  98% { clip-path: inset(10% 0 70% 0); transform: translate(3px, 0); }
  99% { clip-path: inset(0 0 100% 0); transform: none; }
}

@keyframes glitch-b {
  0%, 94%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  95% { clip-path: inset(50% 0 30% 0); transform: translate(3px, 0); }
  96% { clip-path: inset(10% 0 65% 0); transform: translate(-2px, 0); }
  97% { clip-path: inset(70% 0 5% 0); transform: translate(4px, 0); }
  98% { clip-path: inset(30% 0 45% 0); transform: translate(-3px, 0); }
  99% { clip-path: inset(0 0 100% 0); transform: none; }
}

#cur {
  position: fixed;
  width: 14px;
  height: 14px;
  border: 1px solid var(--green);
  pointer-events: none;
  translate: -50% -50%;
  z-index: 200;
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.6);
}

#cur::before,
#cur::after {
  content: "";
  position: absolute;
  background: var(--green);
}

#cur::before {
  width: 1px;
  height: 6px;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}

#cur::after {
  width: 6px;
  height: 1px;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}

#cur-trail {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 50%;
  pointer-events: none;
  translate: -50% -50%;
  z-index: 199;
  transition: left 0.18s ease, top 0.18s ease;
}
