/* A página do cliente (telas 1 a 5 das maquetes). Primeiro o celular: 360 px sem rolagem para o lado, botão principal no alcance do
   polegar, campo com letra de 16 px ou mais (abaixo disso o iPhone dá zoom). No computador, a mesma coluna no meio da tela. */
body.cliente { margin: 0; background: var(--fundo); font-size: 16px; line-height: 1.45; }
/* zera a margem dos títulos e parágrafos do kit sem ganhar das classes das telas (.espaco, .cesta-da-loja...) */
.cliente :where(h1, h2, h3, p) { margin: 0; }
.app { max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--papel); display: flex; flex-direction: column;
  overflow-x: hidden; }
.app > .folha { flex: 1; }
.centro { text-align: center; }
.miudo { font-size: 14px; color: var(--texto-2); }
.espaco { margin-top: 14px; }
.espaco-grande { margin-top: 22px; }
.sumir { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* topo branco com a logo e o atalho */
.topo { height: 56px; flex: none; background: var(--branco); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px; border-bottom: 1px solid var(--azul-suave); }
.topo a { display: flex; align-items: center; min-height: var(--toque); }
.topo img { height: 42px; width: auto; margin-left: -6px; }
.pilula { flex: none; font: 700 14px var(--fonte); color: var(--azul); background: var(--azul-suave); padding: 0 16px; min-height: var(--toque);
  border-radius: 999px; border: 0; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }

/* folha pautada: o corpo de cada tela */
.folha { padding: 18px 18px 26px 30px; }

/* ===== 1. Início ===== */
.capa--inicio { padding: 20px 18px 24px; min-height: 300px; overflow: hidden; }
.etiqueta--titulo { width: 214px; max-width: 60%; transform: rotate(-2.2deg); position: relative; z-index: 1; }
.etiqueta--titulo h1 { font: 700 30px/1.02 var(--titulo); color: var(--azul-forte); }
.etiqueta--titulo p { font-weight: 700; font-size: 13px; color: var(--texto-2); margin-top: 6px; }
.capa__regra { margin-top: 16px; font-size: 16px; font-weight: 600; line-height: 1.36; max-width: 52%; position: relative; z-index: 1; }
.capa__gigi { position: absolute; right: 0; bottom: 0; width: 192px; max-width: 48%; height: auto; }
.voce-esta { font-size: 15px; font-weight: 700; color: var(--texto-2); }
.voce-esta b { color: var(--texto); }
.ajuda-notinha { margin-top: 14px; font-size: 14px; color: var(--texto-2); text-align: center; }
.cesta { display: flex; gap: 12px; align-items: center; padding: 10px 12px; }
.cesta__foto { flex: none; width: 92px; height: 92px; border-radius: 10px; object-fit: cover; background: var(--amarelo-suave); }
.cesta .carinha { width: 76px; height: 76px; background: var(--amarelo-suave); }
.cesta h2 { font: 600 19px/1.1 var(--titulo); color: var(--azul-forte); }
.cesta p { font-size: 14px; color: var(--texto-2); margin-top: 4px; overflow-wrap: anywhere; }
.cesta .quando { font-weight: 800; color: var(--texto); margin-top: 6px; }
.lojas-escolha { display: grid; gap: 8px; margin-top: 10px; }
.terminou { font: 700 22px/1.2 var(--titulo); color: var(--azul-forte); }
/* (F7) os ganhadores de cada loja, depois de confirmados */
.ganhadores { list-style: none; padding: 0; display: grid; gap: 8px; }
.ganhador { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--amarelo-suave); box-shadow: var(--sombra-papel); }
.ganhador .carinha { width: 44px; height: 44px; background: var(--branco); }
.ganhador p { min-width: 0; font-weight: 800; font-size: 15px; color: var(--texto); overflow-wrap: anywhere; }

/* ===== 2. Leitor: o mesmo do balcão, em caderno.css ===== */

/* ===== 3. Valor, primeira vez e aparelho conhecido ===== */
.etiqueta h2 { font: 600 21px/1.1 var(--titulo); color: var(--azul-forte); }
.campo-escola { display: block; margin-top: 12px; }
.campo-escola span { display: block; font-weight: 700; font-size: 14px; color: var(--azul); }
.campo-escola input { width: 100%; min-height: var(--toque); border: 0; border-bottom: 2px solid var(--azul); border-radius: 0; padding: 4px 0;
  background: transparent; font: 600 19px/1.2 var(--fonte); color: var(--texto); }
