*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-rounded,system-ui,-apple-system,Segoe UI,Arial;background:#fffaf3;color:#24323d}a{text-decoration:none;color:inherit}button,select,input{font:inherit}.wrap{max-width:1120px;margin:auto;padding:20px}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.brand{font-size:28px;font-weight:950}.brand span{color:#ff725e}.hud{display:flex;gap:8px;flex-wrap:wrap}.stat{background:#fff;border:1px solid #eadfce;border-radius:18px;padding:10px 14px;font-weight:850}.hero{margin:20px 0;padding:34px;border-radius:34px;background:linear-gradient(135deg,#ffe69d,#ffd9e4 55%,#d9f6ec);display:grid;grid-template-columns:1.4fr .8fr;gap:20px;align-items:center}.hero h1{font-size:48px;line-height:1.02;margin:8px 0 12px}.hero p{font-size:18px;line-height:1.55;max-width:700px}.mascot{font-size:116px;text-align:center;filter:drop-shadow(0 10px 12px #0001);animation:bob 2.4s ease-in-out infinite}.eyebrow,.tag{display:inline-block;padding:6px 11px;border-radius:999px;background:#fff9;font-size:12px;font-weight:900}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:18px;padding:13px 18px;font-weight:900;cursor:pointer;background:#24323d;color:#fff;min-height:46px}.btn.alt{background:#fff;color:#24323d;border:2px solid #e4dacd}.btn:disabled{opacity:.45;cursor:not-allowed}.section{margin:34px 0}.section h2{font-size:28px;margin-bottom:14px}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.card{background:#fff;border:2px solid #eee1d2;border-radius:26px;padding:20px;box-shadow:0 8px 26px #5b46330d;transition:.18s transform,.18s border-color}.card:hover{transform:translateY(-3px);border-color:#e6c9b5}.card h3{margin:8px 0}.card p{color:#66727b;line-height:1.45}.icon{font-size:44px}.progress{height:12px;border-radius:999px;background:#eee7dc;overflow:hidden}.bar{height:100%;background:#24323d;border-radius:inherit;transition:width .35s ease}.dash{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}.panel{background:#fff;border:2px solid #eee1d2;border-radius:26px;padding:22px}.panel h3{margin-top:0}.premium{background:#24323d;color:#fff;border-radius:30px;padding:28px}.small{font-size:13px;color:#7b858c}.footer{text-align:center;color:#7b858c;padding:32px}.back{display:inline-block;margin-bottom:12px;font-weight:900}.game{max-width:720px;margin:12px auto;background:#fff;padding:26px;border-radius:30px;border:2px solid #eee1d2;text-align:center}.game h1{margin:5px}.game-top{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.round{font-weight:900}.object-zone{font-size:52px;line-height:1.45;min-height:120px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;padding:12px}.question{font-size:58px;font-weight:950;min-height:100px;display:flex;align-items:center;justify-content:center}.answers{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:16px}.ans{font-size:24px;padding:18px;border:2px solid #e5ddd2;background:#fff;border-radius:20px;cursor:pointer;min-height:64px;transition:.12s transform,.12s background}.ans:active{transform:scale(.97)}.ans.good{background:#e5f8ed;border-color:#8ed5ab}.ans.bad{background:#fff0ef;border-color:#f2aaa3}.feedback{min-height:34px;font-size:20px;font-weight:950;margin:12px}.combo{font-weight:900;color:#e25d4f}.controls{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.controls select,.controls input{padding:12px;border-radius:14px;border:1px solid #cabfb1;background:#fff;min-height:46px}.sheet{background:#fff;padding:28px;border:1px solid #ded6cb;min-height:620px}.sheet-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:2px solid #222;padding-bottom:12px}.sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.qbox{border:2px solid #eee1d2;border-radius:18px;padding:16px;min-height:120px}.qbox .prompt{font-size:23px;font-weight:900;margin-bottom:10px}.qbox input{width:100%;padding:12px;border:2px solid #d8cec1;border-radius:12px;font-size:20px}.qbox.correct{border-color:#74c998;background:#f3fcf6}.qbox.wrong{border-color:#ef9c93;background:#fff5f3}.celebrate{animation:pop .35s ease}.stars-fly{position:relative}.stars-fly::after{content:'✨ ⭐ ✨';position:absolute;left:50%;top:-16px;transform:translateX(-50%);animation:fly .7s ease forwards;pointer-events:none}.memory{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px auto;max-width:520px}.mem{aspect-ratio:1;border:2px solid #e4dbcf;border-radius:18px;background:#fff6e9;font-size:34px;cursor:pointer}.mem.revealed,.mem.matched{background:#fff}.mem.matched{border-color:#80cca0}.toggle{border:0;background:#fff;border:1px solid #eadfce;border-radius:14px;padding:9px 12px;font-weight:850;cursor:pointer}@keyframes bob{50%{transform:translateY(-8px)}}@keyframes pop{50%{transform:scale(1.035)}}@keyframes fly{to{opacity:0;transform:translate(-50%,-35px) scale(1.3)}}@media(max-width:850px){.grid{grid-template-columns:1fr 1fr}.hero{grid-template-columns:1fr}.hero h1{font-size:38px}.mascot{font-size:86px}.dash{grid-template-columns:1fr}.sheet-grid{grid-template-columns:1fr}}@media(max-width:480px){.wrap{padding:14px}.grid{grid-template-columns:1fr}.answers{grid-template-columns:1fr 1fr}.hero{padding:24px}.question{font-size:44px}.object-zone{font-size:42px}.game{padding:18px}.memory{gap:7px}.sheet{padding:16px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media print{.top,.controls,.back,.footer,.no-print,.checkrow{display:none!important}.wrap{padding:0}.sheet{border:0}.sheet-grid{grid-template-columns:1fr 1fr}.qbox{break-inside:avoid}.qbox input{border:0;border-bottom:1px solid #555;border-radius:0}.qbox.correct,.qbox.wrong{background:#fff;border-color:#ddd}}

