/* Chat vocal de proximité : bouton micro du HUD, onglet « Chat vocal » des paramètres, voir js/ui/voice-view.js */

/* Bouton micro : barré quand il est coupé, cyan quand il est ouvert, vert quand la voix part. */
.hud-mic { position: relative; overflow: hidden; color: var(--muted); }
.hud-mic:hover { transform: none; }
.hud-mic svg { position: relative; z-index: 1; }
.hud-mic .mic-slash { display: none; }
.hud-mic[data-state="off"] .mic-slash { display: inline; }
.hud-mic[data-state="on"], .hud-mic[data-state="ptt"] { color: var(--cyan); }
.hud-mic[data-state="wait"] { color: var(--amber); }
.hud-mic.live { color: #7dff5a; border-color: rgba(125, 255, 90, 0.6); box-shadow: 0 0 16px rgba(125, 255, 90, 0.35); }
/* Niveau du micro : jauge qui monte depuis le bas du bouton. */
.hud-mic .mic-level {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--lvl, 0) * 100%);
  background: linear-gradient(0deg, rgba(56, 232, 255, 0.28), rgba(56, 232, 255, 0.04));
  transition: height 0.08s linear;
}
.hud-mic.live .mic-level { background: linear-gradient(0deg, rgba(125, 255, 90, 0.32), rgba(125, 255, 90, 0.05)); }

/* Vumètre de l'onglet : niveau du micro et, en trait, le seuil de la détection de la voix. */
.voice-vu {
  position: relative; height: 8px; margin: 2px 0 10px;
  border-radius: 4px; background: rgba(56, 232, 255, 0.08); overflow: hidden;
}
.voice-vu i {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--lvl, 0) * 100%);
  background: var(--cyan); opacity: 0.6; transition: width 0.08s linear;
}
.voice-vu.live i { background: #7dff5a; opacity: 0.8; }
.voice-vu b { position: absolute; top: -2px; bottom: -2px; left: calc(var(--thr, 0.5) * 100%); width: 2px; background: var(--amber); }

.voice-title { margin: 20px 0 8px; font-family: 'Orbitron'; font-size: 13px; letter-spacing: 0.12em; color: var(--cyan); text-transform: uppercase; }
.voice-people { display: flex; flex-direction: column; gap: 6px; }
.voice-person {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border: 1px solid rgba(56, 232, 255, 0.12); border-radius: 8px;
}
.voice-person b { font-size: 16px; }
.voice-person small { color: var(--muted); font-size: 13px; }
.voice-person button { margin-left: auto; padding: 5px 12px; font-size: 14px; }
.voice-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(138, 163, 194, 0.35); flex: none; }
.voice-person.speaking .voice-dot { background: #7dff5a; box-shadow: 0 0 8px #7dff5a; }
.voice-note { margin-top: 14px; font-size: 13px; }
