/* Rango — telas do tablet (deitado ou em pé). Usa os tokens de app.css. */
html, body { height: 100%; overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
body.tablet { font-size: 18px; background: radial-gradient(1100px 640px at 12% -8%, color-mix(in srgb, var(--amarelo) 20%, transparent), transparent), radial-gradient(900px 600px at 100% 110%, color-mix(in srgb, var(--verde) 18%, transparent), transparent), var(--fundo); }
#app { height: 100dvh; min-height: 0; }
.marca { color: transparent; background: linear-gradient(120deg, var(--verde-m), #2CC488 60%, var(--amarelo)); -webkit-background-clip: text; background-clip: text; }
.btn.grande { min-height: 62px; font-size: 1.1rem; border-radius: 18px; }
.icone-btn { width: 56px; height: 56px; }
.mascote.m-grande { width: 150px; } .mascote.m-media { width: 96px; }
.mascote .m-vapor { animation: vapor 2.6s ease-in-out infinite; }
@keyframes vapor { 50% { transform: translateY(-7px); opacity: .3; } }
@media (prefers-color-scheme: light) { .m-vapor { stroke: #C9D8CF; } }
.mascote.pular .m-capacete { animation: tampa .7s var(--mola) 3; }
@keyframes tampa { 40% { transform: translateY(-30px) rotate(-8deg); } }

/* início */
.t-inicio { height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 22px clamp(20px, 3vw, 44px) 20px; gap: 10px; }
.t-topo { display: flex; align-items: center; gap: 16px; }
.t-topo .marca { font-size: 2.7rem; line-height: 1; }
.t-topo .pilula { margin-left: auto; }
.t-relogio { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pilula { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; font-size: .88rem; font-weight: 700; background: var(--superficie); border: 1px solid var(--borda); color: var(--texto-2); }
.p-ok .ico { color: var(--verde); } .p-envio .ico { color: var(--azul); }
.p-sem { background: #FFF3D6; color: #7A5200; border-color: #F2D48A; }
@media (prefers-color-scheme: dark) { .p-sem { background: #3A2D10; color: #FFD98A; border-color: #5c4718; } }
.t-palco { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(20px, 4vw, 64px); align-items: center; min-height: 0; max-width: 1180px; width: 100%; margin: 0 auto; }
.t-heroi { display: grid; justify-items: center; gap: 6px; }
.mascote.m-heroi { width: min(100%, 340px, 46vh); }
.t-balao { order: -1; font-size: 1.15rem; padding: 14px 22px; }
.t-balao::before { left: 50%; top: auto; bottom: -7px; border: 0; border-right: 1px solid var(--borda); border-bottom: 1px solid var(--borda); transform: translateX(-50%) rotate(45deg); }
.t-acao { display: flex; flex-direction: column; gap: 14px; }
.t-data { margin: 0; color: var(--texto-2); font-weight: 600; }
.t-acao h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 900; letter-spacing: -.035em; margin: 0; }
.cta-grande { display: flex; align-items: center; gap: 20px; width: 100%; min-height: 124px; padding: 20px 26px; border: 0; border-radius: 28px; cursor: pointer; text-align: left; color: #fff;
  background: linear-gradient(135deg, #0B6B45, #12875A 55%, #17A06B); box-shadow: 0 16px 36px rgba(18,135,90,.36); position: relative; overflow: hidden; transition: transform .2s var(--mola); }
.cta-grande:active { transform: scale(.97); }
.cta-grande::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-100%); animation: brilho 4s ease-in-out infinite 1s; }
@keyframes brilho { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }
.cta-grande b { display: block; font-size: 1.5rem; line-height: 1.15; } .cta-grande small { font-size: 1rem; opacity: .95; }
.cta-grande > .ico { margin-left: auto; }
.cta-ico { width: 76px; height: 76px; border-radius: 24px; background: var(--amarelo); color: #3B2700; display: grid; place-items: center; flex: none; } .cta-ico .ico { width: 46px; height: 46px; }
.t-preco, .t-conta { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--texto-2); }
.t-preco .ico, .t-conta .ico { color: var(--verde-m); } .t-preco b { color: var(--texto); }
.t-rodape { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.t-rest { display: flex; flex-direction: column; gap: 14px; min-height: 0; flex: 1; }
.t-rest-abas { display: flex; gap: 10px; flex-wrap: wrap; }
.t-rest-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: center; margin-bottom: 8px; }
.t-rest-nav h2 { margin: 0; text-transform: capitalize; }
.t-rest-nav .icone-btn[disabled] { opacity: .3; }
.t-rest-nomes { margin: 0; padding-left: 2.2em; max-height: 52vh; overflow-y: auto; }
.t-rest-nomes li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--borda); }
.t-rest-nomes li span:first-child { flex: 1; font-weight: 700; }
.t-linhas li.clicavel { cursor: pointer; }
.t-rodape button { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 99px; border: 1px solid var(--borda); background: var(--superficie); font-weight: 700; cursor: pointer; }

/* telas internas */
.t-tela { height: 100%; display: flex; flex-direction: column; padding: 18px clamp(18px, 2.6vw, 36px); animation: tela-entra .3s ease backwards; }
.t-barra { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; } .t-barra h1 { margin: 0; font-size: 1.6rem; }
.t-duas { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(18px, 3vw, 40px); align-items: center; max-width: 1240px; width: 100%; margin: 0 auto; }
.t-lado { display: flex; flex-direction: column; gap: 12px; max-height: 100%; overflow-y: auto; padding: 4px; }
.t-lado p { margin: 0; } .t-lado .fala { margin: 0; } .t-lado .balao { font-size: 1.1rem; }
.t-lado-acoes { display: flex; flex-direction: column; gap: 10px; align-items: stretch; } .t-lado-acoes .link { justify-content: center; }
.t-centro { height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; padding: 20px; overflow: auto; animation: tela-entra .3s ease backwards; }
.t-estreito { width: min(520px, 92vw); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px; border-radius: 28px; } .t-estreito > * { margin: 0; } .t-estreito form { width: 100%; }
.t-estreito .marca { font-size: 3rem; }
.t-rolavel { overflow-y: auto; max-height: 100%; min-height: 0; }

/* câmera */
.camera { position: relative; width: 100%; height: 100%; max-height: 72vh; border-radius: 32px; overflow: hidden; background: #0B2B22; box-shadow: var(--sombra); border: 6px solid var(--borda); transition: border-color .25s; }
.camera.vendo { border-color: var(--amarelo); } .camera.ok { border-color: var(--verde); } .camera.contagem { border-color: var(--verde); }
.camera video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.cam-anel { position: absolute; inset: 8% 0 16%; margin: auto; aspect-ratio: 3 / 4; height: 76%; border-radius: 50%; border: 4px dashed rgba(255,255,255,.65); box-shadow: 0 0 0 200vmax rgba(7,28,22,.42); }
.camera.vendo .cam-anel { border-color: var(--amarelo); } .camera.ok .cam-anel, .camera.contagem .cam-anel { border-color: #3BD79A; border-style: solid; }
.cam-dica { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; padding: 12px 24px; border-radius: 99px; background: rgba(7,28,22,.88); color: #fff; font-weight: 700; font-size: 1.15rem; white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; }
.camera.contagem .cam-dica { bottom: 50%; transform: translate(-50%, 50%); font-size: 5rem; background: none; text-shadow: 0 4px 20px #000; }
.t-pessoa { display: flex; flex-direction: column; gap: 2px; margin: 0; } .t-pessoa > b { font-size: 1.25rem; }
.t-valor { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; width: 100%; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--borda); } .t-valor b { font-size: 1.5rem; color: var(--verde-m); }
@media (prefers-color-scheme: dark) { .t-valor b { color: #3BD79A; } }
.t-sorria { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 900; padding: 14px 18px; border-radius: 20px; background: var(--amarelo); color: #3B2700; animation: convite 1.2s ease-in-out infinite; } .t-sorria .ico { width: 1.6em; height: 1.6em; }
@keyframes convite { 50% { transform: scale(1.025); } }

/* teclado */
.teclado { width: min(460px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.visor { min-height: 72px; border-radius: 20px; background: var(--superficie); border: 2px solid var(--borda); display: flex; gap: 14px; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; letter-spacing: .08em; } .visor .suave { font-size: 1.1rem; letter-spacing: 0; font-weight: 600; }
.visor i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--texto-2); } .visor i.cheio { background: var(--verde-m); border-color: var(--verde-m); transform: scale(1.1); }
.teclas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tecla { min-height: clamp(56px, 10.5vh, 84px); border-radius: 20px; border: 1px solid var(--borda); background: var(--superficie); font-size: 1.7rem; font-weight: 700; cursor: pointer; box-shadow: var(--sombra); transition: transform .1s; display: grid; place-items: center; touch-action: manipulation; }
.tecla:active { transform: scale(.94); background: var(--verde-m-claro); } .tecla.t-ok { background: var(--verde-m); color: #fff; } .tecla:disabled { opacity: .35; }

/* pronto / extrato */
.t-pronto h1 { font-size: 2.2rem; }
.t-selo { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; color: #0B6B45; background: var(--verde-claro); padding: 8px 18px; border-radius: 99px; } @media (prefers-color-scheme: dark) { .t-selo { color: #5FE0B0; } }
.t-resumo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; } .t-resumo > div { background: var(--superficie-2); border: 1px solid var(--borda); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; text-align: center; } .t-resumo b { font-size: 1.6rem; }
.t-extrato { height: 100%; overflow-y: auto; margin: 0; }
.t-linhas { list-style: none; margin: 0; padding: 0; } .t-linhas li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--borda); }
.t-dia { display: flex; gap: 10px; align-items: baseline; } .t-dia small { color: var(--texto-2); }
.vazio { text-align: center; padding: 28px 16px; border: 2px dashed var(--borda); border-radius: var(--raio); color: var(--texto-2); }
.t-priv { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); } .t-priv li { display: flex; gap: 12px; } .t-priv p { margin: 2px 0 0; font-size: .95rem; color: var(--texto-2); } .t-priv .ico { color: var(--verde-m); width: 1.5em; height: 1.5em; margin-top: 2px; }
.t-passos { list-style: none; display: flex; gap: 8px; margin: 0 auto 14px; padding: 0; max-width: 1240px; width: 100%; } .t-passos li { flex: 1; padding-top: 8px; border-top: 5px solid var(--borda); color: var(--texto-2); font-size: .9rem; font-weight: 600; } .t-passos .feito { border-color: var(--verde); } .t-passos .agora { border-color: var(--amarelo); color: var(--texto); }
.t-bolas { display: flex; gap: 10px; } .t-bolas i { flex: 1; height: 12px; border-radius: 99px; background: var(--borda); transition: background .3s; } .t-bolas i.cheio { background: var(--verde); }
.folha { max-width: 560px; margin: auto; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }

/* em pé */
@media (orientation: portrait) {
  .t-palco { grid-template-columns: 1fr; align-content: center; } .mascote.m-heroi { width: min(46vw, 34vh); }
  .t-duas { grid-template-columns: 1fr; align-content: start; overflow-y: auto; } .camera { height: 52vh; } .t-passos { font-size: .8rem; }
}
@media (max-height: 700px) and (orientation: landscape) { body.tablet { font-size: 16px; } .cta-grande { min-height: 92px; } .t-acao { gap: 10px; } .mascote.m-grande { width: 110px; } .mascote.m-heroi { width: 40vh; } }
@media (max-width: 560px) { body.tablet { font-size: 16px; } .t-topo .marca { font-size: 2rem; } .t-relogio { display: none; } .t-rodape button { padding: 0 14px; font-size: .85rem; } .cta-grande { gap: 14px; padding: 16px; } .cta-grande b { font-size: 1.2rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
