/* Caça-Monstrinhos (js/monstros/): a caça com a câmera e a Casa dos Monstrinhos. Prefixo mo-. Ciano da bolha mágica,
   com o roxo da noite e o amarelo das estrelas. */

/* ---------- os desenhos ---------- */
.mo-arte { display: block; width: 100%; height: auto; overflow: visible; }
.mo-olhos-feliz, .mo-olhos-dorme, .mo-boca-aberta { display: none; }
.mo-feliz .mo-olhos, .mo-dorme .mo-olhos { display: none; }
.mo-feliz .mo-olhos-feliz { display: inline; }
.mo-dorme .mo-olhos-dorme { display: inline; }
.mo-come .mo-boca { display: none; }
.mo-come .mo-boca-aberta { display: inline; animation: mo-mastiga .28s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
.mo-olhos { animation: mo-pisca-olho 4.6s infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.mo-corpo-desenho { transform-box: fill-box; transform-origin: 50% 100%; }
.mo-gelatino .mo-corpo-desenho { animation: mo-gelatina 1.6s ease-in-out infinite; }
.mo-brasinha .mo-corpo-desenho { animation: mo-chama .7s ease-in-out infinite alternate; }
.mo-bolhaco .mo-corpo-desenho { animation: mo-bolha-respira 2.4s ease-in-out infinite; }
.mo-forca { color: #f59e0b; letter-spacing: 1px; font-weight: 900; white-space: nowrap; }

@keyframes mo-pisca-olho { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes mo-mastiga { from { transform: scaleY(.5); } to { transform: scaleY(1.1); } }
@keyframes mo-gelatina { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(1.06, .94); } 60% { transform: scale(.96, 1.05); } }
@keyframes mo-chama { from { transform: scale(1, 1); } to { transform: scale(.96, 1.05); } }
@keyframes mo-bolha-respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes mo-respira { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-3%) scale(.98, 1.03); } }
@keyframes mo-flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8%); } }
@keyframes mo-pulsa { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ---------- o menu e a abertura ---------- */
.mo-apresenta-tuti svg { max-width: 150px; margin: 0 auto; }
.mo-vitrine { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; max-width: 640px; margin: 10px auto 4px; }
.mo-vitrine-bicho { width: 46px; }
.mo-vitrine-bicho:nth-child(odd) svg { animation: mo-flutua 2.6s ease-in-out infinite; }
.mo-vitrine-bicho:nth-child(even) svg { animation: mo-flutua 2.6s -1.3s ease-in-out infinite; }
.mo-vitrine-falta svg { filter: brightness(0) opacity(.3); }
.mo-escolha { max-height: 110px; }
.mo-avisos { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 600px; margin: 12px auto 0; }
.mo-avisos p { margin: 0; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 15px; line-height: 1.35; text-align: left; }

/* ---------- a caça (tela cheia, por cima de tudo menos das janelas) ---------- */
body.mo-ar-aberto { overflow: hidden; }
.mo-ar {
  position: fixed; inset: 0; z-index: 40; overflow: hidden; background: #0f172a; color: #fff;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.mo-ar.mo-arrasta { cursor: grab; }
.mo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mo-video.mo-espelho { transform: scaleX(-1); }
.mo-ar:not(.mo-com-camera) .mo-video { display: none; }
.mo-cena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mo-mundo { position: absolute; inset: 0; pointer-events: none; }

.mo-carregando { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; font-size: 20px; font-weight: 800; z-index: 5; }
.mo-carregando p { margin: 0; }
.mo-carregando-bolha { width: 110px; animation: mo-flutua 1.2s ease-in-out infinite; }

/* O monstrinho no mundo: uma caixa de 200x200 com a base no ponto do chão; o jogo escala e gira. */
.mo-bicho { position: absolute; left: -100px; top: -200px; width: 200px; height: 200px; transform-origin: 50% 100%; will-change: transform; transition: opacity .25s; }
.mo-bicho.mo-escondido { opacity: 0; }
.mo-bicho.mo-longe { opacity: .72; }
.mo-bicho-corpo { position: absolute; inset: 0; transform-origin: 50% 100%; animation: mo-respira 2.2s ease-in-out infinite; }
.mo-bicho-corpo svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .35)); transform-origin: 50% 100%; transition: transform .25s, opacity .25s; }
.mo-voador .mo-bicho-corpo { animation: mo-flutua 2.4s ease-in-out infinite; }
.mo-sombra { position: absolute; left: 18%; right: 18%; bottom: -10px; height: 24px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); }
.mo-voador .mo-sombra { display: none; }
.mo-placa { position: absolute; left: 50%; bottom: 102%; transform: translateX(-50%); display: none; padding: 2px 18px; border-radius: 40px; background: rgba(15, 23, 42, .78); border: 5px solid #fff; font-size: 40px; font-weight: 900; white-space: nowrap; }
.mo-longe .mo-placa:not(:empty) { display: block; }
.mo-aparece .mo-bicho-corpo { animation: mo-puf .6s cubic-bezier(.2, 1.6, .4, 1) both, mo-respira 2.2s .6s ease-in-out infinite; }
.mo-aparece.mo-voador .mo-bicho-corpo { animation: mo-puf .6s cubic-bezier(.2, 1.6, .4, 1) both, mo-flutua 2.4s .6s ease-in-out infinite; }
.mo-agachado .mo-bicho-corpo svg { transform: scaleY(.38); opacity: .55; }
.mo-piscou .mo-bicho-corpo svg { animation: mo-piscou .4s ease-out; }
.mo-ai .mo-bicho-corpo svg { animation: mo-ai .5s ease-in-out; }
@keyframes mo-puf { from { transform: scale(0) rotate(-25deg); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes mo-piscou { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes mo-ai { 0%, 100% { transform: translateX(0); filter: none; } 20% { transform: translateX(-8%); filter: brightness(1.6) saturate(.5); } 40% { transform: translateX(7%); } 60% { transform: translateX(-5%); } 80% { transform: translateX(3%); } }

/* O escudo (o Cristalino e o Monstrão no Desafio). */
.mo-escudo-bolha {
  position: absolute; left: -10%; right: -10%; top: -8%; bottom: -4%; border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(.8);
  border: 7px solid rgba(186, 230, 253, .95); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .6), rgba(125, 211, 252, .22) 55%, rgba(125, 211, 252, .08));
  transition: opacity .2s, transform .2s;
}
.mo-chefe .mo-escudo-bolha { border-color: rgba(244, 114, 182, .95); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(244, 114, 182, .2) 55%, rgba(244, 114, 182, .06)); }
.mo-com-escudo .mo-escudo-bolha { opacity: 1; transform: scale(1); }

/* A energia do Monstrão. */
.mo-energia { position: absolute; left: 14%; right: 14%; top: -16%; height: 26px; border-radius: 14px; overflow: hidden; background: rgba(15, 23, 42, .75); border: 4px solid #fff; }
.mo-energia[hidden] { display: none; }
.mo-energia i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #f43f5e, #f59e0b); transition: width .35s; }

/* A bolha que prende o monstrinho e balança. */
.mo-presa { position: absolute; left: 50%; bottom: 0; width: 72%; transform: translateX(-50%) scale(0); opacity: 0; transform-origin: 50% 100%; pointer-events: none; }
.mo-presa svg { width: 100%; height: auto; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }
.mo-presa-estrelas { position: absolute; left: 50%; bottom: 78%; display: none; gap: 12px; transform: translateX(-50%); }
.mo-presa-estrelas i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .35); border: 3px solid rgba(255, 255, 255, .8); transition: background .15s, box-shadow .15s; }
.mo-presa-estrelas i.mo-acesa { background: #fde047; box-shadow: 0 0 16px #fde047; }
.mo-preso .mo-presa-estrelas { display: flex; }
.mo-preso .mo-bicho-corpo { opacity: 0; transform: scale(.15) translateY(-40%); animation: mo-sugado .45s ease-in; }
.mo-preso .mo-presa { transform: translateX(-50%) scale(1); opacity: 1; animation: mo-fecha .45s .2s cubic-bezier(.2, 1.5, .4, 1) both; }
.mo-preso.mo-balanca .mo-presa { animation: mo-balanca .6s ease-in-out; }
.mo-preso.mo-pego .mo-presa { opacity: 0; transform: translateX(-50%) translateY(-90%) scale(.3); animation: mo-sobe 1s ease-in; }
.mo-pego .mo-presa-estrelas { display: none; }
.mo-escapa .mo-bicho-corpo { animation: mo-pula-fora .55s cubic-bezier(.2, 1.4, .4, 1) both, mo-respira 2.2s .55s ease-in-out infinite; }
@keyframes mo-sugado { from { transform: none; opacity: 1; } to { transform: scale(.15) translateY(-40%); opacity: 0; } }
@keyframes mo-fecha { from { transform: translateX(-50%) scale(0); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes mo-balanca {
  0%, 100% { transform: translateX(-50%) rotate(0); }
  25% { transform: translateX(-50%) rotate(-16deg); }
  75% { transform: translateX(-50%) rotate(16deg); }
}
@keyframes mo-sobe { 0% { transform: translateX(-50%) scale(1); opacity: 1; filter: brightness(1); } 40% { filter: brightness(1.8); } 100% { transform: translateX(-50%) translateY(-90%) scale(.3); opacity: 0; } }
@keyframes mo-pula-fora { 0% { transform: scale(.2); opacity: 0; } 60% { transform: translateY(-25%) scale(1.1); opacity: 1; } 100% { transform: none; opacity: 1; } }

/* A seta da borda: aponta para onde o monstrinho está. */
.mo-seta { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; transition: opacity .2s; }
.mo-seta.mo-ativa { opacity: 1; }
.mo-seta span { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; display: grid; place-items: center; font-size: 38px; line-height: 1; color: #fde047; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); animation: mo-seta-pulsa .7s ease-in-out infinite alternate; }
@keyframes mo-seta-pulsa { from { transform: translateX(-4px); } to { transform: translateX(6px); } }

/* A bolha voando. */
.mo-voo { position: absolute; left: -42px; top: -42px; width: 84px; height: 84px; display: none; pointer-events: none; }
.mo-voo.mo-ativa { display: block; }
.mo-voo svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }
.mo-voo.mo-caiu svg { transition: opacity .4s, transform .4s; opacity: 0; transform: translateY(60px) scale(.7); }
.mo-voo.mo-quica svg { transition: transform .4s, opacity .4s; transform: translate(40px, -50px) scale(.8); opacity: 0; }

/* O alto: sair, a vez e quantos já pegamos; embaixo, a trilha dos monstrinhos da partida. */
.mo-topo {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 18px; background: linear-gradient(rgba(15, 23, 42, .7), rgba(15, 23, 42, 0));
}
.mo-sair { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; background: rgba(15, 23, 42, .6); color: #fff; font-size: 22px; font-weight: 900; line-height: 1; }
.mo-vez { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.mo-vez .chip { font-size: 16px; }
.mo-contador { flex: none; padding: 7px 12px; border-radius: 999px; background: rgba(15, 23, 42, .65); border: 2px solid rgba(103, 232, 249, .8); font-size: 15px; font-weight: 900; white-space: nowrap; }
.mo-trilha { position: absolute; left: 0; right: 0; top: calc(66px + env(safe-area-inset-top, 0px)); z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 12px; pointer-events: none; }
.mo-slot {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: rgba(15, 23, 42, .5); border: 2px dashed rgba(255, 255, 255, .55); color: rgba(255, 255, 255, .75); font-size: 16px; font-weight: 900;
}
.mo-slot-atual { border: 3px solid #fde047; color: #fde047; animation: mo-pulsa 1s ease-in-out infinite; }
.mo-slot-pego { background: #fff; border: 3px solid var(--cor, #22c55e); animation: none; }
.mo-slot-pego svg { width: 100%; height: 100%; }

/* Embaixo: o radar, a dica com a bolha e os passos. */
.mo-baixo {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; grid-template-columns: 108px minmax(0, 1fr) 108px; align-items: end; gap: 8px;
  padding: 24px 10px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(15, 23, 42, 0), rgba(15, 23, 42, .6)); pointer-events: none;
}
.mo-baixo > * { pointer-events: auto; }
.mo-radar { width: 108px; height: 108px; display: block; }
.mo-centro { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.mo-dica { max-width: 100%; padding: 8px 14px; border-radius: 16px; background: rgba(15, 23, 42, .78); font-size: 17px; font-weight: 800; line-height: 1.25; text-align: center; }
.mo-dica:empty { display: none; }
.mo-calor { padding: 3px 12px; border-radius: 999px; font-size: 15px; font-weight: 900; }
.mo-calor:empty { display: none; }
.mo-quente { background: #ef4444; animation: mo-pulsa .6s ease-in-out infinite; }
.mo-morno { background: #f59e0b; }
.mo-frio { background: #3b82f6; }
.mo-bolha-mao { width: 92px; height: 92px; padding: 0; border: 0; background: none; touch-action: none; cursor: grab; animation: mo-flutua 2s ease-in-out infinite; }
.mo-bolha-mao svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); pointer-events: none; }
.mo-bolha-mao.mo-pegou { animation: none; cursor: grabbing; }
.mo-bolha-mao.mo-sumiu { visibility: hidden; }
.mo-mao-dica { position: absolute; left: 50%; bottom: 6px; font-size: 42px; line-height: 1; opacity: 0; pointer-events: none; transform: translateX(-30%); }
.mo-mao-dica.mo-ativa { animation: mo-mao-sobe 1.5s ease-in-out infinite; }
@keyframes mo-mao-sobe { 0% { opacity: 0; transform: translate(-30%, 10px); } 20% { opacity: 1; } 80% { opacity: 1; transform: translate(-30%, -120px); } 100% { opacity: 0; transform: translate(-30%, -140px); } }
.mo-passos {
  width: 104px; height: 96px; border-radius: 22px; border: 3px solid #fff; background: rgba(15, 23, 42, .72); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 15px; font-weight: 900; touch-action: manipulation;
}
.mo-passos:active { transform: scale(.94); }
.mo-passos-pe { font-size: 36px; line-height: 1; }
.mo-passos.mo-chegou { opacity: .45; }
.mo-vazio { display: block; }
.mo-passo-numero { position: absolute; left: 50%; top: 42%; font-size: 110px; font-weight: 900; line-height: 1; color: #fde047; text-shadow: 0 5px 0 rgba(0, 0, 0, .35); pointer-events: none; animation: mo-numero .7s ease-out forwards; }
@keyframes mo-numero { from { transform: translate(-50%, -50%) scale(.4); opacity: 1; } to { transform: translate(-50%, -90%) scale(1.2); opacity: 0; } }

/* Os avisos, as faíscas e o cartão do monstrinho pego. */
.mo-camada { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.mo-anuncio {
  position: absolute; left: 50%; top: 31%; max-width: 86%; padding: 12px 20px; border-radius: 20px; transform: translate(-50%, -50%);
  background: #312e81; background: color-mix(in srgb, var(--cor, #312e81) 50%, #1e1b4b); border: 3px solid rgba(255, 255, 255, .85);
  color: #fff; font-size: 22px; font-weight: 900; line-height: 1.25; text-align: center; text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: mo-anuncio .35s cubic-bezier(.2, 1.5, .4, 1) both;
}
.mo-anuncio .mo-forca { font-size: 20px; color: #fde047; }
.mo-anuncio-vez { top: 46%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mo-anuncio-vez .chip { font-size: 24px; padding: 6px 16px; }
.mo-anuncio-aviso { top: 58%; font-size: 18px; }
@keyframes mo-anuncio { from { transform: translate(-50%, -50%) scale(.5); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.mo-faisca { position: absolute; width: 11px; height: 11px; margin: -5px 0 0 -5px; border-radius: 50%; animation: mo-faisca .7s ease-out forwards; }
@keyframes mo-faisca { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.mo-cartao {
  position: absolute; left: 50%; top: 50%; width: min(92%, 420px); max-height: 86%; overflow: auto; transform: translate(-50%, -50%);
  padding: 16px 18px 18px; border-radius: 28px; border-top: 12px solid var(--cor, #06b6d4); background: #fff; color: #1b1e35;
  text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .55); pointer-events: auto;
}
.mo-cartao-arte { width: 150px; margin: 0 auto; animation: mo-respira 2s ease-in-out infinite; }
.mo-cartao h2 { margin: 6px 0 4px; font-size: 24px; line-height: 1.2; }
.mo-cartao-forca { margin: 0 0 8px; font-size: 18px; }
.mo-cartao-forca b { color: #16a34a; }
.mo-fato { margin: 8px 0; padding: 10px 12px; border-radius: 16px; background: #f1f5f9; color: #1b1e35; font-size: 16px; line-height: 1.4; text-align: left; }
.mo-cartao-casa { margin: 4px 0 12px; font-size: 14px; opacity: .8; }
.mo-cartao-botao { width: 100%; }

/* ---------- a Casa dos Monstrinhos ---------- */
.mo-donos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0; }
.mo-dono { padding: 4px; border-radius: 999px; border: 3px solid transparent; background: rgba(255, 255, 255, .1); }
.mo-dono-atual { border-color: #fde047; }
.mo-dono-turma { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #0891b2; color: #fff; font-weight: 800; }
.mo-casa-conta { margin: 8px 0 12px; color: #fff; font-size: 18px; font-weight: 800; text-align: center; }
.mo-album { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 44%), 1fr)); gap: 10px; width: 100%; max-width: 900px; margin: 0 auto; box-sizing: border-box; }
.mo-figurinha {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 10px 8px;
  border-radius: 20px; border: 4px solid var(--cor, #cbd5e1); background: #fff; color: #1b1e35; box-shadow: var(--sombra, 0 6px 16px rgba(0, 0, 0, .2));
}
button.mo-figurinha:hover, button.mo-figurinha:focus-visible { transform: translateY(-3px); }
.mo-figurinha strong { font-size: 17px; }
.mo-figurinha small { font-size: 13px; }
.mo-figurinha-arte { width: 92px; }
.mo-figurinha-falta { border: 3px dashed rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; }
.mo-figurinha-falta svg { filter: brightness(0) opacity(.42); }
.mo-figurinha-falta svg * { animation: none !important; }
.mo-figurinha-enfeite { position: absolute; top: 6px; right: 10px; font-size: 24px; }
.mo-figurinha-amizade { min-height: 1.2em; }
.mo-casa-vazia { display: flex; justify-content: center; margin: 16px 0; }

.mo-pet-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mo-pet-topo h2 { flex: 1; min-width: 0; margin: 0; color: #fff; font-size: 22px; text-align: center; }
.mo-pet-topo h2 .mo-forca { font-size: 15px; }
.mo-amizade { display: flex; align-items: center; gap: 8px; margin: 10px 0; color: #fff; font-weight: 800; }
.mo-amizade-barra { flex: 1; height: 16px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .2); }
.mo-amizade-barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f472b6, #ef4444); transition: width .4s; }
.mo-amizade-nivel { white-space: nowrap; }
.mo-quarto {
  position: relative; height: min(54vh, 440px); min-height: 280px; border-radius: 26px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  background: linear-gradient(180deg, #e0f2fe 0 63%, #b45309 63% 64.5%, #d6a066 64.5% 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .25);
}
.mo-quarto::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36%; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 70px); pointer-events: none; }
.mo-quarto-janela { position: absolute; left: 8%; top: 10%; width: 22%; aspect-ratio: 1; border-radius: 12px; border: 6px solid #fff; background: linear-gradient(#7dd3fc, #e0f2fe); box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.mo-quarto-janela::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 5px; margin-left: -2.5px; background: #fff; }
.mo-quarto-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.mo-quarto-video.mo-espelho { transform: scaleX(-1); }
.mo-quarto.mo-com-camera { background: #000; }
.mo-quarto.mo-com-camera::after, .mo-com-camera .mo-quarto-janela { display: none; }
.mo-com-camera .mo-quarto-video { display: block; }
.mo-pet-pista { position: absolute; left: 50%; bottom: 7%; z-index: 2; width: min(52vw, 240px); margin-left: calc(min(52vw, 240px) / -2); transition: transform .5s ease-in-out; }
.mo-pet { position: relative; cursor: pointer; touch-action: none; }
.mo-pet-arte { animation: mo-respira 2.2s ease-in-out infinite; transform-origin: 50% 100%; }
.mo-pet.mo-voador .mo-pet-arte { animation: mo-flutua 2.4s ease-in-out infinite; }
.mo-pet-arte svg { filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .3)); }
.mo-pet-sombra { position: absolute; left: 16%; right: 16%; bottom: -8px; height: 20px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0)); }
.mo-pet-enfeite { position: absolute; left: 50%; top: -6%; transform: translateX(-50%); font-size: 44px; line-height: 1; pointer-events: none; }
.mo-pet-enfeite:empty { display: none; }
.mo-pet.mo-pula { animation: mo-pulo .55s ease-out; }
.mo-pet.mo-dancando .mo-pet-arte { animation: mo-danca .45s ease-in-out infinite alternate; }
.mo-pet.mo-correndo .mo-pet-arte { animation: mo-corre .22s ease-in-out infinite alternate; }
.mo-pet.mo-come-pet .mo-pet-arte { animation: mo-gelatina .5s ease-in-out infinite; }
@keyframes mo-pulo { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-34%) scale(.95, 1.05); } 70% { transform: translateY(0) scale(1.08, .92); } }
@keyframes mo-danca { from { transform: rotate(-10deg) translateY(0); } to { transform: rotate(10deg) translateY(-6%); } }
@keyframes mo-corre { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-6%) rotate(4deg); } }
.mo-pet-balao {
  position: absolute; left: 50%; top: 5%; z-index: 4; max-width: 82%; padding: 8px 14px; border-radius: 18px; transform: translateX(-50%) scale(.6); opacity: 0;
  background: #fff; color: #1b1e35; font-size: 17px; font-weight: 800; line-height: 1.25; text-align: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.mo-pet-balao.mo-ativo { opacity: 1; transform: translateX(-50%) scale(1); }
.mo-efeitos { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.mo-coracao { position: absolute; font-size: 28px; line-height: 1; animation: mo-coracao 1.3s ease-out both; }
@keyframes mo-coracao { from { transform: translateY(0) scale(.5); opacity: 1; } to { transform: translateY(-110px) scale(1.2); opacity: 0; } }
.mo-bolinha { position: absolute; right: 6%; bottom: 5%; z-index: 5; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 46px; line-height: 1; touch-action: none; cursor: grab; }
.mo-bolinha.mo-pegou { cursor: grabbing; }
.mo-bolinha.mo-pegada { opacity: 0; transition: opacity .2s; }
.mo-ferramentas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 12px 0; }
.mo-comidas { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 800; }
.mo-comida { width: 62px; height: 62px; padding: 0; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .92); font-size: 38px; line-height: 1; touch-action: none; cursor: grab; }
.mo-comida.mo-comida-comeu { visibility: hidden; }
.mo-danca {
  position: relative; width: 86px; height: 86px; padding: 0; border: 3px solid #fff; border-radius: 50%; overflow: hidden; background: #7c3aed; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 32px; line-height: 1; touch-action: none; user-select: none;
}
.mo-danca small { font-size: 12px; font-weight: 800; }
.mo-danca > span:not(.mo-danca-anel), .mo-danca small { position: relative; }
.mo-danca-anel { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#fde047 var(--enche, 0%), transparent 0); opacity: .6; }
.mo-danca.mo-segurando { transform: scale(1.06); }
.tr-mao.mo-some { display: none; }
.mo-fato-casa { max-width: 640px; margin: 12px auto; background: rgba(255, 255, 255, .95); }
.mo-pet-fim { max-width: 480px; margin: 12px auto; padding: 14px; border-radius: 20px; background: #fff; color: #1b1e35; font-size: 18px; font-weight: 800; text-align: center; }
.mo-pet-fim p { margin: 0 0 8px; }
.mo-pet-fim-botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* A TV e o computador deitados: a caça usa a altura. */
@media (orientation: landscape) and (max-height: 560px) {
  .mo-trilha { left: auto; right: 12px; top: calc(66px + env(safe-area-inset-top, 0px)); max-width: 44%; justify-content: flex-end; }
  .mo-anuncio { top: 36%; font-size: 19px; }
  .mo-quarto { height: 68vh; }
}
@media (prefers-reduced-motion: reduce) {
  .mo-bicho-corpo, .mo-pet-arte, .mo-bolha-mao, .mo-vitrine-bicho svg, .mo-olhos, .mo-corpo-desenho { animation-iteration-count: 1 !important; }
  .mo-quente, .mo-slot-atual, .mo-seta span { animation: none !important; }
}

/* Celular estreito (ou com letra grande): o radar e os passos menores, para a dica caber no meio. */
@media (max-width: 380px) {
  .mo-baixo { grid-template-columns: 78px minmax(0, 1fr) 78px; gap: 6px; padding-left: 6px; padding-right: 6px; }
  .mo-radar { width: 78px; height: 78px; }
  .mo-passos { width: 78px; height: 84px; font-size: 13px; }
  .mo-passos-pe { font-size: 30px; }
  .mo-bolha-mao { width: 80px; height: 80px; }
  .mo-dica { font-size: 15px; padding: 6px 10px; }
  .mo-contador { font-size: 13px; padding: 6px 10px; }
  .mo-vez { font-size: 13px; }
}
