/* Resenha · visual Cítrico (ver CLAUDE.md, seção Design) */
:root {
  --bg: #F4F1EA;
  --dot: #DCD5C5;
  --line: #CFC6B3;
  --tx: #111111;
  --mu: #6D675C;
  --branco: #FFFFFF;
  --laranja: #FF6B1A;
  --lima: #B8F400;
  --amarelo: #FFD400;
  --rosa: #FF2E88;
  --verde: #00C2A8;
  --vermelho: #FF4747;
  --azul: #1FA9FF;
  --dica: #FFF3A3;
  --sombra-adesivo: 0 6px 14px -6px rgba(60, 40, 10, .35);
  --sombra-leve: 0 2px 0 var(--line);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }

body {
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 16px 16px;
  color: var(--tx);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; user-select: text; -webkit-user-select: text; }

/* ---------- Topo ---------- */
#topo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 18px 6px;
}
#topo[hidden] { display: none; }
#topo h1 { margin: 0; font-size: 18px; font-weight: 800; text-align: center; }
#topo .direita { display: flex; gap: 8px; justify-content: flex-end; }

.redondo {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--branco);
  box-shadow: var(--sombra-leve);
  display: grid; place-items: center;
  font-size: 22px;
}

/* ---------- Tela ---------- */
#tela {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 18px calc(22px + env(safe-area-inset-bottom));
  min-height: calc(100dvh - 70px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Início ---------- */
.cab { display: flex; justify-content: space-between; align-items: flex-start; padding-top: calc(10px + env(safe-area-inset-top)); }
.marca { margin: 0; font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.sub { margin: 6px 0 0; color: var(--mu); font-size: 14px; }
.cab-acoes { display: flex; gap: 8px; }

.chips-jog { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-jog span, .chip-add {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--branco); border: 0; border-radius: 999px;
  padding: 6px 11px; font-size: 13px; font-weight: 600;
  box-shadow: var(--sombra-leve);
}
.chips-jog span i { width: 8px; height: 8px; border-radius: 50%; display: block; }

.adesivos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 2px 8px; }
.adesivo {
  background: var(--c);
  border: 4px solid var(--branco);
  border-radius: 20px;
  box-shadow: var(--sombra-adesivo);
  padding: 12px;
  min-height: 124px;
  text-align: left;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  color: var(--tx);
  transform: rotate(-1.6deg);
  transition: transform .15s;
}
.adesivo:nth-child(even) { transform: rotate(1.4deg); }
.adesivo:active { transform: scale(.95); }
.adesivo .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--branco); display: grid; place-items: center; font-size: 19px; margin-bottom: 4px; }
.adesivo b { font-size: 19px; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.adesivo small { font-size: 12.5px; color: rgba(0, 0, 0, .72); line-height: 1.25; }
.adesivo em { font-style: normal; font-size: 11px; font-weight: 700; opacity: .7; margin-top: auto; padding-top: 4px; }
.adesivo:last-child:nth-child(odd) { grid-column: span 2; flex-direction: row; align-items: center; min-height: 0; gap: 10px; transform: rotate(-.8deg); }
.adesivo:last-child:nth-child(odd) .ic { margin: 0; }
.adesivo:last-child:nth-child(odd) em { margin: 0 0 0 auto; padding: 0; }

/* ---------- Botões ---------- */
.btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 18px;
  font-size: 17px; font-weight: 800;
  background: var(--tx); color: var(--branco);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45);
  transition: transform .1s;
}
.btn:active { transform: scale(.98); }
.btn i { font-size: 22px; }
.btn.sec { background: var(--branco); color: var(--tx); box-shadow: var(--sombra-leve); }
.btn.lima { background: var(--lima); color: var(--tx); }
.btn.rosa { background: var(--rosa); color: var(--branco); }
.btn[hidden] { display: none; }
.linha { display: flex; gap: 10px; }
.linha .btn { flex: 1; }
.link-btn { background: none; border: 0; color: var(--mu); font-size: 14px; text-decoration: underline; padding: 6px; align-self: center; }
.link-btn[hidden] { display: none; }

/* ---------- Textos ---------- */
.rot { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mu); }
.nome-grande { margin: 0; font-size: 72px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--laranja); word-break: break-word; }
.dica-txt { margin: 0; color: var(--mu); font-size: 15px; line-height: 1.45; max-width: 280px; }
.rodape { margin: 0; text-align: center; font-size: 12.5px; color: var(--mu); }
.info { background: var(--branco); border-radius: 18px; padding: 14px 16px; font-size: 14px; color: var(--mu); line-height: 1.5; margin: 0; }

