/* ===== Jimbo Huddle ===== */
html.hd-on body { overflow: hidden; }
html.hd-on .jrt, html.hd-on .jrt__launch, html.hd-on .jrt__mic { visibility: hidden; }
#hdRoot[hidden] { display: none !important; }
.hd-i { width: 22px; height: 22px; flex: none; }

/* ---- page ---- */
.hd-page { display: grid; gap: 18px; padding-bottom: 40px; }
.hd-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 28px 24px; color: #fff; isolation: isolate;
  background: radial-gradient(60% 80% at 100% 0%, rgb(245 165 36 / .35), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgb(79 214 255 / .22), transparent 60%), linear-gradient(160deg, #0f1726, #0a0f18 70%);
  box-shadow: 0 20px 50px -24px rgb(0 0 0 / .6), inset 0 0 0 1px rgb(255 255 255 / .06); }
.hd-hero__art { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: repeat(3, 58px); gap: 8px; opacity: .85; z-index: -1; }
.hd-hero__art i { width: 58px; height: 44px; border-radius: 10px; background: linear-gradient(150deg, hsl(calc(var(--i) * 47 + 20) 70% 55% / .55), hsl(calc(var(--i) * 47 + 60) 60% 30% / .4)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
  animation: hd-tile 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
.hd-hero__art i:nth-child(2), .hd-hero__art i:nth-child(5) { box-shadow: inset 0 0 0 2px rgb(245 165 36 / .8), 0 0 18px rgb(245 165 36 / .35); }
@keyframes hd-tile { 50% { transform: translateY(-4px) scale(1.03); } }
.hd-hero__txt { max-width: 34em; position: relative; }
.hd-hero h1 { margin: 8px 0 8px; font: 800 clamp(26px, 5vw, 38px)/1.08 var(--font-display); letter-spacing: -.01em; }
.hd-hero p { margin: 0; color: #c9d3e1; font-size: 15px; line-height: 1.5; max-width: 30em; }
.hd-hero__b { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hd-hero__b .btn { display: inline-flex; align-items: center; gap: 8px; }
.hd-hero .btn--ghost { color: #fff; border-color: rgb(255 255 255 / .3); }
@media (max-width: 560px) { .hd-hero__art { opacity: .28; right: -40px; } }
.hd-kick { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 700 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #ffcf7a; }
.hd-kick .hd-i { width: 18px; height: 18px; }
.hd-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: var(--js-card, var(--surface, #fff)); box-shadow: inset 0 0 0 1px var(--js-line, var(--line, rgb(0 0 0 / .08))); }
.hd-code label { font-weight: 700; }
.hd-code div { display: flex; gap: 8px; flex: 1; max-width: 340px; }
.hd-code input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--js-line, var(--line, #d5dbe4)); font: 600 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; background: transparent; color: inherit; }
.hd-page__s { margin: 4px 0 0; font: 800 18px/1.2 var(--font-display); }
.hd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hd-list__load, .hd-list__empty { padding: 18px; border-radius: 14px; text-align: center; color: var(--muted, #6b7686); background: var(--js-card, var(--surface, #fff)); box-shadow: inset 0 0 0 1px var(--js-line, var(--line, rgb(0 0 0 / .08))); }
.hd-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; color: var(--color-text, inherit); background: var(--js-card, var(--surface, #fff)); box-shadow: inset 0 0 0 1px var(--js-line, var(--line, rgb(0 0 0 / .08))); }
.hd-card.is-live { box-shadow: inset 0 0 0 2px #1fae5b; }
.hd-card__t { display: grid; gap: 3px; min-width: 0; }
.hd-card__t b { font-size: 16px; }
.hd-card__t small { color: var(--muted, #6b7686); }
.hd-card__b { display: flex; align-items: center; gap: 6px; }
.hd-live { font-style: normal; font-weight: 700; color: #1fae5b; }
.hd-ib { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 0; border-radius: 12px; background: rgb(127 127 127 / .14); color: inherit; cursor: pointer; font: 600 13px/1 var(--font-body); }
.hd-ib:hover { background: rgb(127 127 127 / .24); }
.hd-fine { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted, #6b7686); }
.hd-fine .hd-i { width: 16px; height: 16px; margin-top: 1px; }

/* ---- create / invite modal ---- */
.hd-new { display: grid; gap: 14px; }
.hd-new h2 { margin: 0; font: 800 24px/1.15 var(--font-display); }
.hd-new p { margin: 0; }
.hd-f { display: grid; gap: 6px; }
.hd-f > span { font-weight: 700; font-size: 14px; }
.hd-f small { font-weight: 500; color: var(--muted, #6b7686); }
.hd-f input, .hd-f textarea, .hd-new textarea { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--js-line, var(--line, #d5dbe4)); font: 500 15px/1.35 var(--font-body); background: transparent; color: inherit; box-sizing: border-box; }
.hd-res { display: grid; gap: 4px; }
.hd-res button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: rgb(127 127 127 / .08); color: inherit; cursor: pointer; text-align: left; font: 600 14px/1 var(--font-body); }
.hd-res button:hover { background: rgb(127 127 127 / .16); }
.hd-res em { margin-left: auto; font-style: normal; font-size: 12px; color: #1fae5b; }
.hd-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.hd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border: 0; border-radius: 999px; background: rgb(245 165 36 / .18); color: inherit; font: 600 13px/1 var(--font-body); cursor: pointer; }
.hd-chip .hd-i { width: 14px; height: 14px; }
.hd-chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.hd-chk input { margin-top: 3px; width: 18px; height: 18px; accent-color: #f5a524; }
.hd-wide { width: 100%; }
.hd-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hd-row .btn { display: inline-flex; align-items: center; gap: 8px; flex: 1; justify-content: center; }
.hd-codebox { display: grid; gap: 4px; justify-items: center; padding: 14px; border-radius: 14px; background: rgb(127 127 127 / .1); }
.hd-codebox small { color: var(--muted, #6b7686); font-weight: 600; }
.hd-codebox b { font: 800 26px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.hd-red { background: #e5484d !important; border-color: #e5484d !important; color: #fff !important; }

/* ---- full-screen shell ---- */
.hd { position: fixed; inset: 0; z-index: 145; isolation: isolate; color: #fff; font-family: var(--font-body); background: #06080c; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.hd-bg { position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 35% at 20% 15%, rgb(245 165 36 / .22), transparent 70%), radial-gradient(45% 40% at 85% 80%, rgb(79 214 255 / .16), transparent 70%);
  filter: blur(30px); animation: hd-drift 16s ease-in-out infinite alternate; }
@keyframes hd-drift { to { transform: rotate(10deg) scale(1.1); } }
.hd .btn--ghost { color: #fff; border-color: rgb(255 255 255 / .28); }
.hd .hd-fine { color: #9fabbd; }
.hd .hd-ib { background: rgb(255 255 255 / .1); color: #fff; }

/* ---- lobby ---- */
.hd.is-lobby { overflow-y: auto; }
.hd-lobby { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; max-width: 1080px; margin: 0 auto; padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom)); box-sizing: border-box; }
@media (max-width: 760px) { .hd-lobby { grid-template-columns: 1fr; gap: 18px; align-content: start; padding-top: calc(16px + env(safe-area-inset-top)); } }
.hd-prev { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #141c2a, #0b1018); box-shadow: 0 30px 60px -30px #000, inset 0 0 0 1px rgb(255 255 255 / .08); }
@media (max-width: 760px) { .hd-prev { aspect-ratio: 16 / 11; } }
.hd-prev video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.hd-prev.has-v video { opacity: 1; }
.hd-prev.has-v .hd-prev__av { opacity: 0; }
.hd-prev__av { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .3s; }
.hd-prev__tag { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgb(0 0 0 / .5); backdrop-filter: blur(10px); font: 600 13px/1 var(--font-body); }
.hd-meter { position: absolute; left: 12px; right: 12px; bottom: 0; height: 4px; overflow: hidden; border-radius: 4px; }
.hd-meter i { display: block; height: 100%; background: linear-gradient(90deg, #1fae5b, #f5a524); transform-origin: left; transform: scaleX(.03); transition: transform .1s; }
video.is-mirror { transform: scaleX(-1); }
.hd-lobby__info { display: grid; gap: 14px; }
.hd-lobby__info h1 { margin: 0; font: 800 clamp(26px, 4.4vw, 40px)/1.08 var(--font-display); }
.hd-lobby__meta { margin: 0; color: #c8d1de; font-size: 15px; }
.hd-faces { display: flex; }
.hd-faces .js-av { margin-right: -8px; box-shadow: 0 0 0 2px #06080c; }
.hd-agenda { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgb(255 255 255 / .06); }
.hd-agenda p { margin: 0; color: #dfe6f0; font-size: 14px; line-height: 1.45; white-space: pre-line; }
.hd-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hd-mode button { display: grid; gap: 4px; justify-items: start; padding: 14px; border: 0; border-radius: 16px; background: rgb(255 255 255 / .07); color: #fff; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); font: 500 14px/1.2 var(--font-body); }
.hd-mode button small { color: #9fabbd; font-size: 12px; }
.hd-mode button[aria-checked="true"] { background: rgb(245 165 36 / .16); box-shadow: inset 0 0 0 2px #f5a524; }
.hd-mode .hd-i { color: #ffcf7a; }
.hd-toggles { display: flex; gap: 10px; }
.hd-tg { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .09); color: #fff; font: 600 14px/1 var(--font-body); cursor: pointer; }
.hd-tg:not(.is-on) { background: rgb(229 72 77 / .2); color: #ffb4b6; }
.hd-tg.is-dim { opacity: .4; }
.hd-join { min-width: 180px; }

/* ---- waiting ---- */
.hd.is-wait { display: grid; place-items: center; }
.hd-waitbox { display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 420px; padding: 24px; }
.hd-waitbox h2 { margin: 10px 0 0; font: 800 30px/1.1 var(--font-display); }
.hd-waitbox p { margin: 0; color: #c8d1de; }
.hd-knock { position: relative; display: grid; place-items: center; width: 180px; height: 180px; }
.hd-knock i { position: absolute; inset: 40px; border-radius: 50%; border: 2px solid rgb(245 165 36 / .6); animation: hd-ripple 2.4s ease-out infinite; opacity: 0; }
.hd-knock i:nth-child(2) { animation-delay: .6s; } .hd-knock i:nth-child(3) { animation-delay: 1.2s; }
.hd-knock .js-av { position: relative; z-index: 1; }
@keyframes hd-ripple { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(2); opacity: 0; } }

/* ---- room ---- */
.hd.is-room { display: grid; grid-template-rows: auto 1fr auto; }
.hd-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 8px; }
.hd-top__t { display: grid; gap: 2px; min-width: 0; }
.hd-top__t b { font: 700 16px/1.2 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-top__t small { display: flex; align-items: center; gap: 4px; color: #9fabbd; font: 600 12px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.hd-top__t small .hd-i { width: 13px; height: 13px; vertical-align: -2px; }
.hd-top__b { display: flex; gap: 6px; }
.hd-stage { display: grid; gap: 8px; padding: 4px 10px; min-height: 0; align-content: center; }
.hd-stage.is-spot { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); grid-auto-rows: 84px; align-content: end; }
.hd-stage.is-spot .hd-tile.is-main { grid-column: 1 / -1; grid-row: span 1; height: auto; min-height: 0; }
.hd-stage.is-spot { grid-template-rows: minmax(0, 1fr) auto; }
.hd-stage.is-spot .hd-tile:not(.is-main) .hd-tile__av .js-av { width: 40px !important; height: 40px !important; }
.hd-stage.is-spot .hd-tile:not(.is-main) .hd-tile__tag { font-size: 11px; padding: 3px 7px; left: 5px; bottom: 5px; }
.hd-tile { --lv: 0; position: relative; min-height: 0; min-width: 0; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #151d2b, #0c1119); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07);
  transition: box-shadow .15s, opacity .25s, transform .25s; animation: hd-in .3s ease-out; }
@keyframes hd-in { from { opacity: 0; transform: scale(.94); } }
.hd-tile.is-gone { opacity: 0; transform: scale(.9); }
.hd-tile.is-talk { box-shadow: inset 0 0 0 3px #f5a524, 0 0 24px rgb(245 165 36 / .3); }
.hd-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; background: #000; }
.hd-tile.is-share video { object-fit: contain; }
.hd-tile.is-me:not(.is-share) video { transform: scaleX(-1); }
.hd-tile.has-v video { opacity: 1; }
.hd-tile audio { display: none; }
.hd-tile__av { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .3s; }
.hd-tile.has-v .hd-tile__av { opacity: 0; }
.hd-tile__av .js-av { position: relative; z-index: 1; }
.hd-ring { position: absolute; width: 96px; height: 96px; border-radius: 50%; border: 2px solid rgb(245 165 36 / .6); transform: scale(calc(1 + var(--lv) * .8)); opacity: calc(.1 + var(--lv)); transition: transform .12s, opacity .12s; }
.hd-tile__tag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 16px); padding: 5px 9px; border-radius: 999px; background: rgb(0 0 0 / .55); backdrop-filter: blur(10px); font: 600 12.5px/1 var(--font-body); }
.hd-tile__tag b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.hd-tile__mic:empty { display: none; }
.hd-tile__mic .hd-i { width: 14px; height: 14px; color: #ff8a8d; }
.hd-tile__hand { position: absolute; top: 8px; left: 8px; display: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f5a524; color: #1a1205; animation: hd-wave 1.2s ease-in-out infinite; }
.hd-tile.is-hand .hd-tile__hand { display: grid; }
.hd-tile__hand .hd-i { width: 20px; height: 20px; }
@keyframes hd-wave { 50% { transform: rotate(-14deg); } }
.hd-tile__badge { position: absolute; top: 8px; right: 8px; padding: 4px 8px; border-radius: 999px; background: rgb(0 0 0 / .55); font: 700 11px/1 var(--font-body); letter-spacing: .03em; color: #ffcf7a; }
.hd-tile__badge[hidden] { display: none; }
.hd-tile__pin { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .5); color: #fff; opacity: 0; cursor: pointer; transition: opacity .2s; }
.hd-tile:hover .hd-tile__pin, .hd-tile.is-pin .hd-tile__pin { opacity: 1; }
.hd-tile__badge:not([hidden]) ~ .hd-tile__pin { top: 34px; }
.hd-tile.is-pin .hd-tile__pin { background: #f5a524; color: #1a1205; }
.hd-tile__pin .hd-i { width: 16px; height: 16px; }
.hd-tile.is-weak { opacity: .75; }
.hd-float { position: absolute; bottom: 20%; z-index: 4; padding: 8px 14px; border-radius: 999px; background: rgb(245 165 36 / .95); color: #1a1205; font: 800 16px/1 var(--font-display); white-space: nowrap; pointer-events: none; animation: hd-float 2.6s ease-out forwards; }
.hd-float.hd-re--heart { background: #e5484d; color: #fff; font-size: 22px; }
.hd-float.hd-re--horn { background: #4fd6ff; }
@keyframes hd-float { 0% { transform: translate(-50%, 10px) scale(.6); opacity: 0; } 15% { transform: translate(-50%, 0) scale(1.08); opacity: 1; } 100% { transform: translate(-50%, -140px) scale(1); opacity: 0; } }

/* ---- dock ---- */
.hd-dock { display: flex; justify-content: center; gap: 4px; padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); }
.hd-db { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 0; flex: 0 1 68px; padding: 8px 2px 6px; border: 0; border-radius: 14px; background: transparent; color: #fff; font: 600 11px/1 var(--font-body); cursor: pointer; }
.hd-db .hd-i { width: 24px; height: 24px; padding: 8px; box-sizing: content-box; border-radius: 50%; background: rgb(255 255 255 / .1); transition: background .15s; }
.hd-db:hover .hd-i { background: rgb(255 255 255 / .18); }
.hd-db.is-on .hd-i { background: #f5a524; color: #1a1205; }
.hd-db.is-red .hd-i { background: #e5484d; color: #fff; }
.hd-db.is-dim { opacity: .4; }
.hd-db span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hd-db em { position: absolute; top: 4px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #e5484d; color: #fff; font: 700 11px/18px var(--font-body); font-style: normal; }
.hd-db--leave .hd-i { background: #e5484d; color: #fff; }

/* ---- side panel ---- */
.hd-side { position: absolute; z-index: 6; right: 10px; top: calc(60px + env(safe-area-inset-top)); bottom: calc(86px + env(safe-area-inset-bottom)); width: min(360px, calc(100% - 20px)); display: flex; flex-direction: column; gap: 10px; padding: 14px; box-sizing: border-box; border-radius: 20px;
  background: rgb(14 19 28 / .9); backdrop-filter: blur(24px) saturate(1.3); box-shadow: 0 24px 60px -20px #000, inset 0 0 0 1px rgb(255 255 255 / .08); overflow-y: auto; animation: hd-side .22s ease-out; }
.hd-side[hidden] { display: none; }
@keyframes hd-side { from { opacity: 0; transform: translateY(10px); } }
.hd-side--react { top: auto; bottom: calc(86px + env(safe-area-inset-bottom)); }
@media (max-width: 600px) { .hd-side:not(.hd-side--react) { left: 8px; right: 8px; width: auto; top: auto; max-height: 72%; } }
.hd-side__h { display: flex; align-items: center; justify-content: space-between; }
.hd-side__h b { font: 800 17px/1 var(--font-display); }
.hd-side__s { margin: 6px 0 0; font: 700 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #9fabbd; }
.hd-side__f { display: flex; gap: 8px; flex-wrap: wrap; }
.hd-side__f .btn { display: inline-flex; align-items: center; gap: 6px; flex: 1; justify-content: center; }
.hd-chat { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; overflow-y: auto; align-content: start; min-height: 120px; }
.hd-chat li { display: grid; gap: 3px; max-width: 86%; padding: 8px 11px; border-radius: 14px 14px 14px 4px; background: rgb(255 255 255 / .08); }
.hd-chat li.is-me { justify-self: end; border-radius: 14px 14px 4px 14px; background: rgb(245 165 36 / .22); }
.hd-chat li b { font-size: 12px; color: #ffcf7a; }
.hd-chat li p { margin: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.hd-chat .hd-chat__empty { max-width: none; background: none; color: #9fabbd; font-size: 13px; }
.hd-send { display: flex; gap: 8px; }
.hd-send input { flex: 1; min-width: 0; padding: 11px 14px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .1); color: #fff; font: 500 15px/1 var(--font-body); }
.hd-send button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f5a524; color: #1a1205; cursor: pointer; }
.hd-pp { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hd-pp li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgb(255 255 255 / .04); }
.hd-pp__n { display: grid; gap: 2px; min-width: 0; }
.hd-pp__n b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-pp__n small { font-size: 12px; color: #9fabbd; }
.hd-pp__i { display: flex; gap: 4px; color: #9fabbd; }
.hd-pp__i .hd-i { width: 17px; height: 17px; }
.hd-pp__i .is-hand { color: #f5a524; }
.hd-pp__b { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.hd-pp__b button { padding: 7px 10px; border: 0; border-radius: 10px; background: rgb(255 255 255 / .1); color: #fff; font: 600 12.5px/1 var(--font-body); cursor: pointer; }
.hd-pp__b button.is-red { background: rgb(229 72 77 / .25); color: #ffb4b6; }
.hd-pp__b button.is-go { background: #1fae5b; }
.hd-pp--wait li { background: rgb(245 165 36 / .1); box-shadow: inset 0 0 0 1px rgb(245 165 36 / .3); }
.hd-more { display: grid; gap: 4px; }
.hd-more__i { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border: 0; border-radius: 12px; background: transparent; color: #fff; text-align: left; cursor: pointer; }
.hd-more__i:hover { background: rgb(255 255 255 / .07); }
.hd-more__i span { display: grid; gap: 3px; }
.hd-more__i b { font: 600 15px/1.1 var(--font-body); }
.hd-more__i small { font-size: 12.5px; color: #9fabbd; }
.hd-more__i.is-red { color: #ff8a8d; }
.hd-reacts { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-re { padding: 10px 14px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .1); color: #fff; font: 800 15px/1 var(--font-display); cursor: pointer; transition: transform .1s; }
.hd-re:active { transform: scale(.94); }
.hd-re--heart { color: #ff6b70; font-size: 20px; }
.hd-re--horn { background: rgb(79 214 255 / .18); }

/* ---- notices ---- */
.hd-fx { position: absolute; z-index: 7; left: 50%; top: calc(64px + env(safe-area-inset-top)); transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; width: min(92%, 440px); pointer-events: none; }
.hd-fx__i { pointer-events: auto; padding: 9px 14px; border: 0; border-radius: 999px; background: rgb(20 26 38 / .92); backdrop-filter: blur(14px); color: #fff; font: 600 13.5px/1.3 var(--font-body); box-shadow: 0 10px 30px -10px #000, inset 0 0 0 1px rgb(255 255 255 / .1); animation: hd-side .2s ease-out; transition: opacity .35s, transform .35s; text-align: center; }
button.hd-fx__i { cursor: pointer; }
.hd-fx__i.is-out { opacity: 0; transform: translateY(-6px); }

/* ---- board ---- */
.hd-board { position: absolute; z-index: 5; left: 10px; right: 10px; top: calc(56px + env(safe-area-inset-top)); bottom: calc(84px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #0d1420; box-shadow: 0 24px 60px -20px #000, inset 0 0 0 1px rgb(255 255 255 / .1); }
.hd-board[hidden] { display: none; }
.hd-board__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; background: rgb(255 255 255 / .05); }
.hd-board__bar > b { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1 var(--font-body); margin-right: auto; }
.hd-pens { display: flex; gap: 6px; }
.hd-pens button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .2); background: var(--c); cursor: pointer; }
.hd-pens button.is-on { border-color: #fff; transform: scale(1.12); }
.hd-bgs { display: flex; gap: 4px; }
.hd-bgs button { padding: 6px 9px; border: 0; border-radius: 8px; background: rgb(255 255 255 / .08); color: #fff; font: 600 12px/1 var(--font-body); cursor: pointer; }
.hd-board canvas { flex: 1; width: 100%; min-height: 0; touch-action: none; cursor: crosshair; }

/* ---- driving mode ---- */
.hd-drivebox { display: none; }
.hd.is-drive .hd-stage, .hd.is-drive .hd-board { display: none; }
.hd.is-drive .hd-drivebox { display: grid; gap: 18px; justify-items: center; align-content: center; text-align: center; padding: 20px; }
.hd.is-drive .hd-dock .hd-db:not([data-hd="mic"]):not([data-hd="leave"]):not([data-hd="people"]) { display: none; }
.hd-drivebox__who { font: 700 18px/1.2 var(--font-body); color: #ffcf7a; min-height: 22px; }
.hd-bigmute { display: grid; justify-items: center; gap: 12px; width: min(78vw, 300px); aspect-ratio: 1; align-content: center; border: 0; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2a3445, #141a24); color: #fff; cursor: pointer; box-shadow: 0 0 0 6px rgb(255 255 255 / .06), 0 30px 60px -20px #000; }
.hd-bigmute .hd-i { width: 72px; height: 72px; }
.hd-bigmute b { font: 700 18px/1.2 var(--font-body); }
.hd-bigmute.is-muted { background: radial-gradient(circle at 50% 35%, #e5484d, #9b1f24); }
.hd-drivebox p { margin: 0; color: #9fabbd; }

/* ---- rail link ---- */
.js-rail a[data-ch="huddle"] .js-i { color: #f5a524; }
@media (prefers-reduced-motion: reduce) { .hd-bg, .hd-hero__art i, .hd-knock i, .hd-tile__hand { animation: none; } }

/* Pop-ups and toasts opened from inside a Huddle sit above the full-screen room */
.js-modal.hd-modal { z-index: 170; }
body:has(.hd) .js-toast { z-index: 175; }
.hd-ib--del:hover { background: rgb(220 38 38 / .16); color: #dc2626; }
.js-modal.hd-modal .btn--ghost { border: 1px solid var(--color-border); color: var(--color-text); background: transparent; }
