@import"https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap";:root{font-family:Noto Sans SC,Microsoft YaHei,sans-serif;color:#fff;font-synthesis:none;--border: #191919;--panel: #c6c6c6;--slot: #8b8b8b;--green: #76bc46;--shadow: #3d3d3d}*{box-sizing:border-box;letter-spacing:0}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}body{overscroll-behavior:none;background:#83b4e4}#app,#app *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible{outline:3px solid #ffe582;outline-offset:3px}button:disabled{cursor:default;opacity:.44}button svg{width:20px;height:20px;stroke-width:2.5;flex:none}button{border-radius:0}[hidden]{display:none!important}#world{display:block;width:100%;height:100%;outline:none;touch-action:none;image-rendering:pixelated}#hud{position:absolute;inset:0;pointer-events:none;text-shadow:2px 2px #252525}#hud button{pointer-events:auto}.topbar{position:absolute;top:max(20px,env(safe-area-inset-top));left:24px;right:24px;display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.world-label{display:grid;gap:3px}.world-label strong{font-size:24px;font-weight:900}.world-label span{font-size:12px;color:#e9f1df}.world-label small{font:11px monospace;color:#eff6fd;margin-top:3px}nav{display:flex;align-items:center;gap:7px}.mode-label{font-size:12px;margin-right:8px}.icon-btn{width:38px;height:36px;display:inline-flex;justify-content:center;align-items:center;color:#fff;background:#424242bb;border:2px solid #191919a0;box-shadow:inset 2px 2px #fff4,inset -2px -2px #0007}.icon-btn:hover{background:#727b63}.icon-btn:active,.pixel-button:active{box-shadow:inset 2px 2px #0008;transform:translateY(1px)}#quest{position:absolute;top:83px;right:24px;padding:9px 12px;background:#1a211bb0;border-left:3px solid #cfdf9e;min-width:170px}#quest small{display:block;font-size:10px;color:#e2dfa0;margin-bottom:4px}#quest strong{font-size:12px;font-weight:500}#flight-controls{position:absolute;top:110px;left:24px;display:grid;justify-items:start;gap:5px}#flight-button{min-width:94px;min-height:44px;background-color:#475b66}#flight-button.active{background-color:#4c7242}#flight-status{font-size:11px}#flight-hint{font-size:10px;color:#e0eddf}#tank-controls{position:absolute;top:110px;left:130px;display:grid;justify-items:start;gap:5px}.tank-actions{display:flex;align-items:stretch;gap:5px}#tank-button{min-width:106px;min-height:44px;background-color:#86505a;white-space:nowrap}#tank-button.active{background-color:#397a6c}#tank-recall-button{width:44px;min-height:44px;padding:0;background-color:#66516f}#tank-hint{font-size:10px;color:#ffe4b1}.quest-track{margin-top:8px;height:3px;background:#0007}.quest-track span{display:block;background:var(--green);height:100%;width:0;transition:width .2s}#crosshair{position:absolute;left:50%;top:50%;width:20px;height:20px;transform:translate(-50%,-50%);mix-blend-mode:difference}#crosshair:before,#crosshair:after{content:"";background:#fff;position:absolute}#crosshair:before{width:2px;height:20px;left:9px}#crosshair:after{width:20px;height:2px;top:9px}#target-label{position:absolute;top:calc(50% + 28px);left:50%;transform:translate(-50%);font-size:12px;white-space:nowrap}#mining-progress{position:absolute;top:calc(50% + 55px);left:calc(50% - 42px);width:84px;height:7px;border:1px solid #191919;background:#0008}#mining-progress::-webkit-progress-bar{background:#0008}#mining-progress::-webkit-progress-value{background:#e2ebc7}#toast{position:absolute;top:25%;left:50%;transform:translate(-50%);text-align:center;font-size:15px;background:#171a17b0;padding:10px 20px;opacity:0;transition:opacity .15s;max-width:90%}#toast.show{opacity:1}.touch #toast{top:40%;font-size:12px;padding:8px 12px}.bottom-hud{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);width:468px;max-width:calc(100% - 16px)}#selected-name{height:30px;text-align:center;font-size:16px;margin-bottom:5px}#weapon-hint{text-align:center;font-size:11px;color:#ffe9ab;margin-bottom:4px}#weapon-hint:empty{display:none}.touch-btn.weapon-action{background:#886535aa;border-color:#ffe9ab}.touch-btn .attack-icon,.touch-btn.weapon-action .mine-icon{display:none}.touch-btn.weapon-action .attack-icon{display:block}.vitals{height:24px;display:flex;justify-content:space-between;align-items:center;padding:0 3px}#hearts,#food{display:flex;gap:2px}.heart{width:17px;height:17px;background:#f2463a;clip-path:polygon(0 15%,15% 15%,15% 0,40% 0,40% 15%,60% 15%,60% 0,85% 0,85% 15%,100% 15%,100% 55%,85% 55%,85% 70%,70% 70%,70% 85%,60% 85%,60% 100%,40% 100%,40% 85%,30% 85%,30% 70%,15% 70%,15% 55%,0 55%);box-shadow:inset 3px 3px #ff9590,inset -3px -3px #8f211c}.food{width:15px;height:16px;background:#ad683c;clip-path:polygon(30% 0,80% 0,100% 20%,100% 60%,80% 80%,50% 80%,30% 100%,0 80%,20% 60%,10% 40%);box-shadow:inset 3px 3px #eaaa68,inset -3px -3px #603723}#level{color:#98ef58;font:700 19px monospace}.experience{height:8px;background:#252820;border:2px solid #111;margin:3px 1px 7px;box-shadow:0 1px #aaa7}.experience span{width:0;display:block;height:100%;background:#80d132}#hotbar,#bag-hotbar{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));background:#202020cc;border:3px solid #242424;box-shadow:inset 0 0 0 2px #aaa}.slot{position:relative;aspect-ratio:1;padding:5px;min-width:0;background:#777777c0;border:2px solid #343434;box-shadow:inset 2px 2px #a8a8a8,inset -2px -2px #525252;color:#fff;display:flex;align-items:center;justify-content:center}.slot:hover{background:#a6a697}.slot.selected{outline:3px solid #fff;outline-offset:-2px;z-index:1;box-shadow:inset 0 0 0 3px #777,0 0 0 1px #222;background:#98988f}.slot canvas{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;pointer-events:none}.slot .amount{position:absolute;right:3px;bottom:0;font:700 16px monospace;text-shadow:2px 2px #222}.slot .slot-key{position:absolute;left:3px;top:1px;font:10px monospace;color:#e3e3e3;text-shadow:1px 1px #222}.slot.empty canvas{opacity:.35}#save-status{position:absolute;right:20px;bottom:20px;font-size:10px;color:#e6e8df}#water-overlay{position:absolute;inset:0;background:#1d69b969;display:none}.pixel-dialog{color:#343434;background:var(--panel);border:3px solid #181818;box-shadow:inset 3px 3px #fff,inset -3px -3px #555,0 10px #0004;padding:22px;width:min(780px,calc(100% - 24px));max-height:calc(100dvh - 28px);overflow:auto}.pixel-dialog::backdrop{background:#1119}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}h2{font-size:20px;margin:0}.dialog-heading .icon-btn{width:30px;height:30px}.inventory-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:24px}.section-title{font-size:13px;margin-bottom:10px;font-weight:700}.section-title span{float:right;color:#596344;font-weight:400;font-size:11px}#inventory-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}#inventory-grid .slot{background:var(--slot);border-color:#373737;box-shadow:inset 2px 2px #555,inset -2px -2px #fff}.quick-label{margin-top:22px}#bag-hotbar{border:0}#bag-hotbar .slot{padding:2px}#bag-hotbar .amount{font-size:12px}#recipes{display:grid;gap:5px}.recipe{width:100%;display:grid;grid-template-columns:35px 1fr 20px;gap:7px;align-items:center;padding:5px 7px;text-align:left;background:#a7a7a7;border:2px solid #595959;box-shadow:inset 1px 1px #ddd,inset -1px -1px #777;color:#222;min-height:47px}.recipe:not(:disabled):hover{background:#b9c5a1}.recipe canvas{width:32px;height:32px;image-rendering:pixelated}.recipe strong{font-size:12px;display:block}.recipe small{font-size:10px;display:block;color:#333;margin-top:3px}.recipe .recipe-count{font:700 15px monospace}.pause-dialog{width:min(420px,calc(100% - 24px));text-align:center;padding:28px}.menu-eyebrow{font:10px monospace;color:#666}.pause-dialog h1{font-weight:900;font-size:35px;text-shadow:2px 2px #fff8;margin:4px 0}.menu-subtitle{font-size:12px;color:#666;margin:4px 0 22px}.pixel-button{color:#fff;background:#777;text-shadow:1px 2px #333;border:2px solid #272727;box-shadow:inset 2px 2px #bdbdbd,inset -2px -2px #464646;min-height:40px;padding:8px 12px;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.pixel-button:hover{background:#899679}.pixel-button.primary{width:100%}.pixel-button.active{background:#617744;box-shadow:inset 2px 2px #a6b88e,inset -2px -2px #354529}.pixel-button.danger{color:#ffe1d5}.mode-switch,.menu-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.settings-row{display:flex;align-items:center;justify-content:space-between;margin:14px 0;font-size:12px;text-align:left;gap:15px}input[type=range]{width:50%;accent-color:#5b783d}input[type=checkbox]{accent-color:#5b783d;width:19px;height:19px}#reset-button{width:100%;margin-top:2px}.world-info{display:block;color:#666;font-size:10px;margin-top:14px}.confirm-dialog{width:min(410px,calc(100% - 24px))}.confirm-dialog p{font-size:13px;line-height:1.8}#loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#6c9cca;z-index:10}#loading h1{font-size:32px;text-shadow:3px 3px #364854;margin:24px 0 2px}#loading p{font-size:13px}.loading-cube{width:48px;height:48px;background:#956840;border-top:14px solid #70a543;box-shadow:inset -12px -8px #0002,5px 5px #0003}#touch-controls{display:none}.touch #touch-controls{display:block}#joystick{position:absolute;left:max(25px,env(safe-area-inset-left));bottom:145px;width:112px;height:112px;border:3px solid #ffffff60;background:#3335;pointer-events:auto;touch-action:none;border-radius:50%}#joystick-knob{position:absolute;width:44px;height:44px;left:31px;top:31px;border:2px solid #fff8;background:#ffffff50;border-radius:50%;pointer-events:none}.touch-actions{position:absolute;bottom:148px;right:max(24px,env(safe-area-inset-right));display:grid;grid-template-columns:54px 54px;gap:10px}.touch-btn{height:54px;color:#fff;background:#3336;border:2px solid #ffffff70;display:flex;align-items:center;justify-content:center;touch-action:none}#touch-jump{grid-column:2}.touch-btn:active{background:#fff5}#touch-jump,#touch-descend,#touch-mine{flex-direction:column;gap:2px}.touch-btn small{font-size:10px}@media(max-width:650px){.topbar{top:max(12px,env(safe-area-inset-top));left:14px;right:14px}.world-label strong{font-size:19px}.world-label span{font-size:10px}.world-label small{font-size:9px}.mode-label{display:none}nav{gap:5px}.icon-btn{width:34px;height:33px}#quest{top:69px;right:14px;min-width:145px;padding:7px 9px}#quest strong{font-size:11px}#flight-controls{top:94px;left:14px}#tank-controls{top:94px;left:108px;width:112px}.tank-actions{flex-direction:column}#flight-controls{width:86px}#flight-status,#flight-hint,#tank-hint{max-width:100%;line-height:1.35}#flight-button{min-width:86px}#tank-button{min-width:112px;padding-inline:9px}#tank-recall-button{width:40px;min-height:38px}.bottom-hud{width:396px;bottom:max(10px,env(safe-area-inset-bottom))}.heart{width:14px;height:14px}.food{width:13px;height:14px}#hearts,#food{gap:1px}.slot{padding:3px}.slot .amount{font-size:13px}.slot .slot-key{display:none}#selected-name{font-size:14px;height:23px}#save-status{display:none}.inventory-layout{grid-template-columns:1fr;gap:22px}.pixel-dialog{padding:18px}#inventory-grid{grid-template-columns:repeat(6,minmax(0,1fr))}#inventory-grid .slot{max-height:58px}#recipes{grid-template-columns:1fr 1fr}.recipe{grid-template-columns:26px 1fr;gap:4px;padding:5px}.recipe canvas{width:26px;height:26px}.recipe-count{display:none}.recipe strong{font-size:11px}.recipe small{font-size:9px}}@media(max-width:360px)and (min-height:501px){#quest{top:170px}#tank-hint{display:none}}@media(max-height:500px){.world-label span,.world-label small{display:none}#quest,#flight-controls,#tank-controls{top:58px}.bottom-hud{width:378px;bottom:8px}#joystick{bottom:24px;width:100px;height:100px}#joystick-knob{top:25px;left:25px}.touch-actions{bottom:25px}.pause-dialog{padding:14px 24px}.pause-dialog h1{font-size:26px}.menu-subtitle{margin-bottom:9px}.settings-row{margin:9px 0}#save-status{display:none}.inventory-layout{grid-template-columns:1fr 1fr}}:root{--adventure-ink: #192d33;--adventure-paper: #fff4ca;--adventure-gold: #f0cb61;--adventure-green: #326a60}#adventure-travel{min-height:38px;background:var(--adventure-green);font-size:12px}#adventure-panel{position:absolute;top:82px;right:24px;width:310px;padding:12px 14px;border:3px solid var(--adventure-ink);background:#192d33ed;box-shadow:3px 3px #0004;color:var(--adventure-paper)}.adventure-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.adventure-heading strong{font-size:14px}.adventure-heading span{white-space:nowrap;color:var(--adventure-gold);font:700 12px monospace}#adventure-detail{font-size:12px;line-height:1.7;margin:8px 0}#adventure-direction{display:block;color:var(--adventure-gold);font-size:11px}#cooperate-button{position:absolute;left:50%;top:calc(50% + 64px);transform:translate(-50%);min-height:48px;max-width:min(380px,85%);border-color:var(--adventure-paper);background:var(--adventure-green);color:var(--adventure-paper);font-weight:700}#cooperate-button:active{transform:translate(-50%) translateY(1px)}#adventure-actors{position:absolute;left:50%;top:calc(50% + 119px);transform:translate(-50%);display:flex;gap:8px}#adventure-actors button{font-size:11px;min-height:44px;white-space:nowrap;padding:6px 9px;background:var(--adventure-ink)}.companion-avatar{position:relative;display:inline-block;width:22px;height:26px;background:#e7b38e;border-top:7px solid #211d20;border-inline:3px solid #211d20}.companion-avatar:after{content:"••";color:#211d20;text-shadow:none;position:absolute;top:-6px;left:2px;letter-spacing:2px}.companion-avatar.long-hair{border-bottom:5px solid #211d20}#adventure-repair{width:100%;margin:8px 0}#adventure-replay{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:12px}.adventure-menu-note{grid-column:1 / -1;font-size:11px;margin:4px 0}.adventure-active #quest,.adventure-active .vitals,.adventure-active .experience,.train-riding #selected-name,.train-riding #weapon-hint,.train-riding #hotbar,.train-riding #flight-controls,.train-riding #tank-controls,.train-riding .touch-actions{display:none}#defense-panel{position:absolute;top:82px;right:24px;width:260px;display:grid;gap:7px;padding:10px 12px;border:3px solid #172b35;background:#173344ed;color:#fff5c9;box-shadow:3px 3px #0004}#defense-panel>div{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px}#defense-shield{color:#9ff4cf;font-size:13px}.defense-actions{justify-content:stretch!important}.defense-actions .pixel-button{min-width:0;min-height:44px;flex:1;padding:6px 8px;font-size:11px}.defense-dialog{width:min(500px,calc(100% - 24px));text-align:center}.defense-dialog>p{color:#555;font-size:12px}.defense-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 10px}.vehicle-choice{min-height:118px;display:grid;place-items:center;gap:5px;padding:14px;color:#2c3335;background:#aeb8ae;border:3px solid #4a5150;box-shadow:inset 3px 3px #e4e9df,inset -3px -3px #727c76}.vehicle-choice svg{width:34px;height:34px}.vehicle-choice strong{font-size:15px}.vehicle-choice small{font-size:10px}.vehicle-choice.selected{outline:4px solid #3e796a;background:#c7dbbd}#defense-leave,#defense-cancel{width:100%;margin-top:8px}.defense-active #adventure-panel,.defense-active #cooperate-button,.defense-active #adventure-actors,.defense-active #flight-controls,.defense-active #tank-controls,.defense-active #hotbar,.defense-active #selected-name{display:none}.defense-active #touch-place,.defense-active:not(.fighter-active) #touch-jump,.defense-active:not(.fighter-active) #touch-descend{display:none}@media(max-width:650px){#adventure-travel{padding:5px 7px;font-size:11px;min-height:34px}.adventure-active .world-label strong{font-size:15px}#adventure-panel{top:160px;left:14px;right:14px;width:auto;padding:8px 10px}.adventure-heading strong{font-size:12px}#adventure-detail{font-size:11px;margin:4px 0;line-height:1.5}#cooperate-button{top:auto;bottom:324px;font-size:12px}#adventure-actors{top:auto;bottom:270px}.adventure-active #target-label{display:none}#defense-panel{top:62px;right:14px;width:225px;padding:7px 9px}#defense-panel>div{font-size:10px}.defense-actions .pixel-button{min-height:44px}.defense-choices{grid-template-columns:1fr}.vehicle-choice{min-height:82px;grid-template-columns:42px 1fr;text-align:left}.vehicle-choice small{grid-column:2}}@media(max-height:500px){#adventure-panel{top:57px;right:16px;left:auto;width:270px;padding:7px 10px}#adventure-detail{font-size:10px;margin:3px 0;line-height:1.4}#cooperate-button{top:auto;bottom:106px;min-height:40px;font-size:11px}#adventure-actors{top:auto;bottom:60px}#adventure-actors button{min-height:36px}.adventure-active #flight-status,.adventure-active #flight-hint,.adventure-active #tank-hint{display:none}#defense-panel{top:54px;right:14px;width:225px}.defense-dialog{padding:12px 18px}.defense-dialog>p{margin:6px 0}.defense-choices{grid-template-columns:1fr 1fr;margin:8px 0 4px}.vehicle-choice{min-height:72px;padding:8px}}
