/* Balbuu PAC — estilo. Cores/fontes vêm de pecas/marca.css (copiado). Espaçamento em múltiplos de 4,
   borda 1px, sem sombra em card parado, canto ≤ 8px. */
@font-face{font-family:'Baloo 2';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fontes/baloo2-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122}
@font-face{font-family:'Baloo 2';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fontes/baloo2-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fontes/nunito-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fontes/nunito-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F}

html,body{overscroll-behavior-y:contain;background:linear-gradient(180deg,var(--bg1),var(--bg2));min-height:100%}
body{padding:16px;padding-bottom:40px;font-size:15px}
.wrap{max-width:520px;margin:0 auto}
.oculto{display:none!important}

/* topo */
.topo{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.topo .tit{font-family:'Baloo 2',system-ui,sans-serif;font-weight:800;font-size:18px;flex:1;line-height:1.1}
.tit small{display:block;font-family:'Nunito',system-ui,sans-serif;font-weight:700;font-size:11px;color:var(--txt2)}
.btn{min-height:44px;min-width:44px;border-radius:8px;border:1px solid var(--bordacard);background:var(--card);
  font-family:'Baloo 2',system-ui,sans-serif;font-weight:700;font-size:15px;color:var(--grafite);padding:0 16px;cursor:pointer;transition:200ms}
.btn:active{transform:scale(.96)}
.btn.acao{background:var(--laranja);border-color:var(--laranja);color:var(--grafite)}
.btn.grande{width:100%;min-height:52px;font-size:17px}
.estrelas{font-family:'Baloo 2',system-ui,sans-serif;font-weight:800;font-size:16px;white-space:nowrap}
.nivel{font-size:12px;font-weight:800;color:var(--txt2);white-space:nowrap}
.barra{height:8px;border-radius:4px;background:var(--bordacard);overflow:hidden;margin-bottom:16px}
.barra i{display:block;height:100%;width:0;background:var(--turq);transition:200ms}

/* menu */
.aviso{font-size:12px;color:var(--txt2);border:1px solid var(--bordacard);border-radius:8px;padding:8px 12px;margin-bottom:16px;background:var(--card);line-height:1.4}
.rot{font-family:'Baloo 2',system-ui,sans-serif;font-weight:700;font-size:15px;color:var(--azul);margin:16px 2px 8px}
.planetas{display:flex;flex-wrap:wrap;gap:8px}
.som{margin:16px 0 0}
.som summary{list-style:none;display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:44px;cursor:pointer}
.som summary::-webkit-details-marker{display:none}
.som summary .rot{margin:0 2px}
.som summary .chip{display:inline-flex;align-items:center;gap:4px;pointer-events:none}
.som .seta{font-size:18px;color:var(--azul);transition:200ms}
.som[open] .seta{transform:rotate(180deg)}
.som[open] summary .chip{display:none}
.som .planetas{margin-top:8px}
.chip{min-height:44px;min-width:44px;padding:0 12px;border-radius:9999px;border:1px solid var(--bordacard);background:var(--card);
  font-family:'Baloo 2',system-ui,sans-serif;font-weight:700;font-size:15px;color:var(--grafite);cursor:pointer;transition:200ms}
.chip.on{background:var(--turq);border-color:var(--turq);color:var(--grafite)}
.grade{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.jcard{background:var(--card);border:1px solid var(--bordacard);border-radius:8px;padding:12px;text-align:left;cursor:pointer;
  display:flex;flex-direction:column;gap:4px;min-height:44px;transition:200ms}
.jcard:active{transform:scale(.97)}
.jcard .em{font-size:28px;line-height:1}
.jcard b{font-family:'Baloo 2',system-ui,sans-serif;font-size:15px;line-height:1.1}
.jcard small{font-size:11px;font-weight:700;color:var(--txt2);line-height:1.3}
.jcard.fone small em{font-style:normal;color:var(--azul)}
.suave{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:700;color:var(--txt2);margin-top:16px;min-height:44px}
.suave input{width:24px;height:24px}

/* jogo */
.palco{background:var(--card);border:1px solid var(--bordacard);border-radius:8px;padding:16px}
.mascote{display:flex;gap:12px;align-items:center;margin-bottom:16px}
.mascote img{width:64px;height:64px;object-fit:contain;flex:none;transition:200ms}
.mascote.vibra img{animation:pulo .5s}
.balao{border:1px solid var(--bordacard);border-radius:8px;padding:8px 12px;font-size:15px;font-weight:700;line-height:1.3;background:var(--bg1);flex:1}
@keyframes pulo{0%,100%{transform:translateY(0)}40%{transform:translateY(-12px) rotate(-6deg)}70%{transform:translateY(0) rotate(4deg)}}
@keyframes cambalhota{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
.cambalhota img{animation:cambalhota .6s}
.ouvir{margin:0 auto 16px;display:flex;gap:8px;justify-content:center}
.ouvir .btn{flex:1;max-width:220px}
.estado{text-align:center;font-weight:800;font-size:13px;color:var(--txt2);min-height:20px;margin-bottom:12px}

/* figuras */
.figs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.figs.dois{grid-template-columns:repeat(2,minmax(0,1fr))}
.fig{background:var(--card);border:1px solid var(--bordacard);border-radius:8px;padding:8px;text-align:center;cursor:pointer;min-height:44px;transition:200ms}
.fig:active{transform:scale(.95)}
.fig img{width:100%;aspect-ratio:1;max-height:96px;object-fit:cover;border-radius:6px;display:block;background:var(--bg1);border:1px solid var(--bordacard)}
.fig .emo{font-size:48px;line-height:1.3}
.fig .cap{font-family:'Baloo 2',system-ui,sans-serif;font-weight:700;font-size:13px;margin-top:4px;opacity:0;transition:200ms;min-height:18px}
.fig.revela .cap{opacity:1}
.fig.ok{border-color:var(--verde);background:#eefaf1}
.fig.no{opacity:.45}
.fig.usada{opacity:.3;pointer-events:none}
.fig.preso{pointer-events:none}

/* filhotes (Coral / dicótico) */
.filhotes{display:flex;gap:16px;justify-content:center;align-items:flex-end;margin-bottom:16px}
.filhote{background:var(--card);border:1px solid var(--bordacard);border-radius:8px;padding:8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:44px;min-height:44px;transition:200ms}
.filhote:active{transform:scale(.94)}
.filhote svg{display:block}
.filhote .nome{font-size:12px;font-weight:800;color:var(--txt2)}
.filhote.canta svg{animation:pulo .35s}
.filhote.lado-e .nome::before{content:'◀ '}
.filhote.lado-d .nome::after{content:' ▶'}
.slots{display:flex;gap:8px;justify-content:center;margin-bottom:16px;min-height:44px}
.slot{width:44px;height:44px;border-radius:8px;border:1px dashed var(--txt2);display:flex;align-items:center;justify-content:center;font-weight:800}
.slot.cheio{border-style:solid}
.slot.ok{border-color:var(--verde);background:#eefaf1}
.slot.no{border-color:var(--rosa)}

/* cesta (lista) */
.cesta{border:1px dashed var(--txt2);border-radius:8px;padding:8px;min-height:64px;display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-bottom:16px}
.cesta .item{width:52px;height:52px;border-radius:6px;border:1px solid var(--bordacard);overflow:hidden;background:var(--bg1)}
.cesta .item img{width:100%;height:100%;object-fit:cover}
.cesta .item.ok{border-color:var(--verde)}
.cesta .item.no{border-color:var(--rosa)}

/* ovos */
.ovos{display:flex;justify-content:center;gap:16px}
.ovo{background:var(--card);border:1px solid var(--bordacard);border-radius:8px;padding:12px 8px;min-width:88px;min-height:96px;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:4px;transition:200ms}
.ovo:active{transform:scale(.95)}
.ovo .lin{display:flex;gap:4px}
.ovo svg{display:block}
.ovo.ok{border-color:var(--verde);background:#eefaf1}
.ovo.no{opacity:.45}
.ovo b{font-family:'Baloo 2',system-ui,sans-serif;font-size:13px}

/* voo */
.ceu{height:120px;border-radius:8px;border:1px solid var(--bordacard);background:linear-gradient(180deg,var(--bg1),var(--card));position:relative;overflow:hidden;margin-bottom:16px}
.ceu .bal{position:absolute;left:12px;top:24px;width:64px;height:64px;object-fit:contain}
.ceu .nuvem{position:absolute;right:-60px;top:36px;font-size:40px;opacity:.9}
.ceu .nuvem.passa{animation:passa 1.6s linear forwards}
@keyframes passa{from{right:-60px}to{right:100%}}
.pega{width:100%;min-height:96px;font-size:24px}

/* fim */
.fim{text-align:center}
.fim img{width:96px;height:96px;object-fit:contain}
.fim .big{font-family:'Baloo 2',system-ui,sans-serif;font-size:28px;font-weight:800;margin:8px 0}
.fim .btn{margin:4px}

/* filhote: resposta */
.filhote.ok{border-color:var(--verde);background:#eefaf1}
.filhote.no{opacity:.45}
.lados{display:flex;gap:16px;justify-content:center;margin-bottom:16px}
.lados .filhote{flex:1;max-width:160px;min-height:120px}

.fig.pego{border-color:var(--azul);border-width:2px}

/* celular estreito */
@media (max-width:380px){
  body{padding:12px}
  .figs{gap:8px}
  .grade{gap:8px}
  .jcard{padding:8px}
}
