/* Greylander Press — shared voice-button styling. Used by cast intro cards
   that have a "hear this character introduce themselves" play button.
   Apply by adding class="gp-voice-btn" and data-character="<id>" to a <button>. */
.gp-voice-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.7rem;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.gp-voice-btn:hover { border-color: var(--accent); background: rgba(184,146,42,0.12); }
.gp-voice-btn:active { transform: scale(0.95); }
.gp-voice-btn[data-state="loading"] { color: var(--text-muted); }
.gp-voice-btn[data-state="loading"] .gp-voice-glyph { display: none; }
.gp-voice-btn[data-state="loading"]::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: gp-voice-spin 0.7s linear infinite;
}
@keyframes gp-voice-spin { to { transform: rotate(360deg); } }
.gp-voice-btn[data-state="playing"] { background: rgba(184,146,42,0.15); border-color: var(--accent); }
.gp-voice-btn[data-state="error"] { border-color: #b54a2c; color: #b54a2c; }
