Scanline sweep

Scanline sweep: a CSS button. Copy the rules, or the prompt that rebuilds it.

cyberpunkscanlinerectangledarkanimated

CSS
.btn-143 {
  position: relative;
  overflow: hidden;
  font: 600 14px/1 ui-monospace,Menlo,monospace;
  letter-spacing: .1em;
  color: #4ade80;
  background: #052e16;
  border: 1px solid #16a34a;
  border-radius: 2px;
  padding: 13px 28px;
  cursor: pointer;
  background-image: repeating-linear-gradient(0deg,#0000 0 2px,#4ade8014 2px 3px);
  isolation: isolate;
  transition: color .2s
}
.btn-143::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -40%;
  height: 40%;
  background: linear-gradient(#4ade8000,#4ade8055);
  z-index: -1;
  animation: scan143 2.2s linear infinite
}
.btn-143:hover {
  color: #bbf7d0;
  text-shadow: 0 0 6px #4ade80
}
.btn-143:hover::after {
  animation-duration: .9s
}
.btn-143:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 3px
}
.btn-143:active {
  background-color: #14532d
}
@keyframes scan143 {
  to {
    top: 140%
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn-143, .btn-143 * { animation: none; transition: none; }
}
HTML
<button class="btn-143">Scan</button>
Prompt

A retro-terminal button: dark green #052e16 with 1px #16a34a border, 2px radius, green #4ade80 monospace 14px semibold text with 0.1em tracking, 13px by 28px padding, faint horizontal scanlines (repeating 1px translucent green lines every 3px). A translucent green band sweeps from top to bottom every 2.2s (overflow hidden). Hover brightens the text with a glow and speeds the sweep; active lightens the base to #14532d. Focus 2px green outline.