/* Voice (public/voice.js): a small bar at the top while you are in voice, a "Join" pill when others are talking.
   It stands on its own so the live game pages (which have their own styles) can use it too. */
.hv-bar { position: fixed; z-index: 2000; top: calc(env(safe-area-inset-top, 0px) + 62px); left: 50%; display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 24px); padding: 5px; border-radius: 999px; background: rgba(16, 19, 26, .92); box-shadow: 0 6px 22px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .1); color: #fff; font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; transform: translateX(-50%); backdrop-filter: blur(8px); }
.hv-bar[hidden] { display: none; }
.hv-bar.hv-game { top: calc(env(safe-area-inset-top, 0px) + 8px); }
.hv-bar.hv-in { box-shadow: 0 6px 22px rgba(0, 0, 0, .45), inset 0 0 0 2px #2fbf71; }
.hv-faces { display: flex; align-items: center; gap: 4px; padding-left: 2px; overflow-x: auto; scrollbar-width: none; }
.hv-face { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); transition: box-shadow .12s; }
.hv-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hv-face.talk { box-shadow: 0 0 0 3px #2fbf71, 0 0 12px rgba(47, 191, 113, .8); }
.hv-muted-dot { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: #e5484d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14'/%3E%3C/svg%3E") center / 70% no-repeat; box-shadow: 0 0 0 2px #10131a; }
.hv-alone { padding: 0 6px; color: #b8bfca; font-weight: 500; white-space: nowrap; }
.hv-btn { display: grid; flex: none; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hv-btn svg, .hv-join svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hv-btn.off { background: #e5484d; }
.hv-btn.hang { background: #e5484d; }
.hv-btn.hang svg { fill: currentColor; stroke: none; }
.hv-btn.start { width: 44px; height: 44px; background: rgba(16, 19, 26, .2); }
.hv-bar:has(.hv-btn.start:only-child) { padding: 3px; }
.hv-join { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border: 0; border-radius: 999px; background: #2fbf71; color: #fff; font: inherit; cursor: pointer; animation: hv-glow 1.6s ease-in-out infinite; }
.hv-text { padding: 0 10px; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; white-space: nowrap; }
.hv-toast { padding: 0 10px; color: #ffd38a; font-weight: 500; }
@keyframes hv-glow { 50% { box-shadow: 0 0 0 6px rgba(47, 191, 113, .25); } }
@media (prefers-reduced-motion: reduce) { .hv-join { animation: none; } }
