
:root {
  --bg: #0a0a0a;
  --green: #1d9e75;
}

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

html,
body {
  height: 100%;
}

body {
  display: grid;
  place-items: center;
  background: var(--bg);
  font-family: ui-monospace, monospace;
  overflow: hidden;
  position: relative;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, .18) 3px,
    rgba(0, 0, 0, .18) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.sweep {
  position: fixed;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(29, 158, 117, .06) 50%,
    transparent 100%
  );
  animation: sweep 5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes sweep {
  0% {
    top: -80px;
  }

  100% {
    top: calc(100% + 80px);
  }
}

.prompt {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .15em;
  font-size: clamp(1rem, 3.5vw, 2rem);
  text-shadow:
    0 0 8px rgba(29, 158, 117, .8),
    0 0 24px rgba(29, 158, 117, .4),
    0 0 48px rgba(29, 158, 117, .15);
}

.prompt-block {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: .6em;
  align-self: center;
  padding: 0 1.5rem;
  box-sizing: border-box;
  width: 100%;
}

.error {
  font-size: clamp(1rem, 3.5vw, 2rem);
  color: #444;
}

.white {
  color: #fff;
}

.green {
  color: var(--green);
}

.dollar {
  color: #fff;
  text-shadow:
    0 0 8px rgba(255, 255, 255, .5),
    0 0 20px rgba(255, 255, 255, .2);
}

.cursor {
  color: var(--green);
  font-weight: 100;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  text-align: center;
  font-size: .75rem;
  color: #2a2a2a;
  letter-spacing: .06em;
  z-index: 3;
  font-family: ui-monospace, monospace;
}

@media (max-width: 768px) {
  .prompt-block p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
