/* Resenha · visual Cítrico (ver CLAUDE.md, seção Design) */

/* Letra guardada no próprio site (terceiros/LEIA-ME.md), para abrir sem internet.
   Mesmos pesos que o Google Fonts declarava (400, 600 e 800), para o visual ficar igual. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400; font-display: swap; src: url("terceiros/bricolage/bricolage-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400; font-display: swap; src: url("terceiros/bricolage/bricolage-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("terceiros/bricolage/bricolage-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("terceiros/bricolage/bricolage-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("terceiros/bricolage/bricolage-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("terceiros/bricolage/bricolage-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

: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; }
/* Assinatura "by z.Elo" (logo da z.Elo v1, escolhido em 03/12/2026): todo produto da z.Elo leva o nome com "by z.Elo".
   O desenho vem de zelo/by-zelo.svg e pinta na cor do texto (currentColor), então segue o modo escuro. */
.by-zelo { display: block; height: 15px; aspect-ratio: 3210 / 848; margin-top: 7px; color: var(--mu);
  background: currentColor; -webkit-mask: url("zelo/by-zelo.svg") left center / contain no-repeat; mask: url("zelo/by-zelo.svg") left center / contain no-repeat; }
.marca + .by-zelo + .sub { margin-top: 8px; }
/* Assinatura colorida (zelo/assinatura.js, 03/12/2026): o SVG oficial entra no lugar da máscara de uma cor.
   Na primeira vez da página, as letras sobem uma a uma e o ponto verde acende por último, sem sair do lugar
   (a regra do logo não deixa separar o ponto do z). */
.by-zelo.cor { background: none; -webkit-mask: none; mask: none; }
.by-zelo.cor svg { display: block; height: 100%; width: auto; overflow: visible; }
.by-zelo.anima svg > g:first-child { animation: zeloSurge .45s ease-out both; }
.by-zelo.anima svg > g + g > path { animation: zeloLetra .5s cubic-bezier(.2, .9, .3, 1.3) both; transform-box: fill-box; }
.by-zelo.anima svg > g + g > path:nth-of-type(1) { animation-delay: .15s; }
.by-zelo.anima svg > g + g > path:nth-of-type(2) { animation-delay: .5s; }
.by-zelo.anima svg > g + g > path:nth-of-type(3) { animation-delay: .6s; }
.by-zelo.anima svg > g + g > path:nth-of-type(4) { animation-delay: .7s; }
.by-zelo.anima svg circle { transform-box: fill-box; transform-origin: center; animation: zeloPonto .7s cubic-bezier(.3, 1.6, .5, 1) .95s both, zeloBrilho 2.4s ease-in-out 2s 2; }
@keyframes zeloSurge { from { opacity: 0; } to { opacity: 1; } }
@keyframes zeloLetra { from { opacity: 0; transform: translateY(45%); } to { opacity: 1; transform: none; } }
@keyframes zeloPonto { 0% { transform: scale(0); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes zeloBrilho { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .by-zelo.anima svg *, .by-zelo.anima svg > g { animation: none !important; } }
.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);
}
/* "Adicionar jogadores" é botão: alvo de dedo de 42 px (auditoria de 03/12/2026, pontos do João) */
.chip-add { min-height: 42px; padding: 9px 15px; font-size: 15px; }
.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 { flex: none; width: 42px; height: 42px; 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: 15px; text-decoration: underline; padding: 6px 10px; min-height: 44px; 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; } }
/* Carta que vira (Eu Nunca, Mais provável, Verdade ou Desafio) e bomba que treme (Batata quente) */
.vira { animation: vira .45s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes vira { 0% { transform: perspective(900px) rotateY(-80deg) scale(.92); opacity: 0; } 60% { transform: perspective(900px) rotateY(6deg); opacity: 1; } }
.treme { animation: treme .7s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes treme {
  0% { transform: scale(.5); opacity: 0; } 14% { transform: scale(1.12) rotate(-3deg); opacity: 1; }
  24%, 48%, 72% { transform: translateX(-9px) rotate(-2deg); } 36%, 60%, 84% { transform: translateX(9px) rotate(2deg); } 100% { transform: none; }
}

/* ---------- 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: 10px; }
/* Botões de escolha com pelo menos 46 px de altura (auditoria dos ajustes do João, 03/12/2026: tinham 38 px) */
.opcao { background: var(--branco); border: 0; border-radius: 999px; padding: 12px 18px; min-height: 46px; min-width: 52px; font-size: 16px; font-weight: 600; box-shadow: var(--sombra-leve); }
.opcao.ativo { background: var(--tx); color: var(--branco); box-shadow: none; }
/* Escolha do tempo em cartões grandes com reloginho (pedido do João, 03/12/2026) */
.tempos { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 10px; }
.tempo-op { background: var(--branco); color: var(--tx); border: 0; border-radius: 22px; padding: 16px 6px 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--sombra-leve); font: inherit; transition: transform .1s; }
.tempo-op:active { transform: scale(.95); }
.tempo-op b { font-size: 32px; font-weight: 800; line-height: 1; margin-top: 6px; }
.tempo-op > span:last-child { font-size: 13px; font-weight: 600; color: var(--mu); }
.tempo-op .relogio { width: 40px; height: 40px; border-radius: 50%; border: 3px solid currentColor; background: conic-gradient(var(--laranja) var(--p), transparent 0); position: relative; }
.tempo-op .relogio::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: currentColor; }
.tempo-op.ativo { background: var(--tx); color: var(--branco); box-shadow: none; }
.tempo-op.ativo > span:last-child { color: inherit; opacity: .75; }
.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;
  overscroll-behavior: contain; /* rolar a folha não rola a página de trás */
  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; }
