/* Visual comum dos jogos: telas, cartões do menu, opções para os pais, barra e botões de resposta */

.screen {
  display: none;
  min-height: 100vh;
  padding: 16px;
  flex-direction: column;
  align-items: center;
}
.screen.active { display: flex; }

/* ---------- Início ---------- */

.sub { font-size: clamp(18px, 4vw, 28px); font-weight: 600; margin: 22px 0 0; background: rgba(255, 255, 255, 0.7); border-radius: 999px; padding: 4px 20px; }

.cards {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 36px 0;
}

.card {
  width: min(260px, 80vw);
  aspect-ratio: 1;
  border: 0;
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.15s;
}
.card:nth-child(4n + 1) { background: var(--cartao-1); }
.card:nth-child(4n + 2) { background: var(--cartao-2); }
.card:nth-child(4n + 3) { background: var(--cartao-3); }
.card:nth-child(4n + 4) { background: var(--cartao-4); }
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card:active { transform: translateY(3px); }

.card-icon { font-size: 104px; line-height: 1; }
.card-title { font-size: 26px; font-weight: 700; color: var(--branco); }

.pais {
  border: 0;
  border-radius: 24px;
  padding: 20px 22px;
  font-size: 16px;
  max-width: 560px;
  width: calc(100% - 32px);
  color: var(--tinta);
  box-shadow: 0 20px 60px rgba(20, 60, 110, 0.35);
}
.pais::backdrop { background: rgba(30, 60, 100, 0.45); }
.pais h2 { margin: 0 0 4px; color: var(--titulo); font-size: 22px; }
.pais .pronto {
  margin-top: 18px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--titulo);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 10px;
  cursor: pointer;
}

/* Botão discreto dos pais, no canto de baixo */
.btn-pais {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  cursor: pointer;
  opacity: 0.7;
}
.btn-pais:hover { opacity: 1; }
.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button {
  border: 2px solid #ccd;
  background: var(--branco);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 15px;
  cursor: pointer;
}
.chips select {
  border: 2px solid #ccd;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 15px;
  max-width: 260px;
  background: var(--branco);
}
.chips button.on { background: var(--titulo); border-color: var(--titulo); color: #fff; }

/* ---------- Jogo ---------- */

.bar {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.estrelas { font-size: 40px; font-weight: 800; color: var(--titulo); background: var(--branco); border-radius: 999px; padding: 2px 22px; box-shadow: var(--sombra); }
.estrelas.pop { animation: pulo 0.5s; }

.pergunta {
  margin: 20px 0 32px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  text-align: center;
}

/* Botão grande "escute" para repetir a pergunta */
.ouvir {
  border: 0;
  background: var(--branco);
  border-radius: 36px;
  box-shadow: var(--sombra);
  padding: 16px 36px;
  font-size: 40px;
  cursor: pointer;
}
.ouvir .grande { display: block; font-size: 110px; line-height: 1.1; }

.opcoes {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.opcao {
  width: clamp(130px, 20vw, 200px);
  aspect-ratio: 1;
  border: 0;
  border-radius: var(--raio);
  background: var(--branco);
  box-shadow: var(--sombra);
  font-family: var(--fonte-letras);
  font-size: clamp(84px, 13vw, 140px);
  font-weight: 700;
  line-height: 1;
  padding-bottom: 0.12em;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.3s, background 0.2s;
}
.opcao:nth-child(4n + 1) { color: var(--azul); }
.opcao:nth-child(4n + 2) { color: var(--laranja); }
.opcao:nth-child(4n + 3) { color: var(--roxo); }
.opcao:nth-child(4n + 4) { color: var(--rosa); }
.opcao:hover:not(:disabled) { transform: translateY(-6px); }
.opcao.certo { background: var(--verde); color: #fff; animation: pulo 0.5s forwards; }
.opcao.errado { animation: balanca 0.4s; opacity: 0.3; }
.opcao:disabled { cursor: default; }

@keyframes balanca {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-14px); }
  75% { transform: translateX(14px); }
}
@media (prefers-reduced-motion: reduce) {
  .opcao, .card { transition: none; }
  .opcao.certo, .opcao.errado, .estrelas.pop { animation: none; }
}
/* Texto da página para os pais (e para o Google), gerado por ferramentas/gerar_paginas.py */
.sobre {
  width: min(100% - 32px, 760px);
  margin: 16px auto 0;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 18px 24px;
  font-size: 17px;
  line-height: 1.55;
}
.sobre h2 { margin: 0 0 6px; color: var(--titulo); font-size: 24px; }
.sobre h3 { margin: 16px 0 4px; font-size: 18px; }
.sobre p { margin: 0 0 8px; }
.sobre .links { margin: 0; padding-left: 20px; }
.sobre .links a { color: var(--titulo); }
/* durante o jogo, o texto para os pais fica escondido */
body:has(#game.active) .sobre { display: none; }
