/* Tema Dengue: só o que as brincadeiras dele precisam além do estilo.css. Tudo com o prefixo de-. */

/* ---------- menu e aula ---------- */
.de-brincadeira-emoji { background: #e0f2fe; }
.licao-arte.de-larga { width: min(240px, 70vw); }
.de-opcao-emoji { font-size: 60px; line-height: 1; }
.de-centro { text-align: center; }

/* ---------- desenhos que se mexem ---------- */
.de-asas { transform-origin: 50px 46px; animation: de-bate .09s linear infinite alternate; }
.de-borboleta .de-asas { animation-duration: .28s; }
.de-abelha .de-asas { animation-duration: .07s; }
.de-mexe { transform-origin: 58px 22px; animation: de-mexe 1.1s ease-in-out infinite alternate; }
.de-boia { animation: de-boia 1.6s ease-in-out infinite alternate; }
@keyframes de-bate { to { transform: scaleX(.6); } }
@keyframes de-mexe { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes de-boia { to { transform: translateY(3px); } }

/* ---------- caça aos criadouros ---------- */
.de-quintal {
  position: relative; width: min(100%, 58vh); margin: 0 auto; overflow: hidden;
  border-radius: 22px; background: #e0f2fe; box-shadow: var(--sombra);
}
.de-nuvem { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.de-mosquitinho {
  position: absolute; width: 9%; pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--giro, 0deg)); animation: de-surge .4s ease-out;
}
.de-mosquitinho svg { width: 100%; display: block; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .3)); }
.de-mosquitinho.de-foge { transform: translate(-50%, -50%) translateY(-320px) scale(.4); opacity: 0; transition: transform 1.8s ease-in, opacity 1.8s ease-in; }
@keyframes de-surge { from { opacity: 0; transform: translate(-50%, -50%) scale(.2); } }

