/* Party duels panel inside the 1v1 duels section (js/party-duels.js),
   plus the arcade party pill in the top bar. */

/* In a party the pill shows avatars + count; drop the word to save room in the top bar. */
.party-compact .pp-stackwrap ~ .pp-pill-label { display: none; }

/* The top bar is wider than most laptop screens once the party pill is in it:
   let it wrap onto two rows instead of scrolling sideways. */
@media (max-width: 1360px) {
  #cs-top-hud { flex-wrap: wrap; row-gap: 10px; }
}

.party-duels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.party-duels[hidden] { display: none; }

.pd-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.pd-empty strong { color: var(--text-main); }
.pd-icon { font-size: 20px; }

.pd-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.pd-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-blue);
}

.pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.pd-chip.in { color: var(--text-main); border-color: rgba(16, 185, 129, 0.35); }

.pd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
}

.pd-chip.in .pd-dot { background: var(--accent-green); box-shadow: 0 0 6px rgba(16, 185, 129, 0.7); }

.pd-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-duel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid rgba(222, 155, 53, 0.3);
  animation: pdIn 0.25s ease-out;
}

@keyframes pdIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.pd-duel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.pd-duel-host {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.pd-duel-meta {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-duel-pot {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
}

.pd-duel-btn {
  padding: 8px 14px !important;
  font-size: 13px !important;
  white-space: nowrap;
}

.pd-note {
  font-size: 12.5px;
  color: var(--text-muted);
}

.pd-note strong {
  font-family: var(--font-mono);
  color: var(--accent-gold);
}

@media (max-width: 640px) {
  .pd-duel { flex-wrap: wrap; }
  .pd-duel-btn { width: 100%; }
}