.campo-escola__linha { display: flex; align-items: center; gap: 8px; }
.campo-escola__linha b { font: 600 19px var(--fonte); color: var(--texto-2); }
.campo-escola__linha input { flex: 1; min-width: 0; }
.campo-escola input::placeholder { color: var(--texto-3); font-weight: 500; }
.campo-escola input:focus-visible { outline: none; box-shadow: 0 2px 0 var(--azul); }
.campo-escola input[aria-invalid="true"] { border-bottom-color: var(--vermelho-forte); }
.erro-do-campo { color: var(--vermelho-forte); font-weight: 700; font-size: 14px; margin-top: 6px; }
.para-quem { margin-top: 18px; font-size: 16px; font-weight: 700; color: var(--texto-2); }
.para-quem b { color: var(--texto); }

/* ===== 4. Comemoração ===== */
.capa--festa { padding: 16px 18px 18px; display: flex; align-items: center; gap: 4px; min-height: 200px; }
.festa__gigi { flex: none; width: 150px; max-width: 40%; height: auto; position: relative; z-index: 2; margin: 0 0 -36px -10px; }
.festa__titulo { position: relative; min-width: 0; }
.festa__titulo h1 { font: 700 31px/1.05 var(--titulo); color: var(--branco); overflow-wrap: anywhere; }
.festa__titulo p { font-size: 16px; font-weight: 600; margin-top: 6px; line-height: 1.3; }
.som { position: absolute; right: 8px; top: 8px; z-index: 3; }
.som[aria-pressed="false"] .ondas { display: none; }
.som[aria-pressed="true"] .risco { display: none; }
/* Movimento só aqui e no papel picado (seção 3.5): o bilhete saindo, uma vez, na comemoração. */
.bilhetes { display: grid; gap: 10px; }
.bilhetes--saindo > * { animation: bilhete-cai .45s ease-out both; }
.bilhetes--saindo > :nth-child(2) { animation-delay: .15s; }
.bilhetes--saindo > :nth-child(3) { animation-delay: .3s; }
.bilhetes--saindo > :nth-child(4) { animation-delay: .45s; }
.bilhetes--saindo > :nth-child(n + 5) { animation-delay: .6s; }
@keyframes bilhete-cai { from { transform: translateY(-18px) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }
.da-sobra { margin-top: 12px; font-weight: 700; color: var(--ok); }
.avisar { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--texto-2); }
.avisar b { color: var(--texto); white-space: nowrap; }
.ofertas { display: flex; gap: 10px; align-items: center; margin-top: 12px; background: var(--branco); border-radius: 16px; padding: 10px 12px;
  box-shadow: var(--sombra-papel); }
.ofertas .carinha { width: 48px; height: 48px; background: var(--amarelo-suave); }
.ofertas p { font-weight: 700; font-size: 14px; line-height: 1.3; }
.ofertas__botoes { display: flex; gap: 8px; margin-top: 8px; }
.ofertas__botoes .btn { min-height: 44px; }

/* ===== 5. Meus cupons ===== */
.oi { display: flex; align-items: center; gap: 10px; }
.oi .carinha { width: 62px; height: 62px; background: var(--amarelo-suave); box-shadow: var(--sombra-papel); }
.oi h1 { font: 700 26px/1.05 var(--titulo); color: var(--azul-forte); overflow-wrap: anywhere; }
.oi p { font-weight: 700; color: var(--texto-2); font-size: 15px; }
.cesta-da-loja { font: 600 18px var(--titulo); color: var(--azul-forte); margin-top: 18px; }
.cesta-da-loja span { font: 700 14px var(--fonte); color: var(--texto-2); }
.notinhas { list-style: none; padding: 0; margin: 8px 0 0; }
.notinhas li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--pauta); font-size: 15px; }
.notinhas b { white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (min-width: 481px) {
  .app { box-shadow: 0 0 0 1px var(--azul-tinta); }
}
