/* Compact play-history ticker + current-player glow. */
.statusbar.ticker-mode {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.game-ticker-ui {
  grid-column: 1;
  min-width: 0;
}

.history-ticker {
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 100%);
}

.ticker-item {
  flex: 0 0 auto;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .72rem;
  color: rgba(255,255,255,.52);
}

.ticker-item.latest {
  color: rgba(255,255,255,.96);
  font-weight: 780;
}

.ticker-turn {
  color: rgba(255,255,255,.78);
  font-weight: 850;
}

.ticker-arrow {
  flex: 0 0 auto;
  color: rgba(255,255,255,.28);
  font-size: .7rem;
}

.statusbar.ticker-mode #newGameBtn {
  grid-column: 2;
}

/* The table itself now carries the turn signal. */
.seat.active .beer-mat {
  box-shadow:
    0 5px 12px rgba(0,0,0,.28),
    inset 0 0 0 2px rgba(255,255,255,.35),
    0 0 0 3px rgba(255,64,64,.72),
    0 0 22px 8px rgba(255,42,42,.42);
  animation: active-player-glow 1.7s ease-in-out infinite;
}

.seat.active .beer-mat-drink {
  filter:
    drop-shadow(0 3px 3px rgba(0,0,0,.3))
    drop-shadow(0 0 7px rgba(255,55,55,.78));
}

@keyframes active-player-glow {
  0%, 100% {
    box-shadow:
      0 5px 12px rgba(0,0,0,.28),
      inset 0 0 0 2px rgba(255,255,255,.35),
      0 0 0 3px rgba(255,64,64,.62),
      0 0 16px 5px rgba(255,42,42,.30);
  }
  50% {
    box-shadow:
      0 5px 12px rgba(0,0,0,.28),
      inset 0 0 0 2px rgba(255,255,255,.35),
      0 0 0 4px rgba(255,78,78,.88),
      0 0 28px 10px rgba(255,42,42,.50);
  }
}

@media (prefers-reduced-motion: reduce) {
  .seat.active .beer-mat { animation: none; }
}

@media (max-width: 760px) {
  .statusbar.ticker-mode {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .ticker-item {
    max-width: 170px;
    font-size: .62rem;
  }
}
