/* Game Arena promo - catalogue name ticker.
 *
 * Shared by concepts 14-16. The pattern comes from concept 05's spec-ID band,
 * but carries game names instead of task IDs, and unlike 05 it stops under
 * prefers-reduced-motion (05 kept animating, which was a defect).
 */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  /* fade the band at both edges rather than cutting it off */
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ticker__track {
  display: flex;
  gap: 34px;
  width: max-content;
  font-size: 14px;
  color: var(--muted);
  animation: ticker-slide 72s linear infinite;
}

.ticker__item {
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* a hairline separator between names, drawn as a pseudo-element so it never
   wraps with the text */
.ticker__item::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 30px;
  border-radius: 50%;
  background: var(--line);
  vertical-align: middle;
}

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pausing on hover lets someone actually read a name they spotted. */
.ticker:hover .ticker__track { animation-play-state: paused; }

/* Under reduced motion the band becomes a static wrapped list: no duplicated
   copy, no animation, nothing moving at all. */
.ticker--static {
  padding: 16px 0;
  mask-image: none;
  -webkit-mask-image: none;
}

.ticker__static {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13.5px;
  color: var(--muted);
}

.ticker__static .ticker__item::after { display: none; }
