/* DradraWorld / touch-first game UI / no remote UI assets */
:root{color-scheme:light;--ink:#174f74;--deep:#14668c;--sky:#7cddfa;--yellow:#ffe45b;--hud:80px;--dock:82px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);font-family:ui-rounded,'Hiragino Maru Gothic ProN','Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,system-ui,sans-serif;font-weight:800;color:var(--ink);background:#72d5f6;font-synthesis:none}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}body{height:100dvh;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{color:inherit;cursor:pointer;border:0;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:transform .15s,filter .15s,box-shadow .15s}button:disabled{cursor:default;opacity:.48;filter:saturate(.4);transform:none!important}button:focus-visible,a:focus-visible{outline:4px solid #fa7f42;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:1000;line-height:1.35}button svg{pointer-events:none}svg{display:block;max-width:100%}button:active{transform:translateY(3px) scale(.97)}[hidden]{display:none!important}.icon,button>svg{width:25px;height:25px;flex-shrink:0}
#game-app,.app-shell{width:100%;height:100%;min-height:0}.app-shell{display:grid;grid-template-rows:calc(var(--hud) + var(--safe-top)) minmax(0,1fr) calc(var(--dock) + var(--safe-bottom));position:relative;background:linear-gradient(180deg,#6bcffa,#b6f1ff 58%,#98e4c4);isolation:isolate}.hud{z-index:10;position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:1200px;margin:auto;width:100%;height:100%;padding:calc(10px + var(--safe-top)) 24px 10px}.player-chip{display:flex;align-items:center;gap:9px;min-width:175px;padding:4px 15px 4px 5px;border:3px solid #fff;border-radius:21px;background:linear-gradient(#fff,#d6f2fd);box-shadow:0 4px 0 #2788b077;text-align:left}.avatar{display:grid;place-items:center;width:47px;height:47px;flex-shrink:0;border:2px solid #3b9ccb;border-radius:14px;background:linear-gradient(#96e5fc,#dafac0);overflow:hidden}.avatar>svg{width:51px;height:54px;margin-top:8px}.player-info{display:block;min-width:92px}.player-info strong{display:block;font-size:14px;line-height:1.35;white-space:nowrap}.player-info small{display:block;font-size:9px;line-height:1.55;color:#397291}.xp-track{display:block;height:7px;border:1.5px solid #24749a;border-radius:10px;background:#8bbbd0;overflow:hidden;margin-top:3px;width:100%}.xp-track i{display:block;height:100%;border-radius:6px;background:linear-gradient(#baf976,#73c94e)}.game-logo{font-size:clamp(21px,2.5vw,32px);font-weight:1000;letter-spacing:-1.5px;color:#fff3a5;-webkit-text-stroke:1.5px #1c6e99;paint-order:stroke fill;text-shadow:0 3px 0 #1c6e99,0 5px 0 #ffffff8c;transform:rotate(-2deg);line-height:1.1;white-space:nowrap}.game-logo small{display:block;font-size:10px;letter-spacing:2px;-webkit-text-stroke:0;color:white;text-shadow:0 1px 2px #21618f;text-align:center;margin-top:4px}.hud-actions{display:flex;gap:8px;align-items:center}.resource-pill{display:flex;align-items:center;justify-content:center;gap:7px;min-width:90px;height:40px;background:linear-gradient(#fffdf1,#ffe89a);border:3px solid #fff;border-radius:25px;box-shadow:0 3px 0 #2788b055;font-size:17px;font-weight:1000}.resource-pill svg{width:25px;height:25px;filter:drop-shadow(0 1px 0 #bc821a)}.round-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:46px;height:46px;padding:9px;background:linear-gradient(#fff,#d8f3ff);border:3px solid #fff;border-radius:16px;box-shadow:0 4px 0 #2788b077;color:#176a98}.round-button svg{width:24px;height:24px}.round-button:hover{filter:brightness(1.04)}.round-button.active{background:#ffe875;border-color:#fffbe2;color:#9e660b}
#screen{position:relative;min-height:0;overflow:hidden}.screen{position:relative;width:100%;height:100%;min-height:0;overflow:hidden}.scene-scape{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}.scene-scape>svg{width:100%;height:100%;max-width:none}.home-screen{max-width:1160px;margin:auto;isolation:isolate}.chapter-label{position:absolute;z-index:2;left:35px;top:22px;display:inline-flex;align-items:center;gap:6px;background:#ffffffe8;border:2px solid #fff;border-radius:30px;padding:5px 13px;font-size:11px;box-shadow:0 3px 0 #338ab333;color:#226486}.chapter-label svg{width:16px;height:16px}.chapter-title{position:absolute;z-index:2;top:65px;left:35px;color:white;font-size:clamp(29px,3.4vw,44px);line-height:1.35;letter-spacing:1px;-webkit-text-stroke:5px #166f96;paint-order:stroke fill;text-shadow:0 5px 0 #166f96}.chapter-title small{display:block;font-size:13px;letter-spacing:.2px;-webkit-text-stroke:0;text-shadow:0 2px 2px #328eaa;color:#e6ffff;margin-top:8px}.side-tools{position:absolute;top:40%;left:24px;z-index:4;display:flex;flex-direction:column;gap:15px}.side-tools.right{left:auto;right:24px}.side-tools button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:67px;height:74px;padding:7px;border:3px solid #fff;border-radius:21px;background:linear-gradient(#e9fbff,#72d2fa);box-shadow:0 5px 0 #258bb58c;font-size:10px;gap:3px}.side-tools button svg{width:33px;height:33px}.side-tools .badge{position:absolute;top:-7px;right:-7px;background:#ff755f;color:white;border:2px solid white;border-radius:15px;min-width:22px;height:22px;display:grid;place-items:center}.scene-hero{position:absolute;z-index:3;left:33%;bottom:32px;transform:translateX(-50%);width:clamp(225px,29vw,340px);height:clamp(240px,34vw,350px);padding:0;background:none;filter:drop-shadow(0 13px 0 #156a6c26);animation:hero-appear .5s cubic-bezier(.15,.8,.3,1) both}.scene-hero:active{transform:translateX(-50%) translateY(4px) scale(.97)}.scene-hero>svg{position:absolute;inset:0;width:100%;height:100%;max-width:none}.hero-speech{position:absolute;left:75%;top:8%;width:max-content;max-width:195px;border:3px solid #2882a3;border-radius:20px 20px 20px 4px;background:#fffef4;box-shadow:0 4px 0 #196f8e26;padding:10px 15px;font-size:14px;line-height:1.6;transform:rotate(3deg);color:#1a6688;text-align:left}.hero-speech::after{content:'';position:absolute;bottom:-12px;left:17px;border:7px solid transparent;border-top-color:#2882a3;transform:rotate(12deg)}.hero-name{position:absolute;left:50%;bottom:0;transform:translate(-50%,40%) rotate(-3deg);border:3px solid white;border-radius:20px;background:#278aba;color:white;font-size:16px;padding:5px 23px;white-space:nowrap;box-shadow:0 3px 0 #11638766;letter-spacing:2px}
.mission-select{position:absolute;z-index:5;right:35px;bottom:37px;width:370px;padding:15px 17px 13px;border:4px solid #fff;border-radius:29px;background:linear-gradient(#f9fffff5,#e7f9ff);box-shadow:0 6px 0 #1c7cae55,0 13px 26px #206b9830;text-align:center}.mission-switcher{display:flex;align-items:center;justify-content:space-between;gap:7px}.mission-switcher>.round-button{width:40px;height:43px;border-radius:14px;border:2px solid #fff;background:linear-gradient(#81d7fc,#44b8f0);color:white;box-shadow:0 3px 0 #2489bf}.mission-switcher>.round-button svg{width:21px;height:21px}.mission-heading{min-width:0;flex:1}.mission-heading small{font-size:10px;color:#5286a4;letter-spacing:1px}.mission-heading h2{font-size:23px;line-height:1.45;white-space:nowrap;letter-spacing:-.6px}.rating-stars{display:flex;justify-content:center;align-items:center;gap:4px;min-height:22px;margin-top:2px;color:#f3b738;font-size:20px;letter-spacing:2px;text-shadow:0 2px 0 #df9527}.rating-stars svg{width:20px;height:20px}.rating-stars .empty{filter:grayscale(1);opacity:.3}.mission-dots{display:flex;align-items:center;justify-content:center;gap:7px;margin:10px 0 12px}.mission-dots button{padding:0;width:8px;height:8px;border-radius:50%;background:#a4c9dc;box-shadow:0 1px 0 #fff}.mission-dots button.active{width:22px;background:#2d9fd7;border-radius:8px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:54px;padding:11px 24px;border-radius:18px;font-size:17px;font-weight:1000;line-height:1.4;text-align:center;letter-spacing:.3px}.primary{background:linear-gradient(#fff58a,#ffe563 43%,#ffd537);border:3px solid #fff8b5;border-bottom:4px solid #d99a2f;color:#72500c;text-shadow:0 1px 0 #fff8cf;box-shadow:0 5px 0 #a77523,0 8px 14px #876c2424}.primary:hover{filter:brightness(1.045)}.primary>svg{width:26px;height:26px}.secondary{background:linear-gradient(#fbffff,#d6f1ff);color:#246f96;border:3px solid #fff;box-shadow:0 4px 0 #7bbbd5;font-size:14px;min-height:48px;padding:9px 20px}.mission-launch{width:100%;font-size:22px;min-height:67px;border-radius:21px;gap:10px}.mission-launch>svg{width:29px;height:29px}.mission-launch small{margin-left:auto;display:flex;align-items:center;gap:3px;border-radius:11px;background:#ebbe3f;padding:5px 8px;color:#80500c;text-shadow:0 1px 0 #ffe992;font-size:12px;white-space:nowrap}.mission-launch small svg{width:17px;height:17px}.quick-tip{position:absolute;z-index:6;right:35px;bottom:10px;width:370px;text-align:center;font-size:10px;line-height:1.7;color:#438495;text-shadow:0 1px #e5fff5}.quick-tip svg{display:inline-block;vertical-align:middle;width:13px;height:13px}
.dock{position:relative;z-index:10;height:100%;display:flex;justify-content:center;align-items:flex-start;gap:10px;padding:8px 15px calc(8px + var(--safe-bottom));background:linear-gradient(#f6fdff,#d9f3ff);border-top:4px solid #fff;box-shadow:0 -5px 0 #5bbbd066,0 -12px 30px #1f79951a}.dock-button{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:57px;width:135px;padding:3px 15px 6px;background:transparent;border-radius:19px;font-size:11px;font-weight:1000;color:#79a0b4;line-height:1.25}.dock-button svg{width:31px;height:31px;filter:grayscale(.4);transition:transform .2s}.dock-button.active{background:linear-gradient(#fcfaca,#ffe899);color:#916014;box-shadow:0 3px 0 #dfc375;border:2px solid #fff3ac;padding-top:1px}.dock-button.active svg{filter:none;transform:translateY(-3px) scale(1.09)}.dock-button.active::after{content:'';position:absolute;top:-9px;left:50%;transform:translateX(-50%);width:32px;height:5px;border-radius:9px;background:#ffdc4c;border:2px solid #fff8ce}.dock-button .dot{position:absolute;top:3px;right:31%;width:10px;height:10px;background:#ff785c;border:2px solid #fff;border-radius:50%}
.panel-screen{max-width:1100px;margin:auto;padding:20px 30px 22px;display:flex;flex-direction:column;gap:15px;isolation:isolate}.panel-screen::before{content:'';position:absolute;inset:5px 10px 8px;background:#effcffbc;border:4px solid #ffffffa6;border-radius:36px;z-index:-1;box-shadow:0 6px 0 #3aa4c633}.panel-heading{flex-shrink:0;text-align:center;padding:5px 12px}.panel-heading small{color:#3785a5;display:block;font-size:10px;letter-spacing:2px;margin-bottom:4px}.panel-heading h1{font-size:30px;color:#1d6a92;text-shadow:0 2px 0 white}.panel-heading p{font-size:12px;color:#6392a6;margin-top:6px;line-height:1.6}.panel-content{flex:1;min-height:0;display:flex;flex-direction:column;gap:14px;position:relative}.section-summary{flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;font-size:12px;color:#347d9e;line-height:1.6}.section-summary svg{width:21px;height:21px}.hero-detail{order:0;display:flex;align-items:center;justify-content:center;gap:28px;flex:1;min-height:0;padding:8px 20px;background:radial-gradient(ellipse at 35% 50%,#c7f1c955,transparent 60%)}.hero-detail>svg,.hero-detail>.hero-art>svg{width:190px;height:230px;max-height:100%;flex-shrink:0;filter:drop-shadow(0 7px 0 #4a9fb321)}.hero-detail>div{max-width:340px}.hero-detail h2{font-size:28px;margin-bottom:6px}.hero-detail p,.hero-description{font-size:13px;line-height:1.8;color:#56859b;margin-bottom:12px}.hero-detail .primary{font-size:15px;min-height:48px;min-width:220px;padding:8px 20px}.hero-detail .role-label{display:inline-flex;background:#fff8c9;border:2px solid white;border-radius:20px;padding:4px 11px;font-size:10px;margin-bottom:7px;color:#9c7829}.outfit-row{display:flex;gap:7px;margin:8px 0 14px}.outfit-button{padding:7px 11px;min-height:35px;font-size:10px;background:#fff;border:2px solid #d2e9f1;border-radius:12px;color:#54819b;box-shadow:0 2px 0 #b5d4df}.outfit-button.selected{background:#fff2a1;border-color:#fff7d6;color:#92721e;box-shadow:0 2px 0 #d5b44b}.hero-roster{order:1;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;flex-shrink:0}.hero-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;height:124px;padding:7px 4px 8px;background:linear-gradient(#fff,#ddf5ff);border:3px solid #fff;border-radius:22px;box-shadow:0 4px 0 #80bad28c;font-size:12px;color:#52839c}.hero-card>svg{width:77px;height:80px;max-width:100%;filter:drop-shadow(0 3px 0 #2d6e7f1a)}.hero-card.selected{background:linear-gradient(#fff7ac,#ffe579);border-color:white;color:#82611a;box-shadow:0 5px 0 #d0a23e;transform:translateY(-3px)}.hero-card.selected::before{content:'✓';position:absolute;right:4px;top:3px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#64bc73;border:2px solid white;color:white;font-size:12px;z-index:2}.hero-card strong{font-size:12px;white-space:nowrap}
.collection-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;flex:1;min-height:0;align-content:center}.collection-card{position:relative;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;min-height:235px;padding:20px 10px;border:3px solid #fff;border-radius:25px;background:linear-gradient(#fffef0,#eefbd4);box-shadow:0 5px 0 #67b59877;text-align:center}.collection-card>svg,.collection-art{width:100px;height:115px;max-height:36%;filter:drop-shadow(0 5px 0 #4e9e711a)}.collection-art svg{width:100%;height:100%}.collection-card strong{font-size:15px;line-height:1.45}.mastery-stars{display:flex;gap:3px;justify-content:center;min-height:20px;color:#f3ba2c;font-size:21px;letter-spacing:2px;text-shadow:0 2px 0 #cf9632}.mastery-stars svg{width:19px;height:19px}.collection-card .count,.collection-card>small{font-size:11px;color:#478770;border-radius:20px;background:#d8efd3;padding:5px 11px}.collection-card.locked{background:linear-gradient(#eaf4fa,#d3e5ed);box-shadow:0 5px 0 #8ab9ca88;color:#7f9eaa}.collection-card.locked>svg,.collection-card.locked .collection-art{filter:grayscale(1);opacity:.38}.collection-card.locked .mastery-stars{filter:grayscale(1);opacity:.5}.quest-list{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0;justify-content:center;max-width:780px;width:100%;margin:auto}.quest-card{position:relative;display:flex;align-items:center;gap:16px;min-height:105px;padding:16px 20px;background:linear-gradient(#fff,#effcff);border:3px solid #fff;border-radius:23px;box-shadow:0 5px 0 #79b6d06b}.quest-card>.icon,.quest-card>svg{width:55px;height:55px;flex-shrink:0;padding:7px;border-radius:18px;background:#dbf3ff}.quest-card>div{min-width:0;flex:1}.quest-card h3{font-size:17px}.quest-card p{font-size:11px;line-height:1.6;color:#7196a8;margin-top:4px}.quest-progress{display:block;height:10px;border:2px solid white;border-radius:20px;background:#d2e6ed;box-shadow:0 1px 0 #b1cfdb;overflow:hidden;width:min(100%,370px);margin-top:9px}.quest-progress i{display:block;height:100%;background:linear-gradient(#a6ec76,#69c764);border-radius:20px}.quest-reward{display:flex;align-items:center;justify-content:center;gap:5px;flex-shrink:0;min-width:62px;color:#bd861e;font-size:15px}.quest-reward svg{width:23px;height:23px}.quest-card .claim{font-size:12px;min-height:44px;padding:8px 15px;flex-shrink:0}.quest-card.completed{background:linear-gradient(#fffef1,#f0fbcf)}
.toast,#toast{position:fixed;left:50%;bottom:calc(var(--dock) + var(--safe-bottom) + 15px);z-index:100;transform:translate(-50%,15px);max-width:calc(100% - 30px);padding:12px 22px;border:3px solid white;border-radius:22px;background:#246e94f5;color:white;box-shadow:0 5px 0 #17435a3b;font-size:13px;line-height:1.65;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;width:max-content}.toast.visible,.toast.show,#toast.visible,#toast.show{transform:translate(-50%,0);opacity:1}
dialog#overlay,.overlay-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:linear-gradient(155deg,#a9ebff,#e0f9ff 52%,#c6f2d7);color:var(--ink);overflow:hidden;box-shadow:none}dialog#overlay::backdrop{background:#27678b66}#overlay-content{height:100%;width:100%;overflow:hidden}dialog[open]{animation:screen-enter .18s ease-out}.play-screen{height:100%;min-height:0;max-width:1060px;margin:auto;padding:calc(16px + var(--safe-top)) 28px calc(20px + var(--safe-bottom));display:flex;flex-direction:column;gap:12px;position:relative;overflow:hidden}.play-header{display:flex;align-items:center;gap:14px;flex-shrink:0;min-height:52px}.play-header>.round-button{background:#fff;box-shadow:0 4px 0 #89c5d9}.play-title{min-width:0;flex:1}.play-title small{display:block;font-size:10px;letter-spacing:1px;color:#4b94b0;margin-bottom:2px}.play-title h2{font-size:23px;line-height:1.35}.play-pips{display:flex;align-items:center;gap:6px;flex-shrink:0}.play-pips i{display:block;width:11px;height:11px;border:2px solid white;border-radius:50%;background:#acd2df;box-shadow:0 1px 0 #7ab0c4}.play-pips i.active,.play-pips i.done{background:#f7ca36;box-shadow:0 1px 0 #d5a339}.game-step,#play-progress{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:31px;border:2px solid #fff;border-radius:20px;padding:4px 10px;background:#ffffffaf;font-size:11px;color:#4d8ba8;white-space:nowrap}.read-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:#ffffffb5;border:2px solid white;border-radius:16px;min-height:43px;padding:8px 12px;color:#4086a2;font-size:11px;flex-shrink:0;box-shadow:0 3px 0 #a3cfdf}.read-button svg{width:21px;height:21px}.play-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;position:relative;overflow:hidden}.play-instruction{position:relative;flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:14px;text-align:center;padding:9px 18px;min-height:74px;border:3px solid #fff;border-radius:25px;background:#ffffffb8;box-shadow:0 4px 0 #8bc6d43b}.guide-dino{width:49px;height:56px;flex-shrink:0}.guide-dino svg{height:100%;width:100%}.play-instruction h2{font-size:24px;color:#256c8f}.play-instruction p{font-size:12px;color:#5b91a4;line-height:1.6;margin-top:4px}.play-arena{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:0;gap:10px}.arena-art{display:flex;align-items:center;justify-content:center;min-height:0;height:100%;width:100%;position:relative;z-index:1}.arena-art>svg{max-height:100%;height:100%;max-width:520px;width:auto;padding:12px}.work-stage{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;max-height:400px;border:3px solid #fff;border-radius:31px;background:radial-gradient(ellipse at 50% 38%,#ffffffc4,#d8f4f97d 72%);box-shadow:0 5px 0 #68afc326,inset 0 0 28px #ffffff4d;overflow:hidden}.work-stage::after{content:'';position:absolute;bottom:13%;left:50%;transform:translateX(-50%);width:45%;height:17%;border-radius:50%;background:#2e869f12;z-index:0;pointer-events:none}.work-stage>svg{width:auto;height:100%;max-height:300px;max-width:90%;position:relative;z-index:1;padding:14px}.work-stage>button:not(.catch-star){z-index:3}.step-caption{font-size:12px;line-height:1.6;text-align:center;flex-shrink:0;color:#558ea3}.progress-track{position:relative;width:min(80%,340px);height:16px;border:3px solid white;border-radius:20px;background:#9cc9d8;box-shadow:0 2px 0 #4f9bb755;overflow:hidden;margin:0 auto;flex-shrink:0}.progress-track i{display:block;height:100%;background:linear-gradient(#c5f983,#75cd54);border-radius:20px;transition:width .2s ease}.choice-row{display:flex;align-items:stretch;justify-content:center;gap:12px;flex-shrink:0;width:100%;margin:auto}.choice{position:relative;min-width:100px;max-width:180px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:105px;padding:9px 8px;background:linear-gradient(#fff,#edfaff);border:3px solid #fff;border-radius:22px;box-shadow:0 5px 0 #7ebdd5;font-size:14px;font-weight:1000;line-height:1.4}.choice>svg{width:62px;height:56px;max-height:58px;filter:drop-shadow(0 3px 0 #488ba31a)}.choice>span{display:block}.choice.selected{background:linear-gradient(#fffbba,#ffeb77);border-color:#fffbd9;box-shadow:0 5px 0 #d8ae3c;color:#8c691d;transform:translateY(-3px)}.choice.selected::after{content:'✓';position:absolute;top:-8px;right:-5px;display:grid;place-items:center;width:23px;height:23px;border:2px solid #fff;border-radius:50%;background:#67c777;color:white;font-size:13px;box-shadow:0 2px 0 #368f49}.choice .number{font-size:34px;line-height:1.3;color:#2786ae}.action-bar{display:flex;align-items:center;justify-content:center;gap:13px;flex-shrink:0;padding:2px 0 5px}.action-bar .primary{min-width:230px}.action-bar .secondary{min-width:130px}.feedback{min-height:22px;flex-shrink:0;color:#277d83;font-size:13px;text-align:center;line-height:1.7;font-weight:900}.feedback.error{color:#ce6b45}.tap-action{position:absolute;z-index:4;bottom:17px;left:50%;transform:translateX(-50%);min-width:210px;max-width:85%;font-size:17px;white-space:nowrap}.tap-action:active{transform:translateX(-50%) translateY(3px) scale(.97)}.parcel-row{display:flex;justify-content:center;align-items:center;gap:10px;min-height:0;max-height:100%;width:100%;padding:20px;z-index:1;position:relative}.parcel-row>svg,.parcel-row>span{height:95px;width:105px;max-width:26%;max-height:100%;filter:drop-shadow(0 7px 0 #216d8a17)}.parcel-row>span>svg{width:100%;height:100%}.recipe-line{position:absolute;top:14px;left:0;right:0;z-index:3;display:flex;align-items:center;justify-content:center;gap:9px;min-height:42px;font-size:15px;line-height:1.4;color:#4c8196}.recipe-chip{display:inline-flex;align-items:center;gap:6px;border:2px solid white;border-radius:20px;padding:5px 12px;background:#ffffffe6;font-size:12px;line-height:1.4;white-space:nowrap;box-shadow:0 2px 0 #8dbed238}.recipe-chip svg{width:23px;height:25px}.recipe-chip i{height:15px;width:15px;border-radius:50%;background:var(--chip-color,#89d2d7);box-shadow:inset 0 -3px 0 #00000010}.star-field{position:absolute;inset:0;overflow:hidden;z-index:2}.catch-star{position:absolute;display:grid;place-items:center;width:60px;height:60px;border:0;border-radius:50%;padding:4px;background:radial-gradient(#fffbdc88,transparent 70%);animation:star-pulse 2s ease-in-out infinite;filter:drop-shadow(0 3px 0 #d9972840)}.catch-star>svg{width:51px;height:51px}.catch-star.caught{visibility:hidden;pointer-events:none}.growth-art{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;z-index:1}.growth-art>svg{height:100%;width:auto;max-width:80%;max-height:320px;padding:9px}.stage-counter{position:absolute;top:15px;right:16px;background:#fffef2;border:3px solid white;border-radius:20px;padding:5px 13px;font-size:13px;z-index:4;color:#2787a5}.stage-counter svg{width:19px;height:19px;display:inline-block;vertical-align:middle}
.result-screen{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;max-width:1000px;height:100%;min-height:0;margin:auto;padding:calc(23px + var(--safe-top)) 24px calc(25px + var(--safe-bottom));overflow:hidden;text-align:center;background:radial-gradient(ellipse at 50% 42%,#fffbd2c9 0 13%,#ffffff00 65%)}.result-title{font-size:39px;line-height:1.35;color:#fff;-webkit-text-stroke:5px #2787ae;paint-order:stroke fill;text-shadow:0 5px 0 #236b96;z-index:2;letter-spacing:2px}.result-title small{display:block;font-size:12px;-webkit-text-stroke:0;text-shadow:none;color:#2e8aa3;margin-bottom:7px;letter-spacing:2px}.result-rays{position:absolute;z-index:-1;inset:-50%;background:repeating-conic-gradient(from 0deg,#fff9ba55 0deg 12deg,transparent 12deg 24deg);animation:rays-turn 60s linear infinite;pointer-events:none}.result-hero{position:relative;display:flex;align-items:center;justify-content:center;width:220px;height:220px;filter:drop-shadow(0 9px 0 #5fa09b21);flex-shrink:1;min-height:0;animation:hero-appear .5s cubic-bezier(.15,.8,.3,1) both}.result-hero>svg{width:100%;height:100%}.result-object{width:120px;height:100px;display:flex;align-items:center;justify-content:center;flex-shrink:1;min-height:0;margin-top:-45px;margin-left:145px;z-index:3;filter:drop-shadow(0 6px 0 #6a9eaa26)}.result-object>svg{width:100%;height:100%}.result-stars{display:flex;justify-content:center;gap:10px;color:#f4bd25;font-size:42px;text-shadow:0 3px 0 #d99425;z-index:2}.result-stars svg{width:45px;height:45px;filter:drop-shadow(0 3px 0 #d39422);animation:star-pop .5s ease-out both}.result-stars svg:nth-child(2){animation-delay:.16s;transform:translateY(-7px)}.result-stars svg:nth-child(3){animation-delay:.32s}.reward-strip{display:flex;justify-content:center;align-items:center;gap:15px;background:#fffdf0df;border:3px solid #fff;border-radius:19px;padding:9px 24px;font-size:15px;line-height:1.6;box-shadow:0 4px 0 #7cbbaa40;color:#9a771a;z-index:2}.reward-strip>span{display:flex;align-items:center;gap:6px}.reward-strip svg{width:24px;height:24px}.mastery-label{font-size:12px;line-height:1.6;color:#488d99;z-index:2}.result-buttons{display:flex;justify-content:center;align-items:center;gap:13px;width:min(100%,540px);margin-top:4px;flex-shrink:0;z-index:3}.result-buttons .primary{flex:1;min-height:59px;font-size:18px}.result-buttons .secondary{min-height:52px}.confetti{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}.confetti span{position:absolute;top:-20px;left:var(--x,50%);width:10px;height:15px;background:var(--color,#f8c744);border-radius:3px;opacity:0;animation:confetti-fall 3s ease-out var(--delay,0s) both}.confetti span:nth-child(3n){border-radius:50%;width:12px;height:12px}.confetti span:nth-child(3n+1){background:#f88585}.confetti span:nth-child(4n){background:#6ccddd}.confetti span:nth-child(5n){background:#a5d96a}
.settings-screen{height:100%;max-width:660px;margin:auto;padding:calc(23px + var(--safe-top)) 28px calc(23px + var(--safe-bottom));display:flex;flex-direction:column;gap:16px;overflow:hidden}.settings-screen h1{font-size:29px;text-align:center;margin:10px 0;color:#246e94}.settings-screen .play-header{flex-shrink:0}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 21px;border:3px solid white;border-radius:22px;background:#ffffffbc;box-shadow:0 4px 0 #82bdd240;min-height:80px;flex-shrink:0}.setting-row strong{font-size:16px}.setting-row small{display:block;font-size:11px;line-height:1.7;color:#658fa2;margin-top:5px}.setting-row button{flex-shrink:0}.settings-note{font-size:12px;line-height:1.95;color:#52859a;text-align:center;padding:10px 4px;max-width:540px;margin:auto;min-height:0}.settings-actions{display:flex;gap:12px;justify-content:center;flex-shrink:0}.settings-actions .primary,.settings-actions .secondary{min-width:160px}.toggle{position:relative;width:61px;height:35px;border:3px solid #fff;border-radius:24px;background:#adc4d0;box-shadow:0 2px 0 #8cafc0}.toggle::after{content:'';position:absolute;left:3px;top:3px;width:23px;height:23px;border-radius:50%;background:#fff;box-shadow:0 2px 2px #5791a733;transition:left .15s}.toggle.active,.toggle[aria-checked=true]{background:#6ecc81}.toggle.active::after,.toggle[aria-checked=true]::after{left:29px}.parent-page{min-height:0;flex:1;display:flex;flex-direction:column;justify-content:center;gap:16px;padding:20px 26px;background:#ffffffb5;border:3px solid white;border-radius:27px}.parent-page h2{font-size:21px}.parent-page p{font-size:13px;line-height:2;color:#507f96}.parent-page ul{padding-left:20px;font-size:12px;line-height:1.9;color:#507f96;margin:0}.parent-pagination{display:flex;gap:15px;align-items:center;justify-content:center;flex-shrink:0}.parent-pagination small{font-size:12px;color:#5f91a4}.empty-message{font-size:13px;line-height:1.8;text-align:center;color:#5b90a5}
@keyframes hero-appear{from{opacity:0;translate:0 14px;scale:.93}to{opacity:1;translate:0 0;scale:1}}@keyframes screen-enter{from{opacity:0;transform:scale(1.025)}to{opacity:1;transform:scale(1)}}@keyframes star-pulse{0%,100%{scale:1;rotate:-6deg}50%{scale:1.1;rotate:7deg}}@keyframes star-pop{from{opacity:0;scale:.2;rotate:-25deg}to{opacity:1;scale:1;rotate:0deg}}@keyframes rays-turn{to{rotate:360deg}}@keyframes confetti-fall{0%{opacity:0;transform:translateY(-15px) rotate(0)}10%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translateY(100dvh) rotate(540deg)}}
@media(min-width:1400px){.hud{max-width:1320px}.home-screen{max-width:1280px}.chapter-label{left:50px;top:30px}.chapter-title{left:50px;top:77px;font-size:46px}.scene-hero{width:360px;height:390px;bottom:50px}.mission-select{right:55px;bottom:50px;width:400px}.mission-heading h2{font-size:26px}.mission-launch{min-height:74px}.quick-tip{right:55px;width:400px;bottom:20px}}
/* Portrait layouts keep every game action in the thumb zone. */
@media(max-width:760px) and (min-height:501px){:root{--hud:75px;--dock:79px}.hud{padding:calc(8px + var(--safe-top)) 13px 8px;gap:10px}.player-chip{gap:6px;min-width:0;max-width:180px;padding:3px 9px 3px 4px;border-radius:18px;border-width:2px}.avatar{width:42px;height:42px;border-radius:13px}.avatar>svg{width:46px;height:47px;margin-top:7px}.player-info{min-width:80px}.player-info strong{font-size:12px}.player-info small{font-size:8px}.xp-track{height:6px}.game-logo{display:none}.hud-actions{gap:6px}.resource-pill{min-width:68px;height:35px;font-size:15px;border-width:2px;gap:4px}.resource-pill svg{width:22px;height:22px}.hud-actions>.round-button{width:37px;height:39px;border-radius:13px;padding:7px;border-width:2px;box-shadow:0 3px 0 #2788b066}.hud-actions>.round-button svg{width:20px;height:20px}.chapter-label{left:20px;top:13px;padding:4px 10px;font-size:9px}.chapter-title{left:20px;top:51px;font-size:31px;-webkit-text-stroke-width:4px;letter-spacing:0;text-shadow:0 4px 0 #166f96}.chapter-title small{font-size:11px;margin-top:5px}.scene-hero{left:48%;bottom:246px;height:min(34dvh,285px);width:min(69vw,295px)}.hero-speech{left:67%;top:6%;max-width:135px;font-size:11px;line-height:1.6;padding:7px 10px;border-width:2px;border-radius:16px 16px 16px 3px}.hero-speech::after{bottom:-10px;border-width:6px;left:13px}.hero-name{font-size:13px;padding:4px 18px;bottom:6px;letter-spacing:1px}.mission-select{width:calc(100% - 36px);max-width:440px;right:50%;transform:translateX(50%);bottom:33px;border-radius:25px;padding:12px 13px 13px;border-width:3px}.mission-heading h2{font-size:23px;line-height:1.35}.mission-heading small{font-size:9px}.mission-switcher>.round-button{width:36px;height:39px;border-radius:13px}.rating-stars{font-size:18px;min-height:19px}.rating-stars svg{width:18px;height:18px}.mission-dots{margin:9px 0 10px}.mission-launch{min-height:60px;font-size:21px;padding:9px 16px;border-radius:19px;gap:8px}.mission-launch>svg{width:26px;height:26px}.mission-launch small{font-size:11px;padding:5px 7px}.quick-tip{right:0;left:0;width:100%;bottom:9px;font-size:9px;line-height:1.6}.side-tools{left:12px;top:32%;gap:12px}.side-tools.right{right:12px}.side-tools button{width:51px;height:60px;font-size:8px;border-width:2px;border-radius:17px;box-shadow:0 4px 0 #258bb56b}.side-tools button svg{width:27px;height:27px}.dock{gap:3px;padding:7px 8px calc(8px + var(--safe-bottom))}.dock-button{flex:1;width:auto;max-width:130px;min-height:57px;font-size:10px;padding:4px 5px;border-radius:17px;gap:3px}.dock-button svg{width:29px;height:29px}.dock-button.active{padding-top:2px}.dock-button .dot{right:24%}.panel-screen{padding:12px 18px 17px;gap:10px}.panel-screen::before{inset:2px 8px 5px;border-width:3px;border-radius:29px}.panel-heading{padding:3px 6px}.panel-heading small{font-size:8px;letter-spacing:1.4px;margin-bottom:3px}.panel-heading h1{font-size:25px}.panel-heading p{font-size:10px;margin-top:5px}.panel-content{gap:10px}.hero-detail{padding:0;gap:10px;min-height:180px}.hero-detail>svg,.hero-detail>.hero-art>svg{width:125px;height:155px}.hero-detail>div{max-width:190px}.hero-detail h2{font-size:21px;margin-bottom:5px}.hero-detail p,.hero-description{font-size:10px;line-height:1.8;margin-bottom:8px}.hero-detail .role-label{font-size:8px;padding:3px 8px;margin-bottom:5px}.hero-detail .primary{min-width:0;width:100%;font-size:12px;min-height:43px;padding:6px 11px;border-radius:15px}.outfit-row{gap:5px;margin:6px 0 10px}.outfit-button{font-size:8px;padding:5px 7px;min-height:31px;border-radius:10px}.hero-roster{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.hero-card{height:103px;padding:5px 3px 7px;border-radius:18px;gap:2px;border-width:2px}.hero-card>svg{height:68px;width:63px}.hero-card strong{font-size:10px}.hero-card.selected::before{width:18px;height:18px;font-size:10px;right:2px;top:2px}.section-summary{font-size:10px;gap:5px}.section-summary svg{width:18px;height:18px}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:10px;align-content:stretch}.collection-card{min-height:0;gap:4px;padding:8px 5px;border-radius:20px;border-width:2px;box-shadow:0 4px 0 #67b59866}.collection-card>svg,.collection-art{height:65px;width:70px;max-height:45%}.collection-card strong{font-size:11px}.mastery-stars{min-height:18px;font-size:17px;gap:2px;letter-spacing:1px}.mastery-stars svg{width:16px;height:16px}.collection-card .count,.collection-card>small{font-size:9px;padding:3px 9px}.collection-card:last-child{grid-column:1/-1;display:grid;grid-template-columns:85px 1fr;grid-template-rows:1fr 1fr;column-gap:10px;text-align:left;padding:8px 24px}.collection-card:last-child>svg,.collection-card:last-child .collection-art{grid-column:1;grid-row:1/4;width:75px;height:75px;max-height:100%}.collection-card:last-child strong{align-self:end}.collection-card:last-child .mastery-stars{justify-content:flex-start}.collection-card:last-child .count,.collection-card:last-child>small{grid-column:2;max-width:max-content}.quest-list{gap:12px}.quest-card{gap:10px;padding:13px 11px;min-height:112px;border-width:2px;border-radius:21px}.quest-card>.icon,.quest-card>svg{width:43px;height:43px;border-radius:14px;padding:6px}.quest-card h3{font-size:13px}.quest-card p{font-size:9px;margin-top:3px}.quest-progress{height:8px;margin-top:7px}.quest-reward{min-width:40px;font-size:11px;gap:3px}.quest-reward svg{width:18px;height:18px}.quest-card .claim{font-size:10px;padding:7px 9px;min-height:44px;border-radius:13px}.play-screen{padding:calc(11px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));gap:11px}.play-header{gap:9px;min-height:46px}.play-header>.round-button{width:42px;height:43px;padding:8px;border-radius:15px}.play-title small{font-size:8px;letter-spacing:.5px}.play-title h2{font-size:17px}.play-pips{gap:4px}.play-pips i{width:8px;height:8px;border-width:1.5px}.game-step,#play-progress{font-size:9px;min-height:27px;padding:4px 7px}.read-button{font-size:0;padding:8px;width:40px;min-height:42px;border-radius:14px;gap:0}.read-button svg{width:21px;height:21px}.play-body{gap:10px}.play-instruction{gap:9px;padding:10px 11px;min-height:79px;border-width:2px;border-radius:22px}.guide-dino{width:39px;height:45px}.play-instruction h2{font-size:19px;line-height:1.5}.play-instruction p{font-size:10px;line-height:1.7;margin-top:3px}.work-stage{border-width:2px;border-radius:25px;max-height:none}.arena-art>svg,.work-stage>svg{max-width:96%;max-height:290px;padding:9px}.choice-row{gap:9px}.choice{min-width:0;min-height:97px;max-width:160px;padding:7px 5px;gap:4px;border-width:2px;border-radius:19px;font-size:12px;box-shadow:0 4px 0 #7ebdd5}.choice>svg{width:51px;height:48px}.choice.selected{box-shadow:0 4px 0 #d8ae3c}.choice.selected::after{width:21px;height:21px;font-size:11px}.choice .number{font-size:29px}.action-bar{gap:10px;padding-bottom:4px}.action-bar .primary{font-size:16px;min-width:0;flex:1;min-height:55px;padding:10px 12px;border-radius:17px}.action-bar .secondary{font-size:12px;min-width:0;min-height:48px;padding:9px 13px;border-radius:16px}.feedback{font-size:11px;min-height:20px}.step-caption{font-size:10px}.recipe-line{top:9px;gap:5px;min-height:37px;font-size:12px}.recipe-chip{font-size:10px;padding:4px 8px;gap:4px}.recipe-chip svg{width:20px;height:22px}.recipe-chip i{width:12px;height:12px}.tap-action{font-size:15px;min-height:50px;bottom:15px;min-width:190px;padding:8px 15px}.parcel-row{padding:14px;gap:4px}.parcel-row>svg,.parcel-row>span{height:72px;width:76px;max-width:28%}.catch-star{width:55px;height:55px}.catch-star>svg{width:47px;height:47px}.growth-art>svg{max-width:95%;max-height:300px}.stage-counter{top:10px;right:10px;font-size:11px;padding:4px 9px;border-width:2px}.result-screen{gap:11px;padding:calc(22px + var(--safe-top)) 20px calc(25px + var(--safe-bottom))}.result-title{font-size:33px;-webkit-text-stroke-width:4px;letter-spacing:1px}.result-title small{font-size:10px;margin-bottom:8px}.result-hero{width:210px;height:220px}.result-object{width:105px;height:90px;margin-left:140px;margin-top:-48px}.result-stars{font-size:35px;gap:8px}.result-stars svg{width:39px;height:39px}.reward-strip{font-size:13px;padding:9px 17px;border-width:2px;gap:12px;border-radius:17px}.reward-strip svg{width:22px;height:22px}.mastery-label{font-size:10px}.result-buttons{flex-direction:column;gap:14px;width:100%;max-width:340px;margin-top:6px}.result-buttons .primary{flex:auto;width:100%;min-height:60px;font-size:17px;border-radius:19px}.result-buttons .secondary{min-height:45px;font-size:12px;min-width:170px;padding:7px 17px;border-radius:16px}.settings-screen{padding:calc(14px + var(--safe-top)) 18px calc(22px + var(--safe-bottom));gap:13px}.settings-screen h1{font-size:25px;margin:5px 0}.setting-row{padding:14px 15px;min-height:81px;gap:10px;border-width:2px;border-radius:20px}.setting-row strong{font-size:14px}.setting-row small{font-size:10px;margin-top:4px}.setting-row .secondary{font-size:11px;padding:7px 12px;min-height:40px}.settings-note{font-size:11px;line-height:1.9;padding:5px 2px}.settings-actions{gap:10px}.settings-actions .primary,.settings-actions .secondary{min-width:0;flex:1;font-size:13px;padding:9px 15px;min-height:49px}.parent-page{padding:17px 19px;gap:13px;border-width:2px;border-radius:23px}.parent-page h2{font-size:19px}.parent-page p{font-size:12px;line-height:1.95}.parent-page ul{font-size:11px;line-height:1.8}.parent-pagination{gap:12px}.parent-pagination .secondary{font-size:12px;min-height:45px;padding:8px 15px}}
/* Short phones retain the same scene with compact, still-tappable controls. */
@media(max-width:760px) and (min-height:501px) and (max-height:720px){:root{--hud:66px;--dock:72px}.hud{padding-top:calc(6px + var(--safe-top));padding-bottom:6px}.avatar{height:36px;width:36px;border-radius:11px}.avatar>svg{height:42px;width:41px}.player-info strong{font-size:11px}.player-info small{font-size:7px}.hud-actions>.round-button{height:36px;width:35px}.resource-pill{height:32px;min-width:59px;font-size:13px}.resource-pill svg{width:19px;height:19px}.chapter-label{top:7px;font-size:8px;padding:3px 9px}.chapter-title{top:40px;font-size:26px;-webkit-text-stroke-width:3.5px;text-shadow:0 3px 0 #166f96}.chapter-title small{font-size:9px;margin-top:4px}.scene-hero{height:185px;width:203px;bottom:205px;left:47%}.hero-speech{font-size:9px;max-width:118px;padding:6px 8px}.hero-name{font-size:11px;padding:3px 15px;bottom:3px;border-width:2px}.side-tools{top:31%;left:10px;gap:8px}.side-tools.right{right:10px}.side-tools button{width:44px;height:51px;font-size:7px;border-radius:14px;padding:5px}.side-tools button svg{height:24px;width:24px}.mission-select{bottom:28px;width:calc(100% - 32px);padding:9px 11px 11px;border-radius:23px}.mission-heading small{font-size:8px}.mission-heading h2{font-size:20px}.mission-switcher>.round-button{height:34px;width:32px;padding:6px;border-radius:11px}.rating-stars{min-height:17px;font-size:16px}.rating-stars svg{height:16px;width:16px}.mission-dots{margin:7px 0 8px;gap:6px}.mission-dots button{width:6px;height:6px}.mission-dots button.active{width:19px}.mission-launch{min-height:53px;font-size:19px;padding:7px 13px;border-radius:17px;gap:7px}.mission-launch>svg{height:23px;width:23px}.mission-launch small{font-size:9px;padding:4px 6px}.mission-launch small svg{width:15px;height:15px}.quick-tip{font-size:8px;bottom:7px}.dock{padding-top:5px;padding-bottom:calc(6px + var(--safe-bottom))}.dock-button{min-height:52px;font-size:9px;border-radius:16px}.dock-button svg{height:26px;width:26px}.panel-screen{padding:8px 16px 12px;gap:7px}.panel-heading h1{font-size:22px}.panel-heading p{font-size:9px;margin-top:3px}.panel-heading small{font-size:7px;margin-bottom:2px}.panel-content{gap:7px}.hero-detail{min-height:150px;gap:7px}.hero-detail>svg,.hero-detail>.hero-art>svg{width:107px;height:132px}.hero-detail h2{font-size:18px}.hero-detail p,.hero-description{font-size:9px;line-height:1.7;margin-bottom:6px}.hero-detail .role-label{font-size:7px;padding:2px 7px;margin-bottom:3px}.hero-detail .primary{min-height:38px;font-size:11px;padding:5px 8px;border-radius:13px}.outfit-row{gap:4px;margin:5px 0 8px}.outfit-button{font-size:7px;padding:4px 6px;min-height:27px}.hero-roster{gap:7px}.hero-card{height:84px;border-radius:15px;padding:4px 2px 6px;gap:0}.hero-card>svg{height:56px;width:55px}.hero-card strong{font-size:9px}.hero-card.selected::before{width:16px;height:16px;font-size:9px}.collection-grid{gap:8px}.collection-card{padding:5px 4px;gap:3px;border-radius:17px}.collection-card>svg,.collection-art{height:44px;width:53px;max-height:42%}.collection-card strong{font-size:10px}.mastery-stars{min-height:14px;font-size:14px}.mastery-stars svg{width:13px;height:13px}.collection-card .count,.collection-card>small{font-size:8px;padding:2px 7px}.collection-card:last-child{grid-template-columns:60px 1fr;padding:6px 18px;gap:2px 7px}.collection-card:last-child>svg,.collection-card:last-child .collection-art{height:58px;width:57px}.section-summary{font-size:9px}.quest-list{gap:9px}.quest-card{min-height:92px;padding:10px;gap:8px;border-radius:18px}.quest-card>.icon,.quest-card>svg{width:35px;height:35px;border-radius:12px;padding:5px}.quest-card h3{font-size:12px}.quest-card p{font-size:8px}.quest-card .claim{font-size:9px;padding:5px 7px}.quest-reward{font-size:10px;min-width:32px}.quest-reward svg{height:16px;width:16px}.play-screen{padding:calc(8px + var(--safe-top)) 14px calc(12px + var(--safe-bottom));gap:8px}.play-header{min-height:42px;gap:7px}.play-header>.round-button{height:38px;width:38px;padding:7px;border-radius:13px}.play-title h2{font-size:15px}.play-title small{font-size:7px}.play-pips{gap:3px}.play-pips i{height:7px;width:7px}.read-button{width:35px;min-height:37px;padding:7px;border-radius:12px}.read-button svg{width:18px;height:18px}.play-body{gap:8px}.play-instruction{min-height:65px;padding:7px 9px;border-radius:19px;gap:6px}.guide-dino{width:31px;height:38px}.play-instruction h2{font-size:16px}.play-instruction p{font-size:9px;margin-top:2px}.work-stage{border-radius:22px}.arena-art>svg,.work-stage>svg{max-height:230px;padding:7px}.choice{min-height:81px;padding:6px 4px;gap:3px;font-size:11px;border-radius:16px}.choice>svg{width:45px;height:41px}.choice-row{gap:8px}.choice .number{font-size:25px}.action-bar{gap:8px;padding-bottom:3px}.action-bar .primary{min-height:48px;font-size:14px;padding:8px 10px;border-radius:15px}.action-bar .secondary{font-size:11px;min-height:43px;padding:7px 10px}.feedback{min-height:17px;font-size:9px}.step-caption{font-size:9px}.recipe-line{min-height:31px;font-size:10px;gap:4px}.recipe-chip{font-size:9px;padding:3px 6px;gap:3px}.recipe-chip svg{width:16px;height:18px}.progress-track{height:13px;border-width:2px}.tap-action{bottom:11px;min-height:44px;font-size:13px;min-width:170px;padding:7px 11px}.result-screen{gap:8px;padding:calc(16px + var(--safe-top)) 20px calc(19px + var(--safe-bottom))}.result-title{font-size:28px;-webkit-text-stroke-width:3.5px}.result-title small{font-size:9px;margin-bottom:6px}.result-hero{width:180px;height:185px}.result-object{width:90px;height:76px;margin-left:120px;margin-top:-45px}.result-stars{gap:7px;font-size:30px}.result-stars svg{width:33px;height:33px}.reward-strip{font-size:11px;padding:7px 14px;border-radius:15px}.reward-strip svg{height:20px;width:20px}.mastery-label{font-size:9px}.result-buttons{gap:12px;margin-top:5px}.result-buttons .primary{min-height:53px;font-size:15px;border-radius:17px}.result-buttons .secondary{min-height:40px;font-size:11px;border-radius:14px;padding:6px 14px}.settings-screen{padding:calc(10px + var(--safe-top)) 16px calc(17px + var(--safe-bottom));gap:10px}.settings-screen h1{font-size:22px;margin:3px 0}.setting-row{min-height:68px;padding:11px 12px;border-radius:18px}.setting-row strong{font-size:12px}.setting-row small{font-size:9px}.settings-note{font-size:10px;line-height:1.85}.settings-actions .primary,.settings-actions .secondary{font-size:11px;min-height:44px;padding:8px 12px}.parent-page{padding:14px 16px;gap:10px}.parent-page h2{font-size:17px}.parent-page p{font-size:11px;line-height:1.8}.parent-page ul{font-size:10px;line-height:1.7}}
/* Landscape uses stage left / choices right; every screen remains complete. */
@media(max-height:500px) and (min-width:520px){:root{--hud:58px;--dock:60px}.hud{max-width:1120px;padding:calc(5px + var(--safe-top)) 20px 5px;gap:15px}.player-chip{min-width:145px;padding:2px 10px 2px 3px;border-width:2px;border-radius:15px;gap:6px}.avatar{width:34px;height:34px;border-radius:11px}.avatar>svg{width:39px;height:40px;margin-top:7px}.player-info{min-width:80px}.player-info strong{font-size:10px}.player-info small{font-size:7px}.xp-track{height:5px;margin-top:2px}.game-logo{font-size:24px;-webkit-text-stroke-width:1px;text-shadow:0 2px 0 #1c6e99}.game-logo small{font-size:7px;letter-spacing:1.5px;margin-top:2px}.hud-actions{gap:7px}.hud-actions>.round-button{height:35px;width:35px;border-width:2px;border-radius:12px;padding:6px;box-shadow:0 3px 0 #2788b066}.hud-actions>.round-button svg{width:20px;height:20px}.resource-pill{height:31px;min-width:69px;font-size:13px;border-width:2px}.resource-pill svg{height:20px;width:20px}.chapter-label{left:25px;top:7px;font-size:8px;padding:3px 9px}.chapter-title{left:25px;top:39px;font-size:26px;-webkit-text-stroke-width:3px;text-shadow:0 3px 0 #166f96}.chapter-title small{font-size:9px;margin-top:3px}.scene-hero{left:32%;bottom:9px;width:190px;height:198px}.hero-speech{font-size:9px;max-width:125px;padding:6px 9px;border-width:2px;top:4%;left:77%;border-radius:14px 14px 14px 3px}.hero-name{font-size:10px;padding:3px 15px;bottom:7px;border-width:2px}.mission-select{right:25px;bottom:27px;width:300px;padding:10px 12px 12px;border-width:3px;border-radius:23px}.mission-heading small{font-size:8px}.mission-heading h2{font-size:21px}.mission-switcher>.round-button{width:32px;height:34px;padding:6px;border-radius:11px}.rating-stars{min-height:16px;font-size:15px;margin-top:1px}.rating-stars svg{height:15px;width:15px}.mission-dots{margin:7px 0 8px}.mission-dots button{height:6px;width:6px}.mission-dots button.active{width:18px}.mission-launch{min-height:50px;font-size:18px;padding:7px 13px;gap:7px;border-radius:16px}.mission-launch>svg{width:23px;height:23px}.mission-launch small{font-size:10px;padding:4px 6px}.quick-tip{font-size:8px;bottom:6px;right:25px;width:300px}.side-tools{left:14px;top:auto;bottom:30px;gap:8px}.side-tools.right{right:14px;display:none}.side-tools button{height:47px;width:44px;border-width:2px;border-radius:13px;padding:4px;font-size:7px;gap:1px}.side-tools button svg{width:23px;height:23px}.dock{gap:12px;padding:5px 15px calc(5px + var(--safe-bottom));border-width:3px}.dock-button{flex-direction:row;min-height:42px;width:135px;padding:5px 10px;gap:8px;font-size:10px;border-radius:15px}.dock-button svg{width:27px;height:27px}.dock-button.active svg{transform:translateY(-1px) scale(1.06)}.dock-button.active{padding-top:3px}.dock-button .dot{right:17px;top:5px}.panel-screen{padding:7px 24px 13px;gap:7px}.panel-screen::before{inset:1px 12px 4px;border-width:3px;border-radius:25px}.panel-heading{padding:1px 6px}.panel-heading small{display:none}.panel-heading h1{font-size:21px}.panel-heading p{font-size:9px;margin-top:3px}.panel-content{gap:7px}.hero-detail{position:absolute;left:0;top:0;bottom:0;width:43%;gap:10px;min-height:0;padding:0 10px}.hero-detail>svg,.hero-detail>.hero-art>svg{height:150px;width:105px}.hero-detail>div{max-width:175px}.hero-detail h2{font-size:19px}.hero-detail p,.hero-description{font-size:9px;line-height:1.7;margin-bottom:6px}.hero-detail .role-label{font-size:7px;padding:2px 7px;margin-bottom:4px}.hero-detail .primary{min-width:0;font-size:10px;min-height:36px;padding:5px 10px;border-radius:12px}.outfit-row{gap:4px;margin:4px 0 8px}.outfit-button{font-size:7px;min-height:26px;padding:4px 6px;border-radius:9px}.hero-roster{width:55%;margin-left:auto;margin-top:auto;margin-bottom:auto;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.hero-card{height:82px;border-width:2px;border-radius:15px;padding:4px 2px 6px;gap:1px}.hero-card>svg{height:54px;width:54px}.hero-card strong{font-size:9px}.hero-card.selected::before{width:16px;height:16px;font-size:9px}.section-summary{font-size:9px}.collection-grid{gap:10px;align-content:stretch}.collection-card{min-height:0;gap:6px;border-width:2px;border-radius:19px;padding:10px 5px}.collection-card>svg,.collection-art{height:68px;width:75px;max-height:44%}.collection-card strong{font-size:11px}.mastery-stars{font-size:17px;min-height:18px;gap:2px}.mastery-stars svg{height:16px;width:16px}.collection-card .count,.collection-card>small{font-size:9px;padding:4px 9px}.quest-list{gap:7px;max-width:750px}.quest-card{min-height:58px;padding:7px 13px;gap:12px;border-width:2px;border-radius:17px}.quest-card>.icon,.quest-card>svg{height:34px;width:34px;padding:5px;border-radius:11px}.quest-card h3{font-size:12px}.quest-card p{font-size:8px;margin-top:2px}.quest-progress{height:7px;margin-top:4px;max-width:300px}.quest-reward{font-size:11px;min-width:50px}.quest-reward svg{height:18px;width:18px}.quest-card .claim{font-size:10px;padding:5px 11px;border-radius:12px}.play-screen{max-width:1100px;padding:calc(8px + var(--safe-top)) 24px calc(11px + var(--safe-bottom));gap:8px}.play-header{min-height:40px;gap:10px}.play-header>.round-button{width:36px;height:36px;padding:6px;border-radius:12px;border-width:2px;box-shadow:0 3px 0 #89c5d9}.play-title small{font-size:7px;margin-bottom:1px}.play-title h2{font-size:17px}.play-pips{gap:5px}.play-pips i{height:8px;width:8px}.game-step,#play-progress{font-size:9px;min-height:26px;padding:3px 8px}.read-button{font-size:9px;min-height:34px;padding:5px 10px;border-radius:12px}.read-button svg{height:18px;width:18px}.play-body{display:grid;grid-template-columns:minmax(0,1fr) 280px;grid-template-rows:54px minmax(0,1fr) 49px 17px;gap:7px 18px;overflow:hidden}.play-instruction{grid-column:2;grid-row:1;padding:5px 8px;min-height:0;border-width:2px;border-radius:17px;gap:6px}.play-instruction h2{font-size:14px;line-height:1.3}.play-instruction p{font-size:8px;line-height:1.5;margin-top:2px}.guide-dino{height:32px;width:27px}.work-stage{grid-column:1;grid-row:1/5;min-height:0;max-height:none;border-width:2px;border-radius:22px}.arena-art>svg,.work-stage>svg{max-height:280px;padding:8px;max-width:85%}.play-arena{grid-column:1;grid-row:1/5;min-height:0}.choice-row{grid-column:2;grid-row:2;gap:7px;align-self:center;min-height:0;max-height:100%}.choice{min-width:75px;max-width:89px;min-height:96px;padding:8px 4px;gap:5px;font-size:11px;border-width:2px;border-radius:16px;box-shadow:0 4px 0 #7ebdd5}.choice>svg{height:47px;width:49px}.choice .number{font-size:29px}.choice.selected{box-shadow:0 4px 0 #d8ae3c}.choice.selected::after{width:18px;height:18px;font-size:10px}.action-bar{grid-column:2;grid-row:3;gap:8px;padding:0 0 3px}.action-bar .primary{min-width:0;flex:1;min-height:44px;padding:7px 10px;font-size:13px;border-radius:14px}.action-bar .secondary{min-width:0;min-height:40px;padding:6px 9px;font-size:10px;border-radius:13px}.feedback{grid-column:2;grid-row:4;min-height:0;font-size:9px;line-height:1.6}.step-caption{font-size:9px}.recipe-line{top:9px;gap:5px;min-height:30px;font-size:10px}.recipe-chip{font-size:9px;padding:3px 6px;gap:3px}.recipe-chip svg{height:17px;width:16px}.recipe-chip i{width:11px;height:11px}.progress-track{height:13px;border-width:2px}.tap-action{min-width:175px;min-height:42px;font-size:13px;padding:7px 12px;bottom:12px;border-radius:14px}.parcel-row{padding:12px;gap:8px}.parcel-row>svg,.parcel-row>span{height:75px;width:80px;max-width:28%}.catch-star{width:52px;height:52px}.catch-star>svg{height:44px;width:44px}.growth-art>svg{max-height:260px}.stage-counter{top:10px;right:12px;font-size:10px;padding:4px 8px;border-width:2px}.result-screen{max-width:850px;padding:calc(16px + var(--safe-top)) 30px calc(16px + var(--safe-bottom));display:grid;grid-template-columns:40% 60%;grid-template-rows:59px 55px 49px 31px minmax(45px,1fr);gap:7px 15px;align-content:center;justify-items:center}.result-title{grid-column:2;grid-row:1;align-self:end;font-size:28px;-webkit-text-stroke-width:3px;letter-spacing:1px}.result-title small{font-size:8px;margin-bottom:3px;letter-spacing:1px}.result-hero{grid-column:1;grid-row:1/6;max-height:250px;width:230px;height:100%;align-self:center}.result-object{position:absolute;left:28%;top:54%;width:93px;height:83px;margin:0}.result-stars{grid-column:2;grid-row:2;gap:7px;font-size:31px;align-self:center}.result-stars svg{width:34px;height:34px}.reward-strip{grid-column:2;grid-row:3;font-size:12px;gap:10px;padding:7px 16px;border-width:2px;border-radius:16px;align-self:center}.reward-strip svg{height:21px;width:21px}.mastery-label{grid-column:2;grid-row:4;font-size:9px;align-self:center}.result-buttons{grid-column:2;grid-row:5;width:100%;gap:11px;margin:0;align-self:start}.result-buttons .primary{min-height:48px;font-size:13px;padding:8px 12px;border-radius:15px}.result-buttons .secondary{min-height:43px;font-size:10px;padding:7px 12px;border-radius:14px}.settings-screen{max-width:820px;padding:calc(10px + var(--safe-top)) 25px calc(14px + var(--safe-bottom));gap:9px}.settings-screen h1{font-size:22px;margin:0}.setting-row{min-height:53px;padding:7px 14px;border-width:2px;border-radius:16px;gap:10px}.setting-row strong{font-size:12px}.setting-row small{font-size:9px;margin-top:3px}.setting-row .secondary{min-height:34px;font-size:10px;padding:5px 10px;border-radius:12px}.settings-note{font-size:9px;line-height:1.8;margin:auto;padding:0}.settings-actions{gap:12px}.settings-actions .primary,.settings-actions .secondary{min-width:150px;min-height:42px;font-size:12px;padding:7px 13px;border-radius:14px}.parent-page{padding:14px 22px;gap:9px;min-height:0;border-width:2px;border-radius:21px}.parent-page h2{font-size:17px}.parent-page p{font-size:11px;line-height:1.8}.parent-page ul{font-size:10px;line-height:1.75}.parent-pagination{gap:15px}.parent-pagination .secondary{min-height:39px;padding:6px 13px;font-size:11px;border-radius:13px}.toast,#toast{bottom:calc(var(--dock) + var(--safe-bottom) + 8px);font-size:11px;padding:8px 17px;border-width:2px}}
/* Markup-specific composition: all top-level scenes occupy their allocated viewport. */
.home-screen,.panel-screen{position:relative;height:100%;min-height:0;overflow:hidden}.hero-name{display:flex;align-items:center;justify-content:center;gap:5px}.hero-name svg{height:17px;width:17px}.mission-launch>span{display:flex;align-items:center;justify-content:space-between;gap:22px;flex:1}.mission-launch small{margin:0}.rating-stars>span:not(.earned){filter:grayscale(1);opacity:.28}.hero-detail{display:grid;grid-template-columns:190px 340px;grid-template-rows:auto auto auto auto;align-content:center;justify-content:center;gap:7px 28px}.hero-detail>svg{grid-column:1;grid-row:1/5;align-self:center}.hero-detail>h2,.hero-detail>.hero-description,.hero-detail>.outfit-row,.hero-detail>.primary{grid-column:2}.hero-detail>h2{align-self:end}.hero-detail>.hero-description{margin:0}.outfit-button small{display:block;font-size:8px;line-height:1.6;margin-top:2px}.hero-card>svg:last-child:not(:first-child){position:absolute;right:4px;top:3px;height:19px;width:19px;z-index:3;background:#64bc73;border-radius:50%;padding:2px;border:2px solid white;color:white}.hero-card.selected::before{display:none}.quest-card>.quest-icon{display:grid;place-items:center;flex-shrink:0;width:55px;height:55px;padding:9px;border-radius:18px;background:#daf2ff}.quest-icon svg{height:100%;width:100%}.quest-card h2{font-size:17px}.quest-text>small{display:block;font-size:9px;color:#7b9cab;margin-top:4px}.quest-card>.quest-text{flex:1}.quest-card>.quest-reward{flex:0;display:flex;flex-direction:column;gap:7px}.quest-reward>span{display:flex;align-items:center;gap:4px;white-space:nowrap}.quest-card.complete{background:linear-gradient(#fffef1,#f0fbcf)}.play-title h1{font-size:23px;line-height:1.35}.play-pips>span{display:flex;flex-direction:column;align-items:center;gap:5px}.play-pips small{font-size:8px;font-weight:800;color:#6e9db1;white-space:nowrap}.play-pips .active i{background:#f7ca36;box-shadow:0 1px 0 #d5a339}.work-stage{flex-direction:column}.arena-art{flex:1;min-height:0;height:auto}.work-stage>.progress-track{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:3}.work-stage:has(.progress-track) .arena-art{padding-bottom:33px}.work-stage>.step-caption{position:absolute;z-index:3;top:13px;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:6px}.target-color i{width:17px;height:17px;border:2px solid white;border-radius:50%;box-shadow:0 1px 0 #467c8f55}.work-stage .recipe-line{top:auto;bottom:13px}.work-stage:has(.recipe-line) .arena-art{padding-top:31px;padding-bottom:43px}.number-choice>strong{font-size:36px;line-height:1.15;color:#2786ae}.number-choice>small{font-size:11px;color:#6a9aad}.delivery-scene{position:relative;height:100%;width:min(100%,530px);min-height:0;z-index:1}.delivery-scene span{position:absolute;display:block}.delivery-scene svg{width:100%;height:100%}.delivery-buddy{left:5%;bottom:8%;width:39%;height:78%}.delivery-house{right:5%;bottom:10%;width:43%;height:85%}.delivery-parcel{left:42%;bottom:7%;width:23%;height:36%;transition:translate .6s,opacity .6s}.delivering .delivery-parcel{translate:65% -25%;opacity:0}.catch-star{transform:translate(-20%,-20%);animation-delay:var(--delay,0s)}.catch-counter{position:absolute;z-index:3;top:12px;right:14px;background:#fff9c6;border:2px solid white;border-radius:20px;padding:5px 12px;color:#a87b18;font-size:14px}.star-field{background:radial-gradient(ellipse at 50% 60%,#abdff44d,transparent 70%)}.result-screen{gap:9px}.result-kicker{font-size:10px;letter-spacing:2px;color:#4c91ad;z-index:2}.result-praise{font-size:14px;line-height:1.6;color:#43889f;z-index:2}.result-rays{position:relative;inset:auto;z-index:2;background:none;animation:none;width:280px;height:220px;flex-shrink:1;min-height:100px;display:grid;place-items:center}.result-rays::before{content:'';position:absolute;inset:-55%;z-index:-1;background:repeating-conic-gradient(from 0deg,#fff9ba55 0deg 12deg,transparent 12deg 24deg);mask-image:radial-gradient(circle,#000 0 35%,transparent 68%);animation:rays-turn 60s linear infinite}.result-rays .result-hero{height:100%;width:220px;max-height:100%}.result-rays .result-object{position:absolute;right:0;bottom:0;margin:0;width:110px;height:95px}.result-stars .rating-stars{margin:0;gap:10px;min-height:43px}.result-stars .rating-stars svg{width:41px;height:41px}.result-buttons{width:min(100%,660px)}.result-buttons .secondary{font-size:12px;min-width:110px;padding:9px 14px}.guide-close{position:absolute;top:calc(20px + var(--safe-top));right:25px}.guide-copy{font-size:15px;line-height:1.9;color:#4d8b9f;z-index:2}.guide-screen .mastery-label{display:flex;align-items:center;gap:4px}.guide-screen .mastery-label svg{width:18px;height:18px}.setting-row>span{display:flex;align-items:center;gap:10px;font-size:14px}.setting-row>span>svg{width:25px;height:25px}.settings-screen>.panel-content{gap:12px}.settings-screen .parent-page{gap:10px;padding:15px 21px;text-align:center}.settings-screen .parent-page h2{font-size:17px}.settings-screen .settings-note{margin:0;padding:0}.settings-screen .settings-actions{align-items:center;gap:17px}.settings-actions .round-button{height:38px;width:38px;border-radius:13px;padding:7px}.settings-actions>span{font-size:11px;color:#69a0b4}.motion-off *,.motion-off *::before,.motion-off *::after{animation:none!important;transition:none!important}
@media(max-width:760px) and (min-height:501px){.hero-detail{grid-template-columns:125px minmax(0,190px);gap:5px 10px}.hero-detail>svg{height:170px;width:125px}.hero-detail h2{font-size:21px}.hero-detail>.primary{min-width:0}.hero-detail>p{font-size:10px}.hero-card>svg:last-child:not(:first-child){width:17px;height:17px;right:3px;top:2px}.outfit-button small{font-size:7px}.quest-card>.quest-icon{width:39px;height:39px;padding:6px;border-radius:13px}.quest-card h2{font-size:13px}.quest-card>.quest-reward{gap:6px}.quest-text>small{font-size:8px;margin-top:3px}.play-title h1{font-size:17px}.play-pips small{display:none}.play-pips>span{gap:0}.mission-launch>span{gap:11px}.result-rays{width:260px;height:210px;min-height:100px}.result-rays .result-hero{width:210px}.result-rays .result-object{width:100px;height:86px;right:4px}.result-praise{font-size:12px}.result-kicker{font-size:9px}.result-stars .rating-stars{min-height:38px;gap:8px}.result-stars .rating-stars svg{height:36px;width:36px}.result-buttons{gap:11px}.result-buttons .secondary{width:100%;min-height:39px;font-size:11px;padding:6px 13px;max-width:250px}.result-screen:not(.guide-screen) .result-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px}.result-screen:not(.guide-screen) .result-buttons .primary{grid-column:1/-1}.result-screen:not(.guide-screen) .result-buttons .secondary{min-width:0}.guide-copy{font-size:12px}.guide-close{top:calc(15px + var(--safe-top));right:16px}.settings-screen>.panel-content{gap:10px}.setting-row>span{font-size:12px;gap:8px}.settings-screen .parent-page{gap:9px;padding:14px 16px}.settings-screen .parent-page h2{font-size:15px}.settings-actions .round-button{height:35px;width:35px;border-radius:12px;padding:6px}}
@media(max-width:760px) and (min-height:501px) and (max-height:720px){.hero-detail{grid-template-columns:107px minmax(0,185px);gap:4px 7px;min-height:140px}.hero-detail>svg{width:107px;height:145px}.hero-detail h2{font-size:18px}.hero-detail>p{font-size:9px}.hero-detail .outfit-row{flex-wrap:nowrap;margin:3px 0 6px;gap:3px}.outfit-button{font-size:6px;padding:4px;min-height:29px}.outfit-button small{font-size:6px}.play-title h1{font-size:15px}.quest-card h2{font-size:12px}.quest-card>.quest-icon{height:33px;width:33px;padding:5px}.quest-card>.quest-reward{gap:4px}.result-screen{gap:7px}.result-rays{height:165px;width:230px;min-height:80px}.result-rays .result-hero{width:175px}.result-rays .result-object{height:74px;width:86px}.result-praise{font-size:10px}.result-stars .rating-stars{min-height:31px;gap:7px}.result-stars .rating-stars svg{width:30px;height:30px}.result-kicker{font-size:8px}.result-screen:not(.guide-screen) .result-buttons{gap:10px 9px}.result-buttons .primary{min-height:49px}.result-buttons .secondary{min-height:36px;font-size:10px;padding:5px 10px}.settings-screen>.panel-content{gap:8px}.settings-screen .setting-row{min-height:51px;padding:7px 11px;border-radius:15px}.setting-row>span{font-size:11px}.setting-row>span>svg{width:21px;height:21px}.settings-screen .setting-row .secondary{min-height:34px;font-size:10px;padding:5px 12px}.settings-screen .parent-page{padding:11px 14px;gap:7px}.settings-screen .parent-page h2{font-size:14px}.settings-note{font-size:10px}.settings-actions .round-button{width:30px;height:30px;padding:5px;border-radius:10px}.settings-actions .round-button svg{width:18px;height:18px}.catch-counter{font-size:12px}}
@media(max-height:500px) and (min-width:520px){.hero-detail{grid-template-columns:98px minmax(0,165px);grid-template-rows:repeat(4,auto);align-content:center;gap:4px 8px}.hero-detail>svg{height:150px;width:98px}.hero-detail h2{font-size:18px}.hero-detail p{font-size:8px;line-height:1.6}.hero-detail>.primary{min-width:0;font-size:10px;padding:5px 8px}.outfit-button small{font-size:6px}.hero-card>svg:last-child:not(:first-child){height:16px;width:16px;right:3px;top:2px}.quest-card>.quest-icon{height:32px;width:32px;padding:5px;border-radius:11px}.quest-card h2{font-size:12px}.quest-card>.quest-reward{flex-direction:row;gap:12px}.quest-text>small{font-size:7px;margin-top:2px}.quest-card .claim{min-height:38px}.play-title h1{font-size:17px}.play-pips small{font-size:7px}.play-pips>span{gap:3px}.play-header .play-pips i{width:7px;height:7px}.result-screen{grid-template-columns:39% minmax(0,61%);grid-template-rows:18px 46px minmax(80px,1fr) 25px 38px 24px 52px;gap:5px 12px}.result-kicker{grid-column:2;grid-row:1;font-size:8px;align-self:end}.result-title{grid-column:2;grid-row:2;font-size:27px;align-self:center}.result-rays{grid-column:1;grid-row:1/8;width:100%;height:100%;max-height:260px;min-height:0;align-self:center}.result-rays .result-hero{width:100%;height:100%;max-height:240px;grid-column:auto;grid-row:auto}.result-rays .result-object{right:-5px;bottom:12%;height:76px;width:90px;top:auto;left:auto}.result-praise{grid-column:2;grid-row:3;font-size:11px;align-self:end}.result-stars{grid-column:2;grid-row:4;align-self:center}.result-stars .rating-stars{min-height:28px;gap:6px}.result-stars .rating-stars svg{height:28px;width:28px}.reward-strip{grid-column:2;grid-row:5;min-height:34px;font-size:10px;padding:5px 11px;gap:7px;border-radius:13px;align-self:center}.reward-strip svg{width:18px;height:18px}.mastery-label{grid-column:2;grid-row:6;font-size:8px}.result-buttons{grid-column:2;grid-row:7;gap:7px;align-self:center}.result-buttons .primary{min-height:44px;font-size:11px;padding:6px 9px;border-radius:13px}.result-buttons .secondary{min-height:39px;font-size:8px;min-width:80px;padding:5px 8px;border-radius:12px}.guide-screen{display:flex;flex-direction:column;gap:10px;justify-content:center;padding-left:41%;max-width:850px}.guide-screen>.result-hero{position:absolute;left:5%;top:50%;transform:translateY(-50%);height:230px;width:230px}.guide-screen .result-title{font-size:26px}.guide-copy{font-size:11px;line-height:1.9}.guide-screen .result-buttons{width:100%;margin-top:5px}.guide-screen .mastery-label{font-size:10px}.guide-close{top:calc(13px + var(--safe-top));right:18px;z-index:5}.settings-screen>.panel-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,minmax(0,1fr)) 14px;gap:7px 15px}.settings-screen .setting-row{grid-column:1;min-height:0;padding:6px 12px;border-radius:15px}.settings-screen .parent-page{grid-column:2;grid-row:1/4;min-height:0;padding:10px 15px;gap:8px}.settings-screen .parent-page h2{font-size:14px}.settings-screen .settings-note{font-size:10px;line-height:1.8}.settings-screen .section-summary{grid-column:1/-1;grid-row:4;font-size:8px}.setting-row>span{font-size:11px;gap:7px}.setting-row>span>svg{width:21px;height:21px}.settings-screen .setting-row .secondary{font-size:10px;min-height:33px;padding:5px 11px}.settings-screen .settings-actions{gap:15px}.settings-actions .round-button{height:30px;width:30px;padding:5px;border-radius:10px}.settings-actions .round-button svg{height:18px;width:18px}.catch-counter{font-size:12px}}
.hero-detail{grid-template-rows:1fr}.hero-detail>svg{grid-row:1;align-self:center}.hero-detail>.hero-bio{grid-column:2;grid-row:1;max-width:none;min-width:0;align-self:center}.hero-bio h2{white-space:nowrap}.hero-bio .primary{width:100%;min-width:0}.hero-bio .outfit-row{justify-content:flex-start}.hero-bio p{margin:6px 0 8px}.rating-stars .earned svg{fill:#ffdc4e;stroke:#d69a25;stroke-width:1.8}.catch-star svg{fill:#ffdf5f;stroke:#cc942b;stroke-width:1.8}.resource-pill svg,.reward-strip>svg,.quest-reward>span>svg{fill:#ffd84b;stroke:#bd8c25;stroke-width:1.8}.mission-dots{height:14px;gap:0;overflow:visible;position:relative;z-index:3}.mission-dots button,.mission-dots button.active{display:grid;place-items:center;width:44px;height:36px;flex-shrink:0;background:transparent;box-shadow:none;border-radius:11px}.mission-dots button span{display:block;width:7px;height:7px;border-radius:8px;background:#a4c9dc;box-shadow:0 1px 0 white;transition:width .15s,background .15s}.mission-dots button.active span{width:21px;background:#2d9fd7}.mission-dots button:focus-visible{outline-offset:-1px}.mission-heading small>span{margin-left:8px}.quest-card>.quest-text{flex:1 1 auto;min-width:0}.quest-card>.quest-reward{flex:0 0 100px;min-width:100px;width:100px}.quest-reward .claim{width:100%;white-space:nowrap;padding-left:8px;padding-right:8px}
@media(max-width:760px) and (min-height:501px){.hero-name{bottom:32px}.hero-bio p{margin:4px 0 6px}.hero-bio .outfit-row{margin:5px 0 9px}.mission-heading small>span{margin-left:5px}.mission-dots{margin-top:9px;margin-bottom:12px}.mission-dots button,.mission-dots button.active{width:42px;height:36px}.quest-card>.quest-reward{flex-basis:80px;min-width:80px;width:80px}.quest-reward .claim{font-size:10px;padding-left:5px;padding-right:5px}.quest-card>.quest-icon{width:35px;height:35px}.quest-card h2{line-height:1.5}}
@media(max-width:760px) and (min-height:501px) and (max-height:720px){.hero-name{bottom:29px}.hero-bio p{margin:3px 0 4px}.hero-bio .outfit-row{margin:3px 0 7px}.mission-dots{height:10px;margin:7px 0 11px}.mission-dots button,.mission-dots button.active{width:40px;height:32px}.mission-dots button span{height:6px;width:6px}.mission-dots button.active span{width:18px}}
@media(max-height:500px) and (min-width:520px){.hero-detail{grid-template-rows:1fr}.hero-bio p{margin:3px 0 5px}.hero-bio .outfit-row{margin:3px 0 7px}.hero-bio .primary{min-width:0}.mission-dots{height:10px;margin:7px 0 11px}.mission-dots button,.mission-dots button.active{height:32px;width:40px}.mission-dots button span{width:6px;height:6px}.mission-dots button.active span{width:18px}.quest-card>.quest-reward{flex-basis:168px;width:168px;min-width:168px}.quest-reward .claim{width:105px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}.confetti{display:none}.catch-star{animation:none!important}}
/* Final play feedback and collectible visibility. */
.catch-star>svg{fill:#ffda54;color:#c48b20;stroke:#c48b20;filter:drop-shadow(0 3px 0 #bc8e3744)}
.catch-star:not(.caught):hover>svg{fill:#ffe77f}
.catch-counter{position:absolute;top:13px;right:15px;z-index:4;border:2px solid #fff;border-radius:20px;background:#fff9dc;color:#8b671c;padding:5px 12px;font-size:16px;font-weight:900;box-shadow:0 3px 0 #77b8ca44}
.result-praise{font-weight:800;text-align:center;line-height:1.6}
.guide-close{position:absolute;top:calc(16px + var(--safe-top));right:18px;z-index:3}
.guide-copy{text-align:center;line-height:1.9;font-size:15px;max-width:32em}
@media(max-height:500px) and (min-width:520px){.catch-counter{font-size:12px;top:8px;right:10px;padding:3px 9px}.guide-screen{display:flex;flex-direction:column;gap:7px}.guide-screen .result-hero{height:100px;width:100px}.guide-screen .result-title{font-size:23px}.guide-copy{font-size:11px;line-height:1.6}.guide-screen .result-buttons{flex-direction:row;width:auto}.guide-screen .mastery-label{margin:0}}
