:root{font-family:Trebuchet MS,Arial,sans-serif;color:#234f40;background:#f4f9ee;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0;border-radius:18px;padding:15px 23px;min-height:48px;font-weight:700;color:inherit;background:#fff}button:hover{filter:brightness(.96);transform:translateY(-1px)}button:focus-visible,a:focus-visible{outline:4px solid #eaac28;outline-offset:4px}header{max-width:1200px;margin:auto;display:flex;align-items:center;gap:18px;padding:26px 32px}header a{font-weight:900;font-size:25px;text-decoration:none;color:#245b40}.leaf{color:#55924f;font-size:34px}.edition{border-left:1px solid #bfd0b8;padding-left:18px;color:#647b64}#home{margin-left:auto;background:#e2edd9}main{max-width:1120px;margin:18px auto;padding:0 28px;min-height:72vh}.hero{display:grid;grid-template-columns:38% 62%;align-items:center;gap:16px}.nina-wrap{position:relative;text-align:center;background:radial-gradient(ellipse,#e0edcc 0,transparent 68%);border-radius:50%}.nina{width:100%;max-width:340px;height:465px;object-fit:contain}.tag{text-transform:uppercase;letter-spacing:2px;font-size:13px;font-weight:bold;color:#6a8553}h1{font-size:clamp(34px,4.6vw,58px);letter-spacing:-2px;line-height:1.06;margin:14px 0 18px}h2{font-size:30px;letter-spacing:-1px}p{font-size:18px;line-height:1.55;color:#5b725e}.cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:28px 0 24px}.card{padding:19px;border-radius:20px;display:flex;gap:14px;align-items:center;min-height:85px}.card b{display:block;font-size:18px}.card small{font-size:14px;display:block;margin-top:5px}.symbol{font-size:29px}.blue{background:#dbeafd;color:#205c9c}.red{background:#ffe2df;color:#ab353b}.green{background:#dcefd9;color:#377246}.yellow{background:#fff0b9;color:#745b15}.primary{background:#2e704c;color:white;box-shadow:0 5px 0 #205538;padding:18px 44px;font-size:21px}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.secondary{background:transparent;text-decoration:underline;font-size:16px}footer{max-width:1120px;margin:25px auto;padding:20px 28px;border-top:1px solid #dce6d6;color:#6d8066;font-size:14px;display:flex;justify-content:space-between;gap:15px}.forest{border-radius:30px;background:#e2efd6;padding:28px;display:grid;grid-template-columns:1fr 240px;align-items:center;margin-top:25px}.forest img{width:220px}.pill{display:inline-block;border-radius:30px;padding:8px 14px;background:#e2edd9;font-weight:bold;font-size:14px}.game-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.game-head h1{font-size:32px;letter-spacing:-1px}.progress{height:9px;background:#dbe6d4;border-radius:9px;overflow:hidden}.progress div{background:#438557;height:100%;transition:width .3s}#stage{height:390px;border-radius:24px;overflow:hidden;margin-top:14px;background:#e5efd9;touch-action:none}#stage canvas{display:block}.feedback{min-height:56px;font-size:18px;font-weight:bold;margin:16px 0 5px;color:#285d43}.bin-actions{display:flex;gap:12px;justify-content:center}.bin-actions button{flex:1;max-width:260px;border:2px solid currentColor}.hint{font-size:15px;margin:12px 0;text-align:center}.finish{text-align:center;padding:45px 20px}.finish .medal{font-size:70px}dialog{border:0;border-radius:25px;max-width:560px;width:90%;padding:32px;color:#234f40;box-shadow:0 15px 90px #193f3540}dialog::backdrop{background:#173d3370}#close{float:right;padding:5px 15px;font-size:26px}dialog h2{clear:both}dialog .card{margin-bottom:10px}.error{padding:25px;background:#ffe2df} @media(max-width:680px){header{padding:16px 20px;gap:8px}header a{font-size:21px}.edition{display:none}main{padding:0 18px;margin-top:6px}.hero{grid-template-columns:100%;gap:0}.nina-wrap{order:2;display:none}.cards{margin:22px 0}.card{padding:14px;gap:9px;min-height:85px}.card b{font-size:16px}.symbol{font-size:23px}h1{letter-spacing:-1px}.actions .primary{width:100%}.actions{justify-content:center}.forest{grid-template-columns:1fr;padding:22px}.forest img{display:none}.game-head h1{font-size:25px}.game-head p{font-size:14px}#stage{height:350px}.bin-actions button{padding:14px 8px}.feedback{font-size:16px;min-height:63px}footer{flex-direction:column;font-size:13px}.hero:before{content:'';float:right;background:url(assets/nina.svg) center/contain no-repeat;width:90px;height:125px;position:absolute;right:18px;top:70px;pointer-events:none}.hero h1{padding-right:70px;font-size:37px}.hero .intro{max-width:85%}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:680px){.hero{display:block}.hero:before{display:none}.nina-wrap{display:block;float:left;width:100px;height:155px;margin:0 12px 6px 0;background:none}.nina{width:100px;height:155px}.hero h1{font-size:32px;padding-right:0}.hero .intro{max-width:100%}.cards{clear:both}.hero .tag{font-size:11px;letter-spacing:1px}}
/* Artes aprovadas: imagens intactas e controles HTML independentes. */
body.illustrated{background:#153d23;overflow-x:hidden}body.illustrated header,body.illustrated footer{display:none}body.illustrated main{max-width:none;min-height:100svh;margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:center}.art-screen{position:relative;width:min(100vw,177.52svh);aspect-ratio:1670/941;flex-shrink:0}.approved-art{display:block;width:100%;height:100%;object-fit:contain}.hotspot{position:absolute;background:transparent;border:0;border-radius:24px;padding:0;min-height:0;box-shadow:none}.hotspot span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.hotspot:hover{background:#fff2;transform:none;box-shadow:inset 0 0 0 3px #fff9}.hotspot:focus-visible{outline:4px solid white;outline-offset:-3px;background:#fff3}.orientation-note{display:none;color:white;text-align:center;font-size:16px;padding:16px;max-width:350px}body:not(.illustrated){background:#eaf6dc url('assets/floresta.jpg') center/cover fixed}body:not(.illustrated) main{background:#f4f9eef2;border-radius:24px;padding:22px 28px}body:not(.illustrated) header,body:not(.illustrated) footer{background:#f4f9eef2;border-radius:18px}dialog{max-height:90svh;overflow:auto}@media(orientation:portrait){.orientation-note{display:block}.art-screen{width:100vw}.hotspot{border-radius:10px}}@media(max-width:680px){body:not(.illustrated) main{padding:16px 18px;margin:8px}.game-head h1{font-size:24px}}
/* Desafio com a mesma linguagem de aventura das telas aprovadas. */
body.adventure{background:#73be25 url('assets/floresta.jpg') center/cover fixed;min-height:100svh;color:#103d13}body.adventure header{max-width:1200px;background:transparent;border-radius:0;padding:12px 24px;margin:auto}body.adventure header a{color:#fff63b;text-shadow:2px 3px #31551a,-1px -1px #31551a;font-size:28px}body.adventure .edition{color:white;border:0;text-shadow:1px 2px #173d13;font-weight:bold}body.adventure #home{background:linear-gradient(#55b711,#08732a);border:3px solid #ffe958;box-shadow:0 3px #a46c12,inset 0 0 0 2px white;color:white;text-shadow:1px 2px #174a16;border-radius:30px}body.adventure main{max-width:1100px;min-height:0;margin:0 auto;padding:0 24px 18px;background:transparent;border:0;border-radius:0}body.adventure footer{display:none}.adventure .game-head{max-width:800px;margin:auto;justify-content:center;position:relative;gap:25px;padding:14px 30px;background:repeating-linear-gradient(2deg,transparent 0 18px,#9f591b22 19px 21px),linear-gradient(#ffdf83,#efb24e);border:5px solid #be6c1c;border-radius:42px;box-shadow:inset 0 0 0 3px #fff1b1,0 6px 0 #754019,0 10px 16px #18371766;text-align:center}.adventure .game-head h1{margin:5px 0;font-size:clamp(23px,3.2vw,38px);font-weight:900;color:#123c13;text-shadow:1px 2px #fff7c9}.adventure .tag{color:#2c5c18;font-size:14px;letter-spacing:1px}.adventure .pill{background:linear-gradient(#a0df30,#358c18);border:3px solid #fff1a4;color:white;text-shadow:1px 2px #21550c;box-shadow:0 3px #87521e;white-space:nowrap}.adventure .progress{max-width:500px;margin:14px auto 5px;height:13px;border:2px solid #fff3a5;background:#244c1bbd;box-shadow:0 2px #6b451b}.adventure .progress div{background:linear-gradient(#fff76a,#ffbb00)}.adventure .hint{color:#153f13;background:#fffbdfeF;border:2px solid #77aa32;border-radius:22px;padding:7px 17px;width:fit-content;max-width:100%;margin:8px auto;font-weight:bold;font-size:15px}.adventure #stage{background:transparent;border-radius:0;height:clamp(290px,43svh,410px);margin:0;overflow:hidden}.adventure .feedback{background:#fffbe5;border:3px solid #5d961f;border-radius:26px;padding:10px 22px;margin:0 auto 12px;min-height:50px;max-width:760px;text-align:center;color:#184418;box-shadow:0 4px #305c2266}.adventure .bin-actions button{border:3px solid #fff7ad;border-radius:30px;box-shadow:0 4px #94591b,inset 0 0 0 2px #ffffff80;color:white;text-shadow:1px 2px #233c59;font-size:20px;padding:13px 20px}.adventure .bin-actions .blue{background:linear-gradient(#36b9ff,#005bce)}.adventure .bin-actions .red{background:linear-gradient(#ff7466,#d71b2b)}.adventure .finish{max-width:850px;margin:30px auto;background:#fff8dfee;border:5px solid #ffdc45;border-radius:40px;box-shadow:0 7px #99621b}.adventure .primary,.adventure #back{background:linear-gradient(#fff54c,#ffb000);border:3px solid #fff6a5;color:#174015;box-shadow:0 5px #a75c10}.adventure .finish h1{font-size:clamp(30px,5vw,54px)}@media(max-width:680px){body.adventure header{padding:9px 12px}.adventure header a{font-size:23px}body.adventure main{padding:0 10px 12px;margin:0}.adventure .game-head{padding:12px 10px;border-width:4px;border-radius:27px;gap:8px}.adventure .game-head h1{font-size:24px}.adventure .tag{font-size:11px}.adventure .pill{font-size:13px;padding:7px}.adventure .feedback{font-size:16px;padding:9px 12px}.adventure .bin-actions button{font-size:17px;padding:12px 8px}.adventure #stage{height:310px}.adventure .hint{font-size:13px}}@media(orientation:landscape) and (max-height:600px){body.adventure header{padding:6px 22px}.adventure .game-head{padding:7px 20px}.adventure #stage{height:270px}.adventure .hint{margin:6px auto}}
#sound-toggle{margin-left:auto;background:linear-gradient(#55b711,#08732a);border:3px solid #ffe958;color:white;border-radius:30px;box-shadow:0 3px #a46c12;font-size:15px;padding:10px 15px}body.adventure #home{margin-left:0}.hotspot.muted:after{content:'×';position:absolute;right:0;bottom:0;color:white;background:#a33424;border:2px solid #fff8bb;border-radius:50%;font-size:clamp(14px,2vw,28px);width:1.1em;line-height:1.1}#sound-toggle.muted{background:#536c39}@media(max-width:680px){body.adventure header{gap:7px}#sound-toggle{font-size:12px;padding:7px 9px}body.adventure header a{font-size:19px}body.adventure #home{padding:8px 12px}}
.level-node{position:absolute;top:54%;width:11.6%;height:20%;border:4px solid #ecf4da;border-radius:50%;background:linear-gradient(145deg,#b7c1c6,#69767a);box-shadow:inset 0 0 0 5px #d4dddf,0 5px #38463e;color:white;text-shadow:2px 3px #394634;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;min-height:0}.level-node strong{font-size:clamp(20px,5.6vw,80px);line-height:1}.level-node small{font-size:clamp(8px,1.5vw,23px);color:#fff19a;margin-top:5%}.level-node.available,.level-node.done{background:linear-gradient(140deg,#b6f222,#1c9c03 65%,#096a1d);border-color:#ffec73;box-shadow:inset 0 0 0 4px #fffad6,0 5px #895e12}.level-node.available{outline:3px solid #fff799;outline-offset:3px}.level-node:disabled{cursor:default;filter:saturate(.25)}.level-node:disabled:hover{transform:none}.adventure .bin-actions{flex-wrap:wrap;max-width:820px;margin:auto}.adventure .bin-actions .green{background:linear-gradient(#55c954,#14742c)}.adventure .bin-actions .yellow{background:linear-gradient(#ffed64,#e4b414);color:#373000;text-shadow:none}.adventure .play-help{text-align:center}.adventure #map-back{background:linear-gradient(#54b825,#08732a);color:white;border:3px solid #fff1a4;border-radius:30px;padding:10px 22px;margin:8px}.adventure .finish .actions{gap:15px}.adventure #stage{min-height:310px}@media(max-width:619px){.adventure #stage.four-bins{height:450px}.adventure .bin-actions button{flex:1 1 42%;max-width:none}.level-node{border-width:2px;box-shadow:inset 0 0 0 2px #d4dddf,0 2px #38463e}.level-node.available,.level-node.done{box-shadow:inset 0 0 0 2px #fffad6,0 2px #895e12}.level-node.available{outline-width:2px;outline-offset:1px}}
body.letters-world{background:#52b5d2 url('assets/floresta.jpg') center/cover fixed}.letters-welcome,.letters-play{display:flex;align-items:center;justify-content:center;gap:30px;margin:25px auto}.letters-welcome>img{width:240px;max-width:30%;object-fit:contain}.letters-message,.letter-board{background:linear-gradient(#fffef0,#fff2c3);border:5px solid #ffdb4b;border-radius:32px;box-shadow:0 6px #a7731c,0 12px 28px #19380b44;padding:24px;max-width:650px}.letters-message h2{margin:0;font-size:28px}.letters-path{display:grid;grid-template-columns:repeat(5,1fr);gap:15px;margin:30px auto}.letter-level{display:flex;flex-direction:column;align-items:center;gap:12px;background:linear-gradient(#37c5ff,#0579cf);color:white;border:3px solid #fff8b3;box-shadow:0 5px #856425;text-shadow:1px 2px #124370;padding:18px 10px}.letter-level strong{font-size:36px}.letter-level small{font-size:13px}.letter-level:disabled{filter:grayscale(.8);cursor:default;opacity:.85}.letter-level.done{background:linear-gradient(#74c932,#168238)}.letters-nina{width:230px;max-width:26%;object-fit:contain}.letter-board{text-align:center;flex:1}.letter-board h2{font-size:25px;margin:0 0 12px}.letter-display{font-family:Arial,sans-serif;font-size:clamp(40px,6vw,76px);font-weight:700;letter-spacing:5px;color:#0477b2;padding:20px 8px;min-height:120px}.letter-options{display:flex;justify-content:center;gap:18px}.letter-options button{width:95px;height:95px;font:700 50px Arial,sans-serif;color:#164b16;background:linear-gradient(#fff96b,#ffc028);border:4px solid #fffceb;box-shadow:0 5px #b6730b}.letter-options button:disabled{opacity:.65;cursor:default}.letter-bottom{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin:15px}.letter-bottom button{border:3px solid #fff2a3;box-shadow:0 4px #a47419}.letter-bottom [hidden]{display:none}@media(max-width:680px){.letters-path{grid-template-columns:repeat(2,1fr);gap:12px}.letters-welcome{gap:8px;margin:18px auto}.letters-message{padding:17px}.letters-message p{font-size:16px}.letters-message h2{font-size:23px}.letters-message .primary{padding:14px 22px}.letters-play{gap:0;position:relative;margin:20px auto}.letters-nina{position:absolute;width:65px;max-width:none;top:-12px;left:-3px;pointer-events:none}.letter-board{padding:18px 12px}.letter-board h2{padding-left:46px;font-size:21px;min-height:50px}.letter-display{font-size:46px;letter-spacing:2px;min-height:105px}.letter-options{gap:12px}.letter-options button{width:75px;height:80px;font-size:44px;padding:8px}.letter-level span{font-size:16px}.letter-level strong{font-size:28px}}
body.numbers-world{background:radial-gradient(ellipse at 5% 90%,#76c92d 0 10%,transparent 10.4%),radial-gradient(ellipse at 94% 80%,#62bc25 0 12%,transparent 12.4%),linear-gradient(174deg,#60cdf5 0%,#c0f2ff 40%,#27bcdc 40.3%,#52d3db 65%,#ffe9a1 65.3%,#efc879 100%);background-attachment:fixed}body.numbers-world .letter-level{background:linear-gradient(#ffb930,#ef7306);text-shadow:1px 2px #754006}body.numbers-world .letter-level.done{background:linear-gradient(#83d144,#248e30)}body.numbers-world .number-display{font-size:clamp(32px,5vw,64px);letter-spacing:4px;line-height:1.5;color:#a86200;max-width:500px;margin:auto;overflow-wrap:anywhere}body.numbers-world .letter-board{border-color:#ffe787;min-width:0}body.numbers-world .letter-options button{color:#8a4300}body.numbers-world .game-head{background:repeating-linear-gradient(2deg,transparent 0 18px,#9f591b22 19px 21px),linear-gradient(#ffe699,#ffbd63)}@media(max-width:680px){body.numbers-world .number-display{font-size:36px;letter-spacing:2px}.numbers-world .letters-message h2{font-size:22px}}
body.animals-world{background:#589e49 url('assets/floresta.jpg') center/cover fixed}.animals-world .letter-level{background:linear-gradient(#ca7af5,#7835bb);text-shadow:1px 2px #402266}.animals-world .letter-level.done{background:linear-gradient(#83d144,#248e30)}.animals-world .letter-board{max-width:760px;min-width:0;border-color:#e8c1ff}.animals-world .animal-display{font-size:clamp(28px,4vw,52px);letter-spacing:0;line-height:1.25;color:#753c9b;min-height:110px;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}.animals-world .letter-options{gap:12px;align-items:stretch}.animals-world .letter-options button{font-family:Trebuchet MS,Arial,sans-serif;font-size:clamp(16px,2vw,23px);width:auto;flex:1;min-width:0;height:auto;min-height:90px;padding:12px 10px;overflow-wrap:normal;line-height:1.2;background:linear-gradient(#f1dbff,#ce9bef);border-color:#fff6d4;color:#4c2169}.animals-world .letters-message h2{color:#703d8d}.animals-world .game-head h1{font-size:clamp(23px,3vw,36px)}@media(max-width:680px){.animals-world .letter-options{flex-direction:column}.animals-world .letter-options button{min-height:56px;font-size:19px;padding:14px}.animals-world .animal-display{font-size:33px;min-height:100px}.animals-world .letter-board h2{font-size:21px}.animals-world .letters-welcome>img{max-width:25%}}
/* Retorno à escola, disponível em todas as telas sem cobrir os controles. */
.site-return-bar{height:48px;display:flex;align-items:center;padding:0 max(14px,env(safe-area-inset-left));background:#174c30;border-bottom:1px solid #ffffff30}
.site-return{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;color:#fff8d6;text-decoration:none;font-size:15px;font-weight:700;border-radius:10px}
.site-return:hover{background:#ffffff18}
.site-return:focus-visible{outline:3px solid #ffe17d;outline-offset:-3px}
body.illustrated main{min-height:calc(100svh - 48px)}
body.illustrated .art-screen{width:min(100vw,calc((100svh - 48px)*1.7752))}
@media(orientation:portrait){body.illustrated .art-screen{width:100vw}}
