/* ============================================================================
 * styles.css — Visual "Claymorphism" (3D macio, arredondado, fofo).
 * Pensado para crianças de 5–6 anos: alvos grandes, alto contraste,
 * cores alegres e animações curtas. Responsivo (celular, tablet, PC).
 * ========================================================================== */

:root {
  /* Paleta (design system) */
  --azul: #2563EB;
  --azul-claro: #5B8DEF;
  --amarelo: #FFCB2D;
  --rosa: #FF6B9D;
  --verde: #7CC36B;
  --roxo: #9B6BFF;
  --laranja: #FF9A2E;

  --fundo: #EAF2FF;
  --fundo-2: #DCEBFF;
  --tinta: #16223D;        /* texto principal (contraste alto) */
  --tinta-suave: #4A5A7A;
  --branco: #FFFFFF;
  --cartao: #FFFFFF;
  --perigo: #E23B3B;

  --raio: 26px;
  --raio-pequeno: 16px;

  /* Sombras claymorphism (externa macia + brilho) */
  --clay: 7px 9px 18px rgba(40, 70, 130, 0.18), -6px -6px 14px rgba(255, 255, 255, 0.9);
  --clay-press: inset 5px 5px 10px rgba(40, 70, 130, 0.20), inset -4px -4px 8px rgba(255, 255, 255, 0.7);
  --clay-leve: 4px 5px 12px rgba(40, 70, 130, 0.14), -3px -3px 8px rgba(255, 255, 255, 0.85);

  --fonte-titulo: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --fonte-texto: "Comic Neue", "Trebuchet MS", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--fonte-texto);
  color: var(--tinta);
  background:
    radial-gradient(1100px 600px at 10% -10%, #FFFBEA 0%, transparent 55%),
    radial-gradient(900px 600px at 110% 10%, #FFE9F3 0%, transparent 50%),
    linear-gradient(160deg, var(--fundo) 0%, var(--fundo-2) 100%);
  background-attachment: fixed;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

#app { min-height: 100dvh; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

h1, h2, h3 { font-family: var(--fonte-titulo); margin: 0; }

/* --------------------------- Animações base ------------------------------- */
.entrando { animation: surge 0.45s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes surge {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulinho {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes tremer {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-7px) rotate(-3deg); }
  75% { transform: translateX(7px) rotate(3deg); }
}
@keyframes brilhar {
  0% { transform: scale(.3) rotate(-20deg); opacity: 0; }
  40% { transform: scale(1.2) rotate(10deg); opacity: 1; }
  100% { transform: scale(2) translateY(-60px) rotate(30deg); opacity: 0; }
}

/* ------------------------------- Botões ----------------------------------- */
button { font-family: var(--fonte-titulo); cursor: pointer; border: none; }

.btn-redondo {
  width: 62px; height: 62px; min-width: 62px; border-radius: 50%;
  background: var(--branco); color: var(--azul);
  display: grid; place-items: center; box-shadow: var(--clay);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-redondo:active { transform: scale(.92); box-shadow: var(--clay-press); }
.btn-ouvir { color: #fff; background: var(--roxo); box-shadow: var(--clay); }
.btn-ouvir.falando { animation: pulinho .7s infinite; }
.btn-ouvir::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 3px solid var(--roxo); opacity: 0; animation: anelOuvir 2.2s ease-out infinite;
}
.btn-ouvir { position: relative; }
@keyframes anelOuvir {
  0% { transform: scale(.85); opacity: .6; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}
.btn-pais { color: var(--tinta-suave); width: 56px; height: 56px; min-width: 56px; }
.btn-pais.segurando { animation: pulinho .6s infinite; color: var(--azul); }

.btn-grande {
  font-size: 1.25rem; font-weight: 700; padding: 16px 26px; min-height: 60px;
  border-radius: var(--raio); display: inline-flex; align-items: center; gap: 10px;
  justify-content: center; box-shadow: var(--clay);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-grande:active { transform: scale(.95); box-shadow: var(--clay-press); }
.btn-primario { background: var(--azul); color: #fff; }
.btn-secundario { background: #fff; color: var(--azul); }
.btn-perigo { background: var(--perigo); color: #fff; }

.linha-botoes { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ============================ TELA INÍCIO ================================ */
.topo-inicio {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px clamp(16px, 4vw, 40px);
  padding-top: max(18px, env(safe-area-inset-top));
}
.marca { display: flex; align-items: center; gap: 14px; }
.marca-icone {
  width: 64px; height: 64px; border-radius: 22px; background: #fff;
  box-shadow: var(--clay-leve); padding: 6px; flex-shrink: 0;
}
.marca-icone svg { width: 100%; height: 100%; }
.marca-titulo { font-size: clamp(1.3rem, 4vw, 2rem); color: var(--azul); line-height: 1; }
.marca-sub { margin: 2px 0 0; color: var(--tinta-suave); font-weight: 700; }

.topo-direita { display: flex; align-items: center; gap: 12px; }
.placar-estrelas {
  display: flex; align-items: center; gap: 6px; background: #fff;
  padding: 10px 16px; border-radius: 30px; box-shadow: var(--clay-leve);
}
.mini-estrela { width: 24px; height: 24px; display: inline-block; }
.mini-estrela svg { width: 100%; height: 100%; }
.placar-num { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.3rem; color: var(--tinta); }

.conteudo-inicio { padding: 8px clamp(16px, 4vw, 40px) 40px; }
.grade-modulos {
  display: grid; gap: clamp(14px, 2.5vw, 22px);
  grid-template-columns: repeat(4, 1fr);   /* 4×2 simétrico para os 8 módulos */
  max-width: 980px; margin: 0 auto;
}

/* Cartão de módulo: layout VERTICAL (ícone em cima, título, descrição, rodapé).
   Evita títulos espremidos e funciona bem com muitos módulos. */
.card-modulo {
  position: relative; text-align: center; background: var(--cartao);
  border-radius: var(--raio); padding: 18px 14px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: var(--clay);
  border: 4px solid color-mix(in srgb, var(--cor-card) 45%, white);
  border-top: 8px solid var(--cor-card);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease;
  animation: surge .5s both;
}
.card-modulo:hover { transform: translateY(-5px) scale(1.02); }
.card-modulo:active { transform: scale(.97); box-shadow: var(--clay-press); }
.card-sprite {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 22px;
  background: color-mix(in srgb, var(--cor-card) 20%, white);
  padding: 9px; display: grid; place-items: center;
}
.card-sprite svg { width: 100%; height: 100%; }
.card-titulo { font-size: 1.15rem; color: var(--tinta); line-height: 1.15; }
.card-desc { margin: 0; color: var(--tinta-suave); font-size: .85rem; line-height: 1.3; }
.card-rodape {
  margin-top: auto; display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding-top: 8px; width: 100%;
}
.nivel-bolha {
  font-family: var(--fonte-titulo); font-weight: 700; font-size: .85rem;
  background: color-mix(in srgb, var(--cor-card) 22%, white);
  color: color-mix(in srgb, var(--cor-card) 70%, black);
  padding: 5px 12px; border-radius: 20px;
}
.card-estrelas { display: inline-flex; align-items: center; gap: 2px; }
.mais-estrelas { font-family: var(--fonte-titulo); font-weight: 800; color: var(--amarelo); }
.card-desafio {
  background: linear-gradient(150deg, #fff 0%, #F4ECFF 100%);
  grid-column: 1 / -1;
}
.fita-concluido {
  position: absolute; top: 12px; right: -8px; background: var(--verde); color: #fff;
  font-family: var(--fonte-titulo); font-weight: 800; font-size: .8rem;
  padding: 4px 14px; border-radius: 8px; box-shadow: var(--clay-leve); transform: rotate(6deg);
}

/* =========================== TELA ATIVIDADE ============================== */
.barra-atividade {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px clamp(14px, 4vw, 36px);
  padding-top: max(16px, env(safe-area-inset-top));
}
.titulo-atividade { text-align: center; flex: 1; }
.titulo-atividade h2 { font-size: clamp(1.2rem, 4vw, 1.8rem); color: var(--tinta); }
.nivel-tag {
  display: inline-block; background: var(--amarelo); color: #5a3d00;
  font-weight: 700; font-size: .8rem; padding: 3px 12px; border-radius: 20px; margin-bottom: 4px;
}

.pontos-progresso { display: flex; gap: 10px; justify-content: center; padding: 4px 0 8px; }
.ponto { width: 16px; height: 16px; border-radius: 50%; background: #C9D8F2; box-shadow: var(--clay-press); }
.ponto.feito { background: var(--verde); }
.ponto.atual { background: var(--amarelo); transform: scale(1.3); }

.palco {
  max-width: 820px; margin: 0 auto; padding: 10px clamp(14px, 4vw, 30px) 50px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.palco.entrando { animation: surge .4s both; }

/* ---- Placar de acertos e tentativas (durante a atividade) ---- */
.placar-sessao {
  display: flex; gap: 10px; justify-content: center; align-items: center;
  padding: 2px 0 6px;
}
.placar-item {
  display: inline-flex; align-items: center; gap: 6px; background: #fff;
  padding: 6px 14px; border-radius: 30px; box-shadow: var(--clay-leve);
}
.placar-item .placar-icone { width: 22px; height: 22px; display: grid; place-items: center; }
.placar-item .placar-icone svg { width: 100%; height: 100%; }
.placar-item .placar-valor {
  font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.2rem; color: var(--tinta);
  min-width: 14px; text-align: center;
}
.placar-item.acertos { background: color-mix(in srgb, var(--verde) 16%, white); }
.placar-item.erros   { background: color-mix(in srgb, #E8830C 14%, white); }

/* ---- Botão "Próximo" (avanço confiável após acertar) ---- */
.rodape-proximo {
  margin-top: 8px; display: flex; justify-content: center; width: 100%;
}
.btn-proximo {
  background: var(--verde); color: #fff; font-size: 1.4rem;
  padding: 18px 40px; min-height: 66px; animation: pulinho 1.2s ease-in-out infinite;
}
.btn-proximo svg { width: 28px; height: 28px; }

/* ---- Placar na tela de comemoração ---- */
.placar-comemora { display: flex; gap: 16px; justify-content: center; margin: 6px 0 2px; }
.placar-comemora .placar-item {
  flex-direction: column; gap: 2px; padding: 12px 22px; min-width: 92px;
}
.placar-comemora .placar-icone { width: 30px; height: 30px; }
.placar-comemora .placar-valor { font-size: 1.9rem; }
.placar-comemora .placar-rotulo { font-weight: 700; font-size: .82rem; color: var(--tinta-suave); }

.pergunta {
  font-family: var(--fonte-titulo); font-weight: 700;
  font-size: clamp(1.3rem, 5vw, 2rem); color: var(--tinta); text-align: center;
  margin: 0; line-height: 1.2;
}

/* ---- Sprites e contagem ---- */
.sprite { width: 84px; height: 84px; display: grid; place-items: center; }
.sprite svg { width: 100%; height: 100%; display: block; }
.sprite.mini { width: 56px; height: 56px; }

.visor-contagem {
  width: 120px; height: 120px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: var(--clay);
}
.visor-numero { font-family: var(--fonte-titulo); font-weight: 800; font-size: 4rem; color: var(--azul); }

.campo-contagem {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  max-width: 640px;
}
.contavel {
  background: var(--cor-ficha, #FFF1DD); border-radius: 20px; padding: 8px;
  box-shadow: var(--clay-leve); transition: transform .15s ease;
  position: relative;
}
.contavel:active { transform: scale(.9); }
.contado { filter: saturate(.5); }
.contado::after {
  content: "✓"; position: absolute; top: -8px; right: -8px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--verde); color: #fff;
  font-family: var(--fonte-titulo); font-weight: 800; display: grid; place-items: center;
  box-shadow: var(--clay-leve);
}

/* ---- Numerais e opções ---- */
.numeral {
  font-family: var(--fonte-titulo); font-weight: 800; font-size: 3rem;
  color: var(--tinta); line-height: 1;
}
.numeral.fixo {
  background: #fff; width: 84px; height: 84px; border-radius: 20px;
  display: grid; place-items: center; box-shadow: var(--clay-leve);
}

.grade-opcoes, .grade-numeros, .grade-formas, .grade-tamanho, .grade-cenas {
  display: grid; gap: 16px; width: 100%; max-width: 600px;
}
.grade-numeros { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.grade-formas { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.grade-tamanho { grid-template-columns: repeat(3, 1fr); align-items: center; }
.grade-cenas { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.opcao {
  background: #fff; border-radius: var(--raio); padding: 18px; min-height: 110px;
  display: grid; place-items: center; box-shadow: var(--clay);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.opcao:hover { transform: translateY(-3px); }
.opcao:active { transform: scale(.95); box-shadow: var(--clay-press); }
.opcao.acertou { background: #E4F7DE; box-shadow: 0 0 0 5px var(--verde), var(--clay); animation: pulinho .5s; }
.opcao.errou { animation: tremer .4s; box-shadow: 0 0 0 4px #FFD0D0, var(--clay); }
.opcao.travado { opacity: .6; pointer-events: none; }

/* ---- Quantidade ---- */
.moldura-colecao, .moldura-cena {
  background: #fff; border-radius: var(--raio); padding: 18px; box-shadow: var(--clay-leve);
  width: 100%; max-width: 600px;
}
.campo-colecao, .cena-formas {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}

/* ---- Comparar ---- */
.arena-comparar {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  flex-wrap: nowrap;
}
.caixa-comparar { flex: 1; max-width: 260px; min-height: 150px; }
.pilha-comparar { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.botao-igual {
  width: 72px; min-width: 72px; height: 72px; min-height: 72px; border-radius: 50%;
  font-family: var(--fonte-titulo); font-weight: 800; font-size: 2.4rem; color: var(--azul);
  padding: 0;
}

/* ---- Sequência / reta ---- */
.trilho-sequencia { display: flex; align-items: center; gap: 14px; justify-content: center; }
.seta-seq { font-size: 2.4rem; color: var(--tinta-suave); }
.slot-vazio {
  width: 84px; height: 84px; border-radius: 20px; background: #FFF6D6;
  border: 4px dashed var(--amarelo); display: grid; place-items: center;
  font-family: var(--fonte-titulo); font-weight: 800; font-size: 3rem; color: var(--laranja);
}
.envolto-reta { width: 100%; overflow-x: auto; padding: 8px 4px 14px; }
.reta-numerica {
  display: flex; gap: 8px; justify-content: flex-start; min-width: min-content;
  padding: 14px; background: #fff; border-radius: var(--raio); box-shadow: var(--clay-leve);
  position: relative;
}
.reta-numerica::before {
  content: ""; position: absolute; left: 20px; right: 20px; top: 50%; height: 5px;
  background: #C9D8F2; border-radius: 4px; z-index: 0;
}
.reta-no {
  position: relative; z-index: 1; width: 50px; height: 50px; min-width: 50px;
  border-radius: 50%; background: var(--azul); color: #fff; display: grid; place-items: center;
  font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.3rem;
}
.reta-no.slot-vazio { background: #FFF6D6; width: 54px; height: 54px; border-radius: 50%; font-size: 1.5rem; }

/* ---- Operações (arrastar) ---- */
.arrastavel { cursor: grab; touch-action: none; }
.arrastavel.pegando { cursor: grabbing; transform: scale(1.15); filter: drop-shadow(3px 6px 8px rgba(0,0,0,.25)); }
.fruta-arrasta { background: #fff; border-radius: 18px; padding: 6px; box-shadow: var(--clay-leve); }

.area-cesto { position: relative; width: 220px; height: 200px; margin: 0 auto; }
.cesto-soltar { width: 100%; height: 100%; }
.cesto-soltar svg { width: 100%; height: 100%; }
.cesto-conteudo {
  position: absolute; left: 10%; right: 10%; bottom: 18%; top: 30%;
  display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-end; justify-content: center;
}
.cesto-conteudo .sprite { width: 44px; height: 44px; }
.cesto-conteudo.grande { position: static; min-height: 120px; padding: 10px; }
.area-cesto.alvo-ativo .cesto-soltar { transform: scale(1.06); filter: drop-shadow(0 0 0 4px var(--verde)); }
.area-cesto.alvo-ativo { outline: 4px dashed var(--verde); border-radius: 20px; }

.bandeja-frutas {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  background: #fff; border-radius: var(--raio); padding: 16px; box-shadow: var(--clay-leve);
  min-height: 90px; width: 100%; max-width: 560px;
}
.dica-arraste { color: var(--tinta-suave); font-weight: 700; margin: 0; text-align: center; }

.arena-tirar { display: flex; gap: 18px; align-items: stretch; flex-wrap: wrap; justify-content: center; width: 100%; }
.arena-tirar .area-cesto { width: auto; height: auto; min-width: 220px; }
.area-fora {
  flex: 1; min-width: 160px; min-height: 160px; border: 4px dashed var(--rosa);
  border-radius: var(--raio); background: #FFEEF4; display: flex; flex-wrap: wrap; gap: 8px;
  align-content: flex-start; justify-content: center; padding: 14px; position: relative;
}
.area-fora.alvo-ativo { background: #FFD9E6; transform: scale(1.02); }
.rotulo-fora {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--rosa); color: #fff; font-family: var(--fonte-titulo); font-weight: 800;
  padding: 4px 16px; border-radius: 20px; box-shadow: var(--clay-leve);
}
.area-fora .sprite { width: 48px; height: 48px; }

/* ---- Formas ---- */
.forma-grande { width: 88px; height: 88px; }
.forma-grande svg, .obj-forma svg, .forma-mini svg, .lembrete-forma svg { width: 100%; height: 100%; }
.obj-forma { width: 84px; height: 84px; }
.forma-mini { width: 54px; height: 54px; }
.lembrete-forma { width: 70px; height: 70px; margin: 0 auto; color: var(--azul); }

/* ---- Espaço: posições (cena = 1 SVG único, oclusão pela ordem de desenho) ---- */
.cena-pos { width: 100%; display: grid; place-items: center; }
.cena-pos svg { width: 100%; max-width: 150px; height: auto; display: block; }

/* ---- Espaço: tamanho ---- */
.cofre-tamanho { display: grid; place-items: center; height: 120px; }

/* ---- Espaço: massa / balança ---- */
.balanca {
  position: relative; display: flex; align-items: flex-start; justify-content: center; gap: 50px;
  padding-top: 20px; transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}
.balanca::before {
  content: ""; position: absolute; top: 18px; left: 12%; right: 12%; height: 8px;
  background: var(--azul); border-radius: 6px; transform-origin: center;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}
.balanca::after {
  content: ""; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 90px; background: var(--azul); border-radius: 6px; z-index: -1;
}
.balanca.pende-esq::before { transform: rotate(-8deg); }
.balanca.pende-dir::before { transform: rotate(8deg); }
.prato-balanca { width: 130px; min-height: 120px; transition: transform .5s; }
.balanca.pende-esq .lado-esq { transform: translateY(16px); }
.balanca.pende-dir .lado-dir { transform: translateY(16px); }
.base-balanca { width: 0; }

/* =========================== COMEMORAÇÃO ================================ */
.tela-comemora {
  max-width: 600px; margin: 0 auto; padding: 30px 20px 60px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.balao-comemora { width: 150px; height: 150px; animation: pulinho 1.2s infinite; }
.balao-comemora svg { width: 100%; height: 100%; }
.titulo-comemora { font-size: clamp(2rem, 8vw, 3rem); color: var(--azul); }
.estrelas-comemora { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.estrela-grande { width: 56px; height: 56px; }
.estrela-grande svg { width: 100%; height: 100%; }
.estrela-grande.cheia { animation: surge .5s both; }
.estrela-grande.vazia { filter: grayscale(1); opacity: .35; }
.msg-comemora { font-size: 1.3rem; color: var(--tinta); font-weight: 700; margin: 0; }
.estrela-flash {
  position: absolute; left: 50%; top: 40%; width: 80px; height: 80px;
  transform: translate(-50%,-50%); pointer-events: none; animation: brilhar .9s ease-out forwards;
}
.estrela-flash svg { width: 100%; height: 100%; }
.confete-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 2000; }

/* ============================== OVERLAYS ================================ */
.overlay {
  position: fixed; inset: 0; background: rgba(20, 34, 61, 0.55);
  display: grid; place-items: center; z-index: 3000; padding: 20px;
  backdrop-filter: blur(3px);
}
.cartao-overlay {
  background: #fff; border-radius: var(--raio); padding: 30px; max-width: 440px; width: 100%;
  text-align: center; box-shadow: var(--clay);
}
.cartao-overlay h2 { font-size: 1.8rem; color: var(--azul); margin-bottom: 10px; }
.cartao-overlay p { color: var(--tinta); font-size: 1.1rem; line-height: 1.5; margin: 0 0 22px; }
.selo-overlay { width: 90px; height: 90px; margin: 0 auto 10px; }
.selo-overlay svg { width: 100%; height: 100%; }

/* ============================ ÁREA DOS PAIS ============================= */
.pais-conteudo { max-width: 720px; margin: 0 auto; padding: 8px clamp(16px,4vw,30px) 50px; display: flex; flex-direction: column; gap: 18px; }
.bloco-pais { background: #fff; border-radius: var(--raio); padding: 22px; box-shadow: var(--clay-leve); }
.bloco-pais h3 { font-size: 1.3rem; color: var(--azul); margin-bottom: 14px; }
.linha-progresso { display: grid; grid-template-columns: 48px 1fr; gap: 12px 14px; align-items: center; margin-bottom: 16px; }
.lp-icone { width: 48px; height: 48px; }
.lp-icone svg { width: 100%; height: 100%; }
.lp-info { display: flex; flex-direction: column; }
.lp-info strong { font-family: var(--fonte-titulo); font-size: 1.1rem; }
.lp-detalhe { color: var(--tinta-suave); font-size: .9rem; }
.lp-barra { grid-column: 1 / -1; height: 12px; background: #E3ECFB; border-radius: 8px; overflow: hidden; box-shadow: var(--clay-press); }
.lp-preenche { height: 100%; border-radius: 8px; transition: width .4s ease; }

.linha-config { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; flex-wrap: wrap; }
.linha-config.coluna { flex-direction: column; align-items: stretch; }
.select-voz {
  font-family: var(--fonte-texto); font-size: 1.05rem; padding: 12px 14px; min-height: 48px;
  border-radius: var(--raio-pequeno); border: 3px solid var(--fundo-2); background: #fff;
  color: var(--tinta); box-shadow: var(--clay-press); width: 100%; cursor: pointer;
}
.select-voz:focus { outline: 3px solid var(--azul); }
.rotulo-config { font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.1rem; }
.valor-slider { font-family: var(--fonte-titulo); font-weight: 800; color: var(--azul); min-width: 64px; text-align: right; }
.slider-tempo { flex: 1; min-width: 140px; height: 36px; accent-color: var(--azul); }

.switch { position: relative; display: inline-block; }
.trilho-switch { display: block; width: 64px; height: 36px; background: #C9D8F2; border-radius: 20px; box-shadow: var(--clay-press); transition: background .2s; }
.pino-switch { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; background: #fff; border-radius: 50%; box-shadow: var(--clay-leve); transition: transform .2s; }
.switch.ligado .trilho-switch { background: var(--verde); }
.switch.ligado .pino-switch { transform: translateX(28px); }

.texto-privacidade { color: var(--tinta-suave); line-height: 1.6; margin-bottom: 18px; }

/* ============================= RESPONSIVO =============================== */
@media (max-width: 880px) {
  .grade-modulos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .grade-modulos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-titulo { font-size: 1.05rem; }
  .card-sprite { width: 64px; height: 64px; }
  .sprite { width: 70px; height: 70px; }
  .btn-redondo { width: 56px; height: 56px; min-width: 56px; }
  .arena-comparar { gap: 8px; }
  .botao-igual { width: 60px; min-width: 60px; height: 60px; min-height: 60px; font-size: 1.8rem; }
}

/* Telas largas: cartões do menu em 3 colunas confortáveis já cobertas pelo auto-fill. */

/* ----------------------- Movimento reduzido ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body.sem-anim *, body.sem-anim *::before, body.sem-anim *::after {
  animation: none !important; transition: none !important;
}

/* ============================================================================
 * EVOLUÇÃO 6–7 ANOS — seletor de idade, perfis e módulos novos
 * ========================================================================== */

/* ---- Selo de idade no topo ---- */
.selo-idade {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 18px; background: #fff;
  border: 4px solid color-mix(in srgb, var(--cor-card) 45%, white);
  box-shadow: var(--clay-leve); color: color-mix(in srgb, var(--cor-card) 70%, black);
  line-height: 1;
}
.selo-idade-num { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.5rem; }
.selo-idade-txt { font-size: .62rem; font-weight: 700; color: var(--tinta-suave); }

/* ---- Tela de seleção de idade ---- */
.idade-conteudo { max-width: 760px; margin: 0 auto; padding: 10px clamp(16px,4vw,30px) 50px; text-align: center; }
.balao-idade { width: 120px; height: 120px; margin: 0 auto; animation: pulinho 1.4s infinite; }
.balao-idade svg { width: 100%; height: 100%; }
.texto-idade { font-size: 1.2rem; color: var(--tinta); font-weight: 700; max-width: 540px; margin: 6px auto 26px; line-height: 1.5; }
.grade-idades { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; max-width: 620px; margin: 0 auto; }
.card-idade {
  background: #fff; border-radius: var(--raio); padding: 26px 16px; cursor: pointer;
  border: 5px solid color-mix(in srgb, var(--cor-card) 40%, white); box-shadow: var(--clay);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease;
}
.card-idade:hover { transform: translateY(-5px) scale(1.03); }
.card-idade:active { transform: scale(.96); box-shadow: var(--clay-press); }
.card-idade.ativa { box-shadow: 0 0 0 5px var(--cor-card), var(--clay); }
.card-idade-num { font-family: var(--fonte-titulo); font-weight: 800; font-size: 4rem; color: var(--cor-card); line-height: 1; }
.card-idade-anos { font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.3rem; color: var(--tinta); }
.card-idade-sub { color: var(--tinta-suave); font-weight: 700; margin-top: 6px; }

/* ---- Idade na Área dos Pais ---- */
.linha-idade-pais { display: flex; gap: 10px; flex-wrap: wrap; }
.chip-idade {
  flex: 1; min-width: 120px; display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: #fff; border-radius: var(--raio-pequeno); padding: 12px 14px;
  border: 3px solid var(--fundo-2); box-shadow: var(--clay-leve);
}
.chip-idade.ativo { border-color: var(--cor-card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor-card) 40%, white), var(--clay-leve); }
.chip-idade-num { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.8rem; color: var(--cor-card); }
.chip-idade-txt { font-weight: 700; color: var(--tinta-suave); }
.tag-reforco {
  align-self: center; background: #FFF1D6; color: #9A6B00; font-family: var(--fonte-titulo);
  font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 14px; white-space: nowrap;
}

/* ---- Visor de valor (material dourado / dinheiro) ---- */
.visor-valor {
  display: inline-flex; align-items: baseline; gap: 8px; background: #fff; padding: 8px 22px;
  border-radius: 30px; box-shadow: var(--clay-leve);
}
.visor-valor-num { font-family: var(--fonte-titulo); font-weight: 800; font-size: 2.4rem; color: var(--azul); }
.visor-valor-alvo { font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.2rem; color: var(--tinta-suave); }

/* ---- Material dourado (arrastar) ---- */
.mesa-md {
  width: 100%; max-width: 600px; min-height: 130px; background: #FFFDF4;
  border: 4px dashed #E0B94A; border-radius: var(--raio); padding: 12px;
  display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; justify-content: center;
}
.tray-md {
  width: 100%; max-width: 600px; background: #fff; border-radius: var(--raio); padding: 12px;
  box-shadow: var(--clay-leve); display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.peca-md { background: transparent; padding: 0; }
.peca-md.md_unidade { width: 34px; height: 34px; }
.peca-md.md_dezena { width: 70px; height: 34px; }
.peca-md.md_centena { width: 56px; height: 56px; }
.peca-md svg { width: 100%; height: 100%; }

.material-mini { display: inline-flex; flex-wrap: wrap; gap: 3px; align-items: center; justify-content: center; max-width: 220px; }
.material-mini .mm svg { width: 100%; height: 100%; display: block; }
.material-mini .mm.unidade { width: 16px; height: 16px; }
.material-mini .mm.dezena { width: 34px; height: 16px; }
.material-mini .mm.centena { width: 26px; height: 26px; }

/* ---- Conta de + e − ---- */
.conta-op { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.sinal-op { font-family: var(--fonte-titulo); font-weight: 800; font-size: 2.2rem; color: var(--tinta-suave); }
.interrogacao { font-family: var(--fonte-titulo); font-weight: 800; font-size: 2.6rem; color: var(--laranja); }
.apoio-op { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.apoio-bloco { background: #fff; border-radius: var(--raio-pequeno); padding: 8px 10px; box-shadow: var(--clay-leve); }

/* ---- Rótulos grandes (par/ímpar, horas, dias, dinheiro) ---- */
.rotulo-grande { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.5rem; color: var(--tinta); text-align: center; }
.numeral.grande { font-size: 4rem; }
.numeral.fixo.grande { width: 110px; height: 110px; }

/* ---- Ordenar (toque em ordem) ---- */
.ordenar-cards { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.ordenar-cards .opcao { position: relative; min-width: 96px; }
.selo-ordem {
  position: absolute; top: -10px; right: -10px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--verde); color: #fff; font-family: var(--fonte-titulo); font-weight: 800;
  display: grid; place-items: center; box-shadow: var(--clay-leve);
}

/* ---- Multiplicação (grupos) ---- */
.grupos-mult { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.grupo-cesto {
  background: #FFF6F9; border: 3px dashed var(--rosa); border-radius: var(--raio-pequeno);
  padding: 10px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 150px;
}
.grupo-cesto .sprite { width: 42px; height: 42px; }

/* ---- Divisão (cestos) ---- */
.cestos-divisao { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.alvo-cesto-div { position: relative; width: 150px; }
.alvo-cesto-div .cesto-soltar { width: 100%; height: 90px; }
.alvo-cesto-div .cesto-soltar svg { width: 100%; height: 100%; }
.alvo-cesto-div .cesto-conteudo { position: static; min-height: 60px; padding: 6px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.alvo-cesto-div .sprite { width: 38px; height: 38px; }

/* ---- Padrões ---- */
.padrao-fila { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
.padrao-item { width: 56px; height: 56px; }
.padrao-item svg { width: 100%; height: 100%; }
.padrao-falta {
  width: 56px; height: 56px; border-radius: 14px; background: #FFF6D6; border: 4px dashed var(--amarelo);
  display: grid; place-items: center; font-family: var(--fonte-titulo); font-weight: 800; font-size: 2rem; color: var(--laranja);
}

/* ---- Dinheiro ---- */
.dinheiro { display: grid; place-items: center; }
.dinheiro svg { width: 100%; height: 100%; }
.grade-formas .dinheiro { width: 120px; height: 86px; }
.item-loja {
  display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--raio);
  padding: 12px 22px; box-shadow: var(--clay-leve);
}
.item-loja .sprite { width: 70px; height: 70px; }
.preco-tag { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.8rem; color: var(--verde); }
.area-pagar {
  width: 100%; max-width: 520px; min-height: 120px; border: 4px dashed var(--verde); border-radius: var(--raio);
  background: #EAF7EE; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start;
  justify-content: center; padding: 16px 10px 10px; position: relative;
}
.carteira {
  width: 100%; max-width: 560px; background: #fff; border-radius: var(--raio); padding: 14px;
  box-shadow: var(--clay-leve); display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.dinheiro.arr { width: 92px; height: 66px; }
.area-pagar .dinheiro { width: 80px; height: 58px; }

/* ---- Relógio ---- */
.relogio-wrap { width: 200px; height: 200px; margin: 0 auto; }
.relogio-wrap svg { width: 100%; height: 100%; }

/* ---- Sólidos / lembrete grande ---- */
.lembrete-forma.grande { width: 110px; height: 110px; color: inherit; }

/* ---- Estatística ---- */
.pictograma { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 560px; }
.picto-linha { justify-items: start; }
.picto-figs { display: flex; gap: 4px; flex-wrap: wrap; }
.picto-figs .sprite { width: 40px; height: 40px; }
.grafico-colunas {
  display: flex; align-items: flex-end; justify-content: center; gap: 22px;
  background: #fff; border-radius: var(--raio); padding: 18px; box-shadow: var(--clay-leve);
  min-height: 220px; width: 100%; max-width: 520px;
}
.graf-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.graf-barra { width: 52px; border-radius: 10px 10px 4px 4px; box-shadow: var(--clay-leve); transition: height .3s; }
.graf-icone { width: 46px; height: 46px; }
.graf-icone svg { width: 100%; height: 100%; }
.grafico-colunas .opcao { padding: 6px; background: transparent; box-shadow: none; }
.grafico-colunas .opcao.acertou { background: #E4F7DE; }

/* ---- Realce genérico de alvo de arraste ---- */
.alvo-ativo { outline: 4px dashed var(--verde); outline-offset: 2px; }
