/* ==========================================================================
   ANNOUNCEMENT TICKER (.drop-ticker)
   Slow sideways crawl between the hero and the space portal, set in the Berkahi
   Blackletter face. js/drop-ticker.js clones the list and sets --ticker-distance /
   --ticker-duration, then adds .is-running to start the CSS animation. Without
   JS (or with reduced motion) the row is a plain horizontal scroller.
   ========================================================================== */

.drop-ticker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: clamp(84px, 9vw, 132px);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

/* Scanlines over the whole band, matching the CRT sets */
.drop-ticker::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
}

[data-theme="swiss-mono"] .drop-ticker::after {
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px);
}

.ticker-viewport {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.ticker-viewport::-webkit-scrollbar {
  display: none;
}

.drop-ticker.is-running .ticker-viewport {
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
}

.drop-ticker.is-running .ticker-track {
  animation: tickerCrawl var(--ticker-duration, 60s) linear infinite;
}

@keyframes tickerCrawl {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-1 * var(--ticker-distance, 0px)), 0, 0); }
}

.ticker-group {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* REC-dot separator after every item (the clone keeps the rhythm across the seam) */
.ticker-item::after {
  content: '';
  width: 7px;
  height: 7px;
  margin: 0 clamp(1.75rem, 4vw, 3.5rem);
  border-radius: 50%;
  background: var(--accent-rec);
  opacity: 0.85;
}

.ticker-item a {
  display: inline-flex;
  align-items: baseline;
  gap: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.ticker-text {
  font-family: var(--font-hero);
  font-weight: normal;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 1.15;
  text-shadow: 1px 0 0 rgba(255, 51, 68, 0.45), -1px 0 0 rgba(0, 240, 255, 0.35);
  transition: color 200ms ease;
}

.ticker-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ticker-item a:hover .ticker-text,
.ticker-item a:focus-visible .ticker-text {
  color: var(--accent-rec);
}

.ticker-item a:focus-visible {
  outline: 1px solid var(--accent-rec);
  outline-offset: 6px;
}