/* ---------- pega-mosquito ---------- */
.de-parque {
  position: relative; width: min(100%, 48vh); aspect-ratio: 3 / 4; margin: 0 auto; overflow: hidden;
  border-radius: 26px; touch-action: none; box-shadow: var(--sombra);
  background:
    radial-gradient(circle at 86% 9%, #fde047 0 6%, rgba(253, 224, 71, .35) 7%, transparent 11%),
    radial-gradient(ellipse 16% 5% at 22% 14%, #fff 60%, transparent 62%),
    radial-gradient(ellipse 12% 4% at 58% 8%, #fff 60%, transparent 62%),
    linear-gradient(#7dd3fc 0%, #bae6fd 52%, #86efac 52%, #4ade80 100%);
}
@media (min-aspect-ratio: 1/1) { .de-parque { aspect-ratio: 4 / 3; width: min(100%, 78vh); } }
.de-flor { position: absolute; bottom: 2%; width: 8%; pointer-events: none; }
.de-arvore { position: absolute; left: 3%; bottom: 45%; width: 30%; pointer-events: none; }
.de-banco { position: absolute; right: 5%; bottom: 40%; width: 27%; pointer-events: none; }
@media (min-aspect-ratio: 1/1) { .de-arvore { width: 17%; } .de-banco { width: 16%; } }
.de-flor svg, .de-arvore svg, .de-banco svg { width: 100%; display: block; }
.de-duda-alvo { position: absolute; left: 50%; top: 70%; width: 27%; transform: translate(-50%, -50%); pointer-events: none; }
@media (min-aspect-ratio: 1/1) { .de-duda-alvo { width: 19%; } }
.de-duda-alvo svg { width: 100%; display: block; }
.de-duda-alvo.de-picou { animation: de-ai .1s 5; filter: drop-shadow(0 0 14px #ef4444); }
@keyframes de-ai {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(calc(-50% - 6px), -50%); }
  75% { transform: translate(calc(-50% + 6px), -50%); }
}
.de-inseto {
  position: absolute; left: 0; top: 0; width: 15%; aspect-ratio: 1; padding: 0; z-index: 2;
  transform: translate(-50%, -50%) rotate(var(--giro, 0deg)); touch-action: none;
}
@media (min-aspect-ratio: 1/1) { .de-inseto { width: 11%; } }
.de-inseto svg { width: 100%; height: 100%; display: block; pointer-events: none; filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .25)); }
.de-inseto-amigo { width: 17%; }
@media (min-aspect-ratio: 1/1) { .de-inseto-amigo { width: 12.5%; } }
.de-inseto.de-pego, .de-inseto.de-solta { pointer-events: none; opacity: 0; transition: transform .3s ease-out, opacity .3s; }
.de-inseto.de-pego { transform: translate(-50%, -50%) rotate(var(--giro, 0deg)) scale(1.7); }
.de-inseto.de-solta { transform: translate(-50%, -50%) translateY(-40px) scale(.8); }

/* ---------- o ciclo do mosquito ---------- */
.de-roda { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.de-ciclo {
  position: relative; width: min(100%, 44vh); aspect-ratio: 1; padding: 4%;
  display: grid; grid-template-columns: 44% 44%; grid-template-rows: 44% 44%; justify-content: space-between; align-content: space-between;
  border-radius: 28px; background: #f5f3ff; box-shadow: var(--sombra);
}
@media (min-aspect-ratio: 1/1) { .de-ciclo { width: min(100%, 52vh); } }
.de-setas { position: absolute; inset: 0; pointer-events: none; }
.de-setas svg { width: 100%; height: 100%; display: block; }
.de-etapa {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 4%; text-align: center; overflow: hidden; border-radius: 18px; background: #fff;
  border: 4px dashed #c4b5fd; box-shadow: 0 4px 0 rgba(42, 26, 94, .12);
}
.de-etapa-numero { font-size: clamp(28px, 9vw, 52px); font-weight: 900; color: #c4b5fd; }
.de-etapa.de-proxima { border-color: #f59e0b; background: #fffbeb; animation: de-chama 1s ease-in-out infinite; }
.de-etapa.de-proxima .de-etapa-numero { color: #f59e0b; }
.de-etapa.de-cheia { border: 4px solid #22c55e; background: #f0fdf4; animation: sai .35s cubic-bezier(.2, 1.6, .4, 1); }
.de-etapa-arte { width: 58%; }
.de-etapa-arte svg { width: 100%; display: block; }
.de-etapa strong { font-size: clamp(14px, 4.2vw, 20px); line-height: 1.1; }
.de-etapa small { font-size: clamp(11px, 3vw, 14px); font-weight: 700; opacity: .75; line-height: 1.1; }
@keyframes de-chama { 50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, .35); } }
.de-agua {
  position: absolute; left: 50%; top: 50%; width: 17%; padding: 0; z-index: 3;
  transform: translate(-50%, -50%); transition: transform .6s ease-in, opacity .6s;
}
.de-agua:disabled { opacity: 1; }
.de-agua svg { width: 100%; display: block; filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .2)); }
.de-agua.de-pulsa { width: 24%; animation: de-pulsa 1s ease-in-out infinite; }
@keyframes de-pulsa { 50% { transform: translate(-50%, -50%) scale(1.15); } }
.de-quebrado .de-agua { transform: translate(-50%, -50%) scale(0); opacity: 0; }
.de-quebrado .de-fase-larva, .de-quebrado .de-fase-pupa, .de-quebrado .de-fase-mosquito { border-color: #fca5a5; background: #fef2f2; }
.de-quebrado .de-fase-larva > *, .de-quebrado .de-fase-pupa > *, .de-quebrado .de-fase-mosquito > * { filter: grayscale(1); opacity: .45; }
.de-quebrado .de-fase-larva::after, .de-quebrado .de-fase-pupa::after, .de-quebrado .de-fase-mosquito::after {
  content: "✖"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(48px, 16vw, 90px); font-weight: 900; color: #dc2626; animation: sai .35s cubic-bezier(.2, 1.6, .4, 1);
}
.de-dias { margin: 0; padding: 6px 14px; border-radius: 999px; background: #fef3c7; font-size: 16px; font-weight: 800; }
.de-bandeja-ciclo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.de-carta-fase {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 8px; min-height: 92px;
  border-radius: 18px; background: var(--branco); box-shadow: var(--sombra); border: 4px solid transparent;
}
.de-carta-fase:active:not(:disabled) { transform: scale(.95); }
.de-carta-arte { width: 78%; max-width: 90px; pointer-events: none; }
.de-carta-arte svg { width: 100%; display: block; }
.de-carta-fase strong { font-size: 15px; pointer-events: none; }
.de-carta-fase.de-usada { opacity: .25; }
.de-carta-fase.de-errou { animation: treme .12s 4; border-color: #f97316; }
.de-carta-fase.de-dica { border-color: #fde047; animation: de-acena .7s ease-in-out infinite; }
@keyframes de-acena { 50% { transform: scale(1.08); } }

/* ---------- surpresas: pergunta dourada e repelente ---------- */
.de-selo-dourado {
  align-self: center; padding: 6px 18px; border-radius: 999px; font-size: 18px; font-weight: 900; color: #78350f; text-align: center;
  background: linear-gradient(90deg, #fde68a, #facc15, #fde68a); box-shadow: 0 4px 0 #d97706; animation: sai .5s cubic-bezier(.2, 1.6, .4, 1);
}
.pergunta.de-dourada { box-shadow: 0 0 0 5px #facc15, var(--sombra); }
.de-respondido .opcao, .de-respondido .resposta { pointer-events: none; }
.de-respondido .opcao:not(.opcao-certa):not(.opcao-errada) { opacity: .5; }
.de-repelente {
  position: absolute; z-index: 4; width: 16%; aspect-ratio: 1; padding: 0; border-radius: 50%;
  transform: translate(-50%, -50%); display: grid; place-items: center; font-size: clamp(34px, 10vw, 54px); line-height: 1;
  background: radial-gradient(circle, #e0f2fe 0 45%, rgba(56, 189, 248, .55) 70%, rgba(56, 189, 248, 0) 72%);
  box-shadow: 0 0 18px 6px rgba(56, 189, 248, .6); animation: de-brilha .6s ease-in-out infinite alternate; touch-action: none;
}
@keyframes de-brilha { to { transform: translate(-50%, -50%) scale(1.15); } }
.de-inseto.de-espantado { pointer-events: none; opacity: 0; transform: translate(-50%, -50%) translateY(-120px) scale(.5); transition: transform .7s ease-in, opacity .7s; }

@media (prefers-reduced-motion: reduce) {
  .de-asas, .de-mexe, .de-boia, .de-etapa.de-proxima, .de-agua.de-pulsa, .de-carta-fase.de-dica, .de-repelente { animation: none; }
}

/* ---------- o ciclo: arrastar a carta ---------- */
.de-carta-fase { touch-action: none; }
.de-carta-fase.de-levantada { opacity: .35; }
.de-fantasma { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .3)); }
.de-fantasma > button { width: 100%; height: 100%; transform: rotate(-4deg) scale(1.08); }
.de-gesto-dica { margin: -4px 0 0; text-align: center; color: #fff; font-weight: 800; font-size: 16px; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.de-gesto-dica .de-mao { margin-right: 6px; }

/* ---------- a mãozinha dos gestos ---------- */
.de-gestos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.de-gesto {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: #fff; color: var(--tinta); font-size: 16px; box-shadow: 0 3px 0 rgba(42, 26, 94, .15);
}
.de-mao { display: inline-block; font-size: 26px; line-height: 1; animation: de-mao-toca 1s ease-in-out infinite; }
.de-gesto-segurar .de-mao { animation: de-mao-segura 1.6s ease-in-out infinite; }
.de-gesto-girar .de-mao { animation: de-mao-gira 1.4s linear infinite; }
.de-gesto-arrastar .de-mao, .de-gesto-lixo .de-mao { animation: de-mao-arrasta 1.6s ease-in-out infinite; }
.de-gesto-esfregar .de-mao, .de-gesto-deslizar .de-mao { animation: de-mao-esfrega .8s ease-in-out infinite; }
.de-gesto-pinca .de-mao { animation: de-mao-pinca 1.2s ease-in-out infinite; }
@keyframes de-mao-toca { 0%, 100% { transform: translateY(-4px); } 45% { transform: translateY(3px) scale(.9); } }
@keyframes de-mao-segura { 0% { transform: translateY(-4px); } 25%, 85% { transform: translateY(3px) scale(.88); filter: drop-shadow(0 0 4px #f59e0b); } 100% { transform: translateY(-4px); } }
@keyframes de-mao-gira { from { transform: rotate(0deg) translateX(5px) rotate(0deg); } to { transform: rotate(360deg) translateX(5px) rotate(-360deg); } }
@keyframes de-mao-arrasta { 0% { transform: translate(-8px, 4px) scale(.9); } 60% { transform: translate(10px, -4px) scale(.9); } 100% { transform: translate(-8px, 4px); } }
@keyframes de-mao-esfrega { 0%, 100% { transform: translateX(-8px); } 50% { transform: translateX(8px); } }
@keyframes de-mao-pinca { 0%, 100% { transform: scale(.85); } 50% { transform: scale(1.25); } }

/* ---------- zoom (pinça, roda do mouse e lupas) ---------- */
.de-zoom { position: relative; width: 100%; height: 100%; overflow: hidden; touch-action: none; border-radius: inherit; }
.de-zoom-miolo { width: 100%; height: 100%; transform-origin: 0 0; }
.de-com-zoom { cursor: grab; }
.de-lupas { position: static; display: flex; gap: 6px; }
.de-pt-ferramentas { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: -4px; }
.de-pt-ferramentas .de-gesto { font-size: 14px; }
.de-lupa {
  min-width: 46px; height: 46px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); white-space: nowrap;
  color: var(--roxo-escuro); font-size: 20px; font-weight: 900; box-shadow: 0 3px 0 rgba(42, 26, 94, .25);
}

/* ---------- patrulha do bairro: o mapa ---------- */
.de-pt-mapa-caixa {
  border-radius: 26px; padding: 6px 0; box-shadow: var(--sombra);
  background: radial-gradient(circle at 20% 15%, #bbf7d0 0 8%, transparent 9%), radial-gradient(circle at 85% 55%, #bbf7d0 0 7%, transparent 8%),
    radial-gradient(circle at 15% 80%, #fde68a 0 6%, transparent 7%), linear-gradient(#86efac, #4ade80);
}
.de-pt-mapa { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.de-pt-rua { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.de-pt-no {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 116px; padding: 0; background: none;
}
.de-pt-no-bola {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; line-height: 1;
  background: #fff; border: 5px solid #16a34a; box-shadow: 0 5px 0 rgba(20, 83, 45, .35);
}
.de-pt-no-bola svg { width: 84%; height: 84%; }
.de-pt-chefao .de-pt-no-bola { width: 80px; height: 80px; border-color: #be185d; background: #fdf2f8; }
.de-pt-feita .de-pt-no-bola { border-color: #f59e0b; }
.de-pt-atual .de-pt-no-bola { animation: de-chama 1s ease-in-out infinite; border-color: #f59e0b; }
.de-pt-no-nome { padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 800; white-space: nowrap; }
.de-pt-no-estrelas { color: #f59e0b; font-size: 16px; letter-spacing: 1px; text-shadow: 0 1px 0 #fff; }
.de-pt-no:disabled { opacity: .6; }
.de-pt-historia .abertura-arte { width: 120px; }

/* ---------- patrulha do bairro: a cena ---------- */
.de-pt-area {
  position: relative; width: min(100%, calc((100vh - 330px) * 1.5)); aspect-ratio: 3 / 2; margin: 0 auto;
  border-radius: 22px; overflow: hidden; background: #e0f2fe; box-shadow: var(--sombra);
}
.de-pt-palco-cena { position: relative; width: 100%; height: 100%; }
.de-pt-svg { width: 100%; height: 100%; display: block; }
.de-pt-voo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.de-pt-coisa { cursor: pointer; }
.de-pt-marcas circle { fill: none; stroke-width: 5; pointer-events: none; }
.de-pt-marcas .de-pt-pista { stroke: #fde047; stroke-dasharray: 9 7; animation: brilha .5s 5; }
.de-pt-marcas .de-pt-faltou { stroke: #facc15; stroke-width: 6; }
.de-pt-marcas .de-pt-ok { stroke: #0ea5e9; animation: aparece .2s; }
.de-pt-fato { font-size: 17px; }
.de-pt-zuzu { display: flex; align-items: center; gap: 10px; padding: 4px 12px; border-radius: 999px; background: #fdf2f8; box-shadow: 0 3px 0 rgba(157, 23, 77, .25); }
.de-pt-zuzu-arte { width: 46px; flex: none; }
.de-pt-zuzu-arte svg { width: 100%; display: block; }
.de-pt-energia { flex: 1; height: 14px; border-radius: 999px; background: #fbcfe8; overflow: hidden; }
.de-pt-energia i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #db2777, #f472b6); transition: width .5s; }
.de-pt-zuzu.de-pt-ai .de-pt-zuzu-arte { animation: treme .1s 5; }
.de-pt-zuzu.de-pt-foge .de-pt-zuzu-arte { transform: translate(140px, -40px) scale(.4); opacity: 0; transition: 1.2s ease-in; }

/* o painel aproximado, com o gesto */
.de-pt-painel { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 12px; background: rgba(15, 23, 42, .55); animation: aparece .2s; }
.de-pt-painel-caixa {
  width: min(100%, 420px); max-height: 100%; overflow: auto; padding: 10px 12px 12px; border-radius: 22px; background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; animation: pula .3s cubic-bezier(.2, 1.6, .4, 1);
}
.de-pt-painel-caixa h3 { margin: 0; font-size: 20px; }
.de-pt-gesto-palco {
  position: relative; width: min(100%, 300px, 46vh); aspect-ratio: 1; border-radius: 20px; touch-action: none; flex: none;
  background: radial-gradient(circle, #f0f9ff 0 55%, #e0f2fe 56%);
}
.de-pt-desenho { position: absolute; inset: 8%; transition: transform .08s; }
.de-pt-desenho svg { width: 100%; height: 100%; display: block; }
.de-pt-desenho.de-pt-apertado { transform: scale(.94); }
.de-pt-arrumado { animation: sai .4s cubic-bezier(.2, 1.6, .4, 1); }
.de-pt-roda::after { content: ""; position: absolute; inset: 4%; border-radius: 50%; border: 4px dashed #93c5fd; pointer-events: none; }
.de-pt-progresso { position: absolute; left: 10%; right: 10%; bottom: 4%; height: 12px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.de-pt-progresso i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); }
.de-pt-conta { position: absolute; left: 0; right: 0; top: 3%; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.de-pt-conta i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; background: #fff; border: 3px solid #e9c98b; color: #b45309; }
.de-pt-conta i.de-pt-cheia { background: #e9c98b; color: #fff; animation: sai .25s; }
.de-pt-bucha { position: absolute; left: 70%; top: 70%; font-size: 42px; line-height: 1; transform: translate(-50%, -50%); pointer-events: none; }
.de-pt-bucha.de-pt-esfrega { animation: treme .15s infinite; }
.de-pt-peca { position: absolute; left: 6%; bottom: 6%; width: 38%; padding: 0; touch-action: none; z-index: 2; }
.de-pt-peca svg { width: 100%; display: block; filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .25)); }
.de-pt-peca.de-pt-pega { z-index: 4; }
.de-pt-alvo { position: absolute; right: 8%; top: 10%; width: 36%; aspect-ratio: 1; border-radius: 50%; border: 4px dashed #f59e0b; animation: de-chama 1s infinite; }
.de-pt-alvo svg { width: 100%; height: 100%; display: block; }
.de-pt-alvo-caixa { left: 20%; right: 20%; top: 31%; width: auto; aspect-ratio: auto; height: 22%; border-radius: 50%; }
.de-pt-alvo-feito { border-color: #22c55e; animation: none; }
.de-pt-recado { margin: 0; min-height: 1.3em; color: #c2410c; font-weight: 800; font-size: 16px; }
.de-pt-porque { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.35; color: #166534; }
.de-pt-painel-botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* chefão: contar os mosquitos da Zuzu */
.de-pt-enxame {
  position: relative; width: min(100%, 560px, calc((100vh - 330px) * 1.4)); aspect-ratio: 7 / 5; margin: 0 auto; border-radius: 22px; box-shadow: var(--sombra);
  background: linear-gradient(#bae6fd, #e0f2fe 60%, #bbf7d0 60%);
}
.de-pt-mosca { position: absolute; width: 14%; aspect-ratio: 1; padding: 0; transform: translate(-50%, -50%) rotate(var(--giro, 0deg)); }
.de-pt-mosca svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.de-pt-mosca b {
  position: absolute; left: 78%; top: 18%; transform: translate(-50%, -50%) rotate(calc(-1 * var(--giro, 0deg)));
  min-width: 26px; height: 26px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center;
  background: #f59e0b; color: #fff; font-size: 16px; font-weight: 900; box-shadow: 0 2px 0 #b45309; pointer-events: none;
}
.de-pt-mosca.de-pt-contado svg { opacity: .7; }
.de-pt-opcoes { display: flex; justify-content: center; gap: 10px; }
.de-pt-numero {
  min-width: 76px; height: 76px; border-radius: 22px; background: #fff; font-size: 36px; font-weight: 900; color: var(--roxo-escuro);
  box-shadow: var(--sombra);
}
.de-pt-numero.de-pt-certo { background: #22c55e; color: #fff; opacity: 1; }
.de-pt-numero.de-pt-errado { background: #f97316; color: #fff; opacity: 1; }
.de-pt-praticou { padding: 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, .92); color: var(--tinta); font-size: 15px; line-height: 1.4; }
.de-pt-praticou p { margin: 6px 0 0; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .de-mao, .de-pt-atual .de-pt-no-bola, .de-pt-alvo, .de-pt-bucha.de-pt-esfrega { animation: none; }
}
