/* Meu Devocional Kids: protótipo do web app. Mesma cara da página de vendas: céu, tinta azul-marinho e amarelo. */
:root {
  --campo: #eaf6ff; --ceu: #25b6fd; --ceu-fundo: #c9ecff; --tinta: #16306b; --suave: #4a5f8f;
  --destaque: #ffd23f; --destaque-fundo: #fff3c4; --verde: #2fb874; --branco: #fff; --linha: #d3e6f5;
  --tit: 'Baloo 2', 'Nunito', system-ui, sans-serif; --txt: 'Nunito', system-ui, sans-serif;
  --raio: 22px; --sombra: 0 4px 0 rgba(22, 48, 107, .14);
  color-scheme: light;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--campo); color: var(--tinta); font: 700 18px/1.4 var(--txt); -webkit-tap-highlight-color: transparent }
img { max-width: 100%; display: block }
button { font: inherit; color: inherit; cursor: pointer }
h1, h2, h3 { font-family: var(--tit); font-weight: 800; line-height: 1.05; margin: 0; text-wrap: balance }
p { margin: 0 }
[hidden] { display: none !important }
:focus-visible { outline: 4px solid var(--ceu); outline-offset: 3px }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.tela { flex: 1; display: flex; flex-direction: column; gap: 18px; padding-block: 18px 120px }
.tela-cheia { padding-bottom: 32px }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--destaque); color: var(--tinta); font: 800 21px/1 var(--tit); box-shadow: 0 5px 0 #d9a800; transition: transform .12s ease }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #d9a800 }
.btn-azul { background: var(--ceu); color: #fff; box-shadow: 0 5px 0 #0c8fd0 }
.btn-azul:active { box-shadow: 0 2px 0 #0c8fd0 }
.btn-branco { background: #fff; box-shadow: 0 5px 0 var(--linha) }
.btn-branco:active { box-shadow: 0 2px 0 var(--linha) }
.btn-largo { width: 100% }
.btn svg { width: 26px; height: 26px; flex: none }
.voltar { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--sombra); display: grid; place-items: center; flex: none }
.voltar svg { width: 26px; height: 26px }
.link { background: none; border: 0; text-decoration: underline; color: var(--suave); font-size: 15px; padding: 8px }

/* entrar e perfil */
.entrar { justify-content: center; text-align: center; gap: 20px }
.entrar-capa { width: 168px; margin: 0 auto; transform: rotate(-3deg); border-radius: 10px; overflow: hidden; box-shadow: 0 14px 30px rgba(22, 48, 107, .22) }
.entrar h1 { font-size: 36px }
.campo { display: grid; gap: 8px; text-align: left; font-size: 16px }
.campo input { font: 700 20px/1 var(--txt); color: var(--tinta); min-height: 60px; padding: 0 18px; border: 3px solid var(--linha); border-radius: 18px; background: #fff; width: 100% }
.campo input:focus { border-color: var(--ceu); outline: 0 }
.nota { font-size: 14px; color: var(--suave); font-weight: 600 }
.amigos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.amigo { aspect-ratio: 1; border-radius: 24px; border: 4px solid transparent; background: #fff; padding: 10px; box-shadow: var(--sombra) }
.amigo img { width: 100%; height: 100%; object-fit: contain }
.amigo[aria-pressed="true"] { border-color: var(--ceu); background: var(--ceu-fundo) }

/* topo da criança */
.topo { display: flex; align-items: center; gap: 12px; padding-top: 14px }
.eu { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0 }
.eu img { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 4px; box-shadow: var(--sombra) }
.eu b { font: 800 24px/1 var(--tit); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.contador { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 8px 14px 8px 10px; box-shadow: var(--sombra); font: 800 20px/1 var(--tit) }
.contador svg { width: 26px; height: 26px }

/* card de hoje */
.hoje { background: var(--ceu); color: #fff; border-radius: 28px; padding: 18px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; box-shadow: 0 6px 0 #0c8fd0 }
.hoje-img { background: #fff; border-radius: 18px; aspect-ratio: 1; overflow: hidden }
.hoje-img img { width: 100%; height: 100%; object-fit: cover }
.hoje small { font: 800 15px/1 var(--txt); opacity: .9; display: block; margin-bottom: 6px }
.hoje h2 { font-size: 28px; margin-bottom: 4px }
.hoje p { font-size: 16px; opacity: .95 }
.hoje .btn { grid-column: 1 / -1 }
.hoje-feito { background: var(--verde); box-shadow: 0 6px 0 #1f8f57 }

/* trilha */
.mes-tit { font-size: 22px; text-align: center; margin-top: 8px }
.semana { display: grid; gap: 10px }
.sem-cab { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 20px; padding: 10px 14px 10px 10px; box-shadow: var(--sombra) }
.sem-cab img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover }
.sem-cab small { font-size: 14px; color: var(--suave); display: block }
.sem-cab b { font: 800 20px/1.1 var(--tit) }
.sem-cab .fig { margin-left: auto; width: 34px; height: 34px; flex: none }
.caminho { display: grid; justify-items: center; gap: 8px; padding: 6px 0 14px }
.no { width: 72px; height: 72px; border-radius: 50%; border: 0; display: grid; place-items: center; font: 800 24px/1 var(--tit); background: #dfe9f2; color: #8fa3c0; box-shadow: 0 5px 0 #c3d3e2; position: relative }
.no svg { width: 30px; height: 30px }
.no-feito { background: var(--destaque); color: var(--tinta); box-shadow: 0 5px 0 #d9a800 }
.no-hoje { width: 92px; height: 92px; background: var(--ceu); color: #fff; box-shadow: 0 6px 0 #0c8fd0, 0 0 0 8px rgba(37, 182, 253, .22); font-size: 30px }
.no-hoje::after { content: 'Hoje'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--tinta); color: #fff; font: 800 13px/1 var(--txt); padding: 5px 10px; border-radius: 999px }
.no-tipo { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 0 rgba(0, 0, 0, .1) }
.no-tipo svg { width: 18px; height: 18px; color: var(--tinta) }
.mes-prox { text-align: center; background: #fff; border-radius: 20px; padding: 18px; color: var(--suave); box-shadow: var(--sombra) }

/* barra de baixo */
.barra { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 2px solid var(--linha); padding: 8px max(16px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); z-index: 5 }
.barra nav { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px }
.barra button { border: 0; background: none; border-radius: 16px; min-height: 62px; display: grid; justify-items: center; align-content: center; gap: 2px; font: 800 13px/1 var(--txt); color: var(--suave) }
.barra button svg { width: 28px; height: 28px }
.barra button[aria-current="page"] { background: var(--ceu-fundo); color: var(--tinta) }

/* dia */
.dia-topo { display: flex; align-items: center; gap: 12px; padding-top: 14px }
.dia-topo small { font-size: 15px; color: var(--suave); display: block }
.dia-topo h2 { font-size: 28px }
.passos { display: flex; gap: 6px; margin-left: auto }
.passos i { width: 12px; height: 12px; border-radius: 50%; background: #c3d3e2 }
.passos i.on { background: var(--ceu) }
.quadro { background: #fff; border-radius: var(--raio); padding: 12px; box-shadow: var(--sombra) }
.quadro img { width: 100%; border-radius: 14px }
.falas { background: #fff; border-radius: var(--raio); padding: 18px 20px; display: grid; gap: 6px; box-shadow: var(--sombra); font-size: 20px; line-height: 1.35 }
.falas p { transition: color .2s ease, background-color .2s ease; border-radius: 8px; padding: 2px 6px; margin: 0 -6px }
.falas p.agora { background: var(--destaque-fundo) }
.falas p.lida { color: var(--suave) }
.acoes { display: grid; gap: 14px }
.btn-ouvir[aria-pressed="true"] { background: var(--tinta); color: #fff; box-shadow: 0 5px 0 #0b1c45 }

/* pintar */
.tela-pintar { gap: 14px }
.tela-pintar canvas { width: 100%; height: auto; aspect-ratio: 1; background: #fff; border-radius: var(--raio); box-shadow: var(--sombra); touch-action: manipulation; cursor: crosshair }
.giz { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px }
.giz button { aspect-ratio: 1; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 3px 0 rgba(22, 48, 107, .18); transition: transform .12s ease }
.giz button[aria-pressed="true"] { transform: scale(1.14); border-color: var(--tinta) }
.ferramentas { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px }

/* conversa (dia 5) */
.aprende { background: var(--destaque); border-radius: 28px; padding: 22px; text-align: center; display: grid; gap: 14px; box-shadow: 0 6px 0 #d9a800 }
.aprende small { font-size: 16px }
.aprende h2 { font-size: 34px }
.cartao { background: #fff; border-radius: var(--raio); padding: 20px; display: grid; gap: 12px; box-shadow: var(--sombra) }
.cartao h3 { font-size: 23px }
.cartao p { font-weight: 600 }
.cartao .rotulo { font: 800 14px/1 var(--txt); text-transform: uppercase; letter-spacing: .06em; color: var(--suave) }

/* labirinto */
.labirinto { background: #fff; border-radius: var(--raio); padding: 14px; box-shadow: var(--sombra) }
.labirinto svg { width: 100%; height: auto; display: block; touch-action: none; user-select: none }
.instr { font-size: 18px; text-align: center; font-weight: 700 }

/* caça-palavras */
.caca { display: grid; gap: 3px; background: #fff; border-radius: var(--raio); padding: 10px; box-shadow: var(--sombra); touch-action: none; user-select: none; -webkit-user-select: none }
.caca span { aspect-ratio: 1; display: grid; place-items: center; font: 800 clamp(15px, 4.6vw, 24px)/1 var(--tit); border-radius: 8px }
.caca span.sel { background: var(--ceu); color: #fff }
.caca span.achou { color: var(--tinta) }
.banco { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center }
.banco span { background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 16px; box-shadow: var(--sombra) }
.banco span.ok { background: var(--verde); color: #fff; text-decoration: line-through }

/* recompensa */
.premio { position: fixed; inset: 0; background: rgba(22, 48, 107, .55); display: grid; place-items: center; padding: 20px; z-index: 10 }
.premio-caixa { background: #fff; border-radius: 32px; padding: 28px 22px 22px; width: min(460px, 100%); max-height: 92vh; overflow: auto; text-align: center; display: grid; gap: 16px; animation: entra .35s ease both }
.premio-caixa h2 { font-size: 34px }
.estrelas { display: flex; justify-content: center; gap: 6px }
.estrelas svg { width: 68px; height: 68px; color: var(--destaque); animation: estrela .5s ease both }
.estrelas svg:nth-child(2) { width: 84px; height: 84px; animation-delay: .12s; margin-top: -12px }
.estrelas svg:nth-child(3) { animation-delay: .24s }
.figurinha { width: 170px; margin: 0 auto; background: #fff; padding: 8px; border-radius: 18px; box-shadow: 0 8px 20px rgba(22, 48, 107, .25); transform: rotate(-4deg); animation: cola .6s .3s ease both }
.figurinha img { border-radius: 12px }
.falta { background: var(--campo); border-radius: 16px; padding: 12px; font-size: 17px }
.junto { background: var(--destaque-fundo); border-radius: 16px; padding: 14px; text-align: left; font-weight: 600; font-size: 17px }
.junto b { display: block; font-weight: 800; margin-bottom: 4px }
@keyframes entra { from { opacity: 0; transform: translateY(24px) scale(.96) } to { opacity: 1; transform: none } }
@keyframes estrela { from { opacity: 0; transform: scale(.3) rotate(-30deg) } to { opacity: 1; transform: none } }
@keyframes cola { from { opacity: 0; transform: scale(1.4) rotate(8deg) } to { opacity: 1; transform: rotate(-4deg) } }

/* álbum */
.album { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.slot { aspect-ratio: 1; border-radius: 18px; background: #dfe9f2; border: 3px dashed #b9cbe0; display: grid; place-items: center; font: 800 26px/1 var(--tit); color: #9fb2cc; position: relative }
.slot-cheio { background: #fff; border: 0; padding: 6px; box-shadow: 0 6px 14px rgba(22, 48, 107, .18); transform: rotate(-2deg) }
.slot-cheio:nth-child(even) { transform: rotate(2deg) }
.slot-cheio img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px }
.slot small { position: absolute; bottom: 6px; left: 6px; right: 6px; background: rgba(255, 255, 255, .94); border-radius: 8px; font: 800 12px/1.1 var(--txt); color: var(--tinta); padding: 4px }
.desenhos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.desenhos figure { margin: 0; background: #fff; border-radius: 18px; padding: 8px; box-shadow: var(--sombra) }
.desenhos img { border-radius: 12px }
.desenhos figcaption { font-size: 14px; padding: 6px 4px 0 }
.vazio { background: #fff; border-radius: 18px; padding: 18px; text-align: center; color: var(--suave); font-weight: 600 }

/* área dos pais */
.pin { text-align: center; gap: 22px; justify-content: center }
.pin-bolas { display: flex; justify-content: center; gap: 16px }
.pin-bolas i { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--tinta) }
.pin-bolas i.on { background: var(--tinta) }
.teclado { display: grid; grid-template-columns: repeat(3, 84px); gap: 14px; justify-content: center }
.teclado button { height: 72px; border: 0; border-radius: 20px; background: #fff; box-shadow: var(--sombra); font: 800 30px/1 var(--tit) }
.pais { gap: 16px }
.pais .cartao { gap: 10px }
.barra-prog { height: 16px; border-radius: 999px; background: var(--campo); overflow: hidden }
.barra-prog i { display: block; height: 100%; background: var(--ceu); border-radius: 999px }
.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center }
.numeros b { display: block; font: 800 30px/1 var(--tit) }
.numeros span { font-size: 14px; color: var(--suave) }
.opcoes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px }
.opcoes button { min-height: 52px; border-radius: 14px; border: 3px solid var(--linha); background: #fff; font: 800 17px/1 var(--txt) }
.opcoes button[aria-pressed="true"] { border-color: var(--tinta); background: var(--destaque) }
.dicas { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-weight: 600 }

/* fim do tempo */
.chega { text-align: center; justify-content: center; gap: 20px }
.chega img { width: 180px; margin: 0 auto }
.chega h1 { font-size: 36px }

/* aviso */
.aviso { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(440px, calc(100% - 32px)); background: var(--tinta); color: #fff; border-radius: 18px; padding: 14px 18px; font-size: 17px; text-align: center; z-index: 20; box-shadow: 0 10px 30px rgba(0, 0, 0, .25) }
.aviso .link { color: #cfe6ff; display: block; margin: 6px auto 0 }

/* ===== versão 2: início, histórias, player, jogos, pintar ===== */
.cadeado-pais { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--sombra); display: grid; place-items: center; color: var(--suave) }
.cadeado-pais svg { width: 22px; height: 22px }
.tit-tela { font-size: 34px; margin-top: 4px }
.ouvir-de-novo { margin-left: auto; color: var(--ceu) }
.dia-topo h2 { font-size: 26px; min-width: 0 }

.destaque-hist { background: var(--tinta); color: #fff; border-radius: 30px; padding: 16px; display: grid; gap: 16px; box-shadow: 0 6px 0 #0b1c45 }
.dh-img { background: #fff; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10 }
.dh-img { aspect-ratio: 4 / 3 }
.dh-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px }
.dh-txt small { font-size: 15px; color: var(--destaque); display: block; margin-bottom: 4px }
.dh-txt h2 { font-size: 34px }
.dh-txt p { opacity: .85; font-size: 16px; margin-top: 2px }
.portas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
.porta { border: 0; border-radius: 26px; padding: 18px 14px; display: grid; justify-items: start; gap: 4px; text-align: left; color: var(--tinta); min-height: 150px }
.porta-jogos { background: var(--destaque); box-shadow: 0 6px 0 #d9a800 }
.porta-pintar { background: #ffc2d6; box-shadow: 0 6px 0 #e08aa8 }
.porta-ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.75); display: grid; place-items: center; margin-bottom: 6px }
.porta-ic svg { width: 30px; height: 30px }
.porta b { font: 800 26px/1 var(--tit) }
.porta small { font-size: 14px }

.hist-card { border: 0; background: #fff; border-radius: 26px; padding: 12px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; text-align: left; box-shadow: var(--sombra); color: var(--tinta) }
.hist-card img { border-radius: 18px; aspect-ratio: 1; object-fit: cover }
.hist-card small { font-size: 14px; color: var(--suave); display: block }
.hist-card b { font: 800 26px/1.05 var(--tit); display: block; margin: 4px 0 10px }
.btn-mini { min-height: 44px; font-size: 17px; padding: 0 18px }
.btn-mini svg { width: 20px; height: 20px }
.hist-grade { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px }
.hist-trancada { background: #fff; border-radius: 16px; padding: 6px 6px 8px; opacity: .55; font-size: 12px; line-height: 1.15; text-align: center }
.hist-trancada img { border-radius: 10px; margin-bottom: 6px; filter: grayscale(1) }

.player { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; gap: 16px; padding-block: 14px 28px }
body:has(.player) { background: #0f2350 }
.player-topo { display: flex; align-items: center; gap: 12px; color: #fff }
.player-topo .voltar { color: var(--tinta) }
.player-topo small { display: block; font-size: 14px; opacity: .75 }
.player-topo b { font: 800 22px/1.1 var(--tit) }
.player-quadro { background: #fff; border-radius: 26px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 18px 40px rgba(0,0,0,.35) }
.player-quadro img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40% }
.zoom { animation: zoom 32s linear both }
@keyframes zoom { from { transform: scale(1) } to { transform: scale(1.16) } }
.legenda { color: #fff; font: 800 clamp(22px, 6vw, 30px)/1.2 var(--tit); text-align: center; min-height: 3.6em; display: grid; place-items: center; text-wrap: balance }
.legenda.entra { animation: legenda .4s ease both }
@keyframes legenda { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.player-barra { height: 8px; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden }
.player-barra i { display: block; height: 100%; width: 0; background: var(--destaque); border-radius: 999px }
.player-ctrl { display: flex; justify-content: center; align-items: center; gap: 22px }
.ctrl { width: 60px; height: 60px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center }
.ctrl:disabled { opacity: .3 }
.ctrl svg { width: 28px; height: 28px }
.ctrl-grande { width: 84px; height: 84px; background: var(--destaque); color: var(--tinta); box-shadow: 0 5px 0 #d9a800 }
.ctrl-grande svg { width: 36px; height: 36px }
.pontinhos { display: flex; justify-content: center; gap: 8px }
.pontinhos i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.25) }
.pontinhos i.foi { background: rgba(255,255,255,.6) }
.pontinhos i.on { background: var(--destaque); width: 28px; border-radius: 999px }
.pontinhos-claro i { background: #c3d3e2 }
.pontinhos-claro i.foi { background: var(--ceu) }

.jogos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
.jogo-card { border: 0; border-radius: 26px; background: var(--c); padding: 14px; display: grid; gap: 6px; justify-items: center; text-align: center; color: var(--tinta); box-shadow: 0 6px 0 rgba(22, 48, 107, .18) }
.jogo-card img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 50%; padding: 8px }
.jogo-card b { font: 800 20px/1.1 var(--tit) }
.jogo-card small { font-size: 14px; display: inline-flex; align-items: center; gap: 4px }
.mini-estrela { width: 16px; height: 16px; color: #b88a00 }

.memoria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; perspective: 800px }
.carta { aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; position: relative; transform-style: preserve-3d; transition: transform .35s ease }
.carta > span { position: absolute; inset: 0; border-radius: 18px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--sombra) }
.verso { background: var(--ceu); color: #fff }
.verso svg { width: 40%; opacity: .9 }
.frente { background: #fff; transform: rotateY(180deg); padding: 10px }
.frente img { width: 100%; object-fit: contain }
.carta.virada { transform: rotateY(180deg) }
.carta.par .frente { background: #e3f8ec; outline: 4px solid var(--verde) }

.pergunta { font-size: 30px; text-align: center; margin-top: 6px }
.respostas { display: grid; gap: 12px }
.resposta { border: 4px solid transparent; background: #fff; border-radius: 24px; padding: 10px 18px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; text-align: left; font: 800 22px/1.1 var(--tit); color: var(--tinta); box-shadow: var(--sombra); min-height: 104px }
.resposta img, .resposta svg { width: 96px; height: 80px; object-fit: contain }
.resposta.certa { border-color: var(--verde); background: #e3f8ec; animation: pula .4s ease }
.resposta.errada { opacity: .45; animation: treme .35s ease }
@keyframes pula { 50% { transform: scale(1.04) } }
@keyframes treme { 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }

.pasto { position: relative; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; background: linear-gradient(#bfe8ff 0 28%, #9be07d 28% 100%); box-shadow: var(--sombra); touch-action: none }
.cercado { position: absolute; right: 6%; top: 8%; width: 62%; height: 34%; background: rgba(255, 255, 255, .35); border-radius: 18px }
.cercado svg { width: 100%; height: 100%; position: absolute; inset: 0 }
.cercado span { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); font: 800 15px/1 var(--txt); background: #fff; padding: 4px 10px; border-radius: 999px }
.ovelha { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #fff; padding: 6px; box-shadow: 0 4px 0 rgba(0, 0, 0, .12); touch-action: none; cursor: grab; user-select: none; -webkit-user-drag: none }
.ovelha.pega { transform: scale(1.12); z-index: 3; box-shadow: 0 12px 20px rgba(0, 0, 0, .2) }
.ovelha.salva { width: 18%; transition: left .3s ease, top .3s ease; cursor: default }

.ligar { width: 100%; height: auto; display: block; touch-action: manipulation }
.ligar image { transition: opacity .8s ease }
.pto { cursor: pointer }
.pto .bola { fill: #16306b }
.pto text { font: 800 22px var(--tit); fill: #16306b }
.pto.ok .bola { fill: var(--verde) }
.pto.ok text { fill: #9fb2cc }
.pto.treme { animation: treme .35s ease }

.galeria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
.desenho { border: 0; background: #fff; border-radius: 22px; padding: 8px 8px 12px; display: grid; gap: 8px; box-shadow: var(--sombra); position: relative; color: var(--tinta); font: 800 16px/1.1 var(--txt) }
.desenho img { border-radius: 14px; aspect-ratio: 1; object-fit: cover }
.pintado { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center }
.pintado svg { width: 20px; height: 20px }
.premio .acoes { gap: 10px }

/* ===== versão 3: fases e jogos novos ===== */
.mini-est { display: inline-flex; gap: 1px }
.mini-est i { width: 16px; height: 16px; color: #c3d3e2; display: block }
.mini-est i.on { color: #f2b400 }
.mini-est svg { width: 100%; height: 100% }
.estrelas .apagada { color: #dfe7f0 }
.estrelas span { display: inline-flex }

.hist-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.hist-item { width: 100%; border: 0; background: #fff; border-radius: 20px; padding: 8px 14px 8px 8px; display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 12px; align-items: center; text-align: left; color: var(--tinta); box-shadow: var(--sombra) }
.hist-item img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover }
.hist-item small { display: block; font-size: 13px; color: var(--suave) }
.hist-item b { font: 800 19px/1.1 var(--tit) }
.hist-item i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center }
.hist-item i svg { width: 22px; height: 22px }
.play-ic { background: var(--destaque) }
.ok-ic { background: var(--verde); color: #fff }
.lock-ic { color: #9fb2cc }
.hist-off { opacity: .5 }
.hist-off img { filter: grayscale(1) }

.mapa { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px }
.fase { width: 100%; border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 4px; color: var(--tinta); font: 700 12px/1.1 var(--txt); text-align: center }
.fase-img { position: relative; width: 100%; max-width: 78px; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 4px solid #fff; box-shadow: 0 4px 0 #c3d3e2; overflow: visible }
.fase-img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover }
.fase-img em { position: absolute; left: -4px; top: -6px; min-width: 26px; height: 26px; border-radius: 999px; background: var(--tinta); color: #fff; font: 800 13px/26px var(--tit); font-style: normal; padding: 0 6px }
.fase-img > i { position: absolute; inset: 0; border-radius: 50%; background: rgba(223, 233, 242, .82); display: grid; place-items: center; color: #8fa3c0 }
.fase-img > i svg { width: 26px; height: 26px }
.fase-aberta .fase-img { border-color: var(--ceu); box-shadow: 0 4px 0 #0c8fd0, 0 0 0 6px rgba(37, 182, 253, .2) }
.fase-ok .fase-img { border-color: var(--destaque); box-shadow: 0 4px 0 #d9a800 }
.fase-fechada img { filter: grayscale(1) }
.fase small { font-size: 11px; color: var(--suave); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }

.fase-tit { min-width: 0 }
.fase-tit small { display: block; font-size: 14px; color: var(--suave) }
.fase-tit h2 { font-size: 24px }
.chip-hist { display: flex; align-items: center; gap: 10px; border: 0; background: #fff; border-radius: 999px; padding: 6px 16px 6px 6px; box-shadow: var(--sombra); color: var(--tinta); font: 800 15px/1.1 var(--txt); text-align: left }
.chip-hist img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover }
.chip-hist span { flex: 1 }
.chip-hist svg { width: 22px; height: 22px; color: var(--ceu) }

.cenas-ops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px }
.ordene { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.cena-op { position: relative; border: 4px solid #fff; background: #fff; border-radius: 18px; padding: 0; overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 1 }
.cena-op img { width: 100%; height: 100%; object-fit: cover }
.cena-op em { position: absolute; top: 8px; left: 8px; min-width: 36px; height: 36px; border-radius: 50%; background: var(--verde); color: #fff; font: 800 20px/36px var(--tit); font-style: normal; display: none }
.cena-op.certa { border-color: var(--verde) }
.cena-op.certa em { display: block }
.cena-op.errada { opacity: .4 }
.treme { animation: treme .35s ease }

.quebra { display: grid; gap: 3px; background: #fff; padding: 6px; border-radius: 18px; box-shadow: var(--sombra); aspect-ratio: 1 }
.peca { border: 0; border-radius: 6px; background-color: #fff; background-repeat: no-repeat; aspect-ratio: 1; outline: 2px solid #e3ecf5 }
.peca.sel { outline: 4px solid var(--ceu); z-index: 1 }
.peca.no-lugar { outline-color: transparent }
.modelo { background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--sombra) }
.modelo summary { font-weight: 800; cursor: pointer }
.modelo img { margin-top: 10px; border-radius: 12px; max-width: 220px }

.sombra-fig, .sombra-alvo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px }
.sf, .ss { border: 4px solid transparent; background: #fff; border-radius: 18px; padding: 8px; aspect-ratio: 1; box-shadow: var(--sombra) }
.sf img, .ss img { width: 100%; height: 100%; object-fit: contain }
.ss { background: #eef4fa }
.sf.sel { border-color: var(--ceu); transform: scale(1.05) }
.sf.feito { opacity: .25 }
.ss.feito { border-color: var(--verde); background: #e3f8ec }

.ic-inline { display: inline-block; width: 44px; height: 44px; vertical-align: middle; border-radius: 50%; background: #fff }
.conte { background: #fff; border-radius: 22px; padding: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; box-shadow: var(--sombra) }
.conte img { width: 64px; height: 64px }
.numeros-op { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.num-op { border: 4px solid transparent; background: #fff; border-radius: 22px; min-height: 84px; font: 800 40px/1 var(--tit); color: var(--tinta); box-shadow: var(--sombra) }
.num-op.certa { border-color: var(--verde); background: #e3f8ec }
.num-op.errada { opacity: .4 }

.rede-conta { display: inline-block; background: var(--destaque); border-radius: 999px; padding: 4px 12px; margin-left: 6px }
.lago { position: relative; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; background: linear-gradient(#bfe8ff, #4fb8f0); box-shadow: var(--sombra); touch-action: manipulation }
.peixe { position: absolute; width: 22%; aspect-ratio: 1; border: 0; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 4px 10px rgba(0, 0, 0, .12) }
.peixe img { width: 100%; height: 100% }
.peixe.pego { transform: scale(.2); opacity: 0; transition: .3s ease }
@keyframes nada-d { from { left: -25% } to { left: 105% } }
@keyframes nada-e { from { left: 105% } to { left: -25% } }

.lacuna { display: inline-block; min-width: 3.2em; border-bottom: 4px dashed var(--tinta); color: transparent }
.lacuna.cheia { color: var(--tinta); border-bottom-color: var(--verde) }
.palavras-op { display: grid; gap: 10px }
.palavra.errada { opacity: .4 }

.vf-frase { margin: 0; background: #fff; border-radius: 22px; padding: 22px; font: 800 24px/1.25 var(--tit); text-align: center; box-shadow: var(--sombra) }
.vf-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.vf-ops .certa { background: var(--verde); color: #fff }
.vf-ops .errada { opacity: .5 }

.slot-prog { position: absolute; top: 6px; right: 6px; font: 800 11px/1 var(--txt); background: #fff; color: var(--suave); border-radius: 999px; padding: 3px 6px }

/* ===== computador: tela inteira, menu na lateral ===== */
@media (min-width: 900px) {
  body { font-size: 19px }
  #app { max-width: none; padding-left: 48px; padding-right: 48px }
  body:has(.barra) #app { padding-left: 288px }
  .tela { padding-block: 32px 56px; gap: 24px }
  .tela-estreita { max-width: 520px; margin: 0 auto; width: 100% }
  .tela-media { max-width: 820px; margin: 0 auto; width: 100% }

  .barra { top: 0; bottom: 0; right: auto; width: 248px; border-top: 0; border-right: 2px solid var(--linha); padding: 32px 20px }
  .barra nav { grid-template-columns: 1fr; max-width: none; gap: 10px }
  .barra nav::before { content: 'Meu Devocional Kids'; font: 800 26px/1.05 var(--tit); color: var(--tinta); padding: 0 12px 24px }
  .barra button { grid-auto-flow: column; justify-content: start; align-items: center; gap: 14px; padding: 0 18px; min-height: 60px; font-size: 19px }

  .topo { padding-top: 0 }
  .tit-tela { font-size: 48px }
  .destaque-hist { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 40px; row-gap: 24px; padding: 28px; align-items: end }
  .dh-img { grid-row: 1 / 3; aspect-ratio: 1; width: min(100%, calc(100vh - 300px)); justify-self: center }
  .dh-txt { align-self: end }
  .dh-txt small { font-size: 18px }
  .dh-txt h2 { font-size: clamp(44px, 4vw, 64px) }
  .dh-txt p { font-size: 20px }
  .destaque-hist .btn { min-height: 72px; font-size: 26px }
  .portas { gap: 24px }
  .porta { min-height: 200px; padding: 28px; border-radius: 32px }
  .porta-ic { width: 68px; height: 68px }
  .porta-ic svg { width: 38px; height: 38px }
  .porta b { font-size: 40px }
  .porta small { font-size: 18px }

  .jogos { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px }
  .jogo-card { padding: 22px }
  .jogo-card img { width: 120px; height: 120px }
  .jogo-card b { font-size: 24px }
  .hist-lista { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px }
  .album { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px }
  .mapa { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 26px 16px }
  .fase-img { max-width: 112px }
  .fase small { font-size: 14px }

  /* fases dos jogos: coluna central larga, tabuleiro do tamanho da altura da tela */
  .tela-jogo { max-width: 1180px; margin: 0 auto; width: 100% }
  .tela-fases { max-width: 1400px; margin: 0 auto; width: 100% }
  .tela-jogo .dia-topo h2 { font-size: 34px }
  .tela-jogo .chip-hist { align-self: flex-start; padding-right: 22px }
  .tela-jogo .quebra, .tela-jogo .labirinto, .tela-jogo .caca, .tela-jogo .quadro, .tela-jogo .tela-pintar canvas { width: min(100%, calc(100vh - 260px)); margin-inline: auto }
  .tela-jogo .lago, .tela-jogo .pasto { width: min(100%, calc((100vh - 260px) * 1.3)); aspect-ratio: 4 / 3; margin-inline: auto }
  .tela-jogo .tela-pintar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start }
  .tela-jogo .tela-pintar canvas { grid-row: 1 / 3 }
  .tela-jogo .giz { grid-template-columns: repeat(4, minmax(0, 1fr)) }
  .tela-jogo .ferramentas { grid-template-columns: 1fr; align-self: start }
  .cenas-ops { gap: 24px; width: min(100%, calc((100vh - 300px) * 3)); margin-inline: auto }
  .ordene { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px }
  .pergunta { font-size: 40px }
  .sombra-fig, .sombra-alvo { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px }
  .numeros-op { width: min(100%, 640px); margin-inline: auto }
  .conte img { width: 96px; height: 96px }
  .palavras-op { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .aprende h2 { font-size: 48px }
  .vf-frase { font-size: 34px; padding: 36px }
  .vf-ops { width: min(100%, 640px); margin-inline: auto }
  .caca span { font-size: clamp(16px, 2.2vh, 26px) }
  .memoria { width: min(100%, calc((100vh - 280px) * 1.1)); margin-inline: auto }
  .player-topo small { font-size: 16px }
  .player-topo b { font-size: 28px }

  /* história: desenho grande à esquerda, frase e controles à direita */
  .player { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); grid-template-areas: 'topo topo' 'quadro legenda' 'quadro barra' 'quadro ctrl' 'quadro pontos'; grid-template-rows: auto 1fr auto auto auto; column-gap: 48px; row-gap: 20px; padding-block: 28px }
  .player-topo { grid-area: topo }
  .player-quadro { grid-area: quadro; width: min(100%, calc(100vh - 140px)); justify-self: center; align-self: center }
  .legenda { grid-area: legenda; font-size: clamp(30px, 2.6vw, 42px); align-self: end }
  .player-barra { grid-area: barra }
  .player-ctrl { grid-area: ctrl }
  .player .pontinhos { grid-area: pontos }

  .premio-caixa { width: min(520px, 100%) }
  .aviso { bottom: 32px }
}


/* início sem rolagem: tudo cabe na altura da tela */
.tela-inicio { flex: none; min-height: 0; height: 100vh; height: 100dvh; overflow: hidden; padding-block: 12px calc(92px + env(safe-area-inset-bottom, 0px)); gap: 12px }
.tela-inicio .topo { padding-top: 4px }
.tela-inicio .destaque-hist { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px }
.tela-inicio .dh-img { flex: 1; min-height: 0; aspect-ratio: auto }
.tela-inicio .dh-txt h2 { font-size: 30px }
.tela-inicio .destaque-hist .btn { min-height: 56px }
.tela-inicio .portas { gap: 12px }
.tela-inicio .porta { min-height: 0; padding: 12px 14px; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 0 }
.tela-inicio .porta-ic { grid-row: 1 / 3; margin: 0; width: 48px; height: 48px }
.tela-inicio .porta b { font-size: 22px }
.tela-inicio .porta small { font-size: 13px }
@media (min-width: 900px) {
  .tela-inicio { padding-block: 28px; gap: 22px }
  .tela-inicio .destaque-hist { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: 40px; row-gap: 22px; padding: 24px; align-items: end }
  .tela-inicio .dh-img { grid-row: 1 / 3; height: calc(100vh - 56px - 56px - 44px - 104px - 48px); width: auto; aspect-ratio: 1; max-width: 62vw }
  .tela-inicio .dh-txt h2 { font-size: clamp(40px, 4vw, 64px) }
  .tela-inicio .destaque-hist .btn { min-height: 72px }
  .tela-inicio .porta { padding: 20px 26px; border-radius: 28px }
  .tela-inicio .porta-ic { width: 64px; height: 64px }
  .tela-inicio .porta b { font-size: 32px }
  .tela-inicio .porta small { font-size: 17px }
}
.porta-album { background: #c9ecff; box-shadow: 0 6px 0 #8fcdf0 }
.pint-grupo { display: grid; gap: 12px }
.pint-grupo h2 { font-size: 24px }
.tela-inicio .portas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.tela-inicio .porta { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 10px 6px; row-gap: 4px }
.tela-inicio .porta-ic { grid-row: auto; width: 42px; height: 42px }
.tela-inicio .porta-ic svg { width: 24px; height: 24px }
.tela-inicio .porta b { font-size: 18px }
.tela-inicio .porta small { display: none }
@media (min-width: 900px) {
  .galeria { grid-template-columns: repeat(5, minmax(0, 1fr)) }
  .tela-inicio .portas { gap: 20px }
  .tela-inicio .porta { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: 18px 24px; column-gap: 16px }
  .tela-inicio .porta-ic { grid-row: 1 / 3; width: 60px; height: 60px }
  .tela-inicio .porta-ic svg { width: 32px; height: 32px }
  .tela-inicio .porta b { font-size: 30px }
  .tela-inicio .porta small { display: block; font-size: 16px }
}
.ola { font: 800 22px/1.15 var(--tit); margin: 0 }
.inicio-grade { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px }
.ini-card { min-height: 0; border: 0; border-radius: 26px; padding: 10px; display: flex; flex-direction: column; gap: 8px; text-align: left; color: var(--tinta); transition: transform .15s ease }
.ini-card:active { transform: translateY(3px) }
.ini-hist { background: var(--tinta); color: #fff; box-shadow: 0 6px 0 #0b1c45 }
.ini-jogos { background: var(--destaque); box-shadow: 0 6px 0 #d9a800 }
.ini-pintar { background: #ffc2d6; box-shadow: 0 6px 0 #e08aa8 }
.ini-album { background: #c9ecff; box-shadow: 0 6px 0 #8fcdf0 }
.ini-arte { position: relative; flex: 1; min-height: 0; border-radius: 18px; background: #fff; overflow: hidden }
.ini-arte > img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain }
.ini-mosaico > img, .ini-figs > img { position: static; inset: auto; width: 100%; height: 100% }
.ini-mosaico, .ini-figs { display: grid; gap: 6px; padding: 8px; background: rgba(255, 255, 255, .55) }
.ini-mosaico { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)) }
.ini-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)) }
.ini-mosaico img, .ini-figs img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #fff; border-radius: 14px; padding: 4px }
.ini-figs img { object-fit: cover; padding: 0 }
.ini-figs img.apagada { filter: grayscale(1); opacity: .35 }
.ini-rod { display: flex; align-items: center; gap: 8px; padding: 0 4px 2px }
.ini-rod > span { flex: 1; min-width: 0 }
.ini-rod b { display: block; font: 800 22px/1 var(--tit) }
.ini-rod small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.2; opacity: .85; margin-top: 3px }
.ini-play { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--tinta); display: grid; place-items: center }
.ini-hist .ini-play { background: var(--destaque) }
.ini-play svg { width: 22px; height: 22px }
@media (min-width: 900px) {
  .ola { font-size: 34px }
  .inicio-grade { gap: 24px }
  .ini-card { padding: 16px; border-radius: 32px; gap: 14px }
  .ini-arte { border-radius: 22px }
  .ini-mosaico, .ini-figs { gap: 12px; padding: 14px }
  .ini-rod b { font-size: 32px }
  .ini-rod small { font-size: 17px }
  .ini-play { width: 56px; height: 56px }
  .ini-play svg { width: 28px; height: 28px }
}
/* ===== início v3: história em destaque + trilhos ===== */
.tela-inicio { gap: 14px }
.hero { flex: 1 1 auto; min-height: 0; position: relative; overflow: hidden; border-radius: 30px; padding: 18px; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) 38%; gap: 14px; align-items: center;
  background: radial-gradient(120% 90% at 85% 20%, #2c5bb8 0%, #1b3c86 45%, #16306b 100%); box-shadow: 0 6px 0 #0b1c45 }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#ffffff26 1.5px, transparent 1.6px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none }
.hero-txt { position: relative; display: grid; gap: 6px; align-content: center; min-width: 0 }
.hero-ola { font-size: 14px; color: #bfe3ff; margin: 0 }
.hero-tag { display: inline-block; justify-self: start; font: 800 12px/1 var(--txt); letter-spacing: .04em; text-transform: uppercase; background: var(--destaque); color: var(--tinta); padding: 6px 10px; border-radius: 999px; margin: 2px 0 }
.hero h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1 }
.hero-ref { font-size: 13px; color: #d6e8ff; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px }
.hero-acoes .btn { min-height: 46px; font-size: 16px; padding: 0 16px }
.hero-acoes .btn svg { width: 20px; height: 20px }
.btn-vidro { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35) }
.btn-vidro:active { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5) }
.jornada { display: grid; gap: 4px; margin-top: 8px; font-size: 12px; color: #bfe3ff }
.jornada-barra { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); overflow: hidden }
.jornada-barra i { display: block; height: 100%; background: var(--destaque); border-radius: 999px }
.jornada small { font-size: 12px }
.hero-arte { position: relative; align-self: center; justify-self: center; width: 100%; aspect-ratio: 1; max-height: 100%; background: #fff; border-radius: 22px; padding: 6px; transform: rotate(3deg); box-shadow: 0 18px 30px rgba(0, 0, 0, .3) }
.hero-arte img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px }
.trilho { display: grid; gap: 8px; min-width: 0 }
.trilho header { display: flex; align-items: baseline; justify-content: space-between }
.trilho h2 { font-size: 22px }
.link-ver { border: 0; background: none; color: #0c8fd0; font: 800 14px/1 var(--txt); padding: 6px 0 }
.trilho-lista { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: thin }
.capa-card { flex: none; width: 112px; border: 0; background: none; padding: 0; display: grid; gap: 6px; text-align: left; color: var(--tinta); scroll-snap-align: start }
.capa-img { position: relative; display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--sombra) }
.capa-img img { width: 100%; height: 100%; object-fit: cover }
.capa-img em { position: absolute; left: 6px; top: 6px; background: var(--tinta); color: #fff; font: 800 12px/22px var(--tit); font-style: normal; min-width: 22px; padding: 0 6px; border-radius: 999px; text-align: center }
.capa-ok, .capa-lock { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center }
.capa-ok { background: var(--verde); color: #fff }
.capa-lock { background: rgba(255, 255, 255, .92); color: #8fa3c0 }
.capa-ok svg, .capa-lock svg { width: 16px; height: 16px }
.capa-off .capa-img img { filter: saturate(.25); opacity: .7 }
.capa-card b { font: 800 13px/1.15 var(--txt); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.jogo-mini { flex: none; width: 104px; border: 0; border-radius: 20px; background: var(--c); padding: 10px 8px; display: grid; justify-items: center; gap: 6px; color: var(--tinta); box-shadow: 0 4px 0 rgba(22, 48, 107, .16); scroll-snap-align: start }
.jogo-mini img { width: 58px; height: 58px; border-radius: 50%; background: #fff; padding: 4px; object-fit: contain }
.jogo-mini b { font: 800 12.5px/1.1 var(--txt); text-align: center }
@media (max-height: 760px) and (max-width: 899px) { .tela-inicio { height: auto; overflow: visible } .hero { flex: none } }
@media (min-width: 900px) {
  .tela-inicio { gap: 22px }
  .hero { padding: 36px 44px; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; border-radius: 36px }
  .hero-arte { height: min(100%, 420px); width: auto; padding: 10px; border-radius: 28px }
  .hero-ola { font-size: 18px }
  .hero-tag { font-size: 13px; padding: 7px 12px }
  .hero h1 { font-size: clamp(44px, 4.4vw, 72px) }
  .hero-ref { font-size: 18px; max-width: 46ch }
  .hero-acoes { gap: 14px; margin-top: 14px }
  .hero-acoes .btn { min-height: 60px; font-size: 20px; padding: 0 26px }
  .jornada { max-width: 420px; font-size: 14px; margin-top: 16px }
  .trilho h2 { font-size: 26px }
  .capa-card { width: 150px }
  .capa-card b { font-size: 14px }
  .jogo-mini { width: 170px; grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; padding: 10px 12px }
  .jogo-mini img { width: 48px; height: 48px }
  .jogo-mini b { text-align: left; font-size: 14px }
}

/* ajustes do início v3: tudo visível sem rolagem */
.hero { flex: none; align-items: center }
.hero-ref { -webkit-line-clamp: 1 }
.hero-acoes .btn { flex: 1 1 auto }
.capa-card { width: 96px }
.capa-card b { font-size: 12px }
.jogo-mini { width: 92px; padding: 8px 6px }
.jogo-mini img { width: 48px; height: 48px }
.trilho-lista { padding-bottom: 6px }
@media (max-width: 899px) { .hero-ola { display: none } .hero h1 { font-size: 30px } .hero-arte { width: 100%; } .hero { grid-template-columns: minmax(0, 1fr) 34% } }
@media (min-width: 900px) {
  .hero { padding: 28px 40px }
  .hero-arte { width: clamp(240px, 24vw, 360px); height: auto }
  .hero-ref { -webkit-line-clamp: 2 }
  .hero-acoes .btn { flex: none }
  .capa-card { width: 132px }
  .capa-card b { font-size: 14px }
  .jogo-mini { width: 170px; padding: 10px 12px }
}
@media (min-width: 900px) and (min-height: 1000px) { .capa-card { width: 160px } .hero-arte { width: clamp(260px, 24vw, 420px) } }
@media (min-width: 900px) { .tela-inicio { gap: 16px; padding-block: 22px } }
/* ===== entrada (login) ===== */
.entrada { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; gap: 0; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) }
.entrada-arte { position: relative; overflow: hidden; color: #fff; padding: 28px 24px 34px; display: grid; justify-items: center; gap: 18px; text-align: center;
  background: radial-gradient(120% 90% at 80% 10%, #2c5bb8 0%, #1b3c86 50%, #16306b 100%) }
.entrada-arte::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#ffffff2e 1.5px, transparent 1.6px); background-size: 22px 22px; pointer-events: none }
.entrada-marca { position: relative; display: grid; gap: 2px }
.entrada-marca b { font: 800 26px/1 var(--tit) }
.entrada-marca span { font-size: 14px; color: #bfe3ff }
.entrada-livro { position: relative; width: 150px; aspect-ratio: 1000 / 1414; transform: rotate(-4deg); border-radius: 6px 12px 12px 6px; overflow: hidden; box-shadow: 0 22px 40px rgba(0, 0, 0, .35), inset 6px 0 0 rgba(0, 0, 0, .12) }
.entrada-livro img { width: 100%; height: 100%; object-fit: cover; display: block }
.entrada-itens { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px }
.entrada-itens li { background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 7px 12px; font-size: 13px }
.entrada-itens b { color: var(--destaque); font-family: var(--tit) }
.entrada-form { padding: 26px 24px 32px; display: grid; gap: 14px; align-content: start; width: 100%; max-width: 460px; justify-self: center }
.entrada-form h1 { font-size: 30px }
.entrada-form form { display: grid; gap: 14px }
@media (min-width: 900px) {
  .entrada { grid-template-rows: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-inline: -48px }
  .entrada-arte { align-content: center; padding: 48px }
  .entrada-marca b { font-size: 40px }
  .entrada-marca span { font-size: 18px }
  .entrada-livro { width: min(300px, 26vw) }
  .entrada-itens li { font-size: 16px; padding: 9px 16px }
  .entrada-form { align-content: center; padding: 48px }
  .entrada-form h1 { font-size: 44px }
}

/* ===== avatar ===== */
.eu { border: 0; background: none; padding: 0; color: var(--tinta); cursor: pointer; text-align: left }
.eu .avatar-svg { width: 52px; height: 52px; border-radius: 50%; box-shadow: var(--sombra); flex: none }
.av-tela { gap: 16px }
.av-cab { display: flex; align-items: center; gap: 12px; padding-top: 8px }
.av-cab h1 { font-size: 30px }
.av-grade { display: grid; gap: 16px }
.av-esq { display: grid; gap: 12px; justify-items: center }
.av-prev { width: 190px; height: 190px; border-radius: 50%; box-shadow: 0 10px 0 rgba(22, 48, 107, .12) }
.av-prev svg { width: 100%; height: 100% }
.av-esq .campo { width: 100% }
.av-dir { display: grid; gap: 12px; align-content: start }
.av-abas { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px }
.av-aba { flex: none; border: 3px solid var(--linha); background: #fff; border-radius: 999px; min-height: 44px; padding: 0 14px; font: 800 15px/1 var(--txt); color: var(--tinta) }
.av-aba[aria-selected="true"] { background: var(--destaque); border-color: var(--tinta) }
.av-ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; background: #fff; border-radius: 22px; padding: 14px; box-shadow: var(--sombra) }
.av-op { border: 4px solid transparent; background: none; border-radius: 50%; padding: 3px; aspect-ratio: 1; display: grid; place-items: center }
.av-op i { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08) }
.av-op[aria-pressed="true"] { border-color: var(--tinta) }
.av-op-img { border-radius: 18px; aspect-ratio: auto; gap: 4px; padding: 6px 2px }
.av-op-img svg { width: 60px; height: 60px }
.av-op-img small { font: 800 11px/1.1 var(--txt); color: var(--tinta); text-align: center }
.chega-av svg { width: 180px; height: 180px; margin: 0 auto }
@media (min-width: 900px) {
  .av-tela { max-width: 1100px; margin: 0 auto; width: 100% }
  .av-cab h1 { font-size: 44px }
  .av-grade { grid-template-columns: 360px minmax(0, 1fr); gap: 40px; align-items: start }
  .av-prev { width: 300px; height: 300px }
  .av-ops { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 14px; padding: 20px }
  .av-op-img svg { width: 76px; height: 76px }
}

/* ===== materiais ===== */
.mat-link { display: flex; align-items: center; justify-content: space-between; text-align: left; border: 0; color: var(--tinta); cursor: pointer }
.mat-link svg { width: 26px; height: 26px; color: var(--ceu) }
.mat-meses { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px }
.mat-pdf { display: block; text-align: center; background: var(--campo); border-radius: 14px; padding: 12px 8px; font-weight: 800; color: var(--tinta); text-decoration: none }
.mat-extras { display: grid; gap: 12px }
.mat-extra { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; background: #fff; border-radius: 22px; padding: 14px; box-shadow: var(--sombra) }
.mat-extra img { border-radius: 10px; box-shadow: 0 8px 16px rgba(22, 48, 107, .18) }
.mat-extra h3 { font-size: 20px; margin-bottom: 4px }
.mat-extra p { font-size: 15px; font-weight: 600; margin-bottom: 10px }
.mat-extra .btn { min-height: 46px; font-size: 16px; text-decoration: none }
.proto { border: 3px dashed var(--linha); box-shadow: none }
.mat-sim { display: grid; gap: 8px }
.mat-sim label { display: flex; gap: 10px; align-items: center; font-weight: 700 }
.mat-sim input { width: 22px; height: 22px }
.mat-oferta { border: 3px solid #c9ecff; box-shadow: none }
.mat-oferta .btn { text-decoration: none }
.mat-oferta small { display: block; margin-top: 8px; font-size: 13px; color: var(--suave); font-weight: 600 }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } }
