/* TX Arena presence badge (docs/specs/auth-presence.md §4.3): "<online> playing now · <today> today" with a
   breathing green dot; hidden until numbers exist. A placer may resize it with font-size (the mp hub uses
   .mp-hub-live, styled by mp.css). */
.tx-presence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 400;
  white-space: nowrap;
  color: rgb(var(--text-secondary, 160 166 182));
  font-variant-numeric: tabular-nums;
}
.tx-presence[hidden] {
  display: none;
}
.tx-presence-txt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-presence-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgb(var(--increase, 47 227 172));
}
.tx-presence-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgb(var(--increase, 47 227 172) / 0.22);
  animation: tx-presence-breathe 2.8s ease-in-out infinite;
}
@keyframes tx-presence-breathe {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
.tx-presence.compact {
  gap: 5px;
  font-size: 11px;
}

@media (prefers-reduced-motion: reduce) {
  .tx-presence-dot::after {
    animation: none;
    opacity: 0.5;
  }
}
