/* Счётчик «В сети» (Socket.io), неон + глитч при смене числа */
.online-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.online-bar--game,
.online-bar--airhockey {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid rgba(0, 255, 200, 0.15);
  background: rgba(0, 8, 6, 0.55);
}

.online-bar--games {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.games-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.25rem;
}

.games-title-row .inner-article__title {
  margin-bottom: 0;
}

.online-indicator {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.online-indicator__label {
  color: rgba(120, 160, 150, 0.85);
}

.online-indicator__value {
  min-width: 1.5ch;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #00ffc8;
  text-shadow:
    0 0 10px rgba(0, 255, 200, 0.45),
    0 0 22px rgba(0, 255, 200, 0.2);
  transition: color 0.15s ease;
}

.online-indicator__value--pulse {
  animation: online-value-glitch 0.48s ease;
}

@keyframes online-value-glitch {
  0%,
  100% {
    opacity: 1;
    transform: translate(0, 0);
    color: #00ffc8;
    text-shadow:
      0 0 10px rgba(0, 255, 200, 0.5),
      0 0 20px rgba(255, 0, 170, 0.15);
  }
  15% {
    opacity: 0.88;
    transform: translate(-2px, 1px);
    color: #ff44cc;
    text-shadow:
      3px 0 0 rgba(0, 255, 200, 0.6),
      -2px 0 0 rgba(255, 0, 170, 0.5);
  }
  30% {
    opacity: 1;
    transform: translate(2px, -1px);
    color: #7dffb8;
    text-shadow:
      -2px 0 0 rgba(255, 0, 170, 0.45),
      2px 0 0 rgba(0, 255, 200, 0.5);
  }
  45% {
    opacity: 0.92;
    transform: translate(-1px, 0);
    color: #00ffc8;
    text-shadow: 0 0 16px rgba(255, 0, 170, 0.35);
  }
  60% {
    transform: translate(1px, 1px);
    color: #e8fff8;
  }
  75% {
    transform: translate(0, 0);
    color: #00ffc8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .online-indicator__value--pulse {
    animation: none;
    opacity: 1;
    outline: 1px solid rgba(0, 255, 200, 0.4);
    outline-offset: 2px;
  }
}
