/* MOCKUP: Hangout page (text channels + voice rooms) */
.hg-mock-note { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 9px 14px; border-radius: 10px; font-size: 12.5px; color: var(--gold); background: rgba(245,197,66,.08); border: 1px solid rgba(245,197,66,.25); }
.hg { display: grid; grid-template-columns: 250px 1fr 250px; height: calc(100dvh - 160px); min-height: 380px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg-2); }

/* left: channels */
.hg-side { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-right: 1px solid var(--line); overflow: hidden; }
/* only the channel list scrolls; your voice controls stay pinned underneath it */
.hg-chans { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; }
.hg-server { padding: 6px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.hg-server b { display: block; font-family: var(--f-goth); font-size: 24px; font-weight: 700; }
.hg-server span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.hg-sec { margin: 14px 8px 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hg-chan { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 14px var(--f-body); text-align: left; cursor: pointer; }
.hg-chan .ico { width: 17px; height: 17px; opacity: .8; }
.hg-chan span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg-chan i { font-style: normal; font-size: 11px; color: var(--muted); }
.hg-chan:hover { color: var(--fg); background: rgba(255,255,255,.04); }
.hg-chan.on { color: #fff; background: rgba(225,29,72,.18); }
.hg-chan.locked { opacity: .55; }
.hg-vc-people { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px 28px; }
.hg-vc-person { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.hg-vc-person .ico { color: var(--bad); margin-left: auto; }

/* you + controls */
.hg-me { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 10px; background: var(--bg-2); border-top: 1px solid var(--line); }
.hg-me-info { flex: 1; min-width: 0; }
.hg-me-info b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg-me-info span { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg-ok { color: var(--ok); font-style: normal; }
.hg-ctl { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--fg); cursor: pointer; }
.hg-ctl:hover { background: rgba(255,255,255,.1); }
.hg-ctl.bad { color: #fff; background: rgba(225,29,72,.55); }
.hg-ctl .ico { width: 17px; height: 17px; }

/* avatars + speaking ring */
.hg-av { --c: #e11d48; flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 14px; color: #fff; background: color-mix(in srgb, var(--c) 70%, #000); box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s; }
.hg-av { position: relative; overflow: hidden; }
.hg-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.talking > .hg-av { overflow: visible; }
.hg-av.sm { width: 22px; height: 22px; font-size: 11px; }
.hg-av.lg { width: 76px; height: 76px; font-size: 30px; }
.talking > .hg-av { box-shadow: 0 0 0 3px var(--ok), 0 0 18px rgba(34,224,140,.55); }

/* middle: voice stage + chat */
.hg-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.hg-msgs { min-height: 80px; }
.hg-stage { flex-shrink: 0; max-height: 45%; overflow-y: auto; padding: 16px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, rgba(225,29,72,.14), transparent 70%); }
.hg-stage-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.hg-stage-head span { margin-left: auto; font-size: 12px; color: var(--muted); }
.hg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
@media (max-height: 760px) { .hg-av.lg { width: 54px; height: 54px; font-size: 22px; } .hg-tile { padding: 10px 6px 8px; gap: 5px; } }
.hg-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.hg-tile b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg-tile small { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.hg-tile small.bad { color: var(--bad); }
.hg-tile.talking { border-color: rgba(34,224,140,.5); }
.hg-chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.hg-chat-head .ico { color: var(--muted); }
.hg-chat-head span { font-size: 12.5px; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.hg-msgs { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 14px; }
.hg-msg { display: flex; gap: 12px; }
.hg-msg-head { display: flex; align-items: center; gap: 8px; }
.hg-msg-head time { font-size: 11px; color: var(--muted); }
.hg-msg p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; }
.hg-send { display: flex; gap: 8px; padding: 12px 16px 16px; }
.hg-send input { flex: 1; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: 14px var(--f-body); outline: 0; }
.hg-send input:focus { border-color: var(--purple); }

/* right: members */
.hg-members { padding: 8px 12px; background: var(--panel); border-left: 1px solid var(--line); overflow-y: auto; }
.hg-member { display: flex; align-items: center; gap: 8px; padding: 5px 4px; font-size: 13px; }
.hg-member > span:not(.hg-av) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg-help { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0 4px 10px; }

@media (max-width: 1000px) { .hg { grid-template-columns: 220px 1fr; } .hg-members { display: none; } }
@media (max-width: 680px) {
  .hg { grid-template-columns: 1fr; height: auto; }
  .hg-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .hg-chans { max-height: 300px; }
  .hg-msgs { min-height: 320px; }
}
.view:has(.hg) { max-width: 1440px; }

/* sub role badge */
.hg-sub { display: inline-block; margin-left: 5px; padding: 1px 5px; border-radius: 5px; font: 800 9px var(--f-body); letter-spacing: .06em; font-style: normal; color: #fff; background: linear-gradient(135deg, #ff2d7a, #e11d48); vertical-align: 1px; }
.hg-tile b .hg-sub { margin-left: 6px; }

/* admin only room + drag to move */
.hg-chan.staff { color: var(--gold); }
.hg-chan.staff .ico { opacity: 1; }
.hg-chan.drop { background: rgba(245,197,66,.16); outline: 1px dashed var(--gold); }
.hg-vc-person[draggable] { cursor: grab; }
.hg-vc-person[draggable]:hover { background: rgba(255,255,255,.05); color: var(--fg); }
.hg-vc-person.dragging { opacity: .4; }

/* mockup: view as switch */
.hg-viewas { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.hg-viewas em { font-style: normal; color: var(--gold); margin-left: 6px; }
.hg-viewas button { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--muted); font: 700 12px var(--f-body); cursor: pointer; }
.hg-viewas button.on { color: #111; background: var(--gold); border-color: var(--gold); }
.hg-viewas .hg-drag-me { color: var(--fg); border-color: var(--gold); }

/* live version */
.hg-role { display: inline-block; margin-left: 5px; padding: 1px 5px; border-radius: 5px; font: 800 9px var(--f-body); letter-spacing: .06em; font-style: normal; vertical-align: 1px; }
.hg-role.admin { color: #111; background: var(--gold); }
.hg-role.mod { color: #fff; background: #2563eb; }
.hg-msg-head a { text-decoration: none; }
.hg-msg-body { min-width: 0; flex: 1; }
.hg-msg p { word-wrap: break-word; overflow-wrap: anywhere; }
.hg-msg:hover { background: rgba(255,255,255,.025); border-radius: 10px; }
.hg-msg { padding: 4px 6px; margin: 0 -6px; }
.hg-actions { margin-left: auto; display: none; gap: 4px; }
.hg-msg:hover .hg-actions { display: flex; }
.hg-actions button { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--muted); cursor: pointer; }
.hg-actions button:hover { color: #fff; background: rgba(225,29,72,.6); }
.hg-empty { margin: auto; color: var(--muted); }
.hg-chat-head select { margin-left: auto; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: 12px var(--f-body); }
.hg-ctl[disabled] { opacity: .35; cursor: not-allowed; }
.hg-server em { font-style: normal; }
.hg-member > span:not(.hg-av) { min-width: 44px; }
.hg-member .hg-role, .hg-member .hg-sub, .hg-member .lvlpill { flex-shrink: 0; }
.hg-member .lvlpill { margin-left: auto; }

/* voice: live */
.hg-ctl.on { color: #fff; background: rgba(34,224,140,.35); }
.hg-vc-person { position: relative; }
.hg-vc-person > span:not(.hg-av) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg-vc-person .ico { color: var(--muted); }
.hg-muted { font-style: normal; color: var(--bad); display: inline-flex; }
.hg-muted .ico { color: var(--bad); }
.hg-pact { display: none; gap: 2px; margin-left: 4px; }
.hg-vc-person:hover .hg-pact { display: inline-flex; }
.hg-pact button { width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 5px; background: rgba(255,255,255,.08); color: var(--muted); cursor: pointer; }
.hg-pact button:hover { background: rgba(225,29,72,.6); color: #fff; }
.hg-tile video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #000; }
.hg-tile.talking video { outline: 3px solid var(--ok); }
.hg-screen { position: relative; margin-bottom: 10px; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.hg-screen video { display: block; width: 100%; max-height: 52vh; object-fit: contain; }
.hg-screen span { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(0,0,0,.65); }
.hg-meter { height: 10px; margin-top: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.hg-meter div { height: 100%; background: linear-gradient(90deg, var(--ok), var(--gold), var(--bad)); background-size: 1000px 100%; }
.hg-me .hg-ctl { width: 30px; height: 30px; }
.hg-me { flex-wrap: wrap; }
.hg-me-ctls { display: flex; gap: 6px; width: 100%; }
.hg-me-ctls .hg-ctl { flex: 1; width: auto; }
.hg-me .hg-me-info { flex: 1; }

/* ===== full window "app" layout while on the Hangout ===== */
body.hg-mode { overflow: hidden; }
body.hg-mode .view { max-width: none; min-height: 0; padding: 10px 14px 12px; }
body.hg-mode .site-foot, body.hg-mode .dock, body.hg-mode .golive { display: none !important; }
body.hg-mode .hg { height: calc(100dvh - var(--hg-top, 64px) - 22px); min-height: 0; border-radius: 16px; }
body.hg-mode .hg-mock-note { display: none; }
/* voice area and chat share the height: video gets up to ~60%, chat keeps the rest */
body.hg-mode .hg-stage { max-height: 60%; display: flex; flex-direction: column; min-height: 0; }
body.hg-mode .hg-screen { flex: 1 1 auto; min-height: 0; display: flex; }
body.hg-mode .hg-screen video { max-height: none; height: 100%; }
body.hg-mode .hg-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
body.hg-mode .hg-msgs { min-height: 120px; }
@media (max-width: 680px) {
  body.hg-mode { overflow: auto; }
  body.hg-mode .hg { height: auto; min-height: calc(100dvh - var(--hg-top, 64px) - 22px); }
}

/* video area and chat share the window: the stage wrapper is the flex item */
body.hg-mode #hgStage { flex: 0 1 auto; max-height: 62%; min-height: 0; display: flex; flex-direction: column; }
body.hg-mode #hgStage:empty { display: none; }
body.hg-mode .hg-stage { flex: 1 1 auto; min-height: 0; max-height: none; overflow: hidden; display: flex; flex-direction: column; }
body.hg-mode .hg-screen { flex: 1 1 auto; min-height: 120px; margin-bottom: 10px; }
body.hg-mode .hg-screen video { width: 100%; height: 100%; object-fit: contain; }
/* with a screen share: cameras become a strip underneath */
body.hg-mode .hg-stage:has(.hg-screen) .hg-tiles { display: flex; flex: 0 0 auto; overflow-x: auto; }
body.hg-mode .hg-stage:has(.hg-screen) .hg-tile { flex: 0 0 150px; padding: 8px 6px; }
body.hg-mode .hg-stage:has(.hg-screen) .hg-av.lg { width: 44px; height: 44px; font-size: 18px; }
/* without one: the camera grid scrolls inside its area */
body.hg-mode .hg-stage:not(:has(.hg-screen)) .hg-tiles { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

/* device settings */
.hg-devices { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 8px); z-index: 20; padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.hg-devices label { display: block; margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hg-devices select { width: 100%; margin-bottom: 12px; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: 13px var(--f-body); }
.hg-devices .hg-lvl { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin: -6px 0 10px; }
.hg-devices .hg-lvl i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .1s; }
.hg-devices p { margin: 0; font-size: 11.5px; color: var(--muted); }
.hg-me { position: relative; }

/* members only: request screen */
.hg.hg-gate-wrap { display: grid; place-items: center; grid-template-columns: 1fr; background: radial-gradient(ellipse at 50% 30%, rgba(225,29,72,.14), transparent 65%), var(--bg-2); }
.hg-gate { width: min(460px, 92%); padding: 34px 30px; text-align: center; border-radius: 20px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.hg-gate-ico { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 18px; background: rgba(225,29,72,.18); color: var(--purple-lt); }
.hg-gate-ico .ico { width: 30px; height: 30px; }
.hg-gate h2 { margin: 0; font-family: var(--f-goth); font-size: 34px; font-weight: 700; }
.hg-gate-sub { margin: 6px 0 18px; color: var(--muted); font-size: 13.5px; }
.hg-gate p { line-height: 1.5; }
.hg-gate textarea { width: 100%; min-height: 70px; margin: 4px 0 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); font: 14px var(--f-body); resize: vertical; box-sizing: border-box; }
.hg-gate .btn { width: 100%; padding: 12px; }

/* admin: requests */
.hg-req { padding: 8px 6px; margin-bottom: 6px; border-radius: 10px; background: rgba(245,197,66,.06); border: 1px solid rgba(245,197,66,.2); }
.hg-req .hg-member { padding: 0 0 4px; }
.hg-req .hg-member a { flex: 1; min-width: 0; color: var(--fg); text-decoration: none; overflow: hidden; }
.hg-req-note { margin: 2px 2px 6px; font-size: 12px; color: var(--muted); font-style: italic; overflow-wrap: anywhere; }
.hg-req-btns { display: flex; gap: 6px; }
.hg-req-btns .btn { flex: 1; padding: 6px; }
.hg-devices .hg-using { margin: -6px 0 12px; font-size: 11.5px; color: var(--muted); }
.hg-devices .hg-using b { color: var(--ok); font-weight: 600; }

/* ================= call view (Discord style) ================= */
/* in a call: the video takes the middle, chat sits beside it (toggleable), people list hides */
.hg.in-call { grid-template-columns: 250px 1fr; }
.hg.in-call .hg-members { display: none; }
.hg.in-call .hg-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto minmax(0, 1fr) auto; }
.hg.in-call #hgStage { grid-column: 1; grid-row: 1 / -1; max-height: none !important; display: flex; min-height: 0; border-right: 1px solid var(--line); }
.hg.in-call .hg-chat-head { grid-column: 2; grid-row: 1; }
.hg.in-call .hg-msgs { grid-column: 2; grid-row: 2; min-height: 0; }
.hg.in-call .hg-send { grid-column: 2; grid-row: 3; }
.hg.in-call.chat-hidden .hg-main { grid-template-columns: minmax(0, 1fr) 0; }
.hg.in-call.chat-hidden .hg-chat-head, .hg.in-call.chat-hidden .hg-msgs, .hg.in-call.chat-hidden .hg-send { display: none; }
.hg.in-call.chat-hidden #hgStage { border-right: 0; }
@media (max-width: 1000px) {
  .hg.in-call .hg-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1.4fr) auto minmax(0, 1fr) auto; }
  .hg.in-call #hgStage { grid-column: 1; grid-row: 1; border-right: 0; border-bottom: 1px solid var(--line); }
  .hg.in-call .hg-chat-head, .hg.in-call .hg-msgs, .hg.in-call .hg-send { grid-column: 1; }
  .hg.in-call .hg-chat-head { grid-row: 2; } .hg.in-call .hg-msgs { grid-row: 3; } .hg.in-call .hg-send { grid-row: 4; }
}

.hg-call { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #060304; }
.hg-call-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 14px; }
.hg-call-head .ico { color: var(--muted); }
.hg-call-head span { color: var(--muted); font-size: 12.5px; }
.hg-call-chat { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--fg); font: 600 12.5px var(--f-body); cursor: pointer; transition: background .15s, transform .15s; }
.hg-call-chat:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }

/* grid: JS picks the tile width (--tw) so 16:9 tiles fill the space */
.hg-grid { flex: 1; min-height: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 12px; padding: 6px 16px; overflow: hidden; }
.hg-grid .hg-vt { width: var(--tw, 320px); }
.hg-focus { flex: 1; min-height: 0; display: flex; padding: 6px 16px 0; }
.hg-focus .hg-vt { width: 100%; height: 100%; aspect-ratio: auto; }
.hg-strip { flex: 0 0 auto; display: flex; gap: 10px; padding: 10px 16px 0; overflow-x: auto; justify-content: center; }
.hg-strip .hg-vt { flex: 0 0 196px; }

/* a tile */
.hg-vt {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; cursor: pointer; background: #111;
  box-shadow: 0 0 0 0 transparent; transition: box-shadow .18s ease, transform .18s ease;
  animation: hg-pop .32s cubic-bezier(.2, .9, .3, 1.2);
}
.hg-vt:hover { transform: translateY(-2px); }
.hg-vt video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.hg-vt.screen video, .hg-focus .hg-vt video { object-fit: contain; }
.hg-vt-card { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c) 45%, #0b0506), color-mix(in srgb, var(--c) 18%, #070304) 70%); }
.hg-av.xl { width: min(96px, 34%); height: auto; aspect-ratio: 1; font-size: clamp(22px, 3vw, 38px); box-shadow: 0 8px 28px rgba(0,0,0,.45); }
.hg-strip .hg-av.xl { width: 52px; font-size: 20px; }
/* speaking: green outline + ring that breathes */
.hg-vt.talking { box-shadow: 0 0 0 3px var(--ok), 0 0 26px rgba(34,224,140,.35); }
.hg-vt.talking .hg-av.xl { animation: hg-talk 1.1s ease-in-out infinite; }
.hg-vt-name { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; background: rgba(0,0,0,.62); backdrop-filter: blur(6px); font-size: 13px; transition: opacity .2s; }
.hg-vt-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.hg-vt-name small { color: var(--muted); }
.hg-vt-name em { display: inline-flex; color: var(--bad); font-style: normal; }
.hg-strip .hg-vt-name { font-size: 11px; padding: 3px 7px; left: 6px; bottom: 6px; }
.hg-live { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; background: #e11d48; color: #fff; font: 800 11px var(--f-body); letter-spacing: .08em; animation: hg-livepulse 2s ease-in-out infinite; }
.hg-vt.focused, .hg-focus .hg-vt { cursor: zoom-out; }

/* call bar */
.hg-callbar { flex: 0 0 auto; display: flex; justify-content: center; gap: 12px; padding: 14px 16px 16px; }
.hg-cb { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; color: #fff; background: #2a1a1f; box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.hg-cb .ico { width: 22px; height: 22px; }
.hg-cb:hover:not(:disabled) { transform: translateY(-3px) scale(1.04); background: #3a2429; }
.hg-cb:active:not(:disabled) { transform: scale(.94); }
.hg-cb.on { background: #1f7a4d; }
.hg-cb.on:hover { background: #24915b; }
.hg-cb.bad { background: #5b1426; color: #ff8fa7; }
.hg-cb.leave { background: #e11d48; width: 64px; border-radius: 26px; }
.hg-cb.leave:hover { background: #f43f5e; }
.hg-cb:disabled { opacity: .35; cursor: not-allowed; }

@keyframes hg-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes hg-talk { 0%, 100% { box-shadow: 0 0 0 3px rgba(34,224,140,.9), 0 8px 28px rgba(0,0,0,.45); } 50% { box-shadow: 0 0 0 6px rgba(34,224,140,.35), 0 8px 28px rgba(0,0,0,.45); } }
@keyframes hg-livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .hg-vt, .hg-vt.talking .hg-av.xl, .hg-live { animation: none; } }

/* Kick style badges */
.hg-kb { display: inline-flex; width: 16px; height: 16px; margin-left: 5px; flex-shrink: 0; vertical-align: -3px; font-style: normal; border-radius: 3px; object-fit: contain; }
.hg-kb svg { width: 16px; height: 16px; display: block; }
.hg-vt-name .hg-kb { width: 15px; height: 15px; margin-left: 2px; }
.hg-strip .hg-vt-name .hg-kb { width: 13px; height: 13px; }

/* roles */
.hg-members { position: relative; }
.hg-member.can-role { cursor: pointer; border-radius: 8px; }
.hg-member.can-role:hover { background: rgba(255,255,255,.05); }
.hg-rolepick { position: absolute; left: 10px; right: 10px; z-index: 30; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.55); animation: hg-pop .18s ease-out; }
.hg-rolepick b { display: block; margin-bottom: 6px; font-size: 13px; }
.hg-rolepick label { display: flex; align-items: center; gap: 8px; padding: 5px 2px; font-size: 13px; cursor: pointer; }
.hg-rolepick label i { width: 12px; height: 12px; border-radius: 50%; }
.hg-role-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.hg-role-row .rc { width: 40px; height: 32px; padding: 2px; }
.hg-role-row .rn { width: 150px; }
.hg-role-row .rp { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.hg-role-row .rbtns { display: inline-flex; gap: 6px; margin-left: auto; }
.hg-role-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hg-chip { padding: 4px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--rc) 60%, transparent); background: transparent; color: var(--muted); font: 600 12px var(--f-body); cursor: pointer; transition: background .15s, color .15s; }
.hg-chip.on { background: color-mix(in srgb, var(--rc) 30%, transparent); color: #fff; }
