*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;height:100%;overflow:hidden;background:#0b1020;color:#f2f4f8;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overscroll-behavior:none;touch-action:none}canvas#view{position:fixed;inset:0;display:block;touch-action:none}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}.hidden{display:none!important}:root{--panel: rgba(18, 26, 46, .95);--line: #34446a;--slot: rgba(10, 16, 32, .72);--accent: #ffd23f;--green: #5ee27a;--sl: env(safe-area-inset-left, 0px);--sr: env(safe-area-inset-right, 0px);--st: env(safe-area-inset-top, 0px);--sb: env(safe-area-inset-bottom, 0px);--slot-size: 44px}#hud{position:fixed;inset:0;pointer-events:none}#topleft{position:absolute;left:calc(8px + var(--sl));top:calc(8px + var(--st));display:flex;flex-direction:column;gap:6px}#hotbar{display:flex;gap:4px;pointer-events:auto}.slot{position:relative;width:var(--slot-size);height:var(--slot-size);border-radius:8px;background:var(--slot);border:2px solid rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;padding:0}.slot img{width:72%;height:72%;pointer-events:none}.slot .n{position:absolute;right:3px;bottom:1px;font-size:11px;font-weight:800;text-shadow:0 1px 2px #000,0 0 2px #000;pointer-events:none}.slot .k{position:absolute;left:4px;top:1px;font-size:9px;opacity:.55;pointer-events:none}.slot.sel{border-color:var(--accent);box-shadow:0 0 0 2px #ffd23f59;background:#28220abf}.slot.pick{border-color:#6ec6ff;box-shadow:0 0 0 2px #6ec6ff66}#status{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;text-shadow:0 1px 2px #000}#hp{display:flex;align-items:center;gap:5px}#hp .heart{color:#ff4d6a;font-size:16px}#hp-bar{width:120px;height:10px;border-radius:6px;background:#0000008c;overflow:hidden;border:1px solid rgba(255,255,255,.2)}#hp-bar i{display:block;height:100%;width:100%;background:linear-gradient(#ff6a7f,#d61f3c);transition:width .15s}#clock{opacity:.92}#guide{pointer-events:auto;display:flex;align-items:center;gap:6px;max-width:min(420px,62vw);background:#0a1020b8;border:1px solid rgba(255,210,63,.45);border-radius:10px;padding:5px 6px 5px 10px;font-size:13px;font-weight:700;line-height:1.3}#guide button{border:0;background:#ffffff1a;border-radius:7px;width:26px;height:26px;flex:none;font-size:12px}#topright{position:absolute;right:calc(8px + var(--sr));top:calc(8px + var(--st));display:flex;gap:6px;pointer-events:auto;flex-wrap:wrap;justify-content:flex-end;width:178px}#minimap{image-rendering:pixelated;width:120px;height:72px;border-radius:10px;border:2px solid rgba(255,255,255,.2);background:#0a0e1a;cursor:pointer}#minimap.mini-off{width:46px;height:22px;opacity:.6}#armor{opacity:.92}#hunger{display:flex;align-items:center;gap:4px}#hunger-bar{width:70px;height:8px;border-radius:6px;background:#0000008c;overflow:hidden;border:1px solid rgba(255,255,255,.2)}#hunger-bar i{display:block;height:100%;width:100%;background:linear-gradient(#ffd27a,#c8781e);transition:width .3s}#hunger.low #hunger-bar i{background:linear-gradient(#ff8a6a,#c0392b);animation:blink .8s infinite}@keyframes blink{50%{opacity:.45}}#planbar{position:absolute;left:50%;bottom:calc(100px + var(--sb));transform:translate(-50%);pointer-events:auto;background:#121a2eeb;border:2px solid var(--line);border-radius:14px;padding:8px;width:min(520px,92vw);display:flex;flex-direction:column;gap:6px}#plan-chips{display:flex;gap:6px;overflow-x:auto;touch-action:pan-x;scrollbar-width:none}#plan-chips button{flex:none;border:1px solid var(--line);background:#ffffff0f;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:700;min-height:34px}#plan-chips button.on{background:#2f7d45;border-color:#5ee27a}#plan-info{font-size:12px;opacity:.85;line-height:1.35}#plan-info .bad{color:#ff9a8a;font-weight:700}#plan-go{min-height:40px;padding:6px 14px;flex:none}.plan-row{display:flex;gap:8px;align-items:center}.plan-row #plan-info{flex:1;min-width:0}#plan-go:disabled{opacity:.45}.folk{height:10px;margin:10px 0 4px;border-radius:4px;opacity:.9;background:linear-gradient(135deg,transparent 6px,#c0392b 6px,#c0392b 8px,transparent 8px) 0 0 / 16px 10px,linear-gradient(225deg,transparent 6px,#2f9e55 6px,#2f9e55 8px,transparent 8px) 0 0 / 16px 10px,repeating-linear-gradient(90deg,#ffd23f 0 4px,transparent 4px 16px)}#bossbar{position:absolute;left:50%;top:calc(100px + var(--st));transform:translate(-50%);width:min(360px,60vw);text-align:center;font-size:13px;text-shadow:0 1px 2px #000}#bossbar .bar{height:10px;border-radius:6px;background:#0009;border:1px solid rgba(255,255,255,.25);overflow:hidden;margin-top:3px}#bossbar i{display:block;height:100%;background:linear-gradient(#7dff8f,#2f9e45);transition:width .2s}.btns{display:inline-flex;gap:6px}.icon{width:46px;height:46px;border-radius:12px;border:2px solid rgba(255,255,255,.18);background:var(--slot);font-size:20px;display:flex;align-items:center;justify-content:center;padding:0}#sel-name{position:absolute;left:50%;top:calc(10px + var(--st));transform:translate(-50%);font-weight:800;font-size:14px;text-shadow:0 1px 3px #000;opacity:0;transition:opacity .3s;white-space:nowrap}#sel-name.on{opacity:1}#toast{position:absolute;left:50%;top:calc(40px + var(--st));transform:translate(-50%);background:#000000b8;padding:8px 14px;border-radius:10px;font-weight:700;font-size:14px;opacity:0;transition:opacity .25s;max-width:86vw;text-align:center}#toast.on{opacity:1}#saved{position:absolute;right:calc(12px + var(--sr));bottom:calc(100px + var(--sb));font-size:18px;opacity:0;transition:opacity .4s}#saved.on{opacity:.8}#dead{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#3c000059;text-shadow:0 2px 6px #000}#dead b{font-size:40px;color:#ff6a6a}#touch{position:fixed;inset:0;pointer-events:none}#touch button{pointer-events:auto;width:74px;height:74px;border-radius:50%;background:#ffffff21;border:2px solid rgba(255,255,255,.28);display:flex;align-items:center;justify-content:center;padding:0;touch-action:none}#touch button svg{width:46%;height:46%;fill:#ffffffd9;pointer-events:none}#touch button.on{background:#ffffff52}.pad-l{position:absolute;left:calc(14px + var(--sl));bottom:calc(14px + var(--sb));display:flex;gap:14px}.pad-r{position:absolute;right:calc(14px + var(--sr));bottom:calc(14px + var(--sb));display:flex;gap:14px;align-items:flex-end}#t-down{width:58px!important;height:58px!important}#t-jump{width:84px!important;height:84px!important}.panel,.screen{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:calc(10px + var(--st)) calc(10px + var(--sr)) calc(10px + var(--sb)) calc(10px + var(--sl))}.panel{background:#0408128c}.box{background:var(--panel);border:2px solid var(--line);border-radius:16px;width:min(980px,100%);max-height:100%;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 10px 40px #00000080}.head{display:flex;justify-content:space-between;align-items:center;padding:8px 10px 8px 16px;border-bottom:1px solid var(--line)}.head b{font-size:17px}.close{width:40px;height:40px;border-radius:10px;border:0;background:#ffffff14;font-size:18px}.body{padding:12px;overflow-y:auto;flex:1 1 auto;min-height:0;-webkit-overflow-scrolling:touch;touch-action:pan-y}.body.two{display:flex;gap:14px}.body.two .col{flex:1 1 0;min-width:0}.body.two .col.craft{flex:1 1 0;display:flex;flex-direction:column;min-height:0}.grid{display:grid;grid-template-columns:repeat(10,var(--slot-size));gap:4px;justify-content:start}.grid .slot:nth-child(-n+10){background:#1e2846cc}#chest-grid .slot:nth-child(-n+10){background:var(--slot)}.row-actions{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:10px;flex-wrap:wrap}.hint{font-size:12px;opacity:.7;line-height:1.35}.sep{margin:12px 0 6px;font-weight:800;font-size:13px;opacity:.8}.small{border:1px solid var(--line);background:#ffffff12;border-radius:10px;padding:8px 12px;font-size:13px;font-weight:700;min-height:40px}.small:disabled{opacity:.4}.danger{background:#8a2232!important;border-color:#b23548!important}.craft-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px}#stations{font-size:12px;opacity:.8;text-align:right}#craft-list{display:flex;flex-direction:column;gap:6px;overflow-y:auto;touch-action:pan-y;max-height:52vh}.recipe{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:10px;background:#ffffff0d;border:1px solid transparent}.recipe.ok{border-color:#5ee27a73;background:#5ee27a14}.recipe.no{opacity:.55}.recipe .out{width:38px;height:38px;flex:none;position:relative;background:var(--slot);border-radius:8px;display:flex;align-items:center;justify-content:center}.recipe .out img{width:72%;height:72%}.recipe .out .n{position:absolute;right:2px;bottom:0;font-size:10px;font-weight:800;text-shadow:0 1px 2px #000}.recipe .info{flex:1;min-width:0}.recipe .name{font-weight:800;font-size:13px}.recipe .ing{display:flex;flex-wrap:wrap;gap:6px;font-size:12px;margin-top:2px}.recipe .ing span{display:inline-flex;align-items:center;gap:3px}.recipe .ing img{width:16px;height:16px}.recipe .ing .miss{color:#ff8a8a}.recipe .st{font-size:11px;opacity:.75}.recipe .st.miss{color:#ffb36b;opacity:1}.recipe button{border:0;border-radius:9px;padding:8px 10px;font-weight:800;font-size:13px;background:#2f7d45;min-width:52px;min-height:38px}.recipe button:disabled{background:#ffffff1a}.recipe .btns{display:flex;gap:4px}.screen{background:radial-gradient(ellipse at 50% 30%,#1e3c6e8c,#080c1aeb);z-index:5}.screen.dim{background:#040812b3}#screen-menu{background:linear-gradient(180deg,#4a90e226,#080c1a99 60%,#080c1ae6)}.menu-box{background:var(--panel);border:2px solid var(--line);border-radius:18px;padding:18px 20px;width:min(560px,100%);max-height:100%;overflow-y:auto;touch-action:pan-y;box-shadow:0 10px 40px #00000080}.menu-box.narrow{width:min(420px,100%);display:flex;flex-direction:column;gap:10px}.menu-box.center{align-items:center;text-align:center}.menu-box h2{margin:0 0 4px;font-size:22px}.brand{font-size:34px;font-weight:900;letter-spacing:3px;color:#ffd23f;text-shadow:0 3px 0 #8a5a33,0 6px 14px rgba(0,0,0,.6);line-height:1}.brand small{display:block;font-size:12px;letter-spacing:2px;color:#9fb3d9;text-shadow:none;margin-top:6px;font-weight:700}.tagline{margin:10px 0 8px;opacity:.85;font-size:14px}.acc{font-size:13px;padding:8px 10px;border-radius:10px;background:#ffffff0d;margin-bottom:10px;line-height:1.4}.acc a{color:#ffd23f;font-weight:800}#slots{display:flex;flex-direction:column;gap:8px}.wslot{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#ffffff0d;border:1px solid var(--line)}.wslot .info{flex:1;min-width:0}.wslot .name{font-weight:800;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wslot .meta{font-size:12px;opacity:.7;margin-top:2px}.wslot.empty .name{opacity:.7;font-weight:700}.wslot .acts{display:flex;gap:8px;align-items:center;flex:none}.primary,.ghost,.danger{border-radius:12px;padding:10px 16px;font-weight:800;font-size:15px;min-height:44px;border:2px solid transparent}.primary{background:#2f9e55;border-color:#3fc06a}.ghost{background:#ffffff12;border-color:var(--line)}.wide{width:100%}.del{width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:#ffffff0d;font-size:16px}.menu-foot{display:flex;justify-content:space-between;align-items:center;margin-top:14px}.menu-foot a,.link{color:#9fb3d9;font-weight:700;font-size:14px;text-decoration:none;background:none;border:0;padding:8px 0}.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}.field input{font:inherit;font-size:16px;padding:10px 12px;border-radius:10px;border:2px solid var(--line);background:#0d1428;color:#fff;-webkit-user-select:text;user-select:text}.check{display:flex;align-items:center;gap:8px;font-size:14px}.check input{width:20px;height:20px}.help ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.4}.spinner{width:40px;height:40px;border-radius:50%;border:4px solid rgba(255,255,255,.2);border-top-color:#ffd23f;animation:spin .8s linear infinite;margin-bottom:10px}@keyframes spin{to{transform:rotate(360deg)}}.coop-btn{margin-top:8px}.coop-how{padding:8px 10px;border-radius:10px;background:#ffffff0d;opacity:.85}.big-code{font-size:40px;font-weight:900;letter-spacing:8px;color:#ffd23f;text-shadow:0 3px 0 #8a5a33;margin:2px 0 6px;font-family:ui-monospace,Menlo,monospace;-webkit-user-select:all;user-select:all}.inv-link{font-size:12px;opacity:.75;word-break:break-all;-webkit-user-select:all;user-select:all}#screen-invite .row-actions{justify-content:center}.inv-players{display:flex;flex-direction:column;gap:6px;width:100%;margin:6px 0}.inv-players .pl{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;background:#ffffff0d;font-weight:700;font-size:14px;text-align:left}.inv-players .pl i{width:12px;height:12px;border-radius:50%;flex:none}.inv-players .pl small{margin-left:auto;opacity:.6;font-weight:600}#mp-box{display:flex;gap:6px;width:100%;justify-content:flex-end}#mp-pill{border:2px solid rgba(255,255,255,.18);background:var(--slot);border-radius:12px;padding:0 10px;height:44px;font-weight:800;font-size:15px}#mp-pill.warn{border-color:#ffb36b;color:#ffd7a8}#emo-bar{position:absolute;right:0;top:calc(100% + 6px);display:grid;grid-template-columns:repeat(2,auto);gap:6px;justify-content:end}#emo-bar button{border:2px solid rgba(255,255,255,.18);background:#0a1020d9;border-radius:12px;padding:6px 10px;min-height:40px;font-weight:800;font-size:13px;white-space:nowrap}@media(max-height:480px){:root{--slot-size: 38px}.icon{width:42px;height:42px;font-size:18px}#touch button{width:64px;height:64px}#t-jump{width:74px!important;height:74px!important}#t-down{width:52px!important;height:52px!important}#hp-bar{width:90px}#hunger-bar{width:50px}#planbar{bottom:calc(90px + var(--sb));padding:6px}#plan-info{font-size:11px}#guide{font-size:12px;max-width:46vw}#minimap{width:96px;height:58px}#topright{width:144px}#mp-pill{height:42px;padding:0 8px;font-size:14px}#emo-bar button{min-height:34px;padding:4px 8px;font-size:12px}.big-code{font-size:32px}.brand{font-size:28px}.menu-box{padding:12px 14px}.tagline{margin:6px 0}.wslot{padding:7px 10px}.menu-box .folk,.menu-box .tagline{display:none}.brand{font-size:24px}.acc{margin:8px 0 6px;padding:6px 10px;font-size:12px}#slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#slots .wslot{flex-direction:column;align-items:stretch;gap:6px;padding:8px}#slots .wslot .acts{display:flex;gap:6px}#slots .wslot .acts .primary{flex:1;padding:6px 8px;min-height:40px;font-size:14px}.menu-foot{margin-top:8px}#craft-list{max-height:none}.body.two .col.craft{max-height:calc(100vh - 90px)}.box{height:100%}}@media(max-width:760px)and (orientation:landscape){:root{--slot-size: 36px}}@media(orientation:portrait){:root{--slot-size: min(34px, calc((100vw - 60px)*.1) )}.panel .grid{--slot-size: min(34px, calc((100vw - 100px)*.1) )}#hotbar{position:fixed;left:50%;transform:translate(-50%);bottom:calc(108px + var(--sb))}#topleft{top:calc(10px + var(--st))}#toast{top:calc(120px + var(--st))}#bossbar{top:calc(170px + var(--st))}#topleft{max-width:calc(100vw - 140px)}#status{flex-wrap:wrap;gap:4px 10px}#hp-bar{width:70px}#guide{max-width:100%;font-size:12px}#topright{width:106px}#minimap{width:96px;height:58px}#sel-name{top:auto;bottom:calc(150px + var(--sb))}#planbar{bottom:calc(150px + var(--sb))}#hunger-bar{width:50px}.body.two{flex-direction:column}.body.two .col,.body.two .col.craft{flex:none}#craft-list{max-height:none}#touch button{width:66px;height:66px}#t-jump{width:76px!important;height:76px!important}}@media(hover:hover)and (pointer:fine){.slot:hover{border-color:#fff6}.recipe button:not(:disabled):hover{filter:brightness(1.15)}}#btn-ach{position:relative}#btn-ach .dot{position:absolute;right:12px;top:10px;width:10px;height:10px;border-radius:50%;background:#ff4d6a}.ach-day{border:2px solid #c9a227;background:linear-gradient(135deg,#c9a22729,#ffffff0a);border-radius:14px;padding:10px 12px;display:flex;gap:12px;align-items:center;margin-bottom:12px}.ach-day.got{border-color:#5ee27a99}.ach-day .ico{width:48px;height:48px;flex:none;border-radius:10px;background:var(--slot);display:flex;align-items:center;justify-content:center;font-size:24px}.ach-day .info{flex:1;min-width:0}.ach-day .t{font-size:12px;font-weight:800;color:#ffd23f;letter-spacing:.5px}.ach-day .name{font-weight:800;font-size:15px;margin:2px 0;overflow-wrap:anywhere}.ach-day .pr{font-size:12px;opacity:.85;overflow-wrap:anywhere}.ach-day .pr.ok{color:#7ee29a;font-weight:700;opacity:1}.ach-day .bar{height:6px;border-radius:3px;background:#ffffff1a;margin:5px 0 3px;overflow:hidden}.ach-day .bar i{display:block;height:100%;background:#ffd23f}.ach-sum{font-size:13px;font-weight:700;opacity:.85;margin:0 0 8px;line-height:1.4}.ach-sum a,.ach-day a{color:#ffd23f;font-weight:800}.ach-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:8px}.ach{display:flex;gap:10px;align-items:center;padding:8px 10px;border-radius:12px;background:#ffffff0d;border:1px solid var(--line);min-width:0}.ach.got{border-color:#5ee27a80;background:#5ee27a14}.ach .ico{width:44px;height:44px;flex:none;border-radius:10px;background:var(--slot);position:relative;display:flex;align-items:center;justify-content:center}.ach .ico img{width:32px;height:32px}.ach .ico .em{font-size:24px;line-height:1}.ach:not(.got) .ico img,.ach:not(.got) .ico .em{filter:grayscale(1) brightness(.65)}.ach .lock{position:absolute;right:-4px;bottom:-4px;font-size:13px}.ach .info{flex:1;min-width:0}.ach .name{font-weight:800;font-size:14px;overflow-wrap:anywhere}.ach .desc{font-size:12px;opacity:.8;line-height:1.3;overflow-wrap:anywhere}.ach .bar{height:6px;border-radius:3px;background:#ffffff1a;margin-top:5px;overflow:hidden}.ach .bar i{display:block;height:100%;background:#ffd23f}.ach .pr{font-size:12px;opacity:.75;margin-top:3px;overflow-wrap:anywhere}.ach .done{font-size:12px;color:#7ee29a;font-weight:700;margin-top:3px}#panel-ach{z-index:7}#panel-ach{background:#040812e6}#panel-ach .box{background:#121a2e}