.profile-strip{display:flex;align-items:center;gap:12px;background:#fff;border:2px solid #eee1d2;border-radius:24px;padding:14px 16px}.avatar-mini{font-size:42px;animation:bob 2.1s ease-in-out infinite}.profile-strip b{display:block}.map-shell{max-width:760px;margin:18px auto}.world-map{position:relative;min-height:760px;border-radius:34px;background:linear-gradient(#dff5ff,#effbe8 52%,#fff3c8);overflow:hidden;border:2px solid #e5ddcf;padding:26px 16px}.pathline{position:absolute;left:50%;top:54px;bottom:50px;width:8px;transform:translateX(-50%);border-radius:99px;background:repeating-linear-gradient(to bottom,#fff 0 18px,#d9c9a9 18px 34px)}.map-node{position:relative;z-index:2;display:flex;align-items:center;gap:12px;width:min(86%,560px);margin:16px auto;min-height:70px}.map-node:nth-of-type(even){justify-content:flex-end}.level-btn{width:64px;height:64px;border-radius:50%;border:4px solid #fff;background:#24323d;color:#fff;font-size:22px;font-weight:950;box-shadow:0 5px 0 #0002;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.level-btn.locked{background:#b9b6b0;cursor:not-allowed;filter:grayscale(1)}.level-btn.done{background:#70b889}.level-label{background:#fff;border:2px solid #eee1d2;border-radius:18px;padding:9px 12px;min-width:145px;box-shadow:0 5px 16px #0000000c}.map-avatar{position:absolute;z-index:5;font-size:54px;left:calc(50% - 28px);top:35px;transition:top .9s cubic-bezier(.2,.8,.2,1),left .9s cubic-bezier(.2,.8,.2,1);filter:drop-shadow(0 6px 5px #0002);animation:walk .55s ease-in-out infinite alternate}.chest{font-size:28px}.avatar-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:18px 0}.avatar-pick{font-size:42px;min-height:68px;border:2px solid #eee1d2;background:#fff;border-radius:18px;cursor:pointer}.avatar-pick.selected{border-color:#24323d;background:#fff3cf;transform:scale(1.05)}.profile-card{max-width:680px;margin:20px auto;background:#fff;border:2px solid #eee1d2;border-radius:30px;padding:26px}.hero-avatar{font-size:100px;text-align:center;animation:bob 1.8s ease-in-out infinite}.name-input{width:100%;padding:14px 16px;border-radius:16px;border:2px solid #ded4c6;font-size:18px}.auto-note{background:#f2fbf6;border:2px solid #ccead8;border-radius:18px;padding:12px 14px;margin:14px 0;font-weight:800}.session-card{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.burst{animation:burst .5s ease}.map-banner{text-align:center;background:#fff9;border-radius:20px;padding:10px;margin-bottom:12px;font-weight:900}@keyframes walk{to{transform:translateY(-5px) rotate(3deg)}}@keyframes burst{50%{transform:scale(1.08)}}
@media(max-width:560px){.avatar-grid{grid-template-columns:repeat(3,1fr)}.world-map{min-height:810px}.map-node{width:96%}.level-label{min-width:125px;font-size:13px}.profile-strip{align-items:flex-start}.map-avatar{font-size:46px}}


.lang-switch{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:14px 0}
.lang-switch button{border:2px solid #ddd;background:white;border-radius:18px;padding:12px 18px;font-weight:800;cursor:pointer}
.lang-switch button.active{border-color:#7c3aed;background:#f3e8ff}
.world-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:20px 0}
.world-card{background:white;border-radius:24px;padding:20px;border:2px solid #eee;position:relative;overflow:hidden}
.world-card.locked{filter:grayscale(.75);opacity:.68}
.world-card h3{margin:8px 0}.world-progress{height:10px;background:#eee;border-radius:99px;overflow:hidden}.world-progress>div{height:100%;background:#7c3aed}
.game-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:16px 0}
.game-chip{padding:10px;border-radius:16px;background:#f8f5ff;font-weight:700;text-align:center}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px auto;max-width:520px}
.choice{min-height:70px;border:2px solid #ddd;background:white;border-radius:20px;font-size:1.15rem;font-weight:800;cursor:pointer;padding:10px}
.choice:active{transform:scale(.98)}
.prompt-card{background:white;border-radius:26px;padding:24px;text-align:center;border:2px solid #eee;margin:18px 0}
.big-prompt{font-size:clamp(2rem,8vw,4rem);margin:12px 0}
.hearts{font-size:1.5rem;letter-spacing:4px}.wordslots{font-size:2rem;letter-spacing:8px;font-weight:900;margin:16px 0}
.alpha{display:flex;flex-wrap:wrap;gap:7px;justify-content:center}.alpha button{width:42px;height:42px;border-radius:12px;border:1px solid #ddd;background:white;font-weight:900}
.feedback{min-height:32px;font-weight:900;text-align:center;font-size:1.1rem}
.world-pill{display:inline-block;padding:7px 12px;border-radius:999px;background:#f3e8ff;font-weight:800}
@media(max-width:480px){.choice-grid{grid-template-columns:1fr 1fr}.world-grid{grid-template-columns:1fr}}

/* V5 responsive + multi-profile */
.wrap{max-width:1180px;margin:0 auto;padding:16px}
.top{gap:12px;flex-wrap:wrap}
.hud{flex-wrap:wrap}
.btn,button,.choice,.level-btn{touch-action:manipulation}
.profile-strip{display:flex;gap:10px;overflow-x:auto;padding:8px 2px 12px;scroll-snap-type:x proximity}
.profile-card{min-width:150px;scroll-snap-align:start;border:2px solid #e5e7eb;background:#fff;border-radius:18px;padding:12px;text-align:center;cursor:pointer}
.profile-card.active{border-color:#7c3aed;background:#f7f1ff}
.profile-card .av{font-size:38px}
.profile-card .nm{font-weight:900}
.profile-card .meta{font-size:.82rem;color:#666}
.profile-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:10px 0 18px}
.responsive-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.7fr);gap:18px;align-items:start}
@media(max-width:820px){
 .responsive-two{grid-template-columns:1fr}
 .world-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* V5.22 hero unlock, pets, story and mobile repair */
.mini-game>span:first-child{background-image:url('assets/icons/count-tap.png')!important;background-size:400% 300%!important;background-repeat:no-repeat!important}.mini-game:nth-child(1)>span:first-child{background-position:0 0!important}.mini-game:nth-child(2)>span:first-child{background-position:33.333% 0!important}.mini-game:nth-child(3)>span:first-child{background-position:66.666% 0!important}.mini-game:nth-child(4)>span:first-child{background-position:100% 0!important}.mini-game:nth-child(5)>span:first-child{background-position:0 50%!important}.mini-game:nth-child(6)>span:first-child{background-position:33.333% 50%!important}.mini-game:nth-child(7)>span:first-child{background-position:66.666% 50%!important}.mini-game:nth-child(8)>span:first-child{background-position:100% 50%!important}.more-learning a:before{background-image:url('assets/icons/count-tap.png')!important;background-size:400% 300%!important}.more-learning a:nth-child(1):before{background-position:0 100%!important}.more-learning a:nth-child(2):before{background-position:33.333% 100%!important}.more-learning a:nth-child(3):before{background-position:66.666% 100%!important}.scene-hotspot{width:48px!important;height:48px!important;background:#fff1!important;border:3px solid #fff!important;box-shadow:0 0 0 7px #ffd43f66,0 0 25px 10px #fff8!important}.scene-hotspot span{font-size:0!important}.scene-hotspot span:after{content:"";display:block;width:12px;height:12px;border-radius:50%;background:#ffd43f;box-shadow:0 0 12px #fff}.scene-hotspot:hover,.scene-hotspot:focus-visible{background:#ffd43f55!important}.unlock-card.rescue-locked{background:#d8dde7!important;color:#6d7480!important}.unlock-card.rescue-locked .unlock-art{filter:grayscale(1) brightness(.45)!important}.unlock-card.rescue-locked button{background:#808897!important}.sprite-buddy{background-repeat:no-repeat!important}
.story-hero-character .power-rank{font-size:18px!important;min-width:38px!important;width:38px!important;height:38px!important;border-width:3px!important;right:0!important;bottom:5%!important}.story-hero-character{right:4%!important;max-width:44vw!important}.story-hero-character .avatar-base,.story-hero-character .character-sprite{background-size:contain!important;background-position:center bottom!important}.story-tools{display:flex;gap:10px;justify-content:center;align-items:center;margin-top:15px}.story-lang{display:inline-flex;padding:4px;border-radius:99px;background:#ffffff18}.story-lang button,.story-music{border:0;border-radius:99px;padding:10px 15px;background:transparent;color:#fff;font-weight:1000}.story-lang button.active{background:#fff;color:#342263}.story-music{background:#59d69a;color:#143c2c}
.mystery-team .rescue-gallery{width:min(100%,900px)!important;aspect-ratio:1.65!important;min-height:0!important;margin:auto!important;display:grid!important;grid-template-columns:repeat(5,1fr)!important;position:relative!important;overflow:hidden!important;background:linear-gradient(180deg,#ddecff,#fff0ce)!important;border-radius:30px!important}.mystery-team .rescue-gallery:before{content:""!important;position:absolute!important;inset:3% 2% 12%!important;background:url('assets/characters/pet-individual-v38-00.png') center bottom/100% 100% no-repeat!important;filter:none!important;opacity:1!important;transform:none!important}.mystery-team .rescue-slot{z-index:2!important;width:auto!important;height:auto!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;backdrop-filter:none!important}.mystery-team .rescue-slot.locked{background:#aeb9c5ad!important;backdrop-filter:grayscale(1) brightness(.65)!important}.mystery-team .rescue-slot.locked:before{display:none!important}.mystery-team .rescue-slot>span{display:none!important}.mystery-team .rescue-slot small{position:absolute!important;bottom:7px!important;left:4%!important;transform:none!important;width:92%!important;min-height:34px!important;display:grid!important;place-items:center!important;padding:4px!important;border-radius:12px!important;font-size:9px!important;white-space:normal!important;line-height:1.1!important}.mystery-team .rescue-slot.locked small{font-size:0!important}.mystery-team .rescue-slot.locked small:after{content:"?"!important;font-size:15px!important}
@media(max-width:700px){.story-hero-character{right:0!important;bottom:3%!important;max-width:58vw!important;font-size:160px!important}.story-hero-character .power-rank{font-size:12px!important;width:29px!important;height:29px!important;min-width:29px!important;bottom:8%!important}.story-copy{max-width:62%!important}.story-copy h1{font-size:clamp(31px,9vw,45px)!important}.story-tools{flex-wrap:wrap}.mystery-team .rescue-gallery{aspect-ratio:1.42!important}.mystery-team .rescue-slot{height:auto!important}.mystery-team .rescue-slot small{font-size:6px!important;min-height:29px!important;padding:2px!important}}
.avatar-accessory,.avatar-aura,.relic-field{display:none!important}.hero-pet{position:absolute;z-index:5;right:-.3em;bottom:.08em;width:.43em;height:.43em;filter:drop-shadow(0 .05em .05em #0005);animation:petFollow 1.15s ease-in-out infinite alternate}.hero-pet .character-sprite{width:100%;height:100%}@keyframes petFollow{to{transform:translateY(-.07em) rotate(3deg)}}
.unlock-shop{background:linear-gradient(160deg,#081a31,#352066);color:#fff;min-height:100vh}.shop-top{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:18px 0}.shop-top h1{margin:6px 0;font-size:clamp(26px,5vw,48px)}.shop-stars{padding:13px 17px;border-radius:99px;background:#ffd451;color:#35205b;font-size:20px}.team-preview{display:grid;grid-template-columns:minmax(190px,32%) 1fr;align-items:center;min-height:280px;padding:28px;border-radius:35px;background:radial-gradient(circle at 20% 45%,#ffdd6370,transparent 25%),linear-gradient(135deg,#213c70,#6b3dad);overflow:hidden}.team-preview #shopAvatar{font-size:210px;height:230px}.team-preview h2{font-size:35px;margin:5px 0}.shop-message{min-height:42px;margin:14px 0;padding:11px;text-align:center;font-weight:900;color:#ffd75b}.unlock-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:15px 0 38px}.unlock-card{padding:15px;border-radius:25px;background:#fff;color:#17263b;text-align:center;border:3px solid transparent}.unlock-card.active{border-color:#ffd451;box-shadow:0 0 25px #ffd45188}.unlock-card.locked .unlock-art{filter:grayscale(.75) brightness(.7)}.unlock-art{height:150px}.unlock-art .character-sprite{width:100%;height:100%}.unlock-card h3{margin:7px}.unlock-card small{display:block;min-height:22px;color:#6b7482}.unlock-card button,.hero-shop-link{display:inline-flex;justify-content:center;border:0;border-radius:14px;padding:11px 13px;margin-top:9px;background:#352466;color:#fff;font-weight:900}.unlock-card button:disabled{background:#ffd451;color:#352466}.pet-unlock-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.hero-shop-link{background:#ffd451;color:#352466;margin-top:20px}
.mystery-team .rescue-slot small{box-sizing:border-box!important;bottom:4px!important;width:94%!important;min-height:36px!important;padding:5px 3px!important;white-space:normal!important;line-height:1.15!important;text-align:center!important;font-size:9px!important;overflow:hidden!important}.mystery-team .rescue-slot.locked small{font-size:0!important}.mystery-team .rescue-slot.locked small:after{content:"?";font-size:14px}.hero-arrives{display:none!important}
.crawl-window{background-image:linear-gradient(#02061599,#101331cc),url('assets/characters/toddsplay-story-panorama.png')!important;background-size:cover!important;background-position:center!important}.story-crawl{padding:0 20px!important;height:100%;transform:none!important;display:grid;place-items:center}.story-crawl article{position:absolute;width:min(700px,82%);opacity:0;transform:translateY(90px) scale(.9);transition:opacity .8s,transform 5s linear}.story-crawl article.speaking{opacity:1;transform:translateY(-55px) scale(1)}.story-crawl.running{animation:none!important}.story-crawl>strong{position:absolute;opacity:0}.scene-picture:empty:after{content:"Loading illustrated scene…";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-weight:900;background:#37246a66}.scene-hotspot{z-index:2}
.mini-game>span:first-child{background-size:cover!important;background-position:center!important}.mini-game:nth-child(1)>span:first-child{background-image:url('assets/characters/avatar-individual-v38-00.png')!important}.mini-game:nth-child(2)>span:first-child{background-image:url('assets/characters/avatar-individual-v38-01.png')!important}.mini-game:nth-child(3)>span:first-child{background-image:url('assets/characters/pet-individual-v38-00.png')!important}.mini-game:nth-child(4)>span:first-child{background-image:url('assets/characters/pet-individual-v38-01.png')!important}.mini-game:nth-child(5)>span:first-child{background-image:url('assets/characters/pet-individual-v38-02.png')!important}.mini-game:nth-child(6)>span:first-child{background-image:url('assets/characters/pet-individual-v38-03.png')!important}.mini-game:nth-child(7)>span:first-child{background-image:url('assets/dictionary-scenes/home-hd.png')!important;background-size:500% 200%!important;background-position:75% 100%!important}.mini-game:nth-child(8)>span:first-child{background-image:url('assets/dictionary-scenes/home-hd.png')!important;background-size:500% 200%!important;background-position:50% 0!important}.more-learning a:before{content:"";width:62px;height:62px;border-radius:18px;margin-bottom:10px;background:center/cover no-repeat}.more-learning a:nth-child(1):before{background-image:url('assets/characters/pet-individual-v38-00.png')}.more-learning a:nth-child(2):before{background-image:url('assets/dictionary-scenes/home-hd.png');background-size:500% 200%;background-position:100% 100%}.more-learning a:nth-child(3):before{background-image:url('assets/characters/avatar-individual-v38-01.png')}.boss-mode .top .hud,.boss-mode .top [data-stars]{display:none!important}
@media(max-width:700px){.unlock-grid,.pet-unlock-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-top{grid-template-columns:auto 1fr}.shop-top>div{grid-column:1/-1;grid-row:2}.shop-stars{grid-column:2;grid-row:1;justify-self:end}.team-preview{grid-template-columns:1fr 1fr;min-height:210px;padding:18px}.team-preview #shopAvatar{font-size:140px;height:170px}.team-preview h2{font-size:23px}.unlock-art{height:120px}body:has(.world-grid) .top{grid-template-columns:auto auto!important;justify-content:space-between!important;border-bottom:1px solid #ffffff25}body:has(.world-grid) .top .hud{grid-column:2!important}body:has(.world-grid) .profile-actions{grid-template-columns:1fr!important}body:has(.world-grid) .profile-actions .world-pill{display:none!important}body:has(.world-grid) .profile-actions .btn{width:100%;border-radius:16px}body:has(.world-grid) .map-banner{font-size:13px!important;margin-top:6px!important}body:has(.world-grid) .lang-switch{position:sticky;top:60px;z-index:70;background:#233e65;padding:7px 0}.world-card{padding-bottom:16px!important}.world-card>.world-art:first-child{height:180px!important}.world-card>h3{font-size:23px!important}.mystery-team .rescue-gallery{min-height:250px!important}.mystery-team .rescue-slot{height:220px!important}.mystery-team .rescue-slot small{font-size:7px!important;min-height:31px!important}.crawl-window{height:58vh!important}}
@media(max-width:560px){
 .wrap{padding:12px}
 .world-grid{grid-template-columns:1fr}
 .choice-grid{grid-template-columns:1fr 1fr}
 .brand{font-size:1.1rem}
 .hero{display:block}
 .hero h1{font-size:clamp(1.8rem,9vw,2.7rem)}
 .btn{width:100%;text-align:center}
 .profile-card{min-width:132px}
 .top .hud{width:100%;justify-content:space-between}
}
@media(min-width:900px) and (max-width:1200px){
 .world-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .choice{min-height:84px;font-size:1.3rem}
}


/* V5.1 Desktop polish */
body{background:#fffaf4}
.home-wrap{max-width:1280px;padding:22px 28px 48px}
.home-header{min-height:68px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:28px;margin-bottom:24px}
.home-header .brand{white-space:nowrap}
.active-child{justify-self:center;display:flex;align-items:center;gap:10px;padding:8px 10px 8px 9px;border:1px solid #eadfce;background:#fff;border-radius:999px;box-shadow:0 8px 28px #513c2410;min-width:250px}
.active-child-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#fff2d5;font-size:24px}
.active-child strong{display:block;font-size:14px;line-height:1.1}.active-child small{display:block;color:#7b858c;font-size:11px;margin-top:3px}.switch-label{margin-left:auto;background:#f4efff;color:#6d3ad7;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:900}
.home-stats{display:flex;gap:8px;justify-content:flex-end}.home-stats .stat{min-width:70px;text-align:center}
.home-hero{grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);min-height:460px;padding:48px 52px;gap:54px;margin:0 0 42px;border-radius:38px;overflow:hidden}
.hero-copy{max-width:720px}.home-hero h1{font-size:clamp(46px,4.2vw,66px);line-height:.98;letter-spacing:-1.8px;margin:18px 0 20px}.home-hero p{font-size:18px;max-width:650px;margin:0 0 22px;color:#3b4852}
.language-block{margin:22px 0 18px}.field-label{display:block;font-size:12px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;margin-bottom:8px;color:#58636c}.home-lang{justify-content:flex-start;margin:0}.home-lang button{min-width:160px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.hero-actions .btn{min-width:170px}.btn.soft{background:#fff;color:#24323d;border:2px solid #e7ddd1}.btn.soft:hover{border-color:#cbbdae}
.player-panel{position:relative;isolation:isolate;align-self:stretch;min-height:350px;background:#ffffffba;border:1px solid #ffffffd9;border-radius:30px;padding:34px 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:0 24px 60px #8b6f5020;backdrop-filter:blur(8px)}
.player-glow{position:absolute;z-index:-1;width:170px;height:170px;border-radius:50%;background:#ffe39b;filter:blur(2px);top:54px}.player-avatar{font-size:112px;line-height:1;animation:bob 2.2s ease-in-out infinite;filter:drop-shadow(0 12px 12px #6c4d3125)}.player-name{font-size:24px;font-weight:950;margin-top:18px}.player-meta{font-size:13px;color:#707a82;margin-top:4px}.mini-progress{width:100%;display:flex;justify-content:space-between;gap:12px;margin-top:26px;padding:13px 14px;border-radius:16px;background:#fff;font-size:12px;font-weight:850}.mini-link{font-size:12px;font-weight:900;margin-top:14px;color:#6d3ad7}
.home-section{margin:0 0 30px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:18px}.section-heading h2{font-size:32px;margin:8px 0 0;letter-spacing:-.5px}.section-heading p{max-width:350px;margin:0 0 4px;color:#69747b;text-align:right;line-height:1.45}
.home-game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.home-game-card{min-height:128px;background:#fff;border:1px solid #eee3d5;border-radius:22px;padding:18px;display:grid;grid-template-columns:48px 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;box-shadow:0 9px 30px #4d39240a;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.home-game-card>span{grid-row:1/3;width:48px;height:48px;border-radius:15px;background:#f8f3ff;display:grid;place-items:center;font-size:27px}.home-game-card b{align-self:end;font-size:15px;line-height:1.15}.home-game-card small{align-self:start;color:#879096;margin-top:4px}.home-game-card:hover{transform:translateY(-3px);border-color:#d8c5af;box-shadow:0 14px 36px #4d392414}.home-game-card.featured{background:linear-gradient(135deg,#fff7db,#f5eeff);border-color:#e6d7a6}
.home-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;background:#24323d;color:#fff;padding:18px;border-radius:26px}.home-summary>div{text-align:center;padding:8px;border-right:1px solid #ffffff25}.home-summary>div:last-child{border-right:0}.home-summary b{display:block;font-size:26px}.home-summary span{font-size:12px;color:#d9e0e4}
@media(min-width:821px) and (max-width:1080px){.home-wrap{padding-inline:22px}.home-header{grid-template-columns:auto 1fr auto;gap:14px}.active-child{min-width:210px}.home-hero{grid-template-columns:1.15fr .85fr;padding:40px;gap:30px}.home-hero h1{font-size:48px}.home-game-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.home-wrap{padding:16px}.home-header{grid-template-columns:1fr auto;gap:12px;margin-bottom:16px}.active-child{grid-column:1/-1;grid-row:2;justify-self:stretch;min-width:0}.home-stats{grid-column:2}.home-hero{grid-template-columns:1fr;padding:30px;gap:24px;min-height:0}.player-panel{min-height:280px}.section-heading{display:block}.section-heading p{text-align:left;margin-top:8px}.home-game-grid{grid-template-columns:repeat(2,1fr)}.home-summary{grid-template-columns:repeat(2,1fr)}.home-summary>div:nth-child(2){border-right:0}.home-summary>div:nth-child(-n+2){border-bottom:1px solid #ffffff25}}
@media(max-width:560px){.home-wrap{padding:12px}.home-header .brand{font-size:22px}.home-stats .stat{min-width:auto;padding:8px 10px}.home-hero{padding:24px 20px;border-radius:28px}.home-hero h1{font-size:38px;letter-spacing:-1px}.home-lang{display:grid;grid-template-columns:1fr 1fr}.home-lang button{min-width:0;padding-inline:10px}.hero-actions{display:grid;grid-template-columns:1fr}.hero-actions .btn{width:100%}.player-panel{min-height:240px;padding:24px}.player-avatar{font-size:90px}.home-game-grid{grid-template-columns:1fr}.home-game-card{min-height:92px}.home-summary{gap:0}.section-heading h2{font-size:27px}}

/* V5.2 Count & Tap visual object variety */
.count-scene{
  max-width:620px;margin:14px auto 20px;padding:18px;
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;
  min-height:130px;border-radius:24px;background:linear-gradient(135deg,#fff8df,#f3f0ff);
  border:2px dashed #e4d7ff;
}
.count-object{
  display:inline-flex;align-items:center;justify-content:center;
  width:72px;height:72px;line-height:1;
  animation:countBob 1.8s ease-in-out infinite alternate;
  animation-delay:calc(var(--d) * .08s);
  user-select:none;
}
.count-object img{display:block;width:100%;height:100%;object-fit:cover;border-radius:18px;filter:drop-shadow(0 5px 5px #39236530);pointer-events:none}
@keyframes countBob{from{transform:translateY(0) rotate(-2deg)}to{transform:translateY(-6px) rotate(2deg)}}
@media(max-width:560px){
 .count-scene{gap:8px;padding:12px;min-height:110px}
 .count-object{width:54px;height:54px}.count-object img{border-radius:13px}
}
@media(min-width:768px) and (max-width:1180px){
 .count-object{width:64px;height:64px}
}
@media(prefers-reduced-motion:reduce){.count-object{animation:none}}

/* V5.4 cheerful living background */
body{
  background:
    radial-gradient(circle at 8% 12%,rgba(255,221,104,.35) 0 70px,transparent 72px),
    radial-gradient(circle at 90% 18%,rgba(153,230,255,.34) 0 95px,transparent 97px),
    radial-gradient(circle at 18% 88%,rgba(185,245,190,.32) 0 110px,transparent 112px),
    linear-gradient(180deg,#fffaf1 0%,#f5fbff 48%,#fff8fd 100%);
  min-height:100%;
}
body:before,body:after{
  content:"";position:fixed;pointer-events:none;z-index:-1;border-radius:50%;
  opacity:.55;filter:blur(.2px)
}
body:before{width:18px;height:18px;left:6%;top:35%;background:#ffd85e;box-shadow:90px 180px #8fe3bd,260px -120px #ffa9c8,520px 210px #9ed8ff,760px -80px #c8a8ff,980px 190px #ffd88c}
body:after{width:10px;height:10px;right:9%;top:58%;background:#9ed8ff;box-shadow:-120px 110px #ffb5d0,-350px -180px #ffe17c,-650px 70px #9fe2b8}
.hero,.prompt-card,.world-card,.game-card{backdrop-filter:blur(2px)}
.lively-strip{display:flex;gap:12px;overflow:hidden;align-items:center;justify-content:center;padding:8px 0;font-size:28px}
.lively-strip span{display:inline-block;animation:floaty 2.6s ease-in-out infinite alternate}
.lively-strip span:nth-child(2n){animation-delay:.35s}.lively-strip span:nth-child(3n){animation-delay:.7s}
@keyframes floaty{from{transform:translateY(0) rotate(-3deg)}to{transform:translateY(-7px) rotate(3deg)}}
.animal-scene{font-size:92px;min-height:125px;display:flex;align-items:center;justify-content:center;animation:animalBounce 1.5s ease-in-out infinite alternate}
@keyframes animalBounce{from{transform:translateY(0) scale(1)}to{transform:translateY(-7px) scale(1.04)}}
@media(prefers-reduced-motion:reduce){.lively-strip span,.animal-scene{animation:none}}

/* V5.5 QA visual fixes */
.prompt-card{min-height:420px}
.color-stage,.shape-stage{
  min-height:150px;display:flex;align-items:center;justify-content:center;
  position:relative;margin:10px auto 18px;max-width:540px
}
.color-swatch{
  width:112px;height:112px;border-radius:32px;background:var(--swatch);
  border:7px solid rgba(255,255,255,.92);
  box-shadow:0 9px 0 rgba(25,40,55,.12),0 0 0 3px rgba(25,40,55,.08);
  animation:swatchPulse 1.25s ease-in-out infinite alternate
}
.color-orbit{position:absolute;left:20%;top:25%;font-size:38px;animation:orbitBob 1.7s ease-in-out infinite alternate}
.color-spark{position:absolute;right:22%;top:16%;font-size:30px;animation:sparkTwirl 1.6s ease-in-out infinite alternate}
@keyframes swatchPulse{from{transform:scale(.96) rotate(-2deg)}to{transform:scale(1.05) rotate(2deg)}}
@keyframes orbitBob{from{transform:translateY(4px) rotate(-5deg)}to{transform:translateY(-8px) rotate(7deg)}}
@keyframes sparkTwirl{from{transform:scale(.9) rotate(-8deg)}to{transform:scale(1.15) rotate(12deg)}}
.shape-object{width:112px;height:112px;animation:shapeDance 1.45s ease-in-out infinite alternate}
.shape-circle{border-radius:50%;background:#5bbce8}
.shape-square{border-radius:18px;background:#ffbe45}
.shape-triangle{width:0;height:0;border-left:62px solid transparent;border-right:62px solid transparent;border-bottom:112px solid #ff7a8a}
.shape-star{width:auto;height:auto}
.shape-star:before{content:"★";font-size:126px;line-height:1;color:#9b74e8}
@keyframes shapeDance{from{transform:translateY(3px) rotate(-3deg)}to{transform:translateY(-8px) rotate(4deg)}}
.choice{transition:transform .15s ease,border-color .15s ease,background .15s ease}
.choice.tap-react{transform:scale(.96)}
@media(max-width:560px){
 .prompt-card{min-height:360px}
 .color-swatch{width:92px;height:92px;border-radius:26px}
 .shape-object{width:92px;height:92px}
 .shape-triangle{width:0;height:0;border-left-width:50px;border-right-width:50px;border-bottom-width:92px}
 .shape-star:before{font-size:104px}
}
@media(prefers-reduced-motion:reduce){.color-swatch,.color-orbit,.color-spark,.shape-object{animation:none}}

/* V5.6 Living Motion System */
:root{--motion-speed:1.5s}
.count-object,.pattern-piece,.odd-piece,.sound-emoji,.memory-card,.compare-side{transform-origin:center;will-change:transform}
.motion-hop{animation:motionHop var(--motion-speed) cubic-bezier(.35,.05,.45,1) infinite}
.motion-sway{animation:motionSway 1.8s ease-in-out infinite alternate}
.motion-spin{animation:motionSpin 2.4s linear infinite}
.motion-zoom{animation:motionZoom 1.4s ease-in-out infinite alternate}
.motion-drift{animation:motionDrift 2.1s ease-in-out infinite alternate}
.motion-wiggle{animation:motionWiggle 1.1s ease-in-out infinite}
.motion-peek{animation:motionPeek 1.7s ease-in-out infinite}
.motion-flip{animation:motionFlip 1.8s ease-in-out infinite}
.count-object{animation-delay:calc(var(--d) * .09s)}
@keyframes motionHop{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-15px) rotate(-6deg)}65%{transform:translateY(-4px) rotate(5deg)}}
@keyframes motionSway{from{transform:translateX(-9px) rotate(-7deg)}to{transform:translateX(9px) rotate(7deg)}}
@keyframes motionSpin{0%{transform:rotate(0) scale(1)}50%{transform:rotate(180deg) scale(1.08)}100%{transform:rotate(360deg) scale(1)}}
@keyframes motionZoom{from{transform:scale(.86) rotate(-3deg)}to{transform:scale(1.12) rotate(3deg)}}
@keyframes motionDrift{0%{transform:translate(-8px,5px) rotate(-3deg)}100%{transform:translate(10px,-8px) rotate(5deg)}}
@keyframes motionWiggle{0%,100%{transform:rotate(0)}20%{transform:rotate(-10deg)}40%{transform:rotate(8deg)}60%{transform:rotate(-5deg)}80%{transform:rotate(4deg)}}
@keyframes motionPeek{0%,100%{transform:translateY(8px) scale(.92)}50%{transform:translateY(-8px) scale(1.07)}}
@keyframes motionFlip{0%,100%{transform:perspective(300px) rotateY(0)}50%{transform:perspective(300px) rotateY(180deg)}}

/* Animal motions now differ rather than simple up/down */
.animal-stage{min-height:145px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}
.animal-scene{font-size:92px;display:inline-block;animation:none}
.animal-hop{animation:animalHop 1.35s cubic-bezier(.2,.7,.3,1) infinite}
.animal-walk{animation:animalWalk 2.2s ease-in-out infinite alternate}
.animal-sway{animation:animalSway 1.7s ease-in-out infinite alternate}
.animal-peek{animation:animalPeek 1.8s ease-in-out infinite}
.animal-zoom{animation:animalZoom 1.45s ease-in-out infinite alternate}
.animal-trail{position:absolute;font-size:26px;right:27%;top:20%;animation:trailOrbit 2s linear infinite}
@keyframes animalHop{0%,100%{transform:translateY(0) rotate(0)}40%{transform:translateY(-24px) rotate(-7deg)}65%{transform:translateY(-7px) rotate(6deg)}}
@keyframes animalWalk{from{transform:translateX(-42px) rotate(-3deg)}to{transform:translateX(42px) rotate(3deg)}}
@keyframes animalSway{from{transform:rotate(-10deg) translateX(-5px)}to{transform:rotate(10deg) translateX(5px)}}
@keyframes animalPeek{0%,100%{transform:translateY(32px) scale(.82)}50%{transform:translateY(-5px) scale(1.08)}}
@keyframes animalZoom{from{transform:scale(.82) rotate(-5deg)}to{transform:scale(1.13) rotate(5deg)}}
@keyframes trailOrbit{0%{transform:rotate(0) translateX(28px) rotate(0)}100%{transform:rotate(360deg) translateX(28px) rotate(-360deg)}}

/* Pattern / Odd / Sound / Memory / Compare stages */
.pattern-stage,.odd-stage,.memory-stage,.sound-stage,.compare-stage{
 display:flex;align-items:center;justify-content:center;gap:16px;min-height:135px;
 margin:10px auto 18px;flex-wrap:wrap
}
.pattern-piece,.odd-piece{font-size:52px;display:inline-flex;min-width:58px;min-height:58px;align-items:center;justify-content:center;animation-delay:calc(var(--d) * .11s)}
.pattern-q{font-size:54px;font-weight:900;color:#7c3aed}
.sound-emoji{font-size:92px}.sound-wave{font-size:38px;font-weight:900;letter-spacing:4px;animation:wavePulse 1s ease-in-out infinite alternate}
@keyframes wavePulse{from{transform:translateX(0) scale(.88);opacity:.55}to{transform:translateX(9px) scale(1.1);opacity:1}}
.memory-card{width:90px;height:100px;border-radius:18px;background:#fff;border:3px solid #e7ddff;display:flex;align-items:center;justify-content:center;font-size:50px;box-shadow:0 7px 0 rgba(30,40,60,.08)}
.compare-side{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:62px}
.compare-side b{font-size:30px}.compare-vs{font-weight:1000;font-size:24px;color:#7c3aed}

@media(max-width:560px){
 .pattern-piece,.odd-piece{font-size:42px;min-width:48px;min-height:48px}
 .sound-emoji,.animal-scene{font-size:76px}
 .compare-side{font-size:50px}
}
@media(prefers-reduced-motion:reduce){
 .motion-hop,.motion-sway,.motion-spin,.motion-zoom,.motion-drift,.motion-wiggle,.motion-peek,.motion-flip,
 .animal-hop,.animal-walk,.animal-sway,.animal-peek,.animal-zoom,.animal-trail,.sound-wave{animation:none!important}
}

/* V5.7 full-screen motion layer */
.game-page, body{overflow-x:hidden}
.screen-motion{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.screen-motion .fly{
 position:absolute;font-size:clamp(24px,3vw,46px);opacity:.42;will-change:transform;
 filter:drop-shadow(0 4px 5px rgba(40,40,60,.08))
}
.screen-motion .f1{top:13%;left:-8%;animation:crossScreen 13s linear infinite}
.screen-motion .f2{top:72%;right:-8%;animation:crossBack 16s linear 1.8s infinite}
.screen-motion .f3{bottom:-8%;left:18%;animation:riseScreen 12s ease-in-out 2.7s infinite}
.screen-motion .f4{top:24%;right:8%;animation:wideOrbit 9s ease-in-out infinite}
.screen-motion .f5{top:52%;left:5%;animation:zigzagScreen 11s ease-in-out 1s infinite}
.screen-motion .f6{top:8%;left:48%;animation:cloudDrift 18s ease-in-out infinite alternate}
@keyframes crossScreen{0%{transform:translateX(0) rotate(-8deg)}50%{transform:translateX(58vw) translateY(30px) rotate(8deg)}100%{transform:translateX(116vw) translateY(-18px) rotate(-5deg)}}
@keyframes crossBack{0%{transform:translateX(0) rotate(7deg)}50%{transform:translateX(-58vw) translateY(-35px) rotate(-8deg)}100%{transform:translateX(-116vw) translateY(15px) rotate(5deg)}}
@keyframes riseScreen{0%{transform:translateY(0) translateX(0) rotate(-5deg)}50%{transform:translateY(-48vh) translateX(16vw) rotate(12deg)}100%{transform:translateY(-105vh) translateX(-5vw) rotate(-4deg)}}
@keyframes wideOrbit{0%{transform:translate(0,0) rotate(0)}25%{transform:translate(-18vw,13vh) rotate(90deg)}50%{transform:translate(-5vw,32vh) rotate(180deg)}75%{transform:translate(14vw,15vh) rotate(270deg)}100%{transform:translate(0,0) rotate(360deg)}}
@keyframes zigzagScreen{0%{transform:translate(0,0) rotate(-8deg)}25%{transform:translate(25vw,-13vh) rotate(8deg)}50%{transform:translate(48vw,10vh) rotate(-5deg)}75%{transform:translate(70vw,-18vh) rotate(9deg)}100%{transform:translate(96vw,5vh) rotate(-4deg)}}
@keyframes cloudDrift{from{transform:translateX(-38vw) scale(.9)}to{transform:translateX(38vw) scale(1.12)}}
.game-shell,.wrap,.top,.prompt-card{position:relative;z-index:2}
@media(max-width:560px){.screen-motion .fly{font-size:28px;opacity:.28}}
@media(prefers-reduced-motion:reduce){.screen-motion .fly{animation:none!important}}

/* V5.8 playful wrong-answer micro challenge */
.oops-overlay{position:fixed;inset:0;z-index:50;background:rgba(38,35,74,.24);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:20px}
.oops-overlay[hidden]{display:none}
.oops-card{width:min(430px,92vw);background:#fff;border-radius:34px;padding:24px;text-align:center;border:4px solid rgba(255,255,255,.9);box-shadow:0 18px 60px rgba(35,32,70,.18);transform:scale(.72) rotate(-4deg);opacity:0;transition:.2s ease}
.oops-overlay.show .oops-card{transform:scale(1) rotate(0);opacity:1}
.oops-mascot{font-size:86px;animation:oopsEntrance .75s cubic-bezier(.2,.8,.3,1)}
.oops-card h2{font-size:28px;margin:4px 0}.oops-card p{font-size:19px;font-weight:800;margin:7px 0 12px}
.oops-challenge{font-size:42px;min-height:72px;display:flex;align-items:center;justify-content:center;animation:challengeMove 1s ease-in-out infinite alternate}
.oops-card .primary-btn{min-height:50px;margin-top:8px;padding:10px 22px;border-radius:18px;font-weight:900}
@keyframes oopsEntrance{0%{transform:scale(.4) rotate(-20deg)}60%{transform:scale(1.2) rotate(8deg)}100%{transform:scale(1) rotate(0)}}
@keyframes challengeMove{from{transform:translateX(-8px) rotate(-3deg) scale(.96)}to{transform:translateX(8px) rotate(3deg) scale(1.06)}}
@media(prefers-reduced-motion:reduce){.oops-mascot,.oops-challenge{animation:none}.oops-card{transition:none}}

/* V5.9 Missing Number visible stage */
.missing-stage{display:flex;align-items:center;justify-content:center;gap:10px;min-height:145px;flex-wrap:wrap;margin:8px auto 18px}
.number-slot{width:72px;height:72px;border-radius:22px;background:#fff;border:3px solid rgba(99,102,241,.16);box-shadow:0 7px 0 rgba(40,45,70,.08);display:inline-flex;align-items:center;justify-content:center;font-size:34px;font-weight:1000}
.missing-hole{border:4px dashed #f59e0b;background:#fff8dc;color:#f59e0b;animation:missingPulse 1s ease-in-out infinite alternate}
.seq-arrow{font-size:25px;opacity:.55}
@keyframes missingPulse{from{transform:scale(.93) rotate(-3deg)}to{transform:scale(1.08) rotate(3deg)}}
@media(max-width:560px){.missing-stage{gap:6px}.number-slot{width:54px;height:54px;border-radius:16px;font-size:27px}.seq-arrow{font-size:18px}}
@media(prefers-reduced-motion:reduce){.missing-hole{animation:none}}

/* V5.9.2 playable wrong-answer challenges */
.oops-progress{font-weight:1000;font-size:18px;margin:4px 0 10px;color:#5b5bd6}
.oops-play{position:relative;width:min(360px,82vw);height:230px;margin:10px auto 14px;border-radius:28px;overflow:hidden;background:linear-gradient(180deg,rgba(239,246,255,.95),rgba(255,247,237,.95));border:3px dashed rgba(99,102,241,.24);box-shadow:inset 0 0 0 3px rgba(255,255,255,.5)}
.oops-target{position:absolute;width:64px;height:64px;border:0;border-radius:50%;background:#fff;box-shadow:0 8px 18px rgba(50,45,90,.15);font-size:34px;display:flex;align-items:center;justify-content:center;cursor:pointer;animation:challengeWander 2.3s ease-in-out infinite alternate;transition:transform .14s ease,opacity .14s ease}
.oops-target:hover{transform:scale(1.08)}
.oops-target:active{transform:scale(.88)}
.oops-target.caught{transform:scale(1.6) rotate(18deg);opacity:0}
.oops-target.wrong-pop{animation:none;transform:translateX(-5px) rotate(-8deg);box-shadow:0 0 0 5px rgba(239,68,68,.16)}
.oops-success{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:25px;font-weight:1000;padding:20px;text-align:center;animation:successPop .45s ease}
.oops-card .primary-btn:disabled{opacity:.5;filter:grayscale(.2);cursor:not-allowed}
@keyframes challengeWander{0%{transform:translate(-6px,-4px) rotate(-5deg)}50%{transform:translate(8px,10px) rotate(5deg)}100%{transform:translate(-3px,14px) rotate(-3deg)}}
@keyframes successPop{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.08);opacity:1}100%{transform:scale(1)}}
@media(max-width:560px){.oops-play{height:210px}.oops-target{width:58px;height:58px;font-size:30px}}
@media(prefers-reduced-motion:reduce){.oops-target,.oops-success{animation:none}}

/* V5.10 Star Shop */
.floating-shop{position:fixed;right:18px;bottom:18px;z-index:20;text-decoration:none;background:#fff;border-radius:999px;padding:12px 16px;font-weight:900;box-shadow:0 10px 30px rgba(38,35,74,.16);border:2px solid rgba(255,255,255,.9)}
.shop-hero{align-items:center}.shop-avatar{font-size:86px;min-width:150px;text-align:center;animation:shopBounce 1.5s ease-in-out infinite alternate}
.shop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0 80px}
.shop-item{background:#fff;border-radius:24px;padding:18px;text-align:center;box-shadow:0 8px 24px rgba(38,35,74,.08);border:3px solid transparent}
.shop-item.equipped{border-color:#facc15}.shop-icon{font-size:52px}.shop-item h3{margin:8px 0 4px}.shop-price{font-weight:900;margin-bottom:10px}.shop-btn{width:100%}
.sound-word{display:block;font-size:clamp(22px,3vw,34px);margin-top:8px;letter-spacing:2px}
@keyframes shopBounce{from{transform:translateY(0) rotate(-3deg)}to{transform:translateY(-10px) rotate(3deg)}}
@media(max-width:900px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.shop-grid{grid-template-columns:1fr 1fr;gap:10px}.shop-item{padding:12px}.shop-icon{font-size:42px}.floating-shop{right:10px;bottom:10px}}
@media(prefers-reduced-motion:reduce){.shop-avatar{animation:none}}

/* V5.10.1 layered avatar costumes */
.avatar-dress{position:relative;display:inline-grid;place-items:center;width:1.35em;height:1.35em;vertical-align:middle;line-height:1;isolation:isolate}
.avatar-base{position:relative;z-index:3;display:block;line-height:1}
.avatar-accessory,.avatar-aura{position:absolute;display:block;width:1em;height:1em;line-height:1;pointer-events:none;z-index:5}
.avatar-aura{font-size:1.42em;z-index:1;opacity:.8;transform:translateY(-.02em)}
.slot-head{font-size:.67em;top:-.32em;left:50%;transform:translateX(-50%)}
.slot-head-right{font-size:.48em;top:-.12em;right:-.06em;transform:rotate(13deg)}
.slot-face{font-size:.67em;top:.30em;left:50%;transform:translateX(-50%)}
.slot-right{font-size:.62em;right:-.40em;bottom:-.04em;transform:rotate(-20deg)}
.slot-right-low{font-size:.56em;right:-.34em;bottom:-.18em;transform:rotate(-14deg)}
.slot-left-low{font-size:.50em;left:-.25em;bottom:-.17em;transform:rotate(-18deg)}
.slot-back{font-size:.83em;z-index:2;left:-.16em;bottom:-.27em;transform:rotate(18deg)}
.shop-avatar .avatar-dress{font-size:86px;width:1.55em;height:1.55em}
.shop-preview{font-size:64px;min-height:95px;display:grid;place-items:center}
.shop-preview .avatar-dress{width:1.55em;height:1.55em}
.profile-card .av .avatar-dress{font-size:inherit}
[data-avatar] .avatar-dress{font-size:1em}
.player-avatar .avatar-dress{font-size:1em}

/* V5.10.3 multi-accessory outfit */
.avatar-dress .slot-head[style*="--stack:1"]{transform:translate(-50%,-8px) rotate(8deg)}
.avatar-dress .slot-head-right[style*="--stack:1"]{transform:translate(7px,4px) rotate(10deg)}
.shop-item.equipped{outline:3px solid rgba(250,204,21,.35)}

/* V5.12 interactive avatar studio */
.avatar-selector{display:grid;grid-template-columns:repeat(4,minmax(76px,1fr));gap:11px;margin:16px 0 20px}
.avatar-option{min-height:94px;border:2px solid #e8dfd2;background:linear-gradient(145deg,#fff,#fff9ef);border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;transition:transform .2s,border-color .2s,box-shadow .2s;animation:avatarEnter .45s both;animation-delay:var(--delay)}
.avatar-option>span{font-size:44px;height:52px;display:grid;place-items:center}.avatar-option small{font-weight:900;color:#68727a}.avatar-option:hover,.avatar-option:focus-visible{transform:translateY(-5px) scale(1.03);border-color:#9b73e7;box-shadow:0 10px 25px #6d3ad71c}.avatar-option.selected{border-color:#6d3ad7;background:#f5efff;box-shadow:0 0 0 4px #8b5cf622}.avatar-option.selected>span{animation:avatarCelebrate .7s ease}
.avatar-dress{transform-origin:50% 82%;animation:avatarFloat 2.25s ease-in-out infinite}
.avatar-fox,.avatar-cat,.avatar-dog{animation-name:avatarPounce;animation-duration:1.8s}.avatar-rabbit,.avatar-frog,.avatar-kangaroo{animation-name:avatarHop;animation-duration:1.45s}.avatar-panda,.avatar-bear,.avatar-koala,.avatar-hamster{animation-name:avatarSway;animation-duration:2.3s}.avatar-tiger,.avatar-lion{animation-name:avatarProwl;animation-duration:2s}.avatar-monkey,.avatar-mouse{animation-name:avatarWiggle;animation-duration:1.65s}.avatar-owl,.avatar-penguin{animation-name:avatarPeek;animation-duration:2.1s}.avatar-unicorn{animation-name:avatarMagic;animation-duration:2.35s}
.choice:hover .avatar-dress,.shop-item:hover .avatar-dress,.profile-card:hover .avatar-dress{animation-duration:.75s}
.slot-neck{font-size:.38em;left:50%;bottom:.03em;transform:translateX(-50%);z-index:6}.slot-feet{font-size:.36em;left:50%;bottom:-.19em;transform:translateX(-50%);letter-spacing:.12em;z-index:4}
.avatar-rabbit .slot-head,.avatar-unicorn .slot-head{top:-.18em}.avatar-owl .slot-head,.avatar-penguin .slot-head{top:-.27em}.avatar-frog .slot-head{top:-.38em}.avatar-lion .slot-face,.avatar-tiger .slot-face{top:.32em}.avatar-panda .slot-face,.avatar-koala .slot-face{top:.28em}.avatar-rabbit .slot-head-right{top:-.02em;right:-.01em}.avatar-unicorn .slot-head-right{top:-.02em;right:-.12em}.avatar-frog .slot-face{top:.25em}.avatar-owl .slot-face{top:.27em}.avatar-penguin .slot-feet{bottom:-.12em}.avatar-frog .slot-feet{bottom:-.09em}.avatar-monkey .slot-back{left:-.06em}.avatar-lion .slot-back{left:-.10em}.avatar-dress .slot-right,.avatar-dress .slot-right-low,.avatar-dress .slot-left-low{filter:drop-shadow(0 2px 1px #0002)}
@keyframes avatarEnter{from{opacity:0;transform:translateY(12px) scale(.9)}to{opacity:1;transform:none}}@keyframes avatarCelebrate{35%{transform:translateY(-10px) rotate(-7deg) scale(1.12)}70%{transform:translateY(-3px) rotate(7deg)}}
@keyframes avatarFloat{50%{transform:translateY(-.08em)}}@keyframes avatarPounce{0%,100%{transform:translateY(0) rotate(-1deg)}45%{transform:translateY(-.09em) rotate(2deg)}60%{transform:translateY(-.04em) scale(1.03)}}@keyframes avatarHop{0%,100%{transform:translateY(0) scaleY(1)}45%{transform:translateY(-.13em) scaleY(1.04)}55%{transform:translateY(-.13em) rotate(3deg)}85%{transform:scaleY(.96)}}@keyframes avatarSway{0%,100%{transform:rotate(-2deg)}50%{transform:translateY(-.05em) rotate(3deg)}}@keyframes avatarProwl{0%,100%{transform:translateX(-.025em) rotate(-1deg)}50%{transform:translateX(.045em) translateY(-.055em) rotate(2deg)}}@keyframes avatarWiggle{0%,100%{transform:rotate(-3deg)}25%{transform:translateY(-.05em) rotate(4deg)}50%{transform:rotate(-2deg)}75%{transform:translateY(-.03em) rotate(3deg)}}@keyframes avatarPeek{0%,100%{transform:translateY(.02em) rotate(-1deg)}40%{transform:translateY(-.07em) scale(1.03)}60%{transform:translateY(-.07em) rotate(3deg)}}@keyframes avatarMagic{0%,100%{transform:translateY(0) rotate(-2deg);filter:drop-shadow(0 0 0 #b574ff00)}50%{transform:translateY(-.09em) rotate(3deg);filter:drop-shadow(0 0 8px #b574ff88)}}
@media(max-width:560px){.avatar-selector{grid-template-columns:repeat(3,1fr)}.avatar-option{min-height:86px}.avatar-option>span{font-size:39px}}
@media(prefers-reduced-motion:reduce){.avatar-dress,.avatar-option{animation:none}.avatar-option{transition:none}}

/* V5.12.1 face-fit calibration: eyewear follows each avatar's eye line */
.avatar-dress .slot-face{top:.16em;font-size:.58em;transform:translateX(-50%) scaleX(.94)}
.avatar-fox .slot-face,.avatar-tiger .slot-face,.avatar-lion .slot-face{top:.17em;transform:translateX(-50%) scaleX(.92)}
.avatar-panda .slot-face,.avatar-bear .slot-face,.avatar-koala .slot-face{top:.13em;transform:translateX(-50%) scaleX(.90)}
.avatar-rabbit .slot-face,.avatar-unicorn .slot-face{top:.19em;transform:translateX(-50%) scaleX(.86)}
.avatar-frog .slot-face{top:.06em;transform:translateX(-50%) scaleX(1.02)}
.avatar-monkey .slot-face{top:.17em;transform:translateX(-50%) scaleX(.86)}
.avatar-owl .slot-face{top:.08em;transform:translateX(-50%) scaleX(.96)}
.avatar-penguin .slot-face{top:.16em;transform:translateX(-50%) scaleX(.84)}
.avatar-cat .slot-face,.avatar-dog .slot-face{top:.17em;transform:translateX(-50%) scaleX(.90)}
.avatar-mouse .slot-face,.avatar-hamster .slot-face{top:.15em;transform:translateX(-50%) scaleX(.84)}

/* V5.12.1 home: one inviting adventure, separate quick mini games */
.home-v12{max-width:1180px}.play-choice{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:18px;margin-bottom:50px}.adventure-launch{position:relative;min-height:470px;border-radius:38px;overflow:hidden;background:linear-gradient(180deg,#77d4ff 0%,#c9f2ff 57%,#87ce72 58%,#d9ef91 100%);border:5px solid #fff;box-shadow:0 24px 65px #3474a62a;color:#17364c;isolation:isolate;transition:transform .25s,box-shadow .25s}.adventure-launch:hover{transform:translateY(-5px);box-shadow:0 32px 78px #3474a63d}.adventure-launch:focus-visible{outline:5px solid #7c3aed;outline-offset:4px}.adventure-sky{position:absolute;inset:0;pointer-events:none}.adventure-cloud{position:absolute;font-size:68px;filter:drop-shadow(0 8px 8px #2f71951c);animation:cloudDrift 5s ease-in-out infinite alternate}.cloud-a{left:7%;top:8%}.cloud-b{right:5%;top:15%;font-size:48px;animation-delay:-2s}.adventure-sun{position:absolute;right:7%;top:7%;font-size:64px;animation:sunGlow 2.4s ease-in-out infinite}.world-orb{position:absolute;right:8%;top:23%;width:310px;height:310px;display:grid;place-items:center;border-radius:50%;background:#ffffff35;box-shadow:inset 0 0 35px #fff8,0 25px 38px #285d7c28}.world-orb>span{font-size:230px;animation:worldHover 3s ease-in-out infinite;filter:drop-shadow(0 18px 14px #174d702a)}.world-ring{position:absolute;inset:20px;border:3px dashed #ffffffbb;border-radius:50%;animation:worldSpin 18s linear infinite}.world-path{position:absolute;bottom:22px;background:#fff;color:#4d7588;padding:8px 16px;border-radius:999px;font-style:normal;font-size:12px;font-weight:950;box-shadow:0 8px 20px #1c536f24}.adventure-copy{position:absolute;z-index:3;left:48px;top:67px;width:43%}.play-badge{display:inline-block;background:#ffffffb8;padding:8px 11px;border-radius:999px;color:#347293;font-size:10px;font-weight:1000;letter-spacing:.12em}.adventure-copy h1{font-size:clamp(48px,5vw,70px);line-height:.92;margin:20px 0 14px;letter-spacing:-2px}.adventure-copy p{font-size:17px;font-weight:750;line-height:1.45;max-width:320px}.launch-button{display:inline-flex;align-items:center;gap:14px;margin-top:18px;background:#6d3ad7;color:#fff;padding:15px 20px;border-radius:16px;box-shadow:0 7px 0 #4c209f;font-size:15px}.launch-button b{font-size:22px;transition:transform .2s}.adventure-launch:hover .launch-button b{transform:translateX(5px)}.launch-avatar{position:absolute;z-index:4;left:47%;bottom:18px;font-size:82px;filter:drop-shadow(0 10px 7px #1f552638)}
.quick-panel{display:flex;flex-direction:column;gap:16px}.quick-panel>div,.worksheet-shortcut{background:#fff;border:1px solid #eee1d2;border-radius:24px;padding:22px;box-shadow:0 10px 30px #4d39240b}.quick-label{display:block;font-size:10px;letter-spacing:.1em;font-weight:1000;color:#758189;margin-bottom:12px}.quick-panel .home-lang{display:grid;grid-template-columns:1fr;margin:0;gap:8px}.quick-panel .home-lang button{min-width:0;width:100%;font-size:12px}.worksheet-shortcut{margin-top:auto;min-height:178px;display:flex;flex-direction:column;justify-content:center;transition:transform .2s,border-color .2s}.worksheet-shortcut:hover{transform:translateY(-4px);border-color:#b99de9}.worksheet-shortcut>span{font-size:36px;color:#6d3ad7}.worksheet-shortcut b{font-size:16px;margin-top:12px}.worksheet-shortcut small{color:#7f898f;margin-top:4px}
.mini-section{margin-bottom:45px}.mini-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:16px}.mini-heading h2{font-size:34px;margin:7px 0 0}.mini-heading p{color:#778187;font-size:13px}.mini-game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.mini-game{min-height:126px;border-radius:24px;padding:19px;display:grid;grid-template-columns:58px 1fr 24px;align-items:center;gap:13px;border:1px solid #eadfd2;transition:transform .2s,box-shadow .2s}.mini-game:hover{transform:translateY(-5px);box-shadow:0 15px 32px #47342017}.mini-game>span{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:#ffffffb8;font-size:27px;font-weight:1000}.mini-game div{display:flex;flex-direction:column}.mini-game b{font-size:15px}.mini-game small{color:#6f7d84;margin-top:5px}.mini-game i{font-style:normal;font-size:20px;transition:transform .2s}.mini-game:hover i{transform:translateX(4px)}.mini-game.count{background:#fff3e5}.mini-game.letters{background:#eaf5ff}.mini-game.memory{background:#f2edff}.mini-game.shapes{background:#e8f8f3}.mini-game.pattern{background:#fff8d9}.mini-game.buddy{background:#ffeef2}
@keyframes cloudDrift{to{transform:translateX(18px) translateY(-5px)}}@keyframes sunGlow{50%{transform:scale(1.08) rotate(7deg);filter:drop-shadow(0 0 15px #ffe56c)}}@keyframes worldHover{50%{transform:translateY(-9px) rotate(2deg)}}@keyframes worldSpin{to{transform:rotate(360deg)}}
@media(max-width:900px){.play-choice{grid-template-columns:1fr}.quick-panel{display:grid;grid-template-columns:1fr 1fr}.world-orb{right:3%;transform:scale(.85)}.adventure-copy{left:35px}.mini-game-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.adventure-launch{min-height:570px}.adventure-copy{top:38px;left:25px;width:80%}.adventure-copy h1{font-size:48px}.world-orb{top:43%;right:50%;transform:translateX(50%) scale(.72)}.launch-avatar{left:18%;bottom:13px}.quick-panel{grid-template-columns:1fr}.mini-heading{display:block}.mini-heading p{margin-top:7px}.mini-game-grid{grid-template-columns:1fr}.mini-game{min-height:104px}}

/* V5.13 themed kingdom roadmaps */
.world-grid{display:grid;grid-template-columns:1fr;gap:26px;max-width:920px;margin:22px auto}.world-card{position:relative;isolation:isolate;overflow:hidden;min-height:285px;padding:28px 32px;border:4px solid #fff;border-radius:34px;box-shadow:0 20px 45px #3d52651b;background:#fff}.world-card:before,.world-card:after{position:absolute;z-index:-1;pointer-events:none}.world-card:before{content:"";inset:0;background:var(--world-bg)}.world-card:after{content:var(--world-decor);right:25px;top:18px;font-size:58px;letter-spacing:15px;opacity:.8;filter:drop-shadow(0 8px 8px #0001)}.world-card[data-world="0"]{--world-bg:linear-gradient(145deg,#e0f8d3,#fff9c9);--world-decor:"🌴  🦜  🌿"}.world-card[data-world="1"]{--world-bg:linear-gradient(145deg,#eee4ff,#ffdff0);--world-decor:"☁️  🏰  ✨"}.world-card[data-world="2"]{--world-bg:radial-gradient(circle at 75% 25%,#4658a8,#171d4c 62%);--world-decor:"🪐  ✦  🚀";color:#fff}.world-card[data-world="3"]{--world-bg:linear-gradient(160deg,#bdefff,#d9fbf5 52%,#79d6dc);--world-decor:"🐠  🫧  🐚"}.world-card[data-world="4"]{--world-bg:linear-gradient(135deg,#ffe5eb,#fff2bd 30%,#dff7d8 57%,#dcecff 80%,#eee2ff);--world-decor:"🌈  ☁️  ⭐"}.world-card>div:first-child{width:68px;height:68px;border-radius:22px!important;display:grid;place-items:center;background:#ffffffc9;box-shadow:0 10px 25px #263c5219}.world-card>h3{font-size:25px;margin:12px 0 8px}.world-card>.small{font-weight:850}.world-card>.world-progress{height:9px;background:#ffffff80;border:1px solid #ffffffaa}.world-card[data-world="2"] .small{color:#dce7ff}.world-card>div:last-child{position:relative;display:grid!important;grid-template-columns:repeat(8,1fr);gap:18px!important;margin-top:30px;padding:26px 12px}.world-card>div:last-child:before{content:"";position:absolute;left:4%;right:4%;top:50%;height:10px;border-radius:99px;background:repeating-linear-gradient(90deg,#ffffffdd 0 18px,#ffffff55 18px 30px);transform:translateY(-50%);box-shadow:0 4px 0 #45617118}.world-card .map-go{position:relative;z-index:2;width:62px;height:62px;justify-self:center;border-color:#fff;background:#526c83}.world-card .map-go:nth-child(even){transform:translateY(-18px)}.world-card .map-go:nth-child(odd){transform:translateY(18px)}.world-card[data-world="0"] .map-go{background:#358759}.world-card[data-world="1"] .map-go{background:#7b54bd}.world-card[data-world="2"] .map-go{background:#516de0}.world-card[data-world="3"] .map-go{background:#238da5}.world-card[data-world="4"] .map-go{background:#d76787}.world-card .map-go.done{background:#efb931}.world-card .map-go.locked{background:#8c99a3}.world-card.locked{filter:saturate(.55)}
@media(max-width:800px){.world-card>div:last-child{grid-template-columns:repeat(4,1fr);row-gap:28px}.world-card>div:last-child:before{inset:12px 5%;height:auto;background:linear-gradient(90deg,transparent 0 11%,#ffffff99 11% 89%,transparent 89%);opacity:.55}.world-card:after{font-size:42px}.world-card .map-go:nth-child(even),.world-card .map-go:nth-child(odd){transform:none}}
@media(max-width:480px){.world-card{padding:22px 16px}.world-card>div:last-child{grid-template-columns:repeat(4,1fr);gap:10px!important;padding-inline:0}.world-card .map-go{width:54px;height:54px}}

/* V5.13 mode-specific recovery challenges */
.oops-static-choice,.oops-memory-card,.oops-hold{border:3px solid #fff;background:#fff;border-radius:20px;box-shadow:0 8px 0 #d8d1c8;padding:16px 22px;min-width:76px;min-height:68px;font-size:25px;font-weight:1000;cursor:pointer;transition:transform .15s,background .15s}.oops-static-choice:hover,.oops-memory-card:hover{transform:translateY(-4px) rotate(-2deg)}.oops-static-choice.sequence-hit{background:#c9f7dc;border-color:#55bf7f;transform:translateY(-5px)}.oops-memory-card{font-size:34px;background:linear-gradient(145deg,#6d3ad7,#4c209f);color:#fff}.oops-memory-card[data-open]{background:#fff;color:#24323d}.oops-hold{position:relative;overflow:hidden;width:min(270px,80%);color:#fff;background:#6d3ad7;box-shadow:0 8px 0 #4b209b}.oops-hold i{position:absolute;inset:0 auto 0 0;width:0;background:#38b978;opacity:.8}.oops-hold span{position:relative;z-index:2}.oops-hold.holding i{width:100%;transition:width 1s linear}.oops-hold.holding{transform:scale(.97)}

/* V5.11 ABC clickable + Hangman-style Save a Buddy */
.choices,.choices *{pointer-events:auto}
.choices{position:relative;z-index:30}
.choice{position:relative;z-index:31;touch-action:manipulation;cursor:pointer}
.abc-match-stage{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.abc-upper{font-size:clamp(76px,13vw,138px);font-weight:1000;line-height:1;background:#fff;border:5px solid rgba(124,58,237,.15);border-radius:30px;padding:18px 34px;box-shadow:0 12px 30px rgba(38,35,74,.10)}
.abc-arrow{font-size:34px;font-weight:900}.abc-hint{font-weight:800;opacity:.72}
.buddy-rescue{display:grid;gap:12px}
.buddy-scene{position:relative;min-height:210px;border-radius:28px;overflow:hidden;background:linear-gradient(#bfe9ff,#eaf9ff 62%,#a7e08c 63%);border:4px solid rgba(255,255,255,.9)}
.buddy-weather{position:absolute;left:18px;top:14px;font-size:52px;animation:buddyWeather 2.2s ease-in-out infinite alternate}
.buddy-character{position:absolute;left:10%;bottom:70px;font-size:58px;animation:buddyNervous .7s ease-in-out infinite alternate}
.buddy-help{font-size:25px;position:absolute;top:-8px;right:-14px;background:#fff;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;font-weight:1000}
.buddy-goal{position:absolute;right:8%;bottom:70px;font-size:64px}
.buddy-bridge{position:absolute;left:12%;right:12%;bottom:30px;display:grid;grid-template-columns:repeat(6,1fr);gap:5px}
.buddy-step{font-size:clamp(25px,5vw,42px);text-align:center;filter:drop-shadow(0 4px 2px rgba(0,0,0,.08))}
.buddy-step.lost{opacity:.28;transform:translateY(9px) rotate(7deg)}
.buddy-status{font-weight:1000;font-size:18px}.buddy-wrong{font-weight:800;min-height:24px;color:#7c3aed}
.buddy-danger-3 .buddy-character,.buddy-danger-4 .buddy-character,.buddy-danger-5 .buddy-character{animation-duration:.35s}
.buddy-danger-5 .buddy-scene{filter:saturate(.85)}
@keyframes buddyNervous{from{transform:translateY(0) rotate(-2deg)}to{transform:translateY(-7px) rotate(2deg)}}
@keyframes buddyWeather{from{transform:translateX(0)}to{transform:translateX(18px)}}
@media(max-width:520px){.buddy-scene{min-height:175px}.buddy-character{font-size:48px}.buddy-goal{font-size:52px}.alpha button{min-width:40px;min-height:42px}}
@media(prefers-reduced-motion:reduce){.buddy-weather,.buddy-character{animation:none}}

/* V5.13.1 expanded questions, mission rescue and boss stages */
.shape-rectangle{width:150px;height:88px;border-radius:12px;background:#38bdf8}.shape-oval{width:145px;height:88px;border-radius:50%;background:#fb7185}.shape-diamond{width:96px;height:96px;background:#a78bfa;transform:rotate(45deg)}.shape-heart{width:108px;height:98px;display:grid;place-items:center;background:#f43f5e;clip-path:path("M54 94 C10 65 0 42 8 23 C17 1 43 3 54 21 C65 3 91 1 100 23 C108 42 98 65 54 94")}
body[data-game-world="0"]{background:linear-gradient(#e7f9db,#fff9db)}body[data-game-world="1"]{background:linear-gradient(#efe7ff,#fff0f7)}body[data-game-world="2"]{background:radial-gradient(circle at 80% 10%,#5967b9,#202755);color:#f5f7ff}body[data-game-world="3"]{background:linear-gradient(#d9f6ff,#dffaf5)}body[data-game-world="4"]{background:linear-gradient(135deg,#ffe8ef,#fff5ca,#e4f8dc,#e5edff)}body[data-game-world] .prompt-card{position:relative;overflow:hidden;box-shadow:0 20px 55px #314b631b}body[data-game-world="2"] .top,body[data-game-world="2"] .brand{color:#fff}body[data-game-world="2"] .prompt-card{color:#24323d}
.rescue-team{margin:-24px 0 46px;background:linear-gradient(135deg,#45308d,#6e4bc4);border-radius:28px;padding:25px 30px;color:#fff;display:grid;grid-template-columns:230px 1fr;align-items:center;gap:24px;box-shadow:0 18px 40px #39267828}.rescue-team .eyebrow{color:#d8caff}.rescue-heading h2{margin:6px 0 0;font-size:25px}.rescue-gallery{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.rescue-slot{min-height:105px;background:#ffffff18;border:1px solid #ffffff2e;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.rescue-slot>span{font-size:47px;filter:drop-shadow(0 7px 5px #20125155);animation:avatarFloat 2s ease-in-out infinite}.rescue-slot small{font-size:10px;font-weight:900;color:#e9e2ff}.rescue-slot.locked>span{filter:grayscale(1) brightness(0) invert(1);opacity:.26}.rescue-slot.locked small{opacity:.35}.rescue-slot:nth-child(2)>span{animation-delay:-.4s}.rescue-slot:nth-child(3)>span{animation-delay:-.8s}.rescue-slot:nth-child(4)>span{animation-delay:-1.2s}.rescue-slot:nth-child(5)>span{animation-delay:-1.6s}
.boss-stage{position:relative;min-height:260px;border-radius:28px;overflow:hidden;background:linear-gradient(#bcecff,#e6f9ff 62%,#a9dc7d 63%);border:4px solid #fff;box-shadow:0 15px 35px #34506522}.world-boss-1{background:linear-gradient(#d9c8ff,#ffe7f5 62%,#a88bc9 63%)}.world-boss-2{background:radial-gradient(circle at 30% 20%,#5967b9,#171c4b);color:#fff}.world-boss-3{background:linear-gradient(#69d4ef,#c2f6f4 62%,#3a9fb1 63%)}.world-boss-4{background:linear-gradient(135deg,#ffdce6,#fff0ad,#cdf1d2,#d9e5ff)}.boss-place{position:absolute;right:8%;top:8%;font-size:64px;opacity:.75}.boss-friend{position:absolute;right:12%;bottom:30px;font-size:54px;filter:grayscale(1) brightness(.55);animation:buddyNervous .6s infinite alternate}.boss-friend i{position:absolute;right:-8px;top:-8px;background:#fff;color:#d33;width:27px;height:27px;border-radius:50%;font:1000 19px/27px sans-serif}.boss-enemy{position:absolute;left:50%;top:22px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center}.boss-enemy>span{font-size:94px;animation:bossThreat 1.2s ease-in-out infinite}.boss-enemy>b{background:#24323dcc;color:#fff;border-radius:99px;padding:6px 12px;font-size:12px}.boss-health{width:150px;height:13px;margin-top:8px;border:3px solid #fff;background:#27323c;border-radius:99px;overflow:hidden}.boss-health i{display:block;height:100%;background:linear-gradient(90deg,#ff4f5e,#ffb340);transition:width .4s}.boss-player{position:absolute;left:10%;bottom:28px;font-size:67px}.boss-question{font-size:18px;font-weight:1000;margin:14px 0 5px}.rescue-celebration{display:flex;flex-direction:column;align-items:center;gap:8px}.rescue-celebration span{font-size:84px;animation:avatarCelebrate 1s ease}.rescue-celebration b{font-size:22px;color:#22a06b}@keyframes bossThreat{0%,100%{transform:translateX(-5px) rotate(-2deg)}50%{transform:translateX(5px) translateY(-6px) rotate(2deg)}}
@media(max-width:700px){.rescue-team{grid-template-columns:1fr}.rescue-gallery{grid-template-columns:repeat(5,1fr)}.rescue-slot{min-height:82px}.rescue-slot>span{font-size:35px}.boss-enemy>span{font-size:76px}.boss-player{left:5%;font-size:54px}.boss-friend{right:6%;font-size:45px}}

/* V5.13.2 PowerTodds evolution and interactive boss combat */
.power-story{position:relative;margin:4px 0 22px;padding:20px 24px;border-radius:24px;background:linear-gradient(110deg,#202b5c,#58389f);color:#fff;display:grid;grid-template-columns:58px 1fr 110px;gap:18px;align-items:center;overflow:hidden}.power-story:after{content:"";position:absolute;width:220px;height:220px;right:80px;border:2px solid #ffffff18;border-radius:50%;box-shadow:0 0 0 28px #ffffff0b,0 0 0 56px #ffffff08}.story-mark{width:54px;height:54px;border-radius:18px;background:linear-gradient(145deg,#ffd84d,#f28c31);display:grid;place-items:center;font:1000 31px Georgia;color:#41276e;box-shadow:0 8px 20px #0c123a66}.power-story .eyebrow{color:#d9ccff;margin:0}.power-story h2{font-size:22px;margin:4px 0}.power-story p{font-size:12px;color:#e3dcf7;margin:0}.story-progress{position:relative;z-index:2;text-align:center;background:#ffffff14;border:1px solid #ffffff26;border-radius:17px;padding:10px}.story-progress b{display:block;font-size:28px;color:#ffd84d}.story-progress span{font-size:8px;font-weight:1000;letter-spacing:.12em}
.power-avatar .power-glow{position:absolute;z-index:0;inset:calc(-.12em - var(--power)*.002em);border-radius:50%;background:radial-gradient(circle,#fff7 0,#8b5cf644 42%,transparent 68%);opacity:calc(.12 + var(--power)*.02);animation:powerPulse 1.5s ease-in-out infinite}.power-avatar .avatar-base{filter:saturate(calc(1 + var(--power)*.012)) drop-shadow(0 0 calc(var(--power)*.18px) #8b5cf6)}.power-rank{position:absolute;z-index:9;right:-.12em;bottom:-.08em;min-width:1.45em;height:1.45em;padding:0 .25em;border-radius:999px;background:linear-gradient(#ffd84d,#f0a72d);border:.10em solid #fff;color:#3b2862;display:grid;place-items:center;font:1000 .24em/1 sans-serif;box-shadow:0 3px 6px #0003}.power-avatar[style*="--power:0"] .power-rank{display:none}@keyframes powerPulse{50%{transform:scale(1.14);opacity:.75}}
.boss-enemy>span{font-size:132px;filter:drop-shadow(0 17px 10px #18223955)}.boss-stage{min-height:330px}.boss-enemy{top:14px}.boss-player{font-size:82px}.boss-friend{font-size:64px}.boss-attack-button{border:0;border-radius:18px;background:linear-gradient(135deg,#ffd84d,#ff8e3c);color:#3b2862;padding:18px 28px;font-size:18px;font-weight:1000;box-shadow:0 8px 0 #bf5d25,0 16px 28px #612a2133;cursor:pointer;animation:attackReady .65s ease-in-out infinite alternate}.boss-attack-button span{font-size:25px}.boss-attack-button:hover{transform:translateY(-4px) scale(1.04)}.boss-enemy.boss-hit{animation:bossHit .75s ease both}.boss-player.player-strike{animation:playerStrike .75s ease both}.boss-stage.attacking:after{content:"";position:absolute;z-index:8;left:24%;top:53%;width:45%;height:12px;border-radius:99px;background:linear-gradient(90deg,#fff,#ffd84d,#8b5cf6);box-shadow:0 0 18px #fff,0 0 35px #8b5cf6;transform-origin:left;animation:powerBeam .65s ease both}.power-spark{position:absolute;z-index:10;left:68%;top:43%;width:12px;height:12px;background:#ffd84d;clip-path:polygon(50% 0,61% 36%,100% 50%,61% 64%,50% 100%,39% 64%,0 50%,39% 36%);animation:sparkBurst .7s ease-out both;transform:rotate(calc(var(--i)*51deg)) translateX(45px)}@keyframes attackReady{to{box-shadow:0 11px 0 #bf5d25,0 19px 35px #612a2144}}@keyframes bossHit{25%{transform:translateX(-50%) rotate(-8deg) scale(1.08)}55%{transform:translateX(-50%) rotate(8deg) scale(.92)}100%{transform:translateX(-50%)}}@keyframes playerStrike{45%{transform:translate(90px,-30px) scale(1.18)}100%{transform:none}}@keyframes powerBeam{from{transform:scaleX(0);opacity:0}35%{opacity:1}to{transform:scaleX(1);opacity:0}}@keyframes sparkBurst{from{transform:translate(0,0) scale(.2);opacity:1}to{transform:rotate(calc(var(--i)*51deg)) translateX(72px) scale(1.3);opacity:0}}
@media(max-width:620px){.power-story{grid-template-columns:48px 1fr}.story-progress{grid-column:1/-1;display:flex;justify-content:center;gap:8px;align-items:center}.story-progress b{font-size:20px}.boss-enemy>span{font-size:102px}.boss-stage{min-height:290px}.boss-player{font-size:61px}.boss-friend{font-size:50px}}

/* V5.15 original Toddsplay character art */
.mini-game.memory{max-width:none;margin:0;grid-template-columns:58px minmax(0,1fr) 24px;width:auto}
.character-sprite{display:inline-block;width:1em;height:1em;background-repeat:no-repeat;vertical-align:middle;overflow:hidden}
.sprite-avatar,.sprite-buddy,.sprite-boss,.sprite-accessory{background-size:contain;background-position:center;background-repeat:no-repeat}
.avatar-base{display:inline-grid;place-items:center;width:1em;height:1em}.avatar-base>.character-sprite{width:1em;height:1em}
.boss-enemy>.character-sprite{width:1em;height:1em;filter:drop-shadow(0 17px 10px #18223955)}
.boss-friend>.character-sprite,.rescue-celebration .character-sprite{width:1em;height:1em}
@media(max-width:620px){.mini-game-grid{width:100%}.mini-game{width:100%;min-width:0}.mini-game.memory{width:100%}}

/* Living characters: calm idle, battle reactions and collectible motion */
.avatar-base>.character-sprite{animation:heroAlive 2.4s ease-in-out infinite;transform-origin:50% 85%}
.avatar-dress:hover .avatar-base>.character-sprite,.avatar-option:hover .character-sprite{animation:heroWave .65s ease-in-out infinite alternate}
.sprite-buddy{animation:buddyAlive 1.7s ease-in-out infinite;transform-origin:50% 88%}
.sprite-boss{animation:bossAlive 1.9s ease-in-out infinite alternate;transform-origin:50% 78%}
.avatar-accessory .character-sprite{width:100%;height:100%;animation:accessoryShine 2.2s ease-in-out infinite}
.boss-enemy.enemy-strike .sprite-boss{animation:bossLunge .8s cubic-bezier(.2,.8,.2,1)}
.boss-enemy.boss-hit .sprite-boss{animation:bossRecoil .75s ease both}
.boss-player.player-hit .character-sprite{animation:heroHurt .65s ease both}
.boss-player.player-strike .character-sprite{animation:heroStrike .75s ease both}
.rescue-celebration .sprite-buddy{animation:buddyCelebrate .65s ease-in-out infinite alternate}
@keyframes heroAlive{0%,100%{transform:translateY(0) scale(1)}45%{transform:translateY(-.035em) scale(1.015)}55%{transform:translateY(-.025em) scale(.995)}}
@keyframes heroWave{to{transform:translateY(-.07em) rotate(3deg) scale(1.04)}}
@keyframes buddyAlive{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-6%) rotate(2deg)}}
@keyframes bossAlive{from{transform:translateY(1%) scale(.98) rotate(-1deg)}to{transform:translateY(-3%) scale(1.025) rotate(1deg)}}
@keyframes bossLunge{40%{transform:translate(-24%,-4%) scale(1.16)}100%{transform:none}}
@keyframes bossRecoil{30%{transform:translateX(12%) rotate(7deg) scale(.92)}60%{transform:translateX(-7%) rotate(-4deg)}100%{transform:none}}
@keyframes heroHurt{35%{transform:translateX(-18%) rotate(-9deg) scale(.9)}70%{filter:brightness(1.6)}100%{transform:none}}
@keyframes heroStrike{45%{transform:translate(80%,-20%) rotate(7deg) scale(1.15)}100%{transform:none}}
@keyframes buddyCelebrate{to{transform:translateY(-12%) rotate(5deg) scale(1.08)}}
@keyframes accessoryShine{50%{filter:brightness(1.18) drop-shadow(0 0 4px #fff8);transform:scale(1.04)}}
.world-mission{display:inline-block;margin:0 0 8px;padding:7px 11px;border-radius:12px;background:#ffffff9c;font-size:11px;font-weight:900;color:#4c6070}.world-card[data-world="2"] .world-mission{background:#ffffff20;color:#eef3ff}.map-go.boss-node{width:72px!important;height:72px!important;border-color:#ffd84d!important;box-shadow:0 0 0 6px #ffd84d35,0 8px 0 #0002!important}.map-go.boss-node:after{content:"BOSS";position:absolute;bottom:-18px;background:#35285e;color:#fff;border-radius:99px;padding:3px 7px;font-size:8px;letter-spacing:.08em}.map-go.boss-node:not(.locked){animation:bossNodePulse 1.2s ease-in-out infinite alternate}@keyframes bossNodePulse{to{transform:translateY(-5px) scale(1.06);box-shadow:0 0 0 10px #ffd84d22,0 12px 0 #0002}}
.player-health{position:absolute;left:50%;bottom:-22px;transform:translateX(-50%);width:135px;height:18px;border:3px solid #fff;background:#263342;border-radius:99px;overflow:hidden;box-shadow:0 5px 10px #0003}.player-health span{position:absolute;z-index:2;inset:0;display:grid;place-items:center;color:#fff;font:1000 7px sans-serif;letter-spacing:.12em}.player-health i{display:block;height:100%;background:linear-gradient(90deg,#36d487,#9df15d);transition:width .35s}.boss-enemy.enemy-strike{animation:enemyStrike .8s ease both}.boss-player.player-hit{animation:playerDamage .85s ease both}.boss-stage.enemy-attacking:after{content:"";position:absolute;z-index:8;right:39%;top:44%;width:34%;height:14px;background:linear-gradient(90deg,#e44141,#ffb13b);border-radius:99px;box-shadow:0 0 25px #ff4a38;animation:enemyBeam .55s ease both}.boss-stage.enemy-attacking{animation:damageFlash .45s ease}.boss-player.player-hit .power-avatar{filter:grayscale(.8)}@keyframes enemyStrike{35%{transform:translateX(-50%) translate(-65px,28px) scale(1.14)}100%{transform:translateX(-50%)}}@keyframes playerDamage{20%{transform:translateX(-18px) rotate(-9deg)}40%{transform:translateX(16px) rotate(7deg);opacity:.45}70%{transform:translateX(-8px)}100%{transform:none;opacity:1}}@keyframes enemyBeam{from{transform:scaleX(0);transform-origin:right;opacity:0}35%{opacity:1}to{transform:scaleX(1);opacity:0}}@keyframes damageFlash{30%{box-shadow:inset 0 0 0 999px #ff334433}}

/* V5.14.2 visible evolution forms */
.story-progress strong{display:block;margin-top:4px;color:#fff;font-size:10px}.evolution-motes{position:absolute;z-index:8;inset:-.18em;animation:worldSpin 7s linear infinite;pointer-events:none}.evolution-motes i{--angle:calc(var(--m)*45deg);position:absolute;left:50%;top:50%;width:.09em;height:.09em;border-radius:50%;background:#ffd84d;box-shadow:0 0 .12em #fff;transform:rotate(var(--angle)) translateX(.73em)}.evolution-crown{display:none;position:absolute;z-index:7;top:-.38em;font-size:.28em}.evolution-guardian .power-glow{background:radial-gradient(circle,#fff8,#3ddc9766 42%,transparent 70%)}.evolution-nova .power-glow{background:radial-gradient(circle,#fff8,#38bdf888 40%,transparent 72%)}.evolution-titan .power-glow{background:radial-gradient(circle,#fff9,#f9731688 38%,transparent 74%)}.evolution-legend .power-glow{background:conic-gradient(from 0deg,#ff4d6d88,#ffd84d99,#4ade8088,#38bdf899,#8b5cf699,#ff4d6d88);filter:blur(.05em)}.evolution-titan .avatar-base{transform:scale(1.08)}.evolution-legend .avatar-base{transform:scale(1.15);filter:saturate(1.5) drop-shadow(0 0 .22em #fff)}.evolution-guardian .evolution-crown,.evolution-nova .evolution-crown,.evolution-titan .evolution-crown,.evolution-legend .evolution-crown{display:block;content:"";width:.55em;height:.16em;background:linear-gradient(90deg,#ffd84d,#fff0a1,#ffd84d);clip-path:polygon(0 100%,8% 15%,30% 65%,50% 0,70% 65%,92% 15%,100% 100%)}.power-rank{font-size:.29em!important;min-width:1.6em!important;height:1.6em!important}

/* Five distinct boss attack mechanics */
.boss-retry-button{border:0;border-radius:19px;padding:18px 28px;background:linear-gradient(#ffca45,#f18b30);color:#3c285f;font-size:18px;font-weight:1000;box-shadow:0 8px 0 #b95825;cursor:pointer}.boss-stage.player-down{filter:grayscale(.5);animation:playerDown .6s ease}.boss-vine,.boss-rune,.boss-prism{width:82px;height:82px;border:3px solid #fff;border-radius:22px;font-size:32px;font-weight:1000;cursor:pointer;box-shadow:0 8px 0 #325e3c}.boss-vine{background:#54a86d;color:#e8ffd8;animation:vineMove calc(1.2s + var(--v)*.2s) ease-in-out infinite alternate}.boss-vine.cut{opacity:.25;transform:rotate(35deg) scale(.7);animation:none}.boss-rune{background:linear-gradient(145deg,#7255bd,#3e287f);color:#fff;box-shadow:0 8px 0 #28155f}.boss-rune.lit{background:#ffd84d;color:#432968;box-shadow:0 0 28px #ffe66b}.boss-charge{position:relative;overflow:hidden;width:min(320px,90%);height:75px;border:3px solid #fff;border-radius:99px;background:#282f70;color:#fff;font-weight:1000;box-shadow:0 8px 0 #171b4b}.boss-charge span{position:relative;z-index:2}.boss-charge i{position:absolute;inset:0 auto 0 0;width:0;background:linear-gradient(90deg,#5568ed,#5ee7ff)}.boss-charge.charging i{width:100%;transition:width 1.1s linear}.boss-bubble{width:120px;height:120px;border-radius:50%;border:5px solid #fff;background:radial-gradient(circle at 30% 20%,#fff,#62d8ef88 35%,#317fa688);font-size:42px;box-shadow:inset 0 0 20px #fff,0 10px 25px #19697b55;cursor:pointer}.boss-bubble b{display:block;font-size:18px}.boss-bubble.pop{animation:bubblePop .22s ease}.boss-prism{background:#fff9;box-shadow:0 8px 0 #a66883}.boss-prism.linked{transform:translateY(-7px);background:#fff;box-shadow:0 0 25px currentColor}.attack-vine:after{background:linear-gradient(90deg,#b5ff77,#37a85b)!important}.attack-rune:after{background:linear-gradient(90deg,#fff,#b78cff,#6d3ad7)!important}.attack-comet:after{height:20px!important;background:linear-gradient(90deg,#fff,#5ee7ff,#5366ea)!important}.attack-wave:after{height:28px!important;background:linear-gradient(90deg,#e7ffff,#43d9ed,#247ba0)!important}.attack-prism:after{background:linear-gradient(90deg,#ff4d6d,#ffd84d,#4ade80,#38bdf8,#8b5cf6)!important}@keyframes vineMove{to{transform:translateY(-10px) rotate(9deg)}}@keyframes bubblePop{50%{transform:scale(1.18);opacity:.55}}@keyframes playerDown{50%{transform:translateY(6px);opacity:.65}}

/* V5.16 cinematic story homepage */
.story-home{background:#07172c;color:#fff}.story-home main{overflow:hidden}.story-nav{max-width:1180px;margin:auto;padding:16px 22px;position:relative;z-index:20}.story-nav .brand{color:#fff}.story-hero{min-height:min(760px,88vh);position:relative;display:flex;align-items:center;padding:clamp(35px,7vw,100px);background:radial-gradient(circle at 75% 24%,#ffe36a66,transparent 20%),linear-gradient(135deg,#08192f,#39246d 56%,#d14c71);overflow:hidden}.story-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#07172df2 0 38%,transparent 76%)}.story-worlds{position:absolute;inset:8% 4% auto 45%;display:flex;justify-content:space-around;font-size:clamp(40px,7vw,100px);filter:drop-shadow(0 18px 20px #0008);animation:worldCrisis 5s ease-in-out infinite}.story-worlds i{font-style:normal;animation:worldFloat 2.2s ease-in-out infinite alternate}.story-worlds i:nth-child(2){animation-delay:-.4s}.story-worlds i:nth-child(3){animation-delay:-.8s}.story-worlds i:nth-child(4){animation-delay:-1.2s}.story-worlds i:nth-child(5){animation-delay:-1.6s}.story-copy{position:relative;z-index:3;width:min(610px,55%)}.story-kicker{font-weight:1000;letter-spacing:.16em;color:#ffd65a}.story-copy h1{font-size:clamp(42px,6vw,86px);line-height:.94;margin:18px 0}.story-copy p{font-size:clamp(16px,2vw,23px);line-height:1.55;color:#e7e9ff}.story-copy strong{display:block;margin-top:20px;font-size:clamp(17px,2vw,25px)}.story-hero-character{position:absolute;z-index:4;right:8%;bottom:2%;font-size:clamp(230px,32vw,500px);filter:drop-shadow(0 30px 35px #0008);animation:heroEntrance 1.2s cubic-bezier(.2,.8,.2,1) both}.hero-arrives,.mystery-team{max-width:1120px;margin:70px auto;padding:clamp(24px,5vw,60px);border-radius:42px;background:#fff;color:#17263b;display:grid;grid-template-columns:.65fr 1.35fr;align-items:center;gap:45px}.hero-burst{font-size:220px;text-align:center;background:radial-gradient(circle,#ffe169,#ff7567 42%,transparent 43%);animation:burstPulse 2s ease-in-out infinite}.hero-arrives h2{font-size:clamp(38px,6vw,70px);margin:10px 0;color:#512e8c}.hero-arrives p{font-size:19px;line-height:1.6}.story-missions{display:flex;gap:10px;flex-wrap:wrap}.story-missions span{padding:11px 15px;background:#f0eaff;border-radius:99px}.mystery-team{grid-template-columns:1fr;background:linear-gradient(135deg,#eaf7ff,#fff1d6)}.mystery-team h2{font-size:36px}.story-cta{text-align:center;padding:90px 20px;background:radial-gradient(circle at center,#5b2da8,#160b35);font-size:20px}.story-cta h2{font-size:clamp(35px,6vw,72px);margin:12px}.start-adventure{display:inline-flex;align-items:center;gap:25px;margin-top:20px;padding:22px 30px;border-radius:22px;background:linear-gradient(135deg,#ffd84d,#ff783e);color:#321c5e;font-size:clamp(17px,3vw,28px);box-shadow:0 10px 0 #9e3e2b,0 20px 45px #0007;animation:ctaInvite 1s ease-in-out infinite alternate}.story-minis{max-width:1120px;margin:70px auto;padding:20px}.story-minis .mini-game{color:#24323d}@keyframes worldFloat{to{transform:translateY(18px) rotate(6deg)}}@keyframes worldCrisis{50%{filter:drop-shadow(0 18px 25px #ff4b8d) saturate(.7)}}@keyframes heroEntrance{from{transform:translateX(45%) scale(.7);opacity:0}to{transform:none;opacity:1}}@keyframes burstPulse{50%{transform:scale(1.035)}}@keyframes ctaInvite{to{transform:translateY(-6px) scale(1.03)}}

/* V5.16 fullscreen cinematic boss arenas */
.boss-mode{margin:0;background:#020815;color:#fff;overflow:hidden}.boss-mode .screen-motion{display:none}.boss-mode>.wrap{max-width:none;width:100vw;height:100vh;padding:0}.boss-mode .top{position:fixed;z-index:30;top:12px;left:18px;right:18px}.boss-mode .top .brand,.boss-mode .top .stat{background:#091326cc;color:#fff;border-color:#ffffff33;backdrop-filter:blur(10px)}.boss-mode .prompt-card{position:fixed;inset:0;background:transparent;border:0;padding:0;max-width:none}.boss-mode .world-pill{position:absolute;z-index:10;top:18px;left:50%;transform:translateX(-50%);background:#071326cc;color:#fff}.boss-mode #gameName{position:absolute;z-index:10;top:55px;left:50%;transform:translateX(-50%);margin:0;font-size:13px;letter-spacing:.2em}.boss-mode .small{position:absolute;z-index:10;top:86px;left:50%;transform:translateX(-50%);color:#fff}.boss-mode .big-prompt{position:fixed;z-index:20;left:50%;bottom:178px;transform:translateX(-50%);width:min(720px,90vw);min-height:0;padding:13px 20px;border-radius:18px;background:#071326d9;color:#fff;font-size:clamp(20px,3vw,34px);backdrop-filter:blur(12px);box-shadow:0 12px 35px #0008}.boss-mode #extra{position:absolute;inset:0}.boss-mode .boss-stage{position:absolute;inset:0;width:100%;height:100%;min-height:100vh;border:0;border-radius:0;background-size:cover!important;background-position:center!important;box-shadow:none}.boss-mode .world-boss-0{background-image:linear-gradient(#06121a22,#02071188),url('assets/characters/arena-jungle.png')}.boss-mode .world-boss-1{background-image:linear-gradient(#12052c22,#05031188),url('assets/characters/arena-abc.png')}.boss-mode .world-boss-2{background-image:linear-gradient(#02071911,#01030c88),url('assets/characters/arena-space.png')}.boss-mode .world-boss-3{background-image:linear-gradient(#00384a22,#00142077),url('assets/characters/arena-ocean.png')}.boss-mode .world-boss-4{background-image:linear-gradient(#28124011,#08051a77),url('assets/characters/arena-rainbow.png')}.boss-mode .boss-enemy{left:auto;right:4vw;top:11vh;transform:none;width:min(46vw,620px);height:64vh;justify-content:flex-end;animation:bossEnter 1s cubic-bezier(.2,.8,.2,1) both}.boss-mode .boss-enemy>span{font-size:0;width:100%;height:calc(100% - 58px);animation:none!important;filter:drop-shadow(0 28px 22px #000b)}.boss-mode .boss-enemy .sprite-boss{display:block;width:100%;height:100%;animation:bossState 3.1s ease-in-out infinite;transform-origin:50% 85%}.boss-mode .boss-enemy>b{font-size:14px;padding:8px 18px}.boss-mode .boss-health{width:min(330px,70%);height:20px}.boss-mode .boss-player{left:5vw;bottom:18vh;font-size:min(28vw,300px);filter:drop-shadow(0 25px 20px #0009);animation:playerEnter .9s .15s ease both}.boss-mode .boss-friend{right:47%;bottom:25%;font-size:80px;background:#ffffff25;border:2px solid #fff6;width:90px;height:110px;border-radius:50%;display:grid;place-items:center;backdrop-filter:blur(8px)}.boss-mode .boss-place{display:none}.boss-mode .boss-question{position:fixed;z-index:20;bottom:132px;left:50%;transform:translateX(-50%);font-size:18px}.boss-mode .feedback{position:fixed;z-index:24;left:50%;bottom:116px;transform:translateX(-50%);margin:0;color:#fff;text-shadow:0 2px 7px #000}.boss-mode .choice-grid{position:fixed;z-index:25;left:50%;bottom:18px;transform:translateX(-50%);width:min(760px,94vw);display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.boss-mode .choice{min-height:78px;background:#ffffffed;border-color:#fff;font-size:24px;box-shadow:0 7px 0 #10172dcc}.boss-world-0 .boss-stage:before{content:"";position:absolute;inset:-5%;background:radial-gradient(circle at 85% 20%,transparent 0 35%,#3d8b3422 60%);animation:jungleBreath 5s ease-in-out infinite}.boss-world-1 .boss-stage:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,#8b42f522 50%,transparent 70%);animation:inkSweep 4s linear infinite}.boss-world-2 .boss-stage{animation:spaceCamera 8s ease-in-out infinite alternate}.boss-world-3 .boss-stage:before{content:"";position:absolute;inset:0;background:repeating-radial-gradient(circle at 20% 80%,transparent 0 40px,#9ef6ff18 44px 47px);animation:oceanCurrent 7s linear infinite}.boss-world-4 .boss-stage:before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent,#ff4b9130,#ffe14b30,#4bdbff30,transparent);animation:prismSweep 3s linear infinite}.boss-mode .enemy-attacking{animation:cameraShake .55s ease}.boss-mode .enemy-strike .sprite-boss{animation:bossAttackState .8s cubic-bezier(.2,.8,.2,1)!important}.boss-mode .boss-hit .sprite-boss{animation:bossDamageState .8s ease!important}.boss-mode .player-hit .character-sprite{animation:heroDamageState .8s ease!important}.boss-mode .player-strike .character-sprite{animation:heroAttackState .8s ease!important}.shop-item-art{width:92px;height:92px;margin:0 auto -12px;filter:drop-shadow(0 8px 8px #0002)}.shop-item-art .character-sprite{width:100%;height:100%;animation:itemFloat 2s ease-in-out infinite}.shop-preview{overflow:visible!important}@keyframes bossEnter{from{transform:translateX(45%) scale(.7);opacity:0}to{transform:none;opacity:1}}@keyframes playerEnter{from{transform:translateX(-60%) scale(.6);opacity:0}to{transform:none;opacity:1}}@keyframes bossState{0%,100%{transform:translateY(0) scale(1)}35%{transform:translateY(-2%) scale(1.025)}42%{filter:brightness(1.22)}70%{transform:translateY(1%) rotate(.8deg)}}@keyframes bossAttackState{45%{transform:translate(-42%,-5%) scale(1.22) rotate(-5deg);filter:brightness(1.5)}100%{transform:none}}@keyframes bossDamageState{20%{transform:translateX(12%) rotate(7deg);filter:brightness(2)}45%{transform:translateX(-8%) rotate(-5deg)}70%{opacity:.45}100%{transform:none;opacity:1}}@keyframes heroAttackState{40%{transform:translate(130%,-28%) rotate(10deg) scale(1.2);filter:brightness(1.5)}100%{transform:none}}@keyframes heroDamageState{25%{transform:translateX(-22%) rotate(-12deg) scale(.82)}55%{opacity:.35;filter:grayscale(1)}100%{transform:none;opacity:1}}@keyframes jungleBreath{50%{transform:scale(1.06);filter:saturate(1.2)}}@keyframes inkSweep{to{transform:translateX(30%)}}@keyframes spaceCamera{to{background-position:54% 48%}}@keyframes oceanCurrent{to{transform:translateX(100px) scale(1.08)}}@keyframes prismSweep{to{transform:translateX(80%)}}@keyframes cameraShake{20%{transform:translateX(-8px)}40%{transform:translateX(7px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}@keyframes itemFloat{50%{transform:translateY(-7px) rotate(3deg)}}
@media(max-width:700px){.story-copy{width:90%}.story-hero-character{right:-12%;opacity:.75}.story-hero:after{background:linear-gradient(90deg,#07172df5 0 55%,transparent)}.hero-arrives{grid-template-columns:1fr}.hero-burst{font-size:150px}.boss-mode .boss-enemy{right:-7vw;top:12vh;width:68vw;height:50vh}.boss-mode .boss-player{font-size:34vw;bottom:27vh}.boss-mode .boss-friend{display:none}.boss-mode .big-prompt{bottom:196px}.boss-mode .boss-question{bottom:154px}.boss-mode .feedback{bottom:132px;font-size:13px}.boss-mode .choice-grid{grid-template-columns:repeat(2,1fr)}.boss-mode .choice{min-height:62px}}

/* V5.16.1 illustrated homepage and world portals — no emoji artwork */
.story-hero{background-image:linear-gradient(90deg,#050c1cf2 0%,#091326b8 34%,transparent 72%),url('assets/characters/toddsplay-story-panorama.png');background-size:cover;background-position:center}.story-hero:after{background:linear-gradient(90deg,#050c1de8 0 35%,transparent 68%)}.story-worlds{display:none}.story-nav .stat b{font-size:8px;letter-spacing:.12em;margin-right:5px}.floating-shop:before{content:"";width:18px;height:18px;border-radius:5px;background:linear-gradient(135deg,#ffe06a,#e99f23);box-shadow:inset 0 0 0 3px #fff7;transform:rotate(45deg)}
.world-art{background-size:cover;background-position:center}.world-art-0{background-image:url('assets/characters/arena-jungle.png')}.world-art-1{background-image:url('assets/characters/arena-abc.png')}.world-art-2{background-image:url('assets/characters/arena-space.png')}.world-art-3{background-image:url('assets/characters/arena-ocean.png')}.world-art-4{background-image:url('assets/characters/arena-rainbow.png')}
body:has(.world-grid){background:radial-gradient(circle at 50% 0,#243c61,#071426 65%);color:#fff;min-height:100vh}body:has(.world-grid) .brand{color:#fff}body:has(.world-grid) .map-banner{background:#ffffff12;border:1px solid #ffffff28;backdrop-filter:blur(10px)}body:has(.world-grid) .auto-note{background:#ffffff10;border-color:#ffffff20;color:#dce7f7}
.world-grid{max-width:1050px;gap:38px}.world-card{min-height:480px;padding:0 30px 30px;background:#101d2d;border:1px solid #ffffff38;border-radius:38px;box-shadow:0 30px 70px #0006;color:#fff;overflow:hidden}.world-card:before{content:"";z-index:0;inset:0;background:linear-gradient(180deg,transparent 0 34%,#0b1425 62% 100%)}.world-card:after{display:none}.world-card>.world-art:first-child{position:relative;z-index:-1;width:calc(100% + 60px);height:245px;margin:0 -30px 0;border-radius:0!important;display:block;background-color:#22324a;box-shadow:none}.world-card>h3,.world-card>.world-mission,.world-card>.world-progress,.world-card>.small,.world-card>div:last-child{position:relative;z-index:2}.world-card>h3{font-size:32px;margin-top:-28px;display:inline-block;padding:12px 18px;background:#091426e6;border:1px solid #ffffff38;border-radius:18px;backdrop-filter:blur(9px)}.world-card .world-mission{background:#ffffff12!important;color:#e9f2ff!important;border:1px solid #ffffff25;font-size:13px}.world-card>.world-progress{background:#ffffff22}.world-card[data-world="2"] .small,.world-card .small{color:#cfe0f5}.world-card>div:last-child{margin-top:18px}.world-card[data-world="0"],.world-card[data-world="1"],.world-card[data-world="2"],.world-card[data-world="3"],.world-card[data-world="4"]{--world-bg:transparent;--world-decor:""}.world-card.locked .world-art{filter:grayscale(1) brightness(.5);transform:scale(1.02)}.world-card:not(.locked):hover .world-art{transform:scale(1.035);filter:saturate(1.12)}.world-card .world-art{transition:transform .6s ease,filter .6s ease}.world-card .map-go{border:2px solid #fff9;box-shadow:0 7px 0 #0006!important}.world-card .map-go:before{content:"";position:absolute;inset:7px;border-radius:50%;border:1px solid #fff4}
@media(max-width:600px){.story-hero{background-position:62% center}.story-copy{width:96%}.world-card{padding:0 16px 22px;min-height:455px}.world-card>.world-art:first-child{width:calc(100% + 32px);margin-inline:-16px;height:205px}.world-card>h3{font-size:25px}.world-card>div:last-child{padding:20px 0}}
.world-card:before{z-index:2}.world-card>.world-art:first-child{z-index:1}.world-card>h3,.world-card>.world-mission,.world-card>.world-progress,.world-card>.small,.world-card>div:last-child{z-index:3}
.world-card>.world-art.world-art-0{background-image:url('assets/characters/arena-jungle.png')}.world-card>.world-art.world-art-1{background-image:url('assets/characters/arena-abc.png')}.world-card>.world-art.world-art-2{background-image:url('assets/characters/arena-space.png')}.world-card>.world-art.world-art-3{background-image:url('assets/characters/arena-ocean.png')}.world-card>.world-art.world-art-4{background-image:url('assets/characters/arena-rainbow.png')}

/* V5.17 responsive recovery */
.story-nav .stat,.story-nav .active-child{color:#17263b}.story-nav .stat b{color:#6d7785}.story-nav .active-child strong{color:#17263b}.story-nav .active-child>b{margin-left:auto;color:#5b35a0}.map-home:before{content:"←";margin-right:9px}.map-home{display:inline-flex;align-items:center;padding:11px 16px;border-radius:14px;background:#fff;color:#14243a!important;font-size:16px!important;box-shadow:0 7px 20px #0003}body:has(.world-grid) .top .stat{color:#14243a}body:has(.world-grid) .profile-actions .btn{background:#fff;color:#14243a}body:has(.world-grid) .world-pill{color:#fff;background:#ffffff18;border:1px solid #fff3}body:has(.world-grid) .lang-switch button{color:#14243a;background:#fff;min-width:170px}

/* One large joined rescue stage */
.mystery-team{padding:clamp(25px,5vw,58px)}.mystery-team .rescue-gallery{min-height:300px;display:flex;align-items:flex-end;justify-content:center;gap:0;padding:28px 4% 18px;border-radius:32px;background:radial-gradient(ellipse at 50% 100%,#7454bb55,transparent 56%),linear-gradient(180deg,#ddecff,#fef0cc);overflow:hidden}.mystery-team .rescue-slot{position:relative;width:min(18%,190px);height:245px;margin:0 -4px;background:transparent;border:0;border-radius:0;justify-content:flex-end}.mystery-team .rescue-slot>span{width:100%;height:205px;font-size:0;background-size:contain;background-repeat:no-repeat;background-position:center bottom;filter:drop-shadow(0 12px 13px #2d315544);animation:none}.mystery-team .rescue-slot:nth-child(1)>span{background-image:url('assets/characters/pet-individual-v38-00.png')}.mystery-team .rescue-slot:nth-child(2)>span{background-image:url('assets/characters/pet-individual-v38-01.png')}.mystery-team .rescue-slot:nth-child(3)>span{background-image:url('assets/characters/pet-individual-v38-02.png')}.mystery-team .rescue-slot:nth-child(4)>span{background-image:url('assets/characters/pet-individual-v38-03.png')}.mystery-team .rescue-slot:nth-child(5)>span{background-image:url('assets/characters/pet-individual-v38-04.png')}.mystery-team .rescue-slot.locked>span{filter:brightness(0) opacity(.25) drop-shadow(0 10px 0 #fff7)}.mystery-team .rescue-slot:not(.locked)>span{background-image:none}.mystery-team .rescue-slot:not(.locked)>span>.character-sprite{width:100%;height:100%;animation:buddyCelebrate 1.5s ease-in-out infinite alternate}.mystery-team .rescue-slot small{position:absolute;bottom:0;left:50%;transform:translateX(-50%);white-space:nowrap;padding:6px 10px;border-radius:99px;background:#17263bdd;color:#fff;opacity:1;font-size:10px}.mystery-team .rescue-slot.locked small{opacity:.75}

/* Larger profile and game characters */
.profile-card .av{font-size:72px}.avatar-option{min-height:142px}.avatar-option>span{font-size:82px;height:96px}.avatar-option small{font-size:13px}.active-child [data-avatar]{font-size:34px}.story-nav .active-child [data-avatar]{width:46px;height:46px}.shop-preview{font-size:92px;min-height:142px}.shop-item-art{width:115px;height:115px}.shop-item{padding:20px}.boss-mode .boss-player{font-size:min(32vw,340px)}

/* Accessory fitting based on the new human hero proportions */
.avatar-dress .accessory-glasses{font-size:.34em;top:.19em;left:50%;transform:translateX(-50%)}.avatar-dress .accessory-crown{font-size:.35em;top:-.03em;left:50%;transform:translateX(-50%)}.avatar-dress .accessory-hat{font-size:.43em;top:-.07em;left:50%;transform:translateX(-50%)}.avatar-dress .accessory-flower{font-size:.25em;top:.08em;right:.16em}.avatar-dress .accessory-headphones{font-size:.45em;top:.09em;left:50%;transform:translateX(-50%)}.avatar-dress .accessory-bowtie{font-size:.20em;bottom:.32em;left:50%;transform:translateX(-50%)}.avatar-dress .accessory-medal{font-size:.22em;bottom:.18em;left:50%;transform:translateX(-50%)}.avatar-dress .accessory-boots{font-size:.34em;bottom:.01em;left:50%;transform:translateX(-50%)}.avatar-dress .accessory-cape{font-size:.75em;left:.07em;bottom:.08em;transform:none;z-index:2}.avatar-dress .accessory-wizard{font-size:.38em;right:.07em;bottom:.23em;transform:rotate(-12deg)}.avatar-dress .accessory-rocket{font-size:.27em;right:.16em;bottom:.30em;transform:rotate(-12deg)}.avatar-dress .accessory-ocean{font-size:.20em;left:.20em;bottom:.26em}.avatar-dress .accessory-rainbow{font-size:1.15em;inset:50% auto auto 50%;transform:translate(-50%,-50%);z-index:1;opacity:.62}

/* Boss arena uses the real visual viewport and never creates a blank page tail */
html:has(.boss-mode){overflow:hidden;background:#020815}.boss-mode{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:100dvh!important;overflow:hidden!important;background:#020815!important}.boss-mode>.wrap,.boss-mode .prompt-card,.boss-mode #extra,.boss-mode .boss-stage{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;margin:0!important;border-radius:0!important}.boss-mode .boss-stage{background-position:center!important}.boss-mode .choice-grid{margin:0}.boss-mode .top{pointer-events:none}.boss-mode .top a,.boss-mode .top .hud{pointer-events:auto}

@media(max-width:700px){
 .story-nav{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px}.story-nav .brand{font-size:25px}.story-nav .home-stats{grid-column:2;display:flex;gap:6px}.story-nav .stat{padding:8px;min-width:64px;text-align:center}.story-nav .active-child{grid-column:1/-1;grid-row:2;min-width:0;width:100%;padding:7px 10px}.story-nav .active-child>b{display:block}.story-hero{min-height:calc(100dvh - 126px);padding:42px 24px 220px;background-position:62% center;align-items:flex-start}.story-copy{width:100%}.story-copy h1{font-size:clamp(38px,12vw,58px);line-height:.98;margin:14px 0}.story-copy p{font-size:16px;line-height:1.45}.story-copy strong{font-size:17px}.story-hero-character{font-size:210px;right:-12px;bottom:12px;opacity:1}.hero-arrives,.mystery-team{margin:24px 12px;border-radius:27px;padding:25px 18px}.hero-arrives h2{font-size:38px}.hero-burst{font-size:170px}.story-cta{padding:58px 18px}.start-adventure{width:100%;justify-content:center}.story-minis{margin:35px auto;padding:14px}.mystery-team h2{font-size:27px}.mystery-team .rescue-gallery{min-height:220px;padding-inline:0}.mystery-team .rescue-slot{width:20%;height:190px}.mystery-team .rescue-slot>span{height:160px}.mystery-team .rescue-slot small{font-size:0;padding:0;width:22px;height:22px}.mystery-team .rescue-slot small:after{content:"?";font-size:12px;display:grid;place-items:center;height:100%}.mystery-team .rescue-slot:not(.locked) small{display:none}
 body:has(.world-grid) .wrap{padding:12px}.map-home{font-size:14px!important;padding:9px 12px}body:has(.world-grid) .top{display:flex;flex-wrap:nowrap}body:has(.world-grid) .top .hud{margin-left:auto;display:flex;flex-wrap:nowrap}body:has(.world-grid) .top .stat{padding:8px;font-size:11px}body:has(.world-grid) .top .stat [data-avatar]{font-size:26px}body:has(.world-grid) .profile-actions{display:grid;grid-template-columns:auto 1fr;gap:8px}body:has(.world-grid) .profile-actions .btn{min-height:44px}body:has(.world-grid) .world-pill{min-width:0;overflow:hidden}body:has(.world-grid) .map-banner{margin-top:8px}body:has(.world-grid) .lang-switch{display:grid;grid-template-columns:1fr 1fr}body:has(.world-grid) .lang-switch button{min-width:0;width:100%;font-size:12px}.world-grid{gap:22px}.world-card{border-radius:25px}.world-card>.world-art:first-child{height:190px}.world-card>h3{margin-top:-22px}.world-card>div:last-child{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px!important}.world-card .map-go{width:50px!important;height:50px!important;font-size:16px}.world-card .map-go.boss-node{width:58px!important;height:58px!important}
 .responsive-two{display:block!important}.responsive-two>.prompt-card{margin-bottom:18px;padding:18px}.profile-strip{min-height:165px}.profile-card{min-width:155px!important}.profile-card .av{font-size:78px}.avatar-selector{grid-template-columns:repeat(2,minmax(0,1fr))}.avatar-option{min-height:150px}.avatar-option>span{font-size:88px;height:100px}.profile-actions .btn{flex:1;min-width:135px}.shop-grid{grid-template-columns:1fr 1fr}.shop-item{padding:12px}.shop-item-art{width:88px;height:88px}.shop-preview{font-size:70px;min-height:110px}.shop-item h3{font-size:15px}.shop-btn{font-size:13px;padding:10px 6px}
 .boss-mode .top{top:max(6px,env(safe-area-inset-top));left:7px;right:7px;height:44px;align-items:center}.boss-mode .top .brand{font-size:18px;padding:8px 10px}.boss-mode .top .hud{gap:5px;margin-left:auto}.boss-mode .top .stat{padding:7px 9px;font-size:11px}.boss-mode .world-pill{top:max(54px,calc(env(safe-area-inset-top) + 50px));font-size:11px;white-space:nowrap}.boss-mode #gameName{top:max(83px,calc(env(safe-area-inset-top) + 79px));font-size:10px}.boss-mode .small{top:max(102px,calc(env(safe-area-inset-top) + 98px));font-size:10px}.boss-mode .boss-enemy{right:-7vw;top:12vh;width:70vw;height:42vh}.boss-mode .boss-player{left:1vw;top:31vh;bottom:auto;font-size:36vw}.boss-mode .boss-friend{display:none}.boss-mode .big-prompt{top:48vh;bottom:auto;width:94vw;padding:10px 12px;font-size:19px;line-height:1.15}.boss-mode .boss-question{top:58vh;bottom:auto;width:92vw;text-align:center;font-size:16px;line-height:1.2}.boss-mode .feedback{top:auto;bottom:calc(150px + env(safe-area-inset-bottom));width:94vw;text-align:center;font-size:12px;line-height:1.15}.boss-mode .choice-grid{left:3vw;right:3vw;bottom:calc(8px + env(safe-area-inset-bottom));transform:none;width:94vw;grid-template-columns:1fr 1fr;gap:8px}.boss-mode .choice{min-height:62px;padding:8px;font-size:20px;border-radius:16px}.boss-mode .player-health{bottom:-7px;width:105px}.boss-mode .boss-enemy>b{font-size:10px}.boss-mode .boss-health{height:14px}.boss-mode .boss-stage:before{pointer-events:none}
}

/* Learning library and printable Worksheet Studio */
.mini-game.dictionary{background:#e8fbff}.mini-game.worksheet{background:#fff0dc}.mini-original-art{background:linear-gradient(135deg,#38bdf8,#6366f1)!important;position:relative}.mini-original-art:before{content:"A";font:1000 27px/1 sans-serif;color:#fff}.mini-original-art:after{content:")))";position:absolute;right:-8px;top:8px;color:#17263b;font:900 12px sans-serif}.mini-sheet-art{background:#fff!important;border:3px solid #f59e0b;position:relative}.mini-sheet-art:before{content:"";position:absolute;inset:12px 9px;background:repeating-linear-gradient(#7dd3fc 0 2px,transparent 2px 9px)}
.learning-page{background:radial-gradient(circle at top,#dff6ff,#f8f3ff 55%,#fff3dc);min-height:100vh}.learning-wrap{width:min(1160px,94vw);margin:auto;padding:26px 0 70px}.learning-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px}.learning-head h1{margin:6px 0;font-size:clamp(32px,6vw,64px)}.dictionary-tools{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.dictionary-tools button{border:0;border-radius:99px;padding:10px 16px;background:#fff;font-weight:900;cursor:pointer}.dictionary-tools .active{background:#5433a3;color:#fff}.word-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.word-card{border:0;background:#fff;border-radius:25px;padding:12px;box-shadow:0 12px 30px #28335816;cursor:pointer;display:flex;flex-direction:column;align-items:center}.word-card>span,.word-card svg{display:block;width:100%}.word-card b{font-size:22px;margin-top:7px}.word-card small{color:#6c7785}.word-card i{margin-top:8px;color:#6946aa;font-size:10px;font-weight:900;text-transform:uppercase}.listen-game{margin-top:35px;padding:30px;border-radius:32px;background:#17263b;color:#fff;display:grid;grid-template-columns:1fr auto;gap:18px}.sound-button{width:78px;height:78px;border-radius:50%;border:7px solid #ffffff55;background:#ffd44f;color:#39266a;font-size:27px}.listen-options{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.listen-options button{border:4px solid transparent;border-radius:20px;background:#fff;padding:7px}.listen-options svg{width:100%;display:block}.listen-game>p{grid-column:1/-1;min-height:22px;font-weight:900;color:#ffdf64}
.worksheet-page{background:#dce9f5;color:#17263b}.worksheet-toolbar{position:sticky;z-index:20;top:0;display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:12px 3vw;background:#17263bf2;color:#fff;box-shadow:0 8px 24px #0003}.worksheet-toolbar label{display:flex;flex-direction:column;gap:3px;font-size:10px;font-weight:900}.worksheet-toolbar select{padding:9px;border-radius:9px;border:0}.worksheet-toolbar .primary{background:#ffd34f}#sheets{padding:28px 0}.sheet{position:relative;box-sizing:border-box;width:210mm;min-height:297mm;margin:0 auto 28px;padding:13mm 14mm 11mm;background:#fff;box-shadow:0 18px 55px #1c31402b;overflow:hidden;page-break-after:always}.sheet-watermark{position:absolute;z-index:0;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-28deg);font:1000 64px/1 sans-serif;letter-spacing:.12em;color:#50319c0d;white-space:nowrap}.sheet>*:not(.sheet-watermark){position:relative;z-index:1}.sheet-brand{display:flex;align-items:center;justify-content:space-between;padding-bottom:8px;border-bottom:4px solid #5636a4}.sheet-brand strong{font-size:28px}.sheet-brand span{font-weight:800;color:#67558b}.sheet-brand b{background:#ffd44f;border-radius:99px;padding:7px 12px}.learner-lines{display:flex;justify-content:space-between;margin:10px 0;font-size:12px;font-weight:800}.sheet-hero{border-radius:18px;padding:15px 20px;background:linear-gradient(135deg,#5131a3,#2674b8);color:#fff}.sheet-hero span{font-size:9px;font-weight:1000;letter-spacing:.18em}.sheet-hero h1{margin:5px 0 2px;font-size:28px}.sheet-hero p{margin:0;font-size:12px}.sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:13px}.sheet-grid article{min-height:91mm;border:2px solid #d9d7e8;border-radius:17px;padding:13px}.sheet-grid h2{margin:0 0 9px;font-size:15px}.target-word{text-align:center;font-size:27px;font-weight:1000;margin:4px}.print-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.print-choice svg{width:100%}.print-choice i{display:block;width:18px;height:18px;border:2px solid #29364d;border-radius:50%;margin:4px auto}.trace-word{text-align:center;padding:16px 3px;border:2px dashed #94a3b8;color:#cbd5e1;font-size:34px;font-weight:1000;letter-spacing:.13em}.write-lines{height:95px;background:repeating-linear-gradient(transparent 0 29px,#8fa3bb 30px 31px)}.math-task{text-align:center;font-size:40px;font-weight:1000;margin:18px 0}.math-task span{display:inline-block;width:58px;border-bottom:3px solid}.count-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.count-dots i{width:18px;height:18px;border:3px solid #5636a4;border-radius:50%}.fact-row{display:grid;grid-template-columns:48% 1fr;align-items:center}.fact-row svg{width:100%}.fact-row p{font-size:16px;font-weight:800}.true-false{display:flex;justify-content:space-around;margin-top:15px;font-size:17px;font-weight:900}.sheet footer{display:flex;justify-content:space-between;align-items:center;margin-top:9px;color:#6b5e83}.sheet footer span{color:#f5b51b;font-size:20px}.sheet footer b{font-size:10px;letter-spacing:.08em}
@media(max-width:850px){.word-grid{grid-template-columns:1fr 1fr}.learning-head{gap:10px}.learning-head h1{font-size:31px}.listen-options{grid-template-columns:1fr 1fr}.worksheet-toolbar{position:relative}.sheet{width:96vw;min-height:135vw;padding:5vw}.sheet-grid{grid-template-columns:1fr}.sheet-grid article{min-height:0}.learner-lines{gap:8px;flex-wrap:wrap}}
@media print{.worksheet-toolbar{display:none!important}#sheets{padding:0}.worksheet-page{background:#fff}.sheet{width:210mm;height:297mm;min-height:297mm;margin:0;box-shadow:none;break-after:page;page-break-after:always}.sheet-grid article{min-height:91mm}@page{size:A4;margin:0}}
.more-learning{width:min(1120px,94vw);margin:-15px auto 70px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.more-learning a{min-height:105px;padding:22px;border-radius:24px;color:#17263b;background:linear-gradient(135deg,#e6f8ff,#f4edff);border:1px solid #d8d7e8;display:flex;flex-direction:column;justify-content:center}.more-learning b{font-size:18px}.more-learning small{margin-top:6px;color:#687487}.learning-question-art{width:min(330px,70vw);margin:5px auto 12px}.learning-question-art svg{display:block;width:100%;filter:drop-shadow(0 16px 20px #293d5622)}@media(max-width:700px){.more-learning{grid-template-columns:1fr;margin-bottom:90px}.learning-question-art{width:min(250px,68vw)}}

/* V5.21 stable relic effects: no floating wearable layers */
.avatar-accessory,.avatar-aura{display:none!important}.relic-field{position:absolute;z-index:1;inset:5%;border-radius:50%;pointer-events:none;opacity:.78;filter:blur(1px)}.relic-crown .relic-field{box-shadow:0 0 .22em .08em #ffd84d,0 -.28em .3em #fff3a4}.relic-cape .relic-field{background:conic-gradient(from 210deg,#e5284300 0 68%,#e52843aa 72% 86%,transparent 90%);transform:scale(1.08)}.relic-wizard .relic-field,.relic-hat .relic-field{box-shadow:0 0 .26em .08em #9c5cff}.relic-glasses .relic-field,.relic-headphones .relic-field{box-shadow:inset 0 0 .18em #3bd9ff}.relic-flower .relic-field{box-shadow:0 0 .25em .08em #ff78bd}.relic-rocket .relic-field{background:linear-gradient(115deg,transparent 55%,#58ddff66);filter:drop-shadow(.18em .12em .12em #277cff)}.relic-ocean .relic-field{box-shadow:0 .12em .2em .04em #34d3e8}.relic-rainbow .relic-field{background:conic-gradient(#ff5c7a55,#ffd54d55,#48da8b55,#45bfff55,#9b62ff55,#ff5c7a55);filter:blur(.08em)}.relic-bowtie .relic-field,.relic-medal .relic-field,.relic-boots .relic-field{box-shadow:0 .12em .2em #ffae42}.shop-preview .avatar-dress,.shop-avatar .avatar-dress{animation:none!important}

/* Exact group reveal: one image remains in place and locked columns illuminate */
.mystery-team .rescue-gallery{display:grid!important;grid-template-columns:repeat(5,1fr);padding:0!important;background:linear-gradient(180deg,#ddecff,#fff1cc)!important}.mystery-team .rescue-gallery:before{filter:none!important;opacity:1!important;inset:8px 1% 38px!important;transform:none!important}.mystery-team .rescue-slot{width:auto!important;margin:0!important;height:390px!important;background:#dbe3ecb8!important;backdrop-filter:grayscale(1) brightness(.38);transition:background .5s,backdrop-filter .5s}.mystery-team .rescue-slot:not(.locked){background:transparent!important;backdrop-filter:none}.mystery-team .rescue-slot.locked:before{content:"";position:absolute;inset:8% 12% 14%;border-radius:45%;box-shadow:0 0 25px 8px #fff9;animation:lockedShine 2.2s ease-in-out infinite alternate}.mystery-team .rescue-slot>span{display:none!important}.mystery-team .rescue-slot small{z-index:3;bottom:9px!important}.mystery-team .rescue-slot:not(.locked) small{display:block!important;font-size:11px!important;width:auto!important;height:auto!important;padding:7px 11px!important}.mystery-team .rescue-slot:not(.locked) small:after{display:none!important}@keyframes lockedShine{to{box-shadow:0 0 42px 15px #fff;opacity:.6}}

/* Compact battle level and visible hero health conditions */
.boss-mode .boss-player .power-rank{font-size:12px!important;width:auto!important;height:auto!important;min-width:30px!important;padding:6px 8px!important;right:-4px!important;bottom:12px!important;border-width:2px!important}.boss-mode .hero-tired .avatar-dress{filter:saturate(.78) brightness(.92)}.boss-mode .hero-hurt .avatar-dress{filter:saturate(.48) brightness(.8);transform:rotate(-4deg)}.boss-mode .hero-critical .avatar-dress{filter:grayscale(.38) brightness(.68);transform:rotate(-7deg) translateY(5%)}.boss-mode .hero-critical:after{content:"!";position:absolute;right:8%;top:5%;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#ff405c;color:#fff;font-weight:1000;animation:criticalPulse .4s infinite alternate}
@media(max-width:700px){.mystery-team .rescue-slot{height:255px!important}.boss-mode .boss-player .power-rank{font-size:9px!important;min-width:24px!important;padding:4px 6px!important;bottom:8px!important}}
.sound-toggle{border:1px solid #ffffff44;border-radius:14px;padding:8px 10px;background:#091326cc;color:#fff;font-size:11px;font-weight:900;cursor:pointer}.sound-toggle:before{content:"♪";display:inline-grid;place-items:center;width:20px;height:20px;margin-right:5px;border-radius:50%;background:#43d99b;color:#09251d}.sound-toggle.muted:before{content:"×";background:#ff6b75}.boss-mode .sound-toggle{backdrop-filter:blur(10px)}
@media(max-width:700px){body.boss-mode #choices .boss-attack-choice{display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;grid-template-rows:32px 18px!important;column-gap:9px!important;padding:7px 9px!important}.boss-attack-choice .attack-item{grid-column:1!important;grid-row:1/3!important;width:32px!important;height:32px!important;align-self:center!important}.boss-attack-choice .attack-item:before{inset:5px!important}.boss-attack-choice .attack-item:after{inset:10px!important}.boss-attack-choice strong{grid-column:2!important;grid-row:1!important;width:100%!important;text-align:center!important;font-size:22px!important;line-height:32px!important;position:relative!important;z-index:3!important}.boss-attack-choice small{grid-column:2!important;grid-row:2!important;width:100%!important;text-align:center!important;font-size:7px!important;line-height:16px!important;position:relative!important;z-index:3!important}}

/* Living Dictionary: ten original illustrated scenes, twenty hotspots each */
.scene-tabs{display:flex;gap:8px;overflow-x:auto;padding:10px 2px 16px;scrollbar-width:thin}.scene-tabs button{flex:0 0 auto;border:0;border-radius:99px;padding:11px 16px;background:#fff;color:#26364c;font-weight:900;box-shadow:0 5px 14px #293d5412}.scene-tabs button.active{background:#5634a4;color:#fff}.dictionary-scene{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px;align-items:stretch}.scene-picture{position:relative;aspect-ratio:1.29;border-radius:32px;background-image:url('assets/dictionary-scenes/home-hd.png');background-size:500% 200%;background-repeat:no-repeat;box-shadow:0 22px 55px #27364f26;overflow:hidden;border:5px solid #fff}.scene-0{background-position:0 0}.scene-1{background-position:25% 0}.scene-2{background-position:50% 0}.scene-3{background-position:75% 0}.scene-4{background-position:100% 0}.scene-5{background-position:0 100%}.scene-6{background-position:25% 100%}.scene-7{background-position:50% 100%}.scene-8{background-position:75% 100%}.scene-9{background-position:100% 100%}.scene-hotspot{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:34px;height:34px;border:3px solid #fff;border-radius:50%;background:#ffd43f;color:#2d2455;font-weight:1000;box-shadow:0 0 0 6px #ffd43f55,0 7px 18px #0005;cursor:pointer;animation:hotspotGlow 1.4s ease-in-out infinite alternate}.scene-hotspot:hover,.scene-hotspot:focus-visible{z-index:4;transform:translate(-50%,-50%) scale(1.22);background:#fff}.word-reveal{border-radius:30px;padding:25px;background:linear-gradient(160deg,#192a45,#553098);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:0 20px 45px #2636502b}.word-reveal small{color:#dcd5ff}.word-reveal b{font-size:36px;margin-top:18px}.word-reveal strong{font-size:18px;color:#ffd75d;margin:6px 0 20px}.word-reveal>div{display:grid;gap:8px;width:100%}.word-reveal button{border:0;border-radius:15px;padding:12px;background:#fff;color:#3b2a68;font-weight:1000}.word-reveal button#animalSound{background:#54dfa2;color:#123d2c}.word-reveal.pop{animation:wordPop .35s ease}.scene-help{text-align:center;font-weight:850;color:#627187}@keyframes hotspotGlow{to{box-shadow:0 0 0 10px #fff5,0 7px 20px #0005;filter:brightness(1.15)}}@keyframes wordPop{50%{transform:scale(1.025)}}@media(max-width:800px){.dictionary-scene{grid-template-columns:1fr}.scene-picture{border-radius:24px}.word-reveal{padding:18px;min-height:180px}.word-reveal b{font-size:30px;margin-top:8px}.scene-hotspot{width:28px;height:28px;font-size:11px}}
.worksheet-status{max-width:900px;margin:16px auto 0;padding:10px 16px;color:#33465e;text-align:center;font-weight:800}
.buddy-scene{min-height:330px;background:linear-gradient(#17355055,#0b1528aa),url('assets/characters/arena-jungle.png') center/cover!important}.buddy-character{left:7%!important;bottom:58px!important;width:180px;height:210px;font-size:0!important;z-index:3}.buddy-character>.character-sprite{width:100%;height:100%;animation:buddyNervous .7s ease-in-out infinite alternate}.buddy-monster{position:absolute;right:5%;bottom:48px;width:300px;height:255px;transform:translateX(calc((5 - var(--danger))*9%));transition:transform .45s;filter:drop-shadow(0 18px 18px #0008)}.buddy-monster>.character-sprite{width:100%;height:100%;animation:bossThreat 1.2s ease-in-out infinite}.buddy-shelter{position:absolute;left:3%;bottom:36px;width:210px;height:180px;border-radius:55% 55% 10% 10%;background:linear-gradient(135deg,#5d4128,#21160f);clip-path:polygon(5% 45%,50% 5%,95% 45%,88% 100%,12% 100%)}.buddy-shelter:after{content:"";position:absolute;left:38%;bottom:0;width:25%;height:46%;border-radius:50% 50% 0 0;background:#080b12}.buddy-bridge{z-index:5}.buddy-step{height:18px;border-radius:99px;background:#253247!important;border:2px solid #fff5}.buddy-step.safe{background:#49d691!important;box-shadow:0 0 12px #49d691}.buddy-step.lost{background:#ff5969!important}.buddy-status{font-size:20px;color:#c83752}@media(max-width:700px){.buddy-scene{min-height:260px}.buddy-character{width:120px;height:145px}.buddy-monster{width:210px;height:190px;right:-4%}.buddy-shelter{width:145px;height:125px}.buddy-status{font-size:16px}}

/* V5.21 phone/tablet app shell and illustrated mini-game thumbnails */
.hero-burst{position:relative;min-height:290px;overflow:hidden;background:radial-gradient(circle at 50% 50%,#fff9b8 0 8%,#ff896d 25%,#7655c8 49%,#50d7df 67%,transparent 68%)}.hero-burst [data-avatar]{display:none}.hero-burst:before{content:"";position:absolute;inset:9%;border-radius:50%;background:conic-gradient(from 0deg,#fff0 0 8%,#fff9 9% 11%,#fff0 12% 22%,#fff8 23% 25%,#fff0 26%);animation:worldSpin 12s linear infinite}.hero-burst:after{content:"TODDSPLAY";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:1000 clamp(22px,4vw,42px)/1 sans-serif;letter-spacing:.13em;text-shadow:0 5px 18px #351a68}
.mini-game>span:first-child{font-size:0!important;background-image:url('assets/dictionary-scenes/home-hd.png')!important;background-size:500% 200%!important;background-repeat:no-repeat!important}.mini-game:nth-child(1)>span{background-position:25% 0!important}.mini-game:nth-child(2)>span{background-position:50% 0!important}.mini-game:nth-child(3)>span{background-position:0 0!important}.mini-game:nth-child(4)>span{background-position:75% 0!important}.mini-game:nth-child(5)>span{background-position:100% 0!important}.mini-game:nth-child(6)>span{background-position:0 100%!important}.mini-game:nth-child(7)>span{background-position:75% 100%!important}.mini-game:nth-child(8)>span{background-position:50% 0!important}
@media(max-width:900px){html,body{max-width:100%;overflow-x:hidden}.story-nav{position:sticky;top:0;z-index:100;background:#07172cf2;backdrop-filter:blur(14px);padding-top:max(10px,env(safe-area-inset-top))}.story-nav .brand{font-size:24px}.story-nav .active-child{min-height:62px}.story-nav .active-child [data-avatar]{width:44px;height:44px}.story-nav .home-stats .stat{min-width:72px;padding:9px;font-size:12px}.story-hero{min-height:calc(100dvh - 118px);padding-top:45px}.story-hero-character .power-rank{font-size:.16em!important;min-width:1.45em!important;height:1.45em!important}.hero-arrives{grid-template-columns:1fr!important}.hero-burst{min-height:210px}.mini-game-grid{grid-template-columns:1fr 1fr}.mini-game{min-height:118px;grid-template-columns:66px 1fr 18px}.mini-game>span:first-child{width:66px;height:66px;border-radius:18px}.mini-game b{font-size:13px}.mini-game small{font-size:10px}}
@media(max-width:700px){body:has(.world-grid){padding-bottom:calc(78px + env(safe-area-inset-bottom))}body:has(.world-grid) .wrap{padding:8px 12px}body:has(.world-grid) .top{position:sticky;top:0;z-index:80;display:grid!important;grid-template-columns:auto 1fr!important;padding:8px 0;background:#233e65f2;backdrop-filter:blur(13px)}body:has(.world-grid) .top .brand{grid-column:1;font-size:14px!important}body:has(.world-grid) .top .hud{grid-column:2!important;width:auto!important;justify-self:end}body:has(.world-grid) .top .hud .stat:last-child{display:none}body:has(.world-grid) .profile-actions{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;margin-top:7px}body:has(.world-grid) .profile-actions .btn{min-height:46px;padding:8px;font-size:14px}body:has(.world-grid) .world-pill{min-height:46px;display:flex;align-items:center;justify-content:flex-start;padding:6px 10px}body:has(.world-grid) .map-banner{margin:8px 0 6px;border-radius:14px}body:has(.world-grid) .lang-switch{margin:7px 0 14px}.world-card>div:last-child:before{display:none!important}.world-card>div:last-child{border:0!important;box-shadow:none!important;min-height:0!important}.world-card .map-go{width:52px!important;height:52px!important}.world-card{border-radius:24px!important}.floating-shop{right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important}.mini-game-grid{grid-template-columns:1fr}.story-copy h1{font-size:clamp(38px,12vw,54px)}}
@media(min-width:701px) and (max-width:1100px){.world-grid{max-width:850px}.world-card>div:last-child{grid-template-columns:repeat(4,1fr)!important}.dictionary-scene{grid-template-columns:1fr 230px}.story-nav{max-width:100%}}
.cinematic-story{max-width:1120px;margin:55px auto;padding:clamp(24px,5vw,58px);border-radius:42px;background:linear-gradient(145deg,#111f3b,#3e2375);color:#fff}.cinematic-story-head{text-align:center}.cinematic-story-head h2{font-size:clamp(34px,5vw,58px);margin:12px}.story-audio{border:0;border-radius:99px;padding:15px 24px;background:#ffd451;color:#33215f;font-weight:1000;box-shadow:0 7px 0 #c58d26}.story-audio:before{content:"♪";margin-right:8px}.story-chapters{display:grid;gap:14px;margin-top:36px}.story-chapters article{display:grid;grid-template-columns:70px 1fr;gap:18px;align-items:start;padding:22px;border-radius:25px;background:#ffffff0e;border:1px solid #ffffff1f;transition:.3s}.story-chapters article>i{font-style:normal;font-size:30px;font-weight:1000;color:#ffd451}.story-chapters h3{font-size:24px;margin:0 0 7px}.story-chapters p{margin:0;color:#e6e7ff;line-height:1.65}.story-chapters article.speaking{background:#ffffff20;border-color:#ffd451;box-shadow:0 0 35px #ffd45130;transform:scale(1.015)}@media(max-width:700px){.cinematic-story{margin:24px 12px;border-radius:28px}.story-chapters article{grid-template-columns:42px 1fr;padding:17px}.story-chapters article>i{font-size:20px}.story-chapters h3{font-size:19px}.story-chapters p{font-size:14px}.cinematic-story-head h2{font-size:32px}}
.story-home .story-nav .active-child{display:none!important}.story-home .story-nav{display:flex!important;align-items:center;justify-content:space-between}.story-home .story-nav .home-stats{margin-left:auto}.story-play{border:0;border-radius:99px;padding:15px 24px;background:#fff;color:#33215f;font-weight:1000;margin-right:8px}.crawl-window{height:min(62vh,580px);margin:35px auto;overflow:hidden;perspective:420px;background:radial-gradient(circle at 50% 85%,#54339b55,transparent 35%),linear-gradient(#030816,#101333);border:2px solid #ffffff25;border-radius:30px}.story-crawl{width:min(720px,84%);margin:auto;padding:70vh 20px 35vh;text-align:center;color:#ffd95f;transform-origin:50% 100%;transform:rotateX(18deg)}.story-crawl.running{animation:storyCrawl 38s linear forwards}.story-crawl h3{font-size:clamp(25px,4vw,43px);margin:55px 0 10px}.story-crawl p{font-size:clamp(17px,2.2vw,25px);font-weight:800;line-height:1.6}.story-crawl strong{display:block;font-size:clamp(30px,5vw,60px);margin-top:85px}@keyframes storyCrawl{from{transform:rotateX(18deg) translateY(0)}to{transform:rotateX(18deg) translateY(-82%)}}.hero-picker{margin-top:40px;text-align:center}.hero-picker h3{font-size:28px}.hero-picker>div{display:grid;grid-template-columns:repeat(8,1fr);gap:10px}.hero-picker button{border:2px solid #ffffff22;border-radius:20px;padding:8px;background:#ffffff10;color:#fff}.hero-picker button.selected{border-color:#ffd451;background:#ffffff24;box-shadow:0 0 24px #ffd45166}.hero-picker button span,.hero-picker button .character-sprite{display:block;width:100%;height:85px}.hero-picker button b{font-size:11px}@media(max-width:700px){.story-home .story-nav{display:grid!important;grid-template-columns:1fr auto!important}.story-home .story-nav .home-stats{grid-column:2!important}.crawl-window{height:52vh}.story-crawl{padding-top:58vh}.hero-picker>div{grid-template-columns:repeat(4,1fr)}.hero-picker button span,.hero-picker button .character-sprite{height:72px}.story-play,.story-audio{padding:12px 15px}}
@media(max-width:390px){.story-copy h1{font-size:38px}.story-hero{padding-bottom:190px}.story-hero-character{font-size:180px}.boss-mode .boss-enemy{height:38vh}.boss-mode .boss-player{top:33vh}.boss-mode .big-prompt{top:49vh}.boss-mode .boss-question{top:58vh}.boss-mode .choice{min-height:56px}}
@media(max-height:650px) and (orientation:landscape){.boss-mode .boss-enemy{top:8vh;height:58vh;width:46vw}.boss-mode .boss-player{top:34vh;bottom:auto;font-size:22vw}.boss-mode .big-prompt{top:auto;bottom:100px;width:56vw;font-size:18px}.boss-mode .boss-question{top:auto;bottom:72px}.boss-mode .feedback{bottom:52px}.boss-mode .choice-grid{width:40vw;left:auto;right:14px;bottom:12px;transform:none}.boss-mode .choice{min-height:48px;font-size:16px}}
.avatar-dress .accessory-crown{top:.18em}.avatar-dress .accessory-hat{top:.15em}.avatar-dress .accessory-glasses{top:.25em}.avatar-dress .accessory-flower{top:.18em;right:.22em}.avatar-dress .accessory-headphones{top:.21em}.shop-avatar .avatar-dress{font-size:150px}.shop-preview{font-size:112px;min-height:165px}
@media(max-width:700px){.boss-mode .boss-player{left:-3vw;top:28vh;font-size:48vw}.shop-preview{font-size:96px;min-height:145px}.shop-item-art{width:96px;height:96px}}

/* V5.21 direct hero selection */
.choose-hero-top{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:999px;background:linear-gradient(135deg,#ffd451,#ff9d45);color:#2f2054;font-weight:1000;box-shadow:0 6px 0 #a96825,0 12px 24px #0004;transition:transform .2s,box-shadow .2s}
.choose-hero-top:before{content:"";width:25px;height:25px;margin-right:8px;border-radius:50%;background:url('assets/characters/avatar-individual-v38-00.png') center/contain no-repeat;box-shadow:0 0 0 2px #fff}
.choose-hero-top:hover,.choose-hero-top:focus-visible{transform:translateY(-3px);box-shadow:0 9px 0 #a96825,0 16px 28px #0005}
.hero-picker{scroll-margin-top:95px}
.choose-hero-map:before{content:"";width:24px;height:24px;border-radius:50%;background:url('assets/characters/avatar-individual-v38-00.png') center/contain no-repeat;box-shadow:0 0 0 2px #fff}
@media(max-width:700px){.story-home .story-nav{grid-template-columns:1fr auto auto!important}.story-home .story-nav .choose-hero-top{grid-column:2;padding:9px 12px;font-size:12px;box-shadow:0 4px 0 #a96825}.story-home .story-nav .home-stats{grid-column:3!important}.story-home .story-nav .home-stats .stat:first-child{display:none}.choose-hero-top:before{width:22px;height:22px}.hero-picker{scroll-margin-top:82px}}

/* V5.18 precise outfit anchors, visible labels and combat answer weapons */
.floating-shop{display:flex!important;align-items:center;justify-content:center;gap:10px;min-width:132px;color:#17263b!important;background:#fff!important}.floating-shop span{display:inline!important;visibility:visible!important;opacity:1!important;color:#17263b!important;white-space:nowrap}.lang-switch button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.avatar-dress{--head-y:.33em;--face-y:.38em;--neck-y:.34em;--feet-y:.09em}.avatar-alya{--head-y:.31em;--face-y:.38em}.avatar-aiman{--head-y:.35em;--face-y:.40em}.avatar-mei{--head-y:.30em;--face-y:.38em}.avatar-arjun{--head-y:.33em;--face-y:.40em}.avatar-jantan{--head-y:.29em;--face-y:.38em}.avatar-liana{--head-y:.30em;--face-y:.39em}.avatar-sara{--head-y:.32em;--face-y:.39em}.avatar-hafiz{--head-y:.34em;--face-y:.40em}.avatar-kavya{--head-y:.32em;--face-y:.39em}.avatar-bani{--head-y:.34em;--face-y:.41em}.avatar-nur{--head-y:.30em;--face-y:.38em}.avatar-wei{--head-y:.33em;--face-y:.40em}.avatar-dayang{--head-y:.31em;--face-y:.39em}.avatar-rajesh{--head-y:.35em;--face-y:.41em}.avatar-hana{--head-y:.31em;--face-y:.39em}.avatar-danial{--head-y:.34em;--face-y:.40em}.avatar-dress .accessory-crown{top:var(--head-y);font-size:.34em}.avatar-dress .accessory-hat{top:calc(var(--head-y) - .03em);font-size:.42em}.avatar-dress .accessory-glasses{top:var(--face-y);font-size:.31em}.avatar-dress .accessory-headphones{top:calc(var(--face-y) - .04em);font-size:.42em}.avatar-dress .accessory-flower{top:var(--head-y);right:.24em;font-size:.22em}.avatar-dress .accessory-cape{font-size:.62em;left:.21em;bottom:.20em;transform:none}.avatar-dress .accessory-bowtie{font-size:.17em;bottom:var(--neck-y)}.avatar-dress .accessory-medal{font-size:.20em;bottom:.25em}.avatar-dress .accessory-boots{font-size:.28em;bottom:var(--feet-y)}.avatar-dress .accessory-wizard{font-size:.30em;right:.17em;bottom:.28em}.avatar-dress .accessory-rocket{font-size:.23em;right:.20em;bottom:.30em}.avatar-dress .accessory-ocean{font-size:.17em;left:.22em;bottom:.28em}.avatar-accessory .character-sprite,.avatar-aura .character-sprite{background-size:contain!important;background-position:center!important}
body.boss-mode #choices.choice-grid{position:fixed!important;z-index:60!important;top:auto!important;left:50%!important;right:auto!important;bottom:18px!important;transform:translateX(-50%)!important;width:min(900px,94vw)!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0!important;padding:0!important}.boss-attack-choice{position:relative!important;min-height:96px!important;padding:8px 10px!important;display:grid!important;grid-template-columns:54px 1fr!important;grid-template-rows:1fr auto!important;align-items:center!important;text-align:left!important;overflow:hidden;background:linear-gradient(145deg,#ffffff,#edf5ff)!important;border:2px solid #fff!important;box-shadow:0 8px 0 #10192dcc,0 15px 30px #0005!important}.boss-attack-choice .attack-item{grid-row:1/3;width:52px;height:52px;display:grid;place-items:center;position:relative;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0 8%,#72f0a0 12% 30%,#167d4a 64%,#063b24 100%);box-shadow:0 0 18px #72f0a0}.boss-attack-choice .attack-item:before,.boss-attack-choice .attack-item:after{content:"";position:absolute;inset:8px;border:3px solid #fff8;border-radius:42% 58% 50% 50%;transform:rotate(35deg)}.boss-attack-choice .attack-item:after{inset:16px;background:#fff;border:0;clip-path:polygon(50% 0,62% 36%,100% 50%,62% 64%,50% 100%,38% 64%,0 50%,38% 36%)}.boss-attack-choice strong{font-size:30px;line-height:1;color:#14233a}.boss-attack-choice small{font-size:9px;font-weight:1000;letter-spacing:.06em;color:#657387}.attack-world-1 .attack-item{background:radial-gradient(circle,#fff,#b681ff 25%,#4f218f 68%);box-shadow:0 0 18px #b681ff}.attack-world-2 .attack-item{background:radial-gradient(circle,#fff,#62e8ff 20%,#3157d9 65%,#101c63);box-shadow:0 0 18px #62e8ff}.attack-world-3 .attack-item{background:radial-gradient(circle at 35% 30%,#fff,#64e5ed 24%,#177e9e 64%);box-shadow:0 0 18px #64e5ed}.attack-world-4 .attack-item{background:conic-gradient(#ff4d6d,#ffd84d,#4ade80,#38bdf8,#8b5cf6,#ff4d6d);box-shadow:0 0 18px #fff}.boss-attack-choice:hover,.boss-attack-choice:focus-visible{transform:translateY(-7px)!important;box-shadow:0 15px 0 #10192dcc,0 22px 38px #0006!important}.answer-projectile{position:fixed!important;z-index:100!important;left:20%!important;bottom:90px!important;width:70px!important;height:70px!important;pointer-events:none}.answer-projectile.hit{animation:projectileHit .85s cubic-bezier(.2,.8,.2,1) forwards}.answer-projectile.miss{animation:projectileMiss .85s ease forwards}.boss-condition{margin-top:7px;padding:5px 10px;border-radius:99px;background:#0a1324dd;color:#fff;font-size:9px;font-weight:1000;letter-spacing:.12em}.condition-alert{color:#ffd058;animation:conditionPulse .65s infinite alternate}.condition-weak{color:#ff946b}.condition-critical{color:#ff5d70;animation:criticalPulse .3s infinite alternate}.boss-phase-alert .sprite-boss{filter:saturate(1.3) drop-shadow(0 0 25px #ffb23f)!important}.boss-phase-weak .sprite-boss{animation-duration:4.6s!important;filter:saturate(.75) brightness(.9)!important;transform-origin:50% 100%!important}.boss-phase-critical .sprite-boss{animation:bossCritical .55s ease-in-out infinite alternate!important;filter:saturate(.5) drop-shadow(0 0 30px #ff405c)!important}.boss-phase-critical .boss-enemy:after{content:"";position:absolute;inset:10% 12% 18%;background:repeating-linear-gradient(125deg,transparent 0 32px,#fff8 33px 35px,transparent 36px 55px);mix-blend-mode:overlay;clip-path:polygon(20% 0,80% 0,100% 80%,50% 100%,0 80%);opacity:.35;pointer-events:none}@keyframes projectileHit{0%{transform:translate(0,0) scale(.7) rotate(0);opacity:1}65%{transform:translate(55vw,-45vh) scale(1.5) rotate(540deg);opacity:1}100%{transform:translate(60vw,-43vh) scale(3);opacity:0}}@keyframes projectileMiss{to{transform:translate(45vw,-70vh) scale(.5) rotate(420deg);opacity:0}}@keyframes conditionPulse{to{transform:scale(1.06);box-shadow:0 0 18px #ffb23f}}@keyframes criticalPulse{to{box-shadow:0 0 22px #ff405c;background:#46101c}}@keyframes bossCritical{from{transform:translateY(2%) rotate(-1deg)}to{transform:translateY(-1%) rotate(1deg) scale(.985)}}
@media(max-width:700px){body.boss-mode #choices.choice-grid{left:3vw!important;right:3vw!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;transform:none!important;width:94vw!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.boss-attack-choice{min-height:72px!important;grid-template-columns:42px 1fr!important;padding:6px 8px!important}.boss-attack-choice .attack-item{width:40px;height:40px}.boss-attack-choice strong{font-size:23px}.boss-attack-choice small{font-size:8px}.answer-projectile{left:8%!important;bottom:85px!important;width:52px!important;height:52px!important}.boss-condition{font-size:7px}}

/* V5.19 unified outfits, real flags, joined rescue portrait and mobile combat polish */
.flag{position:relative;display:inline-block;width:28px;height:18px;flex:0 0 28px;border-radius:3px;overflow:hidden;box-shadow:0 0 0 1px #13233b2b}.flag-gb{background:#173b7a}.flag-gb:before{content:"";position:absolute;inset:-6px;background:linear-gradient(27deg,transparent 43%,#fff 44% 49%,#d5243f 50% 53%,#fff 54% 59%,transparent 60%),linear-gradient(-27deg,transparent 43%,#fff 44% 49%,#d5243f 50% 53%,#fff 54% 59%,transparent 60%)}.flag-gb:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 40%,#fff 40% 60%,transparent 60%),linear-gradient(transparent 34%,#fff 34% 66%,transparent 66%),linear-gradient(90deg,transparent 45%,#d5243f 45% 55%,transparent 55%),linear-gradient(transparent 42%,#d5243f 42% 58%,transparent 58%)}.flag-my{background:repeating-linear-gradient(#d9233f 0 2px,#fff 2px 4px)}.flag-my:before{content:"";position:absolute;left:0;top:0;width:52%;height:58%;background:#173b7a}.flag-my:after{content:"☾";position:absolute;left:3px;top:-4px;color:#ffd53d;font:900 14px/16px Georgia,serif;transform:rotate(-18deg)}

.avatar-dress{animation:outfitAlive 2.4s ease-in-out infinite;transform-origin:50% 88%}.avatar-base>.character-sprite,.avatar-accessory .character-sprite,.avatar-aura .character-sprite{animation:none!important;transform:none!important}.avatar-dress .accessory-cape{font-size:.54em;left:.40em;bottom:.40em;transform:none;z-index:2}.boss-mode .player-hit .character-sprite,.boss-mode .player-strike .character-sprite{animation:none!important}.boss-mode .player-hit .avatar-dress{animation:outfitHurt .8s ease!important}.boss-mode .player-strike .avatar-dress{animation:outfitStrike .8s cubic-bezier(.2,.8,.2,1)!important}@keyframes outfitAlive{0%,100%{transform:translateY(0) rotate(-.7deg)}50%{transform:translateY(-3%) rotate(.7deg)}}@keyframes outfitStrike{40%{transform:translate(120%,-22%) rotate(8deg) scale(1.14);filter:brightness(1.45)}100%{transform:none}}@keyframes outfitHurt{25%{transform:translateX(-20%) rotate(-10deg) scale(.84)}55%{opacity:.45;filter:grayscale(1)}100%{transform:none;opacity:1}}

.mystery-team .rescue-gallery{position:relative;min-height:420px;background:radial-gradient(ellipse at 50% 100%,#7454bb55,transparent 56%),linear-gradient(180deg,#ddecff,#fef0cc)}.mystery-team .rescue-gallery:before{content:"";position:absolute;inset:12px 2% 34px;background:url('assets/characters/pet-individual-v38-00.png') center bottom/contain no-repeat;filter:brightness(0) opacity(.22);transform:scale(1.08);transform-origin:center bottom}.mystery-team .rescue-slot{z-index:1;height:360px}.mystery-team .rescue-slot.locked>span{display:none}.mystery-team .rescue-slot:not(.locked)>span{height:285px}

.boss-mode .big-prompt{pointer-events:none;animation:bossIntroDismiss 1.65s ease forwards}.boss-mode .choice{box-sizing:border-box;width:100%;height:96px;min-width:0}.boss-attack-choice{height:96px!important}.boss-attack-choice strong,.boss-attack-choice small{overflow:hidden;text-overflow:ellipsis}.boss-attack-choice small{white-space:normal;line-height:1.05}@keyframes bossIntroDismiss{0%,55%{opacity:1}99%{opacity:0;visibility:visible}100%{opacity:0;visibility:hidden}}

.rescue-reveal-mode .top,.rescue-reveal-mode .world-pill,.rescue-reveal-mode #gameName,.rescue-reveal-mode .small,.rescue-reveal-mode .big-prompt,.rescue-reveal-mode .feedback,.rescue-reveal-mode #choices{display:none!important}.rescue-celebration{position:fixed;z-index:200;inset:0;display:flex!important;justify-content:center;align-items:center;gap:8px;padding:28px;text-align:center;background:radial-gradient(circle at 50% 42%,#fff8c8 0 16%,#f5c84cdd 34%,#49258ff2 72%),linear-gradient(135deg,#271450,#102f64);overflow:hidden}.rescue-celebration .rescue-light{position:absolute;width:min(92vw,700px);aspect-ratio:1;border-radius:50%;background:repeating-conic-gradient(#fff0 0 8deg,#fff8 9deg 12deg);animation:rescueRays 16s linear infinite}.rescue-celebration>span{position:relative;width:min(78vw,480px);height:min(52vh,480px);font-size:0;filter:drop-shadow(0 30px 22px #1b0c3d66)}.rescue-celebration>span .character-sprite{width:100%;height:100%;animation:rescueHero 1.5s ease-in-out infinite alternate}.rescue-celebration>small,.rescue-celebration>b,.rescue-celebration>p,.rescue-continue{position:relative;z-index:2}.rescue-celebration>small{font-weight:1000;letter-spacing:.22em;color:#fff6a8}.rescue-celebration>b{font-size:clamp(32px,7vw,64px);color:#fff}.rescue-celebration>p{max-width:560px;margin:0;color:#fff;font-weight:800}.rescue-continue{margin-top:12px;border:0;border-radius:99px;padding:17px 28px;background:#fff;color:#3d2574;font-size:18px;font-weight:1000;box-shadow:0 8px 0 #d49f30;cursor:pointer}@keyframes rescueRays{to{transform:rotate(360deg)}}@keyframes rescueHero{to{transform:translateY(-4%) scale(1.04)}}

@media(max-width:700px){
 .mystery-team .rescue-gallery{min-height:270px}.mystery-team .rescue-gallery:before{inset:8px -8% 30px;transform:scale(1.12)}.mystery-team .rescue-slot{height:235px}.mystery-team .rescue-slot:not(.locked)>span{height:185px}
 body:has(.world-grid) .top{display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:center}body:has(.world-grid) .top .brand{grid-column:1}body:has(.world-grid) .top .hud{grid-column:2/4;justify-self:end}body:has(.world-grid) .profile-actions{grid-template-columns:120px minmax(0,1fr)}body:has(.world-grid) .map-banner{padding:10px 12px;font-size:15px}body:has(.world-grid) .lang-switch{gap:8px;margin:12px 0}.world-card{min-height:0!important;padding-bottom:20px}.world-card>.world-art:first-child{height:215px}.world-card>h3{font-size:24px;margin-bottom:8px}.world-card>.small{margin:10px 0}.world-card>div:last-child{background:transparent!important;padding:12px 2px!important;grid-template-columns:repeat(4,1fr)!important}.world-card .map-go{justify-self:center}
 .boss-mode .big-prompt{top:46vh!important;width:92vw!important;animation-duration:1.35s}.boss-mode .boss-question{top:auto!important;bottom:calc(178px + env(safe-area-inset-bottom))!important;width:92vw!important;padding:6px 10px;border-radius:12px;background:#071326c9;font-size:14px!important}.boss-mode .feedback{bottom:calc(154px + env(safe-area-inset-bottom))!important;min-height:16px}.boss-mode .boss-enemy{top:12vh!important;height:39vh!important}.boss-mode .boss-player{top:29vh!important;font-size:43vw!important}.boss-mode .choice,.boss-attack-choice{height:68px!important;min-height:68px!important;max-height:68px!important}.boss-attack-choice{grid-template-columns:40px minmax(0,1fr)!important;grid-template-rows:32px 20px!important}.boss-attack-choice strong{font-size:22px!important}.boss-attack-choice small{font-size:7px!important}.rescue-celebration{padding:18px}.rescue-celebration>span{width:78vw;height:42vh}.rescue-celebration>p{font-size:14px}.rescue-continue{width:min(88vw,360px)}
}


.mini-game>span:first-child{background-image:url('assets/icons/count-tap.png')!important;background-size:400% 300%!important;background-repeat:no-repeat!important;font-size:0!important}.mini-game:nth-child(1)>span:first-child{background-position:0 0!important}.mini-game:nth-child(2)>span:first-child{background-position:33.333% 0!important}.mini-game:nth-child(3)>span:first-child{background-position:66.666% 0!important}.mini-game:nth-child(4)>span:first-child{background-position:100% 0!important}.mini-game:nth-child(5)>span:first-child{background-position:0 50%!important}.mini-game:nth-child(6)>span:first-child{background-position:33.333% 50%!important}.mini-game:nth-child(7)>span:first-child{background-position:66.666% 50%!important}.mini-game:nth-child(8)>span:first-child{background-position:100% 50%!important}.more-learning a:before{content:"";width:70px;height:70px;border-radius:20px;margin-bottom:10px;background-image:url('assets/icons/count-tap.png')!important;background-size:400% 300%!important;background-repeat:no-repeat!important}.more-learning a:nth-child(1):before{background-position:0 100%!important}.more-learning a:nth-child(2):before{background-position:33.333% 100%!important}.more-learning a:nth-child(3):before{background-position:66.666% 100%!important}
.scene-hotspot{width:50px!important;height:50px!important;background:#fff1!important;border:3px solid #fff!important;box-shadow:0 0 0 7px #ffd43f66,0 0 25px 10px #fff8!important}.scene-hotspot span{font-size:0!important}.scene-hotspot span:after{content:"";display:block;width:12px;height:12px;border-radius:50%;background:#ffd43f;box-shadow:0 0 12px #fff}.scene-hotspot:hover,.scene-hotspot:focus-visible{background:#ffd43f55!important}
.story-hero-character{right:4%!important;max-width:44vw!important}.story-hero-character .avatar-base,.story-hero-character .character-sprite{background-size:contain!important;background-position:center bottom!important}.story-hero-character .power-rank{font-size:15px!important;min-width:34px!important;width:34px!important;height:34px!important;border-width:3px!important;right:2%!important;bottom:7%!important}.story-tools{display:flex;gap:10px;justify-content:center;align-items:center;margin-top:15px}.story-lang{display:inline-flex;padding:4px;border-radius:99px;background:#ffffff18}.story-lang button,.story-music{border:0;border-radius:99px;padding:10px 15px;background:transparent;color:#fff;font-weight:1000}.story-lang button.active{background:#fff;color:#342263}.story-music{background:#59d69a;color:#143c2c}
.mystery-team .rescue-gallery{width:min(100%,900px)!important;aspect-ratio:1.65!important;min-height:0!important;margin:auto!important;display:grid!important;grid-template-columns:repeat(5,1fr)!important;position:relative!important;overflow:hidden!important;background:linear-gradient(180deg,#ddecff,#fff0ce)!important;border-radius:30px!important}.mystery-team .rescue-gallery:before{content:""!important;position:absolute!important;inset:3% 2% 12%!important;background:url('assets/characters/pet-individual-v38-00.png') center bottom/100% 100% no-repeat!important;filter:none!important;opacity:1!important;transform:none!important}.mystery-team .rescue-slot{z-index:2!important;width:auto!important;height:auto!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;backdrop-filter:none!important}.mystery-team .rescue-slot.locked{background:#aeb9c5ad!important;backdrop-filter:grayscale(1) brightness(.65)!important}.mystery-team .rescue-slot.locked:before{display:none!important}.mystery-team .rescue-slot>span{display:none!important}.mystery-team .rescue-slot small{position:absolute!important;bottom:7px!important;left:4%!important;transform:none!important;width:92%!important;min-height:34px!important;display:grid!important;place-items:center!important;padding:4px!important;border-radius:12px!important;font-size:9px!important;white-space:normal!important;line-height:1.1!important}.mystery-team .rescue-slot.locked small{font-size:0!important}.mystery-team .rescue-slot.locked small:after{content:"?"!important;font-size:15px!important}
.unlock-card.rescue-locked{background:#d8dde7!important;color:#6d7480!important}.unlock-card.rescue-locked .unlock-art{filter:grayscale(1) brightness(.45)!important}.unlock-card.rescue-locked button{background:#808897!important}.sprite-buddy{background-repeat:no-repeat!important}.boss-mode .top .hud,.boss-mode .top [data-stars]{display:none!important}
@media(max-width:700px){.story-hero-character{right:0!important;bottom:3%!important;max-width:58vw!important;font-size:160px!important}.story-hero-character .power-rank{font-size:11px!important;width:27px!important;height:27px!important;min-width:27px!important}.story-copy{max-width:62%!important}.story-copy h1{font-size:clamp(30px,9vw,44px)!important}.story-tools{flex-wrap:wrap}.mystery-team .rescue-gallery{aspect-ratio:1.42!important}.mystery-team .rescue-slot{height:auto!important}.mystery-team .rescue-slot small{font-size:6px!important;min-height:29px!important;padding:2px!important}body:has(.world-grid) .profile-actions{grid-template-columns:1fr!important}body:has(.world-grid) .world-pill{display:none!important}body:has(.world-grid) .top{grid-template-columns:auto auto!important;justify-content:space-between!important}.scene-hotspot{width:42px!important;height:42px!important}.more-learning a:before{width:62px;height:62px}}


@media print{.worksheet-toolbar,.worksheet-status{display:none!important}#sheets{padding:0!important}.sheet{width:210mm!important;height:297mm!important;min-height:297mm!important;margin:0!important;padding:9mm 10mm 7mm!important;overflow:hidden!important;break-after:page!important;page-break-after:always!important;box-shadow:none!important}.sheet-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.sheet-grid article{min-height:88mm!important;padding:9px!important}.sheet-hero{padding:10px 15px!important}.sheet-hero h1{font-size:22px!important}.print-choice svg{max-height:42mm!important}.trace-word{font-size:26px!important;padding:10px!important}.write-lines{height:65px!important}.math-task{font-size:32px!important;margin:10px 0!important}@page{size:A4;margin:0}}


.power-rank{display:none!important}.hero-pet{right:-.08em!important;bottom:.12em!important;width:.46em!important;height:.46em!important}.home-stats .stat:first-child b,body:has(.world-grid) .top .stat b{font-size:0!important}.home-stats .stat:first-child b:before,body:has(.world-grid) .top .stat b:before{content:"★";font-size:18px;color:#f2b928;margin-right:5px}.mystery-team .rescue-gallery:before{filter:brightness(0) opacity(.72)!important}.mystery-team .rescue-slot.locked{background:transparent!important;backdrop-filter:none!important}.mystery-team .rescue-slot:not(.locked)>span{display:block!important;position:absolute!important;inset:5% 0 12%!important;width:100%!important;height:auto!important;background:none!important}.mystery-team .rescue-slot:not(.locked)>span .character-sprite{width:100%!important;height:100%!important;background-size:500% 100%!important}.mystery-team .rescue-slot small{z-index:5!important}
.mini-game>span:first-child{background-image:url('assets/icons/count-tap.png')!important;background-size:400% 300%!important;background-repeat:no-repeat!important;background-color:#fff!important}.mini-game:nth-child(1)>span:first-child{background-position:0 0!important}.mini-game:nth-child(2)>span:first-child{background-position:33.333% 0!important}.mini-game:nth-child(3)>span:first-child{background-position:66.666% 0!important}.mini-game:nth-child(4)>span:first-child{background-position:100% 0!important}.mini-game:nth-child(5)>span:first-child{background-position:0 50%!important}.mini-game:nth-child(6)>span:first-child{background-position:33.333% 50%!important}.mini-game:nth-child(7)>span:first-child{background-position:66.666% 50%!important}.mini-game:nth-child(8)>span:first-child{background-position:100% 50%!important}.exact-hotspot{width:34px!important;height:34px!important;border:2px solid #fff!important;background:#ffd43f55!important;box-shadow:0 0 0 5px #ffd43f55,0 0 16px #fff!important}.exact-hotspot span:after{width:7px!important;height:7px!important}
@media print{.sheet{padding:6mm 8mm!important}.sheet-brand strong{font-size:20px!important}.sheet-brand span{font-size:10px!important}.learner-lines{margin:5px 0!important}.sheet-hero{padding:7px 12px!important}.sheet-hero h1{font-size:18px!important}.sheet-hero p{font-size:9px!important}.sheet-grid{grid-template-columns:1fr 1fr!important;gap:5px!important;margin-top:6px!important}.sheet-grid article{min-height:79mm!important;padding:7px!important}.sheet-grid h2{font-size:11px!important;margin-bottom:4px!important}.target-word{font-size:20px!important}.print-choice svg{max-height:34mm!important}.trace-word{font-size:20px!important;padding:6px!important}.write-lines{height:48px!important}.math-task{font-size:27px!important;margin:6px 0!important}.sheet footer{margin-top:3px!important}}
@media(max-width:700px){.hero-pet{right:-.03em!important}.mystery-team .rescue-slot:not(.locked)>span{inset:4% 0 13%!important}}


/* V5.26: clean individual silhouettes, attached pets and one mini-game grid */
.mystery-team .rescue-gallery{background:linear-gradient(180deg,#ddecff,#fff0ce)!important;gap:10px!important;padding:18px 14px 10px!important;aspect-ratio:auto!important;min-height:330px!important}
.mystery-team .rescue-gallery:before{display:none!important;background:none!important;content:none!important}
.mystery-team .rescue-slot{position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;height:300px!important;min-height:0!important;background:transparent!important;overflow:hidden!important;border-radius:22px!important}
.mystery-team .rescue-slot>span{display:block!important;position:absolute!important;inset:8px 5px 48px!important;width:auto!important;height:auto!important;background:none!important;filter:none!important}
.mystery-team .rescue-slot>span img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:none}
.mystery-team .rescue-slot.locked>span{display:block!important;filter:none!important;opacity:1!important}
.mystery-team .rescue-slot.locked>span img{filter:brightness(0)!important;opacity:.92!important}
.mystery-team .rescue-slot.locked:before{display:none!important;content:none!important}
.mystery-team .rescue-slot small{position:absolute!important;left:5%!important;bottom:5px!important;width:90%!important;min-height:38px!important;display:grid!important;place-items:center!important;font-size:11px!important;z-index:4!important}
.mystery-team .rescue-slot.locked small{font-size:0!important}.mystery-team .rescue-slot.locked small:after{content:'?'!important;font-size:18px!important}
.story-hero-character .avatar-dress{position:relative!important;width:1.35em!important;height:1.35em!important}
.story-hero-character .hero-pet{position:absolute!important;right:.02em!important;bottom:.12em!important;width:.38em!important;height:.38em!important;z-index:9!important;transform:none!important}
.story-hero-character .hero-pet .character-sprite{width:100%!important;height:100%!important;background-size:contain!important;background-position:center bottom!important}
.mini-game-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.mini-game.habitat{background:#eaf8ef}.mini-game.foodquiz{background:#fff4df}.mini-game.truefalse{background:#edf0ff}
.mini-game>span:first-child{background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;font-size:0!important}
.buddy-monster-hidden,.buddy-character-hidden{display:grid!important;place-items:center!important;background:linear-gradient(180deg,#273247,#101725)!important;border-radius:45% 45% 30% 30%!important;color:#fff!important}
.mystery-boss,.mystery-friend{font-size:clamp(50px,8vw,110px);font-weight:1000;text-shadow:0 5px 12px #0008}.buddy-clue{width:min(180px,42vw);height:150px;margin:10px auto;display:grid;place-items:center;border-radius:24px;background:#fff;box-shadow:0 10px 26px #17263b22}.buddy-clue svg{max-width:135px;max-height:125px}.buddy-status{font-weight:1000}
@media(max-width:900px){.mini-game-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){.mini-game-grid{grid-template-columns:1fr!important}.mystery-team .rescue-gallery{grid-template-columns:repeat(2,1fr)!important;min-height:0!important}.mystery-team .rescue-slot{height:230px!important}.mystery-team .rescue-slot:last-child{grid-column:1/-1;width:50%!important}.story-hero-character .hero-pet{right:.04em!important;bottom:.14em!important;width:.40em!important;height:.40em!important}}

.scene-picture{aspect-ratio:16/9!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
.scene-picture.scene-0{background-image:url('assets/dictionary-scenes/home-hd.png')!important}
.scene-picture.scene-1{background-image:url('assets/dictionary-scenes/kitchen-hd.png')!important}
.scene-picture.scene-2{background-image:url('assets/dictionary-scenes/classroom-hd.png')!important}
.scene-picture.scene-3{background-image:url('assets/dictionary-scenes/playground-hd.png')!important}
.scene-picture.scene-4{background-image:url('assets/dictionary-scenes/rainforest-hd.png')!important}
.scene-picture.scene-5{background-image:url('assets/dictionary-scenes/farm-hd.png')!important}
.scene-picture.scene-6{background-image:url('assets/dictionary-scenes/ocean-hd.png')!important}
.scene-picture.scene-7{background-image:url('assets/dictionary-scenes/space-hd.png')!important}
.scene-picture.scene-8{background-image:url('assets/dictionary-scenes/city-hd.png')!important}
.scene-picture.scene-9{background-image:url('assets/dictionary-scenes/market-hd.png')!important}
#animalSound{display:none!important}


/* Stable named icon mapping: never use card position or sprite cropping. */
.mini-game.count>span:first-child{background-image:url('assets/icons/count-tap.png')!important}
.mini-game.letters>span:first-child{background-image:url('assets/icons/letter-match.png')!important}
.mini-game.memory>span:first-child{background-image:url('assets/icons/memory-flip.png')!important}
.mini-game.shapes>span:first-child{background-image:url('assets/icons/shape-sort.png')!important}
.mini-game.pattern>span:first-child{background-image:url('assets/icons/pattern-train.png')!important}
.mini-game.buddy>span:first-child{background-image:url('assets/icons/save-buddy.png')!important}
.mini-game.dictionary>span:first-child{background-image:url('assets/icons/talking-dictionary.png')!important}
.mini-game.worksheet>span:first-child{background-image:url('assets/icons/worksheet-studio.png')!important}
.mini-game.habitat>span:first-child{background-image:url('assets/icons/habitat-quest.png')!important}
.mini-game.foodquiz>span:first-child{background-image:url('assets/icons/food-sort.png')!important}
.mini-game.truefalse>span:first-child{background-image:url('assets/icons/fact-detective.png')!important}
.mini-game.sudoku>span:first-child{background-image:url('assets/icons/sudoku.png')!important}
.mini-game.trace>span:first-child{background-image:url('assets/icons/trace-letters.png')!important}
.mini-game.puzzle>span:first-child{background-image:url('assets/icons/picture-puzzle.png')!important}
.mini-game.whack>span:first-child{background-image:url('assets/icons/whack-minion.png')!important}
.mini-game>span:first-child{background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important}
.mini-game.sudoku{background:#fff6d8!important}.mini-game.trace{background:#e7f7ff!important}.mini-game.puzzle{background:#effbe9!important}.mini-game.whack{background:#f7eaff!important}
.mystery-team .rescue-gallery{min-height:400px!important;padding:8px 10px 10px!important;align-items:end!important}
.mystery-team .rescue-slot{height:370px!important}
.mystery-team .rescue-slot>span{inset:-4px -8px 44px!important}
.mystery-team .rescue-slot>span img{object-fit:contain!important;object-position:center bottom!important;transform:scale(1.12);transform-origin:center bottom;filter:none!important}
.mystery-team .rescue-slot.locked>span img.true-silhouette{filter:none!important;opacity:1!important}
@media(max-width:700px){.mystery-team .rescue-gallery{min-height:0!important}.mystery-team .rescue-slot{height:285px!important}.mystery-team .rescue-slot>span img{transform:scale(1.08)}}


/* Portrait dictionary: image remains first and visible, answer panel follows. */
@media(max-width:800px){.scene-dictionary .dictionary-scene{display:flex!important;flex-direction:column!important;gap:12px!important}.scene-dictionary .scene-picture{display:block!important;order:1!important;width:100%!important;min-height:58vw!important;aspect-ratio:16/9!important;visibility:visible!important;opacity:1!important}.scene-dictionary .word-reveal{order:2!important;width:100%!important;min-height:170px!important}.scene-dictionary .scene-tabs{padding-bottom:10px!important}}
.story-hero-character .avatar-base,.story-hero-character .avatar-base .character-sprite{background-size:contain!important;background-position:center bottom!important;overflow:visible!important}
.story-hero-character .avatar-dress{overflow:visible!important}.story-hero-character .hero-pet{right:-.02em!important;bottom:.06em!important;width:.36em!important;height:.36em!important}
.mystery-team .rescue-slot{height:390px!important}.mystery-team .rescue-slot>span{inset:-8px -10px 40px!important}.mystery-team .rescue-slot>span img{transform:scale(1.14)!important;object-fit:contain!important}
.hangman-kids{text-align:center}.hangman-scene{position:relative;width:min(680px,92vw);height:270px;margin:auto;border-radius:26px;background:linear-gradient(180deg,#d9f2ff,#fff4ce);overflow:hidden;border:4px solid #d6deeb}.kid-friend{position:absolute;left:50%;bottom:35px;transform:translateX(-50%);width:115px;height:145px;border-radius:48% 48% 35% 35%;background:#17243d;color:#fff;display:grid;place-items:center;z-index:2}.kid-friend span{font-size:56px;font-weight:1000}.kid-cage{position:absolute;inset:28px 26%;border:9px solid #c18b49;border-bottom-width:14px;border-radius:22px;z-index:3;pointer-events:none}.cage-part{position:absolute;display:block;background:#e8b45e;border-radius:8px;opacity:.2}.cage-part.built{opacity:1}.cage-part:nth-child(1){left:12%;top:-9px;width:14px;height:calc(100% + 18px)}.cage-part:nth-child(2){left:32%;top:-9px;width:14px;height:calc(100% + 18px)}.cage-part:nth-child(3){left:52%;top:-9px;width:14px;height:calc(100% + 18px)}.cage-part:nth-child(4){left:72%;top:-9px;width:14px;height:calc(100% + 18px)}.cage-part:nth-child(5){left:0;top:26%;width:100%;height:12px}.cage-part:nth-child(6){left:0;top:61%;width:100%;height:12px}.hangman-kids h3{color:#d44261;font-size:22px}.hangman-clue{width:150px;height:120px;margin:10px auto;display:grid;place-items:center;background:#eef6ff;border-radius:20px}.hangman-clue svg{max-width:120px;max-height:105px}.hangman-word{font-size:32px;letter-spacing:.3em;font-weight:1000;margin:18px}.hangman-wrong{color:#7047c5;font-weight:900}.alpha{display:grid;grid-template-columns:repeat(9,1fr);gap:7px;max-width:720px;margin:18px auto}.alpha button{min-height:42px;border:2px solid #d5dce8;background:#fff;border-radius:10px;font-weight:1000;cursor:pointer}.alpha button:disabled{opacity:.35}@media(max-width:700px){.mystery-team .rescue-slot{height:300px!important}.alpha{grid-template-columns:repeat(6,1fr);gap:5px}.hangman-scene{height:230px}.kid-cage{inset:24px 18%}.kid-friend{width:92px;height:120px}.hangman-word{font-size:25px}}
@media print{ @page{size:A4 portrait;margin:0}.worksheet-page{background:#fff!important}.worksheet-toolbar,.worksheet-status{display:none!important}#sheets{padding:0!important}.creative-sheet,.sheet{width:210mm!important;height:297mm!important;min-height:297mm!important;margin:0!important;padding:13mm 14mm 11mm!important;box-shadow:none!important;break-after:page!important;page-break-after:always!important}.creative-sheet .sheet-grid,.sheet-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}.creative-sheet .sheet-grid article,.sheet-grid article{min-height:91mm!important;break-inside:avoid!important}}
.unlock-shop .pet-card.locked .unlock-art img{display:none!important}.pet-card.locked .unlock-art{background:#eef1f8!important;overflow:hidden!important}.unlock-shop .pet-card.locked .pet-hidden{display:grid;place-items:center;height:100%;font-size:42px;color:#6c4bc3}.unlock-shop .pet-card.locked .pet-hidden small{display:block;font-size:13px;line-height:1.2;text-align:center;color:#56627b}.unlock-shop .pet-card.owned .unlock-art img,.unlock-shop .pet-card.active .unlock-art img{object-fit:contain!important;width:100%!important;height:100%!important;transform:none!important}
/* Phone + iPad responsive pass */
@media (max-width:1100px){.wrap,.learning-wrap{max-width:96vw!important}.rescue-gallery,.unlock-grid,.more-learning{grid-template-columns:repeat(2,minmax(0,1fr))!important}.story-hero{min-height:720px!important}.story-copy{max-width:52%!important}}
@media (max-width:700px){html,body{overflow-x:hidden}.learning-head,.shop-top,.extra-top{flex-wrap:wrap;gap:10px!important}.learning-head h1{font-size:clamp(28px,8vw,44px)!important}.scene-tabs{overflow-x:auto;flex-wrap:nowrap!important}.dictionary-scene{padding:12px!important}.scene-picture{min-height:58vw!important}.word-reveal{padding:18px!important}.rescue-gallery,.unlock-grid,.more-learning{grid-template-columns:1fr!important}.story-hero{min-height:760px!important}.story-copy{max-width:100%!important;padding:24px!important}.story-hero-character{opacity:.9;transform:scale(.82);transform-origin:bottom right}.game-shell,.extra-game{width:100%!important;padding:12px!important}.choice-grid,.alpha{grid-template-columns:repeat(4,1fr)!important}.puzzle-board,.sudoku-board{max-width:94vw!important}.trace-stage{height:58vh!important;min-height:360px!important}.worksheet-toolbar{overflow-x:auto;flex-wrap:wrap!important}.worksheet-toolbar .btn, .worksheet-toolbar select{min-height:44px}.creative-sheet .sheet-grid,.sheet-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}.creative-sheet .sheet-grid article,.sheet-grid article{min-height:0!important}.shop-top .btn{order:0}.team-preview{grid-template-columns:1fr!important}.pet-unlock-grid .unlock-card{min-width:0!important}}


/* V5.36 final visual and progression repairs */
.unlock-shop .pet-card .unlock-art{overflow:hidden!important;background:#fff!important}
.unlock-shop .pet-card .unlock-art .character-sprite{display:block!important;width:100%!important;height:100%!important;background-size:contain!important;background-position:center bottom!important;background-repeat:no-repeat!important;transform:none!important}
.unlock-shop .pet-card.pet-world-locked{background:#10131c!important;color:#fff!important;border:2px solid #303747!important}
.unlock-shop .pet-card.pet-world-locked .unlock-art{background:#05070c!important}
.unlock-shop .pet-card.pet-world-locked .unlock-art .character-sprite{display:block!important;filter:brightness(0)!important;opacity:1!important}
.unlock-shop .pet-card.pet-world-locked h3,.unlock-shop .pet-card.pet-world-locked small{color:#fff!important}
.unlock-shop .pet-card.pet-world-locked button{background:#222938!important;color:#fff!important}
.mystery-team .rescue-gallery:before{display:none!important}
.mystery-team .rescue-slot{background:transparent!important;backdrop-filter:none!important;overflow:hidden!important}
.mystery-team .rescue-slot>span{display:block!important;position:absolute!important;inset:3% 2% 42px!important;width:auto!important;height:auto!important}
.mystery-team .rescue-slot>span img{width:100%!important;height:100%!important;display:block!important;object-fit:contain!important;object-position:center bottom!important;transform:none!important;background:transparent!important}
.mystery-team .rescue-slot.locked>span img{filter:brightness(0)!important;opacity:1!important}
.mystery-team .rescue-slot small{z-index:5!important}
.mini-game.colour>span:first-child{background-image:url('assets/icons/colour-studio-premium-v36.png')!important}
.mini-game.flags>span:first-child{background-image:url('assets/icons/flag-detective-premium-v36.png')!important}
.mini-game.colour>span:first-child,.mini-game.flags>span:first-child{background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;font-size:0!important}
.hero-rescue-game{text-align:center}.hero-rescue-scene{position:relative;width:min(720px,94vw);height:280px;margin:0 auto 14px;border:4px solid #fff;border-radius:28px;overflow:hidden;background:radial-gradient(circle at 50% 25%,#fff8c9,#d7efff 45%,#a6d985 100%);box-shadow:0 18px 45px #20324a33}
.rescue-minion{position:absolute;left:6%;bottom:15px;width:32%;height:78%;object-fit:contain;filter:drop-shadow(0 12px 10px #27213d44)}
.captured-hero{position:absolute;right:12%;bottom:16px;width:30%;height:78%}.captured-hero .character-sprite{width:100%!important;height:100%!important;background-size:contain!important;background-position:center bottom!important}
.rescue-bars{position:absolute;right:8%;inset-block:10%;width:38%;border:8px solid #5b3a22;border-radius:18px;display:flex;justify-content:space-evenly;pointer-events:none}.rescue-bars i{width:10px;height:100%;background:transparent}.rescue-bars i.closed{background:#a86f32;box-shadow:inset 2px 0 #e8b96e}
.hero-rescue-game h3{margin:10px 0;color:#26364c}.premium-clue{width:150px;height:120px;margin:8px auto;padding:8px;display:grid;place-items:center;border-radius:22px;background:#fff;border:3px solid #d9e7f7;box-shadow:0 8px 20px #2337511a}.premium-clue svg{width:100%;height:100%;max-width:130px;max-height:104px}.hangman-word{font-size:30px;font-weight:1000;letter-spacing:.22em}.hangman-wrong{font-weight:900;color:#6841b5}
@media(max-width:700px){.hero-rescue-scene{height:220px}.rescue-minion{left:1%;width:38%}.captured-hero{right:7%;width:36%}.rescue-bars{right:3%;width:43%}.mystery-team .rescue-slot>span{inset:2% 0 34px!important}}


.mini-game.colour,.mini-game.flags{color:#17263b!important;border:1px solid #eadfd2!important;box-shadow:none!important}.mini-game.colour{background:#fff3e5!important}.mini-game.flags{background:#eaf5ff!important}.mini-game.colour b,.mini-game.flags b{color:#17263b!important}.mini-game.colour small,.mini-game.flags small{color:#65748a!important}.mini-game.colour:hover,.mini-game.flags:hover{transform:translateY(-5px)!important;box-shadow:0 15px 32px #47342017!important}
.mystery-team .rescue-gallery:before{display:none!important}.mystery-team .rescue-slot>span{display:block!important;position:absolute!important;inset:2% 3% 43px!important}.mystery-team .rescue-slot>span img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;transform:none!important;background:none!important}.mystery-team .rescue-slot.locked>span img{filter:brightness(0)!important;opacity:1!important}
.unlock-shop .pet-card.pet-world-locked{background:#080b12!important;border-color:#080b12!important;color:#fff!important}.unlock-shop .pet-card.pet-world-locked .unlock-art{background:#080b12!important}.unlock-shop .pet-card.pet-world-locked .character-sprite{filter:brightness(0)!important;opacity:1!important;background-size:contain!important;background-position:center bottom!important}.unlock-shop .pet-card.pet-world-locked h3,.unlock-shop .pet-card.pet-world-locked small{color:#fff!important}.unlock-shop .pet-card.pet-world-locked button{background:#272d3a!important;color:#fff!important}
.unlock-art .sprite-avatar,.story-hero-character .sprite-avatar,.captured-hero .sprite-avatar{background-size:contain!important;background-position:center bottom!important;background-repeat:no-repeat!important}
.memory-board-5{width:min(590px,88vw);margin:auto;display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.memory-tile-premium{position:relative;aspect-ratio:1;border:0;border-radius:15px;background:linear-gradient(145deg,#5938bd,#321d78);box-shadow:0 5px 0 #24165c;cursor:pointer;transform-style:preserve-3d}.memory-tile-premium .memory-face,.memory-tile-premium .memory-back{position:absolute;inset:5px;display:grid;place-items:center;backface-visibility:hidden}.memory-tile-premium .memory-face{transform:rotateY(180deg);overflow:hidden;background:linear-gradient(145deg,#fff,#eaf4ff);border-radius:11px}.memory-tile-premium .memory-back{color:#fff;font-size:26px;font-weight:1000}.memory-tile-premium.open,.memory-tile-premium.matched{transform:rotateY(180deg);transition:transform .3s}.memory-tile-premium.matched{box-shadow:0 0 0 4px #53d79b}.memory-tile-premium.memory-empty{visibility:hidden;pointer-events:none;box-shadow:none}.memory-portrait{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:center 18%;background-size:175% auto}.memory-portrait.minion{background-position:center;background-size:112% auto}
@media(max-width:700px){.memory-board-5{width:min(470px,92vw);gap:5px}.memory-tile-premium{border-radius:9px}.memory-tile-premium .memory-face{border-radius:7px}.mystery-team .rescue-slot>span{inset:2% 0 34px!important}}
.memory-portrait.item{background-position:center;background-size:cover}

/* V5.39: keep the selected companion visibly beside the hero */
.avatar-dress{position:relative!important;overflow:visible!important}
.avatar-dress>.hero-pet{display:block!important;position:absolute!important;right:-24%!important;bottom:1%!important;width:48%!important;height:48%!important;z-index:20!important;pointer-events:none!important}
.avatar-dress>.hero-pet .character-sprite{display:block!important;width:100%!important;height:100%!important;background-size:contain!important;background-position:center bottom!important;background-repeat:no-repeat!important;filter:drop-shadow(0 8px 8px #0005)!important}
.team-preview{overflow:visible!important}
.team-preview #shopAvatar{overflow:visible!important;padding-right:55px!important;box-sizing:border-box!important}
.story-hero-character .avatar-dress>.hero-pet{right:6%!important;bottom:1%!important;width:38%!important;height:38%!important}
@media(max-width:700px){.avatar-dress>.hero-pet{right:-18%!important;width:44%!important;height:44%!important}.team-preview #shopAvatar{padding-right:28px!important}}
@media(max-width:700px){.story-hero-character .avatar-dress>.hero-pet{right:8%!important;bottom:2%!important;width:36%!important;height:36%!important}}


.creative-sheet .sheet-grid article{display:flex;flex-direction:column;overflow:hidden}.colouring-art{height:210px;display:grid;place-items:center;cursor:pointer}.colouring-art svg{width:100%;height:100%}.colouring-art svg *{stroke:#17263b;stroke-width:2.2;stroke-linejoin:round}.colour-palette{display:flex;justify-content:center;gap:7px;margin:7px}.colour-palette button{width:30px;height:30px;border:3px solid #fff;border-radius:50%;background:var(--c);box-shadow:0 0 0 1px #8190a5;cursor:pointer}.print-note{text-align:center;font-size:10px;color:#6b7280}.trace-picture{height:110px;display:grid;place-items:center}.trace-picture svg{max-width:125px;max-height:105px}.creative-trace{font-family:Arial Black,sans-serif;color:#fff!important;-webkit-text-stroke:2px #9ba9bb;background:repeating-linear-gradient(90deg,transparent 0 10px,#f3f6fa 10px 12px)}.app-answer{width:100%;min-height:42px;margin-top:8px;border:2px solid #cbd5e1;border-radius:10px;padding:8px;font-weight:800}.app-answer.correct{border-color:#20a66b;background:#edfff6}.app-answer.wrong{border-color:#e74663;background:#fff0f3}.big-trace-letter,.big-trace-number{text-align:center;font:1000 150px/1 Arial Black,sans-serif;color:#fff;-webkit-text-stroke:4px #8da0b7}.small-art{height:75px}.small-art svg{max-height:70px}.letter-row,.number-trace-row{display:flex;justify-content:space-around;margin:5px 0}.letter-row span,.number-trace-row span{font:900 38px/1 Arial Black;color:#fff;-webkit-text-stroke:2px #a3afbf;border-bottom:2px solid #66758a;padding:5px}.print-choices button{border:2px solid #d7ddea;background:#fff;border-radius:12px;min-height:105px;cursor:pointer}.print-choices button svg{width:100%;height:90px}.print-choices button.correct,.letter-options button.correct{border-color:#20a66b;background:#eafff4}.print-choices button.wrong,.letter-options button.wrong{border-color:#e74663;background:#fff0f3}.letter-options{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.letter-options button{border:2px solid #bcc9da;border-radius:12px;background:#fff;padding:12px;font-size:25px;font-weight:1000;cursor:pointer}.colour-count{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:auto}.colour-count button{width:46px;height:46px;border:3px solid #233550;border-radius:50%;background:#fff;cursor:pointer}.colour-count button.painted{background:#ffd34f}.short{height:55px}.science-art{height:180px}.science-art svg{max-width:220px;max-height:175px}
@media print{.colour-palette,.app-answer::placeholder{display:none}.colouring-art svg *{fill:#fff!important;stroke:#111!important;stroke-width:2.5!important}.colour-count button{background:#fff!important}.worksheet-check{display:none}.creative-sheet .sheet-grid article{min-height:91mm}}

/* V5.48 global language + individual vocabulary assets */
.home-language{display:flex;gap:5px;padding:4px;border-radius:15px;background:#ffffffb8;box-shadow:0 5px 16px #17263b22}.home-language button{border:0;border-radius:11px;padding:8px 11px;background:transparent;color:#273650;font-weight:950;cursor:pointer}.home-language button.active{background:#5b35a0;color:#fff;box-shadow:0 3px 8px #5b35a044}
.count-object img{object-fit:contain!important;border-radius:0!important}.memory-vocab-image{display:block;width:100%;height:100%;object-fit:contain;padding:7%;}.memory-theme-label{display:table;margin:0 auto 12px;padding:7px 13px;border-radius:999px;background:#eee7ff;color:#4d2a9b;font-weight:950}.memory-portrait.item{background-size:contain!important}.memory-portrait{background-size:contain!important;background-position:center!important}
@media(max-width:700px){.story-nav{gap:7px}.home-language{order:3}.home-language button{padding:7px 9px}.home-stats{order:4}}

/* V5.49 profile-led difficulty and map language indicator */
.map-language-flag{vertical-align:-3px;margin-left:4px}
.hero-profile-note{max-width:680px;margin:0 auto 18px;color:#d9d8ef;font-weight:700;line-height:1.5}
.hero-picker>.hero-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:680px;margin:0 auto 22px;text-align:left}
.hero-profile-fields label{display:grid;gap:7px;font-weight:900;color:#fff}
.hero-profile-fields input,.hero-profile-fields select{width:100%;box-sizing:border-box;border:2px solid #ffffff38;border-radius:16px;padding:14px 16px;background:#fff;color:#182638;font:800 16px/1.2 inherit;outline:none}
.hero-profile-fields input:focus,.hero-profile-fields select:focus{border-color:#ffd451;box-shadow:0 0 0 4px #ffd4512b}
.hero-picker>.hero-options{display:grid;grid-template-columns:repeat(8,1fr);gap:10px}
.hero-picker>.hero-profile-save{display:block;width:min(420px,100%);margin:22px auto 12px;padding:15px 22px;border:0;border-radius:999px;background:linear-gradient(135deg,#ffd451,#ff9f43);color:#352044;font-size:17px;font-weight:1000;box-shadow:0 6px 0 #b96822}
.hero-picker>.hero-profile-save:active{transform:translateY(3px);box-shadow:0 3px 0 #b96822}
.hero-picker>.hero-profile-save.saved{background:linear-gradient(135deg,#72e6a5,#35bd7b);box-shadow:0 6px 0 #18774b}
@media(max-width:700px){.hero-picker>.hero-profile-fields{grid-template-columns:1fr}.hero-picker>.hero-options{grid-template-columns:repeat(4,1fr)}}
.home-language button{display:flex;align-items:center;gap:6px}.home-language .flag{width:24px;height:16px;flex-basis:24px}.home-language b{font-size:12px}
.home-profile-hub{display:block!important;margin:22px 0 26px;padding:20px;border:1px solid #ffffff26;border-radius:24px;background:#ffffff0c;text-align:left}
.home-profile-head{display:flex!important;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}.home-profile-head h3{margin:5px 0 0!important;font-size:21px!important}
.hero-picker .new-home-profile{padding:11px 17px;border:0;border-radius:999px;background:#fff;color:#4c2b88;font-weight:950;white-space:nowrap}
.home-profile-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;gap:12px!important}
.home-profile-item{position:relative;display:block!important;min-width:0}.home-profile-item .home-profile-card{width:100%;padding-right:48px}
.hero-picker .delete-home-profile{position:absolute;z-index:2;right:9px;top:9px;width:34px;height:34px;padding:0;border:1px solid #ffffff33;border-radius:11px;background:#431d42;color:#fff;font-size:16px;cursor:pointer}.hero-picker .delete-home-profile:hover{background:#d84c63;border-color:#ffb8c4;transform:scale(1.05)}
.hero-picker .home-profile-card{display:flex;align-items:center;gap:12px;min-width:0;padding:12px;border:2px solid #ffffff22;border-radius:18px;background:#ffffff0d;text-align:left;color:#fff}.hero-picker .home-profile-card.active{border-color:#ffd451;background:#ffffff1b}.hero-picker .home-profile-card:hover{transform:translateY(-2px);background:#ffffff20}
.home-profile-avatar{display:block!important;width:62px!important;height:68px!important;flex:0 0 62px}.home-profile-avatar .avatar-dress{width:100%;height:100%}.home-profile-copy{display:grid!important;height:auto!important;gap:3px;min-width:0}.home-profile-copy b{font-size:16px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-profile-copy small{color:#d7d7e7;font-size:12px}.home-profile-copy em{color:#ffd451;font-size:12px;font-style:normal;font-weight:900}
@media(max-width:700px){.home-language b{display:none}.home-profile-head{align-items:flex-start;flex-direction:column}.home-profile-list{grid-template-columns:1fr!important}}
@media(max-width:700px){.story-home .story-nav{grid-template-columns:1fr auto auto auto!important}.story-home .story-nav .home-language{grid-column:3}.story-home .story-nav .home-stats{grid-column:4!important}}

/* V5.54 official flag artwork replaces the earlier CSS approximations. */
.flag.flag-my,.flag.flag-gb{width:30px;height:18px;flex-basis:30px;border-radius:2px;background-color:transparent;background-repeat:no-repeat;background-position:center;background-size:100% 100%;box-shadow:0 0 0 1px #0c183a55,0 1px 3px #0003}
.flag.flag-my{background-image:url('assets/flag-malaysia.svg')}.flag.flag-gb{background-image:url('assets/flag-united-kingdom.svg')}
.flag.flag-my:before,.flag.flag-my:after,.flag.flag-gb:before,.flag.flag-gb:after{content:none!important;display:none!important}
.map-language-flag.flag{width:36px;height:22px;vertical-align:-5px;margin-left:5px}

/* V5.55 World hero picker — current profile ownership only. */
.choose-hero-map:before{background-image:var(--map-hero-image,url('assets/characters/avatar-individual-v38-00.png'))!important}
.map-hero-modal[hidden]{display:none!important}.map-hero-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px}.map-hero-backdrop{position:absolute;inset:0;background:#050b18c7;backdrop-filter:blur(7px)}body.map-hero-open{overflow:hidden}
.map-hero-dialog{position:relative;z-index:1;width:min(760px,100%);max-height:min(720px,88vh);overflow:auto;padding:26px;border:1px solid #ffffff32;border-radius:28px;background:linear-gradient(145deg,#263f68,#121d38);color:#fff;box-shadow:0 28px 90px #0009}.map-hero-dialog h2{margin:6px 0 4px;font-size:clamp(25px,4vw,36px)}.map-hero-dialog p{margin:0 0 20px;color:#dce7f7;font-weight:700}.map-hero-close{position:absolute;right:15px;top:15px;width:42px;height:42px;border:1px solid #ffffff38;border-radius:50%;background:#ffffff16;color:#fff;font-size:29px;line-height:1;cursor:pointer}
.map-owned-heroes{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.map-owned-hero{display:grid;gap:5px;place-items:center;min-height:175px;padding:12px;border:2px solid #ffffff24;border-radius:20px;background:#ffffff0d;color:#fff;cursor:pointer}.map-owned-hero:hover{background:#ffffff1c;transform:translateY(-2px)}.map-owned-hero.selected{border-color:#ffd451;background:#ffffff20;box-shadow:0 0 24px #ffd45135}.map-owned-hero>span{display:block;width:100%;height:105px}.map-owned-hero .character-sprite{width:100%;height:100%;background-size:contain!important;background-position:center bottom!important}.map-owned-hero b{font-size:15px}.map-owned-hero small{color:#ffd451;font-weight:900}
@media(max-width:560px){.map-hero-dialog{padding:22px 16px}.map-owned-heroes{grid-template-columns:repeat(2,minmax(0,1fr))}.map-owned-hero{min-height:150px}.map-owned-hero>span{height:88px}}

/* V5.56: anchor the progress crown to each hero's head and refine its finish. */
.avatar-dress .evolution-crown{
 left:50%;
 top:calc(var(--head-y,.32em) - .18em);
 width:.48em;
 height:.21em;
 transform:translateX(-50%) rotate(-2deg);
 transform-origin:center bottom;
 border-radius:0 0 .055em .055em;
 background:linear-gradient(180deg,#fff5a8 0%,#ffd53f 38%,#f39a16 100%);
 clip-path:polygon(0 88%,7% 18%,28% 58%,50% 0,72% 58%,93% 18%,100% 88%,94% 100%,6% 100%);
 filter:drop-shadow(0 .025em .018em #5c2e12aa) drop-shadow(0 0 .045em #fff2a8);
 animation:evolutionCrownFloat 2.8s ease-in-out infinite;
}
.avatar-dress .evolution-crown::before{
 content:"";
 position:absolute;
 inset:.024em .035em .045em;
 background:linear-gradient(120deg,#fffbd0 0 20%,#ffd83e 42%,#fff3a0 60%,#f4a51d 100%);
 clip-path:polygon(0 88%,5% 20%,29% 62%,50% 5%,71% 62%,95% 20%,100% 88%,94% 100%,6% 100%);
}
.avatar-dress .evolution-crown::after{
 content:"";
 position:absolute;
 left:9%;
 right:9%;
 bottom:8%;
 height:24%;
 border-radius:999px;
 background:radial-gradient(circle at 20% 50%,#ff5b6e 0 9%,#9d1d3a 11% 15%,transparent 17%),radial-gradient(circle at 50% 50%,#45c8ff 0 10%,#17699d 12% 16%,transparent 18%),radial-gradient(circle at 80% 50%,#6de894 0 9%,#197e49 11% 15%,transparent 17%),linear-gradient(180deg,#fff1a0,#e99a15);
 box-shadow:inset 0 .012em 0 #fff9;
}
@keyframes evolutionCrownFloat{
 0%,100%{transform:translateX(-50%) translateY(0) rotate(-2deg)}
 50%{transform:translateX(-50%) translateY(-.012em) rotate(2deg)}
}

/* V5.56: focus evolution energy around the hero's controlling hand. */
.avatar-dress{--power-hand-x:68%;--power-hand-y:40%}
.avatar-alya{--power-hand-x:37%;--power-hand-y:34%}
.avatar-aiman{--power-hand-x:34%;--power-hand-y:29%}
.avatar-mei{--power-hand-x:73%;--power-hand-y:32%}
.avatar-arjun{--power-hand-x:34%;--power-hand-y:29%}
.avatar-jantan{--power-hand-x:61%;--power-hand-y:61%}
.avatar-liana{--power-hand-x:37%;--power-hand-y:36%}
.avatar-sara{--power-hand-x:67%;--power-hand-y:31%}
.avatar-hafiz{--power-hand-x:38%;--power-hand-y:32%}
.avatar-kavya{--power-hand-x:70%;--power-hand-y:34%}
.avatar-bani{--power-hand-x:70%;--power-hand-y:34%}
.avatar-nur{--power-hand-x:72%;--power-hand-y:39%}
.avatar-wei{--power-hand-x:37%;--power-hand-y:38%}
.avatar-dayang{--power-hand-x:64%;--power-hand-y:41%}
.avatar-rajesh{--power-hand-x:66%;--power-hand-y:37%}
.avatar-hana{--power-hand-x:37%;--power-hand-y:38%}
.avatar-danial{--power-hand-x:40%;--power-hand-y:43%}
.avatar-dress .evolution-motes{
 inset:auto;
 left:var(--power-hand-x);
 top:var(--power-hand-y);
 width:.36em;
 height:.36em;
 transform:translate(-50%,-50%);
 border-radius:50%;
 animation:handPowerHover 1.8s ease-in-out infinite;
 filter:drop-shadow(0 0 .035em #fff7ad) drop-shadow(0 0 .075em #ff7a18);
}
.avatar-dress .evolution-motes::before{
 content:"";
 position:absolute;
 z-index:2;
 inset:27%;
 border-radius:50%;
 background:radial-gradient(circle at 36% 30%,#fff 0 8%,#fff59a 18%,#ffb21d 48%,#f24a0d 72%,#7c1708 100%);
 box-shadow:0 0 .055em #fff4a8,0 0 .12em #ff6518;
 animation:handPowerCore .72s ease-in-out infinite alternate;
}
.avatar-dress .evolution-motes::after{
 content:"";
 position:absolute;
 z-index:1;
 left:33%;
 top:-8%;
 width:34%;
 height:64%;
 transform-origin:50% 100%;
 border-radius:70% 20% 55% 35%;
 background:linear-gradient(160deg,#fffbd1 2%,#ffd530 30%,#ff7417 62%,#e62e0c 88%);
 clip-path:polygon(50% 0,72% 34%,100% 53%,75% 100%,24% 100%,0 53%,27% 36%);
 animation:handPowerFlame .48s ease-in-out infinite alternate;
}
.avatar-dress .evolution-motes i{
 --angle:calc(var(--m) * 45deg);
 left:50%;
 top:50%;
 width:.04em;
 height:.04em;
 margin:-.02em;
 background:radial-gradient(circle,#fff 0 18%,#ffe566 35%,#ff7b19 68%,transparent 72%);
 box-shadow:0 0 .055em #ffb329;
 animation:handPowerOrbit 2.15s linear infinite;
 animation-delay:calc(var(--m) * -.13s);
}
@keyframes handPowerHover{
 0%,100%{transform:translate(-50%,-50%) translateY(0) scale(.96)}
 50%{transform:translate(-50%,-50%) translateY(-.025em) scale(1.04)}
}
@keyframes handPowerCore{
 from{transform:scale(.88);filter:brightness(.95)}
 to{transform:scale(1.12);filter:brightness(1.22)}
}
@keyframes handPowerFlame{
 from{transform:rotate(-9deg) scaleY(.88)}
 to{transform:rotate(8deg) scaleY(1.12)}
}
@keyframes handPowerOrbit{
 from{transform:rotate(var(--angle)) translateX(.155em) scale(.72)}
 to{transform:rotate(calc(var(--angle) + 360deg)) translateX(.155em) scale(1.08)}
}
.memory-board-5.age-memory-0{grid-template-columns:repeat(4,minmax(0,1fr));max-width:650px;margin:auto}
.memory-board-5.age-memory-1{grid-template-columns:repeat(4,minmax(0,1fr));max-width:720px;margin:auto}
.memory-board-5.age-memory-2{grid-template-columns:repeat(4,minmax(0,1fr));max-width:780px;margin:auto}

/* V5.57: remove crown/orb visuals; keep a clear, behind-the-hand fire aura only. */
.avatar-dress .evolution-crown,
.power-avatar .power-glow{display:none!important}
.avatar-dress .evolution-motes{
 z-index:2;
 width:.27em;
 height:.29em;
 overflow:visible;
 border-radius:50%;
 filter:drop-shadow(0 0 .035em #ffcf54) drop-shadow(0 0 .07em #ff5b16);
 animation:handFireAuraBreathe 1.15s ease-in-out infinite;
}
.avatar-dress .evolution-motes::before{
 content:"";
 position:absolute;
 z-index:0;
 inset:-4%;
 border-radius:50%;
 background:radial-gradient(circle,transparent 0 34%,#fff0a255 40%,#ffb11d9c 50%,#ff5a1680 59%,transparent 72%);
 box-shadow:none;
 animation:handFireAuraPulse .62s ease-in-out infinite alternate;
}
.avatar-dress .evolution-motes::after{
 content:"";
 position:absolute;
 z-index:0;
 inset:-18% -13% -4%;
 width:auto;
 height:auto;
 border-radius:42% 58% 48% 52%;
 background:linear-gradient(180deg,#fff4a8 0%,#ffc52c 34%,#ff7118 67%,#dc2e0d 100%);
 -webkit-mask:none;
 mask:none;
 clip-path:polygon(49% 100%,18% 91%,7% 72%,21% 55%,10% 39%,33% 48%,29% 14%,46% 34%,54% 0,63% 35%,86% 17%,78% 54%,98% 43%,87% 72%,100% 89%,70% 95%);
 transform-origin:50% 74%;
 animation:handFireAuraFlicker .7s ease-in-out infinite alternate;
}
.avatar-dress .evolution-motes i{
 z-index:1;
 width:.018em;
 height:.034em;
 margin:0;
 border-radius:70% 30% 65% 35%;
 background:linear-gradient(#fff7b0,#ffad22 52%,#ed4514);
 box-shadow:0 0 .025em #ff8b19;
 animation:handFireEmber 1.15s ease-out infinite;
 animation-delay:calc(var(--m) * -.16s);
}
.avatar-dress .evolution-motes i:nth-child(1){left:16%;top:64%}
.avatar-dress .evolution-motes i:nth-child(2){left:29%;top:21%}
.avatar-dress .evolution-motes i:nth-child(3){left:52%;top:7%}
.avatar-dress .evolution-motes i:nth-child(4){left:76%;top:24%}
.avatar-dress .evolution-motes i:nth-child(5){left:84%;top:60%}
.avatar-dress .evolution-motes i:nth-child(6){left:62%;top:81%}
.avatar-dress .evolution-motes i:nth-child(7){left:34%;top:82%}
@keyframes handFireAuraBreathe{
 0%,100%{transform:translate(-50%,-50%) scale(.93)}
 50%{transform:translate(-50%,-50%) scale(1.04)}
}
@keyframes handFireAuraPulse{
 from{opacity:.58;transform:scale(.88)}
 to{opacity:.92;transform:scale(1.08)}
}
@keyframes handFireAuraFlicker{
 from{opacity:.66;transform:rotate(-8deg) scale(.92,1.02)}
 to{opacity:.9;transform:rotate(7deg) scale(1.04,.94)}
}
@keyframes handFireEmber{
 0%{opacity:0;transform:translate(0,.035em) scale(.6)}
 28%{opacity:.95}
 100%{opacity:0;transform:translate(.018em,-.11em) scale(.15)}
}

/* V5.58: the illustrated objects themselves are the dictionary controls. */
.scene-dictionary .object-hotspot{
 position:absolute;
 left:var(--x);
 top:var(--y);
 transform:translate(-50%,-50%);
 width:var(--w)!important;
 height:var(--h)!important;
 padding:0!important;
 border:0!important;
 border-radius:42%!important;
 background:transparent!important;
 box-shadow:none!important;
 animation:none!important;
 cursor:pointer;
 z-index:2;
 isolation:isolate;
 transition:filter .18s ease!important;
}
.scene-dictionary .object-hotspot.object-hotspot-background{z-index:1}
.scene-dictionary .object-hotspot.shape-round{border-radius:50%!important}
.scene-dictionary .object-hotspot.shape-rect{border-radius:12%!important}
.scene-dictionary .object-hotspot.shape-tall{border-radius:34% 34% 22% 22%!important}
.scene-dictionary .object-hotspot.shape-wide{border-radius:32% 32% 26% 26%!important}
.scene-dictionary .object-hotspot.shape-organic{border-radius:48% 38% 46% 42%!important}
.scene-dictionary .object-hotspot span,
.scene-dictionary .object-hotspot span::after{display:none!important}
.scene-dictionary .object-hotspot::before{
 content:"";
 position:absolute;
 inset:-5%;
 border-radius:inherit;
 opacity:0;
 background:radial-gradient(ellipse at center,#fffbd875 0 34%,#ffe05b58 52%,#ffbf2440 64%,transparent 78%);
 box-shadow:0 0 10px 3px #fff7,0 0 23px 7px #ffd84d70,inset 0 0 14px #fff5;
 backdrop-filter:none;
 -webkit-backdrop-filter:none;
 transition:opacity .18s ease,transform .18s ease;
 pointer-events:none;
}
.scene-dictionary .object-hotspot:hover,
.scene-dictionary .object-hotspot:focus-visible,
.scene-dictionary .object-hotspot.selected{
 z-index:4;
 transform:translate(-50%,-50%)!important;
 background:transparent!important;
 filter:drop-shadow(0 0 8px #fff) drop-shadow(0 0 14px #ffd43f)!important;
 outline:none;
}
.scene-dictionary .object-hotspot:hover::before,
.scene-dictionary .object-hotspot:focus-visible::before,
.scene-dictionary .object-hotspot.selected::before{
 opacity:1;
 transform:scale(1.04);
 animation:objectGlowBreath 1.1s ease-in-out infinite alternate;
}
.scene-dictionary .object-hotspot:focus-visible::after{
 content:"";
 position:absolute;
 inset:-4px;
 border:3px solid #fff;
 border-radius:inherit;
 box-shadow:0 0 0 3px #6d49c9;
 pointer-events:none;
}
@keyframes objectGlowBreath{
 from{opacity:.66;filter:brightness(1)}
 to{opacity:1;filter:brightness(1.18)}
}
@media(hover:none){
 .scene-dictionary .object-hotspot{min-width:34px!important;min-height:34px!important}
}

/* V5.59: no avatar power-up decoration; keep the original hero artwork clear. */
.avatar-dress .evolution-crown,
.avatar-dress .evolution-motes,
.power-avatar .power-glow{display:none!important}

/* Tighter, shape-aware dictionary controls with a restrained edge glow. */
.scene-dictionary .object-hotspot{
 overflow:visible;
 filter:none!important;
}
.scene-dictionary .object-hotspot.shape-round{clip-path:circle(48% at 50% 50%)}
.scene-dictionary .object-hotspot.shape-rect{clip-path:inset(3% round 10%)}
.scene-dictionary .object-hotspot.shape-tall{clip-path:polygon(34% 0,66% 0,82% 13%,88% 88%,70% 100%,30% 100%,12% 88%,18% 13%)}
.scene-dictionary .object-hotspot.shape-wide{clip-path:ellipse(49% 42% at 50% 52%)}
.scene-dictionary .object-hotspot.shape-organic{clip-path:polygon(50% 0,73% 7%,92% 25%,100% 53%,88% 81%,64% 100%,35% 96%,10% 82%,0 53%,12% 24%,31% 7%)}
.scene-dictionary .object-hotspot::before{
 inset:3%!important;
 clip-path:inherit;
 border-radius:inherit;
 background:transparent!important;
 box-shadow:inset 0 0 0 2px #fffbe8,inset 0 0 6px 2px #ffd84d99!important;
 filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 5px #ffc928)!important;
}
.scene-dictionary .object-hotspot:hover,
.scene-dictionary .object-hotspot:focus-visible,
.scene-dictionary .object-hotspot.selected{filter:none!important}
.scene-dictionary .object-hotspot:hover::before,
.scene-dictionary .object-hotspot:focus-visible::before,
.scene-dictionary .object-hotspot.selected::before{
 transform:none!important;
 animation:objectEdgeGlow .9s ease-in-out infinite alternate!important;
}
@keyframes objectEdgeGlow{from{opacity:.7}to{opacity:1}}

/* V5.60: Save a Buddy is now an icon-powered hero chase. */
.buddy-chase-game{display:grid;gap:12px}
.buddy-chase-stage{position:relative;height:330px;overflow:hidden;border:5px solid #fff;border-radius:30px;box-shadow:0 18px 42px #2339532e;background-position:center!important;background-size:cover!important;isolation:isolate}
.buddy-chase-stage:before{content:"";position:absolute;z-index:0;inset:0;background:linear-gradient(180deg,#07192b12 0 58%,#14231538 59% 100%)}
.buddy-chase-stage:after{content:"";position:absolute;z-index:1;left:-5%;right:-5%;bottom:0;height:25%;background:repeating-linear-gradient(100deg,#79512f 0 54px,#9a6b3e 54px 58px);border-top:5px solid #e5bd73;animation:buddyTrackMove .7s linear infinite}
.buddy-chase-stage.chase-world-0{background-image:url('assets/characters/arena-jungle.png')!important}
.buddy-chase-stage.chase-world-1{background-image:url('assets/characters/arena-abc.png')!important}
.buddy-chase-stage.chase-world-2{background-image:url('assets/characters/arena-space.png')!important}
.buddy-chase-stage.chase-world-3{background-image:url('assets/characters/arena-ocean.png')!important}
.buddy-chase-stage.chase-world-4{background-image:url('assets/characters/arena-rainbow.png')!important}
.buddy-speed-lines{position:absolute;z-index:2;inset:16% 0 30%;opacity:.65;background:repeating-linear-gradient(175deg,transparent 0 28px,#fff8 29px 32px,transparent 33px 58px);animation:buddySpeed .6s linear infinite;pointer-events:none}
.buddy-chasing-minion{position:absolute;z-index:4;left:var(--minion-x);bottom:17%;width:24%;height:60%;transition:left .45s cubic-bezier(.2,.8,.2,1);filter:drop-shadow(0 14px 12px #0007)}
.buddy-chasing-minion img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;animation:buddyMinionRun .42s ease-in-out infinite alternate}
.buddy-running-hero{position:absolute;z-index:5;left:var(--hero-x);bottom:16%;width:25%;height:68%;transition:left .45s cubic-bezier(.2,.8,.2,1);filter:drop-shadow(0 15px 13px #0006)}
.buddy-running-hero .avatar-dress,.buddy-running-hero .avatar-base,.buddy-running-hero .character-sprite{display:block!important;width:100%!important;height:100%!important;background-size:contain!important;background-position:center bottom!important;background-repeat:no-repeat!important}
.buddy-running-hero .avatar-dress{animation:buddyHeroRun .36s ease-in-out infinite alternate;transform-origin:50% 90%}
.buddy-running-hero .hero-pet{display:none!important}
.buddy-finish-flag{position:absolute;z-index:3;right:2%;top:9%;font-size:54px;filter:drop-shadow(0 7px 6px #0005)}
.buddy-chase-trail{position:absolute;z-index:7;left:4%;right:4%;bottom:4%;display:grid;grid-template-columns:repeat(6,1fr);gap:7px}
.buddy-chase-trail i{height:10px;border-radius:99px;background:#ffffff45;border:1px solid #ffffff88;box-shadow:0 3px 7px #0003}
.buddy-chase-trail i.safe{background:#42e394;border-color:#eafff5;box-shadow:0 0 12px #42e394}
.buddy-chase-status{text-align:center;color:#b72e4d;font-size:18px;font-weight:1000;min-height:26px}
.buddy-icon-prompt{display:grid;grid-template-columns:74px 1fr;grid-template-rows:1fr 1fr;column-gap:12px;align-items:center;width:min(410px,92%);margin:auto;padding:9px 16px;border:3px solid #e3d9f4;border-radius:22px;background:#fff;box-shadow:0 9px 22px #26384b18}
.buddy-icon-prompt img{grid-row:1/3;width:70px;height:70px;object-fit:contain}
.buddy-icon-prompt b{align-self:end;font-size:22px;color:#2d2455}.buddy-icon-prompt span{align-self:start;color:#6a7586;font-size:11px;font-weight:850}
#choices.buddy-choice-host{display:block!important;width:min(800px,100%)!important;max-width:800px!important;margin:18px auto!important}
.buddy-icon-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:min(760px,100%);margin:auto}
.buddy-icon-choice{position:relative;min-height:148px;padding:10px;border:4px solid #fff;border-radius:23px;background:linear-gradient(145deg,#fff,#eaf5ff);box-shadow:0 8px 0 #cbd8e8,0 14px 24px #20344920;cursor:pointer;transition:transform .16s,box-shadow .16s,border-color .16s}
.buddy-icon-choice:hover,.buddy-icon-choice:focus-visible{transform:translateY(-5px);border-color:#ffd44f;box-shadow:0 8px 0 #dfb52d,0 18px 28px #20344926;outline:none}
.buddy-icon-choice img{display:block;width:100%;height:112px;object-fit:contain}
.buddy-icon-choice.correct{border-color:#3bd48a;background:#dcffed}.buddy-icon-choice.wrong{border-color:#ff6077;background:#ffe8ec;animation:buddyWrongShake .28s ease}
.buddy-chase-stage.hero-escape .buddy-running-hero{animation:buddyEscapeBurst .55s ease}.buddy-chase-stage.minion-close .buddy-chasing-minion{animation:buddyLunge .4s ease}
@keyframes buddyTrackMove{to{transform:translateX(58px)}}
@keyframes buddySpeed{to{transform:translateX(-80px)}}
@keyframes buddyHeroRun{from{transform:translateY(0) rotate(-2deg)}to{transform:translateY(-9px) rotate(2deg)}}
@keyframes buddyMinionRun{from{transform:translateY(0) rotate(3deg)}to{transform:translateY(-8px) rotate(-3deg)}}
@keyframes buddyEscapeBurst{50%{transform:translateX(22px) scale(1.04)}}
@keyframes buddyLunge{50%{transform:translateX(28px) scale(1.08)}}
@keyframes buddyWrongShake{25%{transform:translateX(-7px)}75%{transform:translateX(7px)}}
@media(max-width:700px){.buddy-chase-stage{height:245px}.buddy-chasing-minion{width:31%;height:56%;bottom:18%}.buddy-running-hero{width:31%;height:62%;bottom:17%}.buddy-finish-flag{font-size:38px}.buddy-icon-choices{grid-template-columns:1fr 1fr;gap:9px}.buddy-icon-choice{min-height:112px;padding:5px;border-width:3px;border-radius:15px}.buddy-icon-choice img{height:88px}.buddy-icon-prompt{grid-template-columns:58px 1fr}.buddy-icon-prompt img{width:54px;height:54px}.buddy-icon-prompt b{font-size:18px}}
@media(prefers-reduced-motion:reduce){.buddy-chase-stage:after,.buddy-speed-lines,.buddy-chasing-minion img,.buddy-running-hero .avatar-dress{animation:none!important}}

/* V5.64: quiet parent logout, homepage footer only */
.parent-footer{display:flex;justify-content:center;align-items:center;padding:28px 12px 18px;opacity:.72}
.parent-logout-small{appearance:none;border:0;background:transparent;color:#66788a;font:600 11px/1.2 Arial,sans-serif;padding:5px 8px;border-radius:8px;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.parent-logout-small:hover,.parent-logout-small:focus-visible{color:#17324d;background:rgba(23,50,77,.06);outline:none}

.parent-device-small{font-size:11px;padding:5px 9px;border:1px solid #cbd8df;border-radius:9px;background:#fff;color:#607582;cursor:pointer;margin-right:7px}