/* Aviso de assinatura perto de vencer, no início do app (leva para /comprar) */
.dica.renovar { color: inherit; text-decoration: none; font-weight: 600; }
@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 #fff; box-shadow: var(--sombra-leve); flex: none; } /* borda branca também no escuro: a tinta preta não some */
/* 12 cores: duas fileiras de 6, e o apagar ao lado */
.ferramentas { flex-wrap: nowrap; }
.ferramentas .paleta { display: grid; grid-template-columns: repeat(6, 34px); gap: 8px 10px; }
.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; }
/* Tela de entrada (03/12/2026): ícone e nome em cima, faixa de adesivos que entra pulando,
   cartão de quem já tem conta e as duas saídas de quem chegou agora */
.entrada { gap: 18px; }
.cabeca-entrada { display: flex; align-items: center; gap: 14px; }
.icone-entrada { width: 64px; height: 64px; border-radius: 18px; box-shadow: var(--sombra-adesivo); transform: rotate(-4deg); animation: entraIcone .6s cubic-bezier(.3, 1.5, .5, 1) both; }
.cabeca-entrada .by-zelo { height: 20px; margin-top: 8px; }
.faixa-adesivos { display: flex; justify-content: space-between; gap: 6px; }
.faixa-adesivos i { width: 48px; height: 48px; border-radius: 14px; background: var(--c); border: 3px solid var(--branco); box-shadow: var(--sombra-adesivo); display: grid; place-items: center; font-size: 24px; color: #111; animation: entraAdesivo .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.faixa-adesivos i:nth-child(odd) { --giro: -7deg; }
.faixa-adesivos i:nth-child(even) { --giro: 6deg; }
.faixa-adesivos i { transform: rotate(var(--giro)); }
.faixa-adesivos i:nth-child(1) { animation-delay: .1s; }
.faixa-adesivos i:nth-child(2) { animation-delay: .18s; }
.faixa-adesivos i:nth-child(3) { animation-delay: .26s; }
.faixa-adesivos i:nth-child(4) { animation-delay: .34s; }
.faixa-adesivos i:nth-child(5) { animation-delay: .42s; }
.faixa-adesivos i:nth-child(6) { animation-delay: .5s; }
@keyframes entraAdesivo { from { opacity: 0; transform: translateY(18px) scale(.6) rotate(0deg); } to { opacity: 1; transform: rotate(var(--giro)); } }
@keyframes entraIcone { from { opacity: 0; transform: scale(.5) rotate(-20deg); } to { opacity: 1; transform: rotate(-4deg); } }
.frase-entrada { margin: 0; font-size: 18px; line-height: 1.35; color: #4b463e; }
.frase-entrada b { color: var(--tx); }
.porta { display: flex; flex-direction: column; gap: 12px; }
.porta .link-btn { margin: -4px 0; }
.mini-aviso { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--mu); line-height: 1.4; }
.mini-aviso i { font-size: 15px; margin-top: 1px; }
.porta-nova { display: flex; flex-direction: column; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .icone-entrada, .faixa-adesivos i { animation: none; } }

/* Página "Conheça o Resenha" (03/12/2026): três números em adesivos e a lista dos jogos com quantas cartas cada um tem */
.destaques { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.destaques div { background: var(--c); border: 4px solid var(--branco); border-radius: 18px; box-shadow: var(--sombra-adesivo); padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.destaques div:nth-child(odd) { transform: rotate(-2deg); }
.destaques div:nth-child(even) { transform: rotate(1.6deg); }
.destaques b { white-space: nowrap; font-size: clamp(17px, 5.4vw, 24px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.destaques span { font-size: 13px; font-weight: 700; }
.lista-jogos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lista-jogos li { display: flex; align-items: center; gap: 12px; background: var(--branco); border-radius: 16px; padding: 10px 12px; box-shadow: var(--sombra-leve); }
.lista-jogos li > i { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--c); display: grid; place-items: center; font-size: 22px; }
.lista-jogos li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lista-jogos strong { font-size: 15px; }
.lista-jogos span { font-size: 13px; color: var(--mu); line-height: 1.35; }
.lista-jogos em { align-self: flex-start; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 800; background: var(--c); border-radius: 999px; padding: 3px 9px; }
.passos li > b > i { font-size: 16px; }
.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); }
.etiqueta.bloqueado { background: #111; color: #fff; }
/* Admin: assinaturas que vencem nos próximos 30 dias */
.vencendo { display: grid; gap: 10px; }
.linha-venc { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.linha-venc > div { flex: 1; min-width: 0; }
.linha-venc small { display: block; color: var(--mu); font-size: 13px; }
.btn.mini { width: auto; max-width: 132px; flex: none; padding: 8px 12px; font-size: 13px; margin: 0; }
.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: 16px; user-select: text; -webkit-user-select: text; }
[hidden] { display: none !important; }
a.btn { text-decoration: none; }

/* ---------- Favoritos e notas ---------- */
.adesivo { position: relative; }
.coracao { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .55); display: grid; place-items: center; font-size: 18px; }
.coracao.on { background: var(--branco); color: var(--rosa); }
.adesivo:last-child:nth-child(odd) .coracao { top: 50%; transform: translateY(-50%); right: 10px; }

/* ---------- Sobre o jogo (ícone do cartão) ---------- */
/* O ícone é um botão próprio: área de toque maior que o círculo, sem mudar o desenho do cartão */
.adesivo .ic { position: relative; }
.adesivo .ic::after { content: ""; position: absolute; inset: -8px; }
.adesivo .ic:active { transform: scale(.9); }
.sobre-cab { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.sobre-cab .rot { margin: 0; }
.sobre-cab h2 { margin: 0; }
.sobre-ic { flex: none; width: 58px; height: 58px; border-radius: 18px; background: var(--c); color: #111; border: 3px solid #fff; box-shadow: var(--sombra-adesivo); display: grid; place-items: center; font-size: 30px; transform: rotate(-3deg); }
.sobre-txt { margin: 0 0 14px; font-size: 16px; line-height: 1.45; }
.sobre-fatos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.sobre-fatos div { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.sobre-fatos i { font-size: 22px; }
.sobre-fatos span { font-size: 15px; font-weight: 800; line-height: 1.2; }
.sobre-fatos small { display: block; font-size: 11.5px; font-weight: 600; color: var(--mu); }
.estrelas { display: flex; justify-content: center; gap: 6px; margin: 4px 0 10px; }
.estrelas button { background: none; border: 0; font-size: 42px; color: var(--line); padding: 2px; }
.estrelas button.on { color: var(--amarelo); }
.estrelas button:active { transform: scale(.9); }

/* ---------- Painel de administração ---------- */
.numeros { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.numero { background: var(--branco); border-radius: 16px; padding: 12px 14px; box-shadow: var(--sombra-leve); display: flex; flex-direction: column; gap: 2px; }
.numero small { font-size: 12.5px; color: var(--mu); }
.numero b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.numero span { font-size: 12px; color: var(--mu); }
.ranking { display: flex; flex-direction: column; gap: 10px; }
.linha-jogo { background: var(--branco); border-radius: 16px; padding: 12px 14px; box-shadow: var(--sombra-leve); display: flex; flex-direction: column; gap: 6px; }
.topo-jogo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.topo-jogo span { font-size: 13px; color: var(--mu); white-space: nowrap; }
.barra { height: 8px; border-radius: 8px; background: var(--bg); overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--laranja); border-radius: 8px; }
.linha-jogo small { font-size: 12.5px; color: var(--mu); }

/* Termos de uso e política de privacidade */
.doc article { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; color: #2b2823; }
.doc article h2 { margin: 14px 0 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--tx); }
.doc article p, .doc article ul, .doc article ol { margin: 0; }
.doc article ul, .doc article ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc article a { color: var(--tx); }
.doc-tabela { display: flex; flex-direction: column; gap: 10px; }
.doc-tabela dl { margin: 0; padding: 12px 14px; background: var(--branco); border-radius: 14px; box-shadow: var(--sombra-leve); display: grid; gap: 2px; }
.doc-tabela dt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--mu); margin-top: 6px; }
.doc-tabela dt:first-child { margin-top: 0; }
.doc-tabela dd { margin: 0; }
.doc .titulo-pag { font-size: 32px; overflow-wrap: anywhere; }

/* Guia do iPhone em instalar.html: seta pulando para a barra do Safari */
.fundo-folha[hidden] { display: none; }
.seta-guia { position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--amarelo); color: var(--tx); display: grid; place-items: center; font-size: 30px; box-shadow: var(--sombra-leve); animation: pula-seta 1s ease-in-out infinite; }
@keyframes pula-seta { 50% { transform: translate(-50%, 10px); } }
.folha + .seta-guia { pointer-events: none; }
#guia .folha { margin-bottom: 76px; border-radius: 26px; }

/* ---------- Administração: entrada, topo, cartões coloridos, gráfico (03/12/2026) ---------- */
.adm #entrada { display: flex; flex-direction: column; gap: 14px; }
.adm #entrada[hidden], .adm #painel[hidden] { display: none; }
.adm #painel { display: flex; flex-direction: column; gap: 14px; }
.adm-capa { position: relative; display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.adm-logo { width: 96px; height: 96px; border-radius: 26px; border: 5px solid var(--branco); box-shadow: var(--sombra-adesivo); transform: rotate(-5deg); }
.adm-fita { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-fita i { width: 22px; height: 22px; border-radius: 7px; background: var(--c); border: 3px solid var(--branco); box-shadow: var(--sombra-leve); display: block; }
.adm-fita i:nth-child(odd) { transform: rotate(-8deg); }
.adm-fita i:nth-child(even) { transform: rotate(7deg) translateY(4px); }
.adm .rodape { margin-top: -4px; }

.adm-topo { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.adm-topo img { width: 46px; height: 46px; border-radius: 13px; border: 3px solid var(--branco); box-shadow: var(--sombra-leve); transform: rotate(-4deg); }
.adm-topo div { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.adm-topo b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.adm-topo small { font-size: 13px; color: var(--mu); }
.girando i { animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

.numero.cor { background: var(--c); border: 4px solid var(--branco); box-shadow: var(--sombra-adesivo); border-radius: 18px; position: relative; transform: rotate(-.8deg); }
.numero.cor:nth-child(even) { transform: rotate(.8deg); }
.numero.cor > i { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--branco); display: grid; place-items: center; font-size: 17px; }
.numero.cor small, .numero.cor span { color: rgba(0, 0, 0, .68); }
.numero.cor small { font-weight: 700; padding-right: 34px; }

.adm-grafico { display: flex; flex-direction: column; gap: 12px; }
.adm-legenda { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; }
.adm-legenda span { display: flex; align-items: center; gap: 5px; }
.adm-legenda span i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); display: block; }
.adm-legenda em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--mu); }
.colunas { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 130px; }
.coluna { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.hastes { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 2px solid var(--bg); }
.hastes i { width: 45%; max-width: 10px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--c); display: block; }
.coluna small { font-size: 10.5px; color: var(--mu); height: 12px; }

.adm-funil { display: flex; flex-direction: column; gap: 12px; }
.adm-funil .etapa { display: flex; flex-direction: column; gap: 6px; }
.adm-funil .barra { height: 14px; }
.adm-funil .topo-jogo span { font-weight: 700; color: var(--tx); }
.pos { font-style: normal; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--c); font-size: 13px; margin-right: 8px; border: 2px solid var(--branco); box-shadow: var(--sombra-leve); }

.adm-busca { display: flex; align-items: center; gap: 8px; background: var(--branco); border: 2px solid var(--line); border-radius: 14px; padding: 0 14px; }
.adm-busca:focus-within { border-color: var(--tx); }
.adm-busca i { color: var(--mu); font-size: 20px; }
.adm-busca input { flex: 1; border: 0; outline: none; background: none; padding: 13px 0; font-size: 16px; min-width: 0; }
#filtros .opcao { padding: 8px 13px; font-size: 14px; }
#filtros .opcao em { font-style: normal; opacity: .6; margin-left: 2px; }
.adm-dica { font-size: 14px; color: var(--mu); }
.pedido { border-left: 6px solid var(--amarelo); }
.pedido.pago { border-left-color: var(--lima); }
.pedido.teste { border-left-color: var(--azul); }
.pedido.bloqueado { border-left-color: var(--tx); }
.etiqueta.teste { background: var(--azul); color: var(--branco); }
.etiqueta.vencido { background: var(--line); color: var(--mu); }
.adm-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; }
.resultado { display: flex; flex-direction: column; gap: 8px; }
#folhaTeste .folha { display: flex; flex-direction: column; gap: 12px; }
#folhaTeste h2 { margin: 0; }
#tResultado textarea { width: 100%; min-height: 130px; border: 2px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; font-size: 16px; user-select: text; -webkit-user-select: text; }
.aviso i { font-size: 18px; vertical-align: -3px; }
.numeros .numero.cor:last-child:nth-child(odd) { grid-column: span 2; }
.abas button { font-size: 14px; gap: 5px; padding: 11px 6px; }
.linha-reg { display: flex; gap: 10px; align-items: flex-start; background: var(--branco); border-radius: 14px; padding: 10px 12px; box-shadow: var(--sombra-leve); }
.linha-reg > i { font-size: 18px; margin-top: 2px; color: var(--mu); }
.linha-reg div { display: flex; flex-direction: column; gap: 2px; }
.linha-reg b { font-size: 14.5px; }
.linha-reg small { font-size: 12.5px; color: var(--mu); }
.linha-reg.alerta { background: #FFE9E3; }
.linha-reg.alerta > i { color: var(--vermelho); }
.link-btn.apagar { color: var(--vermelho); font-size: 13px; }

/* ---------- Cara de app (03/12/2026) ---------- */
/* A página não estica nem recarrega ao puxar: só o conteúdo rola, como num app */
html:has(> body.app), body.app { overscroll-behavior: none; }
/* Sem zoom de toque duplo e sem o menu de copiar ao segurar o dedo */
body.app { touch-action: manipulation; -webkit-touch-callout: none; overflow-x: clip; }
/* Cada elemento também pede o mesmo (o iPhone olha o elemento tocado). :where não pesa: o quadro de desenho e o segurar continuam com touch-action: none */
:where(body.app, body.app *) { touch-action: manipulation; }
/* Pergunta com o visual do app (perguntar em app.js), acima de qualquer folha */
.fundo-folha.pergunta { z-index: 65; }
.pergunta .folha { display: flex; flex-direction: column; gap: 10px; }
.pergunta h2 { font-size: 24px; line-height: 1.15; margin: 0 0 8px; }

/* Transição entre telas (animarTroca em app.js) */
#tela.vai { animation: tela-vai .26s cubic-bezier(.2, .8, .2, 1); }
#tela.volta { animation: tela-volta .26s cubic-bezier(.2, .8, .2, 1); }
#tela.troca { animation: tela-troca .18s ease-out; }
@keyframes tela-vai { from { transform: translateX(34%); opacity: 0; } }
@keyframes tela-volta { from { transform: translateX(-34%); opacity: 0; } }
@keyframes tela-troca { from { opacity: 0; transform: translateY(8px); } }
.fundo-folha .folha { animation: sobe .28s cubic-bezier(.2, .8, .2, 1); }

/* Botão que afunda ao toque */
.redondo, .opcao, .chip-add, .nomes button, .lista li button, .link-btn { transition: transform .1s; }
.redondo:active, .opcao:active, .chip-add:active, .nomes button:active { transform: scale(.92); }
.link-btn:active { transform: scale(.96); }
.btn:active { transform: scale(.96); }

/* Aviso de versão nova */
.novidade {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70;
  transform: translateX(-50%); width: min(92vw, 420px);
  display: flex; align-items: center; gap: 10px;
  border: 0; border-radius: 18px; padding: 14px 16px;
  background: #111; color: #fff; font-size: 14.5px; font-weight: 600; text-align: left;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .55);
  animation: novidade .35s cubic-bezier(.2, 1.4, .4, 1);
}
.novidade i { font-size: 22px; color: var(--lima); }
@keyframes novidade { from { transform: translate(-50%, 140%); } }

/* Convite para instalar (início, fora do app instalado). O X esconde por 14 dias. */
.faixa-instalar { display: flex; align-items: stretch; gap: 4px; background: var(--tx); color: var(--bg); border-radius: 18px; box-shadow: var(--sombra-adesivo); }
.faixa-ir { flex: 1; display: flex; align-items: center; gap: 12px; background: none; border: 0; color: inherit; text-align: left; padding: 12px 4px 12px 14px; }
.faixa-ir > i { font-size: 26px; color: var(--lima); flex: none; }
.faixa-ir b { display: block; font-size: 15px; font-weight: 800; }
.faixa-ir small { display: block; font-size: 12.5px; opacity: .75; line-height: 1.3; margin-top: 2px; }
.faixa-x { background: none; border: 0; color: inherit; opacity: .7; padding: 0 14px; font-size: 20px; }

/* Configurações: linhas com ícone, texto e interruptor */
.conf { display: flex; flex-direction: column; gap: 10px; }
.conf .rot { margin-top: 8px; }
.conf-grupo { background: var(--branco); border-radius: 20px; box-shadow: var(--sombra-leve); overflow: hidden; }
.linha-conf { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: none; border: 0; color: inherit; text-align: left; text-decoration: none; font: inherit; }
.linha-conf + .linha-conf { border-top: 1.5px solid var(--line); }
.linha-conf > i:first-child { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 19px; }
.linha-conf span { flex: 1; min-width: 0; }
.linha-conf b { display: block; font-size: 16px; font-weight: 800; }
.linha-conf small { display: block; font-size: 13px; color: var(--mu); line-height: 1.35; margin-top: 2px; }
.linha-conf .seta { color: var(--mu); font-size: 18px; }
.linha-conf:active { background: var(--bg); }
.linha-conf:disabled { opacity: .6; }
.linha-conf.perigo b, .linha-conf.perigo > i:first-child { color: var(--vermelho); }
.interruptor { flex: none; position: relative; width: 52px; height: 32px; border-radius: 999px; background: var(--line); transition: background .2s; }
.interruptor::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.interruptor.on { background: var(--lima); }
.interruptor.on::after { transform: translateX(20px); }
.versao { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--mu); }
/* Folha "Quer receber avisos?" */
.sino { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--amarelo); color: #111; font-size: 28px; margin: 4px 0 10px; transform: rotate(-8deg); }

