/* Voice channels, the call pill, the official Mercury community, and the community step of onboarding. */

/* ── voice channels in the channel list ── */
.dc-ch.voice { width: 100%; text-align: left; font: inherit; font-size: 14px; }
.dc-ch.voice.live { color: #34d399; background: rgba(52, 211, 153, .08); }
.dc-ch.voice.live .dc-chi { opacity: 1; }
.dc-vn { font-size: 11px; font-weight: 700; color: var(--text-3); padding: 1px 6px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.dc-vlist { display: grid; gap: 1px; margin: 0 0 6px 26px; }
.dc-vu { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 6px; border-radius: 7px; font-size: 13px; color: var(--text-2); text-align: left; }
.dc-vu:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.dc-vu .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-vu .ic { color: #f87171; flex: none; }
.dc-vu.wait { opacity: .55; }
.dc-vu .lk-av, .vc-av .lk-av { border-radius: 50%; box-shadow: 0 0 0 2px transparent; transition: box-shadow .12s; }
.dc-vu.talking .lk-av, .vc-av.talking .lk-av { box-shadow: 0 0 0 2px #34d399, 0 0 10px rgba(52, 211, 153, .6); }
.dc-vci { position: absolute; left: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #0a0a0b; background: #34d399; box-shadow: 0 0 0 3px var(--bg, #08080a); }

/* ── your call: panel above "you" in the sidebar, small controls in the chat header on phones ── */
.dc-vcp { flex: none; display: grid; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-2); background: rgba(52, 211, 153, .05); }
.vc-st { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vc-st .grow { display: grid; min-width: 0; font-size: 12px; }
.vc-st b { color: #34d399; font-size: 13px; }
.vc-st a { color: var(--text-3); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-st a:hover { color: var(--text); }
.vc-live { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #34d399; background: rgba(52, 211, 153, .12); }
.vc-live i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(52, 211, 153, .5); animation: vcRing 1.8s ease-out infinite; }
.vc-live.wait { color: var(--text-2); background: rgba(255, 255, 255, .08); }
.vc-live.wait i { border-color: rgba(255, 255, 255, .3); }
@keyframes vcRing { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.vc-ctl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.vc-b { display: grid; place-items: center; height: 34px; border-radius: 10px; color: var(--text-2); background: rgba(255, 255, 255, .06); transition: background .15s, color .15s; }
.vc-b:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.vc-b.off { color: #f87171; background: rgba(248, 113, 113, .12); }
.vc-b.end { color: #fff; background: #dc2626; }
.vc-b.end:hover { background: #ef4444; }
.dc-vch { display: none; align-items: center; gap: 4px; }
.dc-vch .vc-live { width: 24px; height: 24px; }
.dc-vch .vc-b { width: 34px; height: 32px; }

/* ── the pill: your call, anywhere else in the app ── */
.vc-pill { position: fixed; z-index: 40; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 18px; max-width: calc(100vw - 32px); background: rgba(14, 14, 16, calc(var(--glass, .5) + .55)); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(52, 211, 153, .25); animation: vcIn .3s cubic-bezier(.2, 1.2, .3, 1) both; }
@keyframes vcIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.vc-pl { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 2px 8px 2px 2px; border-radius: 12px; text-align: left; }
.vc-pl:hover { background: rgba(255, 255, 255, .05); }
.vc-pt { display: grid; min-width: 0; font-size: 13px; }
.vc-pt b { color: #34d399; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-pt em { font-style: normal; font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-avs { display: flex; flex: none; }
.vc-av { display: grid; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px #0e0e10; }
.vc-avs .vc-av:first-child { margin-left: 0; }
.vc-more { margin-left: 4px; font-size: 11px; color: var(--text-3); align-self: center; }
.vc-pill .vc-b { width: 38px; height: 38px; flex: none; }

/* ── the official Mercury community ── */
.dc-cic.official { background: radial-gradient(circle at 30% 25%, #2a2a33, #0c0c10 70%); border-color: rgba(255, 255, 255, .22); }
.dc-off { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: #0a0a0b; background: linear-gradient(135deg, #fff, #b8b8c2); }

/* ── onboarding: the community step ── */
.dc-logo.cm { background: radial-gradient(circle at 30% 25%, #34343f, #101014 60%, #050507); box-shadow: 0 20px 60px -10px rgba(255, 255, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.ob-cm .dc-perks .ic { color: #d4d4dc; }
.ob-cm .dc-bubble span { display: inline-flex; align-items: center; gap: 6px; }
.ob-cmrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ob-cm .dc-join { display: inline-flex; align-items: center; gap: 10px; color: #0a0a0b; background: linear-gradient(135deg, #fff, #c9c9d2 55%, #fff); box-shadow: 0 14px 40px -12px rgba(255, 255, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .6); }
.ob-cm .dc-join:hover { filter: brightness(1.05); background: linear-gradient(135deg, #fff, #c9c9d2 55%, #fff); }
.ob-cm .dc-join.joined { color: #6ee7b7; background: rgba(52, 211, 153, .15); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .4); }
.ob-cm .dc-join .spinner { width: 18px; height: 18px; }
.ob-cmstat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.ob-cmstat .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.ob-cmstat .dot.on { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, .6); }
.ob-cmstat .dot:not(:first-child) { margin-left: 8px; }

@media (max-width: 760px) {
  .dc-vch { display: inline-flex; }
  .dc-space.in-chat .dc-topic { display: none; }
  .vc-pill { left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .vc-pl { flex: 1; }
  body.dc-chatting .vc-pill { display: none; }
}
