/* Camada de festa: gestos dos ícones, fichas nos títulos, letreiro, confete, adesivos, carimbo, jogo e garçom.
   Só acrescenta. Ícones Lucide (ISC), contorno com traço 1,75; o fundo colorido é a ficha, nunca o ícone preenchido. */
@layer festa{

/* 1. gestos: cada ícone tem um jeito de reagir ao ponteiro, ao foco e à chegada da seção */
:is(a,button,li,article,.cartao,.modulo,.casa,.passo,.frente,.quem-cartao,.dado,summary,.cz-col li):is(:hover,:focus-visible,:focus-within) svg[data-gesto],
.acorda svg[data-gesto]{animation:var(--gesto) .8s var(--mola) both;animation-delay:var(--atraso,0s)}
svg[data-gesto]{transform-origin:50% 50%;transform-box:fill-box}
[data-gesto="balanca"]{--gesto:g-balanca;transform-origin:50% 0}
[data-gesto="gira"]{--gesto:g-gira}
[data-gesto="pula"]{--gesto:g-pula}
[data-gesto="procura"]{--gesto:g-procura}
[data-gesto="grita"]{--gesto:g-grita}
[data-gesto="brilha"]{--gesto:g-brilha}
[data-gesto="imprime"]{--gesto:g-imprime}
[data-gesto="acelera"]{--gesto:g-acelera}
[data-gesto="brinda"]{--gesto:g-brinda;transform-origin:50% 100%}
@keyframes g-balanca{20%{rotate:16deg}45%{rotate:-12deg}70%{rotate:6deg}}
@keyframes g-gira{to{rotate:360deg}}
@keyframes g-pula{35%{translate:0 -6px;scale:1.08 .94}60%{translate:0 0;scale:.94 1.06}}
@keyframes g-procura{25%{translate:3px -3px}50%{translate:-3px -2px}75%{translate:2px 3px}}
@keyframes g-grita{30%{scale:1.28;rotate:-10deg}60%{scale:.94;rotate:4deg}}
@keyframes g-brilha{40%{scale:1.22;filter:drop-shadow(0 0 6px var(--arco))}}
@keyframes g-imprime{25%{translate:0 3px}50%{translate:0 -1px}75%{translate:0 2px}}
@keyframes g-acelera{30%{translate:6px 0;skew:-12deg}55%{translate:-2px 0;skew:4deg}}
@keyframes g-brinda{30%{rotate:-22deg}55%{rotate:10deg}}

/* 2. ficha: cada título de seção ganha um ícone numa ficha de balcão, que entra girando */
.ficha{display:inline-grid;place-items:center;width:1.12em;height:1.12em;margin-right:.24em;vertical-align:-.14em;border-radius:50%;background:var(--arco);color:var(--floresta-900);rotate:-9deg;box-shadow:0 .08em 0 color-mix(in oklab,var(--floresta-900) 35%,transparent)}
.ficha.laranja{background:var(--laranja)}
.ficha svg{width:.6em;height:.6em;stroke-width:2}
@supports (animation-timeline:view()){.ficha{animation:ficha-entra linear both;animation-timeline:view();animation-range:entry 0% entry 70%}}
@keyframes ficha-entra{from{scale:0;rotate:-120deg}70%{scale:1.15}}
details summary .ico-p{width:20px;height:20px;flex:none;color:var(--laranja-escuro);margin-right:10px}
details summary{justify-content:flex-start}
details summary::after{margin-left:auto}

/* 3. letreiro: uma faixa de cardápio que não para */
.letreiro{height:96px;contain:paint;background:var(--floresta-900);display:flex;align-items:center;justify-content:center;position:relative}
.letreiro-faixa{flex:none;width:112%;rotate:-1.8deg;background:var(--arco);color:var(--floresta-900);contain:paint;padding:13px 0;box-shadow:0 6px 0 color-mix(in oklab,var(--floresta-900) 40%,transparent)}
.letreiro-trilho{display:flex;gap:28px;width:max-content;align-items:center;animation:corre-letreiro 48s linear infinite}
#letreiro-frentes .letreiro-faixa,#letreiro-modulos .letreiro-faixa{background:var(--laranja);rotate:1.4deg}
#letreiro-frentes .letreiro-trilho,#letreiro-modulos .letreiro-trilho{animation-direction:reverse;animation-duration:56s}
.letreiro span{display:inline-flex;align-items:center;gap:10px;font-family:var(--serif);font-variation-settings:var(--macio);font-weight:600;font-size:1.45rem;letter-spacing:-.02em;white-space:nowrap}
.letreiro span .ico{width:28px;height:28px;stroke-width:1.75}
.letreiro b{font-family:var(--mao);font-weight:400;font-size:2.1rem;white-space:nowrap;color:var(--floresta-900)}
.letreiro:hover .letreiro-trilho{animation-play-state:paused}
@keyframes corre-letreiro{to{translate:-50% 0}}

/* 4. confete de pratos e de comida */
.confete{position:fixed;inset:0;pointer-events:none;z-index:300;overflow:clip}
.confete i{position:fixed;width:20px;height:20px;margin:-10px 0 0 -10px;animation:voa var(--t) cubic-bezier(.22,.7,.35,1) forwards}
.c-prato{border-radius:50%;background:radial-gradient(circle closest-side,var(--laranja) 0 64%,var(--creme) 64.5% 73%,var(--laranja) 73.5%)}
.c-icone{color:var(--cor)}
.c-icone svg{width:22px;height:22px;stroke-width:2.2;filter:drop-shadow(0 1px 0 var(--floresta-900))}
@keyframes voa{0%{translate:0 0;scale:.3;rotate:0deg;opacity:1}45%{translate:calc(var(--dx)*.75) var(--dy);scale:1.1}100%{translate:var(--dx) calc(var(--dy) + 340px);rotate:var(--giro);scale:.9;opacity:0}}

/* 5. adesivo ao lado dos números grandes */
.adesivo{display:inline-flex;align-items:center;gap:5px;margin-left:12px;padding:5px 11px 5px 8px;border-radius:var(--pilula);background:var(--laranja);color:var(--floresta-900);font:700 .8125rem/1 var(--sans);letter-spacing:0;vertical-align:middle;rotate:-7deg;box-shadow:0 3px 0 var(--floresta-900);animation:adesivo 3.2s ease-in-out infinite}
.adesivo .ico{width:15px;height:15px;stroke-width:2.2}
.adesivo em{font-style:normal}
@keyframes adesivo{50%{rotate:5deg;translate:0 -2px}}

/* 6. carimbo giratório no herói */
.carimbo{position:absolute;z-index:3;width:118px;height:118px;border-radius:50%;background:var(--laranja);color:var(--floresta-900);display:grid;place-items:center;box-shadow:0 14px 30px -12px oklch(0% 0 0/.6);pointer-events:none}
.carimbo svg.roda{position:absolute;inset:0;width:100%;height:100%;animation:roda 16s linear infinite}
.carimbo svg.roda text{font:700 11.5px var(--sans);letter-spacing:.06em;fill:var(--floresta-900)}
.carimbo .ico{width:38px;height:38px;stroke-width:1.75;animation:g-pula 2.4s var(--mola) infinite}
@keyframes roda{to{rotate:360deg}}
.balcao{position:relative}
.balcao>.carimbo{top:30%;left:-70px;width:104px;height:104px}
.cena>.carimbo{top:-36px;right:4%}
@media (max-width:1020px){.balcao>.carimbo{display:none}.cena>.carimbo{width:96px;height:96px;right:0}}
@media (max-width:560px){.cena>.carimbo{display:none}}

/* 7. o jogo "Tá na resposta?" */
.jogo{background:var(--arco);color:var(--floresta-900);padding-block:clamp(64px,8vw,112px);position:relative;overflow:clip;--superficie-apoio:color-mix(in oklab,var(--floresta-900) 82%,transparent)}
.jogo::before{content:"";position:absolute;inset:0;background:radial-gradient(circle,color-mix(in oklab,var(--floresta-900) 14%,transparent) 0 6px,transparent 7px) 0 0/34px 34px;opacity:.45;pointer-events:none}
.jogo .wrap{position:relative}
.jogo-cabeca{display:grid;gap:12px;max-width:760px;margin-bottom:36px}
.jogo-selo{display:inline-flex;align-items:center;gap:8px;width:fit-content;font:700 var(--t-pequeno)/1 var(--sans);padding:8px 14px;border-radius:var(--pilula);background:var(--floresta-900);color:var(--arco);rotate:-3deg}
.jogo-selo .ico{width:18px;height:18px}
.jogo h2{font-size:var(--t-secao,clamp(2rem,1.45rem + 2.3vw,3rem));color:var(--floresta-900);max-width:20ch}
.jogo-sub{font-size:var(--t-lead,1.2rem);line-height:1.45}
.jogo-mesa{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(20px,3vw,40px);align-items:stretch}
.jogo-casas{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.jogo-casas button{display:grid;justify-items:start;align-content:space-between;gap:14px;min-height:124px;padding:20px;border-radius:22px;border:2.5px solid var(--floresta-900);background:var(--creme);color:var(--floresta-900);font:600 1.15rem/1.15 var(--serif);font-variation-settings:var(--macio);text-align:left;cursor:pointer;box-shadow:0 6px 0 var(--floresta-900);transition:transform var(--d-peca) var(--mola),box-shadow var(--d-peca),background-color var(--d-toque)}
.jogo-casas button:nth-child(odd){rotate:-1.4deg}
.jogo-casas button:nth-child(even){rotate:1.2deg}
.jogo-casas button:hover{transform:translateY(-4px);box-shadow:0 10px 0 var(--floresta-900)}
.jogo-casas button:active{transform:translateY(3px);box-shadow:0 2px 0 var(--floresta-900)}
.jogo-casas button[aria-pressed="true"]{background:var(--floresta-900);color:var(--arco)}
.jogo-casas .ico-g{width:44px;height:44px;stroke-width:1.6}
.jogo-tela{background:var(--papel);border-radius:26px;padding:clamp(20px,2.6vw,32px);box-shadow:0 30px 60px -28px oklch(0% 0 0/.55),0 0 0 2.5px var(--floresta-900);display:grid;gap:20px;align-content:start;min-height:340px}
.jogo-pergunta{display:flex;gap:12px;align-items:flex-start;font:500 1.2rem/1.35 var(--serif);font-variation-settings:var(--macio)}
.jogo-pergunta .ico{width:26px;height:26px;flex:none;color:var(--laranja-escuro);translate:0 2px}
.jogo-placar{display:grid;gap:16px}
.jogo-placar[hidden]{display:none}
.jp-linha{display:grid;grid-template-columns:7.6rem minmax(0,1fr) auto;gap:12px;align-items:center}
.jp-linha small{font:600 var(--t-pequeno)/1.2 var(--sans)}
.jp-linha b{font-family:var(--serif);font-variation-settings:var(--macio);font-size:1.6rem;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.jp-pratos{display:grid;grid-template-columns:repeat(10,1fr);gap:5px}
.jp-pratos i{aspect-ratio:1;border-radius:50%;box-shadow:inset 0 0 0 2px color-mix(in oklab,var(--floresta) 35%,transparent)}
.jp-pratos i.cheio{background:radial-gradient(circle closest-side,var(--laranja) 0 64%,var(--papel) 64.5% 73%,var(--laranja) 73.5%);box-shadow:none}
.rodou .jp-pratos i.cheio{animation:enche-prato .45s var(--mola) both;animation-delay:calc(var(--i)*55ms)}
.rodou [data-tipo="depois"] i.cheio{animation-delay:calc(var(--i)*55ms + 500ms)}
@keyframes enche-prato{from{scale:0;rotate:-90deg}}
.jp-frase{font-size:1rem;line-height:1.45;color:var(--tinta-2)}
.jogo-placar .btn{justify-self:start}
@media (max-width:900px){.jogo-mesa{grid-template-columns:1fr}.jp-linha{grid-template-columns:1fr auto}.jp-linha .jp-pratos{grid-column:1/-1;grid-row:2}}

/* 8. garçom de plantão */
.garcom{position:fixed;left:18px;bottom:18px;z-index:47;display:flex;align-items:flex-end;gap:10px;text-decoration:none;opacity:0;translate:0 30px;pointer-events:none;transition:opacity var(--d-tela),translate var(--d-tela) var(--mola)}
.garcom.on{opacity:1;translate:0 0;pointer-events:auto}
.g-robo{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;background:var(--laranja);color:var(--floresta-900);box-shadow:0 12px 26px -10px oklch(0% 0 0/.6);animation:g-pula 1.6s var(--mola) infinite}
.g-robo .ico{width:30px;height:30px;stroke-width:1.9}
.g-balao{background:var(--papel);color:var(--tinta);font:600 .9375rem/1.25 var(--sans);padding:10px 14px;border-radius:16px 16px 16px 4px;box-shadow:var(--sombra-2);order:2;max-width:210px;margin-bottom:34px}
@media (max-width:720px){.garcom{bottom:86px}}

@media (prefers-reduced-motion:reduce){
  .letreiro-trilho,.adesivo,.carimbo svg.roda,.carimbo .ico,.g-robo,.ficha{animation:none}
  svg[data-gesto]{animation:none!important}
}
}
