.pause {
  font: 0.875rem system-ui, sans-serif;
}

.ticker {
  margin-block-start: 0.5rem;
  overflow: hidden;
  background-color: lemonchiffon;
}

.line {
  display: inline-block;
  margin: 0;
  padding: 0.5rem 0 0.5rem 100%;
  font: 0.875rem system-ui, sans-serif;
  white-space: nowrap;
  animation: run 12s linear infinite;
}

@keyframes run {
  to {
    translate: -100%;
  }
}

body:has(.pause input:checked) .line {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .line {
    padding-inline-start: 0;
    white-space: normal;
    animation: none;
  }
}