/* Rainbow Kids Play World — estilos
   Infantil: Baloo 2, botões "de brinquedo" com volume, alvos de toque grandes.
   Adulto (Family Space): Lexend, calmo e legível. */

/* Emojis iguais em todos os aparelhos (Mac, Windows, Android, iPad): o app usa a sua própria fonte de emojis
   (Twemoji, licença CC-BY 4.0 / OFL). O unicode-range faz ela valer só para os emojis; letras e números continuam na fonte normal. */
@font-face {
  font-family: "RKEmoji";
  src: url("/static/fonts/twemoji.woff2") format("woff2");
  font-display: block;
  unicode-range: U+00A9, U+00AE, U+200D, U+203C, U+2049, U+20E3, U+2122, U+2139, U+2194-2199, U+21A9-21AA, U+231A-231B, U+2328, U+23CF,
    U+23E9-23F3, U+23F8-23FA, U+24C2, U+2600-2604, U+260E, U+2611, U+2614-2615, U+2618, U+261D,
    U+2620, U+2622-2623, U+2626, U+262A, U+262E-262F, U+2638-263A, U+2640, U+2642, U+2648-2653, U+265F-2660, U+2663, U+2665-2666, U+2668,
    U+267B, U+267E-267F, U+2692-2697, U+2699, U+269B-269C, U+26A0-26A1, U+26A7, U+26AA-26AB, U+26B0-26B1, U+26BD-26BE, U+26C4-26C5,
    U+26C8, U+26CE-26CF, U+26D1, U+26D3-26D4, U+26E9-26EA, U+26F0-26F5, U+26F7-26FA, U+26FD, U+2702, U+2705, U+2708-270D, U+270F, U+2712,
    U+2714, U+2716, U+271D, U+2721, U+2728, U+2733-2734, U+2744, U+2747, U+274C, U+274E, U+2753-2755, U+2757, U+2763-2764, U+2795-2797,
    U+27A1, U+27B0, U+27BF, U+2934-2935, U+2B05-2B07, U+2B1B-2B1C, U+2B50, U+2B55, U+3030, U+303D, U+3297, U+3299, U+FE0F,
    U+1F000-1FAFF, U+E0020-E007F;
}

:root {
  --ink: #2b2560;
  --ink-soft: #5d578f;
  --paper: #fbfaff;
  --line: #e6e1f7;
  --accent: #7c5cff;
  --accent-deep: #5b3fd6;
  --sun: #ffc93c;
  --grass: #4fae3c;
  --red: #ff5a5f;
  --ok: #1f8a3b;
  --warn: #b25b00;
  --kid: "RKEmoji", "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --adult: "RKEmoji", "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
  --tap: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--kid);
  color: var(--ink);
  background: #d7f0ff;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
#app { min-height: 100dvh; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.hidden { display: none !important; }
[lang="en"] { font-feature-settings: "kern"; }

/* ------------------------------------------------------------------ modo infantil */
.screen-kid { user-select: none; -webkit-user-select: none; touch-action: manipulation; }

.big-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 10px 34px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-family: var(--kid); font-weight: 800; font-size: 1.45rem; line-height: 1.05;
  box-shadow: 0 7px 0 var(--accent-deep), 0 12px 24px rgba(60, 40, 140, .25);
  transition: transform .08s, box-shadow .08s;
}
.big-btn span { font-size: .78rem; font-weight: 600; opacity: .85; }
.big-btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--accent-deep), 0 4px 10px rgba(60, 40, 140, .2); }
.big-btn.alt { background: #fff; color: var(--ink); box-shadow: 0 7px 0 #d6cff3, 0 12px 24px rgba(60, 40, 140, .15); }
.big-btn:disabled { opacity: .6; }

.round-btn {
  width: 60px; height: 60px; flex: none; border-radius: 50%; border: 0;
  display: grid; place-items: center; font-size: 1.4rem; text-decoration: none;
  background: #fff; color: var(--ink); box-shadow: 0 5px 0 #d6cff3;
}
.round-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #d6cff3; }
.round-btn:disabled { opacity: .35; }
.round-btn.corner { position: absolute; top: 18px; left: 18px; z-index: 3; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(124, 92, 255, .12);
  font-size: 1.3rem; display: inline-grid; place-items: center;
}
.icon-btn.sm { width: 38px; height: 38px; font-size: 1rem; flex: none; }

.kidbar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 12px max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px);
  border-bottom: 3px solid rgba(255, 255, 255, .9);
}
.kid-name { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; }
.kid-title { margin: 0; text-align: center; font-size: clamp(1.2rem, 2.6vw, 1.8rem); line-height: 1; font-weight: 800; }
.kid-title small { display: block; font-size: .55em; font-weight: 600; color: var(--ink-soft); margin-top: 4px; }
.kidbar-right { display: flex; align-items: center; gap: 10px; }
.companion-chip { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 3px #eee8ff; }

.lock { font-size: 1.1rem; }

.kid-h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; text-align: center; font-weight: 800; line-height: 1; }
.kid-sub { text-align: center; font-size: 1.25rem; margin: 6px 0 0; color: var(--ink-soft); font-weight: 600; }
.empty { font-size: 1.2rem; text-align: center; background: rgba(255, 255, 255, .8); padding: 18px 26px; border-radius: var(--r-md); }
.empty.sm { font-size: .95rem; padding: 8px 12px; margin: 0; }
.adult-link {
  border: 0; background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 10px 20px;
  font-family: var(--adult); font-size: .9rem; color: var(--ink-soft);
}

