@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900;1000&display=swap');
:root{--ink:#2e3155;--muted:#737794;--purple:#6758d5;--gold:#ffd66e;--paper:#fff;--shadow:0 18px 55px #34306b22;--line:#e9e7f5}*{box-sizing:border-box}body{margin:0;min-height:100vh;padding:20px;font-family:Nunito,system-ui,sans-serif;color:var(--ink);background:linear-gradient(140deg,#e9f3ff,#f4efff 50%,#fff2e3);overflow-x:hidden}button,select{font:inherit}button{cursor:pointer}.app{position:relative;z-index:1;max-width:1120px;margin:auto}.sparkle-layer:before,.sparkle-layer:after{content:'✦  ✧  ✦';position:fixed;z-index:0;color:#e6b94d88;font-size:40px;letter-spacing:40px;pointer-events:none}.sparkle-layer:before{top:8%;left:3%}.sparkle-layer:after{right:2%;bottom:8%;color:#8b80d888}.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.brand{display:flex;align-items:center;gap:12px}.brand-icon{width:52px;height:52px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(145deg,#8c7df0,#5949c9);font-size:27px;color:white;box-shadow:0 7px 0 #4e40b5}.brand h2{font-size:21px;line-height:1;margin:0;font-weight:1000}.brand small{display:block;color:var(--muted);font-weight:800;margin-top:4px}.top-actions{display:flex;gap:8px}.soft-btn{border:1px solid var(--line);background:#ffffffdb;color:var(--ink);border-radius:14px;padding:10px 14px;font-weight:900;box-shadow:0 4px 12px #34306b0c}.soft-btn:hover{transform:translateY(-2px)}.panel{background:#ffffffed;border:1px solid #fff;border-radius:28px;box-shadow:var(--shadow);overflow:hidden}.hero{min-height:390px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:12px;padding:clamp(24px,5vw,54px);color:#fff;background:linear-gradient(115deg,#5547c6eF,#8a77e8d9),url('./assets/castle-bg.jpg') center/cover}.eyebrow{display:inline-flex;padding:7px 12px;border:1px solid #ffffff55;border-radius:99px;background:#ffffff20;font-size:12px;font-weight:1000;letter-spacing:.06em}.hero h1{font-size:clamp(37px,6vw,61px);line-height:.99;letter-spacing:-.04em;margin:16px 0 12px;font-weight:1000}.hero h1 em{font-style:normal;color:#ffe18b}.hero p{max-width:510px;font-size:17px;line-height:1.5;color:#ffffffed;font-weight:700}.hero-art{display:flex;justify-content:center;align-items:center;position:relative;min-height:270px}.hero-mascot{width:min(290px,80%);aspect-ratio:1;border-radius:44% 56% 55% 45%;border:8px solid #ffffff88;background:#ffe19b url('./assets/monkey.png') center/cover;box-shadow:0 22px 30px #29205c55;animation:bob 3.5s ease-in-out infinite}.float-star{position:absolute;right:9%;top:8%;font-size:53px;animation:twinkle 1.8s infinite}.float-bee{position:absolute;left:4%;bottom:4%;width:90px;filter:drop-shadow(0 8px 8px #30265b44);animation:fly 4s ease-in-out infinite}.primary{border:0;border-radius:17px;padding:15px 24px;min-height:54px;background:linear-gradient(#ffe48f,#ffc94f);color:#514020;font-weight:1000;font-size:16px;box-shadow:0 7px 0 #dfa83b,0 12px 22px #30265b30;transition:.16s}.primary:hover{transform:translateY(-2px)}.primary:active{transform:translateY(4px);box-shadow:0 2px 0 #dfa83b}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:17px}.feature{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:17px;padding:13px;background:#fff}.feature i{font-style:normal;font-size:25px}.feature b{display:block;font-size:13px}.feature small{color:var(--muted);font-size:11px;font-weight:800}.heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:25px 28px 0}.heading h1{font-size:clamp(25px,4vw,35px);margin:0;font-weight:1000}.heading p{margin:5px 0;color:var(--muted);font-weight:700}.stats{display:flex;flex-wrap:wrap;gap:9px;padding:16px 28px}.pill{padding:8px 13px;border-radius:99px;background:#f5f2ff;color:#5146ad;font-size:13px;font-weight:1000}.levelbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 28px 18px;padding:14px 16px;border-radius:17px;background:#f6f4ff}.levelbar label{font-weight:1000}.levelbar small{display:block;color:var(--muted);font-weight:700}.levelbar select{border:1px solid #dcd7f5;border-radius:12px;padding:10px;background:#fff;color:var(--ink);font-weight:900}.worlds{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;padding:0 28px 25px}.world{position:relative;display:flex;align-items:center;gap:16px;min-height:150px;padding:15px;border:2px solid #ffffffb0;border-radius:22px;overflow:hidden;text-align:left;color:#fff;background-position:center;background-size:cover;box-shadow:0 7px 0 #39306d18;isolation:isolate;transition:.2s}.world:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#182447b8,#18244728);z-index:-1}.world:hover:not(:disabled){transform:translateY(-3px) scale(1.01)}.world:disabled{filter:grayscale(.5);opacity:.58;cursor:not-allowed}.world.forest{background-image:url('./assets/forest-bg.jpg')}.world.village{background-image:url('./assets/village-bg.jpg')}.world.island{background-image:url('./assets/island-bg.jpg')}.world.castle{background-image:url('./assets/castle-bg.jpg')}.world-portrait{width:82px;height:82px;flex:0 0 82px;border-radius:50%;border:4px solid #ffffffd9;background:#fff;box-shadow:0 6px 15px #0003;object-fit:cover}.world-info{position:relative;z-index:1}.world-info strong{display:block;font-size:18px;line-height:1.1;text-shadow:0 2px 4px #0006}.world-info small{display:block;margin:5px 0 9px;color:#fff;font-weight:800;text-shadow:0 2px 4px #0006}.world-tag{display:inline-block;background:#ffffffeb;color:#4e448f;border-radius:99px;padding:5px 10px;font-size:10px;font-weight:1000}.mapfoot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 28px 25px}.mapfoot small,.footnote{color:var(--muted);font-weight:700}.gamehead{display:flex;justify-content:space-between;align-items:center;padding:20px 25px 0}.gamehead strong{color:#5e51c8}.progress{height:12px;margin:14px 25px 0;border-radius:99px;background:#eeecf8;overflow:hidden}.progress>span{display:block;height:100%;background:linear-gradient(90deg,#6fdbb1,#68baf1);border-radius:99px;transition:width .3s}.question{max-width:800px;margin:auto;padding:25px 28px 30px;text-align:center}.qkicker{font-size:12px;letter-spacing:.1em;color:#6557ca;font-weight:1000}.question h1{font-size:clamp(23px,4vw,33px);line-height:1.2;margin:10px 0 18px}.scene{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;min-height:120px;margin-bottom:18px;padding:15px;border:1px dashed #d9d3f3;border-radius:22px;background:linear-gradient(130deg,#faf9ff,#eff9ff)}.scene img{width:82px;height:82px;object-fit:cover;border-radius:50%;box-shadow:0 6px 15px #29205c20}.equation{display:flex;align-items:center;gap:9px}.number{background:#fff;border-radius:14px;padding:10px 16px;box-shadow:0 4px 13px #3331;font-size:28px;font-weight:1000;color:#594bc0}.symbol{font-size:30px;color:#9a91c9;font-weight:1000}.answers{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.answer{border:2px solid #e7e4f5;background:#fff;border-radius:17px;min-height:68px;font-size:26px;font-weight:1000;color:var(--ink);box-shadow:0 5px 0 #e7e4f5;transition:.15s}.answer:hover{transform:translateY(-3px);border-color:#aaa0e9}.answer.correct{background:#e5faef;border-color:#75d8ad;color:#28764f;box-shadow:0 5px 0 #a8e7c8}.answer.wrong{background:#fff0f2;border-color:#f4a7b6;color:#a43d58;animation:shake .3s}.answer:disabled{cursor:default}.feedback{margin:18px auto 0;padding:15px;border-radius:17px;font-weight:800}.feedback.good{background:#e9fbf1;color:#286e50;border:1px solid #bcebd2}.feedback.try{background:#fff7e7;color:#805c1d;border:1px solid #ffe2a8}.feedback strong{display:block;font-size:18px;margin-bottom:4px}.feedback p{margin:0;line-height:1.4}.actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:18px}.hint{margin-top:14px;padding:13px;background:#fff8e7;border-left:4px solid #f0c65d;border-radius:12px;text-align:left;color:#765c27;font-weight:800}.complete{text-align:center;padding:38px 25px 34px}.medal{width:140px;height:140px;margin:0 auto 18px;display:grid;place-items:center;border:9px solid #fff0c5;border-radius:50%;background:linear-gradient(145deg,#ffe58e,#ffc84e);box-shadow:0 9px 0 #e5b34b,0 15px 25px #45356b22;font-size:70px;animation:medalpop .65s cubic-bezier(.2,1.5,.4,1)}.complete h1{font-size:clamp(28px,5vw,42px);margin:0;font-weight:1000}.complete p{max-width:560px;margin:10px auto 18px;color:var(--muted);font-weight:700;line-height:1.5}.reward{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin:18px 0 25px}.reward span{padding:9px 14px;border-radius:99px;background:#f4f1ff;color:#5044b0;font-weight:1000}.confetti{position:fixed;z-index:20;top:-15px;width:10px;height:16px;pointer-events:none;animation:confettiFall var(--duration) linear forwards;left:var(--left);background:var(--color);transform:rotate(var(--rotate))}.mascot-cheer{animation:cheer .55s ease-in-out 2}.footnote{text-align:center;padding:13px 5px;font-size:11px}.hidden{display:none}@keyframes bob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-10px) rotate(2deg)}}@keyframes fly{0%,100%{transform:translate(0,0) rotate(-8deg)}50%{transform:translate(9px,-12px) rotate(8deg)}}@keyframes twinkle{50%{transform:scale(1.25) rotate(18deg)}}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}@keyframes medalpop{0%{transform:scale(.2) rotate(-35deg);opacity:0}100%{transform:scale(1) rotate(0);opacity:1}}@keyframes cheer{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-14px) rotate(8deg)}}@keyframes confettiFall{to{transform:translateY(110vh) rotate(720deg);opacity:0}}@media(max-width:720px){body{padding:11px}.hero{grid-template-columns:1fr;text-align:center;padding:29px 22px 18px}.hero p{margin-left:auto;margin-right:auto}.hero-art{min-height:190px}.hero-mascot{width:165px}.float-bee{width:65px}.features{grid-template-columns:1fr;padding:12px}.heading{padding:21px 18px 0}.stats{padding:14px 18px}.levelbar{margin:0 18px 17px;align-items:flex-start;flex-direction:column}.levelbar select{width:100%}.worlds{grid-template-columns:1fr;padding:0 18px 20px}.mapfoot{padding:0 18px 20px}.world{min-height:130px}.question{padding:22px 17px}.gamehead{padding:17px 17px 0}.progress{margin:13px 17px 0}.answers{grid-template-columns:repeat(2,1fr)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Evolução 3.0 — seleção de personagem, mapa, companheiro e conquistas */
.hero-companion{position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:max-content;max-width:95%;padding:9px 15px;border-radius:99px;background:#ffffffed;color:#5548b5;font-size:12px;font-weight:1000;box-shadow:0 6px 18px #29205c22}
.selection-panel,.achievements-panel{padding-bottom:26px}.hero-select-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:24px 28px}.hero-choice{display:flex;flex-direction:column;align-items:center;gap:7px;padding:17px 12px;border:2px solid #e9e5f7;border-radius:22px;background:linear-gradient(180deg,#fff,#f8f6ff);color:var(--ink);box-shadow:0 6px 0 #e9e5f7;transition:.18s}.hero-choice:hover{transform:translateY(-4px)}.hero-choice.chosen{border-color:#7b6be0;background:#f1eeff;box-shadow:0 6px 0 #c7bdf5,0 0 0 4px #7b6be022}.hero-choice img{width:min(100%,150px);aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 7px 8px #29205c20)}.hero-choice b{font-size:20px}.hero-choice small{color:var(--muted);font-weight:800}.hero-choice span{margin-top:5px;padding:7px 13px;border-radius:99px;background:#eeeaff;color:#5548b5;font-size:12px;font-weight:1000}.hero-choice.chosen span{background:#dff8e9;color:#28764f}.selection-bottom{text-align:center;padding:0 25px}.selection-bottom p{color:var(--muted);font-weight:700}.map-companion{display:flex;align-items:center;gap:12px;margin:0 28px 16px;padding:10px 15px;border-radius:17px;background:linear-gradient(100deg,#f0edff,#effaff);color:var(--ink)}.map-companion img{width:62px;height:62px;object-fit:contain;filter:drop-shadow(0 4px 5px #3332);animation:bob 3s ease-in-out infinite}.map-companion b,.map-companion small{display:block}.map-companion small{color:var(--muted);font-weight:700;margin-top:3px}.world-route{position:relative}.route-line{position:absolute;z-index:0;left:10%;right:10%;top:50%;border-top:5px dashed #b6a9ef;transform:rotate(-2deg);opacity:.65}.worlds{position:relative;z-index:1}.companion-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:100px}.companion-stage img{width:90px;height:90px;object-fit:contain;filter:drop-shadow(0 6px 7px #29205c25)}.companion-stage span{font-size:11px;font-weight:1000;color:#6658c7}.mascot-idle img{animation:bob 2.8s ease-in-out infinite}.mascot-cheer img{animation:cheer .55s ease-in-out 2}.mascot-worry img{animation:worry .55s ease-in-out 2;filter:drop-shadow(0 6px 7px #d28a422e)}.achievement-summary{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 12px;margin:20px 28px;padding:17px;border-radius:18px;background:#f5f2ff}.achievement-summary strong{font-size:22px;color:#594bc0}.achievement-summary span{font-size:12px;color:var(--muted);font-weight:800;margin-right:14px}.medal-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px;padding:0 28px}.medal-card{display:flex;align-items:center;gap:14px;padding:13px;border:1px solid var(--line);border-radius:18px;background:#fff}.medal-card img{width:78px;height:78px;object-fit:contain}.medal-card b,.medal-card small{display:block}.medal-card small{color:var(--muted);font-weight:800}.medal-big{display:block;font-size:25px;margin:3px 0}.locked-medal{filter:grayscale(.8);opacity:.65;background:#f8f8fa}.achievement-note{margin:18px 28px 0;padding:14px;border-radius:14px;background:#fff8e7;color:#765c27;font-weight:800;font-size:13px;line-height:1.5}.grand-finale{text-align:center;padding:32px 25px 38px;background:radial-gradient(circle at 50% 0,#fff4ce,#fff 46%)}.final-castle{font-size:86px;line-height:1.2;filter:drop-shadow(0 10px 8px #5c4c9c22);animation:bob 3s ease-in-out infinite}.final-heroes{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:5px auto 18px}.final-hero{display:flex;flex-direction:column;align-items:center;gap:2px;color:#5d51bd;font-size:12px}.final-hero img{width:clamp(66px,12vw,112px);height:clamp(66px,12vw,112px);object-fit:contain;animation:cheer .8s ease-in-out infinite alternate}.final-hero:nth-child(2) img{animation-delay:.12s}.final-hero:nth-child(3) img{animation-delay:.24s}.final-hero:nth-child(4) img{animation-delay:.36s}.eyebrow-final{display:inline-block;padding:7px 14px;border-radius:99px;background:#e8f9ef;color:#28764f;font-weight:1000;font-size:12px;letter-spacing:.1em}.grand-finale h1{font-size:clamp(29px,5vw,46px);margin:13px 0 8px;color:#5044ad}.grand-finale p{max-width:650px;margin:0 auto;color:var(--muted);font-weight:700;line-height:1.55}.grand-finale .reward{margin-top:20px}
@keyframes worry{0%,100%{transform:translateX(0) rotate(0)}25%{transform:translateX(-5px) rotate(-7deg)}75%{transform:translateX(5px) rotate(7deg)}}
@media(max-width:720px){.hero-select-grid{grid-template-columns:repeat(2,1fr);padding:18px}.hero-choice img{width:115px}.map-companion{margin:0 18px 14px}.route-line{display:none}.medal-grid{grid-template-columns:1fr;padding:0 18px}.achievement-summary{margin:16px 18px}.achievement-note{margin:16px 18px 0}.companion-stage{min-width:76px}.companion-stage img{width:72px;height:72px}.grand-finale{padding:25px 16px}.hero-companion{font-size:10px}}
