:root{font-family:ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif;color:#153c38;background:#f5f3e8;font-synthesis:none;--accent:#f8bb42;--ink:#153c38}*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer;border:0;touch-action:manipulation;color:inherit;min-height:48px}button:focus-visible{outline:4px solid #fa7854;outline-offset:3px}button:disabled{cursor:default;opacity:.6}button:active:not(:disabled){transform:translateY(2px) scale(.98)}.shell{max-width:1400px;margin:auto;padding:24px 5vw 35px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.brand{font-weight:950;font-size:20px;letter-spacing:-1px;display:flex;align-items:center;gap:10px}.brand-mark{background:var(--ink);color:#ffcf61;border-radius:14px;padding:8px 12px;font-size:26px}.eyebrow{font-size:11px;font-weight:850;letter-spacing:2.3px;text-transform:uppercase}.subbrand{font-size:10px;letter-spacing:1.5px;font-weight:650}.toolbar{display:flex;gap:8px;align-items:center}.pill,.icon-btn{background:#fff;border:1px solid #dee4d8;border-radius:50px;padding:10px 17px;font-size:14px;font-weight:750}.icon-btn{padding:10px 14px}.star-count{background:#ffedb8}.hero{position:relative;overflow:hidden;border-radius:32px;background:#deeddb;min-height:520px;display:grid;grid-template-columns:1fr 1.1fr;isolation:isolate}.hero-copy{padding:52px 0 42px 48px;z-index:3}.tag{display:inline-flex;align-items:center;gap:8px;background:#fff9d9;border-radius:30px;padding:9px 14px;font-size:11px;font-weight:850;letter-spacing:1px}.hero h1{font-size:clamp(46px,5.5vw,80px);line-height:.98;letter-spacing:-4px;margin:23px 0 17px;font-weight:950}.hero h1 span{color:#3a795c}.hero p{font-size:16px;line-height:1.65;max-width:360px;color:#49645a}.primary{background:#f9bd48;border:2px solid #edac31;box-shadow:0 5px 0 #d69925;padding:17px 25px;border-radius:18px;font-weight:900;font-size:17px}.secondary{background:white;border:1px solid #d7e1d5;padding:14px 20px;border-radius:16px;font-weight:800}.hero .primary{margin-top:13px}.tiny{font-size:12px;color:#64786d;line-height:1.6}.hero-art{position:relative;min-height:490px;align-self:stretch}.landscape{position:absolute;inset:0;width:100%;height:100%;z-index:-1}.hero-art .landscape{z-index:0}.heroes{display:flex;align-items:flex-end;justify-content:center;gap:0}.hero-art .heroes{position:absolute;bottom:42px;left:6%;right:5%;z-index:2}.hero-art .person{width:48%;max-width:240px}.person{width:120px;overflow:visible;filter:drop-shadow(0 10px 8px #163d3020)}.person .arm{transform-origin:110px 147px;animation:wave 4s ease-in-out infinite}.person .body-group{animation:bob 4s ease-in-out infinite}.person.amina .body-group{animation-delay:-1.5s}.person .blink{animation:blink 6s infinite;transform-origin:100px 80px}.person .mouth{transition:all .3s}.name-label{background:#fff;border-radius:30px;padding:8px 15px;font-weight:850;font-size:13px}.hero-names{position:absolute;bottom:24px;left:18%;right:12%;display:flex;justify-content:space-around;z-index:3}.floating{position:absolute;z-index:2;animation:float 4s ease-in-out infinite;font-size:42px}.hero-note{position:absolute;top:34px;right:34px;background:#fffef0;transform:rotate(7deg);padding:18px;border-radius:18px;box-shadow:0 8px 25px #315b2c18;font-weight:800;font-size:13px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:32px 0 18px}.section-heading h2{margin:0;font-size:24px;letter-spacing:-.8px}.mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.mode-card{background:#fff;border:2px solid #e0e5d9;border-radius:20px;display:flex;align-items:center;padding:17px 20px;text-align:left;gap:16px}.mode-card.selected{border-color:#398665;background:#eff7ec}.mode-card .avatar{width:52px;height:52px;border-radius:50%;background:#ffebc3;display:grid;place-items:center;overflow:hidden}.avatar .person{width:60px;transform:translateY(16px)}.mode-card strong{display:block;font-size:16px}.mode-card small{display:block;color:#708175;font-size:12px;margin-top:4px}.footer-note{text-align:center;font-size:11px;letter-spacing:1px;margin:30px 0 0;color:#718073}.map-banner{background:#e4eddb;border-radius:22px;padding:22px 28px;display:flex;align-items:center;justify-content:space-between}.map-banner h1{font-size:32px;margin:4px 0;letter-spacing:-1px}.world-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:24px}.world-card{background:#fff;border-radius:24px;border:1px solid #dfe4d7;overflow:hidden;text-align:left;padding:0;position:relative;min-height:265px;transition:transform .2s}.world-card:hover:not(:disabled){transform:translateY(-4px)}.world-art{height:170px;position:relative;isolation:isolate;overflow:hidden}.world-art .world-icon{font-size:62px;position:absolute;bottom:28px;left:40%;filter:drop-shadow(0 5px 0 #0001)}.world-num{position:absolute;top:14px;left:16px;background:#fff9;border-radius:30px;padding:7px 10px;font-size:11px;font-weight:850}.world-info{padding:18px 20px}.world-info h2{font-size:18px;margin:0 0 7px}.world-info p{font-size:12px;margin:0;color:#688073}.dots{display:flex;gap:5px;margin-top:12px}.dot{height:7px;flex:1;background:#edf0e7;border-radius:5px}.dot.done{background:#ecb446}.locked{filter:saturate(.4)}.chapter{background:white;border-radius:24px;padding:24px;margin-top:18px}.trail{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.trail button{flex:1;min-width:135px;border-radius:18px;padding:20px 10px;background:#edf4e7;font-weight:850}.trail button.completed{background:#fff0ba}.trail button span{display:block;font-size:32px;margin-bottom:8px}.game-wrap{max-width:960px;margin:0 auto}.game-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;gap:10px}.game-head h1{font-size:22px;margin:0}.stage{min-height:455px;border-radius:28px;position:relative;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;align-items:center;padding:26px 28px}.stage-title{text-align:center;z-index:2;background:#ffffffe8;padding:14px 25px;border-radius:20px;margin:0 0 12px;font-size:23px;box-shadow:0 4px 20px #173b3010}.stage-sub{margin:0 0 16px;text-align:center;font-size:14px;font-weight:700;background:#ffffffc9;padding:7px 14px;border-radius:15px;z-index:2}.playfield{width:100%;min-height:285px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;z-index:2}.object-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;width:100%;max-width:560px}.object{border-radius:22px;background:#ffffffe8;border:2px solid #ffffffab;box-shadow:0 5px 0 #193e3420;height:84px;font-size:43px;position:relative}.object.found{opacity:.35;box-shadow:none;transform:scale(.92)}.object small{font-size:12px;display:block}.choices{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;max-width:650px}.choices button{border:2px solid #fff;border-radius:20px;padding:18px 23px;background:#fffffff0;font-size:17px;font-weight:850;min-width:130px;box-shadow:0 5px 0 #183c3020}.choices button .choice-icon{display:block;font-size:38px;margin-bottom:8px}.speech{font-size:20px;font-weight:850;text-align:center;max-width:560px;background:#fffef0;border-radius:22px;padding:16px 24px;line-height:1.4}.guide-icon{font-size:70px;animation:float 3s infinite}.sequence{display:flex;gap:12px;justify-content:center}.sequence span{background:#fff;border-radius:18px;padding:14px;font-size:40px;min-width:70px;text-align:center}.gate{font-size:90px;filter:drop-shadow(0 8px 0 #0001)}.go-button{width:190px;min-height:100px;border-radius:26px;font-size:32px;font-weight:950;background:#ffd86a;border:5px solid #fff;box-shadow:0 6px 0 #133e3020}.go-button.go{background:#98e4ad;animation:pulse 1s infinite}.game-bottom{display:flex;align-items:center;gap:18px;margin:16px 0;background:#fff;border-radius:22px;padding:10px 20px;min-height:105px}.game-bottom .heroes{flex-shrink:0}.game-bottom .person{width:66px}.game-bottom p{font-size:14px;line-height:1.5;margin:0}.progress-track{height:9px;background:#e5e9de;border-radius:8px;width:100%;overflow:hidden}.progress-track div{height:100%;background:#f9bd48;transition:width .4s}.moving-field{height:290px;width:100%;position:relative;background:#ffffff32;border-radius:20px}.moving-field button{position:absolute;width:72px;height:72px;min-height:72px;border-radius:50%;background:#fffce9;font-size:38px;animation:drift var(--duration,5s) ease-in-out infinite alternate}.turn-card{background:#fff;border-radius:22px;padding:12px 20px;display:flex;gap:18px;align-items:center}.turn-card .person{width:78px}.turn-card strong{font-size:22px}.reward{max-width:700px;margin:auto;text-align:center;background:#fff;border-radius:30px;padding:36px;position:relative;overflow:hidden}.reward .big-reward{font-size:85px;display:block;animation:float 3s infinite}.reward h1{font-size:38px;letter-spacing:-1.5px;margin:14px 0}.reward .heroes .person{width:120px}.reward p{line-height:1.6}.badge-preview{background:#eef4e8;border:1px solid #dbe7d2;border-radius:20px;padding:17px;margin:20px auto;max-width:390px}.badge-preview strong{display:block;font-size:18px;margin:8px}.reward-actions{display:flex;gap:14px;justify-content:center;margin-top:25px}.collection-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:24px}.badge-card{padding:24px 16px;background:white;border-radius:22px;border:2px solid #e2e8d8;min-height:185px;text-align:center}.badge-card .badge-art{font-size:48px;display:block;margin-bottom:14px}.badge-card strong{font-size:14px;display:block}.badge-card small{font-size:12px;display:block;margin-top:8px;line-height:1.4}.badge-card.unearned{background:#ecefe7;color:#839183}.accessories{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.accessories button{padding:20px;background:white;border:2px solid #e1e7d9;border-radius:20px;min-width:130px}.accessories button.selected{border-color:#388061;background:#e8f2e4}.settings{max-width:730px;margin:auto;background:#fff;padding:30px;border-radius:26px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:22px 0}.setting-row select{font:inherit;min-height:48px;border:1px solid #d0d9c9;border-radius:12px;padding:8px;background:#f5f6ef}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.metric{background:#eef3e7;border-radius:15px;padding:15px}.metric strong{font-size:24px;display:block}.metric small{font-size:12px}.danger{background:#ffe8df;color:#8c3523;padding:12px 18px;border-radius:14px}.parent-gate{max-width:480px;margin:50px auto;text-align:center;background:#fff;border-radius:25px;padding:30px}.parent-gate input{font:inherit;min-height:50px;width:100px;text-align:center;border:2px solid #cbd9c8;border-radius:12px;margin:15px}.timer{font-variant-numeric:tabular-nums}.confetti{position:absolute;top:-20px;left:var(--x);font-size:22px;animation:confetti 2.8s linear forwards;pointer-events:none}.shake{animation:shake .3s}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);border-radius:18px;background:#153c38;color:white;padding:14px 24px;z-index:30;box-shadow:0 5px 30px #0002;max-width:90%;text-align:center;font-weight:750}#toast:empty{display:none}.pause-overlay{position:fixed;inset:0;background:#173e35cc;z-index:40;display:grid;place-items:center;padding:20px}.pause-overlay>div{background:#fff;border-radius:25px;padding:35px;text-align:center;max-width:480px}.pause-overlay button{margin:8px}.breath-orb{width:130px;height:130px;border-radius:50%;background:#98d5b5;border:10px solid white;display:grid;place-items:center;font-size:52px;animation:breathe 4s infinite}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@keyframes bob{50%{transform:translateY(-4px)}}@keyframes wave{0%,75%,100%{transform:rotate(0)}85%{transform:rotate(-12deg)}92%{transform:rotate(4deg)}}@keyframes blink{0%,44%,47%,100%{transform:scaleY(1)}45%,46%{transform:scaleY(.08)}}@keyframes float{50%{transform:translateY(-9px) rotate(3deg)}}@keyframes drift{to{transform:translate(35px,-35px) rotate(12deg)}}@keyframes pulse{50%{transform:scale(1.03)}}@keyframes breathe{50%{transform:scale(1.2)}}@keyframes confetti{to{transform:translateY(680px) rotate(360deg);opacity:0}}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
@media(max-width:900px){.shell{padding:18px 24px}.hero-copy{padding:38px 0 35px 30px}.hero h1{font-size:58px}.hero{min-height:470px}.hero-art{min-height:470px}.world-grid{gap:14px}.mode-card{padding:14px 12px;gap:10px}.mode-card strong{font-size:14px}.collection-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.shell{padding:14px}.topbar{margin-bottom:16px}.brand{font-size:16px}.brand-mark{font-size:21px;padding:6px 9px}.subbrand{font-size:8px}.toolbar{gap:5px}.pill{padding:9px 11px;font-size:12px}.icon-btn{padding:9px 11px}.hero{display:flex;flex-direction:column;min-height:0;border-radius:24px}.hero-copy{padding:28px 26px 0}.hero h1{font-size:54px;margin:18px 0 13px;letter-spacing:-3px}.hero p{font-size:14px;margin:8px 0;max-width:300px}.hero-art{min-height:310px}.hero-art .heroes{bottom:35px;left:20%;right:16%}.hero-art .person{max-width:140px}.hero-note{top:15px;right:20px;padding:10px;font-size:10px}.hero-names{left:26%;right:22%;bottom:14px}.name-label{font-size:10px;padding:7px 11px}.mode-grid{grid-template-columns:1fr}.mode-card{padding:12px 18px;min-height:78px}.mode-card small{font-size:12px}.mode-card strong{font-size:16px}.section-heading h2{font-size:21px}.world-grid{grid-template-columns:repeat(2,1fr);gap:12px}.world-art{height:125px}.world-art .world-icon{font-size:45px;left:34%}.world-card{min-height:225px}.world-info{padding:14px 12px}.world-info h2{font-size:15px}.world-info p{font-size:11px}.map-banner{padding:18px;gap:10px}.map-banner h1{font-size:25px}.map-banner .person{width:55px}.stage{padding:18px 12px;min-height:470px}.stage-title{font-size:20px;padding:12px 16px}.object-grid{gap:10px;grid-template-columns:repeat(3,1fr)}.object{height:78px;font-size:36px}.choices button{font-size:15px;min-width:110px;padding:14px}.sequence{gap:6px}.sequence span{font-size:30px;min-width:52px;padding:10px}.game-bottom{padding:10px;gap:10px}.game-bottom .person{width:46px}.game-head h1{font-size:18px}.collection-grid{grid-template-columns:repeat(2,1fr);gap:10px}.badge-card{padding:20px 10px}.reward{padding:26px 18px}.reward h1{font-size:30px}.reward-actions{flex-wrap:wrap}.settings{padding:20px}.setting-row{gap:10px}.metrics{grid-template-columns:repeat(2,1fr)}.toolbar .home-text{display:none}}
@media(max-height:600px) and (min-width:621px){.shell{padding-top:12px}.topbar{margin-bottom:12px}.stage{min-height:330px;padding:14px}.playfield{min-height:210px}.game-bottom{min-height:70px;margin:8px 0}.game-bottom .person{width:45px}.object{height:65px}.moving-field{height:210px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.character-tabs{display:flex;gap:12px;margin:20px 0}.customize-layout{display:grid;grid-template-columns:300px 1fr;gap:28px;margin:25px 0}.character-preview{position:sticky;top:15px;align-self:start;text-align:center;background:#e3eddc;border-radius:28px;padding:25px}.character-preview>.person{width:210px;height:285px}.pose-controls{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin:14px 0}.character-options h3{margin:5px 0;font-size:16px}.character-options .accessories{margin:10px 0 22px;gap:8px}.accessories strong,.accessories small{display:block;font-size:12px;margin-top:5px}.accessories small{color:#718170;font-size:10px}.character-options .accessories button{min-width:105px;padding:12px;flex:1}.arm-left{transform-origin:65px 135px}.arm-right{transform-origin:137px 137px}.leg-left{transform-origin:78px 205px}.leg-right{transform-origin:123px 205px}.pose-walk .leg-left,.pose-run .leg-left{animation:stride .8s ease-in-out infinite alternate}.pose-walk .leg-right,.pose-run .leg-right{animation:stride .8s ease-in-out infinite alternate-reverse}.pose-run .leg{animation-duration:.32s}.pose-run .avatar-motion{animation:run-bounce .32s infinite}.pose-walk .arm-left,.pose-run .arm-left{animation:stride .6s infinite alternate}.pose-run .arm-right{animation:stride .32s infinite alternate-reverse}.pose-jump .avatar-motion{animation:hero-jump .65s ease-in-out infinite}.pose-jump .arm-left,.pose-celebrate .arm-left{transform:rotate(145deg)}.pose-jump .arm-right,.pose-celebrate .arm-right{transform:rotate(-25deg);animation:none}.pose-point .arm-right{transform:rotate(70deg);animation:none}.pose-help .avatar-motion{transform:rotate(9deg);transform-origin:100px 240px}.pose-help .arm-right{transform:rotate(98deg);animation:none}.pose-help .arm-left{transform:rotate(-35deg)}.pose-celebrate .avatar-motion{animation:hero-celebrate .9s infinite}.runner-trail{height:240px;width:100%;position:relative;background:#ffffff4d;border-bottom:14px solid #6b9367;border-radius:20px;overflow:hidden}.runner-hero{position:absolute;left:8%;bottom:0;width:95px;transition:left .3s ease}.runner-star{position:absolute;bottom:120px;font-size:35px;transform:translateX(25px);animation:float 3s infinite}.character-preview h2{margin:0}@keyframes stride{from{transform:rotate(-18deg)}to{transform:rotate(18deg)}}@keyframes run-bounce{50%{transform:translateY(-8px)}}@keyframes hero-jump{50%{transform:translateY(-55px)}}@keyframes hero-celebrate{50%{transform:translateY(-12px) rotate(3deg)}}@media(max-width:700px){.customize-layout{grid-template-columns:1fr}.character-preview{position:relative;top:0}.character-preview>.person{height:225px;width:170px}.character-options .accessories button{min-width:90px}.character-options .accessories{flex-wrap:wrap}}
.gentle-hint{outline:3px solid #ffe593}.trail-bonus{margin-top:20px}.map-secret{float:right;font-size:32px;background:transparent;padding:5px 15px;animation:float 4s infinite}.keepsake{display:inline-block;padding:15px;font-size:45px}
/* The action adventure is the core game, with touch controls always in reach. */
.action-wrap{max-width:1200px;margin:0 auto}.action-game{background:#153e36;border-radius:26px;overflow:hidden;box-shadow:0 14px 40px #153e3614}.adventure-hud{display:flex;align-items:center;gap:13px;padding:14px 22px;color:#fff6dc;background:#214e43}.quest-icon{width:44px;height:44px;display:grid;place-items:center;background:#ffffff14;border-radius:13px;font-size:27px}.quest-title{display:block;font-size:16px}.quest-goal{display:block;font-size:12px;color:#c6ddc9;margin-top:3px}.run-stars{margin-left:auto;white-space:nowrap;font-size:18px;font-weight:850;background:#fff1bb;color:#315d46;border-radius:25px;padding:9px 17px}.adventure-viewport{position:relative;background:#cee5ca;aspect-ratio:960/510;isolation:isolate}.adventure-viewport canvas{display:block;width:100%;height:100%;touch-action:none}.adventure-bubble{position:absolute;bottom:12%;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#ffffeef5;color:#315e4a;max-width:85%;border-radius:18px;padding:12px 22px;text-align:center;font-size:16px;font-weight:850;transition:opacity .2s,transform .2s;box-shadow:0 5px 24px #173e3020}.adventure-bubble.visible{opacity:1;transform:translate(-50%,0)}.trail-location{position:absolute;bottom:10px;left:17px;font-size:11px;color:#fff4d7;letter-spacing:1px;font-weight:800;text-shadow:0 1px 2px #173d34}.adventure-controls{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 24px;background:#204b41}.direction-pad,.action-pad{display:flex;gap:12px}.adventure-controls button{min-height:74px;min-width:78px;background:#f6f2da;border:2px solid #fff8de;border-radius:23px;font-size:27px;font-weight:950;box-shadow:0 5px 0 #102e27;user-select:none;-webkit-user-select:none;touch-action:none}.adventure-controls button small{display:block;font-size:10px;letter-spacing:1.4px;margin-top:2px}.adventure-controls button:active{background:#d9eccb}.adventure-controls .jump-button{background:#ffd275;border-color:#ffe6a8;min-width:98px}.adventure-controls .interact-button{background:#b9d8b3;color:#3a634e;min-width:86px}.adventure-controls .interact-button.available{background:#ffda82;color:#345941;border-color:#fff0c3}.adventure-controls .hero-switch{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;background:#ffffff10;color:#faf7dc;font-size:14px;min-height:68px;border:1px solid #ffffff25;box-shadow:none;padding:5px 14px;min-width:170px;position:relative}.hero-switch .person{width:42px;height:53px}.hero-switch small{width:100%;font-size:8px!important;position:absolute;bottom:3px;left:0;text-align:center;color:#bed2bf}.adventure-tip{text-align:center;font-size:11px;color:#b7c9b5;padding:0 10px 12px;letter-spacing:.5px}.adventure-start{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#163e32b5;backdrop-filter:blur(3px);color:#fff9dc;text-align:center;padding:24px}.start-portrait .person{width:100px;height:135px;filter:drop-shadow(0 5px 10px #0002)}.adventure-start h2{font-size:29px;margin:8px 0 10px;letter-spacing:-1px}.adventure-start p{font-size:16px;max-width:420px;line-height:1.5;margin:0 0 18px}.adventure-start .primary{min-height:57px}.action-wrap .game-head h1{font-size:20px}.shell:has(.action-wrap){padding-top:14px;padding-bottom:16px}.shell:has(.action-wrap)>.topbar{margin-bottom:14px}
@media(max-width:650px){.adventure-hud{padding:10px 12px;gap:9px}.quest-icon{height:35px;width:35px;font-size:23px}.quest-title{font-size:13px}.quest-goal{font-size:10px;max-width:210px}.run-stars{font-size:14px;padding:7px 10px}.adventure-controls{padding:12px 10px;gap:7px}.direction-pad,.action-pad{gap:7px}.adventure-controls button{min-width:52px;min-height:66px;border-radius:16px;font-size:23px}.adventure-controls .jump-button{min-width:60px}.adventure-controls .interact-button{min-width:58px}.adventure-controls .hero-switch{min-width:80px;padding:0 5px;gap:0;font-size:10px}.hero-switch .person{width:28px;height:42px}.hero-switch small{font-size:6px!important;letter-spacing:.5px}.adventure-bubble{font-size:11px;padding:8px 12px;bottom:8%}.adventure-start{padding:12px}.adventure-start .start-portrait{display:none}.adventure-start h2{font-size:22px;margin:0 0 6px}.adventure-start p{font-size:12px;margin:0 0 10px;max-width:280px}.adventure-start .primary{font-size:14px;min-height:46px;padding:10px 17px}.adventure-tip{font-size:8px;padding-bottom:10px}.trail-location{font-size:7px;bottom:5px;left:10px}.action-wrap .game-head h1{font-size:14px}.action-game{border-radius:20px}.adventure-viewport{aspect-ratio:960/620}}
@media(orientation:landscape) and (max-height:650px){.shell:has(.action-wrap){padding:7px 15px}.shell:has(.action-wrap)>.topbar{display:none}.action-wrap .game-head{margin-bottom:5px}.action-wrap .game-head button{min-height:36px;padding:6px 13px}.action-game{border-radius:16px}.adventure-hud{padding:7px 14px}.quest-icon{width:31px;height:31px}.quest-title{font-size:13px}.quest-goal{font-size:10px}.run-stars{font-size:13px;padding:6px 12px}.adventure-viewport{height:calc(100dvh - 196px);min-height:190px;aspect-ratio:auto}.adventure-viewport canvas{object-fit:contain;background:#c4e6d6}.adventure-controls{padding:8px 15px}.adventure-controls button{min-height:56px}.adventure-tip{padding-bottom:7px;font-size:9px}.adventure-start .start-portrait{display:none}.adventure-start h2{font-size:22px}.adventure-start p{font-size:13px;margin-bottom:9px}.adventure-start .primary{font-size:14px;padding:10px 15px;min-height:46px}}
@media(min-width:651px) and (min-height:651px){.action-game{max-width:min(100%,calc((100dvh - 365px)*1.882));margin:0 auto}.adventure-start .start-portrait .person{height:105px;width:78px}.adventure-start h2{font-size:25px}.adventure-controls button{min-height:66px}.adventure-controls{padding:13px 20px}.adventure-hud{padding:11px 20px}}
@media(max-width:650px) and (orientation:portrait){.adventure-viewport{aspect-ratio:600/510}}
.quest-repeat{color:#fff5d0;background:#ffffff17;border:1px solid #ffffff22;border-radius:50%;font-size:18px;min-width:42px;min-height:42px;padding:5px}.quest-title{max-width:400px}@media(max-width:650px){.quest-repeat{min-width:32px;min-height:32px;font-size:15px}.quest-goal{max-width:185px}.adventure-hud{gap:7px}}
.objective-pictures{font-size:21px;letter-spacing:3px;margin-top:3px}.quest-goal{font-size:10px;color:#afc6b1}.picture-story{display:flex;align-items:center;justify-content:center;gap:12px;margin:14px 0 20px}.picture-panel{position:relative;width:140px;height:130px;background:#e7f0d8;border:3px solid #ffffdf;border-radius:20px;overflow:hidden;box-shadow:0 5px 0 #122e3020}.picture-panel .person{position:absolute;left:11px;bottom:-5px;width:75px;height:102px}.picture-scene{position:absolute;top:5px;right:9px;font-size:30px}.picture-item{position:absolute;right:7px;bottom:20px;font-size:33px}.picture-arrow{font-size:30px;color:#ffda82}.adventure-start .start-portrait{display:none}.adventure-start h2{font-size:23px}.adventure-start p{font-size:12px;max-width:400px;margin:0}.adventure-start .primary{font-size:24px;min-width:95px;padding:10px 25px}.picture-help{position:absolute;inset:0;background:#173e34cd;display:flex;flex-direction:column;align-items:center;justify-content:center;backdrop-filter:blur(3px);z-index:4}.voice-card{margin:20px 0;padding:18px;border-radius:20px;background:#eef3e9}.voice-card h3{margin:0 0 8px}.voice-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.voice-actions button,.audio-import{font-size:12px;padding:12px;min-height:48px}.audio-import{display:inline-flex;align-items:center;cursor:pointer;position:relative}.audio-import input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.arabic-line{font-size:28px;font-family:serif;margin:12px 0;color:#24533f}.adventure-controls .jump-button{position:relative}.jump-button .control-avatar{width:37px;height:48px;display:inline-block;vertical-align:middle}.jump-button .person{height:45px;width:34px}.jump-button small{font-size:8px!important}.direction-pad button{font-size:28px}.adventure-tip{font-size:9px}
@media(max-width:650px){.objective-pictures{font-size:17px;letter-spacing:1px}.quest-goal{display:none}.quest-title{font-size:11px}.picture-story{gap:8px;margin:12px 0}.picture-panel{width:105px;height:105px}.picture-panel .person{width:58px;height:80px;left:4px}.picture-scene{font-size:24px}.picture-item{font-size:27px}.picture-arrow{font-size:24px}.adventure-start h2{font-size:17px;margin-bottom:5px}.adventure-start p{display:none}.adventure-start .primary{min-height:43px;padding:5px 19px}.adventure-hud{padding:8px 11px}.adventure-bubble{font-size:10px}.adventure-tip{font-size:8px}}
@media(orientation:landscape) and (max-height:650px){.picture-story{margin:7px 0}.picture-panel{width:110px;height:95px}.picture-panel .person{height:76px;width:57px}.picture-item{font-size:27px}.picture-scene{font-size:24px}.adventure-start h2{font-size:15px;margin:0}.adventure-start p{display:none}.adventure-start .primary{padding:5px 16px;min-height:40px}.adventure-viewport{height:calc(100dvh - 205px)}.quest-goal{display:none}.objective-pictures{font-size:16px}.adventure-controls button{min-height:56px}.adventure-bubble{font-size:10px}}
.world3d-canvas{position:absolute;inset:0;width:100%;height:100%;display:block!important}.has-3d .adventure-viewport>canvas:not(.world3d-canvas){visibility:hidden}.two-tablets{margin-top:22px;width:100%}.room-panel{max-width:700px;margin:20px auto;text-align:center;background:#e6eedf;padding:30px;border-radius:28px}.room-panel .person{width:110px}.room-panel .primary,.room-panel .secondary{margin:10px}.room-code{font-size:48px;font-weight:950;letter-spacing:8px;background:#fff6c8;border-radius:20px;padding:20px;margin:20px}.join-controls{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;margin:20px 0}.join-controls input{font:inherit;min-height:54px;border:2px solid #c3d4bb;border-radius:15px;width:190px;text-align:center;font-size:22px}.host-links a{display:block;margin:10px;color:#295947}
.portrait-compare{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0}.reference-preview,.portrait-avatar{border-radius:20px;min-height:240px;background:#e4eddc;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px}.reference-preview img{width:100%;max-height:230px;object-fit:contain}.portrait-avatar .person{width:155px;height:210px}.portrait-studio>.audio-import{margin:8px}.portrait-studio .tiny{line-height:1.7}
.world-bell-strip{position:absolute;top:16px;left:50%;transform:translateX(-50%);background:#ffffe8eb;padding:10px 18px;border-radius:17px;color:#52705b;font-size:22px;gap:10px;pointer-events:none;white-space:nowrap;box-shadow:0 3px 16px #23463518;z-index:2}.has-3d .adventure-start,.has-3d .picture-help{z-index:4}.has-3d .adventure-bubble{z-index:3}
/* Immersive 3D edition: the world fills the display; controls float over it. */
.shell:has(.action-wrap){max-width:1600px;padding:8px 12px 12px}.shell:has(.action-wrap)>.topbar{display:none}.action-wrap{max-width:1600px}.action-wrap .game-head{margin:0 0 7px;min-height:40px}.action-wrap .game-head h1{font-size:17px}.action-game{position:relative;max-width:none!important;width:100%;border:1px solid #ffffff30;border-radius:24px;background:#263f32;box-shadow:0 20px 60px #142e3426}.adventure-hud{padding:10px 18px;background:#163a35;min-height:63px}.adventure-viewport{height:calc(100dvh - 127px);min-height:320px;aspect-ratio:auto!important}.adventure-controls{position:absolute;bottom:18px;left:0;right:0;z-index:5;background:none;padding:0 25px;pointer-events:none;gap:12px;align-items:flex-end}.adventure-controls>*{pointer-events:auto}.adventure-controls button{box-shadow:0 4px 0 #102f3460,0 10px 30px #133a3433;border:2px solid #fffcddcc;backdrop-filter:blur(10px);min-width:77px;min-height:76px;background:#fcf8e6e8;border-radius:25px}.adventure-controls .jump-button{min-width:90px;background:#ffd174ed;font-size:30px}.adventure-controls .interact-button{min-width:77px;background:#d4e6c9ed}.adventure-controls .hero-switch{background:#12392fc7;min-width:120px;max-width:180px;min-height:62px;margin-bottom:7px;box-shadow:0 8px 25px #17392c30}.adventure-tip{display:none}.adventure-bubble{bottom:145px;background:#fff9e5ed;box-shadow:0 7px 30px #193e3433;font-size:14px;padding:12px 20px}.trail-location{bottom:10px;left:50%;transform:translateX(-50%);background:#143c32aa;padding:5px 12px;border-radius:20px;white-space:nowrap}.direction-pad{position:relative;width:110px;height:110px}.direction-pad>[data-control]{position:absolute;top:0;opacity:0;width:48px;min-width:48px;height:48px;min-height:48px;z-index:-1}.move-joystick{position:absolute;inset:0;border-radius:50%;background:#173b35a8;border:2px solid #fff9d67a;box-shadow:0 9px 30px #16362a25,inset 0 0 22px #0002;backdrop-filter:blur(10px);touch-action:none;user-select:none;-webkit-user-select:none}.stick-arrows{position:absolute;inset:0;display:grid;place-content:center;line-height:30px;text-align:center;color:#ffffe8a6;font-size:19px;pointer-events:none}.move-stick{position:absolute;width:47px;height:47px;left:calc(50% - 23.5px);top:calc(50% - 23.5px);border-radius:50%;background:radial-gradient(circle at 35% 25%,#fffef0,#e3dabe);border:2px solid #ffffe7;box-shadow:0 5px 8px #102d3155;pointer-events:none}.camera-control{position:absolute;top:16px;right:15px;z-index:3;min-width:46px;min-height:46px;border-radius:50%;background:#fff8e5db;border:2px solid #fff8e7;font-size:21px;box-shadow:0 5px 20px #16382925}.home-3d-view{height:440px!important;min-height:0;position:relative}.hero-art:has(.home-3d-view){padding:0!important;overflow:hidden;min-height:440px;border-radius:28px}.hero-art:has(.home-3d-view) .hero-note{position:absolute;top:20px;left:25px;right:auto}.hero-art:has(.home-3d-view) .hero-names{position:absolute;bottom:25px;left:20px;right:20px;display:flex;justify-content:center;gap:24px}.adventure-start{background:linear-gradient(180deg,#13372fa8,#12392ee0);backdrop-filter:blur(7px)}.picture-panel{background:linear-gradient(140deg,#eff7d6,#abcbb0);box-shadow:0 8px 20px #0002}.objective-pictures{font-size:19px}.world-bell-strip{top:16px;font-size:20px}
@media(max-width:650px){.shell:has(.action-wrap){padding:5px 5px 8px}.action-wrap .game-head{min-height:35px;margin-bottom:4px}.action-game{border-radius:18px}.adventure-hud{padding:7px 10px;min-height:58px}.adventure-viewport{height:calc(100dvh - 107px);min-height:330px}.adventure-controls{bottom:20px;padding:0 12px;gap:7px}.direction-pad{width:93px;height:93px}.adventure-controls .hero-switch{min-width:67px;min-height:53px;font-size:10px;padding:0 3px}.adventure-controls .hero-switch .person{width:27px;height:37px}.adventure-controls .hero-switch small{display:none}.adventure-controls button{min-width:58px;min-height:65px;border-radius:22px;font-size:24px}.adventure-controls .jump-button{min-width:68px;font-size:29px}.adventure-controls .interact-button{min-width:59px}.action-pad{gap:7px}.adventure-bubble{bottom:132px;font-size:12px;padding:9px 14px}.home-3d-view{height:330px!important}.hero-art:has(.home-3d-view){min-height:330px}.camera-control{top:12px;right:10px;min-width:42px;min-height:42px}.objective-pictures{font-size:16px;letter-spacing:1px}.trail-location{font-size:8px;bottom:7px}}
@media(orientation:landscape) and (max-height:650px){.adventure-hud{min-height:48px;padding:5px 12px}.adventure-viewport{height:calc(100dvh - 98px);min-height:230px}.adventure-controls{bottom:15px;padding:0 20px}.direction-pad{width:94px;height:94px}.adventure-controls button{min-height:65px}.adventure-bubble{bottom:110px}.adventure-start h2{font-size:20px}.camera-control{right:15px;top:10px}}

/* Size the stage from the actual header, including wrapped picture clues. */
.shell:has(.action-wrap){height:100dvh;overflow:hidden;display:flex;flex-direction:column}
.action-wrap{display:flex;flex-direction:column;flex:1;min-height:0}
.action-wrap .game-head{flex-shrink:0}
.action-game{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.action-game .adventure-hud{flex-shrink:0}
.action-game .adventure-viewport{height:auto;min-height:0;flex:1}
.action-game .adventure-controls{flex-shrink:0}