/* balão de fala — compacto e interativo (toque = ouvir de novo; palavra = ouvir a palavra; – = encolher) */
.bubble {
  position: relative; background: #fff; border-radius: 16px; padding: 6px 8px 6px 11px; cursor: pointer;
  box-shadow: 0 5px 0 rgba(43, 37, 96, .08), 0 6px 18px rgba(43, 37, 96, .08); max-width: 320px;
  display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; align-items: center;
  animation: bubbleIn .35s cubic-bezier(.3, 1.6, .5, 1) both; transform-origin: 0 50%; transition: box-shadow .2s, transform .15s;
}
.bubble::before { content: ""; position: absolute; left: -8px; top: 14px; border: 8px solid transparent; border-right-color: #fff; border-left: 0; }
.bubble:active { transform: scale(.98); }
.bubble .en { margin: 0; font-size: clamp(.86rem, 1.35vw, 1.02rem); font-weight: 800; line-height: 1.2; grid-column: 1; }
.bubble .pt { margin: 0; font-family: var(--adult); font-size: .7rem; line-height: 1.25; color: var(--ink-soft); grid-column: 1; }
.bubble.big .en { font-size: clamp(.95rem, 1.7vw, 1.15rem); }
.bubble-tools { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 3px; align-items: center; }
.bubble-tools .icon-btn { width: 26px; height: 26px; font-size: .72rem; box-shadow: none; background: #f4f1ff; }
.bubble-tools .bubble-min { width: 20px; height: 20px; font: 800 .85rem var(--kid); background: transparent; color: var(--ink-soft); align-self: flex-start; }
.bubble-tools .pt-toggle.on { background: #ffe066; }
.bubble .bw { display: inline-block; border-radius: 6px; padding: 0 1px; transition: background .15s, color .15s, transform .15s; }
.bubble .bw:hover { background: #f1ecff; }
.bubble .bw.lit { background: #ffe066; transform: translateY(-2px); }
.bubble .bw.pop { animation: wordPop .4s ease-out; }
@keyframes wordPop { 40% { transform: scale(1.3); color: var(--accent); } }
.bubble.talking { box-shadow: 0 5px 0 rgba(43, 37, 96, .08), 0 0 0 3px #ffe066, 0 6px 18px rgba(43, 37, 96, .1); }
.bubble.talking .hear { animation: hearPulse .8s ease-in-out infinite; background: #ffe066; }
@keyframes hearPulse { 50% { transform: scale(1.15); } }
@keyframes bubbleIn { from { opacity: 0; transform: scale(.6) translateX(-12px); } }
.bubble-open { display: none; }
.bubble.mini { padding: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; animation: none; }
.bubble.mini > :not(.bubble-open) { display: none; }
.bubble.mini::before { top: 14px; }
.bubble.mini .bubble-open { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; font-size: 1.4rem; cursor: pointer; animation: hearPulse 2.4s ease-in-out infinite; }
.reduce-motion .bubble, .reduce-motion .bubble .bw.pop, .reduce-motion .bubble.mini .bubble-open { animation: none; }

/* boas-vindas */
.screen-welcome { position: relative; overflow: hidden; }
.welcome { position: relative; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.welcome-world { position: absolute; inset: 0; filter: saturate(1.05); }
.welcome-world .world-svg { width: 100%; height: 100%; }
.welcome-world .spot { pointer-events: none; }
.welcome-world .spot-label { display: none; }
.welcome-card {
  position: relative; text-align: center; max-width: 620px; padding: 30px 40px 26px;
  background: #fff; border-radius: 40px;
  box-shadow: 0 20px 60px rgba(43, 37, 96, .2);
}
.welcome-chars { display: flex; justify-content: center; align-items: flex-end; margin: -150px 0 0; }
.welcome-chars span { margin: 0 -14px; animation: hop 2.4s calc(var(--i) * .18s) ease-in-out infinite; }
.logo { margin: 4px 0 0; line-height: 0; }
.logo img, .auth-logo { display: block; margin: 0 auto; width: min(428px, 100%); height: auto; mix-blend-mode: multiply; }
.auth-logo { width: min(300px, 100%); margin-bottom: 6px; }
.tagline { font-size: 1.4rem; font-weight: 700; margin: 10px 0 4px; }
.welcome-sub { font-family: var(--adult); font-size: 1rem; line-height: 1.55; color: var(--ink-soft); margin: 0 auto 22px; max-width: 46ch; }
.welcome-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.fine { font-family: var(--adult); font-size: .82rem; color: var(--ink-soft); margin: 18px 0 0; }

/* quem vai brincar */
.who { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px 24px; }
.who-grid { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; }
.who-card {
  width: 210px; border: 0; background: #fff; border-radius: var(--r-lg); padding: 18px 12px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: 0 9px 0 #cfe6f7; transition: transform .1s;
}
.who-card b { font-size: 1.7rem; line-height: 1.1; }
.who-card small { font-family: var(--adult); color: var(--ink-soft); }
.who-card:hover { transform: translateY(-4px); }
.who-card:active { transform: translateY(6px); box-shadow: 0 3px 0 #cfe6f7; }

/* companheiro */
.companion { position: relative; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 30px 20px; }
.companion-host { display: flex; align-items: center; gap: 12px; }
.companion-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 1120px; }
.comp {
  border: 0; background: #fff; border-radius: var(--r-lg); width: 128px; padding: 12px 6px 10px;
  display: flex; flex-direction: column; align-items: center; box-shadow: 0 8px 0 var(--c);
  transition: transform .12s;
}
.comp b { font-size: 1.2rem; }
.comp:hover { transform: translateY(-5px) rotate(-2deg); }
.comp.chosen { transform: scale(1.12); box-shadow: 0 8px 0 var(--c), 0 0 0 6px var(--c); }

/* mundo */
.screen-world { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.world { position: relative; flex: 1; min-height: 0; }
.world .world-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.world-guide { position: absolute; left: 18px; top: 14px; display: flex; align-items: flex-start; gap: 8px; z-index: 2; pointer-events: none; }
.world-guide .bubble { pointer-events: auto; max-width: 250px; }
.spot { cursor: pointer; outline: none; }
.spot-art { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .2s; }
.spot:hover .spot-art, .spot:focus-visible .spot-art { transform: scale(1.04) translateY(-6px); }
.spot.pressed .spot-art { transform: scale(.96); }
.spot-label rect { fill: #fff; filter: drop-shadow(0 5px 0 rgba(43, 37, 96, .12)); }
.spot:focus-visible .spot-label rect { stroke: var(--accent); stroke-width: 5; }
.spot-label text { text-anchor: middle; font-family: var(--kid); font-weight: 800; font-size: 25px; fill: var(--ink); }
.spot-label text.pt { font-size: 14px; font-weight: 600; fill: var(--ink-soft); font-family: var(--adult); }
.spot-label { transform-box: fill-box; }
.cloud { animation: drift 40s linear infinite alternate; }
.cloud.c2 { animation-duration: 55s; }
.sun { transform-box: fill-box; transform-origin: center; animation: pulse 6s ease-in-out infinite; }
.smoke circle { animation: rise 3s ease-in infinite; }
.smoke circle:nth-child(2) { animation-delay: 1.4s; }

/* áreas */
.area, .library, .book-home { position: relative; min-height: calc(100dvh - 85px); padding: 22px clamp(18px, 4vw, 48px) 40px; }
.area-host { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; position: relative; z-index: 1; }
.trail { position: absolute; left: 0; right: 0; top: 230px; width: 100%; height: 50%; }
.stops { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px 22px; }
.stop {
  position: relative; text-decoration: none; background: #fff; border-radius: var(--r-lg);
  padding: 46px 16px 16px; text-align: center; margin-top: 34px;
  box-shadow: 0 9px 0 color-mix(in srgb, var(--c) 55%, #fff);
  transform: translateY(calc(sin(var(--i) * 1.4) * 14px));
  transition: transform .12s;
  display: flex; flex-direction: column; align-items: center;
}
.stop:hover { transform: translateY(calc(sin(var(--i) * 1.4) * 14px - 5px)); }
.stop:active { transform: translateY(calc(sin(var(--i) * 1.4) * 14px + 6px)); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 55%, #fff); }
.stop-icon { position: absolute; top: -40px; left: 50%; translate: -50% 0; width: 78px; filter: drop-shadow(0 6px 6px rgba(43, 37, 96, .18)); }
.stop-char { position: absolute; right: 12px; top: -20px; }
.stop-icon i { position: absolute; right: -14px; bottom: -6px; font-style: normal; font-size: 1.5rem; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(43, 37, 96, .15); }
.stop b { font-size: 1.32rem; line-height: 1.1; }
.stop small { font-family: var(--adult); font-size: .86rem; color: var(--ink-soft); margin-top: 4px; }
.stop-time { margin-top: 10px; font-family: var(--adult); font-size: .78rem; background: #f3f0ff; border-radius: 999px; padding: 3px 10px; }
.stop.explored::after { content: "✨"; position: absolute; left: 12px; top: 8px; font-size: 1.3rem; }

/* biblioteca do Book Club */
.shelf { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-end; padding: 10px 0 30px; border-bottom: 18px solid #a0612f; border-radius: 4px; }
.book-spine {
  width: 230px; min-height: 290px; border: 0; border-radius: 10px 22px 22px 10px; padding: 22px 18px;
  background: var(--c); color: #fff; text-align: left; display: flex; flex-direction: column; gap: 6px;
  box-shadow: inset 14px 0 0 rgba(0, 0, 0, .14), 0 10px 0 rgba(0, 0, 0, .18); transition: transform .15s;
}
.book-spine:hover { transform: translateY(-8px) rotate(-1deg); }
.book-spine b { font-size: 1.6rem; line-height: 1.05; }
.book-spine small { font-size: 1rem; opacity: .9; }
.book-year { font-family: var(--adult); font-size: .8rem; background: rgba(255, 255, 255, .25); border-radius: 999px; padding: 2px 10px; align-self: flex-start; }
.book-state { margin-top: auto; background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 700; text-align: center; font-size: 1rem; }
.book-spine.locked { filter: saturate(.55); }

.book-home { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 30px; align-items: start; }
.book-cover {
  background: var(--c); color: #fff; border-radius: 12px 28px 28px 12px; padding: 30px 24px; min-height: 380px;
  box-shadow: inset 18px 0 0 rgba(0, 0, 0, .14), 0 14px 0 rgba(0, 0, 0, .15); position: sticky; top: 100px;
  display: flex; flex-direction: column;
}
.book-cover span { font-weight: 600; opacity: .9; }
.book-cover h2 { font-size: 2.3rem; line-height: 1; margin: 8px 0 0; }
.cover-chars { margin-top: auto; display: flex; }
.layers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.layer { background: rgba(255, 255, 255, .92); border-radius: var(--r-lg); padding: 18px; }
.layer h3 { margin: 0 0 12px; font-size: 1.4rem; line-height: 1.05; }
.layer h3 small { display: block; font-family: var(--adult); font-weight: 400; font-size: .8rem; color: var(--ink-soft); margin-top: 4px; }
.layer-list { display: grid; gap: 10px; }
.layer-item {
  display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 10px 12px;
  border-radius: var(--r-md); background: #fff; box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 45%, #fff), inset 0 0 0 2px #f1edff;
}
.layer-item:active { transform: translateY(4px); box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 45%, #fff); }
.li-icon { position: relative; width: 52px; flex: none; }
.li-text { flex: 1; min-width: 0; }
.layer-item > .avatar { flex: none; }
.li-icon i { position: absolute; right: -8px; bottom: -6px; font-style: normal; font-size: .95rem; width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(43, 37, 96, .15); }
.layer-item b { display: block; font-size: 1.12rem; line-height: 1.1; }
.layer-item small { font-family: var(--adult); color: var(--ink-soft); font-size: .8rem; }

/* tela de atividade */
.screen-play { min-height: 100dvh; display: flex; flex-direction: column; }
.play { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 18px clamp(14px, 3vw, 40px) 30px; gap: 12px; }
.play-head { display: flex; align-items: flex-start; gap: 10px; width: 100%; max-width: 900px; }
.play-head .bubble { max-width: none; }
.play-bubble { flex: 1; }
.play-head.compact .play-bubble { display: none; }
.play-head.compact .play-char .char-full { height: 90px !important; }
.dots { display: flex; gap: 8px; min-height: 14px; }
.dots span { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 2px rgba(43, 37, 96, .15); transition: all .25s; }
.dots span.on { background: var(--sun); box-shadow: none; }
.dots span.now { width: 34px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 3px var(--accent); }
.stage { width: 100%; max-width: 980px; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; }

/* ouvir e escolher */
.choices { display: grid; gap: 24px; width: 100%; grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.choices.n2 { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
.choices.n4 { grid-template-columns: repeat(4, 1fr); }
.choice {
  border: 0; border-radius: 34px; background: #fff; aspect-ratio: 1 / 1.05; padding: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 10px 0 color-mix(in srgb, var(--tint) 60%, #d6cff3); transition: transform .1s;
}
.choice:active { transform: translateY(7px); box-shadow: 0 3px 0 color-mix(in srgb, var(--tint) 60%, #d6cff3); }
.opt-emoji { font-size: clamp(4rem, 10vw, 6.5rem); line-height: 1; }
.opt-swatch { width: 60%; aspect-ratio: 1; border-radius: 50%; }
.opt-label { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.opt-pt { font-family: var(--adult); font-size: .85rem; color: var(--ink-soft); }
/* durante a escuta só a imagem aparece; as palavras surgem depois da resposta */
.choices:not(.revealed) .opt-label, .choices:not(.revealed) .opt-pt { visibility: hidden; }
.choice.right { background: #eaffef; box-shadow: 0 10px 0 #7ed957, 0 0 0 6px #7ed957; animation: bounce .5s; }
.nudge { animation: wiggle .5s; }

/* contar */
.count-field { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 760px; background: rgba(255, 255, 255, .6); border-radius: 34px; padding: 22px; }
.count-item { position: relative; border: 0; background: transparent; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; rotate: var(--r); transition: transform .15s; padding: 6px; }
.count-item.counted { transform: scale(1.1); }
.count-n { position: absolute; right: -4px; top: -4px; font-family: var(--kid); font-size: 1.3rem; font-weight: 800; color: #fff; background: var(--accent); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.count-item.counted .count-n { opacity: 1; }
.count-big { font-size: 7rem; }
.number-row { display: flex; gap: 22px; }
.num {
  width: 120px; height: 120px; border-radius: 34px; border: 0; background: #fff; font-size: 3.2rem; font-weight: 800; line-height: .9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 9px 0 #d6cff3;
}
.num small { font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.num.right { background: #eaffef; box-shadow: 0 9px 0 #7ed957; animation: bounce .5s; }

/* movimento */
.move-card { position: relative; width: min(340px, 70vw); aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 12px 0 rgba(43, 37, 96, .1); }
.move-emoji { font-size: clamp(6rem, 16vw, 9rem); animation: hop 1.6s ease-in-out infinite; }
.move-card.breath .move-emoji { animation: none; }
.breath-ring { position: absolute; inset: 8%; border-radius: 50%; border: 10px solid #a8e6b3; animation: breathe 8s ease-in-out infinite; }
.did-it { font-size: 1.8rem; }

/* emoções */
.feelings { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.feel { border: 0; background: #fff; border-radius: 30px; width: 150px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 8px 0 #ffe08a; transition: transform .15s, opacity .2s; }
.feel-face { font-size: 4.6rem; line-height: 1.1; }
.feel.chosen { transform: scale(1.12); box-shadow: 0 8px 0 #ffc93c, 0 0 0 6px #ffc93c; }
.feelings:has(.chosen) .feel:not(.chosen) { opacity: .45; }

/* história */
.page { width: 100%; max-width: 900px; height: clamp(200px, 40vh, 400px); border-radius: 34px; position: relative; overflow: hidden; display: grid; place-items: center; box-shadow: 0 10px 0 rgba(43, 37, 96, .12); }
.page-scene { display: flex; align-items: flex-end; gap: 3vw; font-size: clamp(4rem, 11vw, 7.5rem); }
.page-scene span { animation: pop-in .5s var(--d) both; }
.hidden-thing { position: absolute; right: 7%; top: 10%; border: 0; background: transparent; font-size: 2.6rem; opacity: .25; animation: hop 2s infinite; }
.hidden-thing.found { opacity: 1; font-size: 4rem; }
.page-text { width: 100%; max-width: 900px; background: #fff; border-radius: 28px; padding: 18px 24px; box-shadow: 0 8px 0 rgba(43, 37, 96, .08); }
.page-text .en { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.25; margin: 0; }
.page-text .pt { font-family: var(--adult); color: var(--ink-soft); margin: 6px 0 0; }
.word { border: 0; background: #fff3b0; border-radius: 10px; padding: 0 6px; font-weight: 800; box-shadow: inset 0 -4px 0 #ffd43b; }
.page-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.page-nav .next { background: var(--accent); color: #fff; box-shadow: 0 5px 0 var(--accent-deep); }

/* leitura (detetive) e perguntas */
.reading { width: 100%; max-width: 820px; background: #fff; border-radius: 28px; padding: 18px 22px; display: grid; gap: 10px; }
.clue { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 1.35rem; line-height: 1.3; font-weight: 600; animation: pop-in .4s var(--d) both; }
.clue small { display: block; font-family: var(--adult); font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.link { border: 0; background: none; color: var(--accent-deep); text-decoration: underline; font-family: var(--adult); font-size: .95rem; padding: 8px; justify-self: start; }
.answers { display: grid; gap: 14px; width: 100%; max-width: 620px; }
.answer { border: 0; background: #fff; border-radius: 24px; min-height: 76px; padding: 10px 18px; display: flex; align-items: center; gap: 14px; font-size: 1.5rem; font-weight: 700; text-align: left; box-shadow: 0 7px 0 #d6cff3; }
.answer-mark { width: 46px; height: 46px; border-radius: 50%; background: #f1edff; display: grid; place-items: center; font-weight: 800; flex: none; }
.answer.right { background: #eaffef; box-shadow: 0 7px 0 #7ed957; }
.answer.right .answer-mark { background: #7ed957; color: #fff; }
.peek { width: 100%; max-width: 620px; background: rgba(255, 255, 255, .8); border-radius: 18px; padding: 8px 16px; font-family: var(--adult); }
.peek summary { cursor: pointer; }

/* diálogo */
.chat { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 10px; max-height: 44vh; overflow-y: auto; padding: 4px; }
.msg { display: flex; gap: 8px; align-items: flex-end; animation: pop-in .3s both; }
.msg.me { justify-content: flex-end; }
.msg-body { background: #fff; border-radius: 22px 22px 22px 6px; padding: 10px 16px; font-size: 1.35rem; font-weight: 700; line-height: 1.2; max-width: 80%; }
.msg.me .msg-body { background: var(--accent); color: #fff; border-radius: 22px 22px 6px 22px; }
.msg-body small { display: block; font-family: var(--adult); font-weight: 400; font-size: .85rem; opacity: .75; }
.msg-av { flex: none; }
.chat-choices { display: grid; gap: 12px; width: 100%; max-width: 720px; }
.say-opt { border: 0; background: #fff; border-radius: 22px; padding: 14px 18px; text-align: left; font-size: 1.4rem; font-weight: 700; box-shadow: 0 7px 0 #c9bbff; line-height: 1.15; }
.say-opt small { display: block; font-family: var(--adult); font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.say-opt:disabled { opacity: .45; }

/* cena de arrastar */
.scene-wrap { width: 100%; display: grid; grid-template-columns: 1fr 190px; gap: 16px; }
.scene { position: relative; height: clamp(260px, 50vh, 560px); border-radius: 30px; overflow: hidden; box-shadow: 0 10px 0 rgba(43, 37, 96, .12); touch-action: none; }
.scene .decor { position: absolute; inset: 0; width: 100%; height: 100%; }
.zone { position: absolute; border: 4px dashed rgba(124, 92, 255, .55); border-radius: 18px; display: flex; align-items: flex-end; justify-content: center; padding: 6px; transition: background .15s; }
.zone span { background: rgba(255, 255, 255, .9); border-radius: 999px; padding: 0 10px; font-weight: 700; font-size: 1rem; }
.zone.over { background: rgba(124, 92, 255, .18); border-style: solid; }
.tray { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 10px; background: rgba(255, 255, 255, .85); border-radius: 26px; padding: 12px; touch-action: none; }
.sticker { border: 0; background: #fff; border-radius: 18px; aspect-ratio: 1; min-width: 0; font-size: 2.3rem; padding: 0; box-shadow: 0 5px 0 #e6e1f7; touch-action: none; }
.placed { position: absolute; translate: -50% -50%; border: 0; background: none; font-size: clamp(2.6rem, 5vw, 4rem); touch-action: none; animation: pop-in .25s both; cursor: grab; }
.ghost { position: fixed; z-index: 100; pointer-events: none; font-size: 4rem; translate: -50% -50%; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .25)); }
.scene-actions, .finish-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* imprimível */
.printable-preview { width: 100%; display: grid; place-items: center; }
.sheet { width: min(640px, 100%); background: #fff; border-radius: 10px; padding: 34px 40px; font-family: var(--adult); box-shadow: 0 10px 30px rgba(43, 37, 96, .15); }
.sheet header { border-bottom: 3px solid var(--sun); margin-bottom: 18px; padding-bottom: 10px; }
.sheet h2 { font-family: var(--kid); font-size: 2.2rem; margin: 0; }
.sheet header p { margin: 0; color: var(--ink-soft); }
.sheet-name { margin-top: 10px; }
.sheet h3 { font-size: 1.05rem; margin: 14px 0 2px; }
.sheet .pt { margin: 0 0 8px; color: var(--ink-soft); font-size: .88rem; }
.sheet-box { border: 2px dashed #c9bbff; border-radius: 14px; }
.sheet-line { border-bottom: 2px solid #c9bbff; height: 36px; width: 50%; }
.sheet-tag { border: 3px solid var(--ink); border-radius: 10px; height: 54px; width: 60%; }
.sheet-items { display: flex; gap: 30px; font-size: 3.4rem; filter: grayscale(1) contrast(.6); }
.sheet footer { margin-top: 20px; padding: 12px; background: #f6f3ff; border-radius: 10px; font-size: .9rem; }

/* fim da atividade */
.finish { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 10px; }
.confetti { position: absolute; inset: -140px 0 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; left: var(--x); top: -20px; width: 12px; height: 18px; background: var(--c); border-radius: 3px; animation: fall 2.4s var(--d) ease-in forwards; }
.mission { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 30px; padding: 18px 24px; max-width: 640px; box-shadow: 0 8px 0 #ffe08a; }
.mission-emoji { font-size: 3.6rem; }
.mission b { font-family: var(--adult); font-size: .85rem; color: var(--ink-soft); font-weight: 500; }
.mission p { margin: 2px 0 0; font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.mission p.pt { font-family: var(--adult); font-size: .95rem; font-weight: 400; color: var(--ink-soft); }
.mission.big { margin-top: 10px; }

/* pausa */
.rest { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px; position: relative; }
.moon { position: absolute; top: 30px; right: 40px; font-size: 4rem; }

/* portão parental */
.gate-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(43, 37, 96, .55); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(4px); }
.gate { background: #fff; border-radius: 28px; padding: 26px 28px; width: min(400px, 100%); font-family: var(--adult); text-align: center; }
.gate h2 { margin: 0; font-size: 1.3rem; font-weight: 600; }
.gate p { color: var(--ink-soft); margin: 6px 0 14px; font-size: .95rem; }
.gate-q { font-size: 2rem; font-weight: 600; margin-bottom: 14px; }
.gate-ans { display: inline-block; min-width: 70px; border-bottom: 3px solid var(--accent); }
.gate-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gate-keys button { height: 58px; border-radius: 16px; border: 0; background: #f1edff; font-size: 1.4rem; }
.gate-keys button[data-k="OK"] { background: var(--accent); color: #fff; }
.gate-cancel { margin-top: 12px; }
.shake { animation: wiggle .4s; }

.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 0; z-index: 300; background: var(--ink); color: #fff; font-family: var(--adult); padding: 12px 20px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); transition: opacity .4s, translate .4s; max-width: 90vw; }
.toast.ok { background: var(--ok); color: #fff; }
.toast.out { opacity: 0; translate: -50% 12px; }

/* ------------------------------------------------------------------ Family Space (adultos) */
.screen-adult { font-family: var(--adult); background: var(--paper); min-height: 100dvh; font-weight: 400; line-height: 1.5; }
.screen-adult h1, .screen-adult h2 { font-weight: 600; letter-spacing: -.01em; }
.muted { color: var(--ink-soft); }
.sm { font-size: .85rem; }
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 30px 18px; background: linear-gradient(160deg, #e9f6ff, #f4efff); }
.adult-back { position: absolute; top: 20px; left: 20px; text-decoration: none; color: var(--ink-soft); }
.auth-card { background: #fff; border-radius: 26px; padding: 28px 30px; width: min(440px, 100%); box-shadow: 0 20px 50px rgba(43, 37, 96, .1); text-align: center; }
.auth-card h1 { margin: 6px 0 2px; font-size: 1.5rem; }
.auth-card .form { text-align: left; margin: 18px 0 8px; }
.demo-hint { font-size: .85rem; background: #f6f3ff; border-radius: 12px; padding: 8px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-size: .9rem; font-weight: 500; }
.form label small { font-weight: 400; color: var(--ink-soft); font-size: .78rem; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .activate input {
  height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; font-family: var(--adult); font-size: 1rem;
}
.form input:focus, .form select:focus, .activate input:focus { border-color: var(--accent); outline: 3px solid rgba(124, 92, 255, .2); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form-error { color: #c0262d; margin: 0; min-height: 1.2em; font-size: .9rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; text-decoration: none; font-family: var(--adult); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); }
.btn.danger { color: #c0262d; border-color: #f5c7c9; }
.btn:disabled { opacity: .6; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg legend { font-size: .9rem; font-weight: 500; margin-bottom: 6px; }
.seg label { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--accent); background: #f6f3ff; }
.seg label span { display: grid; }
.seg small { color: var(--ink-soft); font-weight: 400; }
.toggles { display: grid; gap: 10px; align-content: start; padding-top: 22px; }
.switch { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 10px; font-weight: 400 !important; }
.switch input { width: 20px; height: 20px; accent-color: var(--accent); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.form-actions.left { justify-content: flex-start; }
.form-actions .del { margin-right: auto; }

.fam-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px; padding: 10px clamp(16px, 4vw, 40px); background: rgba(251, 250, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.fam-brand { display: flex; align-items: center; gap: 10px; }
.fam-brand b { display: block; font-weight: 600; line-height: 1.1; }
.fam-brand small { color: var(--ink-soft); font-size: .78rem; }
.fam-tabs { display: flex; gap: 4px; margin-right: auto; margin-left: 20px; }
.fam-tabs a { text-decoration: none; padding: 9px 16px; border-radius: 10px; color: var(--ink-soft); }
.fam-tabs a.on { background: #efeaff; color: var(--ink); font-weight: 500; }
.fam-main { max-width: 980px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 60px; display: grid; gap: 20px; }
.fam-intro h1 { margin: 0; font-size: 1.8rem; }
.fam-intro p { margin: 4px 0 0; max-width: 64ch; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.panel h2 { margin: 0 0 12px; font-size: 1.15rem; }
.sec-title { font-size: 1.1rem; margin: 10px 0 -6px; }
.profile-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.profile { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; }
.profile-info { display: grid; flex: 1; font-size: .88rem; }
.profile-info b { font-size: 1.1rem; font-weight: 600; }
.profile.add { justify-content: center; border-style: dashed; color: var(--accent-deep); font-weight: 500; min-height: 96px; background: transparent; }
.profile.add span { font-size: 1.4rem; }
.activate-row { display: flex; gap: 10px; }
.activate input { flex: 1; font-size: 1.15rem !important; letter-spacing: .12em; text-transform: uppercase; }
.book-list { display: grid; gap: 10px; }
.book-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.book-row > div { display: grid; flex: 1; font-size: .9rem; }
.book-row b { font-size: 1.05rem; font-weight: 600; }
.book-row.dim { opacity: .7; }
.book-mini { width: 42px; height: 54px; border-radius: 4px 10px 10px 4px; background: var(--c); color: #fff; display: grid; place-items: center; box-shadow: inset 6px 0 0 rgba(0, 0, 0, .15); flex: none; }
.days svg { width: 44px; height: 44px; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.empty-adult { background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 18px; color: var(--ink-soft); margin: 0; }
.child-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.child-pick button { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 14px 4px 6px; font-family: var(--adult); overflow: hidden; height: 44px; }

.child-pick button.on { border-color: var(--accent); background: #f6f3ff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; }
.stats b { font-size: 2rem; font-weight: 600; line-height: 1.1; }
.stats span { color: var(--ink-soft); font-size: .85rem; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bars { display: flex; gap: 10px; align-items: flex-end; height: 150px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar span { width: 100%; background: linear-gradient(#a991ff, var(--accent)); border-radius: 8px 8px 3px 3px; min-height: 3px; position: relative; }
.bar em { position: absolute; top: -20px; width: 100%; text-align: center; font-style: normal; font-size: .75rem; color: var(--ink-soft); }
.bar small { color: var(--ink-soft); font-size: .75rem; }
.skill { display: grid; grid-template-columns: 150px 1fr 26px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .9rem; }
.skill .track { height: 12px; background: #f1edff; border-radius: 99px; overflow: hidden; }
.skill i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.skill b { font-weight: 600; text-align: right; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recent li { display: flex; align-items: center; gap: 12px; font-size: .9rem; border-bottom: 1px solid #f2eefc; padding-bottom: 8px; overflow: hidden; }

.recent li > span:nth-child(2) { display: grid; flex: 1; }
.recent li small { color: var(--ink-soft); }
.tips ul, .privacy { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ------------------------------------------------------------------ animações */
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(90px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes rise { from { transform: translateY(0); opacity: .8; } to { transform: translateY(-40px); opacity: 0; } }
@keyframes bounce { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes wiggle { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px) rotate(-2deg); } 75% { transform: translateX(8px) rotate(2deg); } }
@keyframes pop-in { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(.75); opacity: .6; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; }
.reduce-motion .breath-ring { animation: breathe 8s ease-in-out infinite !important; }

/* ------------------------------------------------------------------ responsivo (tablet retrato / telas menores) */
@media (max-width: 900px) {
  .book-home { grid-template-columns: 1fr; }
  .book-cover { position: static; min-height: 0; }
  .choices.n4 { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: 1fr; }
  .fam-head { flex-wrap: wrap; }
  .fam-tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; }
}
@media (max-width: 640px) {
  :root { --tap: 64px; }
  .choices { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .scene-wrap { grid-template-columns: 1fr; }
  .tray { grid-template-columns: repeat(4, 1fr); }
  .row, .seg, .stats { grid-template-columns: 1fr; }
  .world-guide .bubble { display: none; }
  .num { width: 88px; height: 88px; font-size: 2.4rem; }
  .welcome-card { padding: 24px 20px; }
  .kidbar { grid-template-columns: auto 1fr auto; gap: 8px; }
  .companion-chip { display: none; }
}

/* ------------------------------------------------------------------ impressão: só a folha */
@media print {
  body * { visibility: hidden; }
  .sheet, .sheet * { visibility: visible; }
  .sheet { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
}


/* ------------------------------------------------------------------ artes oficiais */
.char-full { display: block; width: auto; max-width: none; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(43, 37, 96, .18)); transform-origin: 50% 100%; user-select: none; -webkit-user-drag: none; }
.char-full { animation: breathe 3.2s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.char-full.mood-talk { animation: talk .9s ease-in-out infinite; }
.char-full.mood-wow { animation: cheer .7s ease-out, breathe 3.2s ease-in-out .7s infinite; }
.char-full.enter, .world-guide .char-full, .area-host .char-full, .play-char .char-full { animation-name: enter, breathe; animation-duration: .6s, 3.2s; animation-timing-function: cubic-bezier(.3, 1.5, .5, 1), ease-in-out; animation-iteration-count: 1, infinite; animation-delay: 0s, .6s; }
.play-char .char-full.mood-talk, .area-host .char-full.mood-talk, .world-guide .char-full.mood-talk { animation: talk .9s ease-in-out infinite; }
.play-char .char-full.mood-wow, .area-host .char-full.mood-wow { animation: cheer .7s ease-out; }
.who-card:hover .char-full, .comp:hover .char-full { animation: wave 1s ease-in-out infinite; }
.avatar { width: var(--s); height: var(--s); flex: none; border-radius: 50%; overflow: hidden; display: inline-block; background: color-mix(in srgb, var(--c) 22%, #fff); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px color-mix(in srgb, var(--c) 45%, #fff); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.char-icon { display: block; height: auto; flex: none; user-select: none; -webkit-user-drag: none; }
.companion-chip { overflow: visible; box-shadow: none; background: none; }
.companion-chip .avatar { --s: 54px !important; }
.comp { position: relative; }

.who-card .char-full { margin-top: -6px; }
.host-icon { align-self: center; margin-right: -4px; }
.fam-intro.with-icon { display: flex; gap: 16px; align-items: center; }
.page-scene .char-full { animation: none; }
.auth-card .char-full { margin: 0 auto; }

/* personagens no cenário */
.scene-char { cursor: pointer; outline: none; }
.scene-char image { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .2s; }
.scene-char .idle { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.scene-char:hover image, .scene-char:focus-visible image { transform: translateY(-6px) scale(1.04); }
.scene-char.hop image { animation: cheer .6s ease-out; }
.globe-spot .float { animation: float 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.globe-spot:hover .spot-art, .globe-spot:focus-visible .spot-art { transform: scale(1.06); }

/* World Discoveries */
.discover {
  position: relative; min-height: calc(100dvh - 85px); overflow: hidden;
  display: grid; grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center;
  padding: 24px clamp(18px, 4vw, 48px) 36px;
  background: radial-gradient(circle at 30% 45%, #2c5fc7 0, #1a2e78 45%, #0f1a4a 100%); color: #fff;
}
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image: radial-gradient(2px 2px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 30% 80%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 85% 15%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 60% 10%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 92% 70%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 48% 92%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 6% 60%, #ffe58a 50%, transparent 51%), radial-gradient(2px 2px at 70% 40%, #ffe58a 50%, transparent 51%); }
.discover-globe { position: relative; display: grid; justify-items: center; gap: 10px; z-index: 1; }
.spin-hint { font-family: var(--adult); font-size: .9rem; opacity: .8; }
.discover-side { position: relative; z-index: 1; display: grid; gap: 16px; color: var(--ink); }
.discover-side .bubble::before { border-right-color: #fff; }
.place-card { background: #fff; border-radius: 28px; padding: 18px 22px; min-height: 150px; box-shadow: 0 10px 0 rgba(0, 0, 0, .18); display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 2px 12px; }
.place-card .fact-emoji { grid-column: 1 / -1; font-size: 2.4rem; letter-spacing: .2em; }
.place-card h2 { margin: 0; font-size: 2rem; line-height: 1; grid-column: 1; }
.place-card .pt-name { margin: 0; font-family: var(--adult); color: var(--ink-soft); grid-column: 1; }
.place-card .fact { margin: 8px 0 0; font-size: 1.3rem; font-weight: 700; line-height: 1.25; grid-column: 1; }
.place-card .icon-btn { grid-column: 2; grid-row: 2 / span 3; }
.muted-kid { margin: 0; font-family: var(--adult); color: var(--ink-soft); grid-column: 1 / -1; align-self: center; }
.discover-acts { display: grid; gap: 10px; }

.globe { --tilt: 0; position: relative; width: min(52vh, 520px, 86vw); aspect-ratio: 1; touch-action: none; transform: rotate(calc(var(--tilt) * 1deg)); transition: transform .25s; }
.globe-halo { position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(circle, rgba(124, 200, 255, .45) 55%, transparent 72%); animation: pulse 5s ease-in-out infinite; }
.globe-img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); user-select: none; -webkit-user-drag: none; }
.globe-hit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.place { fill: rgba(255, 255, 255, 0); stroke: rgba(255, 255, 255, 0); stroke-width: .8; cursor: pointer; transition: fill .2s, stroke .2s; outline: none; }
.place:hover, .place:focus-visible { fill: rgba(255, 255, 255, .16); stroke: rgba(255, 255, 255, .8); stroke-dasharray: 2 1.5; }
.place.found { fill: rgba(255, 213, 59, .35); stroke: #ffd43b; stroke-width: 1.2; stroke-dasharray: none; }
.place.nope { animation: wiggle .5s; fill: rgba(255, 90, 95, .25); }
.you-are-here { position: absolute; translate: -50% -100%; display: grid; justify-items: center; pointer-events: none; animation: hop 2s ease-in-out infinite; }
.you-are-here b { font-size: 2rem; line-height: 1; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); }
.you-are-here small { font-family: var(--adult); font-size: .7rem; background: #fff; color: var(--ink); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.globe-game { position: relative; width: 100%; display: flex; justify-content: center; }
.globe-game .globe { width: min(50vh, 480px, 80vw); }
.globe-fact { position: absolute; right: 0; top: 50%; translate: 0 -50%; width: min(300px, 30%); background: #fff; border-radius: 26px; padding: 16px 20px; min-height: 120px; display: grid; align-content: center; gap: 4px; animation: pop-in .3s both; }
.globe-fact:empty { visibility: hidden; }
.globe-fact .fact-emoji { font-size: 2.2rem; letter-spacing: .15em; }
.globe-fact p { margin: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.kind-globe_find { background: radial-gradient(circle at 40% 45%, #2c5fc7 0, #1a2e78 55%, #0f1a4a 100%) !important; }

@keyframes talk { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-3px) rotate(-1.5deg); } 75% { transform: translateY(-3px) rotate(1.5deg); } }
@keyframes cheer { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-16px) scale(1.04); } 65% { transform: translateY(0) scale(.98, 1.02); } 100% { transform: none; } }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, .988) translateY(1px); } }
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg) translateY(-2px); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg) translateY(-4px); } 75% { transform: rotate(4deg) translateY(-4px); } }
@keyframes enter { 0% { transform: translateY(30px) scale(.8); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  .discover { grid-template-columns: 1fr; }
  .globe-game { flex-direction: column; align-items: center; gap: 16px; }
  .globe-fact { position: static; translate: none; width: 100%; max-width: 480px; }
}


/* cenário com a ilustração oficial */
.tree-hit { fill: rgba(255, 255, 255, 0); transition: fill .2s; }
.tree-spot:hover .tree-hit, .tree-spot:focus-visible .tree-hit { fill: rgba(255, 240, 180, .14); }
.icon-spot image { filter: drop-shadow(0 10px 10px rgba(30, 50, 20, .28)); }
.fireflies circle { fill: #fff4a8; opacity: 0; animation: twinkle 3.6s ease-in-out infinite; }
.welcome-world .scene-chars, .welcome-world .icon-spot, .welcome-world .globe-spot { display: none; }
.comp small { font-family: var(--adult); font-size: .7rem; color: var(--ink-soft); line-height: 1.2; text-align: center; padding: 0 4px; }
.comp { width: 138px; }
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 10px; }
.cast-item { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 14px; padding: 10px 12px; }
.cast-item b { display: block; font-weight: 600; }
.cast-item span { font-size: .85rem; color: var(--ink-soft); }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: translateY(0); } 50% { opacity: .9; transform: translateY(-8px); } }

/* idioma e voz */
.lang-toggle { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; box-shadow: 0 4px 0 #d6cff3; }
.lang-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; font-family: var(--kid); font-weight: 700; font-size: 1rem; color: var(--ink-soft); min-height: 44px; }
.lang-toggle button.on { background: var(--accent); color: #fff; }
.corner-right { position: absolute; top: 18px; right: 18px; z-index: 3; }
.voice-panel select { max-width: 100%; }
.voice-test { padding-top: 22px; }
@media (max-width: 900px) { .lang-toggle button { padding: 8px 10px; font-size: 0; } .lang-toggle button span { font-size: 1.3rem; } }

/* ------------------------------------------------------------------ interações do cenário */
.welcome-world .pond, .welcome-world .lilica-flowers, .welcome-world .bella-sprouts, .welcome-world .hidden-things,
.welcome-world .magnifier, .welcome-world .butterflies, .welcome-world .breath-ring-s, .welcome-world .bell,
.welcome-world .night, .welcome-world .polly-cloud, .welcome-world .sky-hit { display: none; }
.sky-hit, .pond, .tap-flower { cursor: pointer; outline: none; }
.pond-pop, .ripples, .hidden-things, .magnifier, .butterflies, .breath-ring-s, .bell, .drops, .polly-cloud, .bella-sprouts { pointer-events: none; }
.polly-cloud .cloud-blob { fill: #fff; opacity: .92; transition: opacity .5s, transform .5s; transform-box: fill-box; transform-origin: center; }
.polly-cloud .cloud-shape { fill: #fff; opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: all .6s cubic-bezier(.3, 1.5, .5, 1); filter: drop-shadow(0 4px 10px rgba(80, 140, 220, .35)); }
.polly-cloud.morph .cloud-blob { opacity: 0; transform: scale(1.3); }
.polly-cloud.morph .cloud-shape { opacity: .95; transform: scale(1); }
.pond-pop { opacity: 0; }
.pond-pop.jump { animation: pondjump 1.6s ease-out; transform-box: fill-box; transform-origin: 50% 100%; }
.ripples ellipse { fill: none; stroke: #fff; stroke-width: 3; opacity: 0; animation: ripple 1.4s ease-out; transform-box: fill-box; transform-origin: center; }
.tap-flower .petals ellipse { fill: var(--pc); transition: fill .4s; }
.tap-flower .fl { transform-box: fill-box; transform-origin: 50% 100%; }
.tap-flower.grow .fl { animation: grow .7s cubic-bezier(.3, 1.6, .5, 1); }
.tap-flower:hover .fl { transform: scale(1.08); }
.sprout .sp-big { opacity: 0; transform: scale(.2); transform-box: fill-box; transform-origin: 50% 100%; transition: all .6s cubic-bezier(.3, 1.6, .5, 1) var(--d); }
.sprout .sp-small { transition: opacity .3s var(--d); }
.bella-sprouts.bloom .sp-big { opacity: 1; transform: scale(1); }
.bella-sprouts.bloom .sp-small { opacity: 0; }
.drops text { opacity: 0; animation: drop .9s ease-in 2; }
.hidden-thing-s { opacity: 0; transition: opacity .4s; }
.hidden-thing-s text { transform-box: fill-box; transform-origin: 50% 100%; }
.hidden-thing-s.found { opacity: 1; }
.hidden-thing-s.found text { animation: cheer .7s ease-out; }
.magnifier { opacity: 0; transform: translate(var(--x, 1262px), var(--y, 700px)); transition: transform 1.2s ease-in-out, opacity .3s; pointer-events: none; }
.magnifier.on { opacity: 1; }
.bfly { transform-box: fill-box; animation: flyout 2.2s ease-out var(--d) both; }
.bfly .bnum { opacity: 0; fill: #fff; stroke: #2b2560; stroke-width: 6px; paint-order: stroke; font-family: var(--kid); font-weight: 800; }
.bfly.counted .bnum { opacity: 1; }
.breath-ring-s circle { fill: rgba(168, 230, 179, .25); stroke: #a8e6b3; stroke-width: 8; opacity: 0; transform-box: fill-box; transform-origin: center; }
.breath-ring-s.on circle { opacity: 1; animation: breathe-ring 5.2s ease-in-out 2; }
.world-svg.breeze .scene-char .idle, .world-svg.breeze .tap-flower .fl { animation: sway 1.6s ease-in-out infinite; }
.bell { opacity: 0; transform-box: fill-box; transform-origin: 50% 0; }
.bell.ring { animation: ring 1.4s ease-in-out; }
.night { opacity: 0; transition: opacity 1.2s; }
.night rect { opacity: .5; }
.night .lantern { fill: #ffd56b; opacity: .55; filter: blur(14px); }
.night .moon { filter: drop-shadow(0 0 20px #fff6c2); }
.night .star { fill: #fff; animation: twinkle 2.4s ease-in-out infinite; }
.is-night .night { opacity: 1; }
.is-night .fireflies circle { animation-duration: 2s; }
@keyframes pondjump { 0% { opacity: 0; transform: translateY(20px); } 20% { opacity: 1; } 50% { transform: translateY(-110px) rotate(-12deg); } 85% { opacity: 1; transform: translateY(0) rotate(10deg); } 100% { opacity: 0; transform: translateY(20px); } }
@keyframes ripple { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(3); } }
@keyframes grow { 0% { transform: scale(.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1.15); } }
@keyframes drop { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(70px); } }
@keyframes flyout { 0% { transform: translate(0, 40px) scale(.4); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(1); opacity: 1; } }
@keyframes breathe-ring { 0%, 100% { transform: scale(.6); } 50% { transform: scale(1.15); } }
@keyframes ring { 0% { opacity: 1; transform: rotate(0); } 15% { transform: rotate(25deg); } 30% { transform: rotate(-22deg); } 45% { transform: rotate(16deg); } 60% { transform: rotate(-10deg); } 90% { opacity: 1; } 100% { opacity: 0; transform: rotate(0); } }

/* ------------------------------------------------------------------ Music & Stories */
.song { width: 100%; max-width: 860px; display: grid; justify-items: center; gap: 14px; }
.song-emoji { font-size: clamp(4rem, 10vw, 6rem); line-height: 1; animation: hop 1.2s ease-in-out infinite; }
.song-emoji.jump { animation: cheer .8s ease-in-out infinite; }
.song-emoji.wave { animation: wave 1s ease-in-out infinite; }
.song-emoji.clap { animation: pulse .5s ease-in-out infinite; }
.lyrics { list-style: none; margin: 0; padding: 18px 22px; width: 100%; background: #fff; border-radius: 28px; display: grid; gap: 8px; box-shadow: 0 8px 0 rgba(43, 37, 96, .08); }
.lyrics li { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 700; line-height: 1.25; color: #b9b3d8; transition: color .3s; }
.lyrics li small { display: block; font-family: var(--adult); font-weight: 400; font-size: .85rem; color: #c9c4e3; }
.lyrics li.sung { color: var(--ink-soft); }
.lyrics li.now { color: var(--ink); font-size: clamp(1.4rem, 3vw, 2rem); }
.lyrics li.now small { color: var(--ink-soft); }
.lyrics .w { transition: color .15s, background .15s; border-radius: 8px; padding: 0 2px; }
.lyrics li.now .w.lit { color: var(--accent-deep); background: #fff3b0; }
.song-actions { display: flex; gap: 14px; }

/* My Little Voice */
.repeat { width: 100%; max-width: 760px; display: grid; justify-items: center; gap: 18px; }
.rep-card { background: #fff; border-radius: 34px; padding: 22px 40px; display: grid; justify-items: center; box-shadow: 0 10px 0 rgba(43, 37, 96, .1); min-width: min(420px, 90vw); }
.rep-emoji { font-size: clamp(5rem, 13vw, 8rem); line-height: 1.1; }
.rep-card b { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.rep-card small { font-family: var(--adult); color: var(--ink-soft); font-size: 1rem; }
.rep-turn { display: grid; justify-items: center; gap: 4px; }
.rep-wave { display: flex; gap: 6px; align-items: center; height: 54px; }
.rep-wave i { width: 12px; border-radius: 8px; background: var(--accent); animation: wavebar 1s ease-in-out infinite; }
.rep-wave i:nth-child(2) { animation-delay: .1s; } .rep-wave i:nth-child(3) { animation-delay: .2s; }
.rep-wave i:nth-child(4) { animation-delay: .3s; } .rep-wave i:nth-child(5) { animation-delay: .4s; }
.rep-label { margin: 0; font-size: 1.6rem; font-weight: 800; }
.rep-label span { font-family: var(--adult); font-size: .95rem; font-weight: 400; color: var(--ink-soft); }
.rep-note { font-family: var(--adult); font-size: .8rem; color: var(--ink-soft); margin: 0; }
@keyframes wavebar { 0%, 100% { height: 14px; } 50% { height: 50px; } }

/* álbum de figurinhas */
.album-btn { font-size: 1.4rem; }
.album { min-height: calc(100dvh - 85px); padding: 22px clamp(18px, 4vw, 48px) 40px; background: linear-gradient(#fff4e0, #ffe2c2); }
.album-page { background: #fff; border-radius: 28px; padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 8px 0 rgba(160, 97, 47, .12); }
.album-page h2 { margin: 0 0 12px; font-size: 1.5rem; line-height: 1; }
.album-page h2 small { display: block; font-family: var(--adult); font-weight: 400; font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.sticker-slot { border: 3px dashed #e3dcf5; background: #faf8ff; border-radius: 24px; padding: 12px 8px; display: grid; justify-items: center; gap: 4px; text-decoration: none; text-align: center; min-height: 140px; align-content: center; }
.sticker-slot .st-emoji { font-size: 3.2rem; line-height: 1; filter: grayscale(1) brightness(1.15) opacity(.5); }
.sticker-slot small { font-family: var(--adult); font-size: .75rem; color: var(--ink-soft); line-height: 1.2; }
.sticker-slot.got { border: 0; background: color-mix(in srgb, var(--c) 18%, #fff); box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 45%, #fff); transform: rotate(-2deg); }
.sticker-slot.got:nth-child(2n) { transform: rotate(2deg); }
.sticker-slot.got .st-emoji { filter: drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff); font-size: 3.6rem; }
.sticker-slot.got small { color: var(--ink); font-family: var(--kid); font-weight: 700; font-size: .9rem; }
.album-note { font-family: var(--adult); color: var(--ink-soft); text-align: center; }
.new-sticker { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 26px; padding: 12px 22px; box-shadow: 0 8px 0 #c9bbff; animation: pop-in .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.ns-emoji { font-size: 3.2rem; animation: cheer 1s ease-out .3s; filter: drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff); }
.new-sticker b { display: block; font-size: 1.5rem; line-height: 1; }
.new-sticker small { font-family: var(--adult); color: var(--ink-soft); }

/* modo professor */
.teacher-link { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.teacher-link > span { font-size: 2rem; }
.teacher-link b { display: block; font-weight: 600; }
.teacher-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.teacher-book { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-decoration: none; }
.teacher-book > div { display: grid; }
.teacher-book b { font-size: 1.1rem; font-weight: 600; }
.teacher-book span { color: var(--ink-soft); font-size: .88rem; }
.teacher .fam-brand img { height: 40px; width: auto; mix-blend-mode: multiply; }
.class-view { min-height: calc(100dvh - 85px); padding: 24px clamp(18px, 4vw, 48px) 40px; display: grid; gap: 22px; align-content: start; }
.class-layer h2 { margin: 0 0 12px; font-size: 1.8rem; line-height: 1; }
.class-layer h2 small { display: block; font-family: var(--adult); font-weight: 400; font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }
.class-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.class-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; background: #fff; border-radius: 26px; padding: 18px; box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 45%, #fff); }
.class-card .cc-body b { display: block; font-size: 1.4rem; line-height: 1.1; }
.class-card .cc-body small { font-family: var(--adult); color: var(--ink-soft); }
.cc-tip { font-family: var(--adult); font-size: .92rem; margin: 8px 0 4px; line-height: 1.45; }
.cc-meta { font-family: var(--adult); font-size: .8rem; color: var(--ink-soft); margin: 0; }
.class-card .big-btn { grid-column: 1 / -1; justify-self: end; min-height: 56px; font-size: 1.2rem; padding: 6px 26px; }
.fs { font-size: 1.3rem; }

/* canções com banda */
.song-stage { position: relative; height: clamp(90px, 16vh, 140px); display: grid; place-items: center; }
.song-stage .song-emoji { animation: bounce-beat .6s ease-in-out infinite; }
.notes-fly i { position: absolute; font-style: normal; font-size: 2rem; color: var(--accent); opacity: 0; animation: notefly 2.4s linear infinite; }
.notes-fly i:nth-child(1) { left: 30%; } .notes-fly i:nth-child(2) { left: 60%; animation-delay: .8s; color: #ff5fa2; } .notes-fly i:nth-child(3) { left: 45%; animation-delay: 1.6s; color: #2e9e44; }
.lyrics { max-height: 34vh; overflow-y: auto; scroll-behavior: smooth; }
.song-note { font-family: var(--adult); font-size: .85rem; color: var(--ink-soft); margin: 0; }
@keyframes bounce-beat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-12px) scale(1.06); } }
@keyframes notefly { 0% { opacity: 0; transform: translateY(40px) rotate(-10deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-60px) rotate(15deg); } }

/* ================================================================== v3: app livre, globo com ícones */
.kid-logo img { height: 52px; width: auto; display: block; }
.orbit { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 5; stroke-dasharray: 4 16; stroke-linecap: round; animation: orbitDash 30s linear infinite; pointer-events: none; }
@keyframes orbitDash { to { stroke-dashoffset: -400; } }
.hub-spot .float { transform-box: fill-box; animation: float 3.4s ease-in-out infinite; }
.hub-spot image { filter: drop-shadow(0 10px 10px rgba(30, 50, 20, .3)); }
.hub-spot .spot-art { transform-origin: 50% 50%; }
.hub-spot:hover .spot-art, .hub-spot:focus-visible .spot-art { transform: scale(1.12); }
.hub-label text { font-size: 17px; }
.globe-spin { transform-box: fill-box; transform-origin: 50% 50%; }
.globe-spin.spin { animation: globeSpin 1.1s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes globeSpin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(1.12); } 100% { transform: rotate(360deg) scale(1); } }
.reduce-motion .orbit, .reduce-motion .hub-spot .float { animation: none; }

/* cantinho do personagem */
.hub { min-height: calc(100dvh - 85px); padding: 22px clamp(18px, 4vw, 48px) 40px; }
.hub-host { display: flex; align-items: center; gap: 14px; margin: 0 auto 26px; max-width: 980px; }
.hub-icon { filter: drop-shadow(0 8px 8px rgba(43, 37, 96, .2)); animation: float 3.4s ease-in-out infinite; }
.hub-char .char-full { animation: talk .9s ease-in-out 3, breathe 3.2s ease-in-out 2.7s infinite; }
.hub-bubble { flex: 1; min-width: 0; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; max-width: 980px; margin: 0 auto; }
.game {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none;
  background: #fff; border-radius: 32px; padding: 22px 16px 20px; min-height: 230px; justify-content: center;
  box-shadow: 0 10px 0 color-mix(in srgb, var(--c) 60%, #fff), 0 16px 30px rgba(43, 37, 96, .12);
  animation: enter .5s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--i) * .08s);
  transition: transform .12s;
}
.game:hover { transform: translateY(-5px) rotate(-1deg); }
.game:active { transform: translateY(7px); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 60%, #fff); }
.game-pic { font-size: 5rem; line-height: 1; margin-bottom: 8px; }
.game b { font-size: 1.45rem; line-height: 1.1; }
.game small { font-family: var(--adult); color: var(--ink-soft); font-size: .9rem; margin-top: 4px; }
.game-done { position: absolute; top: 10px; right: 14px; font-size: 1.6rem; }
.empty { font-size: 1.3rem; text-align: center; grid-column: 1 / -1; }

/* janela do código do livro */
.code-dlg h2 { margin: 0 0 8px; font-size: 1.3rem; }
.code-dlg p { color: var(--ink-soft); font-size: .92rem; }
.code-dlg input { width: 100%; font: 500 1.1rem var(--adult); padding: 12px; border: 2px solid var(--line); border-radius: 14px; }
.code-dlg input[name=code] { font-size: 1.4rem; font-weight: 600; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.code-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }

/* casa na árvore */
.treehouse { min-height: calc(100dvh - 85px); padding: 22px clamp(18px, 4vw, 48px) 40px;
  background: linear-gradient(rgba(255, 246, 225, .82), rgba(255, 236, 200, .92)), url(/static/img/world-bg.webp) 30% 40% / cover; }
.th-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 20px; max-width: 1100px; margin: 0 auto; }
.th-room {
  position: relative; border-radius: 34px; aspect-ratio: 16 / 10; overflow: hidden; touch-action: none;
  background: linear-gradient(transparent 68%, #b97a42 68% 70%, #c98a4e 70%) , repeating-linear-gradient(90deg, #e3a868 0 70px, #d69a5c 70px 74px);
  border: 10px solid #8a5326; box-shadow: 0 16px 30px rgba(80, 40, 10, .25);
}
.th-window { position: absolute; left: 50%; translate: -50% 0; top: 8%; font-size: clamp(1.6rem, 3vw, 2.6rem); background: #bfe9ff; border: 8px solid #fff; border-radius: 20px; padding: 10px 26px; }
.th-rug { position: absolute; left: 50%; translate: -50% 0; bottom: 6%; width: 46%; height: 16%; border-radius: 50%; background: repeating-radial-gradient(#ff8fb1 0 10px, #ffd166 10px 20px, #8fd3ff 20px 30px); opacity: .85; }
.th-placed { position: absolute; inset: 0; }
.th-hint { position: absolute; left: 0; right: 0; bottom: 2%; text-align: center; margin: 0; color: #fff; font-weight: 700; text-shadow: 0 2px 0 rgba(80, 40, 10, .45); pointer-events: none; }
.th-item { font-size: 3.2rem; line-height: 1; border: 0; background: rgba(255, 255, 255, .7); border-radius: 22px; width: 84px; height: 84px;
  display: grid; place-items: center; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.th-tray-items .th-item { animation: enter .5s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--i) * .04s); }
.th-item.in-room { position: absolute; translate: -50% -50%; background: none; width: auto; height: auto; font-size: clamp(2.6rem, 5vw, 4.2rem); filter: drop-shadow(0 6px 4px rgba(60, 30, 10, .3)); }
.th-item.lifted { opacity: .3; }
.th-item.wiggle { animation: cheer .6s ease-out; }
.th-ghost { position: fixed; z-index: 100; translate: -50% -50%; pointer-events: none; font-size: 4rem; background: none; filter: drop-shadow(0 12px 8px rgba(0, 0, 0, .25)); transform: scale(1.15); }
.th-tray { background: rgba(255, 255, 255, .85); border-radius: 28px; padding: 16px; position: relative; display: flex; flex-direction: column; }
.th-tray h2 { margin: 0 0 10px; font-size: 1.3rem; }
.th-tray h2 small { display: block; font: 600 .82rem var(--adult); color: var(--ink-soft); }
.th-tray-items { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; flex: 1; min-height: 120px; }
.th-empty { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }
.th-host { align-self: flex-end; margin-top: 8px; }
@media (max-width: 800px) { .th-wrap { grid-template-columns: 1fr; } .th-host { display: none; } .th-item { width: 68px; height: 68px; font-size: 2.6rem; } }
.th-soon { max-width: 980px; margin: 30px auto 0; }
.th-soon h2 { margin: 0 0 14px; font-size: 1.6rem; }
.th-soon h2 small { display: block; font: 600 .95rem var(--adult); color: var(--ink-soft); }
.plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.plan-item { display: flex; gap: 12px; background: rgba(255, 255, 255, .9); border-radius: 22px; padding: 16px; border: 2px dashed #e0c9a4; }
.plan-item > span { font-size: 2.2rem; }
.plan-item b { display: block; font-size: 1.15rem; line-height: 1.1; }
.plan-item small { font-family: var(--adult); font-size: .78rem; color: var(--ink-soft); }
.plan-item p { margin: 6px 0 0; font: .85rem/1.35 var(--adult); color: var(--ink-soft); }
.items-line { font-size: 2rem; margin: 0; }
@media (max-width: 700px) {
  .hub-host { flex-wrap: wrap; }
}

/* jogos simples: balões */
.balloon-field { position: relative; width: 100%; height: min(55vh, 460px); max-width: 900px; margin: 0 auto; }
.balloon { position: absolute; left: var(--x); bottom: 10px; translate: -50% 0; width: 110px; height: 140px; border: 0; background: none; cursor: pointer;
  animation: bob 2.6s ease-in-out infinite; animation-delay: var(--d); }
.balloon span { display: block; width: 100%; height: 120px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7) 0 10%, transparent 11%), var(--c);
  box-shadow: inset -10px -12px 0 rgba(0, 0, 0, .1); position: relative; }
.balloon span::after { content: ""; position: absolute; left: 50%; top: 118px; width: 2px; height: 60px; background: #8a86b5; }
.balloon.popped { animation: popAway .35s ease-out forwards; pointer-events: none; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }
@keyframes popAway { to { transform: scale(1.6); opacity: 0; } }
.pop-count { text-align: center; font-size: 4rem; font-weight: 800; color: var(--accent); min-height: 1.2em; }

/* memória */
.memory { display: grid; gap: 18px; justify-content: center; grid-template-columns: repeat(2, minmax(110px, 170px)); }
.memory.n6 { grid-template-columns: repeat(3, minmax(110px, 170px)); }
.memory.n8 { grid-template-columns: repeat(4, minmax(100px, 160px)); }
.mcard { aspect-ratio: 1; border: 0; border-radius: 24px; cursor: pointer; position: relative; background: var(--accent); box-shadow: 0 7px 0 var(--accent-deep);
  font-size: clamp(3rem, 7vw, 4.6rem); transition: transform .3s, background .3s; }
.mcard .front { display: none; }
.mcard .back { color: #fff6c2; }
.mcard.up { background: #fff; box-shadow: 0 7px 0 #d6cff3; transform: rotateY(180deg); }
.mcard.up .front { display: inline; transform: rotateY(180deg); display: inline-block; }
.mcard.up .back { display: none; }
.mcard.match { background: #e6fbe9; box-shadow: 0 7px 0 #9be3a8; }

/* sequência */
.pattern-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 10px 0 28px; }
.pat { width: clamp(80px, 12vw, 120px); aspect-ratio: 1; border-radius: 24px; background: #fff; display: grid; place-items: center;
  font-size: clamp(3rem, 7vw, 4.4rem); box-shadow: 0 6px 0 #d6cff3; animation: enter .4s both; animation-delay: var(--d); }
.pat.q { background: #fff6c2; border: 4px dashed var(--sun); color: var(--warn); font-weight: 800; }
.pat.q.filled { border-style: solid; background: #e6fbe9; }

/* pintar */
.paint { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; }
.paint-pic { width: min(420px, 80vw); background: #fff; border-radius: 30px; padding: 12px; box-shadow: 0 8px 0 #d6cff3; }
.paint-svg { width: 100%; display: block; }
.paint-svg .part { cursor: pointer; transition: fill .25s; }
.paint-svg .part.splash { animation: splash .4s ease-out; }
@keyframes splash { 40% { filter: brightness(1.35) drop-shadow(0 0 8px rgba(255, 255, 255, .9)); } }
.palette { display: grid; grid-template-columns: repeat(2, 76px); gap: 14px; }
.swatch { width: 76px; height: 76px; border-radius: 50%; border: 6px solid #fff; background: var(--c); box-shadow: 0 5px 0 rgba(43, 37, 96, .18); cursor: pointer; }
.swatch.on { outline: 5px solid var(--ink); outline-offset: 2px; transform: scale(1.08); }

/* o que é aquilo? */
.bushes { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 10px; }
.bush { position: relative; width: clamp(130px, 18vw, 180px); aspect-ratio: 1; border: 0; background: none; cursor: pointer; }
.bush .leaves { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(6rem, 13vw, 9rem); transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), opacity .45s; animation: sway 2.4s ease-in-out infinite; }
.bush .who { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(4rem, 9vw, 6rem); opacity: 0; transform: scale(.4); transition: all .45s cubic-bezier(.3, 1.5, .5, 1); }
.bush.open .leaves { transform: translateY(40%) scale(.7); opacity: .35; }
.bush.open .who { opacity: 1; transform: translateY(-18%) scale(1); }

/* janela para liberar os livros e conta dos livros */
.unlock-tabs, .acc-tabs { display: flex; gap: 6px; background: #f3f0ff; border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.unlock-tabs button, .acc-tabs button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 8px 10px; font: 600 .88rem var(--adult); color: var(--ink-soft); cursor: pointer; }
.unlock-tabs button.on, .acc-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(43, 37, 96, .12); }
.code-dlg input + input { margin-top: 10px; }
.fine-print { font-size: .78rem !important; margin-top: 10px; }
.acc-tabs { max-width: 360px; }
.acc-form label { display: block; margin: 10px 0; }
.acc-form label[hidden] { display: none; }
.acc-terms { font-size: .9rem; }

/* ================================================================== entrada: o planeta no universo */
.screen-space { height: 100dvh; overflow: hidden; }
.space {
  position: relative; height: 100dvh; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse at 50% 55%, #3b2a8f 0%, #1d1559 38%, #0b0a2e 75%, #050418 100%);
}
.stars i { position: absolute; border-radius: 50%; background: #fff; opacity: .8; animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--d); }
.space-deco .planet { position: absolute; border-radius: 50%; }
.space-deco .p1 { width: 70px; height: 70px; left: 8%; top: 62%; background: radial-gradient(circle at 35% 30%, #ffd28a, #ff8a3d 60%, #c4521c); box-shadow: 0 0 30px rgba(255, 150, 60, .5); animation: float 6s ease-in-out infinite; }
.space-deco .p1::after { content: ""; position: absolute; left: -22px; right: -22px; top: 28px; height: 14px; border-radius: 50%; border: 4px solid rgba(255, 220, 160, .8); transform: rotate(-14deg); }
.space-deco .p2 { width: 38px; height: 38px; right: 12%; top: 20%; background: radial-gradient(circle at 35% 30%, #c8b6ff, #8a6bff 60%, #5a3fd6); animation: float 5s ease-in-out infinite reverse; }
.space-deco .moon-s { position: absolute; right: 9%; bottom: 14%; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fffbe6, #e6dcb8); box-shadow: 0 0 24px rgba(255, 250, 220, .5); }
.space-deco .comet { position: absolute; left: -10%; top: 12%; width: 140px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #fff); animation: comet 9s linear infinite; }
@keyframes comet { 0% { transform: translate(0, 0) rotate(12deg); opacity: 0; } 5% { opacity: 1; } 30% { transform: translate(120vw, 25vh) rotate(12deg); opacity: 0; } 100% { opacity: 0; transform: translate(120vw, 25vh) rotate(12deg); } }
.space-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.space-logo { height: clamp(46px, 7vw, 70px); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.space-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.space-globe { position: relative; width: min(66vmin, 600px); aspect-ratio: 1; animation: globeFloat 7s ease-in-out infinite; }
.space-globe::before { content: ""; position: absolute; inset: -7%; border-radius: 50%; background: radial-gradient(circle, rgba(140, 200, 255, .45) 55%, rgba(120, 160, 255, 0) 70%); }
.globe-img { position: relative; width: 100%; height: 100%; display: block; cursor: pointer; filter: drop-shadow(0 0 40px rgba(120, 190, 255, .45)); }
@keyframes globeFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
.brazil-pin { position: absolute; translate: -50% -50%; width: 0; height: 0; border: 0; padding: 0; background: none; cursor: pointer; z-index: 2; }
.brazil-pin::before { content: ""; position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; } /* área de toque grande */
.pin-dot { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%;
  background: conic-gradient(#ff5a5f, #ff922b, #ffd43b, #51cf66, #339af0, #9775fa, #ff5a5f); border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.pin-ring { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 4px solid #fff; animation: pinPulse 1.8s ease-out infinite; }
@keyframes pinPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.pin-label {
  position: absolute; left: 26px; top: -88px; white-space: nowrap; text-align: left; color: var(--ink);
  background: #fff; border-radius: 20px; padding: 8px 16px 8px 14px; box-shadow: 0 6px 0 #d6cff3, 0 10px 24px rgba(0, 0, 0, .3);
  animation: float 3s ease-in-out infinite;
}
.pin-label::after { content: ""; position: absolute; left: -2px; bottom: -14px; width: 26px; height: 26px; background: #fff; clip-path: polygon(0 100%, 30% 0, 100% 0); }
.pin-label b { display: block; font-family: var(--kid); font-size: clamp(1.05rem, 2.2vw, 1.45rem); line-height: 1.1; }
.pin-label small { font-family: var(--adult); font-size: .8rem; color: var(--ink-soft); }
.brazil-pin:hover .pin-label, .brazil-pin:focus-visible .pin-label { transform: scale(1.06); }
.brazil-pin:focus-visible { outline: none; }
.brazil-pin:focus-visible .pin-dot { outline: 4px solid #fff; outline-offset: 4px; }
.brazil-pin.nudge .pin-label { animation: cheer .6s ease-out 2; }
.space-guide { position: absolute; left: 18px; bottom: 18px; z-index: 3; display: flex; align-items: flex-end; gap: 8px; pointer-events: none; }
.space-guide .bubble { pointer-events: auto; max-width: 250px; }
.space-guide .char-full { animation: talk .9s ease-in-out infinite; }
/* mergulho até o Brasil */
.space.zooming .space-globe { animation: none; transform-origin: var(--ox) var(--oy); animation: diveIn 1.1s cubic-bezier(.6, 0, .9, .4) forwards; }
.space.zooming .pin-label, .space.zooming .space-guide, .space.zooming .space-top { opacity: 0; transition: opacity .25s; }
.space.zooming::after { content: ""; position: absolute; inset: 0; background: #bfe9a8; opacity: 0; animation: flashIn 1.1s ease-in forwards; z-index: 4; }
@keyframes diveIn { to { transform: scale(7); } }
@keyframes flashIn { 0%, 55% { opacity: 0; } 100% { opacity: 1; } }
.world.landing { animation: land .7s ease-out; }
@keyframes land { from { transform: scale(1.12); filter: brightness(1.4); opacity: .4; } to { transform: none; filter: none; opacity: 1; } }
@media (max-width: 700px) { .pin-label { left: 18px; top: -78px; } .space-guide .bubble { max-width: 240px; } .space-guide .char-full { height: 90px !important; } }
.reduce-motion .space-globe, .reduce-motion .stars i, .reduce-motion .comet, .reduce-motion .pin-ring { animation: none; }
/* planeta 3D */
.planet-canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; touch-action: none; cursor: grab; }
.planet-canvas:active { cursor: grabbing; }
.space.is-3d .planet-canvas { opacity: 1; }
.space.is-3d .space-globe { opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.space-stage > .brazil-pin { position: absolute; z-index: 2; transition: opacity .25s ease; }
.brazil-pin.back-side .pin-label { transform: scale(.85); }
.dive-flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  background: linear-gradient(#bfe9ff 0 45%, #9fdc78 45% 100%); }
.space.diving .space-guide, .space.diving .space-top { opacity: 0; transition: opacity .3s ease; }
.space.diving .stars, .space.diving .space-deco { transform: scale(1.5); opacity: 0; transition: transform 1.6s ease-in, opacity 1.4s ease-in; }
.world.landing { animation: land .9s cubic-bezier(.2, .7, .2, 1); }
@keyframes land { from { transform: scale(1.25); filter: blur(6px) brightness(1.25); opacity: 0; } 40% { opacity: 1; } to { transform: none; filter: none; opacity: 1; } }
.space .bubble { color: var(--ink); }
.space-logo { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35)); }
.dive-flash { background: linear-gradient(#bfe9ff 0%, #dff5ff 38%, #c8eea8 58%, #8fd06a 100%); }
/* transição suave entre as telas */
#app > section:not(.space):not(.world), #app > .kidbar + section:not(.world) { animation: screenIn .35s ease-out; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reduce-motion #app > section, .reduce-motion #app > .kidbar + section { animation: none; }
.brazil-pin.shifted .pin-label::after { display: none; }

/* ================================================================== jardim v6: tela cheia, profundidade e órbita mágica */
.screen-world { position: relative; }
.screen-world .kidbar { position: absolute; top: 0; left: 0; right: 0; background: none; backdrop-filter: none; border: 0; padding-top: 10px; padding-bottom: 0; pointer-events: none; }
.screen-world .kidbar > * { pointer-events: auto; }
.screen-world .world { height: 100dvh; flex: none; }
.screen-world .world-guide { top: 78px; }
.orbit-glow { fill: none; stroke: url(#orbitGrad); stroke-width: 18; opacity: .5; animation: orbitPulse 4.5s ease-in-out infinite; pointer-events: none; }
.orbit-line { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 3; pointer-events: none; }
@keyframes orbitPulse { 0%, 100% { opacity: .38; } 50% { opacity: .62; } }
.spark { fill: #fffbe0; animation: sparkTw 1.8s ease-in-out infinite; pointer-events: none; }
@keyframes sparkTw { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.hub-spot image { filter: drop-shadow(0 8px 10px rgba(30, 50, 80, .25)); }
.hub-spot:hover .spot-art, .hub-spot:focus-visible .spot-art { transform: scale(1.15); }
.hub-spot.pressed .spot-art { transform: scale(1.3); }
.world-svg.zoom-in { animation: zoomIn .52s cubic-bezier(.55, 0, .85, .35) forwards; }
@keyframes zoomIn { to { transform: scale(2.6); opacity: 0; filter: blur(3px); } }
.reduce-motion .orbit-glow, .reduce-motion .spark { animation: none; }
.game-gift { position: absolute; top: 10px; right: 14px; font-size: 1.5rem; animation: float 2.6s ease-in-out infinite; }

/* ================================================================== livro de verdade (leitor) */
.screen-reader { min-height: 100dvh; display: flex; flex-direction: column; }
.book-reader { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px 12px 22px;
  background: radial-gradient(ellipse at 50% 35%, #fff4dc 0%, #f2d3a2 55%, #c98f52 100%); overflow: hidden; }
.reader { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.book3d {
  --pgbg: #fffdf6; --shift: 25%;
  position: relative; width: min(94vw, 1180px, calc((100dvh - 210px) * 1.42)); aspect-ratio: 1.42;
  perspective: 2600px; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, .7, .3, 1);
}
.book3d::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -18px; height: 26px; border-radius: 50%; background: rgba(90, 50, 10, .28); filter: blur(10px); z-index: -1; }
.book3d.closed, .book3d.view-right { transform: translateX(-25%); }
.book3d.closed-back, .book3d.view-left { transform: translateX(25%); }
.book3d.closed::after { left: 52%; right: 2%; }
.book3d.closed-back::after { left: 2%; right: 52%; }
.leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.3, .7, .25, 1); }
.book3d.no-anim, .book3d.no-anim .leaf, .leaf.dragging { transition: none !important; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  background: var(--pgbg); border-radius: 4px 16px 16px 4px; box-shadow: 0 2px 0 #e9dfc8, 0 10px 24px rgba(80, 50, 10, .18); }
.face.back { transform: rotateY(180deg); border-radius: 16px 4px 4px 16px; }
.face.front::before, .face.back::before { content: ""; position: absolute; top: 0; bottom: 0; width: 9%; pointer-events: none; z-index: 3; }
.face.front::before { left: 0; background: linear-gradient(to right, rgba(60, 40, 10, .16), transparent); }
.face.back::before { right: 0; background: linear-gradient(to left, rgba(60, 40, 10, .16), transparent); }
.leaf.dragging .face { box-shadow: 0 20px 40px rgba(60, 30, 0, .3); }
.turn-zone { position: absolute; top: 0; bottom: 0; width: 13%; z-index: 4; cursor: pointer; }
.turn-zone.right { right: 0; }
.turn-zone.left { left: 0; }
.face.front .turn-zone.right::after { content: ""; position: absolute; right: 0; bottom: 0; width: 46px; height: 46px; border-radius: 0 0 16px 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, .06) 50%, #f3ead6 60%, #fff 100%); transition: width .2s, height .2s; }
.face.front .turn-zone.right:hover::after { width: 70px; height: 70px; }

/* páginas */
.pg { position: absolute; inset: 0; container-type: size; display: flex; flex-direction: column; padding: 6% 7%; color: var(--ink); }
.pg-num { position: absolute; bottom: 2.5%; left: 0; right: 0; text-align: center; font: 600 2.6cqw var(--adult); color: #b9a98a; }
.big-emoji { font-size: 22cqw; line-height: 1; text-align: center; margin-top: 8%; }
.pg h3 { font-size: 7cqw; text-align: center; margin: 4% 0 1%; line-height: 1.05; }
.pg p { text-align: center; }
.pg-desc { font: 400 3.4cqw/1.45 var(--adult); color: var(--ink-soft); }
/* capa */
.cover { background: linear-gradient(145deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000)); color: #fff; align-items: center; justify-content: center; text-align: center; cursor: pointer; }
.cover-band, .back-cover .cover-band { position: absolute; left: 0; top: 0; bottom: 0; width: 7%; background: rgba(0, 0, 0, .14); }
.cover h2 { font-size: 10cqw; line-height: 1; margin: 2% 0 5%; text-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.cover-sub { font: 700 3.6cqw var(--adult); letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.cover-art { display: flex; flex-wrap: wrap; justify-content: center; gap: 2cqw; max-width: 80%; }
.cover-art span { animation: float 3s ease-in-out infinite; animation-delay: calc(var(--i) * .25s); background: rgba(255, 255, 255, .9); border-radius: 50%; padding: 1cqw; }
.cover-art .avatar { --s: 12cqw !important; }
.cover-art span:has(> .avatar) { padding: 0; background: none; }
.cover-year { margin-top: 6%; font: 600 3cqw var(--adult); background: rgba(255, 255, 255, .22); padding: 1.2cqw 3cqw; border-radius: 999px; }
.cover-hint { position: absolute; bottom: 5%; font: 700 3.4cqw var(--kid); animation: float 2s ease-in-out infinite; }
.back-cover { background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); align-items: center; justify-content: center; color: #fff; }
.back-cover img { width: 70%; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }
.back-cover p { font: 700 4cqw var(--kid); }
/* folha de rosto */
.inside { justify-content: center; }
.ex-libris { text-align: center; border: 0.6cqw dashed #e5d6b8; border-radius: 4cqw; padding: 5% 4%; margin-bottom: 6%; }
.ex-rainbow { font-size: 12cqw; display: block; }
.ex-libris b { display: block; font-size: 5cqw; }
.ex-libris small { font: 3.2cqw var(--adult); color: var(--ink-soft); }
.how { list-style: none; padding: 0; margin: 4% 0 0; display: grid; gap: 2.4cqw; font: 3.4cqw/1.35 var(--adult); }
/* página da história */
.story { padding: 5% 6% 7%; gap: 3%; }
.illus { position: relative; flex: 0 0 56%; border-radius: 4cqw; overflow: hidden;
  background: linear-gradient(#cdeeff 0 62%, #a6dc7c 62%); box-shadow: inset 0 0 0 0.6cqw rgba(255, 255, 255, .7); }
.illus-scene { position: absolute; inset: 6% 0 auto; display: flex; justify-content: center; gap: 4cqw; }
.illus-scene .sc { font-size: 15cqw; line-height: 1; animation: float 3.2s ease-in-out infinite; animation-delay: var(--d); }
.illus-chars { position: absolute; left: 0; right: 0; bottom: 2%; display: flex; justify-content: center; gap: 6cqw; }
.pg-char { border: 0; background: none; padding: 0; cursor: pointer; }
.pg-char img { height: 24cqh !important; width: auto; }
.pg-char.hop { animation: cheer .6s ease-out; }
.star-hide { position: absolute; translate: -50% -50%; border: 0; background: none; padding: 1cqw; font-size: 5cqw; opacity: .45; cursor: pointer; filter: saturate(.6); transition: opacity .3s; }
.star-hide:hover { opacity: .8; }
.star-hide.found { opacity: 1; filter: drop-shadow(0 0 6px #ffe066); animation: starWin .8s ease-out; }
@keyframes starWin { 40% { transform: scale(1.9) rotate(20deg); } }
.pg-text { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-right: 10cqw; }
.pg-text .en { font: 800 5.4cqw/1.3 var(--kid); text-align: left; margin: 0; }
.pg-text .pt { font: 400 3.2cqw/1.35 var(--adult); color: var(--ink-soft); text-align: left; margin: 1.4% 0 0; }
.w { border-radius: 1.2cqw; padding: 0 .3cqw; cursor: pointer; transition: background .15s; }
.w.key { color: var(--accent-deep); text-decoration: underline wavy color-mix(in srgb, var(--accent) 50%, transparent); text-underline-offset: .8cqw; }
.w.lit { background: #ffe066; }
.w.pop { animation: wordPop .45s ease-out; display: inline-block; }
@keyframes wordPop { 40% { transform: scale(1.3) translateY(-1cqw); background: #ffe066; } }
.read-btn { position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 8cqw; height: 8cqw; border-radius: 50%; border: 0; background: #f3f0ff; font-size: 4cqw; cursor: pointer; }
.reading .read-btn { animation: pulse 1s ease-in-out infinite; }
/* páginas de missão */
.layer-pg { justify-content: center; background: radial-gradient(circle at 50% 40%, #fff7e6, var(--pgbg) 70%); }
.layer-pt { font: 600 4cqw var(--adult); color: var(--ink-soft); }
.activity-pg { align-items: center; justify-content: center; text-align: center; background: linear-gradient(color-mix(in srgb, var(--c) 14%, #fff), var(--pgbg) 60%); }
.act-top { position: absolute; top: 5%; left: 6%; right: 6%; display: flex; justify-content: space-between; align-items: center; }
.act-top img { width: 12cqw !important; }
.act-skill { font: 600 3cqw var(--adult); color: var(--ink-soft); background: #fff; border-radius: 999px; padding: 1cqw 3cqw; }
.activity-pg .pg-char img { height: 34cqh !important; }
.act-pt { font: 3.4cqw var(--adult); color: var(--ink-soft); margin: 0 0 4%; }
.activity-pg .play-btn { font-size: 5cqw; min-height: 13cqw; padding: 1.5cqw 7cqw; }
.done-stamp { position: absolute; top: 18%; right: 9%; width: 17cqw; height: 17cqw; border-radius: 50%; border: 0.8cqw solid #2fb344; color: #2fb344;
  display: grid; place-items: center; font-size: 6cqw; transform: rotate(-14deg); background: rgba(255, 255, 255, .8); }
.done-stamp small { font: 800 2.8cqw var(--kid); margin-top: -3cqw; }
.end-stars { text-align: center; font: 700 4cqw var(--kid); margin-top: 4%; }
.notes p { font: 600 3.4cqw var(--adult); color: #b9a98a; text-align: left; }
.notes .lines { flex: 1; background: repeating-linear-gradient(transparent 0 9cqw, #ece2cc 9cqw calc(9cqw + 2px)); }
/* livro impresso de verdade (páginas quadradas em imagem) */
.book3d.square { aspect-ratio: 2; width: min(96vw, 1240px, calc((100dvh - 200px) * 2)); }
.reader.single .book3d.square { width: min(192vw, calc((100dvh - 190px) * 2)); }
.img-pg, .img-cover, .img-back { padding: 0; background: #fff; }
.pg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-select: none; pointer-events: none; }
.img-cover .cover-hint { left: 0; right: 0; bottom: 3%; text-align: center; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .55); }
.img-pg .pg-num { bottom: 1.2%; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); font-size: 2.2cqw; }
.img-pg .star-hide { z-index: 4; opacity: .55; font-size: 4.4cqw; }
.pg-tools { position: absolute; top: 3%; right: 3%; display: flex; flex-direction: column; gap: 1.6cqw; z-index: 3; }
.pg-tools button { position: static; translate: none; width: 8.6cqw; height: 8.6cqw; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); box-shadow: 0 1cqw 2.4cqw rgba(40, 30, 80, .25); font: 800 3.8cqw var(--kid); color: var(--ink); display: grid; place-items: center; padding: 0; }
.pt-on .pt-btn, .cap-on .cap-btn { background: #ffe066; }
.pg-cap { position: absolute; left: 3%; right: 3%; bottom: 3%; z-index: 3; padding: 2.4cqw 3cqw; border-radius: 3cqw;
  background: rgba(255, 255, 255, .95); box-shadow: 0 1.4cqw 4cqw rgba(40, 30, 80, .28);
  opacity: 0; transform: translateY(6cqw); pointer-events: none; transition: opacity .3s, transform .3s; max-height: 52%; overflow: auto; }
.cap-on .pg-cap { opacity: 1; transform: none; pointer-events: auto; }
.pg-cap .en { font: 800 4.1cqw/1.3 var(--kid); text-align: left; margin: 0; }
.pg-cap .pt { display: none; font: 400 3.1cqw/1.35 var(--adult); color: var(--ink-soft); text-align: left; margin: 1.4cqw 0 0; }
.pt-on .pg-cap .pt { display: block; }
.book-spine .spine-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin: -6px 0 4px; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
/* barra do leitor */
.reader-bar { display: flex; align-items: center; gap: 16px; }
.r-info { display: flex; flex-direction: column; align-items: center; min-width: 170px; font-family: var(--adult); }
.r-pages { font-weight: 600; color: var(--ink); }
.r-stars { font-size: .85rem; color: #8a5a1c; }
@media (max-width: 700px) { .reader-bar .round-btn { width: 52px; height: 52px; } }
.reader.single { overflow: visible; }
.reader.single .book3d { width: min(184vw, calc((100dvh - 200px) * 1.42)); }
.reduce-motion .leaf, .reduce-motion .book3d { transition-duration: .01s !important; }
.kidbar.tools-left { grid-template-columns: auto 1fr; }
.screen-world .world-guide { top: 84px; }
.globe-spot { cursor: pointer; }
.globe-spot:hover .globe-spin { filter: brightness(1.08) drop-shadow(0 0 12px rgba(255, 250, 200, .9)); }

/* ================================================================== casa na árvore em 3D */
.th3d .th-wrap { grid-template-columns: 1fr 250px; }
.room-stage { position: relative; aspect-ratio: 5 / 3; border-radius: 30px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #fff6dd, #f1cf95 70%, #d9a560); box-shadow: inset 0 0 40px rgba(120, 70, 20, .25); touch-action: none; }
.room-scale { position: absolute; left: 50%; top: 50%; width: 1000px; height: 600px; margin: -300px 0 0 -500px; perspective: 1000px; perspective-origin: 50% 36%; }
.room3d { position: absolute; left: 50%; top: 52%; width: 0; height: 0; transform-style: preserve-3d; transform: translateZ(-200px) rotateX(-8deg); }
.rface { position: absolute; transform-style: preserve-3d; }
.back-wall { width: 760px; height: 420px; left: -380px; top: -210px; transform: translateZ(-260px);
  background: repeating-linear-gradient(90deg, #d99c5f 0 74px, #c98a4e 74px 78px); box-shadow: inset 0 -40px 60px rgba(90, 45, 10, .25); }
.left-wall, .right-wall { width: 520px; height: 420px; left: -260px; top: -210px;
  background: repeating-linear-gradient(90deg, #c98a4e 0 74px, #b97a42 74px 78px); }
.left-wall { transform: translateX(-380px) rotateY(90deg); box-shadow: inset -80px 0 90px rgba(70, 35, 5, .3); }
.right-wall { transform: translateX(380px) rotateY(-90deg); box-shadow: inset 80px 0 90px rgba(70, 35, 5, .3); }
.floor { width: 760px; height: 520px; left: -380px; top: -260px; transform: translateY(210px) rotateX(90deg);
  background: repeating-linear-gradient(0deg, #e6b47a 0 64px, #d9a36a 64px 67px); box-shadow: inset 0 0 90px rgba(90, 45, 10, .3); }
.rug { position: absolute; left: 22%; top: 34%; width: 56%; height: 50%; border-radius: 50%;
  background: repeating-radial-gradient(circle, #ff8fb1 0 16px, #ffd166 16px 32px, #8fd3ff 32px 48px, #b197fc 48px 64px); opacity: .85; }
.room-items, .thing { transform-style: preserve-3d; }
.room-items { position: absolute; inset: 0; }
.thing { position: absolute; width: 0; height: 0; }
.thing-shadow { position: absolute; left: -38px; top: -12px; width: 76px; height: 24px; border-radius: 50%; background: rgba(70, 35, 5, .3); filter: blur(3px); }
.thing-up { position: absolute; left: -55px; bottom: 0; width: 110px; height: 110px; border: 0; background: none; padding: 0; cursor: grab;
  font-size: 84px; line-height: 110px; transform-origin: 50% 100%; transform: rotateX(-90deg); text-shadow: 0 6px 6px rgba(60, 30, 0, .25); touch-action: none; }
.thing.drop .thing-up { animation: thingDrop .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes thingDrop { from { transform: rotateX(-90deg) translateY(-160px) scale(.6); } to { transform: rotateX(-90deg); } }
.thing-up.wiggle { animation: thingWig .5s ease-out; }
@keyframes thingWig { 30% { transform: rotateX(-90deg) translateY(-24px) rotate(-8deg); } 60% { transform: rotateX(-90deg) rotate(6deg); } }
.thing.lifted .thing-up { transform: rotateX(-90deg) translateY(-18px) scale(1.08); cursor: grabbing; }
.thing.leaving { opacity: .45; }
.win { position: absolute; overflow: hidden; border: 12px solid #fff6e6; box-shadow: inset 0 0 0 4px #b97a42, 0 6px 0 rgba(90, 45, 10, .25); background: linear-gradient(#8fd3ff, #d7f1ff); }
.win.big { left: 250px; top: 70px; width: 260px; height: 170px; border-radius: 18px; }
.win.big .sun-s { position: absolute; right: 26px; top: 14px; font-size: 46px; animation: pulse 5s ease-in-out infinite; }
.win.big .cl { position: absolute; font-size: 44px; animation: cloudDrift 18s linear infinite; }
.win.big .c1 { top: 30px; left: -60px; }
.win.big .c2 { top: 86px; left: -60px; animation-delay: -9s; font-size: 34px; }
.win.big .leaf-s { position: absolute; left: 6px; bottom: -6px; font-size: 48px; }
@keyframes cloudDrift { to { transform: translateX(380px); } }
.win.round { left: 180px; top: 90px; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; font-size: 70px; }
.door { position: absolute; left: 150px; top: 120px; width: 150px; height: 300px; border-radius: 75px 75px 0 0;
  background: repeating-linear-gradient(90deg, #9b5a26 0 36px, #8a4e1f 36px 38px); box-shadow: inset 0 0 0 8px #7a4219; }
.door .knob { position: absolute; right: 22px; top: 160px; width: 16px; height: 16px; border-radius: 50%; background: #ffd166; }
.shelf-board { position: absolute; left: 560px; top: 150px; width: 160px; height: 14px; background: #8a4e1f; border-radius: 4px; box-shadow: 0 6px 0 rgba(60, 30, 0, .25); }
.fairy { position: absolute; left: 20px; right: 20px; top: 18px; display: flex; justify-content: space-between; }
.fairy::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 24px; border-bottom: 2px solid rgba(80, 50, 20, .5); border-radius: 0 0 50% 50%; }
.fairy i { width: 14px; height: 14px; border-radius: 50%; margin-top: 18px; background: hsl(var(--h) 90% 65%); box-shadow: 0 0 14px hsl(var(--h) 90% 65%); animation: sparkTw 2.2s ease-in-out infinite; animation-delay: var(--d); }
.th3d .th-hint { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; color: #7a4a1a; text-shadow: 0 1px 0 #fff8e6; font-weight: 700; text-align: center; margin: 0; pointer-events: none; }
.th3d .th-tray-items .th-item { cursor: pointer; }
@media (max-width: 800px) { .th3d .th-wrap { grid-template-columns: 1fr; } }
.reduce-motion .win.big .cl, .reduce-motion .fairy i { animation: none; }

/* ================================================================== AVENTURA: trilhas, fases e desafios */
.hub-tabs { display: flex; gap: 10px; justify-content: center; margin: 0 auto 14px; max-width: 520px; }
.hub-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 10px 12px; border-radius: 20px; text-decoration: none;
  background: rgba(255, 255, 255, .6); color: var(--ink); font-weight: 800; font-size: 1.15rem; box-shadow: 0 5px 0 rgba(43, 37, 96, .08); }
.hub-tabs a small { font: 600 .75rem var(--adult); color: var(--ink-soft); }
.hub-tabs a.on { background: #fff; box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 55%, #fff); }
.trail-stats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 6px; }
.trail-stats span { background: rgba(255, 255, 255, .8); border-radius: 999px; padding: 5px 14px; font: 600 .9rem var(--adult); }
.trail { position: relative; max-width: 720px; margin: 0 auto; }
.trail-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.trail-path polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tp-all { stroke: rgba(255, 255, 255, .85); stroke-width: 16; stroke-dasharray: 2 22; }
.tp-done { stroke: color-mix(in srgb, var(--c) 70%, #fff); stroke-width: 12; }
.node { position: absolute; translate: -50% -50%; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  background: #fff; color: var(--ink); font: 800 2rem var(--kid); box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 60%, #fff), 0 14px 24px rgba(43, 37, 96, .18);
  transition: transform .15s; z-index: 2; }
.node.open:hover { transform: scale(1.08); }
.node.open:active { transform: scale(.95); }
.node.done { background: color-mix(in srgb, var(--c) 25%, #fff); }
.node.locked { background: #e9e6f2; color: #9a95b8; box-shadow: 0 6px 0 #d3cfe3; font-size: 1.5rem; }
.node.current { animation: nodePulse 1.4s ease-in-out infinite; }
@keyframes nodePulse { 0%, 100% { box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 60%, #fff), 0 0 0 0 color-mix(in srgb, var(--c) 50%, transparent); }
  50% { box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 60%, #fff), 0 0 0 16px color-mix(in srgb, var(--c) 0%, transparent); } }
.node.boss { width: 112px; height: 112px; font-size: 3rem; background: linear-gradient(145deg, #fff3b0, #ffd43b); }
.node.secret { width: 96px; height: 96px; background: linear-gradient(145deg, #e7dcff, #b197fc); }
.node.secret.locked { background: #e9e6f2; }
.node-stars { position: absolute; bottom: -26px; white-space: nowrap; font-size: 1.15rem; letter-spacing: -2px; }
.st { color: #d6d0e8; text-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
.st.on { color: #ffc93c; }
.node-tip { position: absolute; bottom: -24px; font: 700 .8rem var(--adult); background: #fff; border-radius: 999px; padding: 1px 8px; }
.you { position: absolute; top: -50px; animation: float 2s ease-in-out infinite; }
.you .avatar { box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.chest { position: absolute; translate: -50% -50%; font-size: 2.4rem; z-index: 1; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .2)); }
.chest:not(.opened) { animation: float 2.4s ease-in-out infinite; }
.chest.opened { opacity: .8; }

.screen-level { min-height: 100dvh; }
.level-screen { min-height: calc(100dvh - 85px); position: relative; padding: 16px clamp(12px, 3vw, 40px) 30px; display: flex; flex-direction: column; }
.lv-intro { margin: auto; text-align: center; background: rgba(255, 255, 255, .85); border-radius: 32px; padding: 26px 34px; max-width: 520px; position: relative; }
.lv-badge { position: absolute; top: -26px; left: 50%; translate: -50% 0; width: 64px; height: 64px; border-radius: 50%; background: var(--c); color: #fff;
  display: grid; place-items: center; font: 800 2rem var(--kid); box-shadow: 0 6px 0 rgba(0, 0, 0, .15); }
.lv-intro h2 { margin: 8px 0 4px; font-size: 1.8rem; }
.lv-rules { font: 600 .95rem var(--adult); color: var(--ink-soft); }
.lv-best { font-size: 1.8rem; margin-bottom: 12px; }
.is-boss .lv-intro { box-shadow: 0 0 0 6px #ffd43b, 0 0 40px rgba(255, 200, 0, .5); }
.is-secret .lv-intro { box-shadow: 0 0 0 6px #b197fc, 0 0 40px rgba(155, 93, 229, .5); }
.lv-play { flex: 1; display: flex; flex-direction: column; gap: 12px; max-width: 980px; width: 100%; margin: 0 auto; position: relative; }
.lv-play.shake { animation: shake .35s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
.lv-hud { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: rgba(255, 255, 255, .85); border-radius: 999px; padding: 8px 16px; }
.lv-hearts { font-size: 1.6rem; letter-spacing: 2px; }
.lv-hearts .h.lost { filter: grayscale(1); opacity: .35; transform: scale(.8); transition: all .3s; }
.lv-prog { height: 14px; background: #ece8f7; border-radius: 999px; overflow: hidden; }
.lv-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 60%, #fff)); border-radius: 999px; transition: width .4s; }
.lv-timer { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.tbar { flex: 1; height: 12px; border-radius: 999px; background: #ece8f7; overflow: hidden; }
.tbar i { display: block; height: 100%; width: 100%; background: #2fb344; border-radius: 999px; }
.tbar.low i { background: #ff4d4f; animation: pulse .6s ease-in-out infinite; }
.tsec { font: 700 1rem var(--adult); min-width: 34px; }
.lv-prompt { text-align: center; background: #fff; border-radius: 24px; padding: 10px 56px 10px 20px; position: relative; box-shadow: 0 6px 0 rgba(43, 37, 96, .08); }
.lv-prompt b { display: block; font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.15; }
.lv-prompt small { font: .95rem var(--adult); color: var(--ink-soft); }
.lv-say { position: absolute; right: 10px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #f3f0ff; font-size: 1.2rem; cursor: pointer; }
.lv-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 340px; }
.lv-flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; z-index: 30; }
.lv-flash.good { background: radial-gradient(circle, rgba(47, 179, 68, .18), transparent 70%); animation: flashOut .4s ease-out; }
.lv-flash.bad { background: radial-gradient(circle, rgba(255, 77, 79, .22), transparent 70%); animation: flashOut .4s ease-out; }
@keyframes flashOut { from { opacity: 1; } to { opacity: 0; } }

/* escolher */
.em { font-size: 1em; line-height: 1; display: inline-block; }
.ch-visual { background: rgba(255, 255, 255, .75); border-radius: 26px; padding: 14px 20px; max-width: 100%; }
.ch-opts { display: grid; gap: 16px; width: 100%; max-width: 860px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.ch-opts.n2, .ch-opts.two { grid-template-columns: 1fr 1fr; }
.ch-opts.n3 { grid-template-columns: repeat(3, 1fr); }
.ch-opts.n4 { grid-template-columns: repeat(4, 1fr); }
.ch-opts.n5 { grid-template-columns: repeat(5, 1fr); }
.ch-opts.n6 { grid-template-columns: repeat(6, 1fr); }
.ch-opt { min-height: 120px; border: 0; border-radius: 26px; background: #fff; font-size: clamp(3rem, 7vw, 4.8rem); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 8px 0 #ddd6f3; transition: transform .1s; padding: 10px; }
.ch-opt:active { transform: translateY(5px); box-shadow: 0 3px 0 #ddd6f3; }
.ch-opt small { font: 700 1rem var(--kid); color: var(--ink); }
.ch-opt.right { background: #e6fbe9; box-shadow: 0 8px 0 #8fdc9c; animation: cheer .5s; }
.ch-opt.wrong { background: #ffe8e8; box-shadow: 0 8px 0 #ffb3b3; opacity: .55; animation: shake .3s; }
.ch-opt .num { font: 800 clamp(2.4rem, 6vw, 3.6rem) var(--kid); color: var(--ink); }
.ch-opt .shape { width: clamp(60px, 9vw, 90px); height: auto; }
.ch-opts.two .ch-opt { min-height: 170px; }
.ch-listen { width: 86px; height: 86px; border-radius: 50%; border: 0; background: #fff; font-size: 2.6rem; cursor: pointer; box-shadow: 0 7px 0 #ddd6f3; animation: pulse 1.8s ease-in-out infinite; }
.ch-listen.sm { width: 52px; height: 52px; font-size: 1.4rem; animation: none; position: absolute; right: -60px; top: 50%; translate: 0 -50%; }
.scatter { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; max-width: 620px; font-size: clamp(2.2rem, 5vw, 3rem); }
.sum { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; font-size: clamp(2rem, 4.6vw, 2.8rem); }
.sum .grp { display: flex; flex-wrap: wrap; max-width: 220px; justify-content: center; }
.sum.big b { font: 800 clamp(3rem, 8vw, 4.6rem) var(--kid); }
.op { font: 800 2.6rem var(--kid); color: var(--accent); }
.q { font: 800 3rem var(--kid); color: var(--warn); }
.seq { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.seq .tile { min-width: 70px; height: 70px; border-radius: 18px; background: #fff; display: grid; place-items: center; font: 800 2rem var(--kid); box-shadow: 0 5px 0 #ddd6f3; padding: 0 8px; }
.seq .tile.q { background: #fff6c2; border: 3px dashed var(--sun); color: var(--warn); }
.grpbox { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; font-size: clamp(1.8rem, 4vw, 2.4rem); max-width: 260px; }
.num.huge { font-size: clamp(3.6rem, 9vw, 5rem) !important; }
.shadow-pic { font-size: clamp(6rem, 14vw, 9rem); }
.em.shadow { filter: brightness(0); opacity: .82; }
.scene-card { display: flex; align-items: center; gap: 16px; font-size: 4rem; }
.scene-card p { font: 800 clamp(1.3rem, 3vw, 1.8rem) var(--kid); margin: 0; max-width: 420px; }
.big-item { font-size: clamp(5rem, 12vw, 8rem); }
.ch-opts.bins .ch-opt { min-height: 150px; }
.letter-big { font: 800 clamp(5rem, 12vw, 7.5rem) var(--kid); color: var(--accent-deep); letter-spacing: 6px; }
.cblob { display: inline-block; width: clamp(60px, 9vw, 86px); height: clamp(60px, 9vw, 86px); border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; background: var(--b); box-shadow: inset -6px -8px 0 rgba(0, 0, 0, .12), 0 0 0 3px rgba(0, 0, 0, .06); }
.mix { display: flex; align-items: center; gap: 14px; }
.word { font: 800 clamp(1.3rem, 3vw, 1.8rem) var(--kid); color: var(--ink); }
/* procurar */
.find-target { font: 800 1.4rem var(--kid); background: #fff; border-radius: 999px; padding: 4px 18px; }
.find-target span { font-size: 2rem; vertical-align: middle; }
.find-field { position: relative; width: 100%; max-width: 900px; height: min(56vh, 480px); background: linear-gradient(#cdeeff 0 45%, #a6dc7c 45%); border-radius: 28px; overflow: hidden; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .6); }
.fi { position: absolute; translate: -50% -50%; border: 0; background: none; padding: 4px; font-size: clamp(2.2rem, 4.6vw, 3rem); cursor: pointer; transform: rotate(var(--r)); animation: bobFi 3s ease-in-out infinite; animation-delay: var(--d); }
.fi.sm { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
@keyframes bobFi { 50% { translate: -50% -58%; } }
.fi.found { animation: starWin .7s; transform: scale(1.6); z-index: 2; filter: drop-shadow(0 0 10px #ffe066); }
.fi.nope { animation: shake .3s; }
/* bolhas */
.bub-field { position: relative; width: 100%; max-width: 860px; height: min(56vh, 460px); }
.bub { position: absolute; translate: -50% -50%; width: clamp(70px, 10vw, 96px); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 32% 28%, #fff 0 12%, rgba(173, 216, 255, .85) 13%, rgba(120, 180, 255, .55) 70%, rgba(80, 140, 255, .6));
  font: 800 clamp(1.8rem, 4vw, 2.4rem) var(--kid); color: #1e3a8a; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7), 0 6px 14px rgba(40, 80, 160, .2);
  animation: bubFloat var(--sp) ease-in-out infinite; animation-delay: var(--d); }
@keyframes bubFloat { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(14px, -18px); } 66% { transform: translate(-12px, 10px); } }
.bub.popped { animation: popAway .3s forwards; pointer-events: none; }
.bub.nope { background: radial-gradient(circle at 32% 28%, #fff 0 12%, #ffc2c2 13%, #ff8a8a); }
/* memória */
.mem { display: grid; grid-template-columns: repeat(var(--cols), minmax(70px, 130px)); gap: 12px; justify-content: center; perspective: 800px; }
.mc { aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; }
.mc-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s; }
.mc.up .mc-in { transform: rotateY(180deg); }
.mc-back, .mc-front { position: absolute; inset: 0; border-radius: 20px; display: grid; place-items: center; backface-visibility: hidden; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.mc-back { background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); color: #fff7c2; box-shadow: 0 6px 0 rgba(0, 0, 0, .15); }
.mc-front { background: #fff; transform: rotateY(180deg); box-shadow: 0 6px 0 #ddd6f3; padding: 4px; text-align: center; }
.mc.match .mc-front { background: #e6fbe9; box-shadow: 0 6px 0 #8fdc9c; }
/* soletrar */
.sp-pic { position: relative; font-size: clamp(5rem, 12vw, 7rem); }
.sp-slots { display: flex; gap: 10px; }
.sp-slot { width: clamp(54px, 9vw, 76px); height: clamp(64px, 10vw, 86px); border-radius: 16px; background: #fff; border: 4px dashed #cfc7ef; display: grid; place-items: center; font: 800 clamp(2.2rem, 5vw, 3rem) var(--kid); text-transform: uppercase; }
.sp-slot.given { border-style: solid; border-color: #e3ddf7; color: var(--ink-soft); }
.sp-slot.filled { border-style: solid; border-color: #8fdc9c; background: #e6fbe9; animation: cheer .4s; }
.sp-letters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 640px; }
.sp-l { width: clamp(60px, 9vw, 78px); height: clamp(60px, 9vw, 78px); border: 0; border-radius: 18px; background: var(--c); color: #fff; font: 800 clamp(2rem, 4.6vw, 2.6rem) var(--kid); text-transform: uppercase; cursor: pointer; box-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
.sp-l.used { opacity: .2; transform: scale(.85); }
.sp-l.nope { animation: shake .3s; background: #ff4d4f; }
/* sequência (simon) */
.simon-msg { font: 800 1.4rem var(--kid); min-height: 1.6em; }
.simon { display: grid; grid-template-columns: repeat(2, minmax(110px, 170px)); gap: 16px; }
.pad { aspect-ratio: 1; border: 0; border-radius: 30px; background: color-mix(in srgb, var(--pc) 55%, #fff); font-size: clamp(3rem, 7vw, 4.4rem); color: #fff; cursor: pointer;
  box-shadow: 0 8px 0 color-mix(in srgb, var(--pc) 70%, #000); transition: transform .1s, filter .1s; }
.pad.lit { background: var(--pc); filter: brightness(1.25) drop-shadow(0 0 22px var(--pc)); transform: scale(1.06); }
.pad:disabled { cursor: default; }
/* copiar desenho */
.copy-wrap { display: flex; gap: clamp(16px, 4vw, 44px); align-items: flex-end; flex-wrap: wrap; justify-content: center; }
.copy-wrap small { display: block; text-align: center; font: 700 .9rem var(--adult); margin-bottom: 6px; color: var(--ink-soft); }
.cgrid { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; padding: 8px; background: #fff; border-radius: 20px; box-shadow: 0 6px 0 #ddd6f3; }
.copy-model .cgrid { width: clamp(150px, 22vw, 210px); }
.cgrid.mine { width: clamp(220px, 34vw, 320px); }
.cc { display: block; aspect-ratio: 1; border-radius: 10px; background: var(--cc); border: 2px solid rgba(0, 0, 0, .08); padding: 0; }
button.cc { cursor: pointer; }
.cc.splash { animation: cheer .35s; }
.cc.off { box-shadow: inset 0 0 0 3px #ff4d4f; }
.palette2 { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.sw2 { width: 64px; height: 64px; border-radius: 50%; border: 5px solid #fff; background: var(--cc, #fff); box-shadow: 0 5px 0 rgba(0, 0, 0, .15); cursor: pointer; font-size: 1.6rem; }
.sw2.on { outline: 5px solid var(--ink); outline-offset: 2px; }
/* pegar o que cai */
.catch-goal { font: 800 1.6rem var(--kid); background: #fff; border-radius: 999px; padding: 4px 20px; }
.catch-field { position: relative; width: 100%; max-width: 900px; height: min(58vh, 500px); border-radius: 28px; overflow: hidden;
  background: linear-gradient(#7cc8ff, #2f8fe8 70%, #2366c4); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .5); }
.fall { position: absolute; top: -70px; translate: -50% 0; border: 0; background: none; font-size: clamp(2.8rem, 6vw, 3.8rem); cursor: pointer; padding: 6px; animation: fall linear forwards; touch-action: manipulation; }
@keyframes fall { to { top: 105%; transform: rotate(25deg); } }
.fall.hit { animation-play-state: paused; transform: scale(1.5); opacity: 0; transition: all .25s; }
/* o Titto mandou */
.says-cmd { font: 800 clamp(1.8rem, 4.4vw, 2.6rem) var(--kid); background: #fff; border-radius: 26px; padding: 14px 26px; box-shadow: 0 6px 0 #ddd6f3; }
.says-cmd.ok { background: #e6fbe9; }
.says-cmd.bad { background: #ffe8e8; animation: shake .3s; }
.says-bar { width: min(520px, 90%); height: 10px; border-radius: 999px; background: #ece8f7; overflow: hidden; }
.says-bar i { display: block; height: 100%; width: 100%; background: var(--c); transform-origin: left; animation: drain linear forwards; }
@keyframes drain { to { transform: scaleX(0); } }
.says-moves { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; width: 100%; max-width: 820px; }
.mv { border: 0; border-radius: 24px; background: #fff; font-size: 3.2rem; padding: 12px 6px; cursor: pointer; box-shadow: 0 7px 0 #ddd6f3; display: flex; flex-direction: column; align-items: center; }
.mv small { font: 800 1.05rem var(--kid); color: var(--ink); }
.mv:active { transform: translateY(5px); box-shadow: 0 2px 0 #ddd6f3; }

/* resultado */
.lv-result-back { position: fixed; inset: 0; z-index: 40; background: rgba(30, 20, 70, .45); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(3px); }
.lv-result { position: relative; background: #fff; border-radius: 34px; padding: 22px 28px 24px; width: min(560px, 100%); text-align: center; overflow: hidden; animation: enter .45s cubic-bezier(.3, 1.5, .5, 1); max-height: 92dvh; overflow-y: auto; }
.lv-result h2 { margin: 6px 0 0; font-size: 2rem; }
.lv-result p { margin: 4px 0 8px; color: var(--ink-soft); font-family: var(--adult); }
.res-stars { font-size: 4.2rem; letter-spacing: 6px; margin: 4px 0 8px; }
.rs { color: #e3ddf2; display: inline-block; }
.rs.on { color: #ffc93c; animation: starIn .5s cubic-bezier(.3, 1.8, .5, 1) both; animation-delay: var(--d); text-shadow: 0 4px 0 #e0a800; }
@keyframes starIn { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
.res-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.res-chips span { background: #f3f0ff; border-radius: 999px; padding: 4px 14px; font: 700 .95rem var(--adult); }
.res-chest { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff8e1; border: 2px solid #ffe08a; border-radius: 20px; padding: 10px 14px; margin: 8px 0; }
.res-chest > span { font-size: 2.6rem; }
.res-chest b { display: block; }
.res-chest small { font-family: var(--adult); color: var(--ink-soft); }
.chest-anim { animation: chestOpen 1s ease-out; display: inline-block; }
@keyframes chestOpen { 0% { transform: scale(.4) rotate(-20deg); } 50% { transform: scale(1.4) rotate(10deg); filter: drop-shadow(0 0 16px #ffd43b); } 100% { transform: none; } }
.res-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }
.res-actions .big-btn { min-height: 62px; font-size: 1.2rem; padding: 8px 22px; }
.lose .res-stars { opacity: .5; }

/* placar do jardim */
.adv-hud { display: flex; gap: 8px; align-items: center; pointer-events: auto; flex-wrap: wrap; }
.hud-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .92); border: 0; border-radius: 999px; padding: 6px 14px; font: 800 1.1rem var(--kid); color: var(--ink); box-shadow: 0 4px 0 rgba(43, 37, 96, .12); }
.hud-chip.dim { opacity: .7; }
button.hud-chip { cursor: pointer; }
.hud-missions.ready { background: #ffe066; animation: pulse 1.2s ease-in-out infinite; }
.hud-pet { border: 0; background: rgba(255, 255, 255, .92); border-radius: 50%; width: 58px; height: 58px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 rgba(43, 37, 96, .12); }
.kidbar.tools-left { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* bichinho */
.pet { position: relative; display: inline-grid; place-items: center; font-size: var(--ps); line-height: 1; }
.pet-body { display: inline-block; animation: petIdle 2.4s ease-in-out infinite; }
@keyframes petIdle { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6%) scale(1.03, .98); } }
.pet-acc { position: absolute; top: -18%; left: 50%; translate: -50% 0; font-size: .5em; }
.pet.legend .pet-body { filter: drop-shadow(0 0 6px #ff9de2) drop-shadow(0 0 12px #9fd3ff); }
.adv-back { z-index: 60; }
.adv-modal { position: relative; background: #fff; border-radius: 30px; padding: 24px 26px; width: min(520px, 100%); text-align: center; animation: enter .35s; font-family: var(--adult); max-height: 92dvh; overflow-y: auto; }
.adv-modal h2 { font: 800 1.7rem var(--kid); margin: 0 0 4px; }
.adv-modal h3 { font: 800 1.2rem var(--kid); margin: 14px 0 6px; }
.adv-x { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f3f0ff; font-size: 1.1rem; cursor: pointer; }
.muted-k { color: var(--ink-soft); font-size: .92rem; }
.mis-list { display: grid; gap: 10px; margin: 12px 0; text-align: left; }
.mis { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: #f8f6ff; border-radius: 18px; padding: 10px 14px; }
.mis.ok { background: #e6fbe9; }
.mis-e { font-size: 1.8rem; }
.mis b { font-size: .95rem; }
.mis-bar { height: 10px; background: #e3ddf2; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.mis-bar.big { height: 14px; margin: 8px auto; max-width: 320px; }
.mis-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffc93c, #ff922b); border-radius: 999px; }
.mis-n { font-weight: 700; }
.mis-streak { margin: 6px 0 14px; font-size: .95rem; }
.pet-stage { margin: 10px 0 4px; }
.pet-name { font: 800 1.3rem var(--kid); }
.pet-evo { display: flex; justify-content: center; align-items: center; gap: 4px; font-size: 1.8rem; margin: 8px 0; }
.pet-evo span:not(.on) { opacity: .4; }
.pet-evo i { font-style: normal; font-size: 1rem; color: #b7b0d4; }
.pet-accs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.acc { border: 3px solid transparent; background: #f8f6ff; border-radius: 18px; padding: 8px 10px; font-size: 2rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; min-width: 74px; }
.acc small { font-size: .72rem; }
.acc.on { border-color: var(--accent); background: #efe9ff; }
.acc:disabled { opacity: .5; cursor: default; }
.th-item.rare, .thing-up.rare { filter: drop-shadow(0 0 6px #ffe066) drop-shadow(0 0 2px #fff); }
.pet-thing .thing-up { font-size: 0; }
.reduce-motion .bub, .reduce-motion .fi, .reduce-motion .pet-body, .reduce-motion .node.current { animation: none; }
@media (max-width: 700px) {
  .ch-opts.n4, .ch-opts.n5, .ch-opts.n6 { grid-template-columns: repeat(3, 1fr); }
  .ch-opt { min-height: 96px; }
  .lv-hud { grid-template-columns: auto 1fr; }
  .lv-timer { grid-column: 1 / -1; }
  .node { width: 70px; height: 70px; font-size: 1.6rem; }
}
.trail::before { content: ""; position: absolute; inset: -20px -40px; pointer-events: none; opacity: .55;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .9) 0 3px, transparent 4px), radial-gradient(circle, rgba(255, 255, 255, .6) 0 2px, transparent 3px);
  background-size: 120px 150px, 70px 90px; background-position: 0 0, 35px 45px; }
.trail::after { content: "☁️      ✨            ☁️\A\A\A\A\A    ✨          ☁️       ✨\A\A\A\A\A ☁️           ✨     ☁️"; white-space: pre; position: absolute; inset: 0; font-size: 2.4rem; opacity: .5; pointer-events: none; line-height: 1.6; text-align: center; }

/* ================================================================== VIAGEM (montar, dar vida, explorar) */
.screen-trip { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.trip-host { flex: 1; min-height: 0; position: relative; background: #1b1446; }
.trip { position: absolute; inset: 0; display: flex; flex-direction: column; }
.trip-svg { flex: 1; width: 100%; min-height: 0; display: block; touch-action: none; user-select: none; }
.trip-svg text { user-select: none; }
.trip-msg { position: absolute; top: 12px; left: 50%; translate: -50% 0; background: #fff; border-radius: 22px; padding: 8px 22px; text-align: center; box-shadow: 0 6px 0 rgba(43, 37, 96, .15); max-width: 90%; pointer-events: none; z-index: 3; }
.trip-msg b { display: block; font: 800 clamp(1.1rem, 2.6vw, 1.6rem) var(--kid); }
.trip-msg small { font: .9rem var(--adult); color: var(--ink-soft); }
.trip-msg.pop { animation: enter .35s cubic-bezier(.3, 1.5, .5, 1); }
.trip-bar { display: flex; justify-content: center; align-items: center; gap: clamp(8px, 2vw, 18px); padding: 10px; background: rgba(30, 20, 80, .85); z-index: 3; }
.board { fill: #e8c48e; stroke: #b98b52; stroke-width: 6; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .18)); transition: opacity .6s; }
.board.fade, .slots.fade { opacity: 0; }
.sil * { fill: #b98b52 !important; stroke: none !important; }
.sil { opacity: .85; transition: opacity .3s; }
.sil.hot * { fill: #fff3b0 !important; }
.sil.filled { opacity: 0; }
.part { cursor: grab; }
.part-in { animation: flyIn .6s cubic-bezier(.3, 1.4, .5, 1) both; transform-box: fill-box; transform-origin: center; }
@keyframes flyIn { from { transform: translateX(-500px) rotate(-90deg) scale(.4); opacity: 0; } }
.part.dragging { cursor: grabbing; filter: drop-shadow(0 14px 10px rgba(0, 0, 0, .35)); }
.part.snap .part-in { animation: snapIn .35s ease-out; }
@keyframes snapIn { 40% { transform: scale(1.12); } }
.built.ready { filter: drop-shadow(0 0 18px rgba(255, 245, 170, .9)); animation: readyPulse 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes readyPulse { 50% { transform: scale(1.03); } }
.veh-flame { opacity: 0; }
.go-rocket .veh-flame, .go-balloon .veh-flame, .go-submarine .veh-flame { opacity: 1; }
.flame { transform-box: fill-box; transform-origin: 50% 0; animation: flick .12s ease-in-out infinite alternate; }
@keyframes flick { to { transform: scaleY(1.2) scaleX(.9); } }
.built.go-rocket { animation: liftOff 1.5s cubic-bezier(.6, 0, .9, .4) forwards; }
@keyframes liftOff { 0% { transform: translate(0, 0); } 20% { transform: translate(-4px, 4px); } 30% { transform: translate(4px, -4px); } 100% { transform: translate(0, -900px); } }
.built.go-submarine { animation: dive 1.5s cubic-bezier(.6, 0, .9, .4) forwards; }
@keyframes dive { 100% { transform: translate(400px, 700px) rotate(20deg); } }
.built.go-balloon { animation: floatAway 1.6s ease-in forwards; }
@keyframes floatAway { 100% { transform: translate(120px, -900px); } }
.trip.warp .trip-svg { animation: warpOut 1.1s ease-in forwards; }
.trip.warp::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .55) 0 1deg, transparent 1deg 9deg), radial-gradient(circle, #fff 0, #a78bfa 30%, #1b1446 75%);
  animation: warpIn 1.1s ease-in forwards; }
@keyframes warpOut { to { transform: scale(1.6); opacity: 0; filter: blur(6px); } }
@keyframes warpIn { from { opacity: 0; transform: scale(.4); } 60% { opacity: 1; } to { opacity: 1; transform: scale(1.8); } }
.trip.arrive .trip-svg { animation: arriveIn .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes arriveIn { from { transform: scale(1.5); opacity: 0; filter: blur(8px); } }
.landed > * { animation: landDown 1.2s cubic-bezier(.2, .8, .3, 1.1) both; }
@keyframes landDown { from { transform: translateY(-700px); } }
.land-submarine > * { animation-name: subIn; }
@keyframes subIn { from { transform: translate(-900px, 0); } }
.explorer { transition: transform .9s ease-in-out; }
.ex-in { animation: enter .6s 1s both; transform-box: fill-box; transform-origin: 50% 100%; }
.explorer.walking .ex-in { animation: walkBob .3s ease-in-out infinite alternate; }
@keyframes walkBob { to { transform: translateY(-10px) rotate(3deg); } }
.explorer.dancing .ex-in { animation: danceIt .4s ease-in-out infinite alternate; }
@keyframes danceIt { from { transform: rotate(-8deg) translateY(0); } to { transform: rotate(8deg) translateY(-14px); } }
/* barra de energia */
.fuel-slots { display: flex; gap: 6px; margin-right: 12px; }
.fs { width: 26px; height: 42px; border-radius: 8px; border: 3px solid #fff; background: var(--fc); }
.fs.full { box-shadow: 0 0 12px var(--fc); }
.gem { width: clamp(64px, 10vw, 86px); height: clamp(64px, 10vw, 86px); border: 5px solid #fff; border-radius: 22px; transform: rotate(45deg) scale(.82); cursor: pointer;
  background: radial-gradient(circle at 30% 30%, #fff 0 10%, var(--gc) 40%, color-mix(in srgb, var(--gc) 70%, #000)); box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.gem.go { animation: gemGo .5s ease-in forwards; }
@keyframes gemGo { to { transform: rotate(45deg) scale(.2) translateY(-200px); opacity: 0; } }
.gem.nope { animation: shake .3s; }
/* barra de explorar (como no vídeo) */
.trip-bar.props { gap: clamp(6px, 1.6vw, 14px); }
.prop { position: relative; width: clamp(58px, 9vw, 84px); height: clamp(58px, 9vw, 84px); border-radius: 18px; border: 3px solid rgba(255, 255, 255, .6); cursor: pointer;
  background: linear-gradient(#7a6ff0, #4b3fc4); font-size: clamp(1.9rem, 4.4vw, 2.8rem); box-shadow: 0 5px 0 rgba(0, 0, 0, .3); transition: transform .1s; }
.prop:active { transform: translateY(4px); }
.prop.on { background: linear-gradient(#ffd43b, #ff922b); transform: scale(1.08); }
.prop .pdot { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; background: #ff5fa2; border: 2px solid #fff; }
.prop.seen .pdot { background: #2fb344; }
.prop-count { color: #fff; font: 800 1.2rem var(--kid); margin-left: 8px; }
/* cenários e surpresas */
.twk { animation: twinkle2 2.4s ease-in-out infinite; }
@keyframes twinkle2 { 50% { opacity: .2; } }
.ray { animation: rayMove 6s ease-in-out infinite alternate; }
@keyframes rayMove { to { transform: translateX(60px); opacity: .12; } }
.weed { animation: sway 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.pop-up > * { transform-box: fill-box; transform-origin: 50% 100%; animation: popUp .55s cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes popUp { from { transform: scale(0) translateY(60px); } }
.bye { transition: opacity .5s, transform .5s; opacity: 0; }
.dance { transform-box: fill-box; transform-origin: 50% 100%; animation: popUp .55s cubic-bezier(.3, 1.7, .5, 1) both, danceIt .45s .55s ease-in-out infinite alternate; }
.drop-in { animation: dropIn .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes dropIn { from { transform: translateY(-300px); opacity: 0; } }
.cnum { fill: #fff; font-family: var(--kid); font-weight: 800; opacity: 0; paint-order: stroke; stroke: rgba(0, 0, 0, .4); stroke-width: 4; }
.counted .cnum { opacity: 1; transition: opacity .2s; }
.counted > text:first-child { transform-box: fill-box; transform-origin: center; animation: cheer .4s; }
.plant-flag > * { transform-box: fill-box; transform-origin: 30% 100%; animation: flagIn .7s cubic-bezier(.3, 1.6, .5, 1) both, sway 2s .7s ease-in-out infinite; }
@keyframes flagIn { from { transform: translateY(-140px) rotate(-30deg); } }
.grow > * { transform-box: fill-box; transform-origin: 50% 100%; animation: growUp 1.2s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes growUp { from { transform: scaleY(0); } }
.glow { filter: drop-shadow(0 0 10px #ff9de2); }
.shoot { animation: shootAcross 1.3s ease-in both; }
@keyframes shootAcross { from { transform: translate(250px, 40px); opacity: 0; } 15% { opacity: 1; } to { transform: translate(950px, 320px); opacity: 0; } }
.beam { opacity: .3; animation: beamFlash .5s ease-in-out infinite alternate; }
@keyframes beamFlash { to { opacity: .05; } }
.disco > text { transform-box: fill-box; transform-origin: center; animation: spinIt 2s linear infinite; }
@keyframes spinIt { to { transform: rotate(360deg); } }
.swim { animation: swimAcross 2.6s linear both; }
@keyframes swimAcross { from { transform: translate(-60px, var(--y)); } to { transform: translate(1150px, calc(var(--y) - 40px)); } }
.ink { animation: inkPuff 1.2s ease-out forwards; transform-box: fill-box; transform-origin: center; }
@keyframes inkPuff { to { transform: scale(5); opacity: 0; } }
.coin { animation: coinOut .7s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes coinOut { from { transform: translate(0, 40px) scale(.2); } to { transform: translate(var(--dx), -40px); } }
.jelly { animation: jellyUp 2.2s ease-in-out both; }
.jelly > * { filter: drop-shadow(0 0 14px #fff); }
@keyframes jellyUp { from { opacity: 0; } 30% { opacity: 1; } to { opacity: .9; translate: 0 -60px; } }
.whale-swim { animation: whaleAcross 2.6s ease-in-out both; }
@keyframes whaleAcross { from { transform: translate(1150px, 280px); } to { transform: translate(-250px, 220px); } }
.bub-up { animation: bubRise 3.2s ease-in both; cursor: pointer; }
@keyframes bubRise { to { transform: translateY(-620px); } }
.bub-up.popped { opacity: 0; transition: opacity .15s; }
.swing { transform-box: view-box; transform-origin: 560px 0; animation: swingIt 1.1s ease-in-out infinite alternate; }
@keyframes swingIt { from { transform: rotate(-25deg); } to { transform: rotate(25deg); } }
.fly-in { animation: flyFrom 1s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes flyFrom { from { transform: translate(400px, -200px); } }
.bloom > text { transform-box: fill-box; transform-origin: 50% 100%; animation: growUp .7s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: inherit; }
.spray circle { opacity: 0; animation: sprayIt .9s ease-out infinite; }
@keyframes sprayIt { 30% { opacity: 1; } to { opacity: 0; transform: translateY(40px); } }
.flutter { animation: flutterIt 1.2s ease-in-out infinite alternate, dropIn .6s both; }
@keyframes flutterIt { to { transform: translate(10px, -16px); } }
.drop { animation: rainFall .7s linear infinite; }
@keyframes rainFall { to { transform: translate(-40px, 640px); } }
.rainbow-arc { opacity: 0; animation: fadeInArc 1.2s 1s ease-out forwards; }
@keyframes fadeInArc { to { opacity: .85; } }
.reduce-motion .trip *, .reduce-motion .trip::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
.hub-tabs a.trip-tab { background: linear-gradient(135deg, #fff3b0, #ffd6f5); animation: pulse 2.4s ease-in-out infinite; }
.part.fixed .hit { display: none; }

/* ================================================================== Mundo dos Pequenos e jogos novos */
.ch-opts.baby { grid-template-columns: repeat(auto-fit, minmax(170px, 260px)); justify-content: center; gap: 26px; }
.ch-opts.baby .ch-opt { min-height: 200px; font-size: clamp(4.4rem, 11vw, 7rem); border-radius: 36px; }
.ch-opts.baby .cblob { width: clamp(110px, 16vw, 150px); height: clamp(110px, 16vw, 150px); }
.ch-opts.two-text .ch-opt { font-size: 3.4rem; }
.ch-opts.two-text .ch-opt small { font-size: 1.05rem; }
.lv-baby { font-size: 2rem; }
.pc-goal { display: flex; gap: 12px; }
.pc-dot { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .08); transition: all .3s; }
.pc-dot.on { background: #ffd43b; transform: scale(1.15); box-shadow: 0 0 14px #ffd43b; }
.pc-field, .pr-field { position: relative; width: 100%; max-width: 860px; height: min(54vh, 440px); }
.pc-it { position: absolute; translate: -50% -50%; border: 0; background: none; font-size: clamp(4.4rem, 10vw, 6.4rem); cursor: pointer; animation: bobFi 3s ease-in-out infinite; animation-delay: var(--d); }
.pc-it.popped { animation: popAway .35s forwards; pointer-events: none; }
.peek-row, .cf-row { display: flex; gap: clamp(16px, 4vw, 40px); justify-content: center; flex-wrap: wrap; }
.peek { position: relative; width: clamp(140px, 22vw, 200px); aspect-ratio: 1; border: 0; background: none; cursor: pointer; }
.peek .pk-a, .peek .pk-c { position: absolute; inset: 0; display: grid; place-items: center; transition: all .45s cubic-bezier(.3, 1.5, .5, 1); }
.peek .pk-a { font-size: clamp(4rem, 9vw, 6rem); transform: scale(.3) translateY(30%); opacity: 0; }
.peek .pk-c { font-size: clamp(7rem, 15vw, 10rem); animation: sway 2.4s ease-in-out infinite; }
.peek.open .pk-c { transform: translateY(45%) scale(.7); opacity: .35; animation: none; }
.peek.open .pk-a { transform: translateY(-15%); opacity: 1; }
.cf { position: relative; border: 0; background: #fff; border-radius: 40px; width: clamp(130px, 20vw, 180px); aspect-ratio: 1; font-size: clamp(4.4rem, 10vw, 6rem); cursor: pointer; box-shadow: 0 8px 0 #ddd6f3; }
.cf .cf-heart { position: absolute; top: -10px; right: -6px; font-size: 2.4rem; opacity: 0; transform: scale(0); transition: all .4s cubic-bezier(.3, 1.8, .5, 1); }
.cf.ok { background: #fff0f6; box-shadow: 0 8px 0 #ffc4de; animation: cheer .5s; }
.cf.ok .cf-heart { opacity: 1; transform: none; }
.br-count { font: 800 1.6rem var(--kid); background: #fff; border-radius: 999px; padding: 4px 20px; }
.br-ball { width: min(60vw, 330px); aspect-ratio: 1; border: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, .3)); cursor: pointer; touch-action: none; display: grid; place-items: center; user-select: none; -webkit-user-select: none; }
.br-b { font-size: 8rem; display: inline-block; transform: scale(.5); filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .15)); }
.br-tip { font: 800 1.3rem var(--kid); }
.pr-bub { position: absolute; translate: -50% -50%; width: clamp(110px, 16vw, 150px); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 32% 28%, #fff 0 10%, rgba(190, 230, 255, .6) 12%, rgba(120, 190, 255, .45) 70%); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .8); animation: bubFloat 5s ease-in-out infinite; animation-delay: var(--d); }
.pr-bub span { font-size: clamp(3.4rem, 8vw, 5rem); filter: blur(6px) opacity(.5); transition: filter .3s; }
.pr-bub.popped { background: none; box-shadow: none; animation: none; }
.pr-bub.popped span { filter: none; animation: cheer .5s; display: inline-block; }
.cl-beach { position: relative; width: 100%; max-width: 860px; height: min(54vh, 440px); border-radius: 30px; background: linear-gradient(#8fd3ff 0 26%, #5cc4f5 26% 34%, #f3d9a4 34%); overflow: hidden; }
.cl-it { position: absolute; translate: -50% -50%; border: 0; background: none; font-size: clamp(3.6rem, 8vw, 5rem); cursor: pointer; }
.cl-it.gone { animation: toBin .6s ease-in forwards; pointer-events: none; }
@keyframes toBin { to { left: 92%; top: 88%; transform: scale(.2); opacity: 0; } }
.cl-it.nope { animation: shake .3s; }
.cl-bin { position: absolute; right: 2%; bottom: 2%; font-size: 4rem; display: flex; align-items: center; }
.cl-bin b { font: 800 1.6rem var(--kid); background: #fff; border-radius: 999px; padding: 0 10px; margin-left: -10px; }
.pf-wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pf-svg { width: min(78vw, 420px); background: #fff; border-radius: 30px; box-shadow: 0 8px 0 #ddd6f3; padding: 10px; }
.pf-part { cursor: pointer; transition: fill .25s; }
.pf-part.splash { animation: splash .4s ease-out; }
.pf-pal { display: grid; grid-template-columns: repeat(2, 76px); gap: 14px; }
.pf-pal .sw2 { width: 76px; height: 76px; }
.fz-dancer { font-size: clamp(6rem, 15vw, 9rem); }
.fz-dancer.dancing .fz-t { display: inline-block; animation: danceIt .35s ease-in-out infinite alternate; }
.fz-state { font: 800 1.6rem var(--kid); min-height: 1.4em; }
.fz-btn { border: 0; border-radius: 999px; padding: 18px 40px; font: 800 2rem var(--kid); color: #fff; background: #3b82f6; box-shadow: 0 8px 0 #1e5bbf; cursor: pointer; }
.fz-btn:active { transform: translateY(6px); box-shadow: 0 2px 0 #1e5bbf; }
.fz-count { font: 800 1.2rem var(--kid); }
.reduce-motion .pc-it, .reduce-motion .pr-bub, .reduce-motion .peek .pk-c { animation: none; }
.world-form .seg { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .world-form .seg { grid-template-columns: 1fr; } }
/* portais dos mundos */
.portals { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(circle at 50% 50%, rgba(40, 20, 110, .55), rgba(10, 6, 40, .85)); animation: enter .4s ease-out; padding: 16px; }
.portals h2 { color: #fff; font: 800 clamp(1.8rem, 4vw, 2.6rem) var(--kid); margin: 0; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.portals > p { color: #e5dcff; margin: 0 0 12px; font-family: var(--adult); }
.portal-row { display: flex; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; justify-content: center; width: 100%; }
/* portais: um avião (Pequenos Aviadores) e um navio (Grandes Navegantes) */
.portal { position: relative; width: min(46vw, 500px); aspect-ratio: 1.12; border: 0; border-radius: 36px; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 14px 18px; color: var(--ink);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .9), 0 16px 44px rgba(0, 0, 0, .45); transition: transform .2s, opacity .3s; }
.portal:hover, .portal:focus-visible { transform: translateY(-6px) scale(1.02); }
.portal:active { transform: scale(.97); }
.p-baby { background: linear-gradient(#8fd3ff, #c9ecff 55%, #fff4fb); }
.p-kids { background: linear-gradient(#b9e8ff, #e2f7ff 52%, #5ec4f2 52.2%, #2f9fe0); }
.portal-sky { position: absolute; inset: 0; pointer-events: none; }
.pc { position: absolute; width: 90px; height: 30px; background: #fff; border-radius: 30px; opacity: .9; animation: cloudDrift 9s linear infinite; }
.pc::before, .pc::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.pc::before { width: 42px; height: 42px; left: 14px; top: -20px; }
.pc::after { width: 30px; height: 30px; left: 44px; top: -12px; }
.pc.c1 { top: 14%; animation-duration: 11s; }
.pc.c2 { top: 38%; animation-duration: 15s; animation-delay: -6s; transform: scale(.7); }
.pc.c3 { top: 62%; animation-duration: 13s; animation-delay: -3s; transform: scale(.55); opacity: .7; }
@keyframes cloudDrift { from { left: 105%; } to { left: -30%; } }
.wave { position: absolute; left: -10%; right: -10%; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 20px -6px, transparent 18px, rgba(255, 255, 255, .55) 19px, transparent 23px) 0 0 / 40px 30px repeat-x; animation: waveSlide 3s linear infinite; }
.wave.w1 { top: 52%; }
.wave.w2 { top: 68%; animation-duration: 4.4s; opacity: .7; }
@keyframes waveSlide { to { transform: translateX(40px); } }
.portal-art { position: absolute; left: 50%; width: 88%; translate: -50% 0; pointer-events: none; user-select: none; filter: drop-shadow(0 10px 14px rgba(20, 30, 80, .25)); }
.p-baby .portal-art { top: 4%; width: 78%; animation: planeFly 3.2s ease-in-out infinite; }
.p-kids .portal-art { top: 13%; animation: shipRock 3.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes planeFly { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes shipRock { 0%, 100% { transform: rotate(-2.5deg) translateY(0); } 50% { transform: rotate(2.5deg) translateY(5px); } }
.portal-txt { position: relative; display: flex; flex-direction: column; align-items: center; background: rgba(255, 255, 255, .94); border-radius: 22px; padding: 8px 22px 10px;
  box-shadow: 0 6px 16px rgba(20, 30, 80, .18); }
.portal-txt b { font: 800 clamp(1.25rem, 2.6vw, 1.7rem) var(--kid); line-height: 1.05; }
.p-baby .portal-txt b { color: #e0479e; }
.p-kids .portal-txt b { color: #1f6fd1; }
.portal-txt strong { font: 700 clamp(.95rem, 1.7vw, 1.1rem) var(--kid); }
.portal-txt small { font: 600 .85rem var(--adult); color: var(--ink-soft); }
.portal.last::after { content: "Última aventura"; position: absolute; top: 14px; right: 16px; background: #ffd43b; border-radius: 999px; padding: 3px 12px; font: 700 .78rem var(--adult); z-index: 2; }
.portals.picked .portal:not(.chosen) { opacity: 0; transform: scale(.9); }
/* escolheu: o veículo sai da moldura (o avião decola para cima e para a esquerda; o navio zarpa para a direita) */
.portals.picked { background: radial-gradient(circle at 50% 50%, rgba(40, 20, 110, .25), rgba(10, 6, 40, .5)); transition: background .6s; }
.portals.picked h2, .portals.picked > p { opacity: 0; transition: opacity .3s; }
.portal.chosen { overflow: visible; transform: none !important; transition: box-shadow .4s, background .4s; box-shadow: 0 0 0 0 transparent; background: transparent !important; }
.portal.chosen .portal-sky, .portal.chosen .portal-txt, .portal.chosen.last::after { opacity: 0; transition: opacity .35s; }
.p-baby.chosen .portal-art { animation: planeFly 3.2s ease-in-out infinite, planeAway 1.6s cubic-bezier(.5, 0, .9, .55) forwards; }
.p-kids.chosen .portal-art { animation: shipRock 1.4s ease-in-out infinite, shipAway 1.7s cubic-bezier(.45, 0, .85, .5) forwards; }
/* o movimento usa translate/rotate/scale separados, para somar com o balanço sem trancos */
@keyframes planeAway {
  0% { translate: -50% 0; rotate: 0deg; scale: 1; }
  100% { translate: calc(-50% - 150vw) -80vh; rotate: 16deg; scale: .3; }
}
@keyframes shipAway {
  0% { translate: -50% 0; scale: 1; }
  100% { translate: calc(-50% + 150vw) 4vh; scale: .75; }
}
.portal.chosen::before { content: ""; position: absolute; z-index: -1; pointer-events: none; opacity: 0; }
.p-kids.chosen::before { left: -20%; right: 30%; bottom: 20%; height: 18px; border-radius: 50%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85)); animation: wake 1.7s ease-in forwards; }
@keyframes wake { 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(120vw) scaleX(2); } }
/* faixa durante a viagem em volta do mundo */
.trip-banner { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 7; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 8px 8px 8px 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); animation: enter .5s ease-out both;
  font: 800 clamp(.9rem, 2vw, 1.15rem) var(--kid); color: var(--ink); max-width: 92vw; }
.trip-banner small { display: block; font: 600 .75rem var(--adult); color: var(--ink-soft); }
/* (só a barrinha de progresso da faixa da viagem ao redor do mundo — não confundir com a barra dos jogos de viagem) */
.trip-banner .trip-bar { position: static; width: 90px; height: 8px; padding: 0; border-radius: 999px; background: #eee; overflow: hidden; display: block; }
.trip-banner .trip-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff5a5f, #ffc93c, #2fb344, #3b82f6, #9b5de5); }
.trip-skip { border: 0; border-radius: 999px; background: #f4f1ff; padding: 8px 12px; font: 700 .8rem var(--adult); cursor: pointer; }
.space.traveling .space-guide, .space.traveling .space-hint { opacity: 0; pointer-events: none; transition: opacity .3s; }
@media (max-width: 760px) and (orientation: portrait) { .portal { width: min(88vw, 420px); aspect-ratio: 1.35; } }
.reduce-motion .portal-art, .reduce-motion .pc, .reduce-motion .wave { animation: none !important; }
.hud-world { text-decoration: none; }
.hud-world.w-baby { background: #eaf6ff; }
.hud-world.w-kids { background: #e7f0ff; }
.w-chip { font-weight: 700; }
/* história do livro impresso dentro da atividade */
.page.page-img { padding: 0; background: #fff; width: auto; max-width: 100%; height: clamp(200px, 40vh, 460px); aspect-ratio: 1; margin: 0 auto; }
.page.page-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.back-cover.img-back .pg-img { width: 100%; filter: none; }

/* Clube da Leitura trancado: só entra com o código do livro */
.book-slot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.book-spine { position: relative; }
.spine-lock { position: absolute; top: -14px; right: -12px; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  font-size: 1.5rem; box-shadow: 0 4px 10px rgba(43, 37, 96, .25); border: 3px solid #ffcf3f; }
.buy-chip { border: 0; border-radius: 999px; padding: 8px 16px; background: #fff; color: var(--ink); font: 800 .95rem var(--kid); cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.buy-chip:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.club-lock { max-width: 620px; margin: 6px auto 26px; background: #fff; border-radius: 28px; padding: 26px 28px 20px; text-align: center;
  box-shadow: 0 14px 34px rgba(80, 50, 10, .18); border: 4px solid #ffcf3f; position: relative; }
.club-lock-icon { position: absolute; top: -34px; left: 50%; translate: -50% 0; width: 66px; height: 66px; border-radius: 50%; background: #ffcf3f;
  display: grid; place-items: center; font-size: 2rem; box-shadow: 0 6px 14px rgba(120, 80, 0, .25); animation: lockWiggle 3.2s ease-in-out infinite; }
@keyframes lockWiggle { 0%, 86%, 100% { rotate: 0deg; } 90% { rotate: -12deg; } 94% { rotate: 10deg; } }
.club-lock h2 { margin: 18px 0 6px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.club-lock p { margin: 0 auto 16px; font-family: var(--adult); color: var(--ink-soft); max-width: 470px; }
.club-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.club-actions .btn { font-size: 1.1rem; height: 54px; padding: 0 24px; border-radius: 16px; font-family: var(--kid); font-weight: 800; }
.linkish { margin-top: 12px; background: none; border: 0; color: var(--ink-soft); font: 600 .9rem var(--adult); text-decoration: underline; cursor: pointer; }


@media (prefers-reduced-motion: reduce) { .club-lock-icon { animation: none; } }
.space:has(.portals) .space-guide { opacity: 0; pointer-events: none; transition: opacity .3s; }
/* virar página igual livro: ícones, legenda e estrela somem durante a virada e voltam quando a folha assenta */
.pg-tools, .pg-cap, .img-pg .star-hide, .img-pg .pg-num { transition: opacity .25s .05s; }
.book3d.is-turning .pg-tools, .book3d.is-turning .pg-cap, .book3d.is-turning .img-pg .star-hide,
.book3d.is-turning .img-pg .pg-num, .leaf.dragging .pg-tools, .leaf.dragging .pg-cap, .leaf.dragging .star-hide { opacity: 0 !important; pointer-events: none; transition-duration: .08s; transition-delay: 0s; }
.leaf.turning .face { box-shadow: 0 18px 40px rgba(60, 30, 0, .22); }
.img-pg .pg-tools, .img-pg .pg-cap, .img-pg .star-hide { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.reading .read-btn { animation: hearPulse .8s ease-in-out infinite; background: #ffe066; }

/* ===== livro: personagens tocáveis nas ilustrações ===== */
.spots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.spot { position: absolute; pointer-events: auto; border: 0; background: transparent; border-radius: 18%; cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: transparent; transition: background .2s, box-shadow .2s, opacity .25s; }
.spot:hover { background: rgba(255, 224, 102, .16); }
.spot-glint { position: absolute; right: 8%; top: 6%; width: 3.2cqw; height: 3.2cqw; min-width: 12px; min-height: 12px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, rgba(255, 224, 102, .9) 31% 55%, transparent 56%); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s; }
.spot-hint .spot-glint { animation: glint 1.2s ease-in-out 2; }
@keyframes glint { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(45deg); } }
.spot.hit { animation: spotHit .6s ease-out; }
@keyframes spotHit { 0% { box-shadow: 0 0 0 0 rgba(255, 224, 102, .9); background: rgba(255, 224, 102, .3); } 100% { box-shadow: 0 0 0 4cqw rgba(255, 224, 102, 0); background: transparent; } }
.spot-say { position: absolute; z-index: 5; translate: -50% -100%; max-width: 62%; background: #fff; border-radius: 3cqw; padding: 1.6cqw 2.6cqw;
  box-shadow: 0 1.2cqw 3cqw rgba(40, 30, 80, .28); text-align: center; pointer-events: none; animation: bubbleIn .3s cubic-bezier(.3, 1.6, .5, 1) both; }
.spot-say.below { translate: -50% 0; }
.spot-say b { display: block; font: 800 3.6cqw/1.15 var(--kid); color: var(--ink); }
.spot-say small { display: block; font: 500 2.6cqw/1.2 var(--adult); color: var(--ink-soft); margin-top: .6cqw; }
.book3d.is-turning .spots, .book3d.is-turning .spot-say, .leaf.dragging .spots { opacity: 0; pointer-events: none; }
.pg-tools .mic-pg { background: #fff0f6; }
/* páginas "My name is…" e quiz */
.mydraw-pg, .quiz-pg { display: grid; place-items: center; padding: 6%; background: radial-gradient(circle at 30% 20%, #fff8e1, #fdf3ff); }
.quiz-pg { background: radial-gradient(circle at 70% 20%, #e7f5ff, #f3f0ff); }
.mydraw-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2cqw; }
.mydraw-tag { background: #ffd43b; border-radius: 999px; padding: .8cqw 3cqw; font: 800 2.8cqw var(--kid); }
.mydraw-card h3 { margin: 0; font: 800 6.4cqw/1.05 var(--kid); color: #7c5cff; }
.mydraw-card p { margin: 0; font: 500 3cqw/1.3 var(--adult); color: var(--ink-soft); max-width: 80%; }
.mydraw-last { width: 62%; aspect-ratio: 640 / 500; border-radius: 2cqw; background: #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 1cqw 3cqw rgba(60, 40, 120, .15); font-size: 7cqw; border: .8cqw solid #ffe066; }
.mydraw-last img { width: 100%; height: 100%; object-fit: cover; }
.mydraw-card .big-btn { font-size: 3.4cqw; padding: 1.8cqw 4cqw; height: auto; }
.quiz-best { font: 700 3cqw var(--kid); color: #f08c00; min-height: 3cqw; }

/* ===== janelas extras ===== */
.fun-modal { max-width: min(760px, 96vw); width: 100%; }
.fun-modal .confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
/* desenho */
.draw-modal { max-width: min(820px, 98vw); }
.draw-head { display: flex; align-items: center; gap: 12px; justify-content: center; font: 800 clamp(1.4rem, 3vw, 2rem) var(--kid); color: #7c5cff; margin: 0 40px 10px; flex-wrap: wrap; }
.draw-name { font: 800 clamp(1.3rem, 3vw, 1.9rem) var(--kid); color: var(--ink); border: 0; border-bottom: 4px dashed #ffcf3f; background: transparent; width: 9.5em; text-align: center; padding: 2px 6px; outline: none; }
.draw-board { border-radius: 18px; overflow: hidden; border: 5px solid #ffe066; background: #fff; touch-action: none; }
.draw-board canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }
.draw-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.draw-colors, .draw-sizes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dc { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 2px #ddd; cursor: pointer; }
.dc.rainbow { background: conic-gradient(#ff5a5f, #ffc93c, #2fb344, #3b82f6, #9b5de5, #ff5a5f); }
.dc.on { box-shadow: 0 0 0 4px var(--ink); transform: scale(1.1); }
.ds { width: 42px; height: 42px; border-radius: 12px; border: 2px solid #eee; background: #fff; display: grid; place-items: center; cursor: pointer; }
.ds i { width: var(--s); height: var(--s); border-radius: 50%; background: var(--ink); }
.ds.on { border-color: var(--accent); background: #f3f0ff; }
.draw-btn { width: 46px; height: 46px; border-radius: 12px; border: 2px solid #eee; background: #fff; font-size: 1.3rem; cursor: pointer; }
.draw-save { margin-left: auto; }
/* quiz */
.quiz-top { display: flex; justify-content: space-between; align-items: center; margin: 0 40px 10px 0; font: 700 1rem var(--kid); color: var(--ink-soft); }
.quiz-score { background: #fff3bf; border-radius: 999px; padding: 4px 12px; color: var(--ink); }
.quiz-q { display: flex; gap: 14px; align-items: center; }
.quiz-emoji { font-size: 2.6rem; line-height: 1; }
.quiz-q h3 { margin: 4px 0; font: 800 clamp(1.25rem, 2.8vw, 1.7rem)/1.15 var(--kid); }
.quiz-q p { margin: 0; font: 500 .95rem var(--adult); color: var(--ink-soft); }
.quiz-opts { display: grid; gap: 10px; margin-top: 16px; }
.quiz-opt { border: 3px solid #e9e3ff; background: #fff; border-radius: 18px; padding: 14px 18px; font: 800 1.25rem var(--kid); text-align: left; cursor: pointer; transition: transform .12s, background .2s, border-color .2s; }
.quiz-opt:hover { transform: translateX(4px); border-color: #c9bbff; }
.quiz-opt.ok { background: #d3f9d8; border-color: #2fb344; }
.quiz-opt.bad { background: #ffe3e3; border-color: #e5383b; animation: shake .4s; }
.quiz-end { text-align: center; position: relative; }
.quiz-end h3 { font: 800 2rem var(--kid); margin: 6px 0 0; }
/* microfone */
.mic { text-align: center; position: relative; }
.mic h3 { margin: 0; font: 800 1.7rem var(--kid); }
.mic-sub { margin: 2px 0 12px; color: var(--ink-soft); font-family: var(--adult); }
.mic-stage { display: flex; align-items: center; justify-content: center; gap: 14px; }
.mic-say { background: #fff; border-radius: 22px; padding: 14px 18px; box-shadow: 0 6px 18px rgba(43, 37, 96, .1); display: grid; gap: 4px; position: relative; min-width: 200px; }
.mic-say b { font: 800 clamp(1.6rem, 4vw, 2.4rem) var(--kid); color: #7c5cff; }
.mic-say small { font-family: var(--adult); color: var(--ink-soft); }
.mic-hear { position: absolute; right: -14px; top: -14px; width: 40px; height: 40px; background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .15); }
.mic-btn { --lvl: 0; position: relative; width: 120px; height: 120px; border-radius: 50%; border: 0; margin: 18px auto 6px; display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(#ff8fab, #e64980); box-shadow: 0 8px 0 #c2255c, 0 14px 26px rgba(230, 73, 128, .35); }
.mic-btn:active { transform: translateY(4px); box-shadow: 0 4px 0 #c2255c; }
.mic-ico { font-size: 3.2rem; position: relative; }
.mic-ring { position: absolute; inset: -10px; border-radius: 50%; border: 6px solid rgba(230, 73, 128, .35); transform: scale(calc(1 + var(--lvl) * .35)); transition: transform .08s; opacity: 0; }
.mic-btn.on .mic-ring { opacity: 1; }
.mic-btn.on { background: linear-gradient(#ff6b6b, #e5383b); }
.mic-btn.done { background: linear-gradient(#69db7c, #2fb344); box-shadow: 0 8px 0 #2b8a3e; }
.mic-msg { font: 700 1.1rem var(--kid); min-height: 1.5em; margin: 6px 0; }
.mic-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
/* figurinhas */
.stk { position: relative; width: 112px; aspect-ratio: .82; border-radius: 18px; background: linear-gradient(160deg, var(--l), #fff 70%); border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--c), 0 6px 14px rgba(40, 30, 80, .18); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 6px 4px 8px; overflow: hidden; }
.stk img { position: absolute; top: 8%; left: 50%; translate: -50% 0; width: 72%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--c); }
.stk-e { position: absolute; top: 46%; right: 8%; font-size: 1.8rem; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
.stk b { position: relative; font: 800 .78rem/1.1 var(--kid); text-align: center; background: #fff; border-radius: 999px; padding: 3px 8px; }
.stk.stk-empty { box-shadow: 0 0 0 3px #e9e3ff; background: repeating-linear-gradient(45deg, #faf8ff 0 8px, #f3f0ff 8px 16px); justify-content: center; }
.stk-q { font: 800 2.4rem var(--kid); color: #cfc4ff; }
.stk.fresh { animation: stkIn .8s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stkIn { from { transform: scale(.2) rotate(-25deg); opacity: 0; } }
.stk-win .stk { width: 78px; flex: none; }
.stk-win .stk b { font-size: .62rem; }
.stk-page { display: block; color: #f08c00 !important; font-weight: 700; }
.album { padding: 18px clamp(12px, 3vw, 36px) 40px; }
.album-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.album-top .bar { flex: 1; min-width: 180px; height: 16px; border-radius: 999px; background: #eee; overflow: hidden; }
.album-top .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff5a5f, #ffc93c, #2fb344, #3b82f6, #9b5de5); }
.album-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.album-page { background: #fff; border-radius: 24px; padding: 14px; box-shadow: 0 8px 0 rgba(43, 37, 96, .06); border: 3px solid var(--l); }
.album-page h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 800 1.2rem var(--kid); }
.album-page h3 small { font: 600 .85rem var(--adult); color: var(--ink-soft); margin-left: auto; }
.album-page.complete { border-color: #ffd43b; box-shadow: 0 0 0 3px #ffd43b, 0 8px 0 rgba(43, 37, 96, .06); }
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; justify-items: center; }
.album-grid .stk { width: 100%; max-width: 120px; }
/* avatar */
.av-editor { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 24px; padding: 18px clamp(12px, 3vw, 36px) 40px; align-items: start; }
.av-preview { background: radial-gradient(circle at 50% 30%, #fff, #e7f5ff); border-radius: 28px; display: grid; place-items: center; padding: 20px; position: sticky; top: 90px; box-shadow: 0 8px 0 rgba(43, 37, 96, .06); }
.av-preview .av-svg { width: 100%; height: auto; max-height: 52vh; animation: idle 3s ease-in-out infinite; }
.av-name { margin-top: 10px; font: 800 1.3rem var(--kid); border: 0; border-bottom: 3px dashed #c9bbff; background: transparent; text-align: center; width: 100%; outline: none; }
.av-groups { display: grid; gap: 14px; }
.av-group { background: #fff; border-radius: 20px; padding: 12px 14px; box-shadow: 0 6px 0 rgba(43, 37, 96, .05); }
.av-group h3 { margin: 0 0 8px; font: 800 1.05rem var(--kid); }
.av-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.av-opt { border: 3px solid transparent; border-radius: 16px; background: #f8f7ff; cursor: pointer; padding: 4px; min-width: 52px; min-height: 52px; display: grid; place-items: center; font: 700 .8rem var(--kid); }
.av-opt.on { border-color: var(--accent); background: #f3f0ff; }
.av-opt .sw { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .1); }
.av-opt .av-svg { width: 52px; height: auto; }
.av-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .av-editor { grid-template-columns: 1fr; } .av-preview { position: static; } .av-preview .av-svg { max-height: 34vh; } }
/* jardim: a criança no meio da turma */
.scene-me { cursor: pointer; }
.scene-me .me-plus { animation: hearPulse 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
/* casa na árvore: desenhos nas paredes */
.wall-art { position: absolute; background: #fff; padding: 6px; border-radius: 6px; box-shadow: 0 0 0 6px #b06a2c, 0 8px 14px rgba(60, 30, 0, .3); cursor: pointer; }
.wall-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wall-art.a1 { left: 46px; top: 70px; width: 170px; height: 133px; rotate: -2deg; }
.wall-art.a2 { left: 568px; top: 18px; width: 140px; height: 110px; rotate: 2deg; }
.hud-chip.hud-album, .hud-chip.hud-me { text-decoration: none; }
.hud-me .av-svg { width: 26px; height: 36px; margin: -6px -2px -6px -4px; }
@keyframes idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.face.off .spots, .face.off .spot, .face.off .pg-tools, .face.off .star-hide, .face.off .pg-cap, .face.off .big-btn { pointer-events: none !important; }
.fun-modal [hidden] { display: none !important; }
.fun-modal > .adv-x { z-index: 6; }

/* ===== casa na árvore com vários cômodos ===== */
.house-view { padding-bottom: 30px; }
.house-wrap { display: grid; grid-template-columns: 1fr 270px; gap: 20px; max-width: 1150px; margin: 0 auto; padding: 14px clamp(10px, 2vw, 20px) 0; }
.house { position: relative; padding: 70px 4% 120px; }
.house-leaves { position: absolute; inset: -10px -2% 60px; border-radius: 48% 48% 40% 40%;
  background: radial-gradient(circle at 15% 35%, #7fd17a 0 14%, transparent 15%), radial-gradient(circle at 85% 30%, #6cc46a 0 16%, transparent 17%),
    radial-gradient(circle at 50% 8%, #8edb87 0 18%, transparent 19%), radial-gradient(circle at 8% 75%, #69bf63 0 13%, transparent 14%),
    radial-gradient(circle at 92% 72%, #7fd17a 0 13%, transparent 14%), radial-gradient(ellipse at 50% 50%, #9be394 0 60%, transparent 61%); opacity: .9; }
.house-roof { position: relative; height: 70px; margin: 0 -3% -6px; z-index: 2; background: linear-gradient(#e8794a, #c9572c);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .15)); }
.roof-flag { position: absolute; left: 50%; top: -6px; translate: -50% 0; font-size: 28px; }
.house-body { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; border-radius: 0 0 18px 18px;
  background: repeating-linear-gradient(90deg, #b97a42 0 40px, #a96c38 40px 43px); box-shadow: 0 10px 0 #7a4a1a, 0 18px 30px rgba(60, 30, 0, .3); }
.house-trunk { position: absolute; left: 50%; bottom: 0; width: 120px; height: 140px; translate: -50% 0; z-index: 0;
  background: repeating-linear-gradient(90deg, #8a5a2b 0 18px, #7a4e24 18px 22px); border-radius: 20px 20px 40px 40px; }
.ladder { position: absolute; right: -40px; top: 10px; width: 36px; height: 130px; background: repeating-linear-gradient(#c58b4b 0 6px, transparent 6px 26px) 0 0 / 100% 26px,
  linear-gradient(90deg, #c58b4b 0 5px, transparent 5px calc(100% - 5px), #c58b4b calc(100% - 5px)); }
.house-me { position: absolute; left: calc(50% + 70px); bottom: 0; z-index: 2; }
.hroom { position: relative; aspect-ratio: 16 / 10; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; font-size: clamp(16px, 2.2vw, 26px);
  box-shadow: inset 0 0 0 4px #7a4a1a, 0 4px 0 rgba(60, 30, 0, .25); transition: transform .15s; background: #fff; }
.hroom:hover, .hroom:focus-visible { transform: translateY(-3px) scale(1.02); z-index: 2; }
.hr-wall { position: absolute; inset: 0 0 32% 0; }
.hr-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background-size: 30px 30px !important; }
.hr-win { position: absolute; left: 38%; top: 10%; width: 24%; height: 32%; border-radius: 6px; border: 3px solid #fff6e6; display: grid; place-items: center; font-size: .7em; }
.hr-win i { font-style: normal; }
.hr-rug { position: absolute; left: 28%; bottom: 6%; width: 44%; height: 18%; border-radius: 50%; opacity: .85; }
.hr-rug.sq { border-radius: 6px; }
.hr-thing { position: absolute; translate: -50% 0; line-height: 1; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .2)); }
.hr-pet { position: absolute; right: 4%; bottom: 4%; }
.hr-name { position: absolute; left: 6px; top: 6px; background: rgba(255, 255, 255, .93); border-radius: 10px; padding: 2px 9px; text-align: left; line-height: 1.1; }
.hr-name b { display: block; font: 800 clamp(.72rem, 1.3vw, .92rem) var(--kid); color: var(--ink); }
.hr-name small { font: 600 .66rem var(--adult); color: var(--ink-soft); }
.hroom.light-night::after, .hroom.light-lamp::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hroom.light-night::after { background: rgba(20, 20, 70, .35); }
.hroom.light-lamp::after { background: radial-gradient(circle at 70% 40%, rgba(255, 200, 120, .25), rgba(60, 30, 0, .18)); }
.house-side .house-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.house-list a { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); background: #faf8ff; border-radius: 12px; padding: 8px 10px; font: 700 .95rem var(--kid); }
.house-list a small { margin-left: auto; font: 600 .75rem var(--adult); color: var(--ink-soft); }
.house-count { font-family: var(--adult); margin: 0 0 10px; }
@media (max-width: 800px) { .house-wrap { grid-template-columns: 1fr; } .house { padding-bottom: 100px; } }
/* dentro de um cômodo */
.room-nav { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 10px 10px 0; }
.room-nav a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, .85); border-radius: 14px; padding: 4px 10px; font-size: 1.3rem; min-width: 64px; }
.room-nav a small { font: 700 .68rem var(--adult); color: var(--ink-soft); }
.room-nav a.on { background: #fff; box-shadow: 0 0 0 3px var(--accent); }
.room-tray { padding: 10px 12px; }
.rt-tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 10px; }
.rt-tab { border: 0; background: #f4f1ff; border-radius: 12px; padding: 6px 0 4px; font-size: 1.15rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.rt-tab small { font: 700 .55rem var(--adult); color: var(--ink-soft); margin-top: 3px; }
.rt-tab.on { background: var(--accent); }
.rt-tab.on small { color: #fff; }
.rt-panel { overflow: auto; max-height: 470px; }
.rt-h { margin: 6px 0; font: 800 .95rem var(--kid); }
.rt-h small { background: #f4f1ff; border-radius: 999px; padding: 0 8px; font-size: .75rem; }
.rt-note { font: 500 .78rem var(--adult); color: var(--ink-soft); }
.rt-sw { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.sw-opt { border: 3px solid transparent; background: #faf8ff; border-radius: 14px; padding: 5px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sw-opt.on { border-color: var(--accent); background: #fff; }
.sw-opt small { font: 600 .66rem/1.1 var(--adult); color: var(--ink-soft); text-align: center; }
.sw-prev { width: 100%; aspect-ratio: 1.3; border-radius: 10px; background-size: 40px 40px !important; display: grid; place-items: center; font-size: 1.3rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.sw-prev.rug { border-radius: 50%; aspect-ratio: 1.6; background-size: auto !important; }
.sw-prev.view, .sw-prev.wall { background-size: auto !important; }
.rug.sq { border-radius: 14px; }
.rug[hidden] { display: none; }
/* luzes */
.room-light { position: absolute; inset: 0; pointer-events: none; transition: background .5s; z-index: 1; }
.room-stage .fairy { display: none; }
.room-stage.light-fairy .fairy { display: flex; }
.room-stage.light-fairy .room-light { background: radial-gradient(ellipse at 50% 10%, rgba(255, 240, 200, .25), transparent 60%); }
.room-stage.light-lamp .room-light { background: radial-gradient(circle at 75% 60%, rgba(255, 196, 110, .35), rgba(80, 40, 0, .25) 75%); }
.room-stage.light-night .room-light { background: radial-gradient(circle at 50% 55%, rgba(255, 230, 160, .12), rgba(15, 15, 60, .55) 70%); }
.room-stage.light-night .fairy { display: flex; }
.room-stage .th-hint { z-index: 2; }
/* enfeites de cada cômodo */
.counter { position: absolute; left: 40px; right: 40px; bottom: 0; height: 110px; background: linear-gradient(#fff 0 14px, #8fd3c1 14px); border-radius: 8px 8px 0 0;
  display: flex; justify-content: flex-end; gap: 30px; padding: 0 70px; align-items: flex-start; font-size: 44px; box-shadow: 0 -4px 0 rgba(0, 0, 0, .08); }
.counter span { margin-top: -40px; }
.bookcase { position: absolute; left: 560px; top: 60px; width: 170px; height: 300px; border: 10px solid #8a4e1f; border-radius: 6px;
  background: repeating-linear-gradient(#8a4e1f 0 8px, transparent 8px 75px), repeating-linear-gradient(90deg, #e5383b 0 14px, #2f6fd6 14px 28px, #f5b800 28px 40px, #2e9e44 40px 54px, #9b5de5 54px 66px) 0 8px / 100% 75px, #6b3d17; }
.railing { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: repeating-linear-gradient(90deg, #fff6e6 0 14px, transparent 14px 54px), linear-gradient(#fff6e6 0 14px, transparent 14px); }
.frame-pic { position: absolute; left: 60px; top: 90px; font-size: 90px; }
.wall-art.a3 { left: 585px; top: 175px; width: 130px; height: 100px; rotate: -2deg; }
.wall-art.easel { display: grid; place-items: center; font-size: 40px; background: #fffbe6; }
.wall-art.easel small { font: 800 14px var(--kid); color: #7c5cff; }
@media (max-width: 800px) { .room-stage .th-hint { font-size: .68rem; bottom: 4px; } .room-nav a { min-width: 46px; font-size: 1.1rem; } .room-nav a small { display: none; } }
/* móveis fixos dos cômodos */
.furn-up { position: absolute; bottom: 0; transform-origin: 50% 100%; transform: rotateX(-90deg); cursor: pointer; filter: drop-shadow(0 6px 6px rgba(60, 30, 0, .25)); }
.furn-up.wiggle { animation: thingWig .5s ease-out; }
.hr-furn { position: absolute; translate: -50% 0; line-height: 0; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)); }
.hr-thing { z-index: 50; }
.wall-shelf-items { position: absolute; left: 575px; top: 108px; font-size: 34px; letter-spacing: 6px; }
/* banheiro */
.towel-bar { position: absolute; left: 70px; top: 120px; width: 150px; height: 10px; background: #adb5bd; border-radius: 6px; display: flex; gap: 14px; padding: 0 14px; }
.towel-bar span { width: 54px; height: 90px; margin-top: 4px; border-radius: 6px; background: repeating-linear-gradient(#ff8fab 0 12px, #fff 12px 18px); }
.towel-bar span + span { background: repeating-linear-gradient(#8ce99a 0 12px, #fff 12px 18px); }
.house-body .hroom:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 5px); justify-self: center; }
/* a arte do portal desliza até o planeta e vira o avião/navio 3D */
.trip-glide { position: fixed; z-index: 60; transform-origin: 0 0; pointer-events: none; will-change: transform; filter: drop-shadow(0 8px 10px rgba(10, 20, 60, .3)); }
.portals.gliding { background: transparent; transition: background 1s ease; }
.portals.gliding h2, .portals.gliding > p, .portals.gliding .portal { opacity: 0; transition: opacity .45s ease; }
/* livro trancado: capa + comprar + código */
.bk-lock-modal { box-sizing: border-box; width: min(760px, calc(100vw - 24px)); max-width: none; }
.bk-lock { display: grid; grid-template-columns: minmax(170px, 260px) 1fr; gap: 22px; align-items: center; }
.bk-lock-cover { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--c); display: grid; place-items: center; font-size: 4rem;
  box-shadow: 0 0 0 5px #fff, 0 12px 28px rgba(40, 30, 80, .3); }
.bk-lock-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.bk-lock-pad { position: absolute; right: 10px; bottom: 10px; width: 54px; height: 54px; border-radius: 50%; background: #ffd43b; display: grid; place-items: center;
  font-size: 1.7rem; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.bk-lock-info small { font: 700 .8rem var(--adult); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.bk-lock-info h2 { margin: 2px 0 6px; font: 800 clamp(1.3rem, 3vw, 1.8rem)/1.1 var(--kid); }
.bk-lock-info > p { margin: 0 0 12px; font-family: var(--adult); color: var(--ink-soft); }
.bk-buy { width: 100%; flex-direction: row; gap: 8px; justify-content: center; margin-bottom: 12px; box-sizing: border-box; }
.bk-code { background: #faf8ff; border-radius: 16px; padding: 10px 12px; }
.bk-code label { display: block; font: 800 .95rem var(--kid); margin-bottom: 6px; }
.bk-code-row { display: flex; gap: 8px; }
.bk-code-row input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 2px solid #e1dbff; padding: 0 12px; font: 700 1.05rem var(--adult); letter-spacing: .05em; text-transform: uppercase; }
.bk-code-row .btn { height: 46px; white-space: nowrap; }
.bk-code .form-error { margin: 6px 0 0; min-height: 0; }
@media (max-width: 640px) { .bk-lock { grid-template-columns: minmax(0, 1fr); } .bk-lock-cover { max-width: 200px; margin: 0 auto; } }
.adv-modal > .adv-x { z-index: 6; }
@media (max-width: 640px) { .bk-lock-modal { padding: 18px 16px; } .bk-lock-info h2 { font-size: 1.25rem; } }
.bk-lock-info { min-width: 0; } .bk-lock .linkish { white-space: normal; }
.library .shelf { align-items: stretch; } .book-slot > .book-spine { flex: 1; justify-content: flex-start; } .book-slot > .book-spine .book-state { margin-top: auto; }
/* Borboleta Mágica (bichinho que evolui) */
.pet-img { width: calc(var(--ps) * 1.25); height: calc(var(--ps) * 1.25); object-fit: contain; display: block; filter: drop-shadow(0 3px 4px rgba(60, 30, 100, .25)); }
.pet-evo .pet-img { width: 46px; height: 46px; }
.pet-evo span:not(.on) { opacity: .6; }
.pet .pet-acc { z-index: 2; }
/* Clube da Leitura: botão "Adquirir o meu" */
.club-buy-row { display: flex; justify-content: center; margin: 4px 0 18px; }
.club-get { flex-direction: row; gap: 10px; font-size: 1.2rem; padding: 0 30px; height: 58px; background: linear-gradient(#ffd43b, #fab005); color: #3b2a00; box-shadow: 0 6px 0 #e67700; }
.get-list { display: grid; gap: 10px; margin-top: 10px; }
.get-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 16px; background: #faf8ff; text-decoration: none; color: var(--ink); }
.get-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.get-item small { display: block; font: 700 .72rem var(--adult); color: var(--ink-soft); }
.get-item b { font: 800 1rem var(--kid); }
.get-item i { margin-left: auto; font-style: normal; font-size: 1.4rem; }
.club-get span { font: 800 1.25rem var(--kid); } .club-get { font-size: 1.5rem; }

/* ===== Tablet na horizontal (iPad / Android) ===== */
html, body { -webkit-touch-callout: none; }
img { -webkit-user-drag: none; }
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
@media (orientation: landscape) and (min-width: 700px) and (max-width: 1400px) {
  /* Clube da Leitura: os 5 livros numa fileira só, cabendo na tela */
  .library { padding-top: 14px; padding-bottom: 18px; }
  .library .shelf { flex-wrap: nowrap; justify-content: center; gap: 1.6vw; padding-bottom: 22px; }
  .library .book-slot { flex: 1 1 0; min-width: 0; max-width: 240px; }
  .library .book-spine { width: 100%; min-height: 0; padding: 1.4vw 1.2vw; }
  .library .book-spine b { font-size: clamp(1rem, 1.7vw, 1.45rem); }
  .library .book-spine small { font-size: clamp(.75rem, 1.1vw, .95rem); }
  .library .book-state { font-size: clamp(.8rem, 1.2vw, 1rem); padding: 6px 8px; }
  .club-buy-row { margin: 0 0 12px; }
  /* Casa na árvore: casa larga (4 cômodos por andar) que cabe na tela */
  .house-wrap { grid-template-columns: minmax(0, 1fr) 250px; max-width: 1340px; align-items: start; }
  .hr-name small { display: none; }
  .house { padding: 40px 3% 70px; }
  .house-body { grid-template-columns: repeat(8, 1fr); }
  .house-body > .hroom, .house-body .hroom:last-child:nth-child(odd) { grid-column: span 2; width: auto; justify-self: stretch; }
  .house-body > .hroom:nth-child(5) { grid-column: 2 / span 2; }
  .house-trunk { height: 90px; }
  .house-side .house-list a { padding: 6px 10px; }
  /* Álbum: mais páginas por linha */
  .album-pages { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
}

/* Aviso para girar o tablet (o app foi feito para a horizontal) */
.rotate-hint { display: none; }
@media (orientation: portrait) and (pointer: coarse) and (min-width: 600px) {
  .rotate-hint { display: grid; position: fixed; inset: 0; z-index: 9999; place-items: center; text-align: center; padding: 30px;
    background: linear-gradient(160deg, #7cc8ff, #b197fc); color: #fff; font: 800 1.8rem var(--kid); }
  .rotate-hint span { display: block; font-size: 5rem; animation: rot-hint 2s ease-in-out infinite; }
  .rotate-hint small { display: block; font: 500 1.05rem var(--adult); opacity: .95; margin-top: 8px; }
}
@keyframes rot-hint { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }

/* ===== Celular ===== */
.world-svg.pannable { touch-action: none; }
.pan-hint { display: none; }
@media (orientation: portrait) and (max-aspect-ratio: 5/6) {
  .pan-hint { display: block; position: absolute; left: 50%; top: 42%; translate: -50% 0; z-index: 4; pointer-events: none;
    background: rgba(255, 255, 255, .92); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 800 1rem var(--kid);
    box-shadow: 0 6px 16px rgba(43, 37, 96, .2); animation: panHint 1.4s ease-in-out 3, fadeOut .6s 4.4s forwards; }
}
@keyframes panHint { 0%, 100% { transform: translateX(-14px); } 50% { transform: translateX(14px); } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
/* Celular em pé: livros em duas colunas */
@media (max-width: 600px) {
  .library { padding: 14px 12px 24px; }
  .library .shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 18px; }
  .library .book-spine { width: 100%; min-height: 0; padding: 12px 10px; }
  .library .book-spine b { font-size: 1.05rem; }
  .library .book-spine small { font-size: .78rem; }
  .library .book-state { font-size: .82rem; padding: 5px 6px; }
  .club-buy-row { margin: 0 0 12px; }
  .club-get { height: 52px; padding: 0 22px; }
}

/* Celular: tela inicial em pé, jardim deitado */
.phone-hint { display: none; }
@media (orientation: portrait) and (max-width: 599px) {
  #app.screen-world ~ .ph-land { display: grid; }
}
@media (orientation: landscape) and (max-height: 599px) and (pointer: coarse) {
  #app.screen-space ~ .ph-port { display: grid; }
}
.phone-hint { position: fixed; inset: 0; z-index: 9999; place-items: center; text-align: center; padding: 30px;
  background: linear-gradient(160deg, #7cc8ff, #b197fc); color: #fff; font: 800 1.7rem var(--kid); }
.phone-hint span { display: block; font-size: 4.5rem; animation: rot-hint 2s ease-in-out infinite; }
.phone-hint span.up { animation: rot-hint-up 2s ease-in-out infinite; }
.phone-hint small { display: block; font: 500 1rem var(--adult); opacity: .95; margin-top: 8px; }
@keyframes rot-hint-up { 0%, 30% { transform: rotate(-90deg); } 60%, 100% { transform: rotate(0); } }

/* "Jogue mais em breve!" — fim do conteúdo disponível */
.res-soon { display: flex; align-items: center; gap: 12px; text-align: left; margin: 10px 0; padding: 12px 16px; border-radius: 20px;
  background: linear-gradient(120deg, #e7f5ff, #f3f0ff); border: 2px solid #b197fc; }
.res-soon > span { font-size: 2.6rem; animation: soonRocket 2.4s ease-in-out infinite; }
.res-soon b { display: block; font: 800 1.15rem var(--kid); color: #5f3dc4; }
.res-soon b[lang="en"] { font-size: .95rem; color: #7950f2; }
.res-soon small { display: block; font-family: var(--adult); color: var(--ink-soft); margin-top: 2px; }
.soon-banner { max-width: 640px; margin: 6px auto 4px; padding: 0 14px; }
@keyframes soonRocket { 50% { transform: translateY(-6px) rotate(-8deg); } }

/* Casa na árvore: arrastar firme */
.room-stage { touch-action: none; }
.fm { position: absolute; width: 0; height: 0; pointer-events: none; }
.thing, .thing-up, .furn-up { pointer-events: none; }
.room-bin { position: absolute; right: 14px; bottom: 14px; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .92); border: 3px dashed #b197fc; font: 800 1rem var(--kid); color: var(--ink);
  opacity: 0; transform: translateY(10px) scale(.95); transition: opacity .2s, transform .2s, background .2s; pointer-events: none; }
.room-bin span { font-size: .9rem; }
.room-stage.dragging .room-bin { opacity: 1; transform: none; }
.room-bin.hot { background: #ffe3e3; border-color: #ff6b6b; transform: scale(1.08); }
.room-stage.dragging .th-hint { opacity: 0; }
.thing.lifted { z-index: 5; }

/* Textos dos jogos que trocam com o idioma escolhido */
.l-pt { display: none; }
html.lang-pt .l-pt { display: inline; }
html.lang-pt .l-en { display: none; }

/* Clube da Leitura: em breve */
.club-soon { text-align: center; padding: 8px 6px 4px; position: relative; }
.club-soon .club-soon-lock { position: absolute; top: 0; left: 50%; translate: 30px 0; font-size: 2.4rem; animation: soonRocket 2.4s ease-in-out infinite; }
.club-soon h2 { margin: 6px 0 8px; font: 800 1.6rem var(--kid); color: #5f3dc4; }
.club-soon p { font: 600 1.15rem/1.45 var(--adult); color: var(--ink); max-width: 420px; margin: 0 auto; }
.spot-lock { pointer-events: none; }

/* ===== Ilha da aventura (trilha das fases) ===== */
.trail-screen .hub-host { display: none; } /* o personagem fica em cima da pedrinha da ilha */
.trail-screen { padding-top: 12px; }
.trail-screen .hub-tabs { margin-bottom: 8px; }
.island-wrap { padding: 4px 12px 20px; display: flex; justify-content: center; }
.island { position: relative; container-type: inline-size; width: min(100%, calc((100dvh - 250px) * 1.6), 1300px); border-radius: 28px; overflow: hidden;
  box-shadow: 0 14px 34px rgba(20, 70, 120, .28), inset 0 0 0 5px rgba(255, 255, 255, .55); }
.island.portrait { width: min(100%, 620px); }
.isl-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.isl-road { fill: none; stroke: #f3dca0; stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.isl-road-done { fill: none; stroke: #ffd43b; stroke-width: 14; stroke-linecap: round; stroke-dasharray: 2 26; opacity: .95; }
.isl-wave { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; opacity: .7; animation: islWave 3.2s ease-in-out infinite; }
@keyframes islWave { 50% { transform: translateX(14px); opacity: .25; } }
.isl-deco, .isl-boat, .isl-cloud, .isl-chest, .stone { position: absolute; translate: -50% -50%; }
.isl-deco { line-height: 1; pointer-events: none; filter: drop-shadow(0 6px 4px rgba(0, 60, 0, .25)); transform-origin: 50% 100%; animation: islSway 5s ease-in-out infinite; }
@keyframes islSway { 50% { transform: rotate(3deg); } }
.isl-boat { font-size: 6cqw; animation: islBob 3s ease-in-out infinite; pointer-events: none; }
@keyframes islBob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.isl-cloud { font-size: 7cqw; opacity: .85; pointer-events: none; animation: islCloud 40s linear infinite; }
.isl-cloud.c1 { top: 9%; left: -10%; } .isl-cloud.c2 { top: 24%; left: -20%; animation-delay: -18s; font-size: 5cqw; }
@keyframes islCloud { to { transform: translateX(130cqw); } }
.isl-chest { font-size: 4.2cqw; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .25)); }
.isl-chest:not(.opened) { animation: islBob 2.4s ease-in-out infinite; }
.island.portrait .isl-chest { font-size: 7cqw; }
/* pedrinhas */
.stone { --s: 6.6cqw; width: var(--s); height: calc(var(--s) * .8); display: grid; place-items: center; text-decoration: none; color: #3b2a00;
  border-radius: 50%; background: radial-gradient(ellipse at 40% 30%, #fff 0, #e9ecef 35%, #adb5bd 100%);
  box-shadow: 0 calc(var(--s) * .1) 0 #868e96, 0 calc(var(--s) * .18) calc(var(--s) * .12) rgba(0, 0, 0, .28);
  animation: stoneIn .45s var(--d) both cubic-bezier(.3, 1.6, .5, 1); transition: transform .15s; }
.island.portrait .stone { --s: 12.5cqw; }
@keyframes stoneIn { from { opacity: 0; transform: translateY(-16px) scale(.6); } }
.stone-top { font: 800 calc(var(--s) * .38) var(--kid); line-height: 1; }
.stone.open { background: radial-gradient(ellipse at 40% 30%, #fff 0, color-mix(in srgb, var(--c) 35%, #fff) 40%, color-mix(in srgb, var(--c) 85%, #000 0%) 100%);
  box-shadow: 0 calc(var(--s) * .1) 0 color-mix(in srgb, var(--c) 70%, #000), 0 calc(var(--s) * .18) calc(var(--s) * .12) rgba(0, 0, 0, .3); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); cursor: pointer; }
.stone.done { background: radial-gradient(ellipse at 40% 30%, #fff9db 0, #ffd43b 45%, #f59f00 100%); box-shadow: 0 calc(var(--s) * .1) 0 #e67700, 0 calc(var(--s) * .18) calc(var(--s) * .12) rgba(0, 0, 0, .3); color: #7a4a00; text-shadow: none; }
.stone.locked { filter: grayscale(.4); opacity: .85; }
.stone.locked .stone-top { font-size: calc(var(--s) * .3); }
.stone.boss { --s: 9.6cqw; } .island.portrait .stone.boss { --s: 16cqw; }
.stone.secret { --s: 9cqw; } .island.portrait .stone.secret { --s: 15cqw; }
.stone.secret.open { background: radial-gradient(ellipse at 40% 30%, #fff 0, #e5dbff 40%, #9775fa 100%); box-shadow: 0 calc(var(--s) * .1) 0 #7048e8, 0 0 26px #d0bfff; }
.stone.open:hover, .stone.open:active { transform: translateY(-4px) scale(1.06); }
.stone.current { animation: stoneIn .45s var(--d) both, stonePulse 1.6s 1s ease-in-out infinite; }
@keyframes stonePulse { 0%, 100% { box-shadow: 0 calc(var(--s) * .1) 0 color-mix(in srgb, var(--c) 70%, #000), 0 0 0 0 rgba(255, 255, 255, .9); } 50% { box-shadow: 0 calc(var(--s) * .1) 0 color-mix(in srgb, var(--c) 70%, #000), 0 0 0 calc(var(--s) * .22) rgba(255, 255, 255, 0); } }
.stone-stars { position: absolute; top: 100%; left: 50%; translate: -50% 18%; display: flex; gap: 1px; font-size: calc(var(--s) * .22); white-space: nowrap; }
.stone-stars i { font-style: normal; color: rgba(255, 255, 255, .7); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.stone-stars i.on { color: #ffd43b; }
.stone-tip { position: absolute; bottom: 100%; left: 50%; translate: -50% -6px; background: #fff; border-radius: 999px; padding: 2px 8px; font: 800 calc(var(--s) * .2) var(--kid); color: #5f3dc4; white-space: nowrap; }
.stone-you { position: absolute; bottom: 62%; left: 50%; translate: -50% 0; pointer-events: none; animation: youHop 1.1s ease-in-out infinite; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .3)); }
.stone-you svg, .stone-you img { width: calc(var(--s) * .95); height: auto; }
@keyframes youHop { 50% { transform: translateY(-10px); } }
@media (max-width: 700px) { .island-wrap { padding: 4px 6px 16px; } .island { border-radius: 20px; } }

/* ===== Cômodo isométrico (estilo The Sims) ===== */
.iso-stage { position: relative; aspect-ratio: 1000 / 640; border-radius: 30px; overflow: hidden; touch-action: none; user-select: none;
  background: radial-gradient(ellipse at 50% 30%, #fffaf0, #f3e3c8); box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .6), 0 12px 30px rgba(120, 70, 20, .18); }
.iso-scale { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.iso-room { position: relative; }
.iso-wall { position: absolute; transform-origin: 0 100%; overflow: hidden; box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .08); }
.iso-wall.left { transform: skewY(-26.565deg); filter: brightness(.9); }
.iso-wall.right { transform: skewY(26.565deg); }
.iso-wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: rgba(255, 255, 255, .55); box-shadow: 0 -3px 0 rgba(0, 0, 0, .06); }
.iso-door { position: absolute; left: 14%; bottom: 0; width: 92px; height: 170px; background: linear-gradient(#c98a4e, #a86b3c); border-radius: 46px 46px 0 0; box-shadow: inset 0 0 0 6px #8a5a2b; }
.iso-door span { position: absolute; right: 14px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #ffd43b; }
.iso-frame { position: absolute; left: 58%; top: 18%; width: 110px; height: 84px; display: grid; place-items: center; font-size: 46px; background: #fff; border: 7px solid #b5733c; border-radius: 8px; overflow: hidden; }
.iso-frame img { width: 100%; height: 100%; object-fit: cover; }
.iso-win { position: absolute; left: 22%; top: 14%; width: 170px; height: 120px; border: 9px solid #fff; border-radius: 16px; box-shadow: 0 0 0 4px rgba(0, 0, 0, .08); display: flex; align-items: center; justify-content: space-around; font-size: 34px; overflow: hidden; }
.iso-win::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 7px; translate: -50% 0; background: #fff; }
.iso-shelf { position: absolute; right: 12%; top: 30%; width: 120px; height: 14px; background: #b5733c; border-radius: 4px; box-shadow: 0 6px 0 rgba(0, 0, 0, .1); }
.iso-floor-wrap { position: absolute; width: 622px; height: 622px; transform: scaleY(.5) rotate(45deg); transform-origin: 50% 50%; }
.iso-floor { position: absolute; inset: 0; box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .06); }
.iso-rug { position: absolute; inset: 24%; border-radius: 50%; opacity: .92; box-shadow: 0 0 0 6px rgba(255, 255, 255, .4); }
.iso-rug.sq { border-radius: 14px; }
.iso-rug[hidden] { display: none; }
.iso-grid { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.grid-lines polygon { fill: none; stroke: rgba(255, 255, 255, .0); stroke-width: 1.5; transition: stroke .2s; }
.iso-stage.dragging .grid-lines polygon { stroke: rgba(255, 255, 255, .75); }
.iso-hl { fill: rgba(64, 192, 87, .45); stroke: #2f9e44; stroke-width: 3; }
.iso-hl.bad { fill: rgba(250, 82, 82, .4); stroke: #e03131; }
.iso-things { position: absolute; inset: 0; }
.iso-thing, .iso-extra { position: absolute; width: 0; height: 0; }
.iso-thing { cursor: grab; }
.iso-shadow { position: absolute; left: 0; top: 0; height: 26px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(rgba(40, 20, 0, .35), transparent 70%); pointer-events: none; }
.iso-sprite { position: absolute; left: 0; bottom: 0; translate: -50% 8px; transition: transform .18s; transform-origin: 50% 100%; }
.iso-sprite.deco { font-size: 64px; line-height: 1; filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .18)); }
.iso-sprite.deco.rare { filter: drop-shadow(0 0 10px #ffe066); }
.iso-thing.flip .iso-sprite { transform: scaleX(-1); }
.iso-thing.lifted { cursor: grabbing; }
.iso-thing.lifted .iso-sprite { transform: translateY(-26px) scale(1.08); filter: drop-shadow(0 20px 10px rgba(0, 0, 0, .25)); }
.iso-thing.lifted.flip .iso-sprite { transform: translateY(-26px) scale(-1.08, 1.08); }
.iso-thing.lifted .iso-shadow { opacity: .5; transform: scale(.8); }
.iso-thing.sel .iso-sprite { filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 3px #7950f2); }
.iso-thing.settle { transition: left .22s cubic-bezier(.3, 1.4, .5, 1), top .22s cubic-bezier(.3, 1.4, .5, 1); }
.iso-thing.boing .iso-sprite { animation: isoBoing .4s; }
.iso-thing.flip.boing .iso-sprite { animation: isoBoingF .4s; }
@keyframes isoBoing { 40% { transform: scale(1.1, .9); } 70% { transform: scale(.95, 1.06); } }
@keyframes isoBoingF { 40% { transform: scale(-1.1, .9); } 70% { transform: scale(-.95, 1.06); } }
.iso-thing.pop-in .iso-sprite { animation: isoPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes isoPop { from { transform: scale(.2); opacity: 0; } }
.iso-pet { position: absolute; left: 0; bottom: 0; translate: -50% 8px; border: 0; background: none; padding: 0; cursor: pointer; }
.iso-light { position: absolute; inset: -40px; pointer-events: none; transition: background .5s; }
.iso-stage.light-fairy .iso-light { background: radial-gradient(ellipse at 50% 20%, rgba(255, 240, 200, .25), transparent 60%); }
.iso-stage.light-lamp .iso-light { background: radial-gradient(circle at 70% 55%, rgba(255, 196, 110, .3), rgba(80, 40, 0, .22) 75%); }
.iso-stage.light-night .iso-light { background: radial-gradient(circle at 50% 55%, rgba(255, 230, 160, .1), rgba(15, 15, 60, .5) 70%); }
.iso-bin { position: absolute; right: 14px; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 18px; font-size: 1.6rem;
  background: rgba(255, 255, 255, .94); border: 3px dashed #b197fc; opacity: 0; transform: translateY(12px); transition: .2s; pointer-events: none; }
.iso-bin span { font: 800 .9rem var(--kid); color: var(--ink); }
.iso-stage.dragging .iso-bin { opacity: 1; transform: none; }
.iso-bin.hot { background: #ffe3e3; border-color: #ff6b6b; transform: scale(1.08); }
.iso-tools { position: absolute; z-index: 6; translate: -50% -100%; display: flex; gap: 6px; background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 8px 20px rgba(43, 37, 96, .25); }
.iso-tools[hidden] { display: none; }
.iso-tools button { border: 0; background: #f4f1ff; border-radius: 12px; padding: 6px 10px; font-size: 1.3rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.iso-tools button[hidden] { display: none; }
.iso-tools small { font: 700 .62rem var(--adult); color: var(--ink-soft); }
.iso-hint { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font: 700 .9rem var(--adult); color: #7a4a1a; text-shadow: 0 1px 0 #fff8e6; pointer-events: none; z-index: 4; transition: opacity .2s; }
.iso-stage.dragging .iso-hint { opacity: 0; }
.iso-draw { position: absolute; left: 14px; bottom: 14px; z-index: 5; border: 0; border-radius: 999px; padding: 10px 16px; background: #fff; font: 800 .95rem var(--kid); box-shadow: 0 4px 0 #e5dbff; cursor: pointer; }
@media (max-width: 600px) { .iso-stage { aspect-ratio: 1000 / 700; border-radius: 20px; } .iso-hint { font-size: .78rem; } }

/* ===== Ilha v2: muitos estímulos ===== */
.island { box-shadow: 0 18px 40px rgba(10, 60, 120, .35), inset 0 0 0 5px rgba(255, 255, 255, .6); }
.isl-shimmer { animation: islShim 9s linear infinite; }
@keyframes islShim { to { transform: translate(120px, 60px); } }
.isl-foam { animation: islFoam 3s ease-in-out infinite; transform-box: fill-box; }
@keyframes islFoam { 50% { opacity: .35; stroke-width: 26; } }
.isl-flow { animation: islFlow 1.6s linear infinite; }
@keyframes islFlow { to { stroke-dashoffset: -50; } }
.isl-road-edge { fill: none; stroke: #d9b36a; stroke-width: 46; stroke-linecap: round; stroke-linejoin: round; }
.isl-road { stroke: #ffe8a8; stroke-width: 36; }
.isl-road-done { stroke: #ffd43b; stroke-width: 14; stroke-dasharray: 2 26; filter: drop-shadow(0 0 6px #fff3bf); }
.isl-ladder { fill: none; stroke: #fff; stroke-width: 10; stroke-dasharray: 4 22; stroke-linecap: round; opacity: .9; }
.isl-sky { animation: islFloat 4s ease-in-out infinite; }
@keyframes islFloat { 50% { transform: translateY(-10px); } }
.isl-sun { position: absolute; right: 3%; top: 3%; width: 10cqw; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff9db 0 30%, #ffe066 31% 45%, rgba(255, 224, 102, 0) 70%); animation: islSunP 4s ease-in-out infinite; }
@keyframes islSunP { 50% { transform: scale(1.12); } }
.isl-cloud.c3 { top: 4%; left: -30%; animation-delay: -30s; font-size: 6cqw; }
.isl-gulls { position: absolute; top: 18%; left: -10%; font-size: 3.2cqw; pointer-events: none; animation: islGull 22s linear infinite; }
@keyframes islGull { 0% { transform: translate(0, 0); } 50% { transform: translate(60cqw, -4cqw); } 100% { transform: translate(125cqw, 2cqw); } }
.isl-balloon { position: absolute; top: 6%; left: 12%; cursor: pointer; animation: islBalloon 26s ease-in-out infinite; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .2)); z-index: 2; }
@keyframes islBalloon { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(18cqw, 3cqw); } 50% { transform: translate(34cqw, -1cqw); } 75% { transform: translate(14cqw, 5cqw); } }
.isl-smoke { position: absolute; width: 0; height: 0; pointer-events: none; }
.isl-smoke i { position: absolute; left: -1.6cqw; top: 0; width: 3.2cqw; aspect-ratio: 1; border-radius: 50%; background: rgba(240, 240, 240, .85); animation: islSmoke 3.6s ease-out infinite; }
.isl-smoke i:nth-child(2) { animation-delay: 1.2s; } .isl-smoke i:nth-child(3) { animation-delay: 2.4s; }
@keyframes islSmoke { from { transform: translateY(0) scale(.5); opacity: .9; } to { transform: translate(2cqw, -9cqw) scale(1.8); opacity: 0; } }
.isl-sea, .isl-deco[data-say] { position: absolute; translate: -50% -50%; cursor: pointer; pointer-events: auto; line-height: 1; z-index: 1; }
.isl-sea.jump { animation: islJump 4s var(--k) ease-in-out infinite; }
@keyframes islJump { 0%, 55%, 100% { transform: translateY(0) rotate(0); opacity: 0; } 62% { opacity: 1; } 75% { transform: translate(3cqw, -5cqw) rotate(-30deg); opacity: 1; } 90% { transform: translate(6cqw, 0) rotate(40deg); opacity: 0; } }
.isl-sea.spout { animation: islBob 3.4s ease-in-out infinite; }
.isl-sea.spout::after { content: "💦"; position: absolute; left: 30%; top: -60%; font-size: .6em; animation: islSpout 2.6s ease-out infinite; }
@keyframes islSpout { 0%, 60% { opacity: 0; transform: translateY(10px) scale(.5); } 75% { opacity: 1; transform: translateY(-6px) scale(1.1); } 100% { opacity: 0; transform: translateY(-14px); } }
.isl-sea.swim { animation: islSwim 7s var(--k) ease-in-out infinite; }
@keyframes islSwim { 50% { transform: translateX(4cqw) scaleX(-1); } }
.isl-sea.bob { animation: islBob 3s var(--k) ease-in-out infinite; }
.isl-deco { z-index: 1; }
.isl-deco.pet.hop { animation: islHop 2.6s var(--k) ease-in-out infinite; }
@keyframes islHop { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-12px); } 90% { transform: translateY(0) scaleY(.9); } }
.isl-deco.pet.fly { animation: islFly 5s var(--k) ease-in-out infinite; }
@keyframes islFly { 25% { transform: translate(10px, -14px) rotate(-6deg); } 75% { transform: translate(-10px, -6px) rotate(6deg); } }
.isl-deco.pet.spin { animation: islSpin 6s linear infinite; }
@keyframes islSpin { to { rotate: 360deg; } }
.isl-deco.volcano { animation: none; }
.isl-deco[data-say]:active, .isl-sea:active, .isl-balloon:active { scale: 1.3; }
.isl-sparkles i { position: absolute; width: 8px; height: 8px; pointer-events: none; background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0) 70%); border-radius: 50%; animation: islTw 2.4s ease-in-out infinite; }
@keyframes islTw { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.6); } }
/* baús com raios girando */
.isl-chest { display: grid; place-items: center; z-index: 2; }
.isl-chest b { position: relative; font-weight: normal; }
.chest-rays { position: absolute; width: 2.4em; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 236, 153, .85) 0 12deg, rgba(255, 236, 153, 0) 12deg 30deg); animation: islSpin 6s linear infinite;
  mask: radial-gradient(circle, #000 20%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); }
/* fase da vez: feixe de luz + seta */
.isl-beam { position: absolute; width: 5cqw; height: 40cqw; translate: -50% -100%; pointer-events: none; z-index: 2; border-radius: 50% 50% 0 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--c) 70%, #fff) 0%, rgba(255, 255, 255, .5) 40%, rgba(255, 255, 255, 0) 100%); filter: blur(2px); opacity: .75; animation: islBeam 2s ease-in-out infinite; }
@keyframes islBeam { 50% { opacity: .4; width: 6.5cqw; } }
.island.portrait .isl-beam { width: 8cqw; height: 60cqw; }
.stone { z-index: 3; }
.stone-arrow { position: absolute; bottom: 175%; left: 50%; translate: -50% 0; color: #fff; font-size: calc(var(--s) * .45); text-shadow: 0 2px 0 rgba(0, 0, 0, .25); animation: youHop .8s ease-in-out infinite; pointer-events: none; }
.stone-biome { position: absolute; top: -48%; left: 50%; translate: -50% -100%; white-space: nowrap; font: 800 calc(var(--s) * .2) var(--kid); color: #fff;
  background: rgba(0, 0, 0, .32); border-radius: 999px; padding: 2px 8px; pointer-events: none; }
.stone.done::after { content: ""; position: absolute; inset: -14%; border-radius: 50%; border: 3px solid rgba(255, 236, 153, .9); animation: islRing 2.2s ease-out infinite; pointer-events: none; }
@keyframes islRing { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.stone.locked .stone-top { filter: grayscale(1); }

/* Viagem: energia com desenho (bateria / galão / chama), 2 opções grandes */
.fuel-slots .fs { width: 34px; height: 52px; border: 0; background: none; box-shadow: none; display: grid; place-items: center; }
.fuel-slots .fs svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.fuel-slots .fs.full svg { filter: drop-shadow(0 0 8px rgba(255, 255, 255, .9)); animation: islBob 1.6s ease-in-out infinite; }
.pw { border: 0; background: rgba(255, 255, 255, .95); border-radius: 26px; padding: 10px 20px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px;
  box-shadow: 0 6px 0 rgba(43, 37, 96, .18); animation: pwIn .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.pw:nth-of-type(2) { animation-delay: .1s; }
.pw-ic { width: clamp(70px, 11vw, 104px); height: clamp(90px, 14vw, 130px); display: grid; place-items: center; animation: pwWig 2.4s ease-in-out infinite; }
.pw-ic svg { width: 100%; height: 100%; }
.pw small { font: 800 1rem var(--kid); color: var(--ink); }
@keyframes pwIn { from { transform: scale(.3); opacity: 0; } }
@keyframes pwWig { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 92% { transform: rotate(8deg); } }
.pw.go { animation: pwGo .7s ease-in forwards; }
@keyframes pwGo { 40% { transform: translateY(-30px) scale(1.15); } 100% { transform: translate(-30vw, -40vh) scale(.2); opacity: 0; } }
.pw.nope { animation: shake .3s; }
.built.charge { filter: drop-shadow(0 0 18px #fff3bf) brightness(1.15); }
/* barra das baterias / botões sempre visível por cima do cenário */
.trip-bar { position: absolute; left: 0; right: 0; bottom: 0; flex-wrap: wrap; background: linear-gradient(rgba(30, 20, 80, 0), rgba(30, 20, 80, .85) 30%); padding-top: 26px; }
.screen-trip .trip-host { min-height: calc(100dvh - 96px); }
.club-pw { margin: 16px auto 0; max-width: 380px; background: #f4f1ff; border-radius: 18px; padding: 12px 14px; }
.club-pw label { display: block; font: 800 1rem var(--kid); color: #5f3dc4; margin-bottom: 8px; }
.club-pw > div { display: flex; gap: 8px; }
.club-pw input { flex: 1; min-width: 0; border: 2px solid #d0bfff; border-radius: 14px; padding: 10px 12px; font: 600 1.05rem var(--adult); }
.club-pw .big-btn { height: 48px; padding: 0 18px; font-size: 1.05rem; }
.club-soon .club-pw-err { min-height: 1.2em; margin: 6px 0 0; font: 700 .95rem var(--adult); color: #e03131; }
.club-pw.nope { animation: shake .3s; }

/* tela inteira no idioma escolhido: dos pares inglês/português, aparece só um */
html.lang-pt .i18n-en { display: none !important; }
html:not(.lang-pt) .i18n-pt { display: none !important; }
.i18n-gone { display: none !important; }
html.lang-pt .spot-label text.i18n-swap { font-size: 21px; }

/* ===== Tela cheia: jogos ocupam a tela inteira do tablet e do celular, sem rolar ===== */
#app.screen-level, #app.screen-play { height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
#app.screen-level > .kidbar, #app.screen-play > .kidbar { flex: none; }
#app.screen-level > .level-screen, #app.screen-play > .play { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.level-screen { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.lv-play { min-height: 0; }
.lv-stage { min-height: 0; }
/* tablets grandes: o jogo usa a largura da tela */
@media (min-width: 1150px) and (min-height: 700px) {
  .lv-play { max-width: min(1320px, 94vw); }
  .stage, .play-head { max-width: min(1240px, 94vw); }
  .page, .page-text, .balloon-field, .find-field, .catch-field { max-width: min(1200px, 92vw); }
  .lv-prompt b { font-size: 2.2rem; }
}
/* celular deitado (tela baixa): barra e títulos compactos para o jogo caber inteiro */
@media (max-height: 520px) {
  .kidbar { padding-top: 6px; padding-bottom: 6px; gap: 10px; }
  .kidbar .round-btn, .space-top .round-btn { width: 44px; height: 44px; font-size: 1.1rem; box-shadow: 0 3px 0 #d6cff3; }
  .kid-title { font-size: 1.1rem; }
  .kid-title small { font-size: .6em; margin-top: 2px; }
  .lang-toggle button { padding: 6px 8px; }
  .level-screen { padding: 8px clamp(10px, 2vw, 24px) max(8px, env(safe-area-inset-bottom)); }
  .lv-play { gap: 6px; }
  .lv-hud { padding: 4px 12px; gap: 10px; }
  .lv-hearts { font-size: 1.2rem; }
  .lv-prompt { padding: 4px 48px 4px 14px; border-radius: 18px; }
  .lv-prompt b { font-size: 1.2rem; }
  .lv-prompt .lv-say { width: 36px; height: 36px; }
  .lv-intro { padding: 16px 22px; }
  .lv-intro h2 { font-size: 1.4rem; }
  .page { height: clamp(140px, 38vh, 260px); }
  .page-text { padding: 10px 16px; }
  .balloon-field, .find-field, .catch-field { height: calc(100dvh - 190px); }
  .hub, .treehouse, .album, .area { padding-top: 12px; }
}
/* opções dos jogos acompanham o tamanho da tela (maiores no tablet grande, menores no celular deitado) */
@media (min-width: 1150px) and (min-height: 700px) {
  .ch-opts { max-width: min(1180px, 92vw); gap: 22px; }
  .ch-opt { min-height: 160px; font-size: 5.6rem; }
  .ch-opts.baby { grid-template-columns: repeat(auto-fit, minmax(220px, 320px)); }
  .ch-opts.baby .ch-opt { min-height: 230px; }
  .ch-listen { width: 100px; height: 100px; }
}
@media (max-height: 520px) {
  .lv-stage { justify-content: flex-start; gap: 8px; }
  .ch-listen { width: 52px; height: 52px; font-size: 1.5rem; flex: none; }
  .ch-opts { gap: 10px; }
  .ch-opt, .ch-opts.two .ch-opt, .ch-opts.bins .ch-opt { min-height: 0; height: clamp(70px, calc(100dvh - 230px), 150px); font-size: clamp(2rem, 13vh, 3.6rem); border-radius: 20px; }
  .ch-opts.baby { grid-template-columns: repeat(auto-fit, minmax(110px, 190px)); gap: 14px; }
  .ch-opts.baby .ch-opt { min-height: 0; }
  .ch-opt .num { font-size: clamp(1.8rem, 10vh, 3rem); }
  .ch-opt .shape { width: clamp(44px, 14vh, 80px); }
}
@media (max-height: 520px) {
  .ch-opts.baby .ch-opt { font-size: clamp(2.4rem, 16vh, 4.2rem); border-radius: 24px; }
  .ch-opts.baby .cblob { width: clamp(56px, 22vh, 110px); height: clamp(56px, 22vh, 110px); }
  .pc-field, .pr-field { height: calc(100dvh - 200px); }
  .pc-it { font-size: clamp(2.6rem, 14vh, 4.4rem); }
}

/* ===== Trilha: a ilha ocupa a página inteira (abas e placar ficam por cima, nos cantos) ===== */
#app.screen-trail { height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
#app.screen-trail > .kidbar { flex: none; }
.screen-trail .trail-screen { flex: 1; min-height: 0; padding: 0; position: relative; display: flex; flex-direction: column; }
.screen-trail .hub-host { display: none; }
.screen-trail .island-wrap { flex: 1; min-height: 0; padding: 0; display: flex; align-items: center; justify-content: center; container-type: size;
  background: radial-gradient(ellipse at 50% 50%, #6fe0f5 0, #2fb6ea 45%, #1673c8 100%); }
.screen-trail .island { width: min(100cqw, 100cqh * 2.1); height: min(100cqh, 100cqw / 1.25); aspect-ratio: auto !important; border-radius: 0; box-shadow: none; }
.screen-trail .island.portrait { width: min(100cqw, 100cqh * .8); height: min(100cqh, 100cqw * 2); }
.screen-trail .hub-tabs { position: absolute; z-index: 6; top: 10px; left: max(12px, env(safe-area-inset-left)); margin: 0; max-width: none; gap: 8px; }
.screen-trail .hub-tabs a { flex: none; flex-direction: row; gap: 6px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 0 rgba(0, 40, 90, .25); font-size: 1.05rem; backdrop-filter: blur(6px); }
.screen-trail .hub-tabs a.on { background: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 60%, #fff); }
.screen-trail .hub-tabs a.trip-tab { background: linear-gradient(135deg, #fff3b0, #ffd6f5); }
.screen-trail .trail-stats { position: absolute; z-index: 6; top: 10px; right: max(12px, env(safe-area-inset-right)); margin: 0; flex-direction: column; align-items: flex-end; gap: 6px; }
.screen-trail .trail-stats span { background: rgba(255, 255, 255, .88); box-shadow: 0 3px 0 rgba(0, 40, 90, .2); backdrop-filter: blur(6px); }
@media (max-height: 520px), (max-width: 700px) {
  .screen-trail .hub-tabs { top: 6px; gap: 6px; }
  .screen-trail .hub-tabs a { padding: 5px 10px; font-size: .85rem; }
  .screen-trail .trail-stats { top: 6px; gap: 4px; }
  .screen-trail .trail-stats span { padding: 3px 10px; font-size: .72rem; }
}
@media (orientation: portrait) {
  .screen-trail .trail-stats { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; top: auto; bottom: max(8px, env(safe-area-inset-bottom)); right: 8px; left: 8px; }
}
/* fase secreta (no topo da ilha): nome e estrelas ao lado da pedra, para não cortar na borda de cima */
.screen-trail .stone.secret .stone-biome { top: 50%; left: 100%; translate: 8px -110%; }
.screen-trail .stone.secret .stone-tip { bottom: auto; top: 50%; left: 100%; translate: 8px 0; }
/* dica do iPhone: instalar na Tela de Início para abrir em tela cheia */
.a2hs-tip { position: fixed; z-index: 9000; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); translate: -50% 0; width: min(92vw, 520px);
  display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 20px; padding: 10px 12px 10px 14px;
  box-shadow: 0 10px 30px rgba(43, 37, 96, .3); font: 500 .9rem var(--adult); animation: screenIn .35s ease-out; }
.a2hs-tip > span { font-size: 1.8rem; }
.a2hs-tip p { margin: 0; flex: 1; line-height: 1.35; }
.a2hs-tip button { border: 0; background: #f1edff; border-radius: 50%; width: 34px; height: 34px; flex: none; }
/* celular deitado: barra do jardim mais baixa para não cobrir os planetas */
@media (max-height: 520px) {
  .screen-world .kidbar { padding-top: 4px; padding-bottom: 4px; gap: 8px; background: transparent; border: 0; backdrop-filter: none; }
  .hud-chip { padding: 3px 9px; font-size: .85rem; }
  .hud-pet { width: 40px; height: 40px; }
  .hud-pet img { max-width: 32px; max-height: 32px; }
  .adv-hud { gap: 5px; }
  .world-guide { transform: scale(.72); transform-origin: 0 0; top: 6px; }
}

/* ===== Fundo das fases: o lugar da ilha (praia, floresta, rio, vila, montanhas, castelo, céu) ===== */
.level-screen { position: relative; isolation: isolate; }
.lv-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
.lv-bg .bg-e { dominant-baseline: auto; filter: drop-shadow(0 6px 4px rgba(0, 40, 0, .18)); }
.lv-bg .bg-cloud { animation: bgCloud 60s linear infinite; animation-delay: var(--k); opacity: .9; }
.lv-bg .bob { animation: bgBob 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.lv-bg .fly { animation: bgFly 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.lv-bg .twinkle { animation: bgTwinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.lv-bg .bg-wave { animation: bgWave 4s ease-in-out infinite; }
@keyframes bgCloud { from { transform: translateX(-120px); } 50% { transform: translateX(120px); } to { transform: translateX(-120px); } }
@keyframes bgBob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes bgFly { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, -24px); } }
@keyframes bgTwinkle { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes bgWave { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-40px); } }
html.reduce-motion .lv-bg * { animation: none !important; }
/* o painel de pergunta e o placar ficam um pouco mais sólidos sobre o cenário */
.level-screen .lv-hud, .level-screen .lv-prompt { background: rgba(255, 255, 255, .92); }
.level-screen .lv-intro { background: rgba(255, 255, 255, .9); box-shadow: 0 10px 30px rgba(0, 40, 90, .18); }
/* botões com o texto principal em inglês e o português ao lado: o texto do idioma escolhido fica grande */
.big-btn span.bt-main, .rep-label span.bt-main { font-size: inherit; font-weight: inherit; opacity: 1; }
/* jogos novos dos pequenos: contar figuras e "qual tem mais" */
.big-item.count-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: clamp(2.6rem, 7vw, 4.2rem); }
.ch-opt .em-row { font-size: clamp(2.6rem, 6vw, 3.8rem); letter-spacing: 2px; line-height: 1.2; display: block; max-width: 100%; word-break: break-all; }
