/* Per-role speaker chip above the Chinese prompt (dialogue packs only).
   Rendered by practice_daily_phrases.js updateSpeakerBadge(); the JS adds
   --a/--b for female/male so the two turns read as visually distinct roles. */
.phrase-speaker-badge {
  display: inline-block;
  margin: 0 auto 0.4rem;
  padding: 0.15rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.phrase-speaker-badge.hidden {
  display: none;
}

.phrase-speaker-badge--a {
  background: rgba(244, 114, 182, 0.16);
  border-color: rgba(244, 114, 182, 0.45);
  color: #f9d9ea;
}

.phrase-speaker-badge--b {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  color: #d6effc;
}
