:root{color-scheme:dark;--ink: #1b2422;--paper: #faf6e7;--gold: #efc17b;--muted: #b7c0b1;--header: 64px;--edge: clamp(18px, 2.45vw, 44px);font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,sans-serif;color:var(--paper);background:#26372c}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button{border:none;background:none}button:hover{filter:brightness(1.12)}button:active{transform:translateY(1px)}[hidden]{display:none!important}svg{width:19px;height:19px;display:block}.topbar{height:var(--header);position:relative;z-index:2;display:flex;align-items:center;gap:18px;padding:0 var(--edge);background:#18211f;border-bottom:1px solid #647568;box-shadow:0 2px 14px #12251e2e}.brand{display:flex;align-items:center;gap:13px;color:#f1eedf}.brand img{width:31px;height:36px;image-rendering:pixelated}.brand svg{width:197px;height:auto;filter:drop-shadow(0 2px #566157)}.bar-rule{height:19px;width:1px;background:#46524a}.edition{font-size:12px;letter-spacing:2px;color:#bdc6ba}.header-tools{display:flex;align-items:center;gap:9px;margin-left:auto}.room-button,.profile,.icon-button{height:36px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:5px}.room-button{padding:0 10px;color:#dfe6d9;font-size:13px}.status-light{background:#ad926e;width:7px;height:7px;box-shadow:0 0 0 3px #69684838;border-radius:50%}.connected .status-light{background:#97d5a4;box-shadow:0 0 0 3px #71b88e20}.room-button svg,.profile svg{width:13px;height:13px;opacity:.75}.tool-rule{margin:0 6px}.icon-button{width:35px;color:#d2d9cc}.icon-button:hover,.room-button:hover{background:#344039}.profile{margin-left:6px;padding:0 10px 0 7px;border:1px solid #4b574b;background:#2d3830;font-size:12px}.profile #username{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:110px}.avatar{width:22px;height:22px;background:linear-gradient(90deg,transparent 26%,#e7c397 26% 41%,transparent 41% 62%,#e7c397 62% 80%,transparent 80%) 0 54%/100% 15% no-repeat,linear-gradient(90deg,transparent 20%,#a4784d 20% 39%,#dcad78 39% 66%,#b5895d 66% 83%,transparent 83%) 0 75%/100% 43% no-repeat,linear-gradient(90deg,transparent 17%,#694b35 17% 82%,transparent 82%) 0 18%/100% 43% no-repeat,linear-gradient(0deg,#678273 20%,#c8b284 20% 65%,#9ba689 65%);border:2px solid #607060;border-radius:2px}#stage{position:relative;isolation:isolate;width:100%;height:calc(100dvh - var(--header));overflow:hidden;background:#91b6c7}#game,.shading{position:absolute;inset:0;width:100%;height:100%;display:block}#game{display:block;touch-action:none;outline:none;cursor:crosshair}.shading{pointer-events:none;background:linear-gradient(180deg,#112a312b,transparent 25%,transparent 65%,#1220193d 89%,#13201a7a),radial-gradient(ellipse at center,transparent 60%,#15261d1f)}.location,.survey,.compass,.inventory,.key-guide,.reticle,#notices{position:absolute}.location{left:var(--edge);top:29px;pointer-events:none;text-shadow:0 2px 9px #243328c9}.biome{display:inline-flex;align-items:center;gap:6px;font-family:IBM Plex Mono,ui-monospace,monospace;font-size:10px;letter-spacing:2px;font-weight:700;background:#223c32d9;color:#f3e3b6;padding:4px 8px 4px 5px;border:1px solid #c7cfad5c;border-radius:3px;text-shadow:none}.biome svg{width:14px;height:14px;color:#ddbe77}.location h1{margin:8px 0 7px;font-size:clamp(31px,3.2vw,54px);line-height:1.16;letter-spacing:.065em;font-weight:850;color:#fff9e9}.location-details{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:600}.mode{display:flex;align-items:center;gap:4px}.mode svg{width:14px;height:14px}.detail-line{height:11px;width:1px;background:#d3dac1a6}#region-en{font-family:IBM Plex Mono,ui-monospace,monospace;letter-spacing:1.7px;font-size:9px}.compass{width:210px;left:50%;top:19px;transform:translate(-50%);pointer-events:none;-webkit-mask-image:linear-gradient(90deg,transparent,#000 15% 85%,transparent);mask-image:linear-gradient(90deg,transparent,#000 15% 85%,transparent)}.compass canvas{width:100%;height:auto}.survey{pointer-events:none;right:var(--edge);top:24px;display:flex;align-items:center;flex-direction:column;gap:9px}.map-shell{position:relative;width:103px;height:103px;padding:4px;border-radius:50%;border:2px solid #ecdfb9b3;background:#25392f;box-shadow:0 3px 12px #17231855}.map-shell canvas{width:100%;height:100%;border-radius:50%;image-rendering:pixelated;filter:saturate(.84)}#north{font:700 10px/16px ui-monospace,monospace;position:absolute;z-index:1;top:-8px;left:calc(50% - 8px);width:16px;height:16px;text-align:center;background:#26392c;border:1px solid #c2be9f;border-radius:3px;color:#fff4d7}.map-pin{position:absolute;left:50%;top:50%;filter:drop-shadow(0 1px 1px #352f16);width:13px;height:16px}.map-pin:before,.map-pin:after{content:"";position:absolute;inset:0;background:#3e3523;clip-path:polygon(50% 0,100% 100%,50% 79%,0 100%)}.map-pin:after{inset:2px;background:#ffe7a0}.coordinates{font:600 10px/1.4 ui-monospace,monospace;display:flex;align-items:center;gap:5px;padding:3px 6px;background:#223128c9;border-radius:3px;color:#f7efdc}.coordinates svg{width:11px;height:11px}.reticle{pointer-events:none;width:14px;height:14px;left:50%;top:50%;transform:translate(-50%,-50%);filter:drop-shadow(0 1px 1px #252d23)}.reticle:before,.reticle:after{background:#fffdf1d9;content:"";position:absolute}.reticle:before{height:2px;width:14px;top:6px}.reticle:after{height:14px;width:2px;left:6px}.key-guide{bottom:29px;left:var(--edge);font-size:11px;text-shadow:0 1px 4px #182019}.key-guide>button{font-size:11px;font-weight:650;display:flex;align-items:center;gap:7px;padding:4px 0;text-shadow:inherit}.key-guide>button svg{width:15px;height:15px}.key-guide>button span:last-child svg{width:11px;transform:rotate(180deg)}.key-guide.closed>button span:last-child svg{transform:none}.key-guide.closed .guide-lines{display:none}.guide-lines{margin-top:4px}.guide-lines>div{display:flex;align-items:center;gap:7px;height:23px}.guide-lines kbd,.mouse-key{font:600 10px/16px ui-monospace,monospace;letter-spacing:1px;background:#263229bd;border:1px solid #c2c7b78c;border-radius:3px;padding:0 4px;color:#f6f2e4;min-width:38px;text-align:center}.mouse-key{min-width:0;padding:1px 3px}.mouse-key svg{width:13px;height:13px}.inventory{bottom:17px;left:50%;transform:translate(-50%);display:flex;align-items:center;flex-direction:column;gap:9px}.enter{display:flex;align-items:center;gap:10px;background:#edc784;color:#2b3026;border:1px solid #ffe2a0;border-radius:4px;padding:9px 12px;box-shadow:0 2px #9e7949,0 4px 12px #17231340;font-size:13px;letter-spacing:.08em}.enter svg{width:13px;height:13px}.enter-arrow{font:700 15px/1 monospace;color:#726341}.item-title{font-size:12px;letter-spacing:1px;font-weight:600;background:#1f2a23a3;padding:3px 10px;border-radius:3px;text-shadow:0 1px #2c3427}.belt-status{align-self:stretch;display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:-5px;pointer-events:none}#health,#inventory-open{display:inline-flex;align-items:center;gap:7px;padding:4px 7px;border:1px solid #aab79680;border-radius:4px;background:#1c2922eb;color:#f1e8d7}#hearts{width:126px;height:auto;image-rendering:pixelated}#hp-value{font:650 10px/1.2 ui-monospace,monospace;font-variant-numeric:tabular-nums}#health.low{border-color:#d7846e}#inventory-open{cursor:pointer;pointer-events:auto;font-size:11px;font-weight:650;color:var(--gold)}#inventory-open kbd{font:600 10px/1.2 ui-monospace,monospace;border:1px solid #a6af91;border-radius:2px;padding:0 2px}#death-panel{width:min(320px,calc(100% - 32px));text-align:center}#death-panel::backdrop{background-color:#261d18cf}.lost-heart{font:700 34px/1.3 system-ui,sans-serif;color:#f28d78;text-shadow:0 3px #853f34}#revive{min-height:44px}@media(pointer:coarse){#inventory-open{min-height:44px;min-width:94px;justify-content:center}#inventory-open kbd{display:none}}@media(max-width:680px){#hearts{width:120px}}#hotbar{display:flex;align-items:center;gap:3px;padding:5px;background:#1d2923e0;border:1px solid #c0c7af6b;box-shadow:0 4px 17px #111e1752;border-radius:5px}.slot{position:relative;padding:0;width:clamp(37px,3.85vw,58px);aspect-ratio:1;border:1px solid #79816e80;border-radius:2px;background:linear-gradient(#56615163,#4350428c);display:grid;place-items:center}.slot canvas{width:82%;height:82%;image-rendering:pixelated;margin-top:4px;filter:drop-shadow(0 2px 1px #1b221c75)}.slot-key{position:absolute;z-index:1;left:4px;top:1px;font:500 10px/1.4 ui-monospace,monospace;color:#d6dbca;text-shadow:0 1px #293426}.slot.selected{border:2px solid #f7d294;outline:1px solid #b48a46;outline-offset:0;box-shadow:inset 0 0 6px #dac08046;background:#8477518a}.selected .slot-key{color:#ffe4ab}.belt-footer{display:flex;align-items:center;gap:7px;font-size:10px;letter-spacing:1px;color:#f0f1dc;text-shadow:0 1px 4px #182119}.belt-footer svg{width:12px;height:12px}.belt-rule{width:23px;height:1px;background:#e8ead36b}#notices{bottom:calc(24% + 12px);max-width:80%;left:50%;transform:translate(-50%);pointer-events:none;background:#1b2922ec;font-size:13px;border-radius:4px;text-align:center}#notices:not(:empty){padding:9px 14px;border:1px solid #9daba15e}.touch-move,.touch-actions,#touch-pause{display:none}#loading{position:absolute;inset:0;display:flex;gap:12px;align-items:center;justify-content:center;flex-direction:column;background:#253e37;color:#ecdfbd;z-index:4}#loading img{width:44px}#loading p{font-size:13px;max-width:320px;text-align:center;margin:0}dialog{width:min(385px,calc(100% - 30px));max-height:calc(100dvh - 30px);padding:22px 24px 25px;background:#202c26;color:var(--paper);border:1px solid #79806c;border-radius:8px;box-shadow:0 18px 70px #101c1799}dialog::backdrop{background:#14221acc;opacity:.72}.dialog-top{display:flex;align-items:center;justify-content:space-between}#dialog-kicker{font:700 10px/1.4 ui-monospace,monospace;letter-spacing:2.2px;color:var(--gold)}#close{height:30px;width:30px}.dialog-top svg{width:18px}h2{font-size:26px;margin:6px 0 16px}dialog p,.field label,.dialog-row label{font-size:13px;line-height:1.6}dialog p{color:#c3cbbc;margin:8px 0 16px}.field{display:grid;gap:5px;margin:12px 0}.field input,.dialog-row select{border:1px solid #657363;background:#16231c;border-radius:4px;padding:10px;color:#fbf6e2;min-width:0}.primary,.secondary,.tabs button{border-radius:4px;padding:9px 12px;font-size:13px}.primary{background:var(--gold);color:#222d24;font-weight:700}.secondary,.tabs{background:#354138}.secondary{border:1px solid #5a6958}.buttons{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}dialog .msg{margin:12px 0 0;font-size:12px;color:#f2d18e}.msg:empty{display:none}.tabs{display:flex;margin:0 0 10px;border-radius:4px;padding:3px}.tabs button{flex:1}.tabs .on{background:#586452;color:#fff}.dialog-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid #465343}.dialog-row select{padding:5px 8px}.identity-line{font-size:18px;font-weight:700}.key-copy kbd{color:#ffe2a3;font-family:ui-monospace,monospace}button:disabled{opacity:.5;cursor:wait}@media(max-width:900px){.topbar{gap:10px}.key-guide{bottom:19px}.slot{width:38px}.edition{font-size:11px}.survey{top:20px}.map-shell{width:85px;height:85px}.location{top:20px}.compass{width:155px}.brand svg{width:170px}}@media(max-width:680px){:root{--header: 52px;--edge: 14px}.brand{gap:7px}.brand img{width:23px;height:28px}.brand svg{width:130px}.edition,.topbar>.bar-rule,.tool-rule{display:none}.header-tools{gap:1px}.profile{height:31px;padding:0 4px;margin-left:3px;gap:3px}.profile #username,.profile>span:last-child{display:none}.icon-button{width:30px}.room-button{font-size:10px;gap:5px;padding:0 5px}.room-button svg{width:10px}.key-guide{display:none}.location h1{font-size:30px;letter-spacing:.04em}.location-details{font-size:10px}.location{top:16px}.biome{font-size:8px}.map-shell{width:68px;height:68px}.survey{gap:5px;top:17px}.coordinates{font-size:8px}.compass{top:15px;width:90px}.slot{width:clamp(26px,8.9vw,40px)}#hotbar{gap:2px;padding:3px}.inventory{bottom:max(10px,env(safe-area-inset-bottom));gap:7px}.slot-key,.belt-footer{font-size:8px}#region-en{font-size:8px;letter-spacing:1px}}@media(pointer:coarse){.key-guide,.belt-footer [data-icon]{display:none}.active .touch-move,.active .touch-actions,.active #touch-pause{display:flex}.touch-move,.touch-actions,#touch-pause{position:absolute;align-items:center;justify-content:center;touch-action:none}.touch-move{bottom:calc(135px + env(safe-area-inset-bottom,0px));left:var(--edge);width:86px;height:86px;border:1px solid #efedd7a1;border-radius:50%;background:#20342661}.touch-move span{width:36px;height:36px;border-radius:50%;background:#e6ebc45e;border:1px solid #e8eed099;pointer-events:none}.touch-actions{right:var(--edge);bottom:calc(135px + env(safe-area-inset-bottom,0px));display:none;gap:5px}.touch-actions button,#touch-pause{display:grid;place-items:center;width:44px;height:44px;border:1px solid #dce5c4a1;background:#233c2d99;border-radius:6px}.touch-actions{max-width:100px;flex-wrap:wrap;justify-content:flex-end}.touch-actions button:first-child{margin-left:48px}#touch-pause{top:46%;right:var(--edge);display:none;width:38px;height:38px}.active #item-title{display:none}.active .location{opacity:.85}}@media(max-height:540px){:root{--header: 44px}.location{top:10px}.location h1{font-size:23px;margin:3px 0}.survey{top:12px}.map-shell{width:59px;height:59px}.inventory{bottom:5px;gap:4px}.belt-footer,.guide-lines{display:none}.enter{padding:5px 10px}.slot{width:32px}.touch-move,.touch-actions{bottom:19px}.touch-move{width:72px;height:72px}.compass{top:7px}.key-guide{bottom:8px}}.compass{display:flex;justify-content:center;width:245px;overflow:hidden}.compass canvas{width:245px;height:42px;flex-shrink:0}@media(max-width:900px){.compass{width:165px}}@media(max-width:680px){.compass{width:94px}.coordinates{font-size:9px}.slot{width:clamp(26px,9.65vw,40px)}}@media(max-width:355px){.header-tools{gap:0}.room-button{padding:0 2px}.brand svg{width:103px}.compass{display:none}}@media(pointer:coarse)and (max-height:540px)and (orientation:landscape){#hotbar .slot{width:clamp(24px,calc((100vw - 264px) / 9),38px)}}.slot .item-icon{width:82%;height:82%;margin-top:4px;filter:drop-shadow(0 2px 1px #17241fa8)}.item-icon{object-fit:contain;image-rendering:pixelated;pointer-events:none}.stack-count{position:absolute;right:3px;bottom:1px;font:700 11px/1.1 ui-monospace,monospace;color:#fffbe9;text-shadow:0 1px 2px #15221b,1px 0 #15221b}#mine-progress{position:absolute;left:50%;top:calc(50% + 14px);transform:translate(-50%);width:40px;height:5px;padding:1px;background:#263229d9;border:1px solid #faf2ce99;pointer-events:none}#mine-progress i{display:block;height:100%;background:#f8d591;transform-origin:left}#backpack{width:min(704px,calc(100vw - 24px));padding:0;border-color:#859079;overflow:auto;overscroll-behavior:contain}.pack-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:16px 22px 12px;background:#26342b;border-bottom:1px solid #586750}#station-label{font-size:11px;letter-spacing:.11em;font-weight:650;color:var(--gold)}.pack-head h2{margin:2px 0 0;font-size:24px}.pack-layout{display:grid;grid-template-columns:minmax(140px,.85fr) minmax(250px,1.25fr);gap:20px;padding:18px 22px 22px}.pack-layout h3{margin:0 0 10px;font-size:14px}.bag-section{padding-right:16px;border-right:1px solid #465644}#bag-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}#bag-items button{position:relative;display:grid;justify-items:center;gap:3px;min-width:0;background:#344337;border:1px solid #64735d;border-radius:3px;padding:4px 2px 6px;font-size:10px}#bag-items button img{width:35px;height:35px}#bag-items button b{position:absolute;top:2px;right:3px;font:600 10px ui-monospace,monospace;color:#fff1c6;text-shadow:0 1px #1c281d}#backpack [aria-pressed=true]{border-color:var(--gold);background:#574f39}#bag-tip{font-size:12px;line-height:1.6;margin:10px 0 0;color:#c4cbb9}#recipes,#building-recipes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}#recipes button,#building-recipes button{display:flex;align-items:center;justify-content:center;gap:3px;background:#374738;border:1px solid #576954;border-radius:3px;padding:4px 2px;font-size:11px;min-height:38px}#recipes img,#building-recipes img{width:24px;height:24px}#recipes button[aria-pressed=true],#building-recipes button[aria-pressed=true]{background:#5d563d;border-color:#d6b37b}.extra-recipes{margin-top:6px;font-size:12px;color:#d4d9c9}.extra-recipes summary{padding:6px 0;cursor:pointer}.recipe-preview{display:flex;align-items:center;justify-content:center;gap:16px;padding:13px 6px;margin-top:8px;background:#17271f;border:1px solid #4e604e;border-radius:4px}#craft-grid{display:grid;grid-template-columns:repeat(var(--grid-size),26px);gap:2px}#craft-grid span{width:26px;height:26px;display:grid;place-items:center;border:1px solid #50604e;background:#384737}#craft-grid img{width:23px;height:23px}.craft-arrow{color:#bdc4a6;font-size:20px}#craft-result{display:grid;justify-items:center;color:#f1ddb5;font-size:12px}#craft-result img{width:43px;height:43px}#ingredients{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0;font-size:11px;color:#bcd6a9}#ingredients .missing{color:#eabf9f}#craft-make{width:100%;min-height:38px}#craft-make:disabled{cursor:default}#craft-message{color:var(--gold);margin:6px 0 0;font-size:12px}#craft-message:empty{display:none}@media(max-width:560px){.pack-head{padding:10px 14px}.pack-head h2{font-size:20px}.pack-layout{padding:12px 14px 16px;grid-template-columns:auto;gap:12px}.bag-section{border:0;padding:0 0 10px;border-bottom:1px solid #4a5a46}#bag-items{grid-template-columns:repeat(4,minmax(0,1fr));max-height:137px;overflow:auto}#bag-items button{display:flex;justify-content:center;align-items:center;min-height:42px}#bag-items button img{width:22px;height:22px}#recipes button,#building-recipes button,#craft-make{min-height:44px}}
