/* fp-ticker.css — the header LIVE SCORES rail.
 *
 * Token-only, per console/tests/test_color_audit.php. No raw hex, rgb or hsl:
 * every colour is a var() from tokens.css, and transparency is color-mix.
 *
 * The rail scrolls horizontally rather than wrapping. The header is a fixed
 * height and a second line of scores would push the search field and the
 * actions apart on every page of the site. */

.fp-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;              /* lets the rail shrink instead of shoving actions */
  flex: 1 1 auto;
  max-width: 620px;
  margin-inline: 4px;
}

.fp-ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font: 700 var(--fs-xs)/1 var(--font-body);
  letter-spacing: .08em;
  color: var(--fp-text-2);
  white-space: nowrap;
}

.fp-ticker-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fp-red);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--fp-red) 60%, transparent);
  animation: fp-ticker-pulse 2s ease-out infinite;
}

@keyframes fp-ticker-pulse {
  70%  { box-shadow: 0 0 0 6px color-mix(in srgb, var(--fp-red) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fp-red) 0%, transparent); }
}

/* A live dot that never stops moving is a problem for anyone who asked the
   system to stop things moving. */
@media (prefers-reduced-motion: reduce) {
  .fp-ticker-dot { animation: none; }
  .fp-ticker-rail { scroll-behavior: auto; }
}

.fp-ticker-rail {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.fp-ticker-rail::-webkit-scrollbar { display: none; }

.fp-ticker-game {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 5px 10px;
  border-radius: var(--fp-radius-pill);
  background: color-mix(in srgb, var(--fp-surface-panel) 70%, transparent);
  border: 1px solid var(--fp-border);
  text-decoration: none;
  white-space: nowrap;
}
.fp-ticker-game:hover { border-color: var(--fp-volt); }

.fp-ticker-t {
  font: 700 var(--fs-xs)/1 var(--font-body);
  color: var(--fp-text-2);
  letter-spacing: .02em;
}
.fp-ticker-s {
  font: 800 var(--fs-sm)/1 var(--font-body);
  color: var(--fp-text);
  font-variant-numeric: tabular-nums;
}
.fp-ticker-sep { color: var(--fp-text-2); }
.fp-ticker-c {
  font: 600 var(--fs-xs)/1 var(--font-body);
  color: var(--fp-volt);
  font-variant-numeric: tabular-nums;
  margin-left: 2px;
}

/* Below the header's own breakpoint there is no room. The mobile header is a
   back arrow, a logo and two icons, and the ticker would take the search. */
@media (max-width: 1100px) {
  .fp-ticker { display: none; }
}
