/* D329: páginas públicas do QR da mesa (abertura RoboBlu, cardápio e /roboblu). Sem login. A política de segurança do sistema não aceita
   estilo nem script no próprio HTML: tudo o que o desenho aprovado fazia em linha está aqui, em classes. */
@font-face { font-family: "Fraunces"; src: url("/estatico/fraunces-5.3.0-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/estatico/nunito-5.3.0-latin.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/estatico/inter-5.3.0-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/estatico/space-grotesk-5.3.0-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/estatico/montserrat-5.3.0-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
button, input { font-family: inherit; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =============================================================== 1. ABERTURA ROBOBLU (fundo branco puro) */
@keyframes rb-logo { 0% { opacity: 0; transform: scale(.5) translateY(50px); } 60% { opacity: 1; transform: scale(1.07) translateY(-8px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes rb-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-10px) rotate(-1.5deg); } 75% { transform: translateY(-4px) rotate(1.5deg); } }
@keyframes rb-pulse { 0% { transform: scale(.4); opacity: .5; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes rb-fly-l { 0% { transform: translateX(110vw) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(-30vw) rotate(360deg); opacity: 0; } }
@keyframes rb-fly-r { 0% { transform: translateX(-30vw) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(110vw) rotate(-360deg); opacity: 0; } }
@keyframes rb-up { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes rb-reveal { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes rb-fill { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes rb-twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }

.ab { background: #fff; font-family: "Inter", system-ui, sans-serif; color: #061a57; }
.ab-tela { position: relative; min-height: 100vh; min-height: 100dvh; max-width: 520px; margin: 0 auto; padding: 0 28px; display: flex; flex-direction: column; align-items: center; overflow: hidden; background: #fff; }
.ab-camada { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.ab-voo, .ab-brilho { position: absolute; }
.rb-p { position: absolute; left: 0; font-family: "Space Grotesk", sans-serif; font-weight: 700; color: #00bfe0; opacity: 0; font-size: 18px; line-height: 1; }
.rb-pl { animation: rb-fly-l 3.4s linear infinite; }
.rb-pr { animation: rb-fly-r 3.8s linear infinite; }
.rb-sq { display: block; width: 14px; height: 14px; border-radius: 4px; background: #00bfe0; }
.rb-ci { display: block; width: 12px; height: 12px; border-radius: 50%; border: 3px solid #061a57; }
.rb-p.f16 { font-size: 16px; color: #061a57; }
.rb-sq.p9 { width: 9px; height: 9px; }
.rb-sq.p10 { width: 10px; height: 10px; }
.rb-tw { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #00bfe0; opacity: 0; animation: rb-twinkle 1.8s ease-in-out infinite; }
/* posições (as do desenho aprovado; os de cima contam do alto, os de baixo contam do pé da tela) */
.v1 { top: 50px; animation-delay: .2s; } .v2 { top: 88px; animation-delay: .8s; } .v3 { top: 128px; animation-delay: 1.4s; } .v4 { top: 170px; animation-delay: .5s; } .v5 { top: 208px; animation-delay: 2s; }
.v6 { bottom: 266px; animation-delay: .6s; } .v7 { bottom: 226px; animation-delay: .1s; } .v8 { bottom: 176px; animation-delay: 1.3s; } .v9 { bottom: 136px; animation-delay: .9s; } .v10 { bottom: 86px; animation-delay: 1.7s; }
.t1 { left: 14%; top: 210px; animation-delay: .6s; } .t2 { left: 82%; top: 170px; animation-delay: 1.1s; } .t3 { left: 78%; top: 52%; animation-delay: 1.5s; } .t4 { left: 18%; top: 48%; animation-delay: .9s; }

.ab-logo-caixa { position: relative; z-index: 1; margin-top: clamp(36px, 14vh, 130px); width: min(300px, 78vw); animation: rb-logo 1s cubic-bezier(.2, .9, .3, 1.2) .1s both; }
.ab-logo { display: block; width: 100%; height: auto; animation: rb-float 4.2s ease-in-out 1.2s infinite; }
.rb-ring { position: absolute; left: 50%; top: 50%; width: 280px; height: 280px; margin: -140px 0 0 -140px; border-radius: 50%; border: 2px solid #00bfe0; opacity: 0; animation: rb-pulse 2.4s ease-out infinite; z-index: -1; }
.rb-ring.r1 { animation-delay: .4s; } .rb-ring.r2 { animation-delay: 1.2s; } .rb-ring.r3 { animation-delay: 2s; }

.ab-texto { position: relative; z-index: 1; margin-top: 32px; text-align: center; }
.ab-selo { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .22em; color: #0a8fa8; animation: rb-up .7s ease-out .7s both; }
.ab-frase { margin: 12px 0 0; font-family: "Space Grotesk", "Inter", sans-serif; font-size: 30px; line-height: 1.1; font-weight: 700; color: #061a57; animation: rb-reveal .9s ease-out .95s both; }
.ab-sub { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: #44527f; animation: rb-up .7s ease-out 1.4s both; }
.ab-botoes { position: relative; z-index: 2; margin-top: auto; width: 100%; padding: 28px 0 max(40px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 6px; animation: rb-up .7s ease-out 1.2s both; }
.ab-b1 { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 60px; border-radius: 30px; background: #0b4fb3; color: #fff; font-size: 18px; font-weight: 800; text-decoration: none; }
.ab-b1:hover, .ab-b1:focus-visible { background: #083e8f; }
.ab-b1 > * { position: relative; }
.ab-b1 img { display: block; width: 38px; height: 38px; border-radius: 50%; }
.ab-fill { position: absolute !important; inset: 0; background: rgba(0, 191, 224, .45); transform-origin: left center; animation: rb-fill 4.8s linear 1.2s both; /* começa em 1,2 s e termina em 6,0 s, junto com o redirecionamento (abertura.js) */ }
.ab-b2 { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; color: #0a6f86; font-size: 14px; font-weight: 700; text-decoration: none; }
.ab-b2:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .ab *, .ab *::before, .ab *::after { animation: none !important; transition: none !important; }
  .ab-logo-caixa, .ab-selo, .ab-frase, .ab-sub, .ab-botoes { opacity: 1; }
  .rb-p, .rb-ring, .rb-tw, .ab-fill { display: none; }
}

/* =============================================================== 2. CARDÁPIO PÚBLICO (mesmo visual do sistema) */
@keyframes cc-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(179, 51, 27, .4); } 50% { box-shadow: 0 0 0 10px rgba(179, 51, 27, 0); } }
.cd { background: #fff4e3; color: #2b1608; font-family: "Nunito", system-ui, sans-serif; scroll-behavior: smooth; }
.cd a:hover { opacity: .92; }
.cd-miolo { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.cd-selo-linha { display: flex; justify-content: flex-end; padding-top: 10px; }
.cd-selo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border-radius: 22px; background: #fff; border: 1px solid #ebddc3; color: #2b1608; text-decoration: none; }
.cd-selo img { display: block; width: 32px; height: 32px; border-radius: 50%; }
.cd-selo span { display: flex; flex-direction: column; line-height: 1.1; }
.cd-selo b { font-size: 13px; font-weight: 800; }
.cd-selo small { font-size: 11px; font-weight: 700; color: #7a5a44; }
.cd-topo { margin-top: 8px; background: #fff; border: 1px solid #ebddc3; border-radius: 22px; padding: 18px; }
.cd-marca { display: flex; align-items: center; gap: 14px; }
.cd-logo { flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #2b1608; border: 3px solid #e8b43a; overflow: hidden; }
.cd-logo img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cd-logo span { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 24px; color: #fff4e3; }
.cd-marca > div { min-width: 0; }
.cd-eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: #b3331b; }
.cd-nome { margin: 1px 0 0; font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 29px; line-height: 1.05; color: #2b1608; overflow-wrap: anywhere; }
.cd-nome.grande { font-size: 34px; }
.cd-onde { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.cd-mesa { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 15px; background: #2b1608; color: #fff4e3; font-size: 14px; font-weight: 800; }
.cd-loja { font-size: 14px; font-weight: 600; color: #7a5a44; }
.cd-chamar { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 14px; border: 0; border-radius: 16px; background: #b3331b; color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; animation: cc-pulse 2.6s ease-in-out infinite; }
.cd-dica { margin: 10px 0 0; text-align: center; font-size: 13px; color: #7a5a44; }
.cd-busca { display: flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 52px; padding: 0 16px; background: #fff; border: 1px solid #ebddc3; border-radius: 18px; }
.cd-busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: #2b1608; }
.cd-busca:focus-within { border-color: #b3331b; }
.cd-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; background: #fff4e3; scrollbar-width: none; }
.cd-nav::-webkit-scrollbar { display: none; }
.cd-aba { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 0 18px; border-radius: 14px; background: #fff; border: 1px solid #ebddc3; color: #2b1608; font-size: 15px; font-weight: 800; cursor: pointer; }
.cd-aba[aria-selected="true"] { background: #fde8e3; border: 2px solid #b3331b; color: #b3331b; }
.cd-secao { padding-top: 28px; }
.cd-secao:first-of-type { padding-top: 8px; }
.cd-secao-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cd-secao h2 { margin: 0; font-size: 22px; font-weight: 800; }
.cd-secao-cab span { font-size: 13px; color: #7a5a44; }
.cd-sub { margin: 2px 0 12px; font-size: 13px; color: #7a5a44; }
.cd-cartao { margin-bottom: 12px; background: #fff; border: 1px solid #ebddc3; border-radius: 20px; padding: 16px; }
.cd-linha { display: flex; justify-content: space-between; gap: 12px; }
.cd-info { min-width: 0; flex: 1; }
.cd-prod { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.cd-desc { margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: #7a5a44; }
.cd-tams { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cd-tam { min-height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid #d9c7a6; background: #fff; color: #5a3a22; font-size: 15px; font-weight: 700; cursor: pointer; }
.cd-tam[aria-checked="true"] { border: 2px solid #b3331b; background: #fde8e3; color: #b3331b; font-weight: 800; }
/* a foto aparece INTEIRA (sem corte), como na tela de Pedidos: quadro mais largo e object-fit: contain */
.cd-foto { flex: none; display: block; width: clamp(120px, 40%, 170px); height: 120px; object-fit: contain; object-position: center; }
.cd-sem-foto { flex: none; display: flex; align-items: center; justify-content: center; width: 120px; height: 120px; border-radius: 18px; background: #eaf4ec; }
.cd-preco-bloco { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f1e5d0; }
.cd-preco { margin: 0; font-size: 24px; font-weight: 800; }
.cd-preco-tam { margin: 2px 0 0; font-size: 12px; font-weight: 600; color: #7a5a44; }
.cd-estrela { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; min-height: 22px; padding: 0 8px; border-radius: 11px; background: #fff1cf; color: #6b4a00; font-size: 12px; font-weight: 800; vertical-align: 1px; }
.cd-etiqueta { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 12px; background: #fde8e3; color: #b3331b; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.cd-destaque { border: 2px solid #e8b43a; border-radius: 22px; padding: 18px; }
.cd-destaque .cd-etiqueta { background: #fff1cf; color: #6b4a00; gap: 6px; }
.cd-destaque .cd-prod { margin-top: 10px; font-family: "Fraunces", Georgia, serif; font-size: 25px; line-height: 1.1; }
.cd-destaque .cd-preco { margin-top: 12px; font-size: 30px; color: #b3331b; }
.cd-combo .cd-prod { margin-top: 8px; }
.cd-vazio { margin: 28px 0 0; padding: 20px; text-align: center; background: #fff; border: 1px solid #ebddc3; border-radius: 18px; font-size: 15px; color: #7a5a44; }
.cd-rodape { margin-top: 36px; background: #2b1608; color: #fff4e3; padding: 34px 20px 38px; text-align: center; }
.cd-rodape > div { max-width: 360px; margin: 0 auto; }
.cd-rodape img.emb { display: block; margin: 0 auto; width: 84px; height: 84px; border-radius: 50%; }
.cd-rodape .t1 { margin: 12px 0 2px; font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 23px; }
.cd-rodape .t2 { margin: 0; font-size: 14px; color: #ebddc3; }
.cd-rodape .t3 { margin: 16px 0 0; font-size: 15px; line-height: 1.5; color: #fff4e3; }
.cd-rodape .rb { margin: 22px auto 0; width: 200px; background: #fff; border-radius: 16px; padding: 10px; }
.cd-rodape .rb img { display: block; width: 100%; height: auto; }
.cd-rodape .t4 { margin: 12px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: #ebddc3; }
.cd-rodape .bt { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 10px; padding: 0 24px; border-radius: 24px; background: #00bfe0; color: #061a57; font-size: 15px; font-weight: 800; text-decoration: none; }
.cd [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .cd-chamar { animation: none; } .cd { scroll-behavior: auto; } }

/* =============================================================== 3. /ROBOBLU (página escura) */
@keyframes rbx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rbx-blink { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes rbx-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 191, 224, .5); } 50% { box-shadow: 0 0 0 12px rgba(0, 191, 224, 0); } }
@keyframes rbx-aura { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.08); } }
@keyframes rbx-in { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: translateY(0); } }
html:has(body.rx) { overflow-x: hidden; }
.rx { background: #060609; color: #fff; font-family: "Inter", system-ui, sans-serif; overflow-x: clip; }
.rx a:hover { opacity: .92; }
.rx-fino { font-family: "Montserrat", "Inter", sans-serif; font-weight: 300; }
.rx-topo { position: sticky; top: 0; z-index: 5; background: rgba(6, 6, 9, .88); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.rx-topo > div { max-width: 820px; margin: 0 auto; padding: 6px 12px; display: flex; align-items: center; justify-content: space-between; }
.rx-voltar { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 6px; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.rx-falar { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 20px; background: #00bfe0; color: #04121f; font-size: 14px; font-weight: 700; text-decoration: none; }
.rx-heroi { position: relative; overflow: hidden; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px); background-size: 24px 24px; }
.rx-aura { position: absolute; left: 50%; border-radius: 50%; animation: rbx-aura 5s ease-in-out infinite; pointer-events: none; }
.rx-aura.a1 { top: -60px; margin-left: -260px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(0, 191, 224, .32) 0%, rgba(0, 191, 224, 0) 65%); }
.rx-aura.a2 { bottom: -120px; margin-left: -240px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(0, 191, 224, .28) 0%, rgba(0, 191, 224, 0) 65%); }
.rx-heroi-miolo { position: relative; max-width: 820px; margin: 0 auto; padding: 36px 24px 64px; text-align: center; animation: rbx-in .9s ease-out both; }
.rx-robo { display: block; margin: 0 auto; width: min(230px, 62%); height: auto; animation: rbx-float 4.5s ease-in-out infinite; }
.rx-eyebrow { margin: 26px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .28em; color: #00bfe0; }
.rx-h1 { margin: 18px 0 0; font-size: 44px; line-height: 1.12; letter-spacing: -.01em; }
.rx-h1 > span { display: block; -webkit-background-clip: text; background-clip: text; color: transparent; }
.rx-h1 .l1 { background-image: linear-gradient(180deg, #fff 0%, #b8c0cc 100%); }
.rx-h1 .l2 { min-height: 1.2em; background-image: linear-gradient(90deg, #00bfe0 0%, #a6f0ff 100%); }
.rx-caret { display: inline-block; width: 3px; height: .9em; margin-left: 6px; background: #00bfe0; vertical-align: -.08em; animation: rbx-blink 1s steps(1) infinite; }
.rx-lead { margin: 22px auto 0; max-width: 520px; font-size: 18px; line-height: 1.55; color: #a7b0bf; }
.rx-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; margin-top: 30px; padding: 0 32px; border-radius: 29px; background: #00bfe0; color: #04121f; font-size: 17px; font-weight: 700; text-decoration: none; animation: rbx-glow 2.4s ease-in-out infinite; }
.rx-cta.grande { padding: 0 34px; font-size: 18px; margin-top: 0; }
.rx-contato { margin: 14px 0 0; font-size: 14px; color: #8892a3; }
.rx-contato strong { color: #fff; font-weight: 600; }
.rx-sec { padding: 56px 24px 8px; }
.rx-sec.cartoes { padding-top: 32px; }
.rx-col { max-width: 820px; margin: 0 auto; }
.rx-rotulo { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .24em; color: #00bfe0; }
.rx-h2 { margin: 14px 0 16px; font-size: 36px; line-height: 1.15; -webkit-background-clip: text; background-clip: text; color: transparent; background-image: linear-gradient(180deg, #fff 0%, #a7b0bf 100%); }
.rx-texto { margin: 0; max-width: 600px; font-size: 17px; line-height: 1.6; color: #a7b0bf; }
.rx-grade { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.rx-cartao { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 24px; transition: border-color .2s, background .2s; }
.rx-cartao:hover { border-color: rgba(0, 191, 224, .6); background: rgba(0, 191, 224, .06); }
.rx-ic { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid #00bfe0; }
.rx-cartao h3 { margin: 18px 0 6px; font-family: "Montserrat", sans-serif; font-size: 19px; font-weight: 600; }
.rx-cartao p { margin: 0; font-size: 15px; line-height: 1.55; color: #a7b0bf; }
.rx-passos { display: flex; flex-direction: column; margin-top: 24px; }
.rx-passo { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.rx-passo:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.rx-num { flex: none; width: 64px; font-size: 44px; line-height: 1; font-weight: 200; color: #00bfe0; }
.rx-passo h3 { margin: 0 0 4px; font-family: "Montserrat", sans-serif; font-size: 19px; font-weight: 600; }
.rx-passo p { margin: 0; font-size: 15px; line-height: 1.55; color: #a7b0bf; }
.rx-foto { display: block; width: 100%; height: auto; margin: 24px 0 14px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .12); }
.rx-video { padding-top: 28px; }
.rx-video video { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .12); background: #060609; }
.rx-chamada { text-align: center; padding-top: 28px; }
.rx-chamada .rx-texto { margin: 0 auto; }
.rx-chamada .rx-cta { margin-top: 18px; }
.rx-pidao { max-width: 820px; margin: 0 auto; border: 1px solid rgba(232, 180, 58, .45); border-radius: 26px; padding: 32px 24px; text-align: center; background: linear-gradient(180deg, rgba(232, 180, 58, .08) 0%, rgba(255, 255, 255, .02) 100%); }
.rx-pidao img { display: block; margin: 0 auto; width: 92px; height: 92px; border-radius: 50%; }
.rx-pidao .r { margin: 16px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .22em; color: #e8b43a; }
.rx-pidao .n { margin: 8px 0 2px; font-size: 34px; line-height: 1.1; color: #fff; }
.rx-pidao .s { margin: 0 0 16px; font-size: 14px; color: #a7b0bf; }
.rx-pidao .t { margin: 0 auto; max-width: 520px; font-size: 16px; line-height: 1.6; color: #c9d0db; }
.rx-fim { position: relative; overflow: hidden; margin-top: 56px; padding: 64px 24px 56px; text-align: center; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px); background-size: 24px 24px; }
.rx-fim-miolo { position: relative; max-width: 560px; margin: 0 auto; }
.rx-fim .rx-h2 { margin: 0 0 14px; font-size: 42px; line-height: 1.1; }
.rx-fim .p { margin: 0 0 26px; font-size: 17px; line-height: 1.55; color: #a7b0bf; }
.rx-fim .v { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 16px; padding: 0 26px; border-radius: 24px; border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.rx-fim .c { margin: 32px 0 0; font-size: 13px; color: #8892a3; }
@media (max-width: 420px) { .rx-h1 { font-size: 38px; } .rx-h2 { font-size: 31px; } }
@media (prefers-reduced-motion: reduce) { .rx *, .rx *::before, .rx *::after { animation: none !important; transition: none !important; } }

/* =============================================================== impressão do QR (gestão da loja) */
.qr-folha { font-family: "Nunito", system-ui, sans-serif; color: #000; }
/* D330: a plaqueta inteira é o recorte; a linha tracejada fica por fora (outline) e não soma na medida */
.qr-corte { display: block; margin: 0; padding: 0; outline: 1px dashed #777; outline-offset: 0; page-break-inside: avoid; break-inside: avoid; background: #fff; }
.qr-corte svg { display: block; }
.qr-tela { margin: 0; background: #fff; color: #000; font-family: "Nunito", system-ui, sans-serif; }
.qr-tela-miolo { max-width: 560px; margin: 0 auto; padding: 16px; text-align: center; }
.qr-tela-qr { margin: 0 auto; width: min(92vw, 520px); }
.qr-tela-qr svg { display: block; width: 100%; height: auto; max-height: 82vh; }
.qr-tela-mesa { margin: 4px 0 0; font-size: 2rem; font-weight: 800; }
.qr-tela-dica { margin: 6px 0 0; color: #444; }
.qr-tela-url { margin: 10px 0 0; color: #666; font-size: .8rem; overflow-wrap: anywhere; }
.qr-tela-voltar { display: inline-block; margin-top: 16px; padding: 10px 18px; border-radius: 12px; border: 1px solid #bbb; color: #222; text-decoration: none; font-weight: 700; }
.qr-folha { margin: 0; background: #fff; color: #000; font-family: "Nunito", system-ui, sans-serif; }
.qr-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: #fff4e3; border-bottom: 1px solid #ebddc3; }
.qr-barra a { color: #2b1608; font-weight: 700; }
.qr-barra button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 12px; background: #b3331b; color: #fff; font-size: 1rem; font-weight: 800; cursor: pointer; }
.qr-uma { display: flex; justify-content: center; padding: 24px 12px; }
.qr-grade { display: flex; flex-wrap: wrap; align-items: flex-start; padding: 8mm; gap: 2mm; }
@page { size: A4; margin: 8mm; }
@media print {
  .nao-imprimir { display: none !important; }
  .qr-uma, .qr-grade { padding: 0; }
  .qr-corte { outline-color: #666; }
}

/* =============================================================== páginas de erro do RoboBlu (D332) */
.er { margin: 0; background: #fff; color: #061a57; font-family: "Inter", system-ui, sans-serif; }
.er-miolo { max-width: 520px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 32px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.er-robo { display: block; width: min(230px, 62vw); height: auto; animation: rb-float 4.2s ease-in-out infinite; }
.er-selo { margin: 18px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .22em; color: #0a8fa8; }
.er h1 { margin: 10px 0 0; font-family: "Space Grotesk", "Inter", sans-serif; font-size: 28px; line-height: 1.15; font-weight: 700; color: #061a57; }
.er-texto { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: #44527f; }
.er-botao { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 24px; padding: 0 32px; border-radius: 26px; background: #0b4fb3; color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; }
.er-botao:hover, .er-botao:focus-visible { background: #083e8f; }
.er-ass { margin: 28px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #7a86a8; }
@media (prefers-reduced-motion: reduce) { .er-robo { animation: none; } }

/* D343: frente e verso (dobrável): o contorno de corte já vem desenhado dentro da peça; folha A4 com margem de 5 mm e 3 mm entre as peças */
.qr-corte.sem-contorno { outline: 0; }
.qr-grade.duplex { gap: 3mm; padding: 5mm; }
.qr-aviso { margin: 0; padding: 10px 16px; background: #fff4d6; border-bottom: 1px solid #ecd28a; color: #5a3a00; font-size: .95rem; }
@page duplex { size: A4; margin: 5mm; }
@media print { .qr-grade.duplex { page: duplex; padding: 0; gap: 3mm; } }

/* =============================================================== D346: Pré-Pedido (o cliente escolhe e chama o garçom) */
.cd-pedir { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.cd-chamar:disabled { background: #14532d; animation: none; cursor: default; }
.pp-controles { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pp-passo { display: inline-flex; align-items: center; gap: 4px; }
.pp-passo button { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 16px; border: 2px solid #14532d; background: #fff; color: #14532d; font-size: 26px; font-weight: 800; line-height: 1; cursor: pointer; touch-action: manipulation; }
.pp-passo .pp-mais { background: #14532d; color: #fff; }
.pp-passo button:disabled { border-color: #d9c7a6; background: #f6efe2; color: #b3a188; cursor: default; }
.pp-passo button:active:not(:disabled) { transform: scale(.94); }
.pp-n { min-width: 34px; text-align: center; font-size: 19px; font-weight: 800; }
.pp-link { min-height: 44px; margin-right: auto; padding: 0 4px; border: 0; background: transparent; color: #8c2410; font-family: inherit; font-size: 14px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.pp-montar { min-height: 48px; width: 100%; border: 0; border-radius: 16px; background: #14532d; color: #fff; font-family: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.pp-barra { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; max-width: 720px; margin: 0 auto; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #ebddc3; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 24px rgba(43, 22, 8, .16); }
.pp-ver { flex: 1; display: grid; grid-template-columns: 1fr; text-align: left; min-height: 62px; padding: 6px 14px; border: 1px solid #d9c7a6; border-radius: 18px; background: #fff4e3; color: #2b1608; font-family: inherit; cursor: pointer; }
.pp-ver small { font-size: 12px; font-weight: 700; color: #7a5a44; }
.pp-ver strong { font-size: 20px; font-weight: 800; line-height: 1.1; }
.pp-ver span { font-size: 12px; font-weight: 800; color: #8c2410; text-decoration: underline; }
.pp-vazia .pp-ver { display: none; }
.pp-enviar, .pp-principal { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 62px; border: 0; border-radius: 18px; background: #b3331b; color: #fff; font-family: inherit; font-size: 18px; font-weight: 800; text-decoration: none; cursor: pointer; }
.pp-enviar { flex: 1.25; }
.pp-vazia .pp-enviar { flex: 1; }
.pp-principal { width: 100%; }
.pp-enviar:disabled, .pp-principal:disabled { background: #b9a891; cursor: default; }
.pp-vazia .pp-enviar:disabled { background: #14532d; }
.pp-aviso { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(100px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; padding: 14px 16px; border-radius: 16px; background: #2b1608; color: #fff4e3; font-size: 15px; font-weight: 700; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.pp-janela { width: min(560px, 100%); max-width: 100%; max-height: 90vh; max-height: 90dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: #fffaf1; color: #2b1608; font-family: "Nunito", system-ui, sans-serif; overflow: hidden; }
.pp-janela[open] { display: flex; flex-direction: column; }
.pp-janela::backdrop { background: rgba(43, 22, 8, .55); }
.pp-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 12px 10px 20px; border-bottom: 1px solid #ebddc3; }
.pp-cab h2 { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.pp-fechar { flex: none; width: 48px; height: 48px; border: 0; border-radius: 16px; background: #f3e8d4; color: #2b1608; font-size: 28px; line-height: 1; cursor: pointer; }
.pp-corpo { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 20px 16px; overscroll-behavior: contain; }
.pp-corpo h3 { display: flex; flex-direction: column; margin: 16px 0 4px; font-size: 17px; font-weight: 800; }
.pp-corpo h3 small { font-size: 13px; font-weight: 700; }
.pp-falta { color: #8c2410; }
.pp-ok { color: #14532d; }
.pp-opcao { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1e5d0; }
.pp-nome { min-width: 0; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.pp-nome small, .pp-campo small { display: block; font-size: 13px; font-weight: 600; color: #7a5a44; }
.pp-campo { display: block; margin-top: 16px; font-size: 15px; font-weight: 800; }
.pp-campo textarea, .pp-campo input { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid #d9c7a6; border-radius: 14px; background: #fff; color: #2b1608; font-family: inherit; font-size: 16px; font-weight: 600; resize: vertical; }
.pp-rodape { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #ebddc3; background: #fff; }
.pp-lista { margin: 0; padding: 0; list-style: none; }
.pp-lista li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f1e5d0; }
.pp-texto { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; overflow-wrap: anywhere; }
.pp-texto strong { font-size: 16px; }
.pp-texto small, .pp-texto em { font-size: 13px; color: #7a5a44; }
.pp-lado { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pp-lado .pp-passo button { width: 42px; height: 42px; font-size: 22px; }
.pp-soma { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.pp-soma strong { font-size: 24px; font-weight: 800; }
.pp-nota { margin: 12px 0 0; font-size: 13px; color: #7a5a44; }
.pp-lista li.pp-vazio { justify-content: center; color: #7a5a44; }
.pp-pendente { position: fixed; z-index: 19; left: 12px; right: 12px; bottom: calc(98px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 16px; border-radius: 16px; background: #14532d; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.pp-pendente strong { white-space: nowrap; }

/* a tela do QR do cliente */
.pp-qr-pagina { background: #14532d; color: #fff; font-family: "Nunito", system-ui, sans-serif; }
.pp-qr-pagina [hidden] { display: none !important; }
.pp-tela { max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); text-align: center; }
.pp-loja { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #bfe3c9; }
.pp-estado h1 { margin: 10px 0 14px; font-family: "Fraunces", Georgia, serif; font-size: 28px; line-height: 1.15; }
.pp-estado p { margin: 10px 0 0; font-size: 16px; line-height: 1.45; }
.pp-qr { width: min(300px, 78vw); margin: 0 auto; padding: 8px; border-radius: 24px; background: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.pp-qr-img { display: block; width: 100%; height: auto; border-radius: 14px; }
.pp-estado p.pp-codigo { margin-top: 14px; font-size: 26px; font-weight: 800; letter-spacing: .18em; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.pp-estado p.pp-chamado { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 20px; background: rgba(255, 255, 255, .12); font-size: 14px; font-weight: 800; }
.pp-ponto { width: 10px; height: 10px; border-radius: 50%; background: #ffd15c; animation: pp-pisca 1.4s ease-in-out infinite; }
@keyframes pp-pisca { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.pp-estado p.pp-validade { display: block; color: #d7efdd; }
.pp-validade strong { font-variant-numeric: tabular-nums; color: #fff; }
.pp-secundario { min-height: 48px; margin-top: 10px; padding: 0 24px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 24px; background: transparent; color: #fff; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.pp-estado .pp-principal { margin-top: 18px; width: 100%; }
.pp-selo-grande { margin-top: 20px; font-size: 64px; }
.pp-visto svg { display: block; margin: 24px auto 0; }
.pp-visto circle { stroke: #ffd15c; stroke-width: 3; stroke-dasharray: 151; animation: pp-circulo .7s ease-out both; }
.pp-visto path { stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; animation: pp-traco .5s .55s ease-out both; }
@keyframes pp-circulo { from { stroke-dashoffset: 151; } to { stroke-dashoffset: 0; } }
@keyframes pp-traco { from { stroke-dashoffset: 40; opacity: 0; } 1% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
.pp-resumo { margin-top: 24px; padding: 16px 18px; border-radius: 20px; background: #fff; color: #2b1608; text-align: left; }
.pp-resumo h2 { margin: 0 0 6px; font-size: 17px; }
.pp-resumo ul { margin: 0 0 10px; padding: 0; list-style: none; }
.pp-resumo li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1e5d0; font-size: 15px; }
.pp-q { flex: none; font-weight: 800; }
.pp-d { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.pp-d small, .pp-d em { font-size: 13px; color: #7a5a44; }
.pp-v { flex: none; font-weight: 800; }
.pp-resumo .pp-soma { margin: 0; }
.pp-voltar { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 16px; padding: 0 24px; border-radius: 24px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 800; text-decoration: none; }
.pp-assinatura { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; font-size: 14px; font-weight: 800; }
.pp-assinatura img { border-radius: 50%; }
.pp-assinatura small { color: #bfe3c9; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .pp-ponto, .pp-visto circle, .pp-visto path { animation: none; } }

/* ---------------------------------------------------------------- D347: tela de espera (vídeo ou animação do RoboBlu). O QR fica sempre à
   vista: durante a espera ele encolhe um pouco e gruda no alto da tela. */
.pp-esperando .pp-tela { padding-top: 8px; }
.pp-esperando .pp-loja { font-size: 11px; }
.pp-esperando .pp-aguardando { display: contents; }
.pp-esperando .pp-fixo { position: sticky; top: 0; z-index: 5; padding: 2px 0 6px; background: #14532d; }
.pp-esperando .pp-estado h1 { margin: 4px 0 6px; font-size: 19px; }
.pp-esperando .pp-qr { width: max(150px, min(240px, 52vw, 25vh)); width: max(150px, min(240px, 52vw, 25dvh)); padding: 5px; border-radius: 16px; }
.pp-esperando .pp-qr-img { border-radius: 10px; }
.pp-esperando .pp-estado p.pp-codigo { margin-top: 5px; font-size: 19px; }
.pp-esperando .pp-estado p.pp-chamado { margin: 3px 4px 0; padding: 3px 10px; font-size: 12px; }
.pp-esperando .pp-estado p.pp-validade { display: inline-block; margin: 3px 4px 0; font-size: 13px; }
.pp-esperando .pp-secundario { min-height: 34px; margin: 0; padding: 0 12px; border: 0; background: transparent; font-size: 13px; text-decoration: underline; }
@media (max-height: 560px) { .pp-esperando .pp-fixo { position: static; } }
.pp-espera { margin-top: 4px; }
.pp-palco { position: relative; height: calc(75vh - 238px); height: calc(75dvh - 238px); min-height: 220px; max-height: 560px; margin: 0 auto; overflow: hidden; border-radius: 22px; background: #fffaf1; color: #2b1608; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.pp-palco.pp-com-video { width: min(100%, max(124px, calc((75vh - 238px) * .5625))); width: min(100%, max(124px, calc((75dvh - 238px) * .5625))); max-width: 315px; background: #000; }
.pp-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pp-pular, .pp-som, .pp-assistir { position: absolute; z-index: 3; min-height: 40px; padding: 0 12px; border: 0; border-radius: 20px; background: rgba(20, 12, 6, .72); color: #fff; font-family: inherit; font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.pp-pular { right: 8px; bottom: 8px; }
.pp-som { left: 8px; top: 8px; }
.pp-assistir { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pp-acoes { display: flex; gap: 8px; margin-top: 10px; }
.pp-acao { flex: 1; min-height: 50px; padding: 4px 10px; border: 1.5px solid #fff; border-radius: 25px; background: #fff; color: #14532d; font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1.15; cursor: pointer; }
.pp-acao.pp-compartilhar { background: transparent; color: #fff; }
.pp-estado p.pp-copiado, .pp-copiado { margin: 8px 0 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; user-select: all; }
.pp-fim { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.pp-fim img { width: min(60%, 190px); height: auto; }
.pp-fim p { margin: 0; font-size: 16px; font-weight: 800; }

/* a animação provisória: o RoboBlu monta o pedido e leva ao Mestre Pidão (9 segundos, repete) */
.pp-anim { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pp-legenda { position: relative; flex: none; height: 56px; margin: 0; padding: 0; }
.pp-legenda span { position: absolute; left: 12px; right: 12px; top: 10px; font-family: "Fraunces", Georgia, serif; font-size: 17px; font-weight: 700; line-height: 1.2; opacity: 0; animation: pp-l1 9s infinite; }
.pp-legenda .l2 { animation-name: pp-l2; }
.pp-legenda .l3 { animation-name: pp-l3; color: #14532d; }
.pp-cena { position: relative; flex: 1; min-height: 0; max-width: 420px; width: 100%; margin: 0 auto; }
.pp-robo { position: absolute; left: 4%; bottom: 46%; width: 40%; max-height: 52%; object-fit: contain; animation: pp-balanca 1.5s ease-in-out infinite; }
.pp-pidao { position: absolute; right: 7%; bottom: 52%; width: 28%; max-height: 44%; object-fit: contain; animation: pp-salta 9s infinite; }
.pp-esteira { position: absolute; left: 5%; right: 5%; bottom: 58px; height: 10px; border-radius: 6px; background: repeating-linear-gradient(90deg, #14532d 0 14px, #2f7a49 14px 28px); animation: pp-corre 1s linear infinite; }
.pp-bandeja { position: absolute; left: 7%; bottom: 68px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 4px; width: 34%; animation: pp-leva 9s ease-in-out infinite; }
.pp-item1 { width: 54%; height: auto; animation: pp-cai1 9s infinite; }
.pp-item2 { width: 27%; height: auto; animation: pp-cai2 9s infinite; }
.pp-prato { flex-basis: 100%; height: 8px; border-radius: 6px; background: #b98d4f; }
.pp-brilho { position: absolute; color: #e0a100; font-size: 22px; opacity: 0; animation: pp-brilha 9s infinite; }
.pp-brilho.b1 { right: 34%; bottom: 74%; }
.pp-brilho.b2 { right: 4%; bottom: 80%; animation-delay: .15s; }
.pp-brilho.b3 { right: 2%; bottom: 36%; animation-delay: .3s; }
@keyframes pp-l1 { 0% { opacity: 0; } 4%, 36% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes pp-l2 { 0%, 40% { opacity: 0; } 44%, 66% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes pp-l3 { 0%, 70% { opacity: 0; } 74%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pp-balanca { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(3deg); } }
@keyframes pp-cai1 { 0%, 4% { transform: translateY(-180%) rotate(-25deg); opacity: 0; } 14% { transform: translateY(6%) rotate(3deg); opacity: 1; } 18%, 100% { transform: translateY(0) rotate(0); opacity: 1; } }
@keyframes pp-cai2 { 0%, 18% { transform: translateY(-180%) rotate(25deg); opacity: 0; } 28% { transform: translateY(6%) rotate(-3deg); opacity: 1; } 32%, 100% { transform: translateY(0) rotate(0); opacity: 1; } }
@keyframes pp-leva { 0%, 40% { left: 7%; opacity: 1; } 68% { left: 58%; opacity: 1; } 94% { left: 58%; opacity: 1; } 100% { left: 58%; opacity: 0; } }
@keyframes pp-salta { 0%, 68% { transform: scale(1); } 74% { transform: scale(1.22) rotate(-6deg); } 80% { transform: scale(.96) rotate(4deg); } 86%, 100% { transform: scale(1) rotate(0); } }
@keyframes pp-brilha { 0%, 70% { opacity: 0; transform: scale(.4); } 78% { opacity: 1; transform: scale(1.2); } 94%, 100% { opacity: 0; transform: scale(.8); } }
@keyframes pp-corre { from { background-position: 0 0; } to { background-position: 28px 0; } }
@media (prefers-reduced-motion: reduce) {
  .pp-legenda span, .pp-robo, .pp-pidao, .pp-esteira, .pp-bandeja, .pp-item1, .pp-item2, .pp-brilho { animation: none; }
  .pp-legenda .l3 { opacity: 1; }
  .pp-bandeja { left: 33%; }
}

/* ---------------------------------------------------------------- D348: a caixa de jogos. O QR continua no alto (menor enquanto se joga) e
   "Sair do jogo" fica sempre visível, fora da moldura do jogo. */
.pp-recebido { display: none; }
.pp-recebido:has(.pp-central:not([hidden])), .pp-jogando .pp-recebido { display: block; margin-top: 18px; }
.pp-jogos { margin-top: 4px; border-radius: 22px; overflow: hidden; background: #fffaf1; color: #2b1608; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.pp-jogos-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 14px; border-bottom: 1px solid #ebddc3; text-align: left; }
.pp-jogos-cab h2 { min-width: 0; margin: 0; overflow: hidden; font-size: 16px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.pp-sair { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: #b3331b; color: #fff; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.pp-jogos-miolo { position: relative; height: calc(75vh - 230px); height: calc(75dvh - 230px); min-height: 240px; overflow-y: auto; }
.pp-jogando .pp-jogos-miolo { height: calc(100vh - 330px); height: calc(100dvh - 330px); min-height: 250px; }
.pp-moldura { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.pp-carregando { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; margin: 0; background: #fffaf1; font-size: 16px; font-weight: 800; }
.pp-lista-jogos { margin: 0; padding: 8px 10px; list-style: none; }
.pp-jogo { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 76px; margin: 6px 0; padding: 8px 10px; border: 1px solid #ebddc3; border-radius: 18px; background: #fff; color: #2b1608; font-family: inherit; text-align: left; cursor: pointer; }
.pp-jogo img, .pp-sem-capa { flex: none; width: 58px; height: 58px; border-radius: 14px; object-fit: cover; }
.pp-sem-capa { display: flex; align-items: center; justify-content: center; background: #06283d; color: #ffd15c; font-size: 28px; }
.pp-jogo-nome { flex: 1; min-width: 0; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.pp-jogo-ir { flex: none; color: #14532d; font-weight: 800; }
.pp-resultado { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 100%; padding: 10px; box-sizing: border-box; }
.pp-cartao { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 480px); max-height: calc(100dvh - 480px); min-height: 130px; border-radius: 14px; }
.pp-pontos-grandes { font-family: "Fraunces", Georgia, serif; font-size: 40px; }
.pp-resultado-acoes { display: flex; gap: 8px; width: 100%; }
.pp-resultado .pp-acao { border-color: #14532d; background: #14532d; color: #fff; }
.pp-resultado .pp-acao.pp-compartilhar { background: transparent; color: #14532d; }
.pp-recado { margin: 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; user-select: all; }
/* jogando: o QR encolhe, mas continua na tela */
.pp-jogando .pp-tela { padding-top: 8px; }
.pp-jogando .pp-loja { display: none; }
.pp-jogando .pp-aguardando { display: contents; }
.pp-jogando .pp-fixo { position: sticky; top: 0; z-index: 5; padding: 0 0 6px; background: #14532d; }
.pp-jogando .pp-estado h1 { margin: 0 0 4px; font-size: 15px; }
.pp-jogando .pp-qr { width: 150px; padding: 4px; border-radius: 12px; }
.pp-jogando .pp-qr-img { border-radius: 8px; }
.pp-jogando .pp-estado p.pp-codigo { margin-top: 3px; font-size: 15px; }
.pp-jogando .pp-estado p.pp-chamado, .pp-jogando .pp-estado p.pp-validade, .pp-jogando .pp-renovar { display: none; }
.pp-jogando .pp-importado .pp-visto { display: none; }
.pp-jogando .pp-importado h1 { margin: 4px 0; font-size: 18px; }
.pp-jogando .pp-importado p { display: none; }
@media (max-height: 560px) { .pp-jogando .pp-fixo { position: static; } }


/* ---------------------------------------------------------------- D349: telefone opcional, RoboCoins e privacidade */
.pp-fone { padding-top: 10px; }
.pp-fone .pp-estado h1 { margin: 2px 0 6px; font-size: 20px; }
.pp-fone .pp-estado p { margin: 4px 0 0; font-size: 14px; }
.pp-fone .pp-qr { width: max(140px, min(200px, 48vw, 22vh)); width: max(140px, min(200px, 48vw, 22dvh)); padding: 5px; border-radius: 16px; }
.pp-fone .pp-qr-img { border-radius: 10px; }
.pp-fone .pp-estado p.pp-codigo { margin-top: 4px; font-size: 17px; }
.pp-tela p.pp-enviado { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 0; padding: 4px 12px; border-radius: 14px; background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 800; }
.pp-enviado span { color: #ffd15c; font-size: 15px; }
.pp-fone-bloco { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .25); }
.pp-fone-bloco h2 { margin: 0; font-size: 17px; }
.pp-fone-bloco h2 small { font-size: 13px; font-weight: 700; color: #bfe3c9; }
.pp-fone-form { margin-top: 6px; text-align: left; }
.pp-fone-campo { display: block; font-size: 13px; font-weight: 800; }
.pp-fone-form input[type="tel"] { display: block; width: 100%; box-sizing: border-box; min-height: 48px; margin-top: 4px; padding: 8px 14px; border: 0; border-radius: 14px; background: #fff; color: #2b1608; font-family: inherit; font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.pp-estado p.pp-fone-erro, .pp-fone-erro { margin: 6px 0 0; padding: 6px 10px; border-radius: 12px; background: #ffe3dc; color: #8c2410; font-size: 13px; font-weight: 800; }
.pp-fone-ofertas { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .1); font-size: 12.5px; font-weight: 700; line-height: 1.35; cursor: pointer; }
.pp-fone-ofertas input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: #ffd15c; }
.pp-fone-botoes { display: flex; gap: 10px; margin-top: 10px; }
.pp-fone-botoes .pp-principal { flex: 1.2; min-height: 52px; margin: 0; }
.pp-pular-fone { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 52px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 18px; color: #fff; font-size: 17px; font-weight: 800; text-decoration: none; }
.pp-fone .pp-assinatura { margin-top: 6px; }
.pp-fone-privacidade { text-align: center; }
.pp-fone-privacidade a, .pp-moedas a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 800; }
.pp-moedas { display: flex; flex-direction: column; align-items: center; margin-top: 20px; padding: 12px 16px 4px; border-radius: 20px; background: rgba(255, 255, 255, .12); }
.pp-moedas p { margin: 0; font-size: 15px; font-weight: 700; }
.pp-moedas p strong { color: #ffd15c; font-size: 24px; }
.pp-moedas span { margin-top: 2px; font-size: 14px; color: #d7efdd; }
.pp-moedas a.pp-moedas-priv { font-size: 13px; color: #bfe3c9; }
.pp-saldo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 8px 16px; border-bottom: 1px solid #ebddc3; text-align: left; }
.pp-saldo p { margin: 0; font-size: 15px; font-weight: 700; }
.pp-saldo p strong { font-size: 20px; }
.pp-saldo a { display: inline-flex; align-items: center; min-height: 44px; color: #14532d; font-size: 14px; font-weight: 800; }
.pp-saldo p.pp-saldo-aviso { width: 100%; color: #8c2410; font-size: 14px; }
.pp-jogo-nome small { display: block; font-size: 13px; font-weight: 700; color: #7a5a44; }
.pp-jogo:disabled { background: #f6efe2; color: #8a7a68; cursor: default; }
.pp-jogo:disabled .pp-jogo-ir { color: #8c2410; }
.pp-jogo:disabled img, .pp-jogo:disabled .pp-sem-capa { opacity: .55; }
.pp-resultado p.pp-ganhou { margin: 0; font-size: 15px; font-weight: 800; color: #14532d; }
.pp-priv-pagina { background: #fffaf1; color: #2b1608; font-family: "Nunito", system-ui, sans-serif; }
.pp-privacidade { max-width: 560px; margin: 0 auto; padding: 20px 20px calc(28px + env(safe-area-inset-bottom)); line-height: 1.5; }
.pp-privacidade h1 { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 30px; }
.pp-privacidade h2 { margin: 24px 0 6px; font-size: 18px; }
.pp-privacidade ul { padding-left: 20px; }
.pp-privacidade li { margin-bottom: 6px; }
.pp-privacidade label { display: block; margin-top: 8px; font-weight: 800; }
.pp-privacidade input[type="tel"] { display: block; width: 100%; box-sizing: border-box; min-height: 52px; margin-top: 6px; padding: 10px 14px; border: 1px solid #d9c7a6; border-radius: 14px; background: #fff; color: #2b1608; font-family: inherit; font-size: 20px; }
.pp-privacidade button { width: 100%; min-height: 54px; margin-top: 12px; border: 0; border-radius: 16px; background: #14532d; color: #fff; font-family: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.pp-provisorio { margin: 4px 0 0; font-size: 13px; color: #7a5a44; }
.pp-priv-ok { padding: 12px 14px; border-radius: 14px; background: #dff3e4; color: #14532d; font-weight: 800; }
.pp-priv-voltar { display: inline-flex; align-items: center; min-height: 48px; color: #14532d; font-weight: 800; }
.pp-privacidade .pp-assinatura img { border-radius: 50%; }
.pp-privacidade .pp-assinatura small { color: #7a5a44; }

/* ---------------------------------------------------------------- D350: vídeo deitado, "Toque para ouvir" e o Game Center depois do vídeo */
.pp-palco.pp-com-video.pp-deitado { width: 100%; max-width: 420px; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
.pp-som.pp-ouvir { left: 50%; right: auto; top: 8px; transform: translateX(-50%); background: #b3331b; font-size: 15px; box-shadow: 0 4px 16px rgba(0, 0, 0, .4); }
.pp-central { margin-top: 10px; overflow: hidden; border-radius: 22px; background: #fffaf1; color: #2b1608; text-align: left; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.pp-central h2 { margin: 0; padding: 12px 16px 4px; font-size: 17px; font-weight: 800; }
/* com os jogos à mostra, o palco de cima encolhe para o primeiro jogo aparecer sem rolar */
.pp-com-central .pp-palco:not(.pp-deitado) { height: calc(75vh - 330px); height: calc(75dvh - 330px); min-height: 170px; }
.pp-com-central .pp-palco.pp-com-video:not(.pp-deitado) { width: max(96px, calc((75vh - 330px) * .5625)); width: max(96px, calc((75dvh - 330px) * .5625)); }
.pp-com-central .pp-palco .pp-robo, .pp-com-central .pp-palco .pp-pidao { bottom: 56%; max-height: 34%; }
.pp-com-central .pp-fim img { width: min(40%, 110px); }
.pp-com-central .pp-fim p { font-size: 14px; }
/* jogando: só o QR e o jogo na tela (nada para rolar, "Sair do jogo" sempre à vista) e o máximo de altura para o jogo */
.pp-jogando .pp-resumo, .pp-jogando .pp-moedas, .pp-jogando .pp-voltar, .pp-jogando .pp-assinatura, .pp-jogando .pp-tela > .pp-nota { display: none; }
.pp-jogando .pp-tela { min-height: 0; padding-bottom: 6px; }
.pp-jogando .pp-aguardando h1 { display: none; }
.pp-jogando .pp-qr { width: 140px; }
.pp-jogando .pp-jogos { margin-top: 0; }
.pp-jogando .pp-jogos-miolo { height: calc(100vh - 262px); height: calc(100dvh - 262px); min-height: 250px; }
.pp-jogando .pp-importado:not([hidden]) ~ .pp-espera .pp-jogos-miolo { height: calc(100dvh - 150px); }
