/* Participante: 390×844 de referência, uma ação por tela, alvos ≥ 44 px.
   O mesmo link e as mesmas telas em qualquer aparelho: em telas grandes (tablet, iPad),
   coluna centralizada de até ~560 px com tipografia ~20% maior. */
body { min-height: 100dvh; }
.cel {
  max-width: 480px; margin: 0 auto; min-height: 100dvh;
  padding: max(22px, env(safe-area-inset-top)) 22px max(26px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 18px;
}
@media (min-width: 700px) {
  .cel { zoom: 1.2; max-width: 467px; min-height: calc(100dvh / 1.2); }
}
.carregando { margin: auto; }

.cab-etapa { display: flex; justify-content: space-between; align-items: center; min-height: 26px; }
.progresso { display: flex; gap: 6px; }
.progresso span { flex: 1 1 0; height: 3px; border-radius: 2px; background: var(--borda); }
.progresso span.on { background: var(--azul-50); }

h1 { margin: 0; font-family: var(--serif); font-size: 29px; line-height: 1.18; font-weight: 400; }
.sub { font-size: 16px; color: var(--apoio); line-height: 1.45; margin: 0; }
.pergunta { font-family: var(--serif); font-size: 18px; line-height: 1.35; }
.bloco { display: flex; flex-direction: column; gap: 10px; }
.espaco { margin-top: auto; }

.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grade-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.opcao {
  min-height: 50px; border-radius: 12px; border: 1px solid var(--borda-2); background: var(--card);
  color: var(--texto); font-size: 15px; padding: 0 8px; transition: transform .08s ease;
}
.opcao:active { transform: scale(.95); }
.opcao.sel { border: 2px solid var(--azul-50); font-weight: 700; }
.nota { min-height: 52px; font-family: var(--serif); font-size: 20px; }
.nota.sel { background: var(--azul); }
.escala { display: flex; justify-content: space-between; font-size: 12px; color: var(--legenda); }

.btn-principal {
  min-height: 56px; border-radius: 999px; border: none; background: var(--azul);
  color: #fff; font-size: 18px; font-weight: 700; width: 100%; flex-shrink: 0; transition: transform .08s ease;
}
.btn-principal:active:not(:disabled) { transform: scale(.95); }
.btn-sec {
  min-height: 52px; border-radius: 999px; border: 1px solid var(--azul-50); background: transparent;
  color: var(--texto); font-size: 16px; font-weight: 700; width: 100%; flex-shrink: 0; transition: transform .08s ease;
}
.btn-sec:active { transform: scale(.95); }
.btn-link {
  min-height: 50px; border-radius: 999px; background: var(--azul); color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
}
.btn-link:hover { color: #fff; background: var(--azul-escuro); }
.passar { min-height: 44px; border: none; background: transparent; color: var(--azul-50); font-size: 15px; font-weight: 700; text-decoration: underline; flex-shrink: 0; }
.rodape { font-size: 12px; color: var(--legenda); text-align: center; line-height: 1.4; margin-top: -6px; }

label.rotulo { display: block; }
textarea {
  width: 100%; height: 140px; border-radius: 14px; border: 2px solid var(--azul-50); background: var(--card);
  color: var(--texto); font-family: var(--serif); font-size: 17px; line-height: 1.45; padding: 14px 16px; resize: none;
}
textarea:focus { outline: none; border-color: var(--foco); }
textarea::placeholder { color: var(--inativo); }
.contador { font-size: 12px; color: var(--legenda); text-align: right; }
.atalhos { display: flex; flex-wrap: wrap; gap: 8px; }
.atalhos .dica { font-size: 13px; color: var(--legenda); width: 100%; }
.atalho { border-radius: 999px; border: 1px solid var(--borda-2); background: transparent; color: var(--texto); font-size: 14px; padding: 10px 14px; min-height: 44px; }
.atalho.sel { border: 2px solid var(--azul-50); color: var(--azul-50); font-weight: 700; }

.confirmacao { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--azul-50); border-radius: 14px; padding: 12px 14px; }
.confirmacao .circ { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--azul-50); display: flex; align-items: center; justify-content: center; }
.confirmacao .t1 { font-family: var(--serif); font-size: 18px; }
.confirmacao .t2 { font-size: 13px; color: var(--legenda); }

