/* Jogos em grupo: abas da página inicial, tela da TV e celular-controle. */

/* ---------- abas da página inicial ---------- */
.abas { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin: -16px 0 22px; background: rgba(255, 255, 255, .7); border: 2px solid var(--tinta); border-radius: 16px; box-shadow: 3px 3px 0 var(--tinta); }
.aba { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 8px 6px; border-radius: 11px; text-decoration: none; font-weight: 800; font-size: 16px; color: var(--tinta-suave); white-space: nowrap; }
.aba.ativa { background: var(--amarelo); color: var(--tinta); box-shadow: inset 0 0 0 2px var(--tinta); }

/* ---------- aba Jogos em grupo ---------- */
.grupo-hero { position: relative; padding: 20px 18px 18px; background: #fff; border: 3px solid var(--tinta); border-radius: 20px; box-shadow: 5px 6px 0 var(--tinta); }
.grupo-hero h2 { font-family: var(--mao); font-size: 38px; line-height: 1; margin: 14px 0 12px; }
.grupo-desenho { position: relative; height: 112px; }
.g-tv { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 150px; height: 88px; background: var(--tinta); border-radius: 10px; border: 4px solid var(--tinta); box-shadow: inset 0 0 0 4px #33333a; display: flex; align-items: center; justify-content: center; }
.g-tv::after { content: ''; position: absolute; bottom: -14px; left: 50%; width: 46px; height: 10px; transform: translateX(-50%); background: var(--tinta); border-radius: 0 0 6px 6px; }
.g-tv b { font-family: var(--mao); font-size: 34px; letter-spacing: 4px; color: var(--amarelo); }
.g-cel { position: absolute; bottom: 0; left: 8%; width: 34px; height: 56px; border: 3px solid var(--tinta); border-radius: 8px; background: var(--papel-claro); display: flex; align-items: center; justify-content: center; font-size: 18px; transform: rotate(-8deg); }
.g-cel2 { left: auto; right: 8%; transform: rotate(8deg); }
.grupo-passos { margin: 0 0 16px 22px; display: grid; gap: 8px; color: var(--tinta-suave); }
.grupo-passos b { color: var(--tinta); }
.grupo-dica { display: block; text-align: center; color: var(--tinta-suave); font-size: 13px; margin-top: 8px; }
.grupo-entrar { margin: 22px 0 6px; padding: 16px; background: var(--papel-claro); border: 2px dashed var(--tinta); border-radius: 16px; display: grid; gap: 10px; }
.grupo-entrar label { color: var(--tinta-suave); }
.grupo-entrar-linha { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.grupo-entrar input { min-width: 0; font-family: var(--mao); font-size: 34px; letter-spacing: 10px; text-align: center; text-transform: uppercase; padding: 4px 8px; border: 2px solid var(--tinta); border-radius: 14px; background: #fff; }
.card-grupo { cursor: default; }
.card-grupo:active { transform: none; box-shadow: 3px 3px 0 var(--tinta); }
.grupo-aba .chamada-premium { margin-top: 22px; }

/* ---------- celular-controle ---------- */
.ctrl { min-height: calc(100dvh - 44px); display: flex; flex-direction: column; }
.ctrl-topo { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.ctrl-topo .voltar { position: static; }
.ctrl-sala { font-weight: 700; color: var(--tinta-suave); }
.ctrl-sala b { color: var(--tinta); letter-spacing: 2px; }
.ctrl-eu { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctrl-eu i, .tv-chip i, .tv-placar i, .tv-ganhos i, .tv-degrau i { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--tom); color: #fff; font-style: normal; font-weight: 800; border: 2px solid var(--tinta); }
.ctrl-msg { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 20px 4px; }
.ctrl-msg h2 { font-family: var(--mao); font-size: 42px; line-height: 1; }
.ctrl-msg p { color: var(--tinta-suave); max-width: 340px; }
.ctrl-msg .btn { max-width: 340px; }
.ctrl-grande { font-size: 72px; line-height: 1; }
.ctrl-peq { font-size: 14px; }
.ctrl-olha { font-size: 52px !important; }
.ctrl-pre-r { font-weight: 700; color: var(--tinta-suave); text-align: center; margin: 8px 0 12px; }
.ctrl-proximo { width: 100%; max-width: 340px; display: grid; gap: 2px; padding: 14px; background: #fff; border: 2px solid var(--tinta); border-radius: 16px; box-shadow: 3px 3px 0 var(--tinta); }
.ctrl-proximo small { color: var(--tinta-suave); font-weight: 700; }
.ctrl-proximo b { font-family: var(--mao); font-size: 30px; line-height: 1.05; }
.ctrl-proximo span { color: var(--tinta-suave); font-size: 14px; }
.ctrl-girando { width: 54px; height: 54px; border: 6px solid rgba(31, 31, 36, .15); border-top-color: var(--tinta); border-radius: 50%; animation: gira 0.9s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.ctrl-nome { flex: 1; display: grid; align-content: center; gap: 12px; }
.ctrl-nome h1 { font-family: var(--mao); font-size: 42px; line-height: 1; margin-bottom: 6px; }
.ctrl-nome h1 b { letter-spacing: 3px; background: linear-gradient(transparent 58%, var(--amarelo) 58%); }
.ctrl-nome label { font-weight: 700; }
.ctrl-nome input { font-size: 22px; padding: 14px; border: 2px solid var(--tinta); border-radius: 14px; background: #fff; }
.ctrl-nome small { color: var(--tinta-suave); text-align: center; }
.ctrl-fim .convite-conta { max-width: 360px; text-align: left; }

.ctrl-jogo { flex: 1; display: flex; flex-direction: column; }
.ctrl-cores { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 8px; }
.ctrl-cores.n3 { grid-template-columns: 1fr; }
.ctrl-cor { border: 3px solid var(--tinta); border-radius: 22px; background: var(--c); box-shadow: 4px 4px 0 var(--tinta); min-height: 90px; cursor: pointer; touch-action: manipulation; }
.ctrl-cor:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tinta); }
.ctrl-ce { flex: 1; display: grid; grid-template-rows: 1fr 1fr; gap: 16px; padding-bottom: 8px; }
.ctrl-btn-ce { border: 3px solid var(--tinta); border-radius: 22px; font-family: var(--mao); font-size: 54px; color: #fff; box-shadow: 4px 4px 0 var(--tinta); cursor: pointer; touch-action: manipulation; }
.ctrl-btn-ce.certo { background: var(--verde); }
.ctrl-btn-ce.errado { background: var(--vermelho); }
.ctrl-btn-ce:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tinta); }
.ctrl-acha .grade { margin-top: 10px; }

/* ---------- TV ---------- */
body.modo-tv { overflow: hidden; }
body.modo-tv #palco { max-width: none; padding: 0; height: 100vh; height: 100dvh; min-height: 0; }
.tv { height: 100%; display: flex; flex-direction: column; font-size: clamp(14px, 1.25vw, 30px); }
.tv-topo { display: flex; align-items: center; gap: 1em; padding: .7em 1.4em; border-bottom: 2px solid rgba(31, 31, 36, .12); background: rgba(251, 245, 223, .85); }
.tv-topo .logo-app { font-size: 1.6em; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.tv-topo .som { width: 2.4em; height: 2.4em; font-size: 1em; }
.tv-sair { font-size: 2.2em; font-weight: 800; text-decoration: none; line-height: 1; padding: 0 .2em; color: var(--tinta-suave); }
.tv-cod-mini { font-weight: 700; color: var(--tinta-suave); }
.tv-cod-mini b { color: var(--tinta); letter-spacing: .12em; font-size: 1.25em; }
.tv-conexao { font-size: .8em; font-weight: 700; padding: .2em .7em; border-radius: 99px; background: #fef3c7; border: 2px solid #d97706; color: #92400e; }
.tv-conexao[data-st="on"] { background: #dcfce7; border-color: var(--verde); color: var(--verde); }
.tv-conexao[data-st="erro"], .tv-conexao[data-st="caiu"] { background: #fde2e4; border-color: var(--vermelho); color: var(--vermelho); }
.tv-corpo { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; }
.tv-corpo.com-lado { grid-template-columns: 1fr minmax(15em, 22%); }
.tv-miolo { min-height: 0; overflow: auto; padding: 1.6em 2.2em; display: flex; flex-direction: column; }
.tv-lado { border-left: 2px solid rgba(31, 31, 36, .12); background: rgba(255, 255, 255, .55); padding: 1.4em 1.2em; display: flex; flex-direction: column; min-height: 0; }
.tv-lado h3 { font-family: var(--mao); font-size: 2.2em; line-height: 1; margin-bottom: .4em; }
.tv-placar { list-style: none; display: grid; gap: .5em; overflow: auto; flex: 1; align-content: start; }
.tv-placar li { display: flex; align-items: center; gap: .6em; padding: .45em .6em; background: #fff; border: 2px solid var(--tinta); border-left: .5em solid var(--tom); border-radius: .7em; font-weight: 700; }
.tv-placar li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-placar li b { font-family: var(--mao); font-size: 1.7em; line-height: 1; }
.tv-placar li.fora, .tv-chip.fora { opacity: .4; }
.tv-entra { margin-top: .8em; color: var(--tinta-suave); text-align: center; }
.tv-entra b { color: var(--tinta); letter-spacing: .15em; }

/* sala (antes de começar) */
.tv-sala { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.4em; align-items: start; }
.tv-convite { background: #fff; border: 3px solid var(--tinta); border-radius: 1.2em; box-shadow: .3em .35em 0 var(--tinta); padding: 1.4em; text-align: center; transform: rotate(-.5deg); }
.tv-convite-t { font-family: var(--mao); font-size: 2.6em; line-height: 1; }
.tv-qr { width: min(15em, 30vh); aspect-ratio: 1; margin: .7em auto; }
.tv-qr svg { width: 100%; height: 100%; display: block; }
.tv-ou { color: var(--tinta-suave); }
.tv-ou b { color: var(--tinta); }
.tv-codigo { display: flex; justify-content: center; gap: .25em; margin-top: .5em; }
.tv-codigo span { font-family: var(--mao); font-size: 4.2em; line-height: 1.1; width: 1.15em; background: var(--amarelo); border: 3px solid var(--tinta); border-radius: .2em; box-shadow: .06em .06em 0 var(--tinta); }
.tv-config h2 { font-family: var(--mao); font-size: 2.1em; line-height: 1; margin: .2em 0 .45em; }
.tv-config h2:not(:first-child) { margin-top: .9em; }
.tv-qtd { font-family: var(--texto); font-size: .5em; color: var(--tinta-suave); }
.tv-jogadores, .tv-respostas { list-style: none; display: flex; flex-wrap: wrap; gap: .5em; min-height: 2.6em; }
.tv-chip { display: inline-flex; align-items: center; gap: .45em; padding: .3em .8em .3em .35em; background: #fff; border: 2px solid var(--tinta); border-radius: 99px; font-weight: 700; }
.tv-chip.chegou { animation: chega .5s; }
@keyframes chega { 0% { transform: scale(.4); } 70% { transform: scale(1.12); } 100% { transform: none; } }
.tv-vazio { color: var(--tinta-suave); padding: .4em 0; }
.tv-jogos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.tv-op-jogo { display: flex; flex-direction: column; align-items: center; gap: .2em; padding: .7em .4em; background: var(--papel-claro); border: 2px solid var(--tinta); border-bottom: .3em solid var(--cor); border-radius: .8em; cursor: pointer; text-align: center; }
.tv-op-jogo i { font-style: normal; font-size: 1.8em; line-height: 1; }
.tv-op-jogo b { font-size: .95em; line-height: 1.15; }
.tv-op-jogo.sel { background: var(--amarelo); box-shadow: .18em .18em 0 var(--tinta); }
.tv-desc { color: var(--tinta-suave); margin: .6em 0 0; }
.tv-niveis-t { margin: .9em 0 .4em; }
.tv-niv-txt { color: var(--tinta-suave); }
.tv-niveis { display: grid; grid-template-columns: repeat(10, 1fr); gap: .35em; }
.tv-op-nivel { aspect-ratio: 1; border: 2px solid var(--tinta); border-radius: .5em; background: #fff; font-weight: 800; font-size: 1.1em; cursor: pointer; }
.tv-op-nivel.sel { background: var(--amarelo); box-shadow: .12em .12em 0 var(--tinta); }
.tv-op-nivel.tranca { background: rgba(31, 31, 36, .06); font-size: .85em; }
.tv-premium-dica { font-size: .85em; color: var(--tinta-suave); margin-top: .5em; }
.tv-comecar { margin-top: 1.1em; font-size: 1.3em; }

/* contagem, rodada, resposta e fim */
.tv-pre, .tv-rodada, .tv-revela, .tv-fim { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .8em; }
.tv-pre-r { font-weight: 800; color: var(--tinta-suave); font-size: 1.15em; }
.tv-pre-dica { font-family: var(--mao); font-size: 4em; line-height: 1; }
.tv-pre-conta { position: relative; width: 100%; height: 12em; }
.tv-pre-conta .contagem { position: absolute; inset: 0; background: none; }
.tv-pre-conta .contagem span { font-size: 9em; }
.tv-rodada { justify-content: flex-start; padding-top: 1em; }
.tv-tempo { width: min(40em, 90%); height: .7em; border: 2px solid var(--tinta); border-radius: 99px; overflow: hidden; background: #fff; }
.tv-tempo i { display: block; height: 100%; background: var(--vermelho); transform-origin: left; animation: tempo linear forwards; }
@keyframes tempo { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.tv-pergunta { font-size: 1.6em; font-weight: 700; margin-top: .6em; }
.tv-palavra { font-family: var(--mao); font-size: 11em; line-height: 1; letter-spacing: .02em; }
.tv-frase { font-family: var(--mao); font-size: 6em; line-height: 1.05; max-width: 15em; }
.tv-bolas { display: flex; gap: .7em; }
.tv-bolas i { width: 2.2em; height: 2.2em; border-radius: 50%; border: 2px solid var(--tinta); }
.tv-respostas { justify-content: center; margin-top: auto; }
.tv-respostas .tv-chip { opacity: .45; }
.tv-respostas .tv-chip.foi { opacity: 1; animation: chega .4s; box-shadow: .12em .12em 0 var(--tinta); }
.tv-qtd-resp { color: var(--tinta-suave); font-weight: 700; }
.tv-corrida { list-style: none; width: min(48em, 100%); display: grid; gap: .55em; margin-top: .6em; }
.tv-corrida li { display: grid; grid-template-columns: 9em 1fr 6.5em; align-items: center; gap: .8em; font-weight: 700; }
.tv-corr-nome { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-corr-trilho { height: 1.6em; background: #fff; border: 2px solid var(--tinta); border-radius: 99px; overflow: hidden; }
.tv-corr-trilho i { display: block; height: 100%; background: var(--tom); transition: width .25s; }
.tv-corrida li b { text-align: left; font-family: var(--mao); font-size: 1.5em; line-height: 1; }
.tv-corrida li.chegou .tv-corr-nome { color: var(--tom); }
.tv-certo { font-family: var(--mao); font-size: 4em; line-height: 1.05; }
.tv-certo b.ok { color: var(--verde); }
.tv-certo b.nao { color: var(--vermelho); }
.tv-raio { font-size: 2em; font-weight: 700; padding: .4em 1em; background: #fff; border: 3px solid var(--tinta); border-left: .5em solid var(--tom); border-radius: .6em; box-shadow: .15em .15em 0 var(--tinta); }
.tv-raio small { color: var(--tinta-suave); font-size: .7em; }
.tv-raio.ninguem { border-left-color: var(--tinta-suave); }
.tv-ganhos { list-style: none; display: grid; gap: .4em; width: min(30em, 100%); }
.tv-ganhos li { display: flex; align-items: center; gap: .6em; padding: .35em .7em; background: rgba(255, 255, 255, .8); border: 2px solid var(--tinta); border-radius: .6em; font-weight: 700; }
.tv-ganhos li b { flex: 1; text-align: left; }
.tv-ganhos li small { color: var(--tinta-suave); }
.tv-ganhos li em { font-style: normal; font-family: var(--mao); font-size: 1.6em; line-height: 1; color: var(--verde); }
.tv-prox { color: var(--tinta-suave); }
.tv-campeao { font-family: var(--mao); font-size: 5em; line-height: 1; }
.tv-podio { display: grid; grid-template-columns: repeat(3, 10em); align-items: end; gap: .8em; }
.tv-degrau { display: flex; flex-direction: column; align-items: center; gap: .25em; padding: .8em .4em 0; background: #fff; border: 3px solid var(--tinta); border-bottom: 0; border-radius: .8em .8em 0 0; border-top: .45em solid var(--tom); font-weight: 700; }
.tv-degrau i { font-size: 1.6em; }
.tv-degrau b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-degrau span { font-family: var(--mao); font-size: 3.2em; line-height: 1.2; }
.tv-degrau.d1 { min-height: 13em; background: #fff7d6; }
.tv-degrau.d2 { min-height: 10em; }
.tv-degrau.d3 { min-height: 8em; }
.tv-degrau.vazio { border: 0; background: none; }
.tv-podio { border-bottom: 3px solid var(--tinta); }
.tv-resto { color: var(--tinta-suave); font-weight: 700; display: flex; flex-wrap: wrap; justify-content: center; gap: .2em 1.4em; }
.tv-fim-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; width: min(34em, 100%); }
.tv-fim-botoes .btn { font-size: 1.1em; }
.tv-fim-marca { color: var(--tinta-suave); }

/* TV aberta no celular em pé: empilha */
@media (max-width: 800px) {
  body.modo-tv { overflow: auto; }
  body.modo-tv #palco { height: auto; min-height: 100dvh; }
  .tv { font-size: 14px; }
  .tv-topo .logo-app span:last-child { font-size: 0; }
  .tv-topo .logo-app span:last-child::before { content: 'Jogos em grupo'; font-size: 20px; }
  .tv-corpo.com-lado { grid-template-columns: 1fr; }
  .tv-lado { border-left: 0; border-top: 2px solid rgba(31, 31, 36, .12); }
  .tv-sala { grid-template-columns: 1fr; }
  .tv-miolo { padding: 16px; }
  .tv-palavra { font-size: 5.5em; }
  .tv-frase { font-size: 3em; }
  .tv-podio { grid-template-columns: repeat(3, 1fr); }
  .tv-fim-botoes { grid-template-columns: 1fr; }
  .tv-corrida li { grid-template-columns: 6em 1fr 5em; }
}
.ctrl-acha .barra .alvo { text-align: left; }

/* PC: abas com largura de botão e a aba Jogos em grupo em duas colunas */
@media (min-width: 900px) {
  .abas { max-width: 560px; margin: 18px 0 26px; }
  .grupo-aba .lista-jogos { grid-template-columns: 1fr; }
  .grupo-aba { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
  .grupo-hero { grid-row: span 4; }
  .grupo-entrar { margin-top: 0; }
  .grupo-aba .secao { margin-top: 18px; }
}

/* Fala a cor e Responde rápido em grupo: sequência no celular, igual ao individual */
.ctrl-sprint .barra .pontos { text-align: left; }
.ctrl-alvo { min-height: 30vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 0; }
.ctrl-palavra { font-family: var(--mao); font-size: clamp(54px, 17vw, 84px); line-height: 1; }
.ctrl-frase { font-family: var(--mao); font-size: clamp(34px, 10vw, 52px); line-height: 1.05; }
.ctrl-sprint .ctrl-cores { flex: none; grid-template-columns: 1fr 1fr; grid-auto-rows: 86px; }
.ctrl-sprint .ctrl-cores.n3 { grid-template-columns: 1fr 1fr 1fr; }
.ctrl-sprint .ctrl-ce { flex: none; grid-template-rows: 110px 110px; }
.ctrl-cor.treme, .ctrl-btn-ce.treme { animation: treme .3s; }
.tv-relogio-grande { font-family: var(--mao); font-size: 6em; line-height: 1; color: var(--vermelho); }

/* ===================== 16/11 (thread 88): entrar fácil, tutorial, sala que não acaba, jogos novos ===================== */
.grupo-voltar { display: flex; justify-content: center; gap: .3em; margin: -6px 0 18px; }
.grupo-voltar b { letter-spacing: 2px; }

/* TV: convite com QR grande + link curto + passos */
.tv-sala { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.tv-convite { transform: none; text-align: left; display: flex; flex-direction: column; gap: .8em; }
.tv-convite-t { text-align: center; }
.tv-convite-linha { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2em; align-items: center; }
.tv-qr { width: min(13em, 34vh); margin: 0; padding: .35em; background: #fff; border: 3px solid var(--tinta); border-radius: .6em; }
.tv-link small { display: block; color: var(--tinta-suave); line-height: 1.3; }
.tv-link-url { font-weight: 800; font-size: 1.35em; line-height: 1.15; margin: .25em 0 .7em; word-break: break-all; }
.tv-link-url b { background: var(--amarelo); padding: 0 .15em; border-radius: .2em; letter-spacing: .08em; }
.tv-link .tv-codigo { justify-content: flex-start; margin-top: .2em; }
.tv-link .tv-codigo span { font-size: 3em; text-align: center; }
.tv-passos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; padding-top: .8em; border-top: 2px dashed rgba(31, 31, 36, .2); }
.tv-passos li { display: grid; gap: .15em; align-content: start; }
.tv-passos i { font-style: normal; font-size: 1.8em; line-height: 1; }
.tv-passos b { line-height: 1.2; }
.tv-passos small { color: var(--tinta-suave); line-height: 1.25; }
.tv-dica-voto { font-family: var(--texto); font-size: .45em; color: var(--tinta-suave); font-weight: 600; }
.tv-jogos { grid-template-columns: repeat(4, 1fr); }
.tv-op-jogo { position: relative; }
.tv-votos { position: absolute; top: -.6em; right: -.4em; font-size: .85em; font-weight: 800; background: #fff; border: 2px solid var(--tinta); border-radius: 99px; padding: 0 .4em; }
.tv-votos:empty { display: none; }
.tv-votos.pula { animation: chega var(--mov-lento) var(--mov-curva) backwards; }
.tv-desc { min-height: 2.9em; }
.tv-chip .coroa { font-style: normal; }
.tv-chefe-dica { margin-top: .5em; color: var(--tinta-suave); text-align: center; }
.tv-fechar { display: block; margin: .8em auto 0; background: none; border: 0; color: var(--tinta-suave); text-decoration: underline; font: inherit; font-size: .85em; cursor: pointer; }
.tv-fechar.confirma { color: var(--vermelho); font-weight: 800; }
.tv-cod-mini b { letter-spacing: .02em; font-size: 1.05em; }

/* TV: como joga (antes da 1ª rodada) */
.tv-como-t { font-family: var(--mao); font-size: 3.4em; line-height: 1; }
.tv-como { display: grid; gap: .5em; text-align: left; font-size: 1.5em; counter-reset: c; list-style: none; }
.tv-como li { counter-increment: c; display: flex; gap: .6em; align-items: baseline; }
.tv-como li::before { content: counter(c); flex: none; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--amarelo); border: 2px solid var(--tinta); font-weight: 800; font-size: .8em; }
.tv-pre .tv-pre-dica { font-size: 3em; }

/* TV: quiz */
.tv-quiz-p { font-family: var(--mao); font-size: 3.6em; line-height: 1.05; max-width: 18em; margin-top: .3em; }
.tv-quiz-ops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9em; width: min(56em, 100%); }
.tv-quiz-op { display: flex; align-items: center; gap: .6em; padding: .8em; background: #fff; border: 3px solid var(--tinta); border-left: .6em solid var(--c); border-radius: .8em; box-shadow: .15em .15em 0 var(--tinta); font-size: 1.4em; font-weight: 700; text-align: left; }
.tv-quiz-op i, .ctrl-quiz-op i { flex: none; font-style: normal; display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--c); color: #fff; font-weight: 900; border: 2px solid var(--tinta); }
.tv-expl { display: block; font-family: var(--texto); font-size: .32em; color: var(--tinta-suave); max-width: 40em; margin: .5em auto 0; line-height: 1.35; }

/* TV: dedo mais rápido */
.tv-reflexo { width: min(40em, 100%); flex: 1; min-height: 10em; max-height: 22em; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 4px solid var(--tinta); border-radius: 1.2em; box-shadow: .25em .25em 0 var(--tinta); color: #fff; background: var(--vermelho); }
.tv-reflexo b { font-family: var(--mao); font-size: 6em; line-height: 1; }
.tv-reflexo small { font-size: 1.2em; opacity: .9; }
.tv-reflexo[data-s="vai"] { background: #16a34a; }
.tv-reflexo[data-s="falso"] { background: #f2b705; color: var(--tinta); }
.tv-reflexo[data-s="falso2"] { background: #1d4ed8; }

/* TV: quantos tem? */
.tv-conta-alvo, .ctrl-conta-alvo { display: inline-block; font-size: 1.5em; vertical-align: middle; }
.tv-conta-campo { position: relative; width: min(60em, 100%); flex: 1; min-height: 14em; background: #fff; border: 3px solid var(--tinta); border-radius: 1em; overflow: hidden; }
.tv-conta-campo span { position: absolute; transform: translate(-50%, -50%) rotate(var(--g)); font-size: 3em; line-height: 1; transition: opacity var(--mov-medio) var(--mov-curva); }
.tv-conta-campo.cobre span { opacity: 0; }
.tv-conta-campo.cobre::after { content: '❓'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 8em; animation: mov-entra var(--mov-medio) var(--mov-curva) backwards; }

/* TV: sequência de cores */
.tv-mem { display: grid; grid-template-columns: repeat(2, 9em); gap: 1em; margin-top: .4em; }
.tv-mem.n5, .tv-mem.n6 { grid-template-columns: repeat(3, 8em); }
.tv-mem i { aspect-ratio: 1; border-radius: 1em; border: 4px solid var(--tinta); background: var(--c); opacity: .28; transition: opacity var(--mov-toque) linear, transform var(--mov-toque) linear; }
.tv-mem i.acende { opacity: 1; transform: scale(1.06); box-shadow: 0 0 0 .3em #fff, 0 0 0 .5em var(--tinta); }
.tv-seq { display: inline-flex; gap: .15em; vertical-align: middle; }
.tv-seq i { width: .7em; height: .7em; border-radius: .15em; background: var(--c); border: 2px solid var(--tinta); }
.tv-queimou { color: var(--vermelho); font-weight: 700; }
.tv-volta { font-weight: 700; color: var(--tinta-suave); text-align: center; }
.tv-volta b { color: var(--tinta); }

@media (max-width: 800px) {
  .tv-convite-linha { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .tv-link .tv-codigo { justify-content: center; }
  .tv-passos { grid-template-columns: 1fr; }
  .tv-jogos { grid-template-columns: repeat(2, 1fr); }
  .tv-quiz-ops { grid-template-columns: 1fr; }
  .tv-quiz-p { font-size: 2.2em; }
  .tv-mem { grid-template-columns: repeat(2, 6em); }
  .tv-mem.n5, .tv-mem.n6 { grid-template-columns: repeat(3, 5em); }
  .tv-como { font-size: 1.15em; }
}

/* celular: status, sala com votação, como funciona */
.ctrl-st { font-size: 12px; font-weight: 800; color: var(--vermelho); background: #fde2e4; border: 2px solid var(--vermelho); border-radius: 99px; padding: 0 8px; }
.ctrl-lobby { display: grid; gap: 12px; padding-bottom: 18px; }
.ctrl-lobby-topo { text-align: center; }
.ctrl-lobby-topo h2 { font-family: var(--mao); font-size: 38px; line-height: 1.05; }
.ctrl-lobby-topo p { color: var(--tinta-suave); }
.ctrl-como { background: var(--papel-claro); border: 2px dashed var(--tinta); border-radius: 14px; padding: 2px 12px; }
.ctrl-como ol { list-style: none; display: grid; gap: 10px; padding: 2px 0 12px; }
.ctrl-como li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.35; }
.ctrl-como li i { font-style: normal; font-size: 22px; line-height: 1.1; }
.ctrl-tit { font-family: var(--mao); font-size: 28px; line-height: 1; margin-top: 4px; }
.ctrl-votos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ctrl-voto { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 8px; min-height: 64px; padding: 10px 8px 8px; background: #fff; border: 2px solid var(--tinta); border-bottom: 5px solid var(--cor); border-radius: 14px; font: inherit; cursor: pointer; text-align: center; }
.ctrl-voto i { grid-row: span 2; font-style: normal; font-size: 26px; line-height: 1; }
.ctrl-voto b { font-size: 14px; line-height: 1.15; text-align: left; }
.ctrl-voto small { font-weight: 800; font-size: 13px; text-align: left; }
.ctrl-voto small:empty { display: none; }
.ctrl-voto em { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 800; background: var(--tinta); color: #fff; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.ctrl-voto.meu { background: #fff7d6; box-shadow: 3px 3px 0 var(--tinta); }
.ctrl-voto.meu::after { content: '👍'; position: absolute; top: 6px; right: 8px; font-size: 16px; }
.ctrl-voto.escolhido { outline: 3px solid var(--tinta); outline-offset: 1px; }
.ctrl-chefe { display: grid; gap: 10px; padding: 14px; background: #fff; border: 2px solid var(--tinta); border-radius: 16px; box-shadow: 3px 3px 0 var(--tinta); }
.ctrl-chefe p { font-size: 14px; color: var(--tinta-suave); }
.ctrl-chefe p b { color: var(--tinta); }
.ctrl-niveis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ctrl-niveis button { height: 40px; border: 2px solid var(--tinta); border-radius: 10px; background: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.ctrl-niveis button.sel { background: var(--amarelo); box-shadow: 2px 2px 0 var(--tinta); }
.ctrl-niveis button.tranca { background: rgba(31, 31, 36, .06); font-size: 13px; }
.ctrl-lobby .ctrl-proximo { max-width: none; }
.ctrl-lobby > .ctrl-peq { text-align: center; color: var(--tinta-suave); }
.ctrl-link { background: none; border: 0; font: inherit; color: var(--tinta); text-decoration: underline; cursor: pointer; padding: 0; }
.ctrl-como-lista { text-align: left; display: grid; gap: 8px; max-width: 340px; padding-left: 22px; color: var(--tinta-suave); }
.ctrl-fica { font-weight: 700; color: var(--tinta) !important; }
.ctrl-fim-botoes { display: grid; gap: 10px; width: 100%; max-width: 340px; }

/* celular: quiz */
.ctrl-quiz-p { font-weight: 800; font-size: 19px; line-height: 1.3; text-align: center; margin-bottom: 12px; }
.ctrl-quiz { display: grid; grid-auto-rows: minmax(84px, auto); gap: 12px; padding-bottom: 8px; }
.ctrl-quiz-op { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 3px solid var(--tinta); border-left: 12px solid var(--c); border-radius: 18px; box-shadow: 4px 4px 0 var(--tinta); font: inherit; font-weight: 800; font-size: 18px; text-align: left; cursor: pointer; touch-action: manipulation; }
.ctrl-quiz-op:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tinta); }

/* celular: dedo mais rápido */
.ctrl-reflexo { flex: 1; min-height: 60vh; margin-bottom: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 4px solid var(--tinta); border-radius: 26px; box-shadow: 5px 5px 0 var(--tinta); background: var(--vermelho); color: #fff; font: inherit; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.ctrl-reflexo b { font-family: var(--mao); font-size: 64px; line-height: 1; }
.ctrl-reflexo small { font-size: 16px; opacity: .9; }
.ctrl-reflexo[data-s="vai"] { background: #16a34a; }
.ctrl-reflexo[data-s="falso"] { background: #f2b705; color: var(--tinta); }
.ctrl-reflexo[data-s="falso2"] { background: #1d4ed8; }

/* celular: quantos tem? */
.ctrl-conta, .ctrl-mem { text-align: center; }
.ctrl-conta-olha, .ctrl-mem-olha { flex: 1; display: grid; align-content: center; gap: 10px; }
.ctrl-conta-olha h2, .ctrl-mem-olha h2 { font-family: var(--mao); font-size: 48px; line-height: 1; }
.ctrl-conta-num { display: grid; gap: 10px; }
.ctrl-conta-num > p { font-weight: 800; font-size: 18px; }
.ctrl-visor { display: block; font-family: var(--mao); font-size: 72px; line-height: 1; padding: 6px; background: #fff; border: 3px solid var(--tinta); border-radius: 16px; }
.ctrl-teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ctrl-teclado button { height: 62px; border: 2px solid var(--tinta); border-radius: 14px; background: #fff; box-shadow: 2px 2px 0 var(--tinta); font: inherit; font-weight: 800; font-size: 26px; cursor: pointer; touch-action: manipulation; }
.ctrl-teclado button:active { transform: translate(2px, 2px); box-shadow: none; }
.ctrl-teclado button.ok { background: var(--verde); color: #fff; }

/* celular: sequência de cores */
.ctrl-mem-vez { flex: 1; display: grid; align-content: center; gap: 14px; }
.ctrl-mem-dots { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.ctrl-mem-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--tinta); background: #fff; }
.ctrl-mem-dots i.ok { background: var(--verde); }
.ctrl-mem-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ctrl-mem-pads.n5, .ctrl-mem-pads.n6 { grid-template-columns: repeat(3, 1fr); }
.ctrl-mem-pads button { aspect-ratio: 1; border: 3px solid var(--tinta); border-radius: 20px; background: var(--c); box-shadow: 4px 4px 0 var(--tinta); cursor: pointer; touch-action: manipulation; }
.ctrl-mem-pads button.acende { animation: acende-pad var(--mov-medio) var(--mov-curva) backwards; }
@keyframes acende-pad { 0% { transform: scale(.9); opacity: .6; } 100% { transform: none; opacity: 1; } }

.tv-entra b { letter-spacing: 0; word-break: break-all; }
.ctrl [hidden], .tv [hidden] { display: none !important; }
/* endereço curto da TV */
.grupo-tv-end { margin-top: 12px; text-align: center; color: var(--tinta-suave); }
.grupo-tv-end b { display: block; margin-top: 4px; font-size: 21px; color: var(--tinta); word-break: break-all; background: var(--amarelo); border: 2px solid var(--tinta); border-radius: 12px; padding: 6px 10px; }
.tv-favorito { margin-top: .9em; padding: .6em .8em; background: var(--papel-claro); border: 2px dashed var(--tinta); border-radius: .7em; font-size: .9em; color: var(--tinta-suave); }
.tv-favorito b { color: var(--tinta); }
.tv-atalho { display: flex; margin: 10px 0 22px; font-size: 22px; }
.tv-atalho:focus-visible, .tv-op-jogo:focus-visible, .tv-op-nivel:focus-visible, .tv-comecar:focus-visible { outline: 4px solid var(--azul); outline-offset: 3px; }
