/* ===== UPD: Live Wins ticker (portable block) ===== */
.upd-livewins {
  --upd-lw-bg: var(--dark2, #1a1a1a);
  --upd-lw-border: var(--border, #333333);
  --upd-lw-text: var(--gray-light, #cccccc);
  --upd-lw-muted: var(--gray, #888888);
  --upd-lw-label: var(--gold, #f5c518);
  --upd-lw-win: #3ddc84;
  --upd-lw-white: var(--white, #ffffff);
  --upd-lw-font: 'Segoe UI', Arial, sans-serif;
  --upd-lw-h: 40px;
  --upd-lw-nav-h: 56px;
  --upd-lw-speed: 80s;

  background: var(--upd-lw-bg);
  border-bottom: 1px solid var(--upd-lw-border);
  height: var(--upd-lw-h);
  position: sticky;
  top: var(--upd-lw-nav-h);
  z-index: 999;
  overflow: hidden;
  font-family: var(--upd-lw-font);
  touch-action: pan-y;
}

.upd-livewins__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 14px;
}

.upd-livewins__label {
  flex: 0 0 auto;
  color: var(--upd-lw-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  text-transform: none;
}

.upd-livewins__label-short {
  display: none;
}

.upd-livewins__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.upd-livewins__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.upd-livewins__track.is-ready {
  animation: upd-livewins-scroll var(--upd-lw-speed, 80s) linear infinite;
  animation-play-state: running;
}

@keyframes upd-livewins-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.upd-livewins__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.78rem;
  line-height: 1;
  color: var(--upd-lw-text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.upd-livewins__item:hover {
  color: var(--upd-lw-white);
}

.upd-livewins__thumb {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
  background: #2a2a2a;
  flex: 0 0 auto;
}

.upd-livewins__user {
  color: var(--upd-lw-muted);
  font-weight: 600;
}

.upd-livewins__verb {
  color: var(--upd-lw-muted);
  font-weight: 500;
}

.upd-livewins__amount {
  color: var(--upd-lw-win);
  font-weight: 800;
  letter-spacing: 0.2px;
}

.upd-livewins__sep {
  color: var(--upd-lw-muted);
  margin: 0 2px;
}

.upd-livewins__game {
  color: var(--upd-lw-white);
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upd-livewins__label a {
  color: inherit;
  text-decoration: none;
}

.upd-livewins__label a:hover {
  color: var(--orange-light, #ff7a3d);
}

.upd-livewins__promo {
  flex: 0 0 auto;
  color: var(--upd-lw-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  padding-left: 10px;
  border-left: 1px solid var(--upd-lw-border);
}

.upd-livewins__promo a {
  color: inherit;
  text-decoration: none;
}

.upd-livewins__promo a:hover {
  color: var(--upd-lw-label);
}

@media (max-width: 900px) {
  .upd-livewins__promo {
    display: none;
  }
}

@media (max-width: 768px) {
  .upd-livewins {
    --upd-lw-h: 36px;
    --upd-lw-speed: 130s;
  }

  .upd-livewins__inner {
    padding: 0 10px;
    gap: 8px;
  }

  .upd-livewins__label {
    font-size: 0.68rem;
    letter-spacing: 0.2px;
  }

  .upd-livewins__label-full {
    display: none;
  }

  .upd-livewins__label-short {
    display: inline;
  }

  .upd-livewins__verb,
  .upd-livewins__sep {
    display: none;
  }

  .upd-livewins__item {
    font-size: 0.7rem;
    gap: 5px;
  }

  .upd-livewins__thumb {
    width: 18px;
    height: 18px;
    border-radius: 3px;
  }

  .upd-livewins__game {
    max-width: 78px;
  }

  .upd-livewins__track {
    gap: 16px;
  }

  .upd-livewins__viewport {
    mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
  }
}

@media (max-width: 480px) {
  .upd-livewins {
    --upd-lw-nav-h: 52px;
    --upd-lw-h: 34px;
    --upd-lw-speed: 145s;
  }

  .upd-livewins__inner {
    padding: 0 8px;
    gap: 6px;
  }

  .upd-livewins__game {
    max-width: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .upd-livewins__track.is-ready {
    animation-duration: 160s;
  }
}