/* Troca entre páginas (entrar, comprar, acesso, instalar, app) com transição nativa, onde o navegador tem.
   Dentro do app as telas continuam com a animação própria (animarTroca em app.js). */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  #tela.vai, #tela.volta, #tela.troca, .fundo-folha .folha, .novidade, .interruptor, .interruptor::after, .entra, .vira, .treme { animation: none; transition: none; }
  @view-transition { navigation: none; }
}

/* Modo escuro, só dentro do app (as telas de venda e o admin seguem claras). Os adesivos mantêm
   as cores da paleta Cítrico, com borda branca e texto preto, como adesivo de verdade. */
@media (prefers-color-scheme: dark) {
  body.app {
    --bg: #151412;
    --dot: #2B2925;
    --line: #3B3832;
    --tx: #F4F1EA;
    --mu: #A9A296;
    --branco: #24221F;
    --sombra-adesivo: 0 8px 18px -8px rgba(0, 0, 0, .8);
    --sombra-leve: 0 2px 0 #0C0B0A;
    color-scheme: dark;
  }
  body.app .adesivo, body.app .cartao, body.app .mini div { color: #111; border-color: #fff; }
  body.app .adesivo .ic, body.app .coracao.on { background: #fff; }
  body.app .cartao.escuro { --c: #111; color: #fff; }
  body.app .placar .on, body.app .dica, body.app .aviso, body.app .btn.lima { color: #111; }
  body.app .faixa-instalar { background: #F4F1EA; color: #111; }
  body.app .faixa-ir > i { color: #111; }
  body.app .btn.rosa { color: #fff; }
  body.app .contagem { background: #111; }
  body.app .quadro { background: #fff; border-color: #fff; }
  body.app .testa-zona { background: rgba(255, 255, 255, .07); }
  body.app .texto-pag, body.app .check { color: var(--mu); }
}

/* Celular deitado: o iPhone não deixa o site travar a tela em pé, então o app pede para virar.
   Todos os jogos são em pé. O Celular na testa fica de fora, porque inclinar a tela no meio do jogo
   pode virar a tela por um instante. */
/* A largura mínima evita o aviso quando o teclado do Android encolhe a tela em pé */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 560px) {
  body.app:not(:has(.testa))::before {
    content: "Vire o celular em pé para jogar";
    position: fixed; inset: 0; z-index: 80;
    display: grid; place-items: center; padding: 24px; text-align: center;
    background: var(--bg); color: var(--tx);
    font-size: 22px; font-weight: 800;
  }
}

/* ---------- Ocasiões, "O que vamos jogar?" e nível das cartas (03/12/2026) ---------- */
/* Filtro por ocasião: uma fileira que rola de lado, sem barra. Um jogo pode estar em várias. */
.btn.sugerir { background: var(--laranja); color: #111; margin-top: 2px; }
.ocasioes { display: flex; gap: 6px; overflow-x: auto; margin: -4px -18px 0; padding: 2px 18px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.ocasioes::-webkit-scrollbar { display: none; }
.ocasiao { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--branco); color: var(--tx); border: 0; border-radius: 999px; padding: 10px 15px; min-height: 42px; font: inherit; font-size: 15px; font-weight: 700; box-shadow: var(--sombra-leve); transition: transform .1s; }
.ocasiao i { font-size: 17px; }
.ocasiao.ativo { background: var(--tx); color: var(--bg); box-shadow: none; }
.ocasiao:active { transform: scale(.94); }

/* Seletor de nível no Eu Nunca, Verdade ou Desafio e Mais provável */
.niveis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--branco); border-radius: 999px; padding: 4px; box-shadow: var(--sombra-leve); }
.nivel { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; background: none; color: var(--mu); border-radius: 999px; padding: 8px 4px; min-height: 42px; font: inherit; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.nivel i { font-size: 17px; }
.nivel.ativo { background: var(--tx); color: var(--bg); }
.nivel.n-picante.ativo { background: var(--rosa); color: #fff; }
.nivel.n-criancas.ativo { background: var(--verde); color: #111; }
.nivel.n-natal.ativo { background: var(--lima); color: #111; }
/* Na temporada de fim de ano são 4 níveis: a largura segue o nome e o ícone sai para caber no celular */
/* 4 ou 5 níveis: duas fileiras com letra de leitura fácil (antes cabiam numa fileira com letra de 11,5 px) */
.niveis.n4, .niveis.n5 { border-radius: 24px; }
.niveis.n4 { grid-template-columns: repeat(2, 1fr); }
.niveis.n4 .nivel { font-size: 14.5px; padding: 8px 6px; }
.niveis.n4 .nivel i { display: none; }
.niveis.n5 { grid-template-columns: repeat(6, 1fr); }
.niveis.n5 .nivel { grid-column: span 2; font-size: 14.5px; padding: 8px 4px; }
.niveis.n5 .nivel:nth-child(n+4) { grid-column: span 3; }
.niveis.n5 .nivel i { display: none; }
.nomes.amigo button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.nomes.amigo button.visto { background: none; box-shadow: inset 0 0 0 2px var(--mu); color: var(--mu); }

/* Folha de sugestão */
.contador { display: flex; align-items: center; gap: 18px; }
.contador b { font-size: 30px; font-weight: 800; min-width: 2ch; text-align: center; }
#folha .grupo { margin-bottom: 14px; }
.sugestoes { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.sugestao { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--bg); color: var(--tx); border: 0; border-radius: 18px; padding: 10px 14px 10px 10px; font: inherit; transition: transform .1s; }
.sugestao .sobre-ic { width: 48px; height: 48px; font-size: 24px; border-radius: 15px; }
.sugestao span:not(.sobre-ic) { flex: 1; min-width: 0; }
.sugestao b { display: block; font-size: 18px; font-weight: 800; }
.sugestao small { display: block; font-size: 13px; color: var(--mu); line-height: 1.3; }
.sugestao .seta { font-size: 22px; }
.sugestao:active { transform: scale(.97); }
@media (prefers-color-scheme: dark) {
  body.app .btn.sugerir { color: #111; }
}
#folha .rot.ajuste { margin: 18px 0 10px; padding-top: 14px; border-top: 1.5px solid var(--line); }

/* Amigo ladrão */
.lista.presentes li { font-weight: 500; }
.lista.presentes li span { flex: 1; }
.lista.presentes li small { color: var(--mu); font-size: 13px; white-space: nowrap; }
.nomes.roubo button { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.nomes.roubo button small { font-size: 13px; font-weight: 600; color: var(--mu); }
.ordem.sem-numero { list-style: none; padding: 0; font-size: 18px; line-height: 1.6; }

/* Som: divertido, discreto ou mudo */
.som-modo .modos { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.som-modo .modos .opcao { padding: 7px 12px; font-size: 14px; }

/* Quem me conhece (03/12/2026) */
.nomes.dupla button.ativo { background: var(--tx); color: var(--branco); }
.duas-respostas { display: grid; gap: 12px; width: 100%; }
.duas-respostas .cartao { min-height: 0; padding: 18px; }
.vira.atraso { animation-delay: .35s; animation-fill-mode: backwards; }
.surge { animation: surge .45s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes surge { from { transform: scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .surge, .vira.atraso { animation: none; } }

/* Placar da noite */
.noite-btn { display: flex; align-items: center; gap: 10px; }
.noite-btn span { flex: 1; text-align: left; }
.noite-btn small { font-size: 13px; font-weight: 600; color: var(--mu); }
.faixa-noite { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; padding: 14px 16px; border: 0; border-radius: 16px;
  background: var(--lima); color: var(--tx); font: inherit; font-size: 15px; text-align: left; box-shadow: var(--sombra-leve); }
.faixa-noite span { flex: 1; }
.faixa-noite .ti { font-size: 22px; }
.noite-escolha { margin: 0 0 12px; }
.noite-escolha .rot { margin: 0 0 8px; }
.noite-escolha .btn { margin-top: 10px; }
.podio { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 18px 0 8px; min-height: 280px; }
.degrau { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: stretch; text-align: center; }
.podio-nomes { margin: 0 0 8px; font-weight: 800; font-size: 18px; line-height: 1.2; word-break: break-word;
  opacity: 0; animation: sobeNome .4s ease-out forwards; animation-delay: calc(var(--atraso) + .45s); }
@keyframes sobeNome { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.degrau .bloco { background: var(--c); color: #111; border-radius: 18px 18px 6px 6px; padding: 14px 6px; display: flex; flex-direction: column; justify-content: flex-start;
  transform-origin: bottom; transform: scaleY(0); animation: sobeDegrau .55s cubic-bezier(.2,1.4,.4,1) forwards; animation-delay: var(--atraso); box-shadow: var(--sombra-leve); }
.degrau .bloco b { font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.degrau .bloco small { font-size: 13px; font-weight: 600; margin-top: 4px; }
.degrau.d1 .bloco { height: 170px; }
.degrau.d2 .bloco { height: 125px; }
.degrau.d3 .bloco { height: 95px; }
@keyframes sobeDegrau { to { transform: scaleY(1); } }
.noite-resto { font-size: 17px; }
.noite-jogos li span { flex: 1; color: var(--mu); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .degrau .bloco { animation: none; transform: none; }
  .podio-nomes { animation: none; opacity: 1; }
}

/* Termômetro */
.termo { width: 100%; margin: 14px 0 6px; }
.termo-barra { position: relative; height: 22px; border-radius: 11px; background: linear-gradient(90deg, #4FC3F7, var(--lima) 50%, var(--laranja)); box-shadow: var(--sombra-leve); }
.termo-pontas { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-weight: 800; font-size: 16px; line-height: 1.2; }
.termo-pontas span { display: flex; flex-direction: column; max-width: 48%; }
.termo-pontas span:last-child { text-align: right; align-items: flex-end; }
.termo-pontas b { font-size: 13px; color: var(--mu); font-weight: 600; }
.termo-num { margin: 0; font-size: 96px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--laranja); }
.termo-chute { width: 100%; height: 44px; margin: 4px 0 0; accent-color: var(--tx); }
.termo-marca { position: absolute; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 4px solid var(--branco); box-shadow: var(--sombra-leve); display: inline-block; }
.termo-marca.chute { background: var(--tx); animation: surge .35s ease-out backwards; }
.termo-marca.certo { background: var(--rosa); animation: surge .35s ease-out .3s backwards; }
.termo-legenda { display: flex; gap: 18px; justify-content: center; font-weight: 600; font-size: 14px; margin: 8px 0 12px; }
.termo-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.termo-legenda .termo-marca { position: static; margin: 0; width: 16px; height: 16px; border-width: 2px; animation: none; }

/* Este ou aquele */
.dilema { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; flex: 1; justify-content: center; }
.lado { border-radius: 26px; padding: 26px 20px; min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 6px; box-shadow: var(--sombra-leve); color: #111; }
.lado small { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.lado b { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.lado-a { background: var(--lima); }
.lado-b { background: var(--laranja); text-align: right; }
.ou { align-self: center; margin: -16px 0; z-index: 1; background: var(--tx); color: var(--bg); font-weight: 800; font-size: 20px; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--sombra-leve); }
@media (prefers-reduced-motion: reduce) { .termo-marca.chute, .termo-marca.certo { animation: none; } }

/* Cartas da turma */
.chip-turma { align-self: center; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--branco); font-weight: 700; font-size: 14px; box-shadow: var(--sombra-leve); }
.turma-form { display: flex; flex-direction: column; gap: 10px; }
.turma-lista li span { display: flex; flex-direction: column; gap: 2px; }
.turma-lista li small { font-weight: 600; font-size: 13px; color: var(--mu); }
.redondo.mini { width: 36px; height: 36px; flex: none; font-size: 18px; box-shadow: none; background: var(--bg); }

/* Animações da rodada de 03/12/2026: placar que pula, times que aparecem um nome por vez, nome da vez que entra */
.placar b { display: inline-block; position: relative; transform-origin: left center; }
.placar b.pulo { animation: pulo .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pulo { 40% { transform: scale(1.35); } }
.placar b.pulo::after { content: attr(data-dif); position: absolute; left: 100%; top: 2px; margin-left: 6px; font-size: 17px; pointer-events: none; animation: flutua .9s ease-out forwards; }
.placar b.mais::after { color: #1A8F3A; }
.placar b.menos::after { color: var(--rosa); }
@keyframes flutua { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-24px); } }
.nome-fila { display: inline-block; animation: surge .35s cubic-bezier(.2, 1.4, .4, 1) backwards; animation-delay: calc(var(--i) * .12s + .25s); }
.nome-grande { animation: surge .45s cubic-bezier(.2, 1.4, .4, 1) backwards; }
@media (prefers-reduced-motion: reduce) {
  .placar b.pulo, .placar b.pulo::after, .nome-fila, .nome-grande, .surge, .vira.atraso { animation: none; }
  .placar b.pulo::after { display: none; }
}

/* Amigo secreto e ladrão: duas escolhas, cada uma com a sua explicação */
.escolha-presente { width: 100%; border: 0; border-radius: 22px; padding: 20px; background: var(--c); color: #111; text-align: left; font: inherit;
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: center; box-shadow: var(--sombra-leve); transition: transform .1s; }
.escolha-presente:active { transform: scale(.97); }
.escolha-presente .ti { grid-row: span 2; font-size: 34px; }
.escolha-presente b { font-size: 22px; letter-spacing: -.02em; }
.escolha-presente small { font-size: 15px; line-height: 1.35; opacity: .8; }

/* Palavra proibida: o cartão só chacoalha (o .treme antigo some e volta, serve para outra coisa) */
.chacoalha { animation: chacoalha .4s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes chacoalha { 20%, 60% { transform: translateX(-9px) rotate(-2deg); } 40%, 80% { transform: translateX(9px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .chacoalha { animation: none; } }