.apoio { background: var(--card); border: 1px solid var(--borda); border-radius: 14px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.apoio .txt { flex-grow: 1; font-family: var(--serif); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.mais1 { min-width: 70px; min-height: 44px; border-radius: 999px; border: 1px solid var(--azul-50); background: transparent; color: #fff; font-size: 13px; font-weight: 700; }
.mais1.on { border-color: var(--azul); background: var(--azul); }
.vazio { font-size: 14px; color: var(--legenda); }

.sabia { border: 1px solid var(--borda); border-left: 3px solid var(--amarelo); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.sabia .cab { display: flex; justify-content: space-between; align-items: center; }
.sabia .n { font-size: 12px; color: var(--legenda); }
.sabia .t { font-family: var(--serif); font-size: 14px; line-height: 1.45; transition: opacity .4s; }
.sabia .f { font-size: 12px; color: var(--legenda); }

.voto { border-radius: 14px; border: 1px solid var(--borda-2); background: var(--card); color: var(--texto); text-align: left; padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; width: 100%; transition: transform .08s ease; }
.voto:active:not(:disabled) { transform: scale(.97); }
.voto.sel { border: 2px solid var(--azul-50); }
.voto .letra { font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--legenda); }
.voto.sel .letra { color: var(--azul-50); }
.voto .tx { display: flex; flex-direction: column; gap: 4px; }
.voto .tema { font-family: var(--serif); font-size: 17px; }
.voto .res { font-size: 13px; color: var(--legenda); line-height: 1.35; }
.status-voto { font-size: 13px; color: var(--legenda); text-align: center; }

.aplicada { background: var(--azul); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; animation: entra .5s ease-out; }
.aplicada .t1 { font-family: var(--serif); font-size: 19px; }
.aplicada .t2 { font-size: 13px; }
@keyframes entra { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

.cartao-c { background: var(--card); border: 1px solid var(--borda); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cartao-c .t { font-family: var(--serif); font-size: 20px; }
.cartao-c .s { font-size: 14px; color: var(--apoio); line-height: 1.45; }
.proximas { display: flex; flex-direction: column; gap: 8px; }
.proximas .item { font-size: 14px; line-height: 1.4; }
.proximas .quando { color: var(--azul-50); font-weight: 700; }

.barras { display: flex; flex-direction: column; gap: 10px; }
.barra .lin { display: flex; justify-content: space-between; font-size: 15px; }
.barra .trilho { height: 8px; background: var(--borda); border-radius: 4px; margin-top: 5px; }
.barra .enchimento { height: 8px; border-radius: 4px; background: var(--azul); transition: width .6s ease; }
.barra.minha .enchimento { background: var(--azul-50); }
.barra.minha .lin span:first-child { color: var(--azul-50); font-weight: 700; }
.grande { font-family: var(--serif); font-size: 64px; line-height: .95; }
.link-discreto { background: none; border: none; color: var(--azul-50); font-size: 14px; text-decoration: underline; min-height: 44px; align-self: center; }

.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--card); border: 1px solid var(--azul-50); color: var(--texto); border-radius: 14px; padding: 12px 16px; font-size: 15px; z-index: 60; }
.toast.erro { border-color: var(--laranja); }

/* Área digitada / "Prefiro não dizer" */

/* Aparelho compartilhado: cartão em destaque */
.cartao-c.compartilhado { border-color: var(--azul-50); border-left: 4px solid var(--amarelo); }

/* QR do kit no fechamento */
.kit-qr { display: flex; gap: 14px; align-items: center; }
.kit-qr .qr { width: 132px; height: 132px; }
