@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#fff8e8;font-size:14px}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#91bdc9}button,a,input,select{font:inherit}button{cursor:pointer;color:inherit;border:1px solid #ffffff30;background:#172a2580;border-radius:7px;padding:10px 15px}button:hover{background:#52674d}button:focus-visible{outline:2px solid #e9ca80}canvas{display:block;width:100vw;height:100vh}.vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(#112b252b,transparent 25%,transparent 65%,#10231b70)}header{position:fixed;top:30px;left:36px;right:36px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font-family:'Space Grotesk',sans-serif;letter-spacing:3px;font-weight:700;font-size:19px}.brandicon{font-size:31px;color:#eacb84}.alpha{font:10px 'DM Sans',sans-serif;letter-spacing:1.4px;margin-left:12px;opacity:.65;border-left:1px solid #ffffff40;padding-left:20px}.topright{display:flex;align-items:center;gap:24px}.live{font-size:9px;letter-spacing:1.5px;color:#e8e9cf}.location{position:fixed;left:36px;top:125px}small{font-size:10px;letter-spacing:2px;color:#ead8a4;font-weight:700}.location h2{font-family:'Space Grotesk',sans-serif;font-size:23px;margin:9px 0}.location>span{font-size:12px;opacity:.8}.quest{position:fixed;right:36px;top:125px;width:258px;background:#1c302a9e;border:1px solid #ffffff26;border-radius:10px;padding:22px;backdrop-filter:blur(12px)}.quest h3{font-size:17px;margin:11px 0}.quest p{font-size:12px;color:#d1d5c7;line-height:1.7;margin-bottom:18px}.quest div{font-size:12px;margin:12px 0;color:#e1e3d1}#crosshair{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);font-size:24px;color:#fffc;pointer-events:none}#target{position:fixed;top:55%;width:100%;text-align:center;font-size:12px;text-shadow:0 1px 4px #000}.bottomleft{position:fixed;bottom:32px;left:36px;font-size:11px;color:#e8e8dc;line-height:2.8}.key{border:1px solid #ffffff50;padding:4px 6px;border-radius:4px;margin-right:6px}.key:not(:first-child){margin-left:14px}.coords{opacity:.6;font-family:monospace}#hud{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);text-align:center}.vitals{display:flex;justify-content:space-between;padding:0 6px;font-size:17px;letter-spacing:2px}#health{color:#ed8d76}#hunger{color:#edc785}#itemLabel{font-size:12px;margin:10px 0;text-shadow:0 1px 5px #000}#hotbar{display:flex;gap:5px;padding:6px;background:#15291ec7;border:1px solid #ffffff36;border-radius:9px}.slot{position:relative;width:49px;height:51px;border:1px solid #ffffff17;background:#ffffff09;border-radius:4px;display:flex;align-items:center;justify-content:center}.slot.active{border:2px solid #f3d992;background:#d9b9732e;box-shadow:0 0 15px #e5c97725}.slot .number{position:absolute;top:3px;left:5px;font-size:9px;opacity:.5}.slot .count{position:absolute;bottom:2px;right:4px;font-size:10px}.cube{width:23px;height:23px;background:var(--color);box-shadow:inset -6px -6px #0003,inset 4px 4px #ffffff20;transform:rotate(-8deg);border-radius:1px}.hotbarhint{margin-top:11px;font-size:8px;letter-spacing:1.3px;opacity:.65}.bottomright{position:fixed;right:36px;bottom:34px;font-size:9px;letter-spacing:1px;line-height:3;text-align:right}#modeTag{border:1px solid #fff4;border-radius:4px;padding:6px 10px;color:#ebd49d}#toast{position:fixed;left:50%;top:95px;transform:translateX(-50%);background:#263e31ed;padding:12px 22px;border:1px solid #e9ca8050;border-radius:8px;opacity:0;transition:opacity .2s;pointer-events:none}.overlay{position:fixed;inset:0;background:#10291b55;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center}.hidden{display:none!important}#welcome{justify-content:flex-start;background:linear-gradient(90deg,#102b26d9, #163b2850 65%,transparent);backdrop-filter:none}.welcome{margin-left:10vw;margin-bottom:20px}.welcome small{font-size:11px}.welcome h1{font-family:'Space Grotesk',sans-serif;font-size:clamp(58px,7vw,100px);line-height:1.02;font-weight:500;letter-spacing:-5px;margin:26px 0}.welcome em{font-family:Georgia,serif;color:#edcf8b;font-weight:400}.welcome p{line-height:1.9;color:#e0e3d8;font-size:15px}.primary{background:#ead095;color:#283a2a;border:0;font-weight:700;padding:17px 24px;min-width:245px;text-align:left;margin-top:23px}.primary:hover{background:#ffe4aa}.primary span{float:right}.welcomehint{font-size:9px;letter-spacing:1.5px;margin-top:22px;opacity:.6}.welcomefooter{position:absolute;bottom:32px;left:36px;right:36px;font-size:10px;letter-spacing:2px;display:flex;justify-content:space-between}.welcomefooter span{font-family:Georgia,serif;font-size:14px;font-style:italic;letter-spacing:0}.panel{background:#203a30f5;border:1px solid #a7b39355;border-radius:16px;padding:28px;width:min(600px,92vw);max-height:85vh;overflow:auto;box-shadow:0 30px 100px #0005}.panelhead{display:flex;justify-content:space-between;align-items:center}.panel h2{font-family:'Space Grotesk';font-size:28px;margin:8px 0 20px}nav{display:flex;gap:8px;border-bottom:1px solid #ffffff20;padding-bottom:15px;margin-bottom:20px}nav button{font-size:12px}nav button.selected{background:#e9cf90;color:#253b2c}.modecard{display:block;width:100%;text-align:left;padding:15px;margin:9px 0}.modecard strong{display:block;margin-bottom:5px}.modecard span{font-size:12px;opacity:.7}.modecard.chosen{border-color:#e9ce8b;background:#d0b87522}.setting{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #fff1}.setting input{accent-color:#e9ce8b;max-width:180px}.setting select{background:#294b3b;color:white;padding:8px;border:1px solid #fff3;border-radius:4px}.panelfoot{font-size:10px;opacity:.5;margin-top:23px}.inventorygrid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.inventorygrid button{padding:12px 4px;text-align:center;font-size:10px}.inventorygrid .cube{margin:0 auto 10px}.trade{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #fff2}.trade button{color:#edcf8b} @media(max-width:800px){.quest,.alpha,.live,.bottomright,.bottomleft{display:none}header{left:18px;right:18px;top:18px}.brand{font-size:15px;letter-spacing:1px}.location{left:20px;top:90px}.welcome{margin-left:7vw}.welcome h1{letter-spacing:-3px}.slot{width:35px;height:43px}#hud{bottom:16px}.hotbarhint{font-size:7px}.vitals{font-size:13px}.welcome p{font-size:13px}.welcomefooter{left:20px;right:20px}}

