/* Parque do Gemalino — visual próprio do jogo (o comum está em base.css). Prefixo: pq-.
   Os recortes dos personagens nunca são espelhados (nenhum scaleX(-1) neles). Nada pisca. */
:root { --tema: #26bec8; --tema-escuro: #12868e; --rosa: #ec407a; }

.pq-palco-mapa, .pq-palco-brinquedo { display: block; }
.pq-pausado *, .pq-pausado { animation-play-state: paused !important; }
.pq-amigo { position: absolute; z-index: 3; pointer-events: none; height: 36%; width: auto; }
.pq-amigo-esq { left: 1%; }
.pq-amigo-dir { right: 1%; }
.pq-amigo-baixo { bottom: 2%; }

/* ---------- mapa ---------- */
.pq-rolagem {
  position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; touch-action: pan-x;
  border-radius: var(--raio); box-shadow: 0 0 0 5px var(--branco), var(--sombra); scrollbar-width: thin;
}
.pq-mapa { position: relative; height: 100%; }
.pq-mapa > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pq-ir {
  position: absolute; z-index: 2; transform: translate(-50%, -50%); border: 0; padding: 0;
  background: transparent; border-radius: 28px;
}
.pq-ir:hover, .pq-ir:active { background: rgba(255, 255, 255, 0.22); }
.pq-ir.pq-escondido { visibility: hidden; }
.pq-feito {
  position: absolute; right: 2px; top: 2px; font-size: 26px; line-height: 1; padding: 4px;
  background: var(--branco); border-radius: 12px; box-shadow: var(--sombra);
}
.pq-enfeite { position: absolute; z-index: 1; width: 2.2%; transform: translate(-50%, -12%); pointer-events: none; }
.pq-enfeite svg { width: 100%; height: auto; display: block; }
.pq-enfeite.pq-novo { animation: pq-chega 0.9s ease-out both; }
.pq-gemalino-mapa {
  position: absolute; z-index: 3; height: 24%; width: auto; pointer-events: none;
  transform-origin: 50% 100%; filter: drop-shadow(0 6px 3px rgba(0, 0, 0, 0.18));
}
.pq-seta { position: absolute; top: 4px; z-index: 6; font-size: 34px; }
.pq-seta-esq { left: 4px; }
.pq-seta-dir { right: 4px; }
.pq-seta[hidden] { display: none; }

/* ---------- quadro de cada brinquedo ---------- */
.pq-quadro {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow: hidden;
  border-radius: var(--raio); box-shadow: 0 0 0 5px var(--branco), var(--sombra); background: #bfe9ff;
}
.pq-quadro > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pq-quadro svg { pointer-events: none; }
.pq-brilha { filter: drop-shadow(0 0 10px #fff59d) drop-shadow(0 0 6px #fbc02d); outline: 5px dashed #fbc02d; outline-offset: 2px; border-radius: 22px; }
.pq-contado { filter: drop-shadow(0 0 10px #fff59d) drop-shadow(0 0 6px #fbc02d); }
.pq-opcoes { position: absolute; z-index: 20; bottom: 3%; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.pq-opcao { min-width: var(--alvo); padding: 0 10px; font-size: 34px; }
.pq-tecla { display: block; font-size: 13px; font-weight: bold; line-height: 1; color: var(--azul); opacity: 0.8; }

/* fim do brinquedo: o ingresso */
.pq-fim {
  position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; background: rgba(255, 253, 247, 0.55); border-radius: var(--raio);
}
.pq-ingresso { width: min(40%, 300px); animation: pq-chega 0.8s ease-out both; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.12)); }
.pq-ingresso svg { width: 100%; height: auto; display: block; }
.pq-fim-botoes { display: flex; gap: 18px; }
.pq-ir-parque { font-size: 40px; }

/* 1. carrossel */
.pq-lampadas { position: absolute; z-index: 4; top: 26%; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.pq-lampada { width: 24px; height: 24px; border-radius: 50%; background: #fff3c4; border: 3px solid #c49000; }
.pq-lampada.acesa { background: #ffd54f; box-shadow: 0 0 12px 4px #fff59d; }
.pq-bicho-escolha {
  position: absolute; z-index: 15; top: 66%; transform: translate(-50%, -50%); width: max(var(--alvo), 20%); height: max(var(--alvo), 40%);
  border: 0; border-radius: 22px; background: rgba(255, 253, 247, 0.75); box-shadow: var(--sombra); padding: 4px;
}
.pq-bicho-escolha svg { width: 100%; height: 100%; }
.pq-bicho { position: absolute; width: 17%; aspect-ratio: 128 / 140; pointer-events: none; }
.pq-bicho svg { width: 100%; height: 100%; display: block; }
.pq-escolhido svg { filter: drop-shadow(0 0 6px #fff59d); }
.pq-gemalino-montado { position: absolute; height: 30%; width: auto; pointer-events: none; }
.pq-opcoes-voltas { bottom: 3%; }

/* 2. pescaria */
.pq-pato {
  position: absolute; z-index: 5; width: max(var(--alvo), 11%); aspect-ratio: 1; border: 0; padding: 0;
  background: transparent; transform: translate(-50%, -50%); border-radius: 22px;
}
.pq-pato svg { width: 100%; height: 100%; display: block; }
.pq-amigo-baixo.pq-amigo-esq { height: 34%; }
.pq-amigo.pq-bia-bolhas { height: 22%; left: auto; right: 2%; }

/* 3. bolhas */
.pq-alvo {
  position: absolute; z-index: 5; width: max(var(--alvo), 12%); aspect-ratio: 120 / 140; border: 0; padding: 0;
  background: transparent; transform-origin: 50% 0; transform: translateX(-50%); border-radius: 22px;
}
.pq-alvo svg { width: 100%; height: 100%; display: block; }
.pq-brilhou { filter: drop-shadow(0 0 14px #fff59d) drop-shadow(0 0 8px #ffd54f); }
.pq-bolha {
  position: absolute; z-index: 8; width: 5%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, rgba(225, 245, 254, 0.5) 30%, rgba(129, 212, 250, 0.35) 70%, rgba(236, 64, 122, 0.35) 100%);
  border: 2px solid rgba(129, 212, 250, 0.9);
}

/* 4. labirinto */
.pq-milharal { touch-action: none; background: #c5e1a5; }
.pq-labirinto-desenho { position: absolute; left: 0; top: 0; height: 100%; }
.pq-labirinto-desenho svg { width: 100%; height: 100%; display: block; }
.pq-galinha-saida { position: absolute; right: 0.5%; height: 30%; width: auto; transform: translateY(-50%); pointer-events: none; }
.pq-gemalino-labirinto {
  position: absolute; z-index: 4; width: max(var(--alvo), 13%); aspect-ratio: 1; object-fit: contain; pointer-events: none;
  transform-origin: 50% 90%; filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.2));
}
.pq-amigo.pq-gemalino-labirinto { height: auto; }
.pq-tecla-labirinto { position: absolute; right: 1%; top: 3%; padding: 3px 6px; background: var(--branco); border-radius: 8px; }

/* 5. roda-gigante */
.pq-roda { position: absolute; height: 80%; aspect-ratio: 1; }
.pq-roda svg { width: 100%; height: 100%; display: block; }
.pq-cabine { position: absolute; z-index: 3; width: 10%; aspect-ratio: 1; transform: translate(-50%, -12%); }
.pq-cabine svg { width: 100%; height: 100%; display: block; }
.pq-gemalino-cabine { position: absolute; left: 50%; bottom: 10%; height: 100%; width: auto; transform: translateX(-50%); pointer-events: none; }
.pq-amigo.pq-bia-roda { height: 16%; }
.pq-vista {
  position: absolute; z-index: 10; right: 2%; top: 4%; width: 44%; height: 68%; overflow: hidden;
  border-radius: 18px; box-shadow: 0 0 0 5px var(--branco), var(--sombra); animation: pq-chega 0.6s ease-out both;
}
.pq-vista > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pq-vista-item { position: absolute; width: 14%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.pq-vista-item svg { width: 100%; height: 100%; display: block; }
.pq-vista-item.pq-contado { transform: translate(-50%, -50%) scale(1.25); }
.pq-opcoes-roda { left: auto; right: 2%; transform: none; }

/* 6. pula-pula */
.pq-tambor {
  position: absolute; z-index: 4; left: 12%; top: 40%; width: 11%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fffdf7 0 40%, #e53935 41% 100%); border: 5px solid #fdd835;
}
.pq-estrelas { position: absolute; z-index: 4; top: 30%; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; font-size: 30px; color: #c49000; }
.pq-estrela.acesa { color: #ffb300; text-shadow: 0 0 8px #fff59d; }
.pq-gemalino-pula { position: absolute; z-index: 5; left: 44%; top: 86%; height: 42%; width: auto; pointer-events: none; }
.pq-saltitao-pula { position: absolute; z-index: 4; left: 62%; top: 86%; height: 34%; width: auto; pointer-events: none; }
.pq-pular {
  position: absolute; z-index: 20; right: 2%; bottom: 3%; width: max(var(--alvo), 13%); height: auto; aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; touch-action: none;
}
.pq-pular-simbolo { font-size: 40px; line-height: 1; }

/* 7. trenzinho */
.pq-estacao {
  position: absolute; z-index: 5; width: max(var(--alvo), 12%); aspect-ratio: 1; border: 0; padding: 0;
  background: transparent; transform: translate(-50%, -50%); border-radius: 22px;
}
.pq-estacao svg { width: 100%; height: 100%; display: block; }
.pq-tocada { outline: 5px solid #ffd54f; outline-offset: 2px; }
.pq-acesa { filter: drop-shadow(0 0 12px #fff59d) drop-shadow(0 0 8px #ffd54f); transform: translate(-50%, -50%) scale(1.12); }
.pq-trem { position: absolute; z-index: 8; width: 14%; aspect-ratio: 200 / 110; transform: translate(-50%, -75%); pointer-events: none; }
.pq-trem-desenho { position: absolute; inset: 0; }
.pq-trem-desenho svg { width: 100%; height: 100%; display: block; }
.pq-bia-trem { position: absolute; z-index: 1; left: 12%; bottom: 62%; height: 70%; width: auto; }

/* 8. pipoqueira */
.pq-galinha-pipoca { height: 42%; left: 0.5%; }
.pq-pipoca { position: absolute; z-index: 5; width: 7.2%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.pq-pipoca svg, .pq-saquinho svg { width: 100%; height: 100%; display: block; }
.pq-saquinho { position: absolute; z-index: 5; width: 8.5%; aspect-ratio: 0.8; transform: translate(-50%, -50%); }
.pq-opcoes-pipoca { left: auto; right: 2%; transform: none; }

@keyframes pq-chega { from { transform: translate(-50%, -12%) scale(0.2); opacity: 0; } to { opacity: 1; } }
.pq-ingresso, .pq-vista { animation-name: pq-surge; }
@keyframes pq-surge { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* celular deitado: letras e símbolos menores */
@media (max-height: 460px) {
  .pq-opcao { font-size: 28px; }
  .pq-lampada { width: 16px; height: 16px; }
  .pq-estrelas { font-size: 22px; }
  .pq-pular-simbolo { font-size: 30px; }
  .pq-feito { font-size: 18px; }
}

/* plaquinha com o nome de cada brinquedo no mapa (qualidade: toda escolha mostra o nome) */
.pq-ir .rotulo-escolha { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); z-index: 3; width: max-content; max-width: 150%;
  padding: 2px 8px; border-radius: 8px; background: #fff7e0; border: 2px solid #a8743a; color: #5a3a14; font-weight: 700;
  font-size: clamp(11px, 1.3vw, 14px); line-height: 1.15; text-align: center; pointer-events: none; box-shadow: 0 2px 0 rgba(0,0,0,0.15); }
