/* O auditório 3D da Sala ao vivo (vem depois do site.css, movimento.css e premium.css).
   Ocupa a tela inteira: o vídeo do telão (embaixo), a cena 3D (canvas transparente só no telão), as etiquetas e a interface. */

:root { --neon: #B44CFF; --magenta: #FF3DB8; --vidro: rgba(20,14,15,.78); --doca-h: 74px; }

html.aud, html.aud body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body.pag-aud { background: var(--bg); -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: none; }
.simbolos { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------------------------------------------------------- as camadas */
.tela3d { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.tela3d-cam { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.tela3d-obj { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; background: #000; -webkit-backface-visibility: hidden; backface-visibility: hidden; pointer-events: auto; }
.tela3d-obj iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
/* a tela que o apresentador compartilha: no mesmo objeto projetado, no lugar da live */
.tela3d-obj video { display: none; width: 100%; height: 100%; object-fit: contain; background: #000; }
body.com-tela .tela3d-obj iframe { display: none; }
body.com-tela .tela3d-obj video { display: block; }
body.com-tela.usando-telao .tela3d-obj { cursor: zoom-in; }
body.sem-live .tela3d-obj { display: none; }
.tela-vazia { display: none; }

.cena { position: fixed; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; touch-action: none; outline: none; cursor: grab; }
.cena.agarrando { cursor: grabbing; }
.cena.aponta { cursor: pointer; }
body.usando-telao .cena { pointer-events: none; }
body.usando-telao .tela3d { pointer-events: auto; cursor: zoom-out; }
body.usando-telao .tela3d-obj { cursor: auto; box-shadow: 0 0 0 4px var(--gold-hi); }

.etiquetas { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }

/* ---------------------------------------------------------------- etiquetas dos avatares (nome, bolha da câmera, mão) */
.av-etq { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 5px; transform-origin: 50% 100%; will-change: transform; }
.av-etq.fora { visibility: hidden; }
.av-bolha { --cor: var(--gold-hi); position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--cor);
  border: 2px solid rgba(13,9,9,.85); box-shadow: 0 0 0 1.5px rgba(255,255,255,.18), 0 8px 22px rgba(0,0,0,.5); transition: box-shadow .2s ease, width .25s ease, height .25s ease; }
.av-bolha .av-ini { font: 800 15px/1 var(--t); letter-spacing: .02em; color: #1a1012; }
.av-bolha video { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #000; }
.av-etq.eu .av-bolha video { transform: scaleX(-1); }
.av-etq.cam .av-bolha { width: 78px; height: 78px; }
.av-etq.cam .av-bolha .av-ini { visibility: hidden; }
.av-etq.fala .av-bolha { box-shadow: 0 0 0 3px var(--magenta), 0 0 22px rgba(255,61,184,.65), 0 8px 22px rgba(0,0,0,.5); }
.av-etq .av-mao { position: absolute; top: -12px; right: -16px; font-size: 22px; line-height: 1; display: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.av-etq.mao .av-mao { display: block; }
.av-etq.sem-bolha .av-bolha { display: none; }
.av-nome { display: inline-flex; align-items: center; gap: 5px; max-width: 160px; padding: 3px 9px; border-radius: 999px; background: rgba(13,9,9,.74); border: 1px solid rgba(201,164,92,.22);
  font: 600 12px/1.3 var(--f); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-nome::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
.av-etq.mic .av-nome::before { background: var(--ok); }
.av-etq.fala .av-nome::before { background: var(--magenta); }
/* o selo do apresentador (dourado), em cima do nome */
.av-anf { display: none; padding: 2px 8px; border-radius: 999px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1a1012;
  font: 700 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 0 14px rgba(227,200,143,.45), 0 4px 12px rgba(0,0,0,.45); }
.av-etq.anf .av-anf { display: block; }
.av-etq.anf .av-nome { border-color: rgba(227,200,143,.6); }
.av-etq.anf .av-bolha { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 18px rgba(227,200,143,.4), 0 8px 22px rgba(0,0,0,.5); }

/* ---------------------------------------------------------------- a barra de cima */
.aud-topo { position: fixed; z-index: 7; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(13,9,9,.88), rgba(13,9,9,.55) 60%, rgba(13,9,9,0)); pointer-events: none; }
.aud-topo > * { pointer-events: auto; }
.aud-topo .brand { flex: none; }
.brand-nome { font: 800 14px var(--t); letter-spacing: .12em; }
.aud-live { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; justify-content: center; }
.aud-titulo { min-width: 0; font: 700 15px/1.2 var(--t); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selo-live { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: var(--red); color: #fff;
  font: 600 10.5px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 0 18px rgba(181,38,45,.55); }
.selo-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pisca 1.4s ease-in-out infinite; }
.selo-live.breve { background: rgba(180,76,255,.16); color: #E7C9FF; box-shadow: inset 0 0 0 1px rgba(180,76,255,.45); }
.selo-live.breve::before { background: var(--neon); animation: none; }
@keyframes pisca { 50% { opacity: .25; } }
.aud-direita { flex: none; display: flex; align-items: center; gap: 8px; }
.topo-btn, .contagem { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(26,18,19,.72); color: var(--text); font: 600 14px var(--f); }
.topo-btn:hover, .contagem:hover { border-color: rgba(227,200,143,.5); color: #fff; }
.contagem .ic { color: var(--gold-hi); width: 19px; height: 19px; }

/* a vista: o botão no alto e o menu com as quatro vistas */
.vista-box { position: relative; }
.vista-tx { font: 600 13px var(--f); white-space: nowrap; }
.vistas { position: absolute; z-index: 8; top: calc(100% + 8px); right: 0; width: 290px; display: grid; gap: 4px; padding: 12px; border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(20,14,15,.985); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: vistas-in .18s ease both; }
.vistas[hidden] { display: none; }
@keyframes vistas-in { from { opacity: 0; transform: translateY(-6px); } }
.vistas .label { padding: 2px 6px 6px; }
.vistas button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--text); text-align: left; cursor: pointer; }
.vistas button:hover, .vistas button:focus-visible { background: rgba(255,255,255,.05); }
.vistas button .ic { color: var(--muted); }
.vistas button span { display: grid; gap: 2px; min-width: 0; }
.vistas button b { font: 600 14px var(--f); }
.vistas button small { color: var(--dim); font-size: 12px; }
.vistas button[aria-checked="true"] { border-color: rgba(227,200,143,.45); background: rgba(201,164,92,.1); }
.vistas button[aria-checked="true"] b, .vistas button[aria-checked="true"] .ic { color: var(--gold-hi); }
.vistas-nota { padding: 6px 6px 0; color: var(--dim); font-size: 11.5px; }
.vistas-nota kbd { padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--gold-hi); font: 600 11px var(--mono); }

/* a faixa "No palco · Lucas" / "Lucas está compartilhando a tela" (para todos), com o Ampliar */
.faixa-palco { position: fixed; z-index: 6; top: 68px; left: 50%; transform: translateX(-50%); display: flex; width: max-content; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 6px 6px 6px 14px; border-radius: 999px; border: 1px solid rgba(227,200,143,.45); background: linear-gradient(180deg, rgba(42,30,20,.92), rgba(20,14,15,.92));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 0 24px rgba(227,200,143,.16); color: #fff; font: 600 13.5px var(--f);
  animation: faixa-in .35s cubic-bezier(.2,.7,.2,1) both; }
.faixa-palco[hidden] { display: none; }
@keyframes faixa-in { from { opacity: 0; transform: translate(-50%, -8px); } }
.fp-luz { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--gold-hi); box-shadow: 0 0 0 3px rgba(227,200,143,.18), 0 0 14px var(--gold-hi); animation: pisca 1.6s ease-in-out infinite; }
.fp-txt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 8px 8px 8px 0; }
.fp-ampliar { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1a1012; font: 700 13px var(--f); box-shadow: 0 6px 18px rgba(201,164,92,.35), inset 0 1px 0 rgba(255,255,255,.4); }
.fp-ampliar[hidden] { display: none; }
.fp-ampliar .ic { width: 17px; height: 17px; stroke-width: 2.1; }
.fp-ampliar:hover { filter: brightness(1.06); }
body.com-faixa .aviso, body.com-faixa .chip-telao { top: 120px; }

/* a barra do apresentador: dourada, acima da doca, separada dos controles dos alunos */
.barra-apr { position: fixed; z-index: 5; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--doca-h) + 22px); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; width: max-content; max-width: calc(100vw - 16px);
  padding: 6px; border-radius: 18px; border: 1px solid rgba(227,200,143,.55);
  background: linear-gradient(180deg, rgba(58,42,22,.9), rgba(28,20,14,.92)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0,0,0,.55), 0 0 30px rgba(227,200,143,.14), inset 0 1px 0 rgba(255,236,190,.18); }
.barra-apr[hidden] { display: none; }
.apr-selo { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 10px; border-radius: 12px; flex: none;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1a1012; font: 700 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 14px rgba(201,164,92,.3); }
.apr-selo .ic { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.abtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; border-radius: 12px; cursor: pointer; border: 1px solid rgba(227,200,143,.22);
  background: rgba(255,236,190,.05); color: #F3E3BE; font: 600 13px var(--f); white-space: nowrap; transition: background-color .2s ease, border-color .2s ease; }
.abtn .ic { width: 19px; height: 19px; color: var(--gold-hi); }
.abtn:hover { background: rgba(255,236,190,.12); border-color: rgba(227,200,143,.5); }
.abtn[hidden] { display: none; }
.abtn[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1a1012; border-color: transparent; }
.abtn[aria-pressed="true"] .ic { color: #1a1012; }
.abtn[aria-busy="true"] { opacity: .65; cursor: progress; }
.abtn .tx-curto { display: none; }
body.apresentador .dica { bottom: calc(var(--doca-h) + 96px); }
body.apresentador .joystick { bottom: calc(var(--doca-h) + 100px); }
body.apresentador .eu-video { bottom: calc(var(--doca-h) + 96px); }
body[data-vista="cadeiras"] .joystick { display: none; }

/* ---------------------------------------------------------------- a barra de baixo (doca) */
.doca { position: fixed; z-index: 5; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 6px; padding: 8px;
  border-radius: 20px; border: 1px solid var(--line-2); background: var(--vidro); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05); }
.dbtn { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 70px; height: 58px; padding: 0 8px; border-radius: 14px; cursor: pointer;
  border: 1px solid transparent; background: rgba(255,255,255,.04); color: var(--text); font: 500 11.5px/1.2 var(--f); transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.dbtn:hover { background: rgba(255,255,255,.09); }
.dbtn[hidden] { display: none; }
.dbtn.anf-btn { color: var(--gold-hi); }
.dbtn[aria-busy="true"] { opacity: .7; cursor: progress; }
.dic { position: relative; display: grid; place-items: center; }
.dic .corte { position: absolute; inset: 0; display: none; color: #FF8A8F; stroke-width: 2.2; }
.dbtn.desl { color: #FFB3B6; background: rgba(181,38,45,.16); border-color: rgba(181,38,45,.35); }
.dbtn.desl .corte { display: block; }
.dbtn[aria-pressed="true"]:not(.desl) { color: #1a1012; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-color: transparent; }
#b-mic[aria-pressed="true"].fala { box-shadow: 0 0 0 2px var(--magenta), 0 0 18px rgba(255,61,184,.5); }
.dbtn.sair { color: var(--gold-hi); border-color: var(--line-2); background: transparent; }
.dbtn.sair:hover { background: rgba(181,38,45,.2); color: #fff; }

/* ---------------------------------------------------------------- o telão em tela cheia */
.fechar-cheio { position: fixed; z-index: 31; top: max(14px, env(safe-area-inset-top)); right: 16px; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--line-2); background: rgba(20,14,15,.9); color: #fff; font: 600 14px var(--f); cursor: pointer; }
body.telao-cheio .tela3d { z-index: 30; pointer-events: auto; background: rgba(8,5,6,.96); perspective: none !important; }
body.telao-cheio .tela3d-cam { transform: none !important; }
body.telao-cheio .tela3d-obj { left: 50%; top: 50%; width: min(94vw, calc((100dvh - 120px) * 16 / 9)); height: auto; aspect-ratio: 16 / 9; transform: translate(-50%, -50%) !important;
  border-radius: 14px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.7), 0 0 0 1px var(--line-2), 0 0 80px rgba(180,76,255,.18); }
body.telao-cheio.sem-live .tela-vazia { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 720px); aspect-ratio: 16 / 9; display: grid; place-content: center;
  justify-items: center; gap: 12px; padding: 24px; text-align: center; border-radius: 18px; border: 1px solid var(--line-2);
  background: radial-gradient(600px 300px at 50% 0%, rgba(180,76,255,.18), transparent 70%), linear-gradient(180deg, var(--s2), var(--bg2)); }
.tela-vazia svg { width: 54px; height: 80px; }
.tela-vazia .fx, .portao-logo .fx { fill: var(--red); }
.tela-vazia .tri, .portao-logo .tri { fill: var(--gold); }
.tela-vazia b { font: 800 clamp(22px, 4vw, 34px)/1.1 var(--t); color: #fff; }
.tela-vazia p { color: var(--muted); max-width: 42ch; }

/* ---------------------------------------------------------------- chip do telão, dica, aviso */
.chip-telao { position: fixed; z-index: 6; top: 76px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(20,14,15,.94); font-size: 14px; color: var(--text); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.dica { position: fixed; z-index: 4; left: 16px; bottom: calc(var(--doca-h) + 30px); max-width: min(420px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 12px;
  background: rgba(13,9,9,.72); border: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; pointer-events: none; transition: opacity .6s ease; }
.dica kbd { display: inline-block; min-width: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--gold-hi); font: 600 11.5px/18px var(--mono); text-align: center; }
.dica.some { opacity: 0; }
.aviso { position: fixed; z-index: 40; left: 50%; top: 76px; transform: translate(-50%, -8px); max-width: calc(100vw - 32px); width: max-content; padding: 11px 16px; border-radius: 12px;
  background: rgba(26,18,19,.96); border: 1px solid var(--line-2); color: #fff; font-size: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; }
.aviso.ver { opacity: 1; transform: translate(-50%, 0); }
.aviso.erro { border-color: rgba(181,38,45,.6); }

/* a minha câmera (miniatura no canto) */
.eu-video { position: fixed; z-index: 4; right: 16px; bottom: calc(var(--doca-h) + 30px); width: 132px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; pointer-events: none;
  border: 2px solid var(--gold); box-shadow: 0 14px 34px rgba(0,0,0,.55), 0 0 0 4px rgba(13,9,9,.6); background: #000; }
.eu-video video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.eu-video span { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px; background: rgba(13,9,9,.78); font-size: 11px; font-weight: 600; }
body.presentes-aberto .eu-video { right: 340px; }
@media (max-width: 640px) { .eu-video { width: 92px; top: 70px; bottom: auto; right: 12px; } body.presentes-aberto .eu-video { right: 12px; } }

/* ---------------------------------------------------------------- o joystick (toque) */
.joystick { position: fixed; z-index: 4; left: 18px; bottom: calc(var(--doca-h) + 34px); width: 132px; height: 132px; touch-action: none; }
.joy-base { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-2); background: radial-gradient(circle, rgba(201,164,92,.10), rgba(13,9,9,.45) 70%); }
.joy-pino { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  box-shadow: 0 8px 20px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.4); }

/* ---------------------------------------------------------------- presentes */
.presentes { position: fixed; z-index: 6; top: 72px; right: 16px; bottom: calc(var(--doca-h) + 30px); width: 310px; display: flex; flex-direction: column; gap: 10px; padding: 16px;
  border-radius: 18px; border: 1px solid var(--line-2); background: rgba(20,14,15,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(0,0,0,.6);
  transform: translateX(calc(100% + 32px)); visibility: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s .35s; -webkit-user-select: text; user-select: text; }
body.presentes-aberto .presentes { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.pres-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pres-topo > div { display: grid; gap: 4px; }
.pres-topo b { font: 800 18px var(--t); }
.pres-lista { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: grid; gap: 4px; align-content: start; flex: 1; touch-action: pan-y; }
.pres-lista li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.03); }
.pres-lista .pto { --cor: var(--gold-hi); width: 30px; height: 30px; border-radius: 50%; background: var(--cor); display: grid; place-items: center; font: 800 11px var(--t); color: #1a1012; }
.pres-lista .pn { min-width: 0; display: grid; }
.pres-lista .pn b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pres-lista .pn small { color: var(--dim); font-size: 12px; }
.pres-lista .pi { display: flex; gap: 6px; color: var(--dim); }
.pres-lista .pi .ic { width: 17px; height: 17px; }
.pres-lista .pi .on { color: var(--ok); }
.pres-lista .pi .maoi { color: var(--gold-hi); }
.pres-lista li.eu { background: rgba(201,164,92,.08); border: 1px solid var(--line); }
.pres-nota { font-size: 12px; color: var(--dim); line-height: 1.5; }

/* ---------------------------------------------------------------- saguão e portão (sobre a cena desfocada) */
.saguao, .portao { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; overflow-y: auto; touch-action: pan-y;
  background: radial-gradient(900px 500px at 50% 0%, rgba(180,76,255,.14), transparent 65%), rgba(13,9,9,.55); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); }
.portao { z-index: 21; background: radial-gradient(900px 500px at 50% 0%, rgba(142,26,31,.25), transparent 65%), rgba(13,9,9,.82); }
.sag-cartao, .portao-cartao { width: min(980px, 100%); display: grid; gap: 16px; padding: clamp(20px, 4vw, 34px); border-radius: 22px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(34,23,24,.92), rgba(20,14,15,.94)); box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05); }
.sag-cartao h1, .portao-cartao h1 { font-size: clamp(26px, 4.6vw, 40px); }
.portao-cartao { width: min(560px, 100%); justify-items: start; }
.portao-cartao p { color: var(--muted); }
.portao-logo { width: 44px; height: 66px; }
.portao.carregando .portao-logo { animation: respira 1.6s ease-in-out infinite; }
@keyframes respira { 50% { opacity: .45; transform: scale(.94); } }
.sag-live { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.sag-live .ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 12px var(--neon); flex: none; }
.sag-live.no-ar { color: #fff; font-weight: 600; }
.sag-live.no-ar .ponto { background: var(--red); box-shadow: 0 0 12px var(--red); animation: pisca 1.4s ease-in-out infinite; }
.sag-grade { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: start; }
/* a prévia do personagem: o palco 3D girando, a bolha da câmera em cima (como na sala) e o nome */
.sag-previa { position: relative; height: 410px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line-2);
  background: radial-gradient(240px 200px at 50% 26%, rgba(227,200,143,.13), transparent 70%), radial-gradient(320px 220px at 50% 100%, rgba(180,76,255,.2), transparent 70%), linear-gradient(180deg, #1b1214, #0f0a0b); }
.av-palco { position: absolute; inset: 0; touch-action: pan-y; }
.av-cv { display: block; width: 100%; height: 100%; cursor: grab; }
.av-cv:active { cursor: grabbing; }
.sag-bolha { position: relative; z-index: 1; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; }
.sag-previa.com-3d { place-items: start start; }
.sag-previa.com-3d .sag-bolha { width: 46px; height: 46px; margin: 12px 0 0 12px; }
.sag-previa.com-3d .sag-bolha.cam { width: 78px; height: 78px; }
.sag-bolha video { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transform: scaleX(-1); border: 2px solid var(--gold); background: #000; }
.sag-ini { --cor: var(--gold-hi); width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--cor); color: #1a1012; font: 800 32px var(--t);
  box-shadow: 0 10px 30px rgba(0,0,0,.45); border: 2px solid rgba(13,9,9,.85); }
.sag-ini[hidden] { display: none; }
.sag-previa.com-3d .sag-ini { font-size: 16px; }
.sag-nome { position: absolute; z-index: 1; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(13,9,9,.78); font-size: 13px; font-weight: 600; }
.av-perfil-nome { position: absolute; z-index: 1; right: 10px; bottom: 10px; max-width: 60%; padding: 3px 10px; border-radius: 999px; background: rgba(13,9,9,.78);
  border: 1px solid var(--line); color: var(--gold-hi); font: 600 12px/1.4 var(--f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-perfil-nome:empty { display: none; }
.av-giro { position: absolute; z-index: 1; left: 0; right: 0; top: 46%; display: flex; justify-content: space-between; padding: 0 6px; pointer-events: none; }
.av-giro-b { pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(13,9,9,.6); color: var(--gold-hi); font: 600 20px/1 var(--f); cursor: pointer; }
.av-giro-b:hover { background: rgba(13,9,9,.85); color: #fff; }
.sag-previa.sem-3d .av-giro, .sag-previa.sem-3d .av-perfil-nome { display: none; }
.sag-ctrl { display: grid; gap: 10px; min-width: 0; }
.sag-sub { margin: 4px 0 0; font: 600 11.5px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
/* os perfis prontos */
.av-perfis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.av-card { position: relative; display: grid; justify-items: center; gap: 2px; padding: 4px 4px 7px; border-radius: 12px; cursor: pointer; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); color: var(--text); transition: border-color .2s ease, background-color .2s ease; min-width: 0; }
.av-card canvas { width: 100%; max-width: 92px; aspect-ratio: 92 / 104; height: auto; display: block; border-radius: 9px; background: radial-gradient(circle at 50% 30%, rgba(227,200,143,.12), transparent 70%); }
.av-card-nome { font: 600 11.5px/1.25 var(--f); text-align: center; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-card-cor { position: absolute; top: 7px; left: 7px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255,255,255,.35); }
.av-card:hover { border-color: rgba(227,200,143,.45); }
.av-card[aria-checked="true"] { border-color: var(--gold); background: radial-gradient(160px 90px at 50% 0%, rgba(201,164,92,.2), transparent 70%), var(--s2); box-shadow: 0 0 0 1px var(--gold); }
.av-card[aria-checked="true"] .av-card-nome { color: var(--gold-hi); }
/* os ajustes finos */
.av-ajustes { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.av-ajustes summary { cursor: pointer; padding: 12px 14px; font: 600 14px var(--f); color: var(--text); list-style: none; display: flex; align-items: center; gap: 10px; }
.av-ajustes summary::-webkit-details-marker { display: none; }
.av-ajustes summary::before { content: "+"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--gold-hi); font: 500 15px/1 var(--mono); flex: none; }
.av-ajustes[open] summary::before { content: "\2013"; }
.av-ajustes-corpo { display: grid; gap: 10px; padding: 2px 14px 14px; }
.av-linha { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; align-items: center; }
.av-rot { font-size: 12.5px; color: var(--muted); }
.av-opcoes { display: flex; flex-wrap: wrap; gap: 6px; }
.av-cor { --c: #444; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; background: var(--c); border: 2px solid rgba(13,9,9,.9); box-shadow: 0 0 0 1px rgba(255,255,255,.18); padding: 0; }
.av-cor.sem { background: linear-gradient(135deg, transparent 45%, #FF8A8F 45% 55%, transparent 55%), var(--s3); }
.av-cor[aria-checked="true"] { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 12px rgba(227,200,143,.35); }
.av-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 11px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  color: var(--text); font: 500 12.5px var(--f); }
.av-chip[aria-checked="true"], .av-chip[aria-pressed="true"] { border-color: var(--gold); background: rgba(201,164,92,.14); color: var(--gold-hi); }
.av-extra::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.av-extra[aria-pressed="true"]::before { background: currentColor; }
.av-tec-am { width: 16px; height: 16px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.sag-chaves { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-items: start; }
.sag-chaves > div { display: grid; gap: 8px; align-content: start; }
.chave { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 14px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--text); font: 600 15px var(--f); }
.chave > span:nth-child(2) { flex: 1; }
.chave .ic { color: var(--muted); }
.trilho { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--s3); border: 1px solid var(--line-2); flex: none; transition: background-color .2s ease; }
.trilho::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s ease, background-color .2s ease; }
.chave[aria-checked="true"] { border-color: rgba(227,200,143,.55); background: rgba(201,164,92,.08); }
.chave[aria-checked="true"] .ic { color: var(--gold-hi); }
.chave[aria-checked="true"] .trilho { background: var(--wine); }
.chave[aria-checked="true"] .trilho::after { transform: translateX(18px); background: var(--gold-hi); }
.chave[aria-busy="true"] { opacity: .7; cursor: progress; }
.medidor { height: 8px; border-radius: 999px; background: var(--s3); overflow: hidden; }
.medidor span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--ok), var(--gold-hi) 60%, var(--magenta)); transition: transform .08s linear; }
.sag-dica { color: var(--dim); font-size: 12.5px; }
.sag-msg { color: #FFB3B6; font-size: 13.5px; }
.sag-msg:empty { display: none; }
.sag-entrar { width: 100%; min-height: 58px; font-size: 17px; position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -12px 24px rgba(20,14,15,.9), 0 10px 30px rgba(142,26,31,.35); }
.sag-nota { text-align: center; }

/* ---------------------------------------------------------------- celular */
@media (max-width: 860px) {
  .brand-nome { display: none; }
  .aud-live { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .abtn { padding: 0 10px; font-size: 12px; }
  .apr-selo > span { display: none; }
  .apr-selo { padding: 0 10px; }
}
@media (max-width: 640px) {
  :root { --doca-h: 66px; }
  .aud-topo { gap: 10px; padding-inline: 12px; }
  .contagem-txt { display: none; }
  .aud-titulo { font-size: 14px; }
  .vista-tx { display: none; }
  .vistas { position: fixed; top: 64px; left: 8px; right: 8px; width: auto; }
  .faixa-palco { top: 62px; font-size: 12.5px; }
  .fp-ampliar { height: 32px; padding: 0 12px; font-size: 12px; }
  body.com-faixa .aviso, body.com-faixa .chip-telao { top: 108px; }
  /* a barra do apresentador no celular: a largura toda, os ícones com um rótulo curto embaixo */
  .barra-apr { left: 8px; right: 8px; width: auto; transform: none; gap: 4px; padding: 5px; border-radius: 16px; bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--doca-h) + 14px); }
  .apr-selo { height: 46px; padding: 0 9px; }
  .abtn { flex: 1; min-width: 0; height: 46px; flex-direction: column; justify-content: center; gap: 2px; padding: 0 2px; font-size: 9.5px; }
  .abtn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  body.apresentador .dica { bottom: calc(var(--doca-h) + 236px); }
  body.apresentador .joystick { bottom: calc(var(--doca-h) + 88px); }
  .abtn .tx-longo { display: none; }
  .abtn .tx-curto { display: inline; }
  .doca { left: 8px; right: 8px; transform: none; justify-content: space-between; gap: 4px; padding: 6px; border-radius: 18px; }
  .dbtn { min-width: 0; flex: 1; height: 54px; padding: 0 2px; font-size: 10px; }
  .dtx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .presentes { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 64dvh; border-radius: 22px 22px 0 0; z-index: 7; padding-bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateY(105%); }
  .sag-grade { grid-template-columns: 1fr; }
  .sag-previa { height: 320px; }
  .sag-bolha { width: 72px; height: 72px; }
  .sag-ini { font-size: 26px; }
  .av-perfis { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; touch-action: pan-x pan-y; }
  .av-card { scroll-snap-align: start; }
  .av-linha { grid-template-columns: 1fr; gap: 6px; }
  .sag-chaves { grid-template-columns: 1fr; }
  .chip-telao { flex-direction: column; align-items: stretch; text-align: center; padding: 10px; }
  .dica { bottom: calc(var(--doca-h) + 180px); }
}
@media (max-width: 380px) { .dtx { display: none; } .dbtn { height: 50px; } }

@media (prefers-reduced-motion: reduce) {
  .selo-live::before, .sag-live.no-ar .ponto, .portao.carregando .portao-logo { animation: none; }
  .av-bolha, .presentes, .aviso, .dica, .medidor span, .trilho, .trilho::after, .dbtn, .av-card { transition: none; }
}

/* ---------------------------------------------------------------- o convite da aula gratuita (o apresentador) */
.abtn-ouro { color: #1a1012; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.dlg-convite { width: min(520px, calc(100vw - 24px)); padding: 0; border-radius: 20px; border: 1px solid rgba(201,164,92,.45); color: var(--text);
  background: radial-gradient(500px 220px at 0% 0%, rgba(201,164,92,.14), transparent 70%), #160f10; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.dlg-convite::backdrop { background: rgba(5,3,3,.62); backdrop-filter: blur(3px); }
.dlg-convite form { display: grid; gap: 12px; padding: 22px; }
.dc-label { font: 600 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); }
.dlg-convite h2 { margin: 0; font: 800 24px var(--tit, inherit); color: #fff; }
.dc-txt { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.dc-campo { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.dc-campo input, .dc-link input { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #0d0909; color: #fff; font: 400 15px var(--f, inherit); }
.dc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-chips button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); font: 600 13px var(--f, inherit); cursor: pointer; }
.dc-chips button[aria-checked="true"] { color: #1a1012; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-color: transparent; }
.dc-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.dc-link .dc-btn.linha { grid-column: 1 / -1; text-align: center; text-decoration: none; }
.dc-btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1a1012; font: 700 14px var(--f, inherit); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dc-btn.linha { background: transparent; border-color: var(--line-2); color: var(--gold-hi); }
.dc-msg { margin: 0; min-height: 1.2em; color: var(--muted); font-size: 13px; }
.dlg-convite footer { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------------------------------------------------------------- a moderação: as mãos levantadas, os bloqueios e a palavra */
.maos { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(227,200,143,.6); cursor: pointer;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1a1012; font: 700 13px var(--f, inherit); animation: maoPulsa 1.6s ease-in-out infinite; }
.maos[hidden] { display: none; }
@keyframes maoPulsa { 0%, 100% { box-shadow: 0 0 0 0 rgba(227,200,143,.55); } 50% { box-shadow: 0 0 0 8px rgba(227,200,143,0); } }
@media (max-width: 640px) { .maos-txt { display: none; } }
@media (prefers-reduced-motion: reduce) { .maos { animation: none; } }
.pres-mod { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pres-mod[hidden] { display: none; }
.pm-btn { grid-column: span 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 8px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); font: 600 12px var(--f, inherit); cursor: pointer; }
.pm-btn:first-child { grid-column: 1 / -1; }
.pm-btn .ic { width: 16px; height: 16px; }
.pm-btn[aria-pressed="true"] { color: #FFD3D7; border-color: rgba(181,38,45,.6); background: rgba(181,38,45,.18); }
.pres-lista li.mao { background: rgba(227,200,143,.1); box-shadow: inset 3px 0 0 var(--gold-hi); }
.pres-lista li.palavra { background: rgba(111,207,151,.1); box-shadow: inset 3px 0 0 #6FCF97; }
.pres-acoes { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.pa-btn { min-height: 30px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); font: 600 12px var(--f, inherit); cursor: pointer; }
.pa-btn.ouro { color: #1a1012; border-color: transparent; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.pa-btn.forte { color: #FFD3D7; border-color: rgba(181,38,45,.6); background: rgba(181,38,45,.18); }
.pa-btn:disabled { opacity: .5; }
.dbtn.travado { opacity: .55; }
.dbtn.chamar { box-shadow: 0 0 0 2px #6FCF97, 0 0 18px rgba(111,207,151,.6); }

/* o menu da sala de operações (só o apresentador): abrir/fechar a porta, levar todos, trazer de volta */
.ops-menu { position: absolute; z-index: 8; bottom: calc(100% + 10px); right: 0; width: 330px; max-width: calc(100vw - 24px); display: grid; gap: 4px; padding: 12px; border-radius: 16px;
  border: 1px solid rgba(227,200,143,.4); background: rgba(20,14,15,.985); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(0,0,0,.6);
  animation: ops-in .18s ease both; }
.ops-menu[hidden] { display: none; }
@keyframes ops-in { from { opacity: 0; transform: translateY(6px); } }
.ops-menu .label { padding: 2px 6px 6px; }
.ops-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--text); text-align: left; cursor: pointer; }
.ops-menu button:hover, .ops-menu button:focus-visible { background: rgba(255,236,190,.07); border-color: rgba(227,200,143,.3); }
.ops-menu button[aria-busy="true"] { opacity: .6; cursor: progress; }
.ops-menu button .ic { flex: none; width: 20px; height: 20px; color: var(--gold-hi); }
.ops-menu button span { display: grid; gap: 2px; min-width: 0; }
.ops-menu button b { font: 600 14px var(--f); }
.ops-menu button small { color: var(--dim); font-size: 12px; line-height: 1.35; }
.ops-nota { margin: 4px 6px 0; color: var(--dim); font-size: 11.5px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .ops-menu { animation: none; } }
