*{box-sizing:border-box}html,body,#game{width:100%;height:100%;margin:0;overflow:hidden}body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#fff;background:#87ceeb;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}button{font:inherit;color:inherit;border:0;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus{outline:2px solid #d6f39d;outline-offset:3px}button:active{transform:translateY(2px)}button:disabled{opacity:.45;cursor:default}.hidden{display:none!important}#world{position:absolute;width:100%;height:100%;touch-action:none;display:block}#vignette{position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:none;background:linear-gradient(180deg,rgba(16,32,25,.27),transparent 28%,transparent 60%,rgba(12,24,19,.35))}.topbar{position:absolute;left:30px;right:30px;top:var(--hud-top,28px);display:flex;justify-content:space-between;align-items:center;pointer-events:none}.brand{display:flex;align-items:center;text-shadow:0 2px 5px #294836}.brand-mark{display:inline-flex;width:42px;height:42px;background:#e2f5ad;color:#283e29;align-items:center;justify-content:center;font-size:28px;font-weight:900;box-shadow:3px 3px 0 #354d32;margin-right:12px;border:2px solid #f7ffd3;transform:rotate(-5deg)}.brand b{font-size:18px;letter-spacing:1px}.brand small{display:block;font-size:9px;letter-spacing:1.5px;opacity:.8;margin-top:4px}.worldstatus{display:flex;align-items:center;font-size:12px}.worldstatus span{padding:9px 14px;background:#1b382bc9;border:1px solid #ffffff30;border-radius:4px}.worldstatus button{pointer-events:auto;font-weight:900;background:#163f30;border:1px solid #ffffff55;border-radius:5px;width:38px;height:38px;margin-left:8px}.vitals{position:absolute;left:30px;top:calc(var(--hud-top,28px) + 62px);width:212px;text-shadow:0 2px 3px #173823}.vitals>div:first-child{display:flex;align-items:center}.heart{color:#ff7773;font-size:23px;margin-right:5px}.food{color:#ffd279;margin-left:18px;margin-right:6px}.tiny{font-size:10px;opacity:.7;margin-left:5px}.energy-track{height:5px;background:#183c32a6;border:1px solid #ffffff38;margin-top:7px}.energy-track i{display:block;width:100%;height:100%;background:#cfef8f;transition:width .2s}.vitals small{display:block;margin-top:5px;letter-spacing:1px;font-size:9px;opacity:.85}.quest{position:absolute;right:30px;top:calc(var(--hud-top,28px) + 62px);width:226px;background:#16382bd9;border:1px solid #c3e0a442;padding:14px 17px;border-radius:6px}.quest>small{font-size:9px;color:#c6e59e;letter-spacing:1px;display:block}.quest small span{float:right;color:#fff9;font-size:9px}.quest>b{display:block;font-size:13px;margin-top:8px}.quest-track{height:3px;background:#ffffff22;width:155px;margin-top:12px}.quest-track i{display:block;height:100%;background:#e3f7a0;width:0}.quest>span{position:absolute;right:16px;bottom:12px;font-size:9px;color:#c8dcb6}.quest button{position:absolute;right:7px;top:-28px;background:#244e3e9e;border:1px solid #ffffff55;border-radius:50%;width:21px;height:21px;font-size:12px}.side-tools{position:absolute;right:30px;top:calc(var(--hud-top,28px) + 179px)}.side-tools button{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;width:66px;height:60px;margin-bottom:8px;background:#173b2de0;border:1px solid #d8f0bc52;border-bottom:3px solid #0b281d;border-radius:6px;box-shadow:0 2px 8px #0001}.side-tools button:first-child{height:77px;background:#e7f4b8;color:#284132;border-color:#f2ffd9;border-bottom-color:#8aa261}.side-tools span{font-size:23px;font-weight:700;line-height:24px}.side-tools b{font-size:10px;margin-top:4px}.side-tools small{font-size:8px;opacity:.7;margin-top:3px}#aim{position:absolute;top:47%;left:50%;width:22px;height:22px;margin:-11px;pointer-events:none}#aim>i:before,#aim>i:after{content:"";position:absolute;background:#fff;box-shadow:0 1px 3px #0008;left:10px;top:4px;width:2px;height:14px}#aim>i:after{transform:rotate(90deg)}#targetName{position:absolute;top:30px;left:-65px;width:150px;text-align:center;font-size:10px;text-shadow:0 2px 3px #000}#miningProgress{position:absolute;left:-20px;top:46px;width:60px;height:3px;background:#0003;display:none}#miningProgress i{display:block;background:#e6f6ae;height:100%;width:0}#tip{position:absolute;left:50%;top:65%;transform:translateX(-50%);white-space:nowrap;background:#173c2bb0;padding:8px 14px;border-radius:4px;font-size:11px;pointer-events:none}#toast{position:absolute;left:50%;top:27%;transform:translateX(-50%) translateY(-12px);max-width:80%;background:#163d30f5;border:1px solid #d6efb87a;padding:12px 20px;border-radius:6px;text-align:center;font-size:12px;opacity:0;transition:opacity .18s,transform .18s;pointer-events:none}#toast.show{opacity:1;transform:translateX(-50%)}#damage{position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;box-shadow:inset 0 0 100px #f22a;opacity:0;transition:opacity .2s}.bottom-controls{position:absolute;left:30px;right:30px;bottom:calc(48px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));height:125px;pointer-events:none}#joystick{position:absolute;left:0;bottom:0;width:112px;height:112px;pointer-events:auto;touch-action:none;border:1px solid #ffffff66;border-radius:50%;background:#183d2c38}.joy-ring{position:absolute;top:17px;left:17px;right:17px;bottom:17px;border:1px dashed #fff4;border-radius:50%}#stick{position:absolute;left:33px;top:33px;width:46px;height:46px;border-radius:50%;background:#d9edbbbd;border:2px solid #f1ffe2;box-shadow:0 3px 10px #16312244}#joystick span{position:absolute;bottom:12px;font-size:8px;left:44px;opacity:.6}.hotbar-wrap{position:absolute;left:50%;bottom:0;transform:translateX(-50%);text-align:center;pointer-events:auto}#hotbar{display:flex;border:2px solid #172c24;background:#193c30e6;padding:4px;border-radius:5px;box-shadow:0 3px 0 #0b241c}#hotbar button{position:relative;background:#31523e;width:49px;height:53px;margin:0 2px;border:1px solid #789a6d;border-bottom:3px solid #0e3326;border-radius:2px}#hotbar button.active{background:#6c8150;border:2px solid #edfac0;box-shadow:0 0 0 1px #c1d88f}#hotbar button i{display:block;width:24px;height:24px;margin:2px auto 0;box-shadow:3px -3px 0 #ffffff30,inset -5px -5px 0 #0002;transform:rotate(-9deg)}#hotbar button b{position:absolute;right:4px;bottom:1px;font-size:10px;text-shadow:0 1px 2px #000}#hotbar button small{position:absolute;left:3px;top:1px;font-size:8px;opacity:.45}.hotbar-wrap>small{font-size:9px;display:block;text-shadow:0 1px 3px #143021;margin-top:9px;white-space:nowrap}.action-cluster{position:absolute;right:0;bottom:0;width:175px;height:130px;pointer-events:auto}.circle{position:absolute;border-radius:50%;box-shadow:0 4px 0 #112f24;border:2px solid #d9e6b981;background:#234e3ee8;width:59px;height:59px;font-size:24px;font-weight:800;touch-action:none}.circle small{display:block;font-size:9px;line-height:14px;font-weight:500}.circle.jump{right:0;top:0}.circle.mine{left:0;bottom:0;background:#e9f5b5;color:#2f4934;border-color:#f7ffd7;width:68px;height:68px}.circle.place{right:0;bottom:0;background:#335f48}.skills{position:absolute;left:50%;bottom:calc(156px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));transform:translateX(-50%);display:flex}.skills button{position:relative;overflow:hidden;min-width:124px;height:48px;border:1px solid #dceab65e;border-bottom:3px solid #122d23;border-radius:5px;background:#1a4031ec;text-align:left;padding:7px 12px 6px 40px;margin:0 4px}.skills em{position:absolute;top:12px;left:10px;display:block;border:1px solid #ddf4b77a;border-radius:4px;padding:2px 4px;font:700 12px sans-serif;color:#e9f6b9}.skills span{display:block;font-size:12px;font-weight:700}.skills small{display:block;font-size:8px;margin-top:3px;color:#c6dda4}.skills i{position:absolute;left:0;bottom:0;top:0;background:#ffffff22;width:0;pointer-events:none}#desktopHint{position:absolute;bottom:14px;width:100%;text-align:center;font-size:9px;opacity:.8;letter-spacing:.5px;text-shadow:0 1px 3px #142a22}#saveStatus{position:absolute;left:30px;bottom:15px;font-size:9px;opacity:.7}.welcome{position:absolute;left:0;top:0;width:100%;height:100%;padding:11vh 7vw;background:linear-gradient(90deg,#0b3628d4, #103d2740 43%,transparent 70%)}.edition{font-size:10px;letter-spacing:3px;color:#e5f3b0;margin-bottom:24px}.welcome h1{font-size:76px;line-height:1.12;letter-spacing:-3px;margin:0;font-weight:900;text-shadow:0 5px 0 #233f31,0 8px 30px #123d2a55}.welcome h1 span{color:#e7f6b0}.welcome p{font-size:14px;line-height:1.9;opacity:.85;margin:24px 0 30px}.welcome-actions{display:flex;align-items:center}.primary{background:#e9f7b5;color:#28412b;border:2px solid #fbffd8;border-bottom:5px solid #9faf71;font-size:15px;font-weight:800;padding:17px 26px;border-radius:7px;box-shadow:0 4px 15px #102d2933}.primary span{margin-left:30px}.secondary{background:#214b3cbd;border:1px solid #d2e6ba70;border-radius:6px;font-size:11px;padding:14px 16px;margin-left:12px}.welcome-bottom{position:absolute;left:7vw;bottom:6vh;font-size:10px;letter-spacing:2px}.welcome-bottom small{display:block;opacity:.6;font-size:9px;margin-top:12px;letter-spacing:0}.character-tag{position:absolute;left:55%;top:66%;font-weight:700;font-size:12px;text-shadow:0 2px 4px #143b28}.character-tag i{display:inline-block;width:5px;height:5px;background:#d6efaa;margin-right:6px}.character-tag small{display:block;font-size:9px;font-weight:400;margin:5px 0 0 12px;opacity:.8}.bird-tag{left:79%;top:59%}.modal{position:absolute;left:0;right:0;top:0;bottom:0;background:#0b281fbf;display:flex;align-items:center;justify-content:center;padding:22px;z-index:30}.panel{width:520px;max-width:100%;max-height:86%;background:#f1f3df;color:#294433;border:2px solid #deefb6;border-bottom:6px solid #8b9c6a;border-radius:10px;box-shadow:0 22px 100px #071c1c66;overflow-y:auto;padding:24px}.panel-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #aabf964d;padding-bottom:17px;margin-bottom:18px}.panel-head small{font-size:9px;letter-spacing:2px;color:#71905c}.panel-head h2{font-size:24px;margin:7px 0 0}.panel-head button{color:#47633f;background:#e1e8ce;font-size:24px;width:34px;height:34px;border-radius:5px}.panel p{font-size:12px;line-height:1.9;color:#667b59}.inventory{display:flex;flex-wrap:wrap;margin:-4px}.inventory>div{width:calc(33.333% - 8px);margin:4px;padding:12px;background:#e4e9cf;border:1px solid #ccdab7;border-radius:5px;font-size:11px}.inventory b{display:block;font-size:22px;margin-top:8px}.recipe{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid #cedabd}.recipe strong{font-size:13px}.recipe small{display:block;font-size:10px;color:#7d9068;margin-top:6px}.recipe button,.menu-button{background:#315c3f;color:#f4f7da;font-size:11px;padding:11px 15px;border-radius:5px;border-bottom:3px solid #203e2b}.recipe button:disabled{opacity:.4}.menu-button{width:100%;display:block;margin:10px 0;font-size:13px}.menu-button.alt{background:#dce6c6;color:#355439;border-color:#bdcba6}.panel h3{font-size:12px;margin:22px 0 10px}.help-row{display:flex;padding:11px 0;border-bottom:1px solid #d5dfc4;font-size:12px;line-height:1.6}.help-row b{width:100px;flex-shrink:0}.help-row span{color:#738364}.photo-preview{display:block;width:100%;max-height:50vh;object-fit:contain;border-radius:5px;background:#d5dfc3}.fatal{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#173d30;z-index:80;text-align:center;padding:30px}.fatal p{max-width:420px;font-size:13px;line-height:1.8;color:#d0dfb4}.fatal button{padding:12px 22px;background:#e5f5b4;color:#2b492c;border-radius:6px;margin-top:15px}
@media(max-width:700px){.topbar{left:17px;right:17px;top:var(--hud-top,55px)}.brand-mark{width:32px;height:32px;font-size:21px;margin-right:9px}.brand b{font-size:14px}.brand small{font-size:7px;letter-spacing:1px}.worldstatus span{font-size:9px;padding:7px 9px}.worldstatus button{width:29px;height:29px}.vitals{left:18px;top:calc(var(--hud-top,55px) + 48px);width:170px}.vitals b{font-size:12px}.tiny{font-size:8px}.heart{font-size:19px}.food{margin-left:12px}.quest{right:16px;top:calc(var(--hud-top,55px) + 103px);width:158px;padding:12px}.quest>b{font-size:11px}.quest small{font-size:8px}.quest-track{width:98px}.quest>span{right:12px;bottom:10px}.side-tools{right:16px;top:calc(var(--hud-top,55px) + 209px)}.side-tools button{width:53px;height:51px;margin-bottom:7px}.side-tools button:first-child{height:67px}.side-tools b{font-size:9px}.side-tools small{font-size:7px}.bottom-controls{left:18px;right:18px;bottom:calc(92px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))}#joystick{width:100px;height:100px}#stick{left:29px;top:29px;width:42px;height:42px}#joystick span{left:39px}.action-cluster{width:144px;height:124px}.circle{width:54px;height:54px}.circle.mine{width:62px;height:62px}.hotbar-wrap{position:fixed;bottom:calc(17px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));left:50%}#hotbar button{width:42px;height:44px}#hotbar button i{width:20px;height:20px}.hotbar-wrap>small{font-size:8px}.skills{bottom:calc(223px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));left:18px;transform:none}.skills button{min-width:103px;height:43px;padding-left:30px;margin:0 5px 0 0}.skills em{left:7px;top:12px;font-size:9px}.skills span{font-size:10px}.skills small{font-size:7px}#desktopHint{display:none}#saveStatus{left:19px;bottom:76px;font-size:8px}#tip{font-size:9px;top:62%;padding:7px 10px}#aim{top:45%}.welcome{padding:11vh 7vw;background:linear-gradient(180deg,#16432ec9,transparent 48%,#15372466)}.edition{font-size:8px;letter-spacing:2px;margin-bottom:15px}.welcome h1{font-size:48px;letter-spacing:-2px}.welcome p{font-size:11px;margin:15px 0 24px}.welcome-actions{position:absolute;left:7vw;right:7vw;bottom:13vh;display:block}.primary{width:100%;padding:15px 25px;text-align:left}.primary span{float:right}.secondary{margin:10px 0 0;width:100%;padding:11px;background:#214b3cf0}.welcome-bottom{bottom:4vh;width:86%;text-align:center;font-size:8px;letter-spacing:1px}.welcome-bottom small{margin-top:7px;font-size:8px}.character-tag{left:29%;top:58%;font-size:10px}.bird-tag{left:68%;top:52%}.character-tag small{font-size:7px;width:95px;line-height:1.5}.panel{padding:20px}.panel-head h2{font-size:21px}#toast{top:32%;width:80%;font-size:11px}.panel p{font-size:11px}}
@media(max-height:530px){.topbar{top:12px}.vitals{top:65px}.quest{top:65px}.side-tools{top:175px;display:flex;right:20px}.side-tools button{margin-left:5px}.side-tools button:first-child{height:60px}.bottom-controls{bottom:25px}.skills{bottom:105px}.welcome{padding-top:7vh}.welcome h1{font-size:45px}.welcome p{margin:10px 0 15px}.welcome-bottom{bottom:4vh}#tip{display:none}}
@media(max-width:700px){.side-tools{display:flex;top:calc(var(--hud-top,55px) + 194px)}.side-tools button{margin-left:5px;height:51px!important}.side-tools small{display:none}.side-tools button:first-child{background:#e7f4b8}.skills{bottom:calc(211px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))}.bird-tag{left:70%;top:55%}.frog-tag{left:24%;top:64%}}
.select-block{display:block;width:100%;margin-top:7px;padding:5px;background:#c8d8af;color:#425c36;font-size:9px;border-radius:3px}.inventory{max-height:218px;overflow-y:auto}.inventory>div{padding:10px}.inventory b{font-size:18px;margin-top:5px}
@media(max-width:700px){.skills{display:block}.skills button{display:block;margin:5px 0 0;min-width:105px}.frog-tag{top:60%}}
/* Creator mode: transparent AI artwork, touch-first controls. */
.creator-sticker{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;background:transparent;padding:0 0 7px;text-shadow:0 2px 3px #263b23;z-index:4;filter:drop-shadow(0 3px 5px #163b2250)}.creator-sticker img{display:block;width:100%;height:94px;object-fit:contain;pointer-events:none}.creator-sticker b{font-size:13px;line-height:19px;color:#fff3ba;letter-spacing:1px;margin-top:-1px}.creator-sticker small{font-size:9px;line-height:17px;padding:0 11px;background:#233e2dda;border:1px solid #e8ce7670;border-radius:10px;color:#f4dfa0}.hud-sticker{right:25px;top:calc(var(--hud-top,28px) - 8px);width:112px}.home-sticker{right:5vw;top:var(--hud-top,30px);width:125px}.home-sticker img{height:118px}.vitals .worldstatus{margin-top:10px;pointer-events:auto}.vitals .worldstatus span{font-size:10px;padding:6px 10px;text-shadow:none}.vitals .worldstatus button{height:28px;width:29px;margin-left:7px;font-size:12px}.quest{top:calc(var(--hud-top,28px) + 144px)}.quest button{right:10px;top:10px;width:20px;height:20px}.quest>small{padding-right:22px}.quest small span{float:none;margin-left:14px}.side-tools{top:calc(var(--hud-top,28px) + 257px)}.creator-tools{position:absolute;right:30px;bottom:calc(198px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));display:flex;flex-direction:column;z-index:5}.creator-tools button{width:112px;min-height:48px;border:1px solid #ffdfa66b;border-bottom:3px solid #734d21;border-radius:5px;background:linear-gradient(120deg,#8f642a,#564623);padding:9px 10px;margin-top:7px;box-shadow:0 3px 10px #1c331e44}.creator-tools b{display:block;font-size:12px;color:#fff0bf}.creator-tools small{display:block;font-size:8px;margin-top:3px;color:#e8d5a3}.creator-tools button.on{background:#c0a14a;border-color:#ffe9a7;box-shadow:0 0 15px #d4b7556b}.creator-tools button.on b,.creator-tools button.on small{color:#273a24}.creator-active .vitals .heart{color:#ffe398}.creator-active #health{color:#ffe9ab;font-size:22px;line-height:20px}.creator-active .energy-track i{background:#ffe39b}.creator-intro{display:flex;align-items:center;margin:-5px 0 8px}.creator-intro>img{width:108px;height:108px;object-fit:contain;margin-right:14px;flex-shrink:0;filter:drop-shadow(0 4px 7px #a4823338)}.creator-intro>div{min-width:0}.creator-intro h3{font-size:23px;line-height:1.3;margin:9px 0 6px;letter-spacing:-.5px;color:#3b4b2b}.creator-intro p{font-size:11px;line-height:1.65;margin:0}.gold-chip{display:inline-block;color:#84612b;background:#e9d99f;font-weight:700;font-size:9px;letter-spacing:.6px;padding:5px 9px;border:1px solid #b9913d4a;border-radius:4px}.god-perks{border-top:1px solid #d6dfc5;margin:12px 0 18px}.god-perks>div{padding:12px 3px;border-bottom:1px solid #d6dfc5}.god-perks b{display:block;font-size:13px;color:#445535}.god-perks small{display:block;font-size:11px;line-height:1.7;margin-top:4px;color:#7d8867}.god-primary{display:block;width:100%;padding:14px 15px;background:linear-gradient(120deg,#d7b363,#b99142);border:1px solid #f0d797;border-bottom:4px solid #8c6b2e;border-radius:6px;color:#3f3e20;font-size:14px;font-weight:800;line-height:20px;box-shadow:0 3px 10px #866c251c}.god-primary:disabled{opacity:.6}.god-later{display:block;width:100%;padding:13px 0 4px;background:transparent;color:#748264;font-size:12px}.god-status{font-size:11px!important;line-height:1.75!important;color:#788561!important;text-align:center;margin:12px 0 3px;overflow-wrap:break-word}.creator-region{border:1px solid #ccd9b1;background:#e2e9cd;padding:12px 14px;border-radius:6px;margin-bottom:13px}.creator-region b{display:block;font-size:12px;color:#47613b}.creator-region small{display:block;font-size:10px;color:#7b8d63;margin-top:5px;line-height:1.6}.builder-actions{display:flex;margin-bottom:16px}.builder-actions button{margin:0 4px 0 0;font-size:11px;min-height:42px}.builder-actions button+button{margin-right:0;margin-left:4px}.command-label{display:block;font-size:12px;font-weight:700;margin:13px 0 9px;color:#4f6540}#creatorCommand{display:block;width:100%;height:111px;padding:13px 12px;background:#fffef2;border:1px solid #bccfa2;border-radius:6px;resize:vertical;font:16px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#3b573b;user-select:text;-webkit-user-select:text;outline-color:#b79a4d}.command-examples{display:flex;flex-wrap:wrap;margin:7px 0 14px}.command-examples button{font-size:10px;padding:9px 10px;color:#6c7e58;background:#e0e8cb;border:1px solid #cbd8b1;border-radius:20px;margin:0 5px 4px 0}.ai-note{font-size:9px!important;text-align:center;opacity:.75;margin:9px 0 0}.plan-title{font-size:21px!important;margin:14px 0 6px!important}.build-progress{text-align:center;padding:9px 0 14px}.build-progress>img{width:140px;height:140px;object-fit:contain}.build-progress>b{font-size:24px;display:block;color:#7d6a38;margin:5px 0 15px}.build-progress>div{height:7px;overflow:hidden;border-radius:7px;background:#ced9b9}.build-progress i{display:block;height:100%;width:0;background:#c19b47;transition:width .15s}.complete>img{width:105px}.complete h3{font-size:20px}.god-menu{background:#aa8b45;color:#fff3d5;border-color:#8d7035}.range-toolbar{position:absolute;left:50%;bottom:calc(24px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));transform:translateX(-50%);width:360px;max-width:92%;padding:16px;background:#163d2ff0;border:1px solid #e8d08e7d;border-bottom:4px solid #0e281f;border-radius:8px;text-align:center;z-index:20;box-shadow:0 10px 50px #09281e4d}.range-toolbar>b{display:block;color:#fff0bb;font-size:15px}.range-toolbar>span{display:block;font-size:11px;color:#ccdfb0;margin-top:8px;line-height:1.5}.range-toolbar>div{display:flex;justify-content:center;margin-top:13px}.range-toolbar button{padding:12px 21px;background:#31583e;border:1px solid #c7d9a649;border-radius:5px;font-size:12px;margin:0 4px}.range-toolbar button+button{background:#e2c778;color:#34462a;font-weight:700;border-color:#ffe9ae}.range-select .bottom-controls,.range-select .skills,.range-select .side-tools,.range-select .quest,.range-select .creator-tools,.range-select #aim,.range-select #tip,.range-select .hud-sticker{display:none!important}.range-select .vitals{opacity:.7;pointer-events:none}.range-select #world{cursor:crosshair}.panel{scroll-padding-bottom:20px}
@media(max-width:700px){.hud-sticker{right:16px;width:101px;top:calc(var(--hud-top,55px) - 7px)}.hud-sticker img{height:78px}.creator-sticker b{font-size:11px}.creator-sticker small{font-size:8px;line-height:15px}.home-sticker{right:4vw;width:112px;top:var(--hud-top,45px)}.home-sticker img{height:108px}.vitals .worldstatus{margin-top:9px}.vitals .worldstatus span{font-size:9px;padding:5px 8px}.vitals .worldstatus button{height:25px;width:28px}.quest{top:calc(var(--hud-top,55px) + 122px);width:158px}.quest small span{font-size:8px;margin-left:8px}.quest button{width:17px;height:17px;top:8px;right:8px;font-size:10px}.side-tools{top:calc(var(--hud-top,55px) + 223px)}.creator-tools{right:17px;bottom:calc(232px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))}.creator-tools button{width:102px;min-height:44px;padding:7px 8px}.creator-tools b{font-size:11px}.creator-tools small{font-size:8px}.creator-intro>img{width:88px;height:95px;margin-right:10px}.creator-intro h3{font-size:21px}.god-perks>div{padding:10px 2px}.god-perks small{font-size:10px}.creator-intro p{font-size:10px}.gold-chip{font-size:8px;padding:4px 7px}.panel{max-height:88%}.skills button{padding-left:31px}.skills em{font-size:14px;border:0;padding:0;left:10px;top:12px;color:#e3f0ae}}
@media(max-height:650px) and (max-width:700px){.creator-sticker img{height:65px}.creator-sticker b{font-size:10px;line-height:16px}.home-sticker img{height:87px}.home-sticker{width:105px}.hud-sticker{width:88px}.quest{top:calc(var(--hud-top,55px) + 101px);padding:10px 12px}.quest-track{margin-top:8px}.side-tools{top:calc(var(--hud-top,55px) + 193px)}.side-tools button{height:44px!important}.creator-tools{bottom:calc(231px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))}.creator-tools button{min-height:39px;margin-top:5px}.creator-tools small{font-size:7px}.creator-intro>img{width:75px;height:80px}.god-perks>div{padding:8px 2px}.god-primary{padding:11px 12px}.creator-intro h3{font-size:19px}.creator-intro p{font-size:9px}.panel-head{padding-bottom:12px;margin-bottom:13px}.god-perks{margin:8px 0 14px}}
@media(max-height:650px) and (max-width:700px){.creator-active .creator-tools{top:calc(var(--hud-top,55px) + 174px);bottom:auto;flex-direction:row;right:16px}.creator-active .creator-tools button{width:96px;margin:0 0 0 5px}.creator-active .side-tools{top:calc(var(--hud-top,55px) + 229px)}}
/* Bilibili Toy desktop + touch layout. */
.home-modes{display:flex;margin:0 0 16px}.home-modes button{padding:9px 17px;font-size:12px;background:#163e2cbd;border:1px solid #d2e7b943;border-radius:5px;color:#c5d8b5;margin-right:8px}.home-modes button.active{background:#e9f4bc;color:#2c4933;border-color:#edffd7;font-weight:800}.welcome h1{font-size:75px}.welcome p{margin:18px 0 22px}.desktop-platform{position:absolute;left:30px;top:calc(var(--hud-top,28px) + 156px);display:flex}.desktop-platform button{background:#193e2fdc;border:1px solid #d4e6b43d;border-bottom:2px solid #0d291d;border-radius:4px;font-size:10px;padding:8px 10px;margin-right:6px}.deploy-entry{position:absolute;left:30px;top:calc(var(--hud-top,28px) + 204px);width:174px;min-height:61px;background:linear-gradient(115deg,#d9ed9c,#b9d480);color:#284936;border:1px solid #e7f8bc;border-bottom:4px solid #7d9e5a;border-radius:6px;text-align:left;padding:10px 13px 10px 49px;box-shadow:0 3px 12px #1a332a55}.deploy-entry>span{position:absolute;left:15px;top:13px;font-size:26px}.deploy-entry b{display:block;font-size:14px}.deploy-entry small{display:block;font-size:8px;margin-top:4px;opacity:.7}.deploy-entry.active{background:#f2d47e;border-color:#ffe7a6;border-bottom-color:#ac8747}.siege-hud{position:absolute;left:50%;top:var(--hud-top,28px);transform:translateX(-50%);width:324px;background:#163b2ee8;border:1px solid #d3eab05e;border-radius:6px;padding:11px 14px;box-shadow:0 3px 12px #08271e22;pointer-events:auto}.siege-head{display:flex;align-items:center;justify-content:space-between}.siege-head>b{font-size:12px;color:#dfeeb1}.siege-head>span{font-size:10px;color:#cfddbd}.siege-head>button{width:20px;height:20px;font-size:10px;border:1px solid #d9e9ba77;background:transparent;border-radius:50%}.base-track{height:6px;background:#081d14a8;border:1px solid #c2ddaa33;margin-top:8px}.base-track i{display:block;height:100%;width:100%;background:#c6df8b;transition:width .2s}.siege-metrics{display:flex;align-items:center;justify-content:space-between;margin-top:7px}.siege-metrics>span{font-size:8px;color:#c2d2b4}.siege-metrics>b{font-size:18px;color:#fff0b6}.siege-metrics em{font-style:normal}.siege-metrics>small{font-size:8px;color:#b4c8a6}.wave-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #acc39833;margin-top:8px;padding-top:8px}.wave-actions>span{font-size:9px;color:#cfddb6}.wave-actions button{padding:5px 9px;background:#315d41;color:#dce7ba;border:1px solid #bacb8d44;border-radius:3px;font-size:8px}.siege-mode .quest{display:none}.siege-mode .side-tools{top:calc(var(--hud-top,28px) + 166px)}#desktopControls{position:absolute;bottom:12px;left:0;right:0;text-align:center;pointer-events:none;font-size:9px;letter-spacing:.4px;opacity:.7;text-shadow:0 1px 3px #163c2c}.deployment-panel{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);width:1000px;max-width:94%;background:#102e25ee;border:1px solid #d8e9ad69;border-bottom:4px solid #061e15;border-radius:9px;padding:15px 18px;box-shadow:0 8px 50px #0a231e77;z-index:20}.deployment-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.deployment-heading b{display:block;font-size:16px;color:#e4f2ae}.deployment-heading small{display:block;font-size:10px;margin-top:5px;color:#bdcea7}.deployment-heading>button{padding:9px 13px;font-size:10px;border:1px solid #c7d9a650;background:#31573e;border-radius:5px;color:#e8f3c7}#defenderCards{display:flex;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin;scrollbar-color:#648560 #173c2d}.defender-card{flex-shrink:0;width:88px;padding:7px;background:#2c4e3e;border:1px solid #86a16b6e;border-radius:5px;margin-right:7px;text-align:center;position:relative}.defender-card img{display:block;width:67px;height:65px;object-fit:contain;margin:0 auto}.defender-card b{font-size:10px;display:block;color:#e7efc9;margin-top:2px}.defender-card small{display:block;font-size:8px;color:#ead79d;margin-top:4px}.defender-card.selected{background:#5a6c43;border:2px solid #f4e5a3;box-shadow:0 0 0 1px #9e9a5d}.defender-card.locked{opacity:.42}.defender-card.locked img{filter:grayscale(1)}.deploy-mode .hotbar-wrap,.deploy-mode .skills,.deploy-mode .action-cluster,.deploy-mode #aim,.deploy-mode .creator-tools,.deploy-mode #tip{display:none!important}.deploy-mode .side-tools{display:none}.deploy-mode .deploy-entry{display:none}.deploy-mode #joystick{opacity:.7}.deploy-mode #desktopControls{display:none}.deploy-mode .bottom-controls{bottom:215px}.unit-detail{display:flex;align-items:center}.unit-detail img{width:115px;height:115px;object-fit:contain;margin-right:14px}.unit-detail b{font-size:14px}.unit-detail p{font-size:11px;margin:8px 0}.unit-detail small{font-size:10px;color:#778760}.siege-result{text-align:center}.siege-result>span{font-size:11px;color:#aa8744;letter-spacing:2px}.siege-result h3{font-size:27px;margin:10px 0;color:#42643b}.reward-character{display:flex;align-items:center;justify-content:center;background:#e1e9cb;border:1px solid #cad7ab;border-radius:6px;margin:16px 0 20px;text-align:left;padding:7px 20px}.reward-character img{width:110px;height:110px;object-fit:contain}.reward-character small{color:#9d7d3a;font-size:10px}.reward-character b{display:block;font-size:22px;margin-top:7px}.reward-character p{margin:6px 0;font-size:11px}.terrain-options{display:flex;flex-wrap:wrap;margin:12px -4px}.terrain-options button{flex:1;min-width:110px;margin:4px;padding:14px 9px;background:#dce7c3;color:#4c6239;border:1px solid #bdcea0;border-radius:5px;font-size:11px}.bump{animation:rice-bump .25s ease}@keyframes rice-bump{50%{transform:scale(1.17);color:#fff8c0}}.creator-tools{bottom:calc(205px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))}
@media(min-width:901px){#joystick{opacity:.35;width:90px;height:90px;pointer-events:none}#stick{left:26px;top:26px;width:36px;height:36px}#joystick span{left:33px}.brand b{font-size:20px}.home-sticker{right:5vw;top:6vh;width:155px}.home-sticker img{height:140px}.hud-sticker{width:112px}.welcome-bottom{bottom:5vh}.welcome-actions .primary{min-width:234px}.bottom-controls{bottom:40px}.skills{bottom:145px}.hero-tag{display:block}.side-tools{display:flex;flex-direction:column}.side-tools button{width:67px;height:61px}.deployment-panel{bottom:28px}}
@media(max-width:900px){.desktop-platform{display:none}#desktopControls{display:none}.welcome h1{font-size:56px}.home-modes{margin:15px 0}.home-modes button{font-size:10px;padding:8px 15px}.siege-hud{left:18px;right:18px;width:auto;transform:none;top:calc(var(--hud-top,55px) + 139px);padding:9px 12px}.siege-mode .side-tools{top:calc(var(--hud-top,55px) + 273px)}.deploy-entry{left:18px;top:calc(var(--hud-top,55px) + 257px);width:143px;min-height:49px;padding:8px 10px 8px 39px}.deploy-entry span{left:11px;top:9px;font-size:22px}.deploy-entry b{font-size:12px}.deploy-entry small{font-size:7px}.siege-head>b{font-size:11px}.siege-head>span{font-size:9px}.siege-metrics>b{font-size:15px}.wave-actions{padding-top:5px;margin-top:5px}.wave-actions button{font-size:8px}.deployment-panel{bottom:12px;padding:12px;max-width:95%}.deployment-heading b{font-size:13px}.deployment-heading small{font-size:9px;max-width:220px}.deployment-heading>button{padding:8px;font-size:8px}.defender-card{width:76px}.defender-card img{width:56px;height:57px}.defender-card b{font-size:9px}.defender-card small{font-size:7px}.deploy-mode .bottom-controls{bottom:183px}.unit-detail img{width:90px;height:90px}.welcome-bottom{font-size:8px}.home-sticker{width:110px}.home-sticker img{height:100px}}
@media(max-height:650px) and (max-width:900px){.home-modes{margin-top:10px}.welcome h1{font-size:45px}.welcome p{font-size:10px;margin:12px 0}.siege-hud{left:18px;width:190px;right:auto;top:calc(var(--hud-top,55px) + 139px)}.siege-head>span{font-size:7px}.siege-head>b{font-size:9px}.siege-head>button{width:16px;height:16px;font-size:9px}.siege-metrics{margin-top:4px}.siege-metrics>b{font-size:13px}.siege-metrics>small{font-size:6px}.siege-metrics>span{font-size:6px}.wave-actions{flex-wrap:wrap}.wave-actions>span{font-size:7px}.wave-actions button{font-size:6px;padding:4px}.deploy-entry{top:calc(var(--hud-top,55px) + 254px);width:147px}.siege-mode .side-tools{top:calc(var(--hud-top,55px) + 164px);right:16px;display:block}.siege-mode .side-tools button{width:52px;height:44px!important}.siege-mode .creator-tools{right:16px;bottom:204px;top:auto;flex-direction:column}.siege-mode .creator-tools button{width:91px;margin:5px 0 0}.deployment-heading small{max-width:150px}.deploy-mode #joystick{display:none}}
.deployment-view-controls{display:flex;align-items:center}.deployment-view-controls button{padding:9px 12px;font-size:12px;border:1px solid #c7d9a650;background:#31573e;border-radius:5px;color:#e8f3c7;margin-left:6px}.deployment-view-controls #closeDeployment{font-size:10px;padding:10px 14px}@media(max-width:900px){.deployment-view-controls button{padding:8px 9px;margin-left:4px}.deployment-view-controls #closeDeployment{font-size:8px;padding:9px 8px}}@media(max-height:650px) and (max-width:900px){.siege-mode.creator-active .creator-tools{display:none}.deployment-heading small{max-width:125px}.deployment-view-controls button{padding:7px}.deployment-view-controls #closeDeployment{font-size:7px;padding:9px 6px}}

/* Creator flight and single-door treasure objective. */
.chest-hud-icon{width:30px;height:30px;object-fit:contain;vertical-align:middle;margin:-7px 7px -7px 0}.siege-hud .danger{color:#ffb398;font-weight:800}.chest-track{height:3px}.flight-height{position:absolute;right:112px;bottom:230px;display:flex;gap:7px;pointer-events:auto}.flight-height button{width:49px;height:56px;border:1px solid #d7edb97a;border-bottom:3px solid #163728;border-radius:6px;background:#244c3fe8;font-size:24px;touch-action:none}.flight-height small{display:block;font-size:9px}.creator-tools{flex-wrap:wrap;width:250px;justify-content:flex-end;gap:6px}.creator-tools button{margin:0;min-width:110px}.creator-tools button.on{border-color:#f3d66f;background:#796837}
@media(max-width:900px){.creator-tools{width:210px;right:18px}.creator-tools button{min-width:96px;padding:7px}.flight-height{right:18px;bottom:230px}.chest-hud-icon{width:25px;height:25px}}

.creator-tools{left:30px;right:auto;bottom:215px;top:auto;display:grid;grid-template-columns:repeat(2,112px);width:auto;gap:7px}.flight-height{left:30px;right:auto;bottom:335px}.deploy-mode .flight-height,.range-select .flight-height{display:none!important}
@media(max-width:900px){.creator-active .creator-tools{display:none!important}.flight-height{left:18px;right:auto;bottom:235px}.flight-active .skills{display:none}}

/* v3: one menu, explicit modes, usable touch targets, landscape-only play. */
.rotate-gate{position:fixed;inset:0;z-index:1000;background:radial-gradient(ellipse at 50% 35%,#285d44,#0e211c 75%);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;color:#eaf3cf}.rotate-phone{font-size:70px;width:112px;height:72px;border:4px solid #e7efb4;border-radius:14px;line-height:62px;margin-bottom:30px;box-shadow:0 0 42px #8bcf8d25}.rotate-gate h2{font-size:22px;margin:0 0 12px}.rotate-gate p{font-size:13px;line-height:1.9;opacity:.8}.rotate-gate button{margin:18px 0;padding:15px 37px;border-radius:7px;background:#ebf1b7;color:#203f2f;font-size:15px;font-weight:800;box-shadow:0 4px 0 #7d945d}.rotate-gate small{max-width:300px;font-size:11px;line-height:1.8;color:#b1c4b6}.portrait-blocked #hud,.portrait-blocked #welcome,.portrait-blocked #modal,.portrait-blocked #deploymentPanel,.portrait-blocked #rangeToolbar{visibility:hidden}.menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.menu-grid button{min-height:44px;padding:11px 7px;background:#dce5bf;color:#2e4937;border:1px solid #bfcc9c;border-bottom:3px solid #a3b283;border-radius:5px;font-size:12px;font-weight:700}#panelBack{font-size:11px;white-space:nowrap;min-height:36px;padding:6px 10px;border-radius:5px;background:#e1e8c8;color:#36503b;margin-right:12px}.panel-head>div{flex:1}.panel-head{position:sticky;top:-25px;background:#f0f3de;z-index:2;padding-top:4px}.panel{overscroll-behavior:contain}.panel-head button{flex-shrink:0}.side-tools{display:flex;gap:8px;right:30px;top:210px}.side-tools button,.side-tools button:first-child{height:58px;margin:0}.side-tools #photo{display:none}.flight-height{z-index:6}.flight-height button{min-width:48px;min-height:48px}.deploy-mode .flight-height,.range-select .flight-height,.deploy-mode #creatorTools,.range-select #creatorTools{display:none!important}.deploy-mode #joystick,.range-select #joystick{display:none!important}.deploy-mode #tip,.range-select #tip{display:none!important}.range-select .side-tools{display:none!important}.touch-ui .keyboard-only{display:none}.touch-ui .desktop-platform,.touch-ui #desktopControls{display:none}.deploy-entry>small span{position:static;font:inherit}.flight-active #jump{visibility:hidden}
/* Short landscape windows and phones share a deliberate controller layout. */
.compact-ui .topbar{left:max(16px,var(--safe-area-inset-left,0px));right:16px;top:max(10px,var(--safe-area-inset-top,0px))}.compact-ui .brand-mark{width:29px;height:30px;font-size:21px;margin-right:8px}.compact-ui .brand b{font-size:13px;letter-spacing:.5px}.compact-ui .brand small{max-width:170px;font-size:7px;letter-spacing:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.compact-ui .vitals{left:max(16px,var(--safe-area-inset-left,0px));top:49px;width:165px}.compact-ui .heart{font-size:18px}.compact-ui .vitals b{font-size:12px}.compact-ui .food{margin-left:10px}.compact-ui .tiny{font-size:8px}.compact-ui .energy-track{margin-top:4px;height:4px}.compact-ui .vitals small{font-size:8px;margin-top:4px}.compact-ui .vitals .worldstatus{margin-top:6px}.compact-ui .vitals .worldstatus span{padding:4px 7px;font-size:8px}.compact-ui .vitals .worldstatus button{height:34px;width:38px;margin-left:5px}.compact-ui .hud-sticker{right:max(14px,var(--safe-area-inset-right,0px));top:5px;width:78px}.compact-ui .hud-sticker img{height:57px}.compact-ui .hud-sticker b{font-size:9px;line-height:15px}.compact-ui .hud-sticker small{font-size:7px;line-height:14px;padding:0 6px}.compact-ui .siege-hud{top:10px;left:50%;right:auto;transform:translateX(-50%);width:clamp(240px,36vw,330px);padding:10px 12px}.compact-ui .siege-head>b{font-size:10px}.compact-ui .siege-head>span{font-size:8px}.compact-ui .siege-head>button{width:28px;height:28px;font-size:12px}.compact-ui .siege-metrics{margin-top:6px;gap:8px}.compact-ui .siege-metrics>span{font-size:8px}.compact-ui .siege-metrics>b{font-size:14px}.compact-ui .siege-metrics>small{font-size:8px}.compact-ui .wave-actions{padding-top:5px;margin-top:5px}.compact-ui .wave-actions>span{font-size:9px}.compact-ui .wave-actions button{font-size:10px;min-height:32px;padding:5px 9px}.compact-ui .chest-hud-icon{width:23px;height:23px;margin-right:4px}.compact-ui .side-tools,.compact-ui.siege-mode .side-tools{right:max(14px,var(--safe-area-inset-right,0px));left:auto;top:112px;display:flex;flex-direction:row;gap:6px}.compact-ui .side-tools button,.compact-ui .side-tools button:first-child{width:58px;height:46px!important;min-height:44px;padding:4px;margin:0}.compact-ui .side-tools span{font-size:17px;line-height:18px}.compact-ui .side-tools b{font-size:9px;margin-top:2px}.compact-ui .side-tools small{display:none}.compact-ui .quest{display:none}.compact-ui .deploy-entry{left:max(16px,var(--safe-area-inset-left,0px));right:auto;top:146px;bottom:auto;width:123px;min-height:44px;padding:8px 8px 7px 34px}.compact-ui .deploy-entry span{top:10px;left:9px;font-size:21px}.compact-ui .deploy-entry b{font-size:10px}.compact-ui .deploy-entry small{font-size:7px}.compact-ui .deploy-entry .keyboard-only{position:static;font:inherit}.compact-ui .creator-tools,.compact-ui.creator-active .creator-tools,.compact-ui.siege-mode.creator-active .creator-tools{display:block!important;left:max(16px,var(--safe-area-inset-left,0px));right:auto;top:198px;bottom:auto;width:123px}.compact-ui .creator-tools.hidden{display:none!important}.compact-ui .creator-tools button{display:none;min-width:0;width:123px;margin:0;min-height:44px;padding:7px}.compact-ui .creator-tools #flightMode{display:block}.compact-ui .creator-tools b{font-size:10px}.compact-ui .creator-tools small{font-size:8px}.compact-ui .bottom-controls{left:max(16px,var(--safe-area-inset-left,0px));right:max(14px,var(--safe-area-inset-right,0px));bottom:max(16px,var(--safe-area-inset-bottom,0px));height:122px}.compact-ui #joystick{width:94px;height:94px;left:0;bottom:0}.compact-ui .joy-ring{inset:13px}.compact-ui #stick{width:40px;height:40px;left:26px;top:26px}.compact-ui #joystick span{left:35px;bottom:8px}.compact-ui .hotbar-wrap{left:50%;bottom:0;transform:translateX(-50%)}.compact-ui #hotbar{padding:3px}.compact-ui #hotbar button{width:35px;height:42px;margin:0 2px;min-height:0}.compact-ui #hotbar button i{width:20px;height:20px}.compact-ui #hotbar button b{font-size:9px}.compact-ui .hotbar-wrap>small{font-size:8px;margin-top:5px}.compact-ui .action-cluster{right:0;bottom:0;width:142px;height:120px}.compact-ui .circle{width:53px;height:53px;font-size:21px}.compact-ui .circle.mine{width:62px;height:62px}.compact-ui .circle small{font-size:8px}.compact-ui .skills{left:50%;bottom:93px;transform:translateX(-50%);gap:5px}.compact-ui .skills button{min-width:100px;height:42px;margin:0;padding:5px 8px 5px 31px}.compact-ui .skills em{left:8px;top:10px;font-size:10px}.compact-ui .skills span{font-size:10px}.compact-ui .skills small{font-size:8px}.compact-ui.flight-active .skills{display:flex}.compact-ui .flight-height{left:auto;right:max(14px,var(--safe-area-inset-right,0px));top:auto;bottom:150px;gap:6px}.compact-ui .flight-height button{width:58px;height:48px;font-size:21px}.compact-ui .flight-height small{font-size:8px}.compact-ui .desktop-platform,.compact-ui #desktopControls,.compact-ui #saveStatus,.compact-ui #desktopHint{display:none}.compact-ui #aim{top:46%}.compact-ui #tip{top:59%;font-size:9px;padding:5px 9px}.compact-ui #toast{top:43%;font-size:11px;max-width:58%;padding:9px 14px}.compact-ui .welcome{padding:35px 6vw 20px}.compact-ui .edition{font-size:8px;margin-bottom:11px}.compact-ui .welcome h1{font-size:44px;line-height:1.08;letter-spacing:-1px}.compact-ui .welcome p{font-size:11px;line-height:1.65;margin:14px 0 13px}.compact-ui .home-modes{margin:8px 0 10px}.compact-ui .home-modes button{min-height:36px;padding:7px 16px}.compact-ui .welcome-actions .primary{padding:10px 21px;font-size:12px;min-height:42px}.compact-ui .welcome-actions .secondary{font-size:10px;min-height:42px}.compact-ui .welcome-bottom{bottom:14px;font-size:8px}.compact-ui .home-sticker{width:90px;right:5vw;top:12px}.compact-ui .home-sticker img{height:76px}.compact-ui .home-sticker b{font-size:10px}.compact-ui .home-sticker small{font-size:7px}.compact-ui .panel{width:min(580px,86vw);max-width:86vw;max-height:88vh;padding:18px 22px}.compact-ui .panel-head{top:-18px;padding-bottom:9px;margin-bottom:12px}.compact-ui .panel-head h2{font-size:21px}.compact-ui .panel-head>button#closeModal{width:36px;height:36px}.compact-ui .panel-head small{font-size:8px}.compact-ui #panelBody>p{font-size:11px;line-height:1.7}.compact-ui .menu-grid{gap:7px}.compact-ui .menu-grid button{font-size:11px}.compact-ui .deployment-panel{bottom:10px;left:50%;transform:translateX(-50%);width:min(1000px,96vw);max-width:96vw;padding:9px 13px}.compact-ui .deployment-heading{margin-bottom:7px}.compact-ui .deployment-heading b{font-size:12px}.compact-ui .deployment-heading small{font-size:9px;max-width:340px}.compact-ui .deployment-view-controls button{min-width:40px;min-height:36px;padding:7px 10px;font-size:11px}.compact-ui .defender-card{width:76px;padding:5px;min-height:88px}.compact-ui .defender-card img{width:47px;height:47px}.compact-ui .defender-card b{font-size:9px}.compact-ui .defender-card small{font-size:8px}.compact-ui .range-toolbar{bottom:14px;top:auto;left:50%;transform:translateX(-50%);width:min(500px,85vw);padding:10px 16px}.compact-ui .range-toolbar button{min-height:40px}.compact-ui .creator-intro{gap:12px}.compact-ui .creator-intro>img{width:70px;height:76px}.compact-ui .creator-intro h3{font-size:20px}.compact-ui .god-perks small{font-size:10px}.compact-ui .inventory{grid-template-columns:repeat(4,minmax(0,1fr))}.compact-ui .inventory>div{font-size:10px}.compact-ui .inventory button{min-height:34px;font-size:9px}.compact-ui .recipe button{min-height:40px}.compact-ui .unit-detail img{width:72px}.compact-ui .unit-detail p{font-size:11px}.compact-ui .reward-character img{width:80px}.compact-ui .siege-result h3{font-size:28px}
@media(max-height:360px) and (orientation:landscape){.compact-ui .topbar{top:7px}.compact-ui .vitals{top:43px}.compact-ui .vitals small{display:none}.compact-ui .deploy-entry{top:123px}.compact-ui .creator-tools,.compact-ui.creator-active .creator-tools{top:173px}.compact-ui .side-tools,.compact-ui.siege-mode .side-tools{top:96px}.compact-ui .flight-height{bottom:136px}.compact-ui .welcome{padding-top:20px}.compact-ui .welcome h1{font-size:36px}.compact-ui .welcome p{margin:9px 0;font-size:10px}.compact-ui .welcome-bottom{display:none}.compact-ui .siege-hud{padding:7px 10px}.compact-ui .wave-actions{margin-top:3px;padding-top:3px}}

:root{--safe-area-inset-left:env(safe-area-inset-left,0px);--safe-area-inset-right:env(safe-area-inset-right,0px);--safe-area-inset-bottom:env(safe-area-inset-bottom,0px);--safe-area-inset-top:env(safe-area-inset-top,0px)}.compact-ui .keyboard-only{display:none}.compact-ui .creator-tools.hidden{display:none!important}

.compact-ui .deployment-view-controls button{min-width:44px;min-height:44px}.compact-ui .panel-head>button#closeModal{width:44px;height:44px}.compact-ui .inventory button{min-height:40px}.compact-ui .range-toolbar button{min-height:44px}

.deploy-roster-toggle{display:none}.compact-ui .deploy-roster-toggle{display:block}.compact-ui.roster-collapsed #defenderCards{display:none}.compact-ui.roster-collapsed .deployment-heading{margin-bottom:0}.compact-ui .deployment-heading{gap:8px}.compact-ui .deployment-heading small{max-width:310px}.compact-ui .defender-card{min-height:76px}.compact-ui .defender-card img{width:36px;height:36px}.compact-ui .deployment-heading>div:first-child{min-width:0;flex:1}.compact-ui .deployment-view-controls{flex-shrink:0;gap:4px}.compact-ui .deployment-view-controls button{margin:0;padding:7px 9px}.compact-ui .deployment-heading small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

@media(max-height:360px) and (orientation:landscape){.compact-ui #joystick{width:82px;height:82px}.compact-ui #stick{left:20px;top:20px}.compact-ui #joystick span{left:29px}.compact-ui .flight-height{bottom:126px}.compact-ui .creator-tools #flightMode{min-height:40px}.compact-ui .creator-tools,.compact-ui.creator-active .creator-tools{top:173px}}
@media(max-width:640px) and (orientation:landscape){.compact-ui .side-tools #switch,.compact-ui .side-tools #bag{display:none}.compact-ui .side-tools,.compact-ui.siege-mode .side-tools{top:96px}.compact-ui .siege-hud{width:220px}.compact-ui .siege-head>b{font-size:9px}.compact-ui .siege-head>span{font-size:7px}.compact-ui .chest-hud-icon{width:20px;height:20px}.compact-ui .siege-head{gap:4px}.compact-ui .siege-metrics{gap:4px}.compact-ui .deployment-heading small{max-width:190px}.compact-ui .deployment-view-controls button{padding:7px}.compact-ui .welcome-bottom{display:none}}
@media(max-height:360px) and (orientation:landscape){.compact-ui.siege-mode.creator-active .creator-tools,.compact-ui.creator-active .creator-tools,.compact-ui .creator-tools{top:173px;bottom:auto}}