/* ---------- Passar o celular ---------- */
.progresso { display: flex; gap: 5px; }
.progresso span { flex: 1; height: 6px; border-radius: 6px; background: var(--line); }
.progresso span.f { background: var(--tx); }
.palco { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 320px; }
.centro { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.revela { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; }
.mostrando .centro { visibility: hidden; }
.mostrando .revela { display: flex; }
.segurar { touch-action: none; -webkit-touch-callout: none; }
.mostrando .segurar { transform: scale(.97); background: #333; }

/* ---------- Cartão (palavra, carta) ---------- */
.cartao {
  background: var(--c, var(--lima));
  border: 5px solid var(--branco);
  border-radius: 22px;
  box-shadow: 0 14px 26px -12px rgba(60, 40, 10, .4);
  padding: 26px 22px;
  width: 100%;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  transform: rotate(-2deg);
  color: var(--tx);
}
.cartao h2 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.cartao h2.media { font-size: 30px; }
.cartao .rot { color: rgba(0, 0, 0, .62); }
.cartao p { margin: 0; font-size: 13px; color: rgba(0, 0, 0, .7); }
.cartao.cheio { flex: 1; min-height: 260px; }
.cartao.escuro { --c: var(--tx); color: var(--branco); }
.cartao.escuro .rot, .cartao.escuro p { color: rgba(255, 255, 255, .7); }
.entra { animation: entra .28s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes entra { from { transform: rotate(-2deg) scale(.85); opacity: 0; } }

/* ---------- Placar e cronômetro ---------- */
.placar { display: flex; gap: 10px; }
.placar div { flex: 1; background: var(--branco); border-radius: 16px; padding: 9px 14px; box-shadow: var(--sombra-leve); }
.placar small { font-size: 12px; color: var(--mu); }
.placar b { display: block; font-size: 30px; font-weight: 800; line-height: 1.05; }
.placar .on { background: var(--amarelo); }
.placar .on small { color: rgba(0, 0, 0, .65); }

.anel { width: 128px; height: 128px; position: relative; margin: 0 auto; flex: none; }
.anel svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anel circle { fill: none; stroke-width: 9; }
.anel .trilho { stroke: var(--line); }
.anel .barra { stroke: var(--tx); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.anel b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 800; }
body.tenso .anel .barra { stroke: var(--vermelho); }
body.tenso .anel b { color: var(--vermelho); }
body.tenso::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: var(--vermelho); animation: pisca 1s infinite; z-index: 5; }
@keyframes pisca { 0%, 100% { opacity: 0; } 50% { opacity: .14; } }

/* ---------- Configuração ---------- */
.grupo { display: flex; flex-direction: column; gap: 8px; }
.grupo > .rot { letter-spacing: .08em; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcao { background: var(--branco); border: 0; border-radius: 999px; padding: 10px 16px; font-size: 15px; font-weight: 600; box-shadow: var(--sombra-leve); }
.opcao.ativo { background: var(--tx); color: var(--branco); box-shadow: none; }
.espaco { flex: 1; }

/* ---------- Jogadores e formulários ---------- */
.campo { display: flex; gap: 8px; }
.campo input {
  flex: 1; min-width: 0;
  background: var(--branco);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  font-size: 16px;
  color: var(--tx);
  outline: none;
}
.campo input:focus { border-color: var(--tx); }
.campo .btn { width: auto; padding: 0 20px; }
.lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lista li { background: var(--branco); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; box-shadow: var(--sombra-leve); font-weight: 600; }
.lista li i.ponto { width: 12px; height: 12px; border-radius: 50%; display: block; flex: none; }
.lista li span { flex: 1; }
.lista li button { background: none; border: 0; color: var(--mu); font-size: 20px; padding: 0 4px; }
.erro { color: var(--vermelho); font-size: 14px; font-weight: 600; margin: 0; }
.erro[hidden] { display: none; }

.ordem { margin: 0; padding-left: 28px; text-align: left; font-size: 22px; font-weight: 700; line-height: 1.7; }
.times-res { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.times-res div { text-align: left; }
.times-res strong { display: block; font-size: 22px; font-weight: 800; line-height: 1.25; }

/* ---------- Folha "Como jogar" e pausa ---------- */
.fundo-folha { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 50; display: flex; align-items: flex-end; animation: aparece .2s; }
.fundo-folha.meio { align-items: center; justify-content: center; padding: 24px; }
.folha {
  background: var(--branco);
  width: 100%; max-width: 560px;
  margin: 0 auto;
  border-radius: 28px 28px 0 0;
  padding: 12px 22px calc(24px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow: auto;
  animation: sobe .28s cubic-bezier(.2, .9, .3, 1);
}
.meio .folha { border-radius: 28px; padding: 26px 22px; text-align: center; max-width: 360px; }
.alca { width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 14px; }
.folha h2 { margin: 2px 0 14px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.passos { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.passos li { display: flex; gap: 12px; align-items: flex-start; }
.passos li > b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tx); color: var(--branco); display: grid; place-items: center; font-size: 14px; }
.passos strong { display: block; font-size: 15px; }
.passos span { font-size: 13.5px; color: var(--mu); line-height: 1.4; }
.dica { display: flex; gap: 10px; align-items: center; background: var(--dica); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.4; margin-bottom: 14px; }
.dica i { font-size: 20px; }
@keyframes aparece { from { opacity: 0; } }
@keyframes sobe { from { transform: translateY(100%); } }

/* ---------- Contagem 3, 2, 1 ---------- */
.contagem { position: fixed; inset: 0; background: var(--tx); z-index: 60; display: grid; place-items: center; }
.contagem span { color: var(--lima); font-size: min(34vw, 170px); font-weight: 800; letter-spacing: -.04em; animation: bate .45s cubic-bezier(.2, 1.6, .4, 1); }
.contagem span.texto { font-size: min(18vw, 90px); }
@keyframes bate { from { transform: scale(.4); opacity: 0; } }

/* ---------- Confete ---------- */
.confete { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confete i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: cai linear forwards; }
@keyframes cai { to { transform: translateY(110vh) rotate(760deg); } }

/* ---------- Roleta ---------- */
.roleta { font-size: 64px; font-weight: 800; letter-spacing: -.03em; color: var(--laranja); line-height: 1; min-height: 70px; }

/* ---------- Jogos novos ---------- */
.frase { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }

/* Celular na testa: tela inteira, áreas grandes para tocar */
.testa { position: fixed; inset: 0; z-index: 20; background: var(--lima); display: flex; flex-direction: column; transition: background .2s; }
.testa.certo { background: var(--verde); }
.testa.passou { background: var(--vermelho); }
.testa-zona { flex: 0 0 20%; border: 0; background: rgba(0, 0, 0, .07); font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--tx); }
.testa-zona i { font-size: 26px; }
.testa-meio { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 0 18px; }
.testa-meio b { font-size: 26px; font-weight: 800; }
.testa-meio h2 { margin: 0; font-size: clamp(40px, 13vw, 76px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
body.tenso .testa { animation: none; }

/* Palavra proibida */
.proibidas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.proibidas span { background: var(--tx); color: var(--branco); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; text-decoration: line-through; text-decoration-color: var(--rosa); text-decoration-thickness: 2px; }

/* Desenha e adivinha */
.tempo-mini { font-size: 26px; font-weight: 800; min-width: 64px; }
body.tenso .tempo-mini { color: var(--vermelho); }
.quadro { position: relative; flex: 1; min-height: 300px; background: var(--branco); border: 4px solid var(--branco); border-radius: 20px; box-shadow: var(--sombra-adesivo); overflow: hidden; }
.quadro canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.ferramentas { display: flex; align-items: center; gap: 10px; justify-content: center; }
.tinta { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--branco); box-shadow: var(--sombra-leve); }
.tinta.ativo { outline: 3px solid var(--tx); outline-offset: 2px; }

/* Batata quente */
.bomba { font-size: 110px; line-height: 1; }
.bomba.pulsa { animation: pulsa .18s ease-out; }
@keyframes pulsa { 50% { transform: scale(1.15) rotate(-6deg); } }

/* Stop */
.letra { font-size: 140px; font-weight: 800; line-height: .9; color: var(--laranja); letter-spacing: -.04em; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cats span { background: var(--branco); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; box-shadow: var(--sombra-leve); }

/* Lista de nomes para tocar */
.nomes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nomes button { background: var(--branco); border: 0; border-radius: 16px; padding: 18px 12px; font-size: 18px; font-weight: 800; box-shadow: var(--sombra-leve); }
.nomes button:active { background: var(--amarelo); }
.nomes button.sem { grid-column: span 2; color: var(--mu); font-weight: 600; font-size: 15px; }

/* ---------- Páginas de venda e acesso (comprar, acesso, instalar, entrar, admin) ---------- */
.pagina { gap: 16px; padding-top: calc(28px + env(safe-area-inset-top)); }
.pagina section { display: flex; flex-direction: column; gap: 14px; }
.selo { display: inline-flex; align-items: center; gap: 6px; background: var(--amarelo); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 800; transform: rotate(-3deg); align-self: flex-start; }
.titulo-pag { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.texto-pag { margin: 0; font-size: 16px; color: #4b463e; line-height: 1.45; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mini div { background: var(--c); border: 4px solid var(--branco); border-radius: 18px; box-shadow: var(--sombra-adesivo); padding: 8px; display: flex; flex-direction: column; gap: 4px; min-height: 74px; font-size: 13px; font-weight: 800; line-height: 1.05; }
.mini div:nth-child(odd) { transform: rotate(-2deg); }
.mini div:nth-child(even) { transform: rotate(1.6deg); }
.mini i { font-size: 18px; }
.card { background: var(--branco); border-radius: 18px; padding: 16px; box-shadow: var(--sombra-leve); }
.card .passos { margin: 0; }
.preco { display: flex; align-items: baseline; gap: 8px; }
.preco b { font-size: 46px; font-weight: 800; letter-spacing: -.03em; }
.preco span { color: var(--mu); font-size: 14px; }
.lista-ok { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.lista-ok li { display: flex; gap: 8px; align-items: center; }
.lista-ok i { background: var(--lima); border-radius: 50%; padding: 3px; font-size: 14px; }
.campo-v { display: flex; flex-direction: column; gap: 6px; }
.campo-v label { font-size: 14px; font-weight: 700; }
.campo-v input { background: var(--branco); border: 2px solid var(--line); border-radius: 14px; padding: 14px; font-size: 17px; color: var(--tx); outline: none; }
.campo-v input:focus { border-color: var(--tx); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #4b463e; line-height: 1.4; }
.check input { width: 22px; height: 22px; accent-color: var(--tx); flex: none; margin: 0; }
.qr { width: 220px; height: 220px; margin: 0 auto; background: var(--branco); border-radius: 16px; padding: 12px; box-shadow: var(--sombra-leve); }
.qr svg { width: 100%; height: 100%; display: block; }
.copia { display: flex; align-items: center; gap: 8px; background: var(--branco); border-radius: 14px; padding: 10px 12px; box-shadow: var(--sombra-leve); }
.copia code { flex: 1; font-size: 12px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copia button { background: var(--tx); color: var(--branco); border: 0; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; flex: none; }
.btn.zap { background: #25D366; color: #08361b; }
.aviso { background: var(--dica); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.4; margin: 0; }
.abas { display: flex; background: var(--branco); border-radius: 999px; padding: 4px; box-shadow: var(--sombra-leve); }
.abas button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 11px; font-weight: 800; font-size: 15px; display: flex; gap: 6px; justify-content: center; align-items: center; }
.abas button.on { background: var(--tx); color: var(--branco); }
.ilus { background: var(--branco); border-radius: 18px; padding: 12px; box-shadow: var(--sombra-leve); }
.barra-safari { background: #f2f2f4; border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-around; font-size: 22px; color: #1a73e8; }
.barra-safari i.on { background: var(--amarelo); color: var(--tx); border-radius: 10px; padding: 4px 8px; outline: 3px solid var(--tx); }
.menu-ios { background: #f2f2f4; border-radius: 12px; overflow: hidden; font-size: 15px; }
.menu-ios div { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-bottom: 1px solid #e3e3e6; }
.menu-ios div.on { background: var(--amarelo); font-weight: 800; }
.tabela { display: flex; flex-direction: column; gap: 10px; }
.pedido { background: var(--branco); border-radius: 16px; padding: 14px; box-shadow: var(--sombra-leve); display: flex; flex-direction: column; gap: 8px; }
.pedido header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pedido header b { font-size: 18px; }
.etiqueta { border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 800; background: var(--amarelo); }
.etiqueta.pago { background: var(--lima); }
.pedido small { color: var(--mu); font-size: 13px; }
.pedido textarea { width: 100%; min-height: 120px; border: 2px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; font-size: 14px; user-select: text; -webkit-user-select: text; }
[hidden] { display: none !important; }
a.btn { text-decoration: none; }
