/* Quem Pegou o Morango? — visual próprio do jogo (prefixo qpm-). Amarelo-palha e vermelho-morango. */
:root {
  --ceu: #fbefc4;
  --ceu-2: #fff8e3;
  --tema: #f2d27a;
  --tema-escuro: #c2263f;
  --morango: #d62640;
  --palha: #f6de8c;
  --papel: #fffdf4;
  --linha: #e7d7a8;
}

/* ---------- menu ---------- */
.qpm-menu { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-content: center; }
.qpm-cartao {
  position: relative; min-height: var(--alvo); min-width: var(--alvo); border: 4px solid var(--palha); border-radius: 22px;
  background: var(--papel); box-shadow: var(--sombra); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; padding: 10px 6px; font-weight: bold; color: var(--azul);
}
.qpm-cartao-coisa { width: 70%; max-width: 150px; aspect-ratio: 10 / 9; display: block; }
.qpm-cartao-coisa svg, .qpm-roda-coisa svg, .qpm-pista-icone svg, .qpm-resposta-figura svg, .qpm-nao-fui-pista svg, .qpm-nao-fui-marca svg { width: 100%; height: 100%; display: block; }
.qpm-cartao-titulo { font-size: clamp(14px, 1.7vw, 20px); line-height: 1.15; text-align: center; }
.qpm-estrela { position: absolute; top: 6px; right: 8px; font-size: 24px; }

/* ---------- abertura e fim ---------- */
.qpm-abertura, .qpm-fim { flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.qpm-roda { display: flex; align-items: flex-end; justify-content: center; gap: 2%; flex: 1; min-height: 0; width: 100%; }
.qpm-roda-figura { display: flex; align-items: flex-end; height: 78%; max-height: 300px; min-height: 0; }
.qpm-roda-figura.pequena { height: 52%; max-height: 190px; }
.qpm-roda-figura img { height: 100%; width: auto; }
.qpm-roda-figura img[src*="bia."] { height: 42%; }
.qpm-roda-coisa { display: block; height: 40%; max-height: 170px; aspect-ratio: 10 / 9; align-self: center; }
.qpm-sumiu { opacity: 0.35; filter: grayscale(0.6); }
.qpm-vamos { flex: 0 0 auto; }
.qpm-fim-botoes { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; flex: 0 0 auto; }

/* ---------- investigação: área + botões da direita ---------- */
.qpm-investigar { gap: 10px; }
.qpm-area { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.qpm-nav { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.qpm-ir {
  width: calc(var(--alvo) + 30px); min-height: var(--alvo); border: 0; border-radius: 18px; background: var(--papel);
  box-shadow: var(--sombra); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px;
}
.qpm-ir.atual { background: var(--palha); outline: 4px solid var(--morango); outline-offset: -4px; }
.qpm-icone { font-size: 28px; line-height: 1; }
.qpm-ir-texto { font-size: 15px; font-weight: bold; color: var(--azul); }

/* ---------- procurar ---------- */
.qpm-cena { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); background: #cdeeff; }
.qpm-cena > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.qpm-lugar {
  position: absolute; border-radius: 50%; border: 4px dashed rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.08);
}
.qpm-lugar.visto { border: 3px solid rgba(60, 60, 60, 0.18); background: transparent; }
.qpm-pista-na-cena { animation: aparece 0.5s ease-out; }
.qpm-outro-lugar { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--papel); }
.qpm-contador { font-size: 15px; font-weight: bold; }
.qpm-lupa {
  position: absolute; left: 0; top: 0; z-index: 2; touch-action: none; cursor: grab; display: block;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.25)); transition: transform 0.25s ease-out;
}
.qpm-lupa svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.qpm-lupa.arrastando { cursor: grabbing; transition: none; }

/* ---------- conversar ---------- */
.qpm-conversa { display: flex; gap: 14px; align-items: center; justify-content: center; width: 100%; height: 100%; }
.qpm-amigos { display: grid; grid-template-columns: repeat(2, auto); gap: 10px; }
.qpm-amigo {
  width: clamp(var(--alvo), 18vh, 150px); height: clamp(var(--alvo), 18vh, 150px); border: 4px solid transparent; border-radius: 20px;
  background: var(--papel); box-shadow: var(--sombra); padding: 4px; display: block; overflow: hidden;
}
.qpm-amigo.escolhido { border-color: var(--morango); background: var(--palha); }
.qpm-amigo-figura { display: block; height: 100%; width: 100%; }
.qpm-amigo-figura img, .qpm-linha-figura img, .qpm-apontar-figura img, .qpm-nao-fui-figura img { height: 100%; width: 100%; object-fit: contain; }
.qpm-perguntas { display: flex; flex-direction: column; gap: 10px; }
.qpm-pergunta {
  min-height: var(--alvo); width: clamp(170px, 26vw, 320px); border: 0; border-radius: 18px; background: var(--amarelo); color: var(--azul);
  box-shadow: var(--sombra); display: flex; align-items: center; gap: 10px; padding: 6px 14px; font-weight: bold; font-size: clamp(15px, 1.8vw, 20px); text-align: left;
}
.qpm-pergunta.feita { background: var(--papel); }
.qpm-resposta-figura { flex: 0 0 56px; width: 56px; height: 48px; display: block; }

