/* GesGov Quiz — folha de estilos única (sem passo de compilação). Ao mudar, subir ?v= em layouts/base.blade.php. */

:root {
  --azul: #1461a6; --azul-escuro: #0f3f6d; --azul-claro: #eef6fb; --azul-2: #b3d5e9;
  --noite: #0c2036; --noite-2: #0a1b2e; --tinta: #0f1720; --cinza: #4b5b6b; --cinza-2: #33414f; --linha: #e1e8ef; --borda: #c9d5e1;
  --nevoa: #f4f7fa; --ouro: #F2B33D; --ouro-s: #b98220; --verde-ok: #0F7D67; --verde-ok-2: #0f6b57; --vermelho: #B83A3A;
  --suave: #cfe0f0; --suave-2: #a9bdd2;
  --prata: #C7D2DE; --bronze: #D99A66;
  --f-titulo: 'Lexend', system-ui, sans-serif; --f-texto: 'Source Sans 3', system-ui, sans-serif;
  --mola: cubic-bezier(.34, 1.56, .64, 1); --suavizar: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--f-texto); color: var(--tinta); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--azul); }
a:hover { color: var(--azul-escuro); }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }
.so-leitor { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ---------- Respostas: cor + forma + letra ---------- */
.op-0 { --c: #C93C3C; --s: #962b2b; --t: #ffffff; }
.op-1 { --c: #2470C2; --s: #17508f; --t: #ffffff; }
.op-2 { --c: #F2B33D; --s: #b98220; --t: #0f1720; }
.op-3 { --c: #34B89A; --s: #1f7f69; --t: #0f1720; }
.forma { display: block; fill: currentColor; flex: none; }

/* ---------- Fundo do jogo ---------- */
.fundo-jogo {
  background-color: var(--noite); color: #fff;
  background-image: linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  /* sem zoom com dois toques seguidos (um toque duplo num botão aumentava a página); a pinça continua a dar */
  touch-action: manipulation;
}
.fundo-jogo a { color: #9cc8ec; }
.fundo-jogo a:hover { color: #fff; }

/* ---------- Botões ---------- */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 0 18px; min-height: 44px;
  font-family: var(--f-titulo); font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.1; text-align: center; transition: transform .1s ease, box-shadow .1s ease, background-color .2s; }
.botao--ouro { background: var(--ouro); color: var(--tinta) !important; box-shadow: 0 4px 0 var(--ouro-s); }
.botao--ouro:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ouro-s); }
.botao--azul { background: var(--azul); color: #fff !important; }
.botao--azul:hover { background: var(--azul-escuro); }
.botao--linha { background: #fff; color: var(--tinta) !important; border: 1.5px solid var(--borda); font-weight: 600; }
.botao--linha:hover { border-color: #82b9da; }
.botao--vidro { background: rgba(255,255,255,.08); color: #fff !important; font-weight: 600; }
.botao--vidro:hover { background: rgba(255,255,255,.16); }
.botao--perigo { background: #fff; color: #962b2b !important; border: 1.5px solid #e8b4b4; font-weight: 600; }
.botao--grande { min-height: 60px; font-size: 22px; font-weight: 800; padding: 0 30px; border-radius: 16px; }
.botao--grande.botao--ouro { box-shadow: 0 6px 0 var(--ouro-s); }
.botao[disabled] { opacity: .5; cursor: not-allowed; }
.botao-icone { width: 44px; height: 44px; padding: 0; }
kbd { font-family: var(--f-titulo); font-size: 13px; padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(255,255,255,.3); }

/* ---------- Animações ---------- */
@keyframes q-pop { 0% { transform: scale(.3) translateY(20px); opacity: 0 } 55% { transform: scale(1.12); opacity: 1 } 100% { transform: none; opacity: 1 } }
@keyframes q-sobe { from { opacity: 0; transform: translateY(28px) scale(.95) } to { opacity: 1; transform: none } }
@keyframes q-desce { from { opacity: 0; transform: translateY(-26px) } to { opacity: 1; transform: none } }
@keyframes q-zoom { from { opacity: 0; transform: scale(.92) } to { opacity: 1; transform: none } }
@keyframes q-aparece { from { opacity: 0 } to { opacity: 1 } }
@keyframes q-bate { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.08) } }
@keyframes q-barra { 0% { transform: scaleY(0) } 70% { transform: scaleY(1.06) } 100% { transform: scaleY(1) } }
@keyframes q-carimbo { 0% { transform: scale(2.4) rotate(-20deg); opacity: 0 } 60% { transform: scale(.9) rotate(4deg); opacity: 1 } 100% { transform: none; opacity: 1 } }
@keyframes q-brilho { 0% { transform: translateX(-120%) skewX(-20deg) } 100% { transform: translateX(260%) skewX(-20deg) } }
@keyframes q-deriva { 0%, 100% { transform: translate(0, 0) rotate(0) } 50% { transform: translate(30px, -24px) rotate(18deg) } }
@keyframes q-pulso { 0%, 100% { box-shadow: 0 6px 0 var(--ouro-s), 0 0 0 0 rgba(242,179,61,.55) } 50% { box-shadow: 0 6px 0 var(--ouro-s), 0 0 0 14px rgba(242,179,61,0) } }
@keyframes q-anel { 0% { transform: scale(.8); opacity: .7 } 100% { transform: scale(1.9); opacity: 0 } }
@keyframes q-ponto { 0%, 80%, 100% { transform: translateY(0); opacity: .4 } 40% { transform: translateY(-8px); opacity: 1 } }
@keyframes q-gira { to { transform: rotate(360deg) } }
@keyframes q-abana { 0%, 100% { transform: translateX(0) } 20% { transform: translateX(-10px) rotate(-4deg) } 40% { transform: translateX(9px) rotate(3deg) } 60% { transform: translateX(-6px) rotate(-2deg) } 80% { transform: translateX(4px) } }
@keyframes q-desenha { from { stroke-dashoffset: 40 } to { stroke-dashoffset: 0 } }
@keyframes q-confete { 0% { transform: translateY(-40px) rotate(0) rotateX(0); opacity: 0 } 8% { opacity: 1 } 100% { transform: translateY(780px) rotate(720deg) rotateX(540deg); opacity: .9 } }
@keyframes q-degrau { 0% { transform: scaleY(0) } 70% { transform: scaleY(1.05) } 100% { transform: scaleY(1) } }
@keyframes q-coroa { 0% { transform: translateY(-30px) rotate(-20deg); opacity: 0 } 60% { transform: translateY(4px) rotate(6deg); opacity: 1 } 100% { transform: none; opacity: 1 } }
@keyframes q-luz { from { opacity: 0 } to { opacity: 1 } }
@keyframes q-banner { 0% { transform: translate(-50%, -50%) scale(.4) rotate(-4deg); opacity: 0 } 60% { transform: translate(-50%, -50%) scale(1.08) rotate(-4deg); opacity: 1 } 100% { transform: translate(-50%, -50%) scale(1) rotate(-4deg) } }
@keyframes q-pisca { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
@keyframes q-medalha { 0% { transform: translateY(-80px) rotate(-14deg); opacity: 0 } 50% { transform: translateY(6px) rotate(8deg); opacity: 1 } 75% { transform: rotate(-4deg) } 100% { transform: none } }
@keyframes q-cresce-x { from { transform: scaleX(0) } to { transform: scaleX(1) } }
.a-pop { animation: q-pop .45s var(--mola) both; }
.a-sobe { animation: q-sobe .5s var(--suavizar) both; }
.a-desce { animation: q-desce .55s var(--suavizar) both; }
.a-zoom { animation: q-zoom .6s var(--suavizar) both; }
.a-aparece { animation: q-aparece .4s ease both; }

/* ---------- Palco do ecrã projetado: 1280×720, escalado para caber em qualquer projetor ---------- */
.projetor { position: fixed; inset: 0; overflow: hidden; }
.palco { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform: translate(-50%, -50%) scale(var(--escala, 1)); transform-origin: center; }
.ecra { position: absolute; inset: 0; }
.deriva { position: absolute; opacity: .06; animation: q-deriva 20s ease-in-out infinite; pointer-events: none; }
.topo { position: absolute; left: 40px; right: 40px; top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 2; }
.topo__grupo { display: flex; align-items: center; gap: 8px; }
.pilula { font-family: var(--f-titulo); font-weight: 700; font-size: 17px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.1); white-space: nowrap; }
.pilula--linha { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-weight: 600; }
.discreto { font-size: 17px; color: var(--suave-2); }
.logo-jogo { height: 38px; width: auto; display: block; }

/* Sala de espera */
/* Uma coluna: se o cartão do endereço crescer, empurra a parte de baixo (a nuvem encolhe) em vez de ficar por cima */
.sala { position: absolute; left: 48px; right: 48px; top: 104px; bottom: 36px; display: flex; flex-direction: column; gap: 16px; }
.sala__entrada { display: flex; gap: 24px; flex: none; }
.sala__onde { min-width: 0; }
.sala__cartao { flex: 1; min-width: 0; border-radius: 24px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); padding: 26px 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sala__endereco { font-family: var(--f-titulo); font-size: 44px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; overflow-wrap: anywhere; }
.sala__endereco--longo { font-size: 34px; }
.sala__endereco--muito-longo { font-size: 28px; }
.sala__legenda { font-size: 22px; color: var(--suave); }
.pin { display: flex; gap: 8px; font-family: var(--f-titulo); font-size: 64px; font-weight: 800; line-height: 1; }
.pin span { width: 62px; height: 88px; border-radius: 14px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.pin .pin__espaco { width: 10px; background: transparent; }
.rotulo-ouro { font-family: var(--f-titulo); font-size: 15px; font-weight: 700; letter-spacing: .16em; color: var(--ouro); }
.qr { width: 196px; border-radius: 24px; background: #fff; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--tinta); font: inherit; font-size: 15px; font-weight: 600; border: 0; cursor: zoom-in; transition: transform .2s var(--mola), box-shadow .2s; }
.qr:hover { transform: scale(1.04); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.qr:focus-visible { outline: 4px solid var(--ouro); outline-offset: 4px; }
.qr__aumentar { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--azul); }
.qr .qr__aumentar svg { width: 16px; height: 16px; }
.qr .qr__aumentar svg path { fill: none; }
/* o QR em grande (auditórios): quase a altura toda do ecrã */
.qr-grande { border: 0; padding: 4vmin 5vmin; border-radius: 4vmin; background: #fff; color: var(--tinta); display: none; flex-direction: column; align-items: center; gap: 2.4vmin; max-width: 96vw; max-height: 96vh; cursor: zoom-out; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.qr-grande[open] { display: flex; }
.qr-grande::backdrop { background: rgba(4,14,26,.82); }
.qr-grande__codigo svg { width: min(68vh, 80vw); height: min(68vh, 80vw); display: block; }
.qr-grande__codigo svg .dark, .qr-grande__codigo svg path { fill: var(--tinta); }
.qr-grande__texto { text-align: center; }
.qr-grande__texto p { margin: 0; }
.qr-grande__texto > p:first-child { font-family: var(--f-titulo); font-weight: 800; font-size: clamp(22px, 4vh, 44px); }
.qr-grande__ou { font-size: clamp(16px, 2.6vh, 28px); color: var(--cinza-2); margin-top: .4em !important; }
.qr-grande__ou strong { color: var(--tinta); }
.qr-grande__pin { letter-spacing: .08em; }
.qr-grande__fechar { font-size: clamp(13px, 1.8vh, 18px); color: var(--cinza); margin-top: .6em !important; }
.qr svg { width: 150px; height: 150px; display: block; }
.qr svg .dark, .qr svg path { fill: var(--tinta); }
.sala__baixo { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px; }
.sala__linha { display: flex; align-items: center; justify-content: space-between; }
.sala__conta { display: flex; align-items: baseline; gap: 12px; }
.sala__conta strong { font-family: var(--f-titulo); font-size: 56px; font-weight: 800; }
.sala__conta span { font-size: 24px; color: var(--suave); }
.comecar { animation: q-pulso 2.2s ease-in-out infinite; }
.nuvem { flex: 1; border-radius: 24px; background: rgba(0,0,0,.18); border: 1px dashed rgba(255,255,255,.16); padding: 22px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px; overflow: hidden; }
.nuvem__vazia { width: 100%; text-align: center; padding-top: 70px; font-size: 22px; color: var(--suave-2); }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); font-family: var(--f-titulo); font-weight: 600; font-size: 21px; color: #fff; }
button.chip { cursor: pointer; transition: background-color .2s, opacity .2s; }
button.chip:hover { background: rgba(201,60,60,.35); }
.chip--sai { opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: var(--t); display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-titulo); font-weight: 800; font-size: 18px; flex: none; }
.avatar--boneco { background: rgba(255,255,255,.1); }
.avatar--boneco .boneco { width: 100%; height: 100%; display: block; overflow: visible; }
.chip .avatar { width: 54px; height: 54px; margin: -4px 0; }
.avatar--muda { animation: q-abana .6s var(--mola) both; }
@keyframes q-abana { 0% { transform: scale(.6) rotate(-14deg) } 40% { transform: scale(1.15) rotate(10deg) } 70% { transform: rotate(-5deg) } 100% { transform: none } }
@media (prefers-reduced-motion: reduce) { .avatar--muda { animation: none; } }

/* Pergunta */
.tempo-barra { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: rgba(255,255,255,.08); }
.tempo-barra div { height: 100%; width: 100%; background: var(--ouro); transform-origin: left; }
.tempo-barra.fim div, .anel.fim .anel__arco { background: #C93C3C; stroke: #C93C3C; }
/* tamanho e posição medidos em ecra.js (tituloQueCabe): o maior tamanho que cabe na faixa, centrado nela */
.pergunta__titulo { position: absolute; left: 80px; right: 80px; top: var(--topo, 84px); margin: 0; text-align: center; font-family: var(--f-titulo); font-weight: 700; font-size: var(--tam, 38px); line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pergunta__titulo--so { top: var(--topo-ler, 150px); font-size: var(--tam-ler, 48px); }
.pergunta__meio { position: absolute; left: 40px; right: 40px; top: 190px; height: 250px; display: flex; align-items: center; justify-content: space-between; }
.pergunta__lado { width: 200px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
/* A moldura tem a forma da imagem (ecra.js, ajustarImagens, mede-a quando carrega); até lá não se vê, para não piscar
   a caixa 444×250. Fundo branco: logótipos e esquemas com transparência são feitos para fundo claro. */
.pergunta__imagem { flex: none; width: 444px; display: flex; justify-content: center; }
.pergunta__imagem:not(.pergunta__imagem--pronta) { visibility: hidden; }
/* imagem inteira (contain), nunca cortada: num esquema, sinal ou logótipo a parte cortada pode ser a resposta */
.pergunta__imagem img { width: 444px; height: 250px; object-fit: contain; display: block; border-radius: 20px; box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 24px 50px rgba(0,0,0,.4); background: #fff; }
.pergunta__meio--sem-imagem { top: 282px; height: 168px; justify-content: center; gap: 220px; }
.anel { width: 150px; height: 150px; position: relative; display: flex; align-items: center; justify-content: center; }
.anel svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.anel__arco { stroke: var(--ouro); transition: stroke .3s; }
.anel.bate { animation: q-bate .5s ease-in-out infinite; }
.anel__num { font-family: var(--f-titulo); font-weight: 800; font-size: 56px; font-variant-numeric: tabular-nums; }
.anel__ler { font-family: var(--f-titulo); font-weight: 700; font-size: 18px; color: var(--suave); }
.contador strong { font-family: var(--f-titulo); font-weight: 800; font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; }
.contador span { font-size: 19px; color: var(--suave); }
.contador__barra { width: 150px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); margin-top: 10px; overflow: hidden; }
.contador__barra div { height: 100%; width: 0; background: #fff; border-radius: 99px; transition: width .3s ease; }
.respostas { position: absolute; left: 40px; right: 40px; bottom: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.resposta { height: 104px; border-radius: 18px; background: var(--c); color: var(--t); box-shadow: 0 7px 0 var(--s); display: flex; align-items: center; gap: 20px; padding: 0 26px; }
.resposta__texto { font-family: var(--f-titulo); font-weight: 700; font-size: 30px; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.resposta__letra { margin-left: auto; font-family: var(--f-titulo); font-weight: 800; font-size: 24px; opacity: .55; }
/* Respostas compridas (04/12/2026): letra mais pequena e até 3 linhas, sem mudar a altura do mosaico. */
.respostas--medias .resposta__texto { font-size: 25px; -webkit-line-clamp: 3; }
.respostas--longas .resposta__texto { font-size: 21px; line-height: 1.18; -webkit-line-clamp: 3; }
.resposta--espera { visibility: hidden; }
.resposta--entra { visibility: visible; animation: q-sobe .5s cubic-bezier(.34,1.4,.64,1) both; }
.cortina { position: absolute; inset: 0; background: rgba(12,32,54,.55); z-index: 5; }
.cortina__cartao { position: absolute; left: 50%; top: 50%; padding: 26px 56px; border-radius: 22px; background: #fff; color: var(--tinta); text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.45); animation: q-banner .5s var(--mola) both; }
.cortina__cartao strong { display: block; font-family: var(--f-titulo); font-weight: 800; font-size: 64px; line-height: 1; }
.cortina__cartao span { display: block; font-size: 20px; margin-top: 8px; color: var(--cinza-2); }

.pergunta__titulo { transition: top .6s var(--suavizar), font-size .6s var(--suavizar); }
.pergunta__ler { position: absolute; left: 0; right: 0; top: 330px; display: flex; flex-direction: column; align-items: center; gap: 16px; animation: q-zoom .5s .3s var(--suavizar) both; }
.aviso-ecra { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 9; padding: 14px 24px; border-radius: 14px; background: #fff; color: var(--tinta); font-weight: 700; font-size: 20px; white-space: nowrap; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.sem-cursor, .sem-cursor * { cursor: none !important; }
.largo { width: 100%; }

/* Revelação */
.revela__titulo { position: absolute; left: 40px; right: 40px; top: var(--topo, 84px); margin: 0; font-family: var(--f-titulo); font-weight: 700; font-size: var(--tam, 30px); line-height: 1.2; overflow-wrap: anywhere; }
.grafico { position: absolute; left: 40px; top: 160px; width: 700px; bottom: 40px; display: flex; flex-direction: column; }
.grafico__barras { flex: 1; display: grid; gap: 22px; align-items: end; padding: 0 10px; border-bottom: 2px solid rgba(255,255,255,.18); }
.grafico__col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.grafico__n { font-family: var(--f-titulo); font-weight: 800; font-size: 40px; animation: q-sobe .5s ease both; }
.grafico__barra { width: 100%; border-radius: 14px 14px 0 0; background: var(--c); position: relative; overflow: hidden; transform-origin: bottom; animation: q-barra .8s var(--suavizar) both; }
.grafico__barra .brilho { position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0)); animation: q-brilho 1.1s 1s ease-out both; }
.grafico__rotulos { display: grid; gap: 22px; padding: 14px 10px 0; }
.grafico__rotulo { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.grafico__rotulo .quad { width: 36px; height: 36px; border-radius: 10px; background: var(--c); color: var(--t); display: flex; align-items: center; justify-content: center; flex: none; }
.grafico__rotulo .txt { font-family: var(--f-titulo); font-weight: 700; font-size: 17px; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; hyphens: auto; }
/* Nomes compridos por baixo das barras: a forma por cima e o texto com a largura toda da coluna, até 4 linhas. */
.grafico--longo .grafico__rotulo { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.grafico--longo .grafico__rotulo .quad { width: 30px; height: 30px; border-radius: 8px; }
.grafico--longo .grafico__rotulo .txt { font-size: 15px; line-height: 1.17; -webkit-line-clamp: 5; }
.grafico--longo .grafico__rotulo { position: relative; }
/* (as barras e os nomes têm o mesmo espaço entre colunas, para ficarem alinhados) */
.grafico--longo .grafico__barras, .grafico--longo .grafico__rotulos { gap: 12px; }
.grafico--muito-longo .grafico__rotulo .txt { font-size: 14px; line-height: 1.2; }
.grafico--longo .grafico__rotulo .visto { position: absolute; top: 0; left: calc(50% + 21px); }
.esbatido { opacity: .38; }
.visto { width: 30px; height: 30px; border-radius: 50%; background: #34B89A; display: flex; align-items: center; justify-content: center; flex: none; animation: q-carimbo .55s .9s var(--mola) both; }
.painel { position: absolute; right: 40px; top: 160px; width: 440px; bottom: 40px; display: flex; flex-direction: column; gap: 14px; animation: q-sobe .6s .5s var(--suavizar) both; }
.painel__cartao { border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); padding: 20px 22px; display: flex; gap: 18px; align-items: center; }
.painel__nota { flex: 1; border-radius: 20px; background: #fff; color: var(--tinta); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.painel__nota p { margin: 0; font-size: 20px; line-height: 1.4; }
.painel__nota img { border-radius: 12px; width: 100%; flex: 1; min-height: 0; object-fit: contain; }
/* a imagem da pergunta na revelação (quando não há explicação): o maior tamanho que cabe, com a moldura dela */
.painel__imagem { flex: 1; min-height: 0; position: relative; }
.painel__imagem img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; display: block; border-radius: 16px; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 20px 40px rgba(0,0,0,.35); }
.porque { display: flex; align-items: center; gap: 8px; font-family: var(--f-titulo); font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--azul); }
.pct { position: relative; width: 112px; height: 112px; flex: none; }
.pct svg { transform: rotate(-90deg); }
.pct strong { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-titulo); font-weight: 800; font-size: 25px; letter-spacing: -0.02em; }
.pct strong small { font-size: 15px; margin-left: 1px; margin-top: 4px; opacity: .8; }
.pct circle:last-child { transition: stroke-dashoffset 1.2s var(--suavizar); }

/* Classificação */
.class__titulo { position: absolute; left: 0; right: 0; top: 80px; margin: 0; text-align: center; font-family: var(--f-titulo); font-weight: 800; font-size: 46px; letter-spacing: -0.02em; animation: q-desce .5s ease both; }
.class__lista { position: absolute; left: 170px; width: 760px; top: 168px; height: 398px; overflow: hidden; }
.linha { position: absolute; left: 0; right: 0; height: 70px; border-radius: 16px; background: rgba(255,255,255,.09); color: #fff; display: flex; align-items: center; gap: 16px; padding: 0 20px 0 14px; transition: top .85s cubic-bezier(.65,0,.35,1), background-color .4s, color .4s; }
.linha--lider { background: #fff; color: var(--tinta); }
.linha__lugar { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.75); color: var(--tinta); display: flex; align-items: center; justify-content: center; font-family: var(--f-titulo); font-weight: 800; font-size: 22px; flex: none; }
.lugar-1 { background: var(--ouro); } .lugar-2 { background: var(--prata); } .lugar-3 { background: var(--bronze); }
.linha .avatar { width: 48px; height: 48px; }
.linha__nome { font-family: var(--f-titulo); font-weight: 700; font-size: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha__fim { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.linha__marcas, .linha__extra { display: flex; align-items: center; gap: 10px; }
.linha__pontos { width: 130px; text-align: right; font-family: var(--f-titulo); font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums; }
.linha__ganho { font-family: var(--f-titulo); font-weight: 800; font-size: 17px; padding: 4px 10px; border-radius: 10px; background: rgba(52,184,154,.2); color: #7fe0c6; animation: q-pop .45s var(--mola) both; }
.linha--lider .linha__ganho { background: #e3f6f0; color: var(--verde-ok-2); }
.linha__seta { display: flex; align-items: center; gap: 2px; font-family: var(--f-titulo); font-weight: 700; font-size: 16px; animation: q-pop .45s var(--mola) both; }
.linha__seta--sobe { color: #7fe0c6; } .linha--lider .linha__seta--sobe { color: var(--verde-ok-2); }
.linha__seta--desce { color: #ff9c9c; } .linha__seta--desce svg { transform: rotate(180deg); }
.linha__seq { display: flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(242,179,61,.18); color: var(--ouro); font-weight: 700; font-size: 15px; white-space: nowrap; animation: q-pop .45s var(--mola) both; }
.linha--lider .linha__seq { color: #8a5a00; }
.lado { position: absolute; right: 40px; top: 168px; width: 280px; display: flex; flex-direction: column; gap: 14px; }
.lado__cartao { border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); padding: 18px; display: flex; flex-direction: column; gap: 6px; animation: q-sobe .5s .3s ease both; }
.lado__cartao .rotulo-ouro { font-size: 13px; letter-spacing: .12em; }
.lado__nome { font-family: var(--f-titulo); font-weight: 700; font-size: 24px; }
.canto-baixo { position: absolute; right: 40px; bottom: 40px; width: 280px; }
.canto-baixo .botao, .painel .botao--grande { font-size: 20px; white-space: nowrap; padding: 0 18px; }
.nota-baixo { position: absolute; left: 170px; bottom: 48px; font-size: 17px; color: var(--suave-2); }

/* Pódio */
.podio__luz { position: absolute; left: 340px; top: -140px; width: 600px; height: 700px; background: radial-gradient(ellipse at 50% 30%, rgba(242,179,61,.28), rgba(242,179,61,0) 65%); animation: q-luz 1s 2.6s ease both; }
.podio__titulo { position: absolute; left: 0; right: 0; top: 84px; text-align: center; animation: q-sobe .6s ease both; }
.podio__titulo h1 { margin: 6px 0 0; font-family: var(--f-titulo); font-weight: 800; font-size: 50px; letter-spacing: -0.02em; }
.podio__degraus { position: absolute; left: 330px; width: 620px; bottom: 112px; height: 440px; display: flex; align-items: flex-end; justify-content: center; gap: 14px; border-bottom: 2px solid rgba(255,255,255,.2); }
.degrau { width: 196px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.degrau--1 { width: 212px; }
.degrau__quem { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; animation: q-pop .6s var(--mola) both; }
.degrau__quem .avatar { width: 68px; height: 68px; font-size: 30px; border: 4px solid var(--borda-m, #fff); }
.degrau--1 .avatar { width: 84px; height: 84px; font-size: 36px; border-width: 5px; }
.degrau__nome { font-family: var(--f-titulo); font-weight: 700; font-size: 24px; max-width: 210px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.degrau--1 .degrau__nome { font-weight: 800; font-size: 30px; }
.degrau__pontos { font-size: 18px; color: var(--suave); font-variant-numeric: tabular-nums; }
.degrau--1 .degrau__pontos { color: var(--ouro); font-weight: 700; }
.degrau__bloco { width: 100%; border-radius: 16px 16px 0 0; color: var(--tinta); display: flex; justify-content: center; padding-top: 14px; font-family: var(--f-titulo); font-weight: 800; transform-origin: bottom; animation: q-degrau .9s cubic-bezier(.34,1.3,.64,1) both; }
.degrau--1 .degrau__bloco { height: 210px; font-size: 64px; background: linear-gradient(#f7c860, #d99a22); }
.degrau--2 .degrau__bloco { height: 150px; font-size: 52px; background: linear-gradient(#d6dfe8, #a9b7c6); }
.degrau--3 .degrau__bloco { height: 104px; font-size: 44px; background: linear-gradient(#e6ad7c, #b9784a); }
/* Com a faixa da equipa vencedora por baixo do título, os degraus descem para a coroa não a tapar. */
.podio__degraus--baixos .degrau--1 .degrau__bloco { height: 128px; font-size: 54px; }
.podio__degraus--baixos .degrau--2 .degrau__bloco { height: 90px; font-size: 44px; }
.podio__degraus--baixos .degrau--3 .degrau__bloco { height: 62px; font-size: 36px; padding-top: 8px; }
.coroa { position: absolute; top: -34px; animation: q-coroa .6s var(--mola) both; }
.podio__baixo { position: absolute; left: 40px; right: 40px; bottom: 32px; display: flex; align-items: center; justify-content: space-between; animation: q-sobe .6s 3.8s ease both; }
.guardado { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(52,184,154,.16); color: #9fe8d4; font-weight: 600; font-size: 17px; }
.confetes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confete { position: absolute; top: 0; border-radius: 2px; animation: q-confete linear infinite both; }

/* ---------- Telemóvel do formando ---------- */
.tel { min-height: 100vh; min-height: 100dvh; position: relative; overflow: hidden; }
.tel__caixa { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; display: flex; flex-direction: column; padding: 18px 16px 24px; }
.tel__topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; }
.tel__pilula { font-family: var(--f-titulo); font-weight: 700; font-size: 15px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); }
.tel__eu { display: flex; align-items: center; gap: 8px; font-family: var(--f-titulo); font-weight: 700; font-size: 15px; }
.tel__eu .avatar { width: 34px; height: 34px; font-size: 15px; }
.tel__centro { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 20px 4px; }
.tel h1 { margin: 0; font-family: var(--f-titulo); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; line-height: 1.15; }
.tel p { margin: 0; font-size: 18px; color: var(--suave); }
.flutua { position: absolute; opacity: .14; animation: q-deriva 11s ease-in-out infinite; pointer-events: none; }

.entrar__marca { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 40px 0 28px; }
.entrar__marca img { height: 40px; width: auto; }
.entrar__marca span { font-family: var(--f-titulo); font-weight: 800; font-size: 30px; }
.cartao-branco { background: #fff; color: var(--tinta); border-radius: 24px; padding: 24px 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.35); animation: q-sobe .6s var(--suavizar) both; }
.cartao-branco h1 { font-size: 26px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label, .campo .rotulo { font-weight: 700; font-size: 16px; }
.campo .ajuda { font-size: 15px; color: var(--cinza); }
.campo .erro { font-size: 15px; color: #a12f2f; font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.entrada { height: 54px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--borda); background: var(--nevoa); color: var(--tinta); width: 100%; font-size: 20px; font-weight: 600; }
.entrada:focus { outline: 3px solid var(--ouro); outline-offset: 2px; border-color: var(--azul); }
.entrada--pin { height: 62px; text-align: center; font-family: var(--f-titulo); font-weight: 800; font-size: 30px; letter-spacing: .14em; }
.entrada[aria-invalid="true"] { border-color: #C93C3C; background: #fff6f6; }
.resumo-erros { background: #fff1f1; border: 1.5px solid #e8b4b4; color: #7d2222; border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.resumo-erros strong { display: block; margin-bottom: 4px; }
.resumo-erros ul { margin: 0; padding-left: 18px; }

.avatar-grande { position: relative; width: 150px; height: 150px; }
.avatar-grande .avatar { position: absolute; inset: 0; width: auto; height: auto; font-size: 66px; box-shadow: 0 0 0 6px var(--noite), 0 0 0 9px rgba(255,255,255,.25); animation: q-pop .6s var(--mola) both; }
.avatar-grande .onda { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--c); animation: q-anel 2.4s ease-out infinite; }
.avatar-grande .avatar--boneco { background: radial-gradient(circle at 50% 60%, rgba(255,255,255,.16), rgba(255,255,255,.04) 70%); }
/* Estúdio do avatar (sala de espera no telemóvel) */
.tel__centro--sala { gap: 14px; padding-top: 10px; }
.estudio { width: 100%; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.estudio__abas { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.22); overflow-x: auto; }
.estudio__aba { flex: 1 0 auto; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--suave); font-family: var(--f-titulo); font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s; }
.estudio__aba[aria-selected="true"] { background: #fff; color: var(--tinta); }
.estudio__aba:focus-visible, .estudio__op:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }
.estudio__grelha { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.estudio__op { aspect-ratio: 1; min-height: 44px; padding: 4px; border-radius: 16px; border: 3px solid transparent; background: rgba(255,255,255,.08); cursor: pointer; transition: transform .15s, background-color .2s; }
.estudio__op:active { transform: scale(.94); }
.estudio__op[aria-checked="true"] { border-color: var(--ouro); background: rgba(242,179,61,.16); }
.estudio__op .boneco { width: 100%; height: 100%; }
.estudio__acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#selfie[aria-pressed="true"] { background: var(--ouro); border-color: var(--ouro); }
.estudio__foto { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 4px 2px; }
.estudio__foto[hidden], .estudio__grelha[hidden] { display: none; }
.estudio__nota { font-size: 15px; line-height: 1.45; text-align: left; color: var(--suave); }
.estudio__nota strong { display: flex; align-items: center; gap: 6px; color: #fff; font-family: var(--f-titulo); font-size: 16px; margin-bottom: 4px; }
.estudio__nota ul { margin: 0; padding-left: 20px; }
.estudio__nota li + li { margin-top: 2px; }
.estudio__camara { position: relative; cursor: pointer; min-height: 52px; font-size: 17px; }
.estudio__camara:focus-within { outline: 3px solid #fff; outline-offset: 3px; }
/* Acertar a selfie: a bolinha reproduz a geometria de Q.boneco com foto (aro r37 e foto r33 centrados em 50,56) */
.acerto { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.acerto__bola { position: relative; width: min(100%, 250px); aspect-ratio: 1; align-self: center; }
.acerto__bola::before { content: ""; position: absolute; left: 13%; top: 19%; width: 74%; height: 74%; border-radius: 50%; background: var(--c); }
.acerto__bola canvas { position: absolute; left: 17%; top: 23%; width: 66%; height: 66%; border-radius: 50%; touch-action: none; cursor: grab; }
.acerto__bola canvas:active { cursor: grabbing; }
.acerto__bola canvas:focus-visible { outline: 3px solid var(--ouro); outline-offset: 6px; }
.acerto__chapeu { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tel .acerto__dica { font-size: 15px; line-height: 1.4; color: var(--suave); text-align: center; }
.acerto__zoom { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.acerto__zoom input { flex: 1; min-height: 44px; accent-color: var(--ouro); }
.estudio__outra { position: relative; cursor: pointer; white-space: nowrap; }
.estudio__outra:focus-within { outline: 3px solid #fff; outline-offset: 3px; }
#acerto-espelhar[aria-pressed="true"] { background: var(--ouro); border-color: var(--ouro); }
.acerto__cancelar { align-self: center; min-height: 44px; color: #9cc8ec; }
.tel .estudio__estado { font-size: 15px; min-height: 1.4em; color: #9fe8d4; }
.tel .estudio__estado:empty { display: none; }
/* Menu de um formando com selfie (ecrã projetado) */
.menu-jogador { border: 0; border-radius: 22px; padding: 26px 28px; background: #12304f; color: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.5); min-width: 340px; }
.menu-jogador::backdrop { background: rgba(4,14,26,.6); }
.menu-jogador__quem { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.menu-jogador__quem .avatar { width: 72px; height: 72px; }
.menu-jogador h2 { margin: 0; font-family: var(--f-titulo); font-size: 26px; }
.menu-jogador__botoes { display: flex; flex-direction: column; gap: 10px; }
.menu-jogador .botao { min-height: 50px; font-size: 18px; }
.pontos-espera { display: flex; gap: 8px; }
.pontos-espera span { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: q-ponto 1.2s ease-in-out infinite; }
.pontos-espera span:nth-child(2) { animation-delay: .15s; } .pontos-espera span:nth-child(3) { animation-delay: .3s; }

.tel__tempo { height: 6px; background: rgba(255,255,255,.1); margin: 10px -16px 0; }
.tel__tempo div { height: 100%; background: var(--ouro); transform-origin: left; }
.tel__tempo.fim div { background: #ff8f8f; }
.tel .tel__pergunta { margin: 18px 4px 14px; font-family: var(--f-titulo); font-weight: 700; font-size: 22px; line-height: 1.25; color: #fff; }
.tel__respostas { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(130px, 1fr); gap: 12px; }
.tel__botao { border: 0; border-radius: 22px; background: var(--c); color: var(--t); box-shadow: 0 6px 0 var(--s); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px;
  animation: q-sobe .45s cubic-bezier(.34,1.4,.64,1) backwards; transition: transform .25s var(--mola), opacity .25s, box-shadow .1s; touch-action: manipulation; }
.tel__botao:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--s); }
.tel__botao span { font-family: var(--f-titulo); font-weight: 700; font-size: 19px; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.tel__botao.escolhido { transform: scale(1.04); }
.tel__botao.outro { opacity: .3; transform: scale(.92); }
.tel .tel__dica { text-align: center; font-size: 15px; color: var(--suave-2); margin-top: 14px; }
/* 3-2-1 antes das respostas: o anel esvazia de forma contínua (requestAnimationFrame) e o número entra suave */
.prepara-anel { width: 168px; height: 168px; position: relative; display: flex; align-items: center; justify-content: center; animation: q-zoom .35s var(--mola) both; }
.prepara-anel svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.prepara-anel .anel__arco { stroke: var(--ouro); }
.prepara { font-family: var(--f-titulo); font-weight: 800; font-size: 84px; line-height: 1; will-change: transform, opacity; }
.prepara.entra { animation: q-tic .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes q-tic { from { transform: scale(1.5); opacity: 0 } to { transform: none; opacity: 1 } }
.enviada { width: 120px; height: 120px; border-radius: 28px; background: var(--c); color: var(--t); box-shadow: 0 8px 0 var(--s); display: flex; align-items: center; justify-content: center; animation: q-zoom .35s var(--mola) both; }
.enviada--nuvem { --c: #2c5f9e; --t: #fff; --s: #1b3f6c; }
.roda { animation: q-gira 1s linear infinite; }
/* Ordenar no telemóvel (04/12/2026): cada item tocado ganha o número do lugar */
.tel__respostas--ordem { grid-auto-rows: minmax(104px, 1fr); }
.tel__botao--ordem { position: relative; }
.tel__botao--ordem.com-lugar { box-shadow: 0 6px 0 var(--s), inset 0 0 0 4px #fff; }
.tel__lugar { position: absolute; top: 10px; left: 10px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.18); border: 2px dashed rgba(255,255,255,.55); font-family: var(--f-titulo); font-weight: 800; font-size: 22px !important; color: #fff; }
.com-lugar .tel__lugar { background: #fff; border: 0; color: var(--tinta); box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.tel__acoes-ordem { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 14px; }
.tel__acoes-ordem .botao { min-height: 60px; white-space: nowrap; }
.tel__acoes-ordem .botao--grande { font-size: 20px; padding: 0 18px; }
.tel__acoes-ordem .botao[disabled] { opacity: .45; }
/* Textos compridos (04/12/2026): pergunta mais pequena e respostas em lista, a toda a largura, com a forma (ou o
   número do lugar, no ordenar) à esquerda e o texto alinhado à esquerda. */
.tel .tel__pergunta--media { font-size: 19px; }
.tel .tel__pergunta--longa { font-size: 17px; line-height: 1.3; margin-top: 14px; }
.tel__respostas--lista { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(64px, 1fr); gap: 10px; }
.tel__respostas--lista .tel__botao { flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; padding: 10px 16px; border-radius: 18px; }
.tel__respostas--lista .tel__botao > svg { flex: none; width: 30px; height: 30px; }
.tel__respostas--lista .tel__botao span { font-size: 18px; line-height: 1.22; }
.tel__respostas--longas .tel__botao span { font-size: 16px; line-height: 1.25; }
.tel__respostas--lista .tel__lugar { position: static; flex: none; width: 36px; height: 36px; font-size: 19px !important; }
/* Ecrãs baixos (iPhone SE e afins): com pergunta e respostas compridas, tudo tem de caber sem deslizar. */
@media (max-height: 700px) {
  .tel .tel__pergunta--media { font-size: 18px; margin: 12px 4px 10px; }
  .tel .tel__pergunta--longa { font-size: 16px; margin: 10px 4px 10px; }
  .tel__respostas--lista { gap: 8px; grid-auto-rows: minmax(56px, 1fr); }
  .tel__respostas--lista .tel__botao { padding: 8px 14px; gap: 12px; }
  .tel__respostas--lista .tel__botao > svg { width: 26px; height: 26px; }
  .tel__respostas--longas .tel__botao span { font-size: 15px; }
  .tel .tel__dica { margin-top: 10px; }
}
.tel__respostas--lista .tel__botao.escolhido { transform: scale(1.02); }
.tel__respostas--lista .tel__botao.outro { transform: scale(.97); }
.ordem-mini { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.ordem-mini li { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--c); color: var(--t); box-shadow: 0 4px 0 var(--s);
  font-family: var(--f-titulo); font-weight: 700; font-size: 18px; line-height: 1.2; }
.ordem-mini b { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--tinta); display: flex; align-items: center; justify-content: center; }
/* Nuvem de palavras no telemóvel */
.tel__nuvem { flex: 1; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.tel__nuvem .entrada { font-size: 24px; text-align: center; }
.tel__conta { align-self: flex-end; font-size: 14px; color: var(--suave-2); }
.por-pergunta .opina { background: #8fb4e8; }

.tel--certo { background: var(--verde-ok); }
.tel--errado { background: var(--vermelho); }
.tel--certo .tel__pilula, .tel--errado .tel__pilula { background: rgba(255,255,255,.16); }
.tel--errado::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1.5px, transparent 1.5px); background-size: 22px 22px; }
.raios { position: absolute; left: 50%; top: 30%; width: 760px; height: 760px; margin: -380px 0 0 -380px; opacity: .1; animation: q-gira 24s linear infinite; pointer-events: none; }
.selo { width: 136px; height: 136px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 40px rgba(0,0,0,.25); animation: q-pop .6s var(--mola) both; }
.selo--errado { animation: q-pop .45s var(--mola) both, q-abana .5s .5s ease both; }
.selo .traco { stroke-dasharray: 40; animation: q-desenha .4s .45s ease-out both; }
.ganho { padding: 10px 22px; border-radius: 16px; background: #fff; color: var(--tinta); font-family: var(--f-titulo); font-weight: 800; font-size: 32px; animation: q-sobe .5s .5s ease both; }
.ganho small { font-size: 17px; font-weight: 600; color: var(--verde-ok-2); }
.etiqueta-escura { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(0,0,0,.18); font-weight: 700; font-size: 17px; animation: q-sobe .5s .65s ease both; }
.posicao { width: 100%; border-radius: 20px; background: rgba(0,0,0,.2); padding: 18px 20px; display: flex; align-items: center; gap: 16px; text-align: left; animation: q-sobe .5s .8s ease both; }
.posicao__n { width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.9); color: var(--tinta); display: flex; align-items: center; justify-content: center; font-family: var(--f-titulo); font-weight: 800; font-size: 24px; flex: none; }
.posicao__n.lugar-1 { background: var(--ouro); } .posicao__n.lugar-2 { background: var(--prata); } .posicao__n.lugar-3 { background: var(--bronze); }
.posicao strong { display: block; font-family: var(--f-titulo); font-size: 20px; }
.posicao span { font-size: 16px; opacity: .9; }
.certa-era { display: flex; align-items: center; gap: 12px; padding: 12px 22px 12px 12px; border-radius: 16px; background: var(--c); color: var(--t); box-shadow: 0 5px 0 var(--s); font-family: var(--f-titulo); font-weight: 800; font-size: 24px; }
.certa-era .quad { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex: none; }
.certa-era--longa { font-size: 19px; font-weight: 700; line-height: 1.25; text-align: left; hyphens: auto; }

.tel__rede { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; padding: 10px 16px; border-radius: 999px; background: #fff; color: #7d2222; font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.35); white-space: nowrap; }
.revisao { width: 100%; text-align: left; }
.revisao summary { width: 100%; font-size: 17px; padding: 10px 16px; list-style: none; }
.revisao summary::-webkit-details-marker { display: none; }
.revisao ol { list-style: none; margin: 12px 0 0; padding: 0; font-size: 16px; }

.medalha { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; animation: q-medalha 1s cubic-bezier(.34,1.4,.64,1) both; margin-top: -18px; }
.medalha__disco { margin-top: -24px; width: 124px; height: 124px; border-radius: 50%; background: var(--ouro); border: 6px solid #f7d488; box-shadow: 0 0 0 4px var(--ouro-s), 0 20px 40px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; color: var(--tinta); font-family: var(--f-titulo); font-weight: 800; font-size: 46px; }
.medalha__disco.lugar-2 { background: var(--prata); border-color: #e6ecf2; box-shadow: 0 0 0 4px #8d9aa8, 0 20px 40px rgba(0,0,0,.35); }
.medalha__disco.lugar-3 { background: var(--bronze); border-color: #efc29d; box-shadow: 0 0 0 4px #9b6339, 0 20px 40px rgba(0,0,0,.35); }
.medalha__disco.sem { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); box-shadow: none; color: #fff; }
.estatisticas { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: left; }
.estatisticas div { border-radius: 16px; background: rgba(255,255,255,.08); padding: 14px 16px; }
.estatisticas strong { display: block; font-family: var(--f-titulo); font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.estatisticas span { font-size: 15px; color: var(--suave); }
.por-pergunta { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(28px, 1fr)); gap: 6px; }
.por-pergunta span { height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--f-titulo); font-weight: 700; font-size: 13px; color: var(--tinta); }
.por-pergunta .ok { background: #34B89A; } .por-pergunta .nao { background: #ff8f8f; } .por-pergunta .sem { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Gestão (formador) ---------- */
.gestao { min-height: 100vh; background: var(--nevoa); }
.cabecalho { background: #fff; border-bottom: 1px solid var(--linha); }
.cabecalho__dentro { max-width: 1240px; margin: 0 auto; padding: 0 24px; min-height: 72px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: 4px; text-decoration: none; }
.marca img { height: 36px; width: auto; }
.marca span { font-family: var(--f-titulo); font-weight: 800; font-size: 20px; color: var(--azul); }
.menu { display: flex; gap: 4px; flex-wrap: wrap; }
.menu a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 14px; border-radius: 10px; color: var(--cinza-2); }
.menu a[aria-current="page"] { background: var(--azul-claro); color: var(--azul); font-weight: 700; }
.conta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.conta .inicial { width: 38px; height: 38px; border-radius: 50%; background: var(--azul); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-titulo); font-weight: 700; }
.conta form { margin: 0; }
.ligacao-botao { background: none; border: 0; padding: 8px; color: var(--azul); font-weight: 600; text-decoration: underline; }
.principal { max-width: 1240px; margin: 0 auto; padding: 28px 24px 56px; display: flex; flex-direction: column; gap: 24px; }
.titulo-pagina { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.titulo-pagina h1 { margin: 0; font-family: var(--f-titulo); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; line-height: 1.15; }
.titulo-pagina p { margin: 4px 0 0; font-size: 17px; color: var(--cinza); }
.titulo-pagina__acoes { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.aviso { border-radius: 14px; padding: 12px 16px; background: #e3f6f0; color: #0b4d3f; font-weight: 600; }
.aviso--erro { background: #fff1f1; color: #7d2222; }
.aviso--atencao { display: flex; align-items: flex-start; gap: 14px; margin: 14px 24px 0; background: #fff6dd; color: #5c4300; border: 1px solid #f0d58a; }
.aviso--atencao p { flex: 1; margin: 0; line-height: 1.45; }
.aviso--atencao button { flex: none; border: 1px solid #d9b85a; background: #fff; color: #5c4300; font: inherit; font-weight: 700; border-radius: 10px; padding: 6px 12px; min-height: 36px; cursor: pointer; }
.aviso--atencao button:hover { background: #fff1c4; }
.faixa { border-radius: 16px; background: var(--noite); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; animation: q-sobe .5s ease both; }
.faixa__luz { width: 12px; height: 12px; border-radius: 50%; background: #34B89A; animation: q-pisca 1.4s ease-in-out infinite; }
.faixa span { color: var(--suave); }
.faixa__acoes { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.grelha-quizzes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cartao-quiz { background: #fff; border-radius: 18px; overflow: visible; box-shadow: 0 1px 2px rgba(15,23,32,.06), 0 8px 24px rgba(15,23,32,.06); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; animation: q-sobe .5s var(--suavizar) both; }
.cartao-quiz:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(15,23,32,.06), 0 18px 40px rgba(15,23,32,.12); }
.cartao-quiz__capa { height: 112px; border-radius: 18px 18px 0 0; position: relative; overflow: hidden; background: var(--capa); }
.cartao-quiz__capa svg { position: absolute; fill: #fff; }
.cartao-quiz__capa .etq { position: absolute; left: 14px; top: 14px; font-weight: 700; font-size: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--tinta); }
.cartao-quiz__corpo { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cartao-quiz__corpo h2 { margin: 0; font-family: var(--f-titulo); font-weight: 700; font-size: 19px; line-height: 1.25; }
.cartao-quiz__meta { font-size: 15px; color: var(--cinza); }
.cartao-quiz__acoes { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; position: relative; }
.cartao-quiz__acoes form { margin: 0; display: flex; flex: 1; }
.cartao-quiz__acoes .botao { flex: 1; min-height: 42px; }
.mais { position: relative; }
.mais summary { list-style: none; width: 42px; height: 42px; border-radius: 11px; border: 1.5px solid var(--borda); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mais summary::-webkit-details-marker { display: none; }
.mais__menu { position: absolute; right: 0; bottom: 48px; z-index: 5; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(15,23,32,.18); padding: 6px; min-width: 190px; display: flex; flex-direction: column; }
.mais__menu form { margin: 0; }
.mais__menu button { width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.mais__menu button:hover { background: var(--nevoa); }
.mais__menu .perigo { color: #962b2b; }
.novo { border: 2px dashed var(--azul-2); border-radius: 18px; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--azul); background: transparent; font-family: var(--f-titulo); font-weight: 700; font-size: 17px; width: 100%; }
.novo:hover { background: #f7fbfe; }
.vazio { text-align: center; padding: 60px 20px; background: #fff; border-radius: 18px; color: var(--cinza); }
.caixa { background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(15,23,32,.06), 0 8px 24px rgba(15,23,32,.05); padding: 18px; }
.caixa h2 { margin: 0 0 10px; font-family: var(--f-titulo); font-weight: 700; font-size: 19px; }
.tabela-rolar { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: 16px; }
.tabela th { text-align: left; color: var(--cinza); font-size: 14px; font-weight: 700; padding: 8px 10px; }
.tabela td { padding: 10px; border-top: 1px solid #eef1f4; }
.tabela tr:hover td { background: #f7fbfe; }
.tabela .dir { text-align: right; }
.lugar-mini { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; background: #eef1f4; align-items: center; justify-content: center; font-family: var(--f-titulo); font-weight: 800; font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.kpi { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(15,23,32,.06), 0 8px 24px rgba(15,23,32,.05); display: flex; flex-direction: column; gap: 4px; animation: q-sobe .45s ease both; }
.kpi span { font-size: 15px; color: var(--cinza); font-weight: 600; }
.kpi strong { font-family: var(--f-titulo); font-weight: 800; font-size: 30px; }
.kpi small { font-size: 15px; color: var(--cinza); }
.duas-colunas { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.duas-colunas > :first-child { flex: 999 1 560px; min-width: 0; }
.duas-colunas > :last-child { flex: 1 1 360px; }
.barras-h { display: flex; flex-direction: column; gap: 8px; }
.barras-h__linha { display: grid; grid-template-columns: 34px 1fr 52px; align-items: center; gap: 10px; }
.barras-h__linha b { font-family: var(--f-titulo); font-size: 14px; color: var(--cinza-2); }
.barras-h__fundo { height: 16px; border-radius: 6px; background: #eef1f4; overflow: hidden; }
.barras-h__fundo span { display: block; height: 100%; border-radius: 6px; background: var(--azul); transform-origin: left; animation: q-cresce-x .8s var(--suavizar) both; }
.barras-h__fundo span.baixo { background: #C93C3C; }
.barras-h__linha em { font-style: normal; font-family: var(--f-titulo); font-weight: 700; font-size: 14px; text-align: right; }
.resp-mini { display: inline-flex; width: 24px; height: 24px; border-radius: 6px; align-items: center; justify-content: center; font-family: var(--f-titulo); font-weight: 700; font-size: 12px; }
.resp-mini.opina { background: #e3ecf8; color: #1d3f73; }
.resp-mini.ok { background: #d6f3eb; color: #0b4d3f; } .resp-mini.nao { background: #fde0e0; color: #7d2222; } .resp-mini.sem { background: #eef1f4; color: var(--cinza); }

/* Entrada do formador */
.entrada-formador { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.entrada-formador .cartao-branco { width: 100%; max-width: 420px; }
.separador { display: flex; align-items: center; gap: 10px; color: var(--cinza); font-size: 14px; }
.separador::before, .separador::after { content: ''; flex: 1; height: 1px; background: var(--linha); }

/* Editor */
.editor-topo { background: #fff; border-bottom: 1px solid var(--linha); position: sticky; top: 0; z-index: 10; }
.editor-topo__dentro { padding: 10px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.editor-topo input { font-family: var(--f-titulo); font-weight: 700; font-size: 20px; border: 1.5px solid transparent; border-radius: 10px; padding: 6px 10px; min-width: 0; flex: 1 1 260px; max-width: 520px; background: transparent; }
.editor-topo input:hover { border-color: var(--borda); }
.estado-gravar { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--verde-ok-2); }
.estado-gravar.sujo { color: #8a5a00; }
.estado-gravar.erro { color: #a12f2f; }
.editor { padding: 20px 24px 40px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.editor__lista { flex: 1 1 250px; max-width: 300px; display: flex; flex-direction: column; gap: 8px; }
.editor__lista-topo { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 4px; }
.editor__lista-topo b { font-family: var(--f-titulo); font-size: 16px; }
.item-pergunta { text-align: left; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--linha); background: #fff; width: 100%; transition: border-color .15s, background-color .15s; }
.item-pergunta:hover { border-color: #82b9da; }
.item-pergunta[aria-current="true"] { border-color: var(--azul); background: var(--azul-claro); }
.item-pergunta.com-erro { border-color: #C93C3C; background: #fff6f6; }
.item-pergunta .n { flex: 0 0 26px; height: 26px; border-radius: 8px; background: #eef1f4; color: var(--cinza-2); display: flex; align-items: center; justify-content: center; font-family: var(--f-titulo); font-weight: 700; font-size: 13px; }
.item-pergunta[aria-current="true"] .n { background: var(--azul); color: #fff; }
.item-pergunta .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item-pergunta .t b { font-weight: 600; font-size: 15px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item-pergunta .t small { font-size: 13px; color: var(--cinza); }
.acrescentar { font-family: var(--f-titulo); font-weight: 600; font-size: 15px; min-height: 46px; border-radius: 12px; border: 2px dashed var(--azul-2); background: transparent; color: var(--azul); display: flex; align-items: center; justify-content: center; gap: 6px; }
.acrescentar:hover { background: #f7fbfe; }
.editor__centro { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.editor__lado { flex: 1 1 280px; max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.ferramentas { display: flex; gap: 6px; flex-wrap: wrap; }
.ferramentas .botao { min-height: 38px; font-size: 14px; padding: 0 12px; }
.texto-pergunta { font-family: var(--f-titulo); font-weight: 700; font-size: 24px; line-height: 1.3; text-align: center; border-radius: 14px; border: 1.5px solid var(--borda); padding: 14px; resize: vertical; width: 100%; min-height: 96px; }
.zona-imagem { min-height: 120px; border-radius: 14px; border: 2px dashed var(--azul-2); background: #f7fbfe; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--cinza-2); padding: 14px; text-align: center; }
.zona-imagem.arrastar { background: var(--azul-claro); border-color: var(--azul); }
.imagem-pergunta { position: relative; height: 220px; border-radius: 14px; overflow: hidden; background: var(--noite); }
.imagem-pergunta img { width: 100%; height: 100%; object-fit: contain; display: block; }
.imagem-pergunta__acoes { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; }
.imagem-pergunta__acoes button { font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 10px; border: 0; background: rgba(255,255,255,.94); }
.opcoes-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; align-items: start; }
.opcao-editor { display: flex; align-items: center; border-radius: 14px; border: 2px solid var(--linha); background: #fff; overflow: hidden; transition: border-color .2s, background-color .2s; }
.opcao-editor.certa { border-color: var(--verde-ok); background: #eefaf6; }
.opcao-editor__forma { align-self: stretch; width: 52px; background: var(--c); color: var(--t); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: none; }
.opcao-editor__forma b { font-family: var(--f-titulo); font-size: 12px; line-height: 1; }
/* (caixa de uma linha que cresce com o texto: a altura é posta pelo editor.js) */
.opcao-editor__texto { flex: 1; min-width: 0; min-height: 54px; border: 0; background: transparent; padding: 15px 12px; resize: none; overflow: hidden; display: block;
  font-family: var(--f-titulo); font-weight: 600; font-size: 17px; line-height: 1.3; }
.opcao-editor__texto:focus { outline: none; }
.opcao-editor:focus-within { box-shadow: 0 0 0 3px var(--ouro); }
.marcar { flex: 0 0 36px; width: 36px; height: 36px; margin-right: 10px; border-radius: 50%; border: 2px solid var(--borda); background: #fff; color: var(--borda); display: flex; align-items: center; justify-content: center; transition: transform .2s var(--mola), background-color .2s; }
.marcar[aria-pressed="true"] { border-color: var(--verde-ok); background: var(--verde-ok); color: #fff; }
.marcar:active { transform: scale(.88); }
.pilulas { display: grid; gap: 6px; }
.pilulas button { min-height: 40px; border-radius: 10px; border: 1.5px solid var(--borda); background: #fff; font-family: var(--f-titulo); font-weight: 700; font-size: 14px; }
.pilulas button[aria-checked="true"] { border-color: var(--azul); background: var(--azul); color: #fff; }
.area { font-size: 15px; line-height: 1.4; border-radius: 12px; border: 1.5px solid var(--borda); padding: 10px 12px; resize: vertical; width: 100%; }
.mini-ecra { background: var(--noite); color: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mini-ecra__t { font-family: var(--f-titulo); font-weight: 700; font-size: 13px; text-align: center; line-height: 1.3; }
.mini-ecra__op { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.mini-ecra__op span { min-height: 24px; border-radius: 6px; background: var(--c); color: var(--t); font-size: 11px; font-weight: 700; line-height: 1.25; padding: 4px 8px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: break-word; }
.erro-pergunta { border-radius: 12px; padding: 10px 14px; background: #fff1f1; color: #7d2222; font-weight: 600; }
/* Tipos de pergunta no editor (04/12/2026) */
.tipos-p { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.tipo-p { display: flex; align-items: center; gap: 10px; text-align: left; min-height: 56px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--borda); background: #fff; color: var(--cinza-2); }
.tipo-p span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tipo-p b { font-family: var(--f-titulo); font-size: 15px; color: var(--tinta); }
.tipo-p small { font-size: 13px; color: var(--cinza); }
.tipo-p svg { flex: none; color: var(--azul); }
.tipo-p[aria-checked="true"] { border-color: var(--azul); background: var(--azul-claro); box-shadow: inset 0 0 0 1px var(--azul); }
.tipo-p:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }
.opcoes-editor--lista { grid-template-columns: 1fr; }
.opcao-editor.sem-certa .opcao-editor__texto { padding-right: 16px; }
.opcao-editor__lugar { background: var(--noite); color: #fff; }
.opcao-editor__lugar b { font-size: 16px; }
.nota-tipo { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--azul-claro); border: 1.5px solid var(--azul-2); font-size: 15px; line-height: 1.5; }
.nota-tipo svg { flex: none; width: 28px; height: 28px; color: var(--azul); }
.mini-ecra__op .mini-ecra__nuvem { grid-column: 1 / -1; justify-content: center; text-align: center; background: rgba(255,255,255,.12); color: #fff; }

/* Comando no telemóvel */
.comando { min-height: 100vh; min-height: 100dvh; background: var(--noite-2); color: #fff; }
.comando__caixa { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding: 20px 18px; display: flex; flex-direction: column; gap: 16px; }
.ligado { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #9fe8d4; padding: 6px 10px; border-radius: 999px; background: rgba(52,184,154,.12); }
.ligado i { width: 9px; height: 9px; border-radius: 50%; background: #34B89A; animation: q-pisca 1.8s ease-in-out infinite; }
.ligado.off { color: #ffb3b3; background: rgba(201,60,60,.16); } .ligado.off i { background: #C93C3C; }
.progresso { display: grid; gap: 4px; }
.progresso span { height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); }
.progresso .feito { background: #34B89A; } .progresso .agora { background: var(--ouro); }
.comando__cartao { border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.comando__certa { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(36,112,194,.25); font-weight: 700; }
.comando__certa .quad { width: 28px; height: 28px; border-radius: 8px; background: var(--c); color: var(--t); display: flex; align-items: center; justify-content: center; flex: none; }
.comando__grande { min-height: 120px; border-radius: 24px; font-size: 26px; }
.comando__grelha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.comando__grelha .botao { min-height: 60px; flex-direction: column; gap: 4px; font-size: 14px; }

/* ---------- 04/12/2026: avatar vivo, entrada com estilo, tensão, revelação com suspense, chama, câmara ---------- */
@keyframes q-piscar { 0%, 93%, 100% { transform: scaleY(1) } 96% { transform: scaleY(.08) } }
@keyframes q-respira { 0%, 100% { transform: translateY(0) scale(1) } 50% { transform: translateY(-3%) scale(1.035) } }
@keyframes q-feliz { 0% { transform: none } 30% { transform: translateY(-38%) rotate(-10deg) } 55% { transform: translateY(0) scale(1.06, .86) } 75% { transform: translateY(-12%) rotate(6deg) } 100% { transform: none } }
@keyframes q-triste { 0%, 100% { transform: none } 15%, 45%, 75% { transform: translateX(-12%) rotate(-7deg) } 30%, 60% { transform: translateX(12%) rotate(7deg) } }
@keyframes q-cai { 0% { transform: translateY(-170px) scale(.5); opacity: 0 } 55% { transform: translateY(8px) scale(1.06, .9); opacity: 1 } 78% { transform: translateY(-7px) } 100% { transform: none; opacity: 1 } }
@keyframes q-tensao { from { box-shadow: inset 0 0 0 0 rgba(255,90,90,0) } to { box-shadow: inset 0 0 0 10px rgba(255,90,90,.85), inset 0 0 70px rgba(255,60,60,.35) } }
@keyframes q-chama { 0%, 100% { transform: scale(1) rotate(0) } 33% { transform: scale(1.08, 1.18) rotate(-5deg) } 66% { transform: scale(.95, 1.06) rotate(4deg) } }

/* Avatar vivo: pisca os olhos e respira na sala; reage à pergunta (salta se acertou, abana se falhou) */
.boneco__olhos { transform-box: view-box; transform-origin: 50px 53px; }
.avatar-grande .boneco__olhos, .chip .boneco__olhos, .linha .boneco__olhos, .degrau__quem .boneco__olhos, .tel__eu .boneco__olhos { animation: q-piscar 4.6s infinite; }
.avatar-grande .avatar--boneco .boneco, .chip .avatar--boneco .boneco { animation: q-respira 3s ease-in-out infinite; transform-origin: 50% 90%; }
.chip:nth-child(3n+1) .avatar--boneco .boneco { animation-delay: -1s; }
.chip:nth-child(3n+2) .avatar--boneco .boneco { animation-delay: -2s; }
.avatar--feliz .boneco { animation: q-feliz .9s var(--mola) both; transform-origin: 50% 90%; }
.avatar--triste .boneco { animation: q-triste .7s ease-in-out both; transform-origin: 50% 90%; }
.chip--cai { animation: q-cai .75s ease-out both; }

/* Tensão nos últimos 5 s (ecrã da sala e telemóvel de quem ainda não respondeu) */
.ecra--tensao::after, .tel--tensao::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 40; animation: q-tensao .5s ease-in-out infinite alternate; }
.tel--tensao::after { position: fixed; }

/* Revelação: as barras sobem todas iguais; depois do suspense a certa acende e as outras apagam */
.grafico__col, .grafico__rotulo { transition: opacity .5s ease, transform .5s var(--mola); }
.grafico--revelado .e-outra { opacity: .38; }
.grafico--revelado .grafico__col.e-certa { transform: translateY(-8px); }
.grafico .grafico__barra .brilho { animation: none; opacity: 0; }
.grafico--revelado .grafico__barra .brilho { opacity: 1; animation: q-brilho 1.1s .15s ease-out both; }
.grafico .visto { animation: none; opacity: 0; }
.grafico--revelado .visto { opacity: 1; animation: q-carimbo .55s .1s var(--mola) both; }
/* (o painel «1 de 3 acertaram» e o «Porquê?» também esperam pelo suspense, senão estragavam-no) */
.grafico ~ .painel .painel__cartao, .grafico ~ .painel .painel__nota, .grafico ~ .painel .painel__imagem { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .55s var(--mola); }
.grafico--revelado ~ .painel .painel__cartao, .grafico--revelado ~ .painel .painel__nota, .grafico--revelado ~ .painel .painel__imagem { opacity: 1; transform: none; }
.grafico--revelado ~ .painel .painel__nota, .grafico--revelado ~ .painel .painel__imagem { transition-delay: .25s; }

/* Tipos novos no ecrã da sala (04/12/2026) */
.resposta.resposta--nuvem { grid-column: 1 / -1; justify-content: center; background: rgba(255,255,255,.07); border: 2px dashed rgba(255,255,255,.32); box-shadow: none; color: #fff; }
.resposta--nuvem .resposta__texto { flex: none; }
/* Ordenar: a ordem certa entra lugar a lugar, depois do suspense */
.ordem-ecra { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.ordem-ecra__linha { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px; opacity: 0; transform: translateX(-30px); }
.grafico--revelado .ordem-ecra__linha { opacity: 1; transform: none; transition: opacity .4s ease var(--atraso), transform .55s var(--mola) var(--atraso); }
.ordem-ecra__n { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--tinta); display: flex; align-items: center; justify-content: center; font-family: var(--f-titulo); font-weight: 800; font-size: 28px; }
.ordem-ecra__item { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 8px 18px 8px 10px; border-radius: 16px; background: var(--c); color: var(--t); box-shadow: 0 6px 0 var(--s); min-width: 0; }
.ordem-ecra__item .quad { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex: none; }
.ordem-ecra__item .txt { font-family: var(--f-titulo); font-weight: 700; font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.ordem-ecra__acertos { font-family: var(--f-titulo); font-weight: 700; font-size: 18px; color: var(--suave); text-align: right; line-height: 1.1; }
.ordem-ecra__acertos small { display: block; font-size: 13px; font-weight: 600; }
/* Nuvem de palavras: as mais escritas no meio e maiores; um clique esconde */
.palavras { flex: 1; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 6px 22px; padding: 10px; }
.nuvem__palavra { border: 0; background: none; padding: 2px 6px; border-radius: 10px; font-family: var(--f-titulo); font-weight: 800; line-height: 1.05; cursor: pointer; opacity: 0; transform: scale(.6); }
.grafico--revelado .nuvem__palavra { opacity: 1; transform: none; transition: opacity .35s ease var(--atraso), transform .5s var(--mola) var(--atraso); }
.nuvem__palavra:hover { text-decoration: line-through; text-decoration-thickness: 3px; }
.nuvem__palavra:focus-visible { outline: 3px solid var(--ouro); }
.nuvem__palavra sup { font-size: .4em; margin-left: 3px; color: var(--suave); }
.nuvem__palavra.cor-0 { color: #fff; } .nuvem__palavra.cor-1 { color: #F2B33D; } .nuvem__palavra.cor-2 { color: #7fd6c2; } .nuvem__palavra.cor-3 { color: #9cc3ff; }

/* Pausa (comando do formador): cartão por cima do ecrã da sala e do telemóvel */
.pausa-ecra { position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(6,18,32,.72); backdrop-filter: blur(4px); animation: q-aparece .25s ease both; }
.pausa-ecra__cartao { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 60px; border-radius: 28px; background: #12304f; border: 2px solid rgba(242,179,61,.5); color: var(--ouro); animation: q-pop .45s var(--mola) both; }
.pausa-ecra__cartao strong { font-family: var(--f-titulo); font-weight: 800; font-size: 64px; color: #fff; line-height: 1; }
.pausa-ecra__cartao span { font-size: 22px; color: var(--suave); }
.pausa-tel { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; background: rgba(6,18,32,.9); color: var(--ouro); animation: q-aparece .25s ease both; }
.pausa-tel strong { font-family: var(--f-titulo); font-weight: 800; font-size: 40px; color: #fff; }
.pausa-tel span { font-size: 18px; color: var(--suave); max-width: 22ch; }
.comando__pausa { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(242,179,61,.2); color: var(--ouro); font-weight: 700; font-size: 15px; }

/* Seis separadores no estúdio (com o «Corpo»): no telemóvel, duas filas de três, para o «Extra» não ficar escondido */
@media (max-width: 480px) {
  .estudio__abas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* A chama da sequência de certas mexe-se */
.chama-viva { overflow: visible; }
.chama-viva path { transform-box: fill-box; transform-origin: 50% 100%; animation: q-chama .9s ease-in-out infinite; }
.chama-viva .chama-viva__dentro { animation-duration: .6s; animation-direction: reverse; }

/* A câmara dentro da página (selfie): o vídeo ocupa o mesmo círculo que a foto ao acertar, como num espelho */
.acerto__bola video { position: absolute; left: 17%; top: 23%; width: 66%; height: 66%; border-radius: 50%; object-fit: cover; transform: scaleX(-1); background: #0a1b2e; }
.tel .estudio__aviso { font-size: 14px; line-height: 1.4; color: #ffd98a; text-align: center; margin: 0; }

/* Modo equipas (04/12/2026) */
.sala__equipas { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.sala__equipas > span { font-family: var(--f-titulo); font-weight: 700; font-size: 16px; color: var(--suave); padding: 0 8px; }
.sala__equipas button { min-width: 48px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #fff; font-family: var(--f-titulo); font-weight: 700; font-size: 17px; cursor: pointer; }
.sala__equipas button[aria-checked="true"] { background: var(--ouro); color: var(--tinta); }
.sala__equipas button:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }
.equipas-sala { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: -4px 0 12px; }
.equipa-etiqueta { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); font-family: var(--f-titulo); font-weight: 700; font-size: 18px; }
.equipa-etiqueta i, .equipa-linha i, .equipa-vencedora i, .equipas-tel i, .equipa-tel-linha i { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--eq); box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.chip { box-shadow: 0 0 0 3px var(--eq, transparent); }
.equipa-linha { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; margin-top: 6px; font-family: var(--f-titulo); font-weight: 700; font-size: 17px; }
.equipa-linha__nome { display: flex; align-items: center; gap: 8px; }
.equipa-linha__barra { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.equipa-linha__barra span { display: block; height: 100%; border-radius: 4px; background: var(--eq); transform-origin: left; animation: q-cresce-x .9s .6s var(--suavizar) both; }
.equipa-vencedora { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 20px; border-radius: 999px; background: rgba(255,255,255,.1); border: 2px solid var(--eq); font-family: var(--f-titulo); font-size: 20px; animation: q-zoom .5s 3.4s var(--mola) both; }
.equipa-vencedora b { color: var(--eq); }
.equipas-tel { width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.equipas-tel .rotulo-ouro { font-size: 13px; }
.equipas-tel__botoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.equipas-tel__botoes button { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; padding: 10px 12px; min-height: 56px; border-radius: 14px; border: 2px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; text-align: left; }
.equipas-tel__botoes button i { grid-row: span 2; width: 18px; height: 18px; }
.equipas-tel__botoes button b { font-family: var(--f-titulo); font-size: 17px; }
.equipas-tel__botoes button small { font-size: 13px; color: var(--suave-2); }
.equipas-tel__botoes button[aria-checked="true"] { border-color: var(--eq); background: color-mix(in srgb, var(--eq) 22%, transparent); }
.equipa-tel-linha { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 15px; font-weight: 600; }
.equipa-tel-linha--ganhou { padding: 8px 16px; border-radius: 999px; border: 2px solid var(--eq); background: color-mix(in srgb, var(--eq) 20%, transparent); font-family: var(--f-titulo); font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  .ecra--tensao::after, .tel--tensao::after { animation: none; box-shadow: inset 0 0 0 6px rgba(255,90,90,.85); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .confetes, .deriva, .flutua, .raios { display: none; }
}
@media (max-width: 640px) {
  .titulo-pagina h1 { font-size: 26px; }
  .principal { padding: 20px 16px 40px; }
  .editor { padding: 14px 12px 30px; }
  .editor__lista, .editor__lado { max-width: none; }
}

/* ---------- Gerar perguntas com IA (04/12/2026) ---------- */
.acrescentar--ia { border-style: solid; border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, var(--azul), #7a5bd6, var(--ouro)) border-box; color: var(--azul-escuro); }
.acrescentar--ia:hover { background: linear-gradient(#f7fbfe, #f7fbfe) padding-box, linear-gradient(120deg, var(--azul), #7a5bd6, var(--ouro)) border-box; }
.dialogo-ia { border: 0; border-radius: 22px; padding: 0; width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: #fff; color: var(--tinta); box-shadow: 0 30px 60px rgba(4,14,26,.35); }
.dialogo-ia::backdrop { background: rgba(4,14,26,.55); }
.dialogo-ia form { display: flex; flex-direction: column; gap: 16px; padding: 24px 26px 22px; }
.dialogo-ia__topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialogo-ia h2 { margin: 0; font-family: var(--f-titulo); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; }
.dialogo-ia__fechar { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--nevoa); color: var(--cinza-2); display: flex; align-items: center; justify-content: center; }
.dialogo-ia__fechar:hover { background: var(--azul-claro); color: var(--azul); }
.dialogo-ia__nota { margin: 0; font-size: 16px; color: var(--cinza-2); }
.dialogo-ia__obrig { margin: 0; font-size: 15px; color: var(--cinza); }
.dialogo-ia .opcional { font-weight: 400; color: var(--cinza); }
.entrada--ia { height: 48px; font-size: 17px; font-weight: 500; background: #fff; }
textarea.entrada--ia { height: auto; padding: 10px 14px; resize: vertical; line-height: 1.4; }
select.entrada--ia { padding: 0 12px; }
.entrada-ficheiro { font-size: 16px; padding: 10px; border-radius: 14px; border: 2px dashed var(--borda); background: var(--nevoa); }
.entrada-ficheiro:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }
.entrada-ficheiro[aria-invalid="true"] { border-color: #C93C3C; }
.dialogo-ia__colar summary { cursor: pointer; font-weight: 700; color: var(--azul); min-height: 32px; display: flex; align-items: center; }
.dialogo-ia__colar[open] summary { margin-bottom: 8px; }
.dialogo-ia__linha { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; }
.dialogo-ia__grupo { border: 0; padding: 0; margin: 0; min-width: 0; }
.dialogo-ia__grupo legend { padding: 0; margin-bottom: 6px; }
.segmentos { display: flex; flex-wrap: wrap; gap: 6px; }
.segmentos label { position: relative; }
.segmentos input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmentos span { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--borda); background: #fff; font-weight: 600; color: var(--cinza-2); }
.segmentos input:checked + span { border-color: var(--azul); background: var(--azul-claro); color: var(--azul-escuro); box-shadow: inset 0 0 0 1px var(--azul); }
.segmentos--tipos input:checked + span::before { content: ''; width: 8px; height: 14px; margin: -3px 10px 0 2px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.segmentos input:focus-visible + span { outline: 3px solid var(--ouro); outline-offset: 2px; }
.segmentos input:disabled + span { opacity: .6; }
.dialogo-ia__privado { margin: 0; font-size: 14px; color: var(--cinza); border-left: 3px solid var(--azul-2); padding-left: 10px; }
.dialogo-ia__botoes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dialogo-ia__restam { margin-right: auto; font-size: 14px; color: var(--cinza); }
.dialogo-ia__espera { margin: 0; font-size: 15px; color: var(--azul-escuro); font-weight: 600; min-height: 1px; }
.dialogo-ia__espera:empty { display: none; }
.pontos-espera--botao { gap: 4px; }
.pontos-espera--botao span { width: 7px; height: 7px; background: currentColor; }
@media (max-width: 560px) {
  .dialogo-ia form { padding: 20px 16px 18px; }
  .dialogo-ia__linha { grid-template-columns: 1fr; }
}
