/* The voice room (public/voice.js). A radio booth on the letterboard's felt: the one loud thing is the ON AIR lamp,
   lit red while anyone's in and glowing brighter while someone's actually talking. Talking heads get a periwinkle
   ring that grows with their voice. See DESIGN.md. */
.vc-bar, .vc { --onair: #e5484d; --onair-off: #43252a; --talk: #7c8cff; --leave: #d93a3a; }

/* ---------- the lamp ---------- */
.vc-lamp { flex: none; display: inline-grid; place-items: center; height: 24px; padding: 0 8px; border-radius: 5px; font: 600 14px/1 var(--board); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  background: var(--onair-off); color: #9a6a70; box-shadow: inset 0 0 0 1.5px #00000055; text-shadow: none; transition: background .2s, box-shadow .2s, color .2s; }
.vc-lamp.lit { background: var(--onair); color: #fff6f4; box-shadow: inset 0 0 0 1.5px #ffffff40, 0 0 10px #e5484d66; }
.vc-lamp.lit.loud { background: #ff5a5f; box-shadow: inset 0 0 0 1.5px #ffffff66, 0 0 18px #ff5a5fcc, 0 0 4px #ff5a5f; }
.vc-lamp.big { height: 46px; padding: 0 20px; border-radius: 9px; font-size: 26px; letter-spacing: .2em; }

/* ---------- the ON AIR strip under the letterboard ---------- */
.vc-bar { flex: none; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 4px 12px 10px 18px; font-size: 15px; letter-spacing: .12em; }
.vc-bar[hidden] { display: none; }
.vc-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-shadow: inherit; text-align: left; }
.vc-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .9; }
.vc-faces { flex: none; display: flex; }
.vc-mini { width: 28px; height: 28px; margin-right: -8px; border-radius: 50%; background: #e6e9f7; border: 2px solid var(--felt); overflow: hidden; display: grid; place-items: center; transition: box-shadow .08s; }
.vc-mini:last-child { margin-right: 0; }
.vc-mini.talking { box-shadow: 0 0 0 2px var(--talk); position: relative; z-index: 1; }
.vc-mini .mface, .vc-mini img, .vc-mini svg { display: block; width: 100%; height: 100%; }
.vc-join { flex: none; min-height: 36px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--letter); color: var(--felt); font: 700 15px/1 var(--font); letter-spacing: 0; text-transform: none; text-shadow: none; box-shadow: inset 0 -3px 0 #0000002e; }
.vc-join:disabled { opacity: .6; }
.vc-ic { flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 2px solid var(--letter); background: none; color: var(--letter); display: grid; place-items: center; }
.vc-ic svg { width: 20px; height: 20px; fill: currentColor; }
.vc-ic.off { background: var(--letter); color: var(--felt); }
.vc-ic.leave { border-color: var(--leave); background: var(--leave); color: #fff; }
.vc-join:active, .vc-ic:active { transform: translateY(1px); }
@media (max-width: 360px) { .vc-bar { gap: 8px; padding-left: 12px; } .vc-bar .vc-lamp { display: none; } }

/* ---------- the room ---------- */
.vc { position: fixed; left: 0; right: 0; top: 0; height: var(--app-h); z-index: 30; display: flex; flex-direction: column; color: var(--letter); opacity: 0; transition: opacity .18s; overscroll-behavior: contain;
  background-color: var(--felt); background-image: radial-gradient(circle, var(--felt-groove) 1.3px, transparent 1.8px); background-size: 11px 11px; }
.vc.in { opacity: 1; }
.vc-top { flex: none; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px 8px; }
.vc-back { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--letter); display: grid; place-items: center; }
.vc-back svg { width: 26px; height: 26px; fill: currentColor; }
.vc-title { flex: 1; min-width: 0; }
.vc-title .row2 { margin-top: 5px; }

.vc-body { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 18px 18px; max-width: 640px; width: 100%; margin: 0 auto; }
.vc-sign { display: flex; justify-content: center; margin-bottom: 30px; }
.vc-empty { max-width: 30ch; margin: 10px auto 0; text-align: center; color: var(--letter); opacity: .75; font-size: 17px; }

.vc-seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 22px; }
.vc-seat { width: 104px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.vc-head { position: relative; width: 96px; height: 96px; border-radius: 50%; background: #e6e9f7; display: grid; place-items: center; --lv: 0;
  box-shadow: 0 0 0 3px var(--felt), 0 0 0 5px #f5f5f233; transition: box-shadow .08s linear; }
.vc-head > .mface { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: block; }
.vc-head .mface img, .vc-head .mface svg { display: block; width: 100%; height: 100%; }
.vc-head.talking { box-shadow: 0 0 0 3px var(--felt), 0 0 0 calc(5px + var(--lv) * 9px) var(--talk); }
.vc-seat.muted .vc-head > .mface { opacity: .55; }
.vc-mutebadge { position: absolute; right: -4px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--letter); color: var(--felt); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--felt); }
.vc-mutebadge svg { width: 18px; height: 18px; fill: currentColor; }
.vc-name { margin-top: 12px; max-width: 100%; font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-state { min-height: 1.3em; font-size: 13px; opacity: .7; }
.vc-seat.me .vc-state { color: #b3bcff; opacity: 1; }

.vc-call { margin-top: 38px; }
.vc-call h2 { margin: 0 0 6px; font-size: 15px; font-weight: 700; opacity: .7; }
.vc-row { display: flex; align-items: center; gap: 12px; min-height: 60px; border-bottom: 1px solid #f5f5f21f; }
.vc-rface { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #e6e9f7; overflow: hidden; }
.vc-rface .mface, .vc-rface img, .vc-rface svg { display: block; width: 100%; height: 100%; }
.vc-rname { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 700; overflow: hidden; }
.vc-rname small { font-weight: 400; font-size: 13px; opacity: .65; }
.vc-ring { flex: none; min-height: 36px; padding: 0 16px; border-radius: 99px; border: 2px solid var(--letter); background: none; color: var(--letter); font-weight: 700; font-size: 15px; }
.vc-ring:disabled { opacity: .45; }

.vc-foot { flex: none; display: flex; flex-direction: column; align-items: center; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); }
.vc-foot:has(.vc-round) { flex-direction: row; justify-content: center; gap: 44px; }
.vc-round { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--letter); font-size: 14px; font-weight: 700; }
.vc-round svg { box-sizing: content-box; width: 28px; height: 28px; padding: 16px; border-radius: 50%; border: 2px solid var(--letter); fill: currentColor; }
.vc-round.off svg { background: var(--letter); color: var(--felt); fill: var(--felt); }
.vc-round.leave svg { background: var(--leave); border-color: var(--leave); fill: #fff; }
.vc-round:active svg { transform: translateY(1px); }
.vc-bigjoin { min-width: 220px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 99px; background: var(--letter); color: var(--felt); font-weight: 700; font-size: 19px; box-shadow: inset 0 -4px 0 #0000002e; }
.vc-bigjoin:active { transform: translateY(1px); box-shadow: inset 0 -2px 0 #0000002e; }
.vc-bigjoin:disabled { opacity: .6; }
.vc-note { margin: 10px 0 0; font-size: 14px; opacity: .65; }

@media (prefers-reduced-motion: reduce) {
  .vc { transition: none; }
  .vc-head, .vc-mini, .vc-lamp { transition: none; }
}
