/* web/css/live.css - Live arenas telemetry & online players styling */
/* Strictly <= 200 lines, <= 100 chars per line. */

.ready-timer-track {
  width: 100%; height: 7px; background: rgba(0, 0, 0, 0.08);
  border-radius: 4px; overflow: hidden; margin-bottom: 0.85rem;
}

.ready-timer-fill {
  height: 100%; width: 100%; background: var(--hanko-red);
  border-radius: 4px; transition: width 0.95s linear;
}

.vs-avatar.mystery {
  filter: grayscale(1) contrast(1.5) brightness(0.2); opacity: 0.75;
}

.dojo-live-card {
  margin-top: 1rem; padding: 1.25rem 1rem;
  border: 1px solid var(--brush-border); border-radius: 10px;
  background: var(--washi-card);
}

.live-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.85rem; padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--brush-border);
}

.live-indicator-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 900; letter-spacing: 1px;
  color: var(--hanko-red); text-transform: uppercase;
}

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hanko-red); box-shadow: 0 0 8px var(--hanko-red);
  animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.live-player-count {
  font-size: 0.75rem; font-weight: 700; color: var(--sumi-faded);
}

.live-section-title {
  font-size: 0.74rem; font-weight: 800; color: var(--sumi-ink);
  letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 0.45rem;
}

.live-matches-grid {
  display: flex; flex-direction: column; gap: 0.6rem;
}

.live-match-card {
  padding: 0.65rem 0.75rem; background: #fdfbf7;
  border: 1px solid var(--brush-border); border-radius: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.live-match-card:hover {
  border-color: var(--accent-gold);
}

.live-match-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.68rem; font-weight: 700; color: var(--sumi-faded);
  margin-bottom: 0.4rem; padding-bottom: 0.25rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.live-meta-fmt {
  padding: 1px 5px; border-radius: 3px; background: rgba(0, 0, 0, 0.05);
  color: var(--sumi-ink); font-weight: 800;
}

.live-meta-stage {
  color: var(--sumi-ink); font-weight: 600;
}

.live-meta-status {
  color: #2e7d32; font-size: 0.66rem; font-weight: 800;
}

.live-match-duel {
  display: flex; align-items: center; justify-content: space-between;
}

.live-match-fighter {
  display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0;
}

.live-match-fighter.opp {
  justify-content: flex-end;
}

.live-fighter-text {
  display: flex; flex-direction: column; min-width: 0;
}

.live-fighter-text.text-right {
  text-align: right;
}

.live-fighter-name {
  font-size: 0.82rem; font-weight: 800; color: var(--sumi-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.live-fighter-tier {
  font-size: 0.66rem; font-weight: 600; color: var(--sumi-faded);
}

.live-match-img {
  width: 28px; height: 28px; border-radius: 4px; object-fit: contain;
  background: rgba(0, 0, 0, 0.03); border: 1px solid var(--brush-border);
}

.live-match-score {
  font-weight: 900; font-size: 1rem; color: var(--hanko-red);
  padding: 0.2rem 0.6rem; background: var(--hanko-dim); border-radius: 5px;
  margin: 0 0.5rem; letter-spacing: 1px;
}

.live-empty-text {
  font-size: 0.76rem; color: var(--sumi-faded); font-style: italic;
  padding: 0.5rem 0; text-align: center;
}

.live-players-bar {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.4rem;
}

.live-player-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0.25rem 0.55rem; background: #fdfbf7;
  border: 1px solid var(--brush-border); border-radius: 6px;
  font-size: 0.73rem;
}

.live-player-badge .status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #2e7d32;
}
.live-player-badge .status-dot.searching { background: #e65100; }
.live-player-badge .status-dot.in-match { background: var(--hanko-red); }

.live-player-name { font-weight: 700; color: var(--sumi-ink); }
.live-player-rank { font-size: 0.66rem; color: var(--sumi-faded); }