/* ---------- caderninho ---------- */
.qpm-caderno {
  width: 100%; height: 100%; overflow: auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; padding: 10px 14px;
  background: repeating-linear-gradient(var(--papel) 0 30px, var(--linha) 30px 32px); border-radius: 18px; box-shadow: var(--sombra);
  border-left: 10px solid var(--morango);
}
.qpm-pagina h2 { margin: 0 0 6px; font-size: 20px; color: var(--morango); }
.qpm-lista-amigos, .qpm-lista-pistas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.qpm-linha { display: flex; gap: 10px; align-items: center; font-size: 16px; line-height: 1.25; }
.qpm-linha-figura { flex: 0 0 52px; height: 52px; display: block; }
.qpm-linha-texto { display: flex; flex-direction: column; }
.qpm-linha.riscado .qpm-linha-figura { opacity: 0.4; filter: grayscale(1); }
.qpm-linha.riscado strong { text-decoration: line-through; text-decoration-color: var(--morango); text-decoration-thickness: 3px; }
.qpm-linha.riscado span { color: #5a4a3a; }
.qpm-pista-item { display: flex; gap: 8px; align-items: center; font-size: 16px; font-weight: bold; }
.qpm-pista-icone { flex: 0 0 60px; height: 50px; display: block; }
.qpm-vazio { font-size: 16px; color: #6a5a4a; }

/* ---------- quem foi? ---------- */
.qpm-quem-foi { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; }
.qpm-suspeitos { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.qpm-apontar {
  width: clamp(var(--alvo), 17vh, 150px); min-height: calc(clamp(var(--alvo), 17vh, 150px) + 22px); border: 4px solid var(--palha); border-radius: 20px;
  background: var(--papel); box-shadow: var(--sombra); display: flex; flex-direction: column; align-items: center; padding: 4px;
}
.qpm-apontar.riscado { opacity: 0.7; border-style: dashed; }
.qpm-apontar.riscado .qpm-apontar-figura { filter: grayscale(1); opacity: 0.55; }
.qpm-apontar-figura { display: block; width: 100%; flex: 1; min-height: 0; }
.qpm-apontar-nome { font-weight: bold; font-size: 15px; color: var(--azul); }
.qpm-nao-fui { display: flex; align-items: center; gap: 10px; padding: 6px 14px; background: var(--papel); border-radius: 18px; box-shadow: var(--sombra); }
.qpm-nao-fui-figura { width: 70px; height: 70px; display: block; }
.qpm-nao-fui-marca, .qpm-nao-fui-pista { width: 84px; height: 70px; display: block; }
.qpm-diferente { font-size: 40px; font-weight: bold; color: var(--morango); }

@keyframes aparece { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }

/* ---------- tela baixa (celular deitado) ---------- */
@media (max-height: 460px) {
  .qpm-nav { display: grid; grid-template-columns: repeat(2, var(--alvo)); align-content: center; gap: 6px; }
  .qpm-ir { width: var(--alvo); }
  .qpm-ir-texto { display: none; }
  .qpm-menu { gap: 8px; }
  .qpm-cartao-titulo { font-size: 13px; }
  .qpm-cartao-coisa { width: 60%; }
  .qpm-amigo { width: var(--alvo); height: var(--alvo); }
  .qpm-amigos { gap: 6px; }
  .qpm-perguntas { gap: 6px; }
  .qpm-pergunta { width: 160px; font-size: 14px; padding: 4px 8px; gap: 6px; }
  .qpm-resposta-figura { flex-basis: 44px; width: 44px; height: 38px; }
  .qpm-caderno { grid-template-columns: 1fr; padding: 6px 10px; }
  .qpm-quem-foi { gap: 6px; }
  .qpm-suspeitos { gap: 6px; flex-wrap: nowrap; }
  .qpm-conversa { gap: 8px; }
  .qpm-apontar { width: var(--alvo); min-height: var(--alvo); }
  .qpm-apontar-nome { font-size: 12px; }
  .qpm-nao-fui { padding: 2px 8px; }
  .qpm-nao-fui-figura, .qpm-nao-fui-marca, .qpm-nao-fui-pista { height: 46px; width: 54px; }
  .qpm-roda-figura { height: 86%; }
  .qpm-fim-botoes .botao-acao, .qpm-vamos { min-width: 120px; padding: 0 16px; font-size: 16px; }
}