#world{outline:none;touch-action:none}.vignette{background:linear-gradient(#112b2518,transparent 20%,transparent 75%,#10231b55)}#actions{position:fixed;right:36px;bottom:120px;display:flex;gap:8px}#actions button{background:#203a30d9;font-size:12px}kbd{font-family:inherit;font-size:10px;margin-left:10px;opacity:.6}#crosshair{pointer-events:none}.location,.quest,#hud .hotbarhint,.bottomleft,.bottomright,#target{pointer-events:none}.topright{gap:10px}.live{display:none}@media(max-width:800px){#captureMouse{font-size:10px;padding:10px 7px}#actions{bottom:145px;right:15px}.location h2{font-size:18px}}
.panel{width:min(960px,94vw);padding:26px;max-height:90vh}.panelhead h2{margin-bottom:14px}.workshop{display:grid;grid-template-columns:1.2fr 1fr;gap:25px;padding:16px;background:#152c2270;border:1px solid #fff2;border-radius:10px}.sectionlabel{font-size:9px;letter-spacing:1.6px;opacity:.65;margin-bottom:14px}.craftrow{display:flex;gap:18px;align-items:center}.craftgrid{display:grid;grid-template-columns:repeat(var(--size),46px);gap:5px}.craftgrid button,.craftoutput{padding:3px;width:46px;height:46px;background:#10251d;border:1px solid #8aa18970;display:flex;align-items:center;justify-content:center;border-radius:4px}.craftgrid button:hover{border-color:#edce8c}.craftoutput{width:61px;height:61px;border:2px solid #d6ba76;position:relative}.craftoutput span{position:absolute;bottom:2px;right:5px;font-size:11px}.craftarrow{color:#ddcb9c;font-size:25px}.craftstatus{font-size:12px;margin:13px 0;min-height:42px;line-height:1.6}.craftstatus>span{display:block;font-size:10px;color:#c2cfbd}.craftstatus .missing{color:#e59c88}.craftstatus .available{color:#b9d7a2}.craftbuttons{display:flex;gap:8px}.craftbuttons button{font-size:11px;padding:9px 11px}.primarysmall{background:#e8cc8f;color:#25392b;font-weight:600}.primarysmall:hover{background:#f8dea4}.micro{font-size:10px;opacity:.6;line-height:1.7}.equipment{display:flex;flex-wrap:wrap;gap:5px;margin:20px 0 14px}.equipment button{width:48px;padding:7px 2px;background:#10251d;display:flex;align-items:center;flex-direction:column;gap:8px}.equipment small{font-size:7px;letter-spacing:0;color:#c8d4c0;text-transform:capitalize}.equipheld{font-size:10px;padding:9px}.armorstat{font-size:10px;display:block;margin-top:12px;color:#ddc78f}#armorHud{font-size:10px;color:#d7dde5;margin-bottom:8px}.recipebook{margin:16px 0;background:#ffffff05;border:1px solid #fff2;border-radius:6px;padding:13px}.recipebook summary{cursor:pointer;font-size:12px}.recipes{display:flex;gap:6px;flex-wrap:wrap;margin-top:13px;max-height:170px;overflow:auto}.recipes button{display:flex;align-items:center;gap:6px;font-size:10px;padding:6px 9px}.catalogheading{display:flex;align-items:center;justify-content:space-between;margin:22px 0 13px}.catalogheading strong{font-family:'Space Grotesk';font-size:17px}.catalogheading span{font-size:10px;opacity:.6}.catalogsearch{width:100%;padding:13px;border:1px solid #b4c6a850;background:#112a20;color:#f1eddd;border-radius:6px;outline:none}.catalogsearch:focus{border-color:#dfc489}.catalogsearch::placeholder{color:#9cac9d}.catalogtabs{display:flex;gap:5px;flex-wrap:wrap;margin:12px 0}.catalogtabs button{font-size:10px;padding:6px 9px}.catalogtabs button.active{background:#d6be87;color:#253a2b}.catalogcount{font-size:10px;color:#c0ceb9;margin:13px 0}.itemcatalog{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.catalogitem{height:96px;padding:9px 4px 5px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;position:relative;min-width:0;background:#12291f}.catalogitem>span{font-size:9px;line-height:1.3;text-align:center;overflow-wrap:anywhere}.catalogitem>small{font-size:9px;position:absolute;top:5px;right:5px;color:#c6d5bd;letter-spacing:0}.catalogitem.selected{border-color:#e3c782;background:#d3b77d20}.catalogitem.unowned{opacity:.6}.pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin:18px 0;font-size:11px}.pagination button{padding:8px;font-size:11px}button:disabled{opacity:.35;cursor:default}.smelter{background:#b58d4514;border:1px solid #e2c58c40;padding:16px;border-radius:8px;margin-top:12px}.smelter p{font-size:12px;opacity:.75}.smelter button{font-size:11px;margin:3px}.spawnerchoices{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.spawnerchoices button{margin:0}.topright button{font-size:11px;padding:10px}.brand .alpha{font-size:8px}#inventoryBtn{border-color:#e5ca8a88;color:#f1daaa}@media(max-width:800px){.workshop{grid-template-columns:1fr}.itemcatalog{grid-template-columns:repeat(4,minmax(0,1fr))}.panel{padding:16px}.catalogheading{align-items:start;gap:10px}.catalogheading strong{font-size:14px}.catalogheading span{max-width:90px;text-align:right}.craftgrid{grid-template-columns:repeat(var(--size),40px)}.craftgrid button{width:40px;height:40px}.brand{font-size:11px}#captureMouse{display:none}.topright button{padding:8px;font-size:10px}.panelhead h2{font-size:22px}}
#sleepOverlay{position:fixed;inset:0;background:#102026f5;display:flex;align-items:center;justify-content:center;z-index:100;color:#ead5a3;font-family:Georgia,serif;font-size:36px;letter-spacing:2px}#damageFlash{position:fixed;inset:0;pointer-events:none;z-index:90;transition:box-shadow .3s}#damageFlash.flash{box-shadow:inset 0 0 120px 50px #c3814388}.mobchoices{max-height:330px;overflow:auto;margin:18px 0;padding-right:5px}.mobchoices .modecard{font-size:12px;padding:12px}.mobchoices small{font-size:8px;letter-spacing:1px;opacity:.6}.mobchoices strong{margin-bottom:5px}
.packtabs{display:flex;gap:8px;margin-bottom:20px}.packtabs button{font-size:12px}.packtabs button.active{background:#dec58a;color:#233b2a}.storageheading{display:flex;justify-content:space-between;align-items:center;margin:15px 0}.storageheading strong{font-family:'Space Grotesk';font-size:20px}.storageheading span{font-size:10px;color:#b4c7ac}.carrygrid{display:grid;grid-template-columns:repeat(8,1fr);gap:7px;margin:18px 0 25px}.carryhotbar{display:grid;grid-template-columns:repeat(9,1fr);gap:7px;margin:12px 0 20px}.carryslot{height:68px;position:relative;background:#10281f;display:flex;align-items:center;justify-content:center;padding:8px;min-width:0}.carryslot>small{position:absolute;top:4px;left:6px;font-size:8px;letter-spacing:0;color:#657c66}.carryslot>b{position:absolute;bottom:4px;right:6px;font-size:11px;font-weight:500;color:#e4e3ce}.carryslot.chosen{border:2px solid #f1d396;background:#c2a66d2b}.carryslot.active{box-shadow:inset 0 0 0 1px #b6b991}.emptydot{opacity:.15;font-size:20px}.storageactions{display:flex;gap:7px;flex-wrap:wrap}.storageactions button{font-size:11px;padding:10px 12px}.cookinput{font:inherit;font-size:12px;background:#173323;color:#ebe8d6;padding:11px;border:1px solid #9dbd8b70;border-radius:5px;max-width:100%;margin:10px 8px 10px 0}.smelter .cookitem{background:#dec58a;color:#233b2a}#crosshair.hit{color:#ff997f;transform:translate(-50%,-50%) scale(1.3)}.slot.empty{background:#ffffff03}.slot svg{pointer-events:none}@media(max-width:800px){.carrygrid{gap:4px}.carryhotbar{gap:4px}.carryslot{height:48px;padding:4px}.carryslot svg{width:25px;height:25px}.storageheading{align-items:start;gap:10px}.storageheading span{max-width:130px;text-align:right;font-size:9px}.storageactions button{font-size:10px;padding:8px}.packtabs button{font-size:10px}}
#airHud{font-size:17px;letter-spacing:2px;color:#9fdbf2;min-height:0;margin-bottom:5px;text-shadow:0 2px 4px #123a49}#airHud:empty,#fireHud:empty{display:none}.emptyair{color:#8fa6b080}#fireHud{font-size:11px;color:#ffd09c;margin:7px 0;letter-spacing:1px}#damageFlash.burning{background:linear-gradient(0deg,#e2762738,transparent 24%);box-shadow:inset 0 -35px 70px -15px #ea792d80}
.cataloghotbarwrap{position:sticky;top:-26px;background:#203a30fa;padding:14px 0 10px;z-index:6;border-bottom:1px solid #d4c49740;margin-bottom:16px}.cataloghotbar{margin:0}.cataloghotbar .carryslot{height:54px}.creative-discard{display:flex;align-items:center;gap:14px;border:1px dashed #b9caa170;background:#152c2370;border-radius:8px;padding:13px;margin-bottom:18px}.creative-discard strong{font-size:12px;color:#e3ce95;white-space:nowrap}.creative-discard span{font-size:10px;line-height:1.6;color:#b9c8ae}.creative-discard button{font-size:10px;min-width:100px}.creative-drag-over .creative-discard{border-color:#efb18f;background:#b86c4930}.stack-dragging .carryslot{border-color:#c8ceab55}.carryslot[draggable=true],.catalogitem[draggable=true]{cursor:grab}.carryslot:active[draggable=true]{cursor:grabbing}.catalogitem img,.carryslot img,.slot img{pointer-events:none;image-rendering:pixelated}.villagerjob{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;background:#152b22;border:1px solid #cfbd8b40;border-radius:6px}.villagerjob strong{color:#e0cc94}.villagerjob span{font-size:11px;opacity:.7}.trade{gap:12px}.trade>span{flex:1}.trade svg,.trade img{flex-shrink:0}@media(max-width:800px){.cataloghotbarwrap{top:-16px}.cataloghotbar .carryslot{height:46px}.creative-discard{flex-wrap:wrap;gap:8px}.creative-discard span{flex:1;min-width:160px}}

.commandlabel{display:block;font-weight:600}.commandlabel textarea{display:block;box-sizing:border-box;width:100%;margin:10px 0;padding:14px;background:#182f31;color:#fff4d8;border:1px solid #9aaf9c;border-radius:8px;font:14px/1.6 monospace;resize:vertical}.commandoptions{display:flex;gap:24px;flex-wrap:wrap;align-items:center}.commandoptions input[type=number]{width:70px;padding:7px}.commandguide{margin:22px 0}.commandguide summary{cursor:pointer}.commandexample{display:flex;flex-direction:column;text-align:left;width:100%;gap:5px;margin-top:8px}.commandexample small{opacity:.7}#commandError{color:#ffc9a3}#commandOutput{display:block;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#152f3280;border-radius:8px}
/* English, Mandarin pronunciation, then Simplified Chinese. */
.language-stack{display:inline-flex;flex-direction:column;vertical-align:middle;gap:3px;max-width:100%;line-height:1.3;letter-spacing:normal;white-space:normal;text-transform:none;text-align:inherit;font-style:normal}
.language-english{display:block;font-size:1em}.language-pinyin{display:block;font-family:system-ui,sans-serif;font-size:.8em;font-weight:400;color:#e9d298;line-height:1.4}.language-chinese{display:block;font-family:system-ui,'PingFang SC','Microsoft YaHei',sans-serif;font-size:.9em;font-weight:400;line-height:1.4;color:#e2efe2}
button .language-stack{pointer-events:none}.catalogitem{height:auto;min-height:150px;gap:9px;padding-bottom:12px}.catalogitem>span{width:100%;font-size:11px}.catalogitem .language-pinyin{font-size:10px}.catalogitem .language-chinese{font-size:12px}.catalogitem>span.language-stack{width:auto}.itemcatalog{align-items:stretch}.language-input-hint,.language-select-hint{display:flex;margin:5px 0 14px;font-size:11px;opacity:.85}.language-input-hint .language-english{display:none}.topright{gap:10px}.topright button{min-width:88px}.brand{letter-spacing:1px}.brand>.language-stack{font-size:14px}.brand .alpha{max-width:110px}.location{top:145px}.quest{top:145px;max-height:45vh;overflow:auto}.quest p{line-height:1.4}.quest h3{font-size:15px}#target{max-width:80vw;text-align:center}#itemLabel .language-stack{font-size:12px}#toast{max-width:min(80vw,700px);text-align:center}.hotbarhint{max-width:650px;margin-left:auto;margin-right:auto}.hotbarhint .language-pinyin,.hotbarhint .language-chinese{font-size:9px}.bottomleft,.bottomright{font-size:10px}.welcome h1{font-size:clamp(32px,4vw,56px);letter-spacing:-1px;line-height:1.2;margin:18px 0}.welcome h1 .language-stack{gap:6px}.welcome p{max-width:600px;font-size:13px;line-height:1.4}.welcome{max-height:84vh;overflow:auto;padding-right:16px}.welcomefooter{font-size:9px}.setting{gap:14px}.modecard{min-height:120px}.panel nav button{min-height:70px}.commandexample{gap:8px}.language-select-hint{min-height:45px}
@media(max-width:1100px){.quest{display:none}.live,.alpha{display:none}.location h2{font-size:16px}.brand>.language-stack{font-size:11px}.topright button{min-width:65px;padding:8px;font-size:10px}.hotbarhint{display:none}.bottomleft,.bottomright{display:none}}
@media(max-width:600px){header{padding:14px;gap:10px}.brandicon{display:none}.brand>.language-stack{font-size:9px}.topright{gap:5px}.topright button{min-width:48px;font-size:8px;padding:7px 5px}.location{top:115px;left:16px}.location>small{font-size:8px}.welcome{margin-left:6vw;margin-right:4vw}.welcome h1{font-size:32px}.welcome p{font-size:11px}.welcomefooter{display:none}.panel{max-height:92vh}.panel h2{font-size:19px}.catalogitem{min-height:165px}.panel nav button{font-size:10px}#actions{bottom:160px}#hud{bottom:14px}}
@media(max-height:650px){.location,.quest,.welcomehint{display:none}.welcome p{font-size:11px}.welcome h1{font-size:28px}.welcomefooter{display:none}.welcome{max-height:90vh}.topright button{font-size:9px}#target{top:43%}}
nav button.selected .language-pinyin,.packtabs button.active .language-pinyin,.primary .language-pinyin,.primarysmall .language-pinyin{color:#635027}nav button.selected .language-chinese,.packtabs button.active .language-chinese,.primary .language-chinese,.primarysmall .language-chinese{color:#263b2c}
/* English is the default. Learning lines appear only after the Settings toggle. */
html:not([data-chinese=true]) .language-pinyin,html:not([data-chinese=true]) .language-chinese,html:not([data-chinese=true]) .language-input-hint,html:not([data-chinese=true]) .language-select-hint{display:none}
html:not([data-chinese=true]) .language-stack{display:inline;vertical-align:baseline}html:not([data-chinese=true]) .language-english{display:inline}html:not([data-chinese=true]) .catalogitem{min-height:96px}html:not([data-chinese=true]) .modecard{min-height:80px}html:not([data-chinese=true]) .panel nav button{min-height:0}
.start-actions{display:flex;align-items:stretch;gap:12px;flex-wrap:wrap}.start-settings{padding:14px 24px;min-width:130px;border-color:#d6c58d88;background:#203c34bb}.language-setting{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;margin-bottom:18px;border:1px solid #a7b39355;border-radius:10px;background:#152f2980}.language-setting p{font-size:12px;line-height:1.5;max-width:400px}.language-setting button{min-width:150px}.mobile-notice{max-width:520px;padding:14px 18px;margin-top:16px;background:#352b16e8;border:1px solid #edcf8b;border-radius:8px;color:#fff0c3;font-size:14px!important;line-height:1.6!important}.mobile-notice.hidden{display:none}@media(max-width:600px){.language-setting{flex-direction:column;align-items:stretch}.start-actions button{padding:12px 16px}.mobile-notice{font-size:12px!important}}
