:root{color-scheme:dark;--mint:#a1e8c4;--edge:#30443a}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{display:flex;flex-direction:column;background:#0b1512;color:#e1ece4;font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-size:12px}button{font:inherit;color:inherit;border:1px solid var(--edge);border-radius:3px;padding:7px 11px;background:#12231b;cursor:pointer}button:hover{color:var(--mint);border-color:#82baa0}button:disabled{opacity:.45;cursor:wait}header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;flex-shrink:0;border-bottom:1px solid var(--edge);background:#0c1712}.brand{color:#deece2;text-decoration:none;letter-spacing:2px;font-weight:600;white-space:nowrap}.brand i{font-size:24px;font-style:normal;color:var(--mint);vertical-align:middle;margin-right:7px}.brand small{font:9px monospace;letter-spacing:2px;color:#829e8e;margin-left:13px}nav{display:flex;gap:5px;align-items:center}nav button{padding:6px 9px;font-size:10px}main{flex:1;min-height:0;width:100%;padding:0}.game{position:relative;width:100%;height:100%;overflow:hidden}canvas#c{display:block;width:100%;height:100%;image-rendering:pixelated}.hud{position:absolute;top:0;left:0;width:100%;height:62px;padding:10px 22px;display:flex;gap:30px;align-items:center;background:linear-gradient(#0b1814e8,#0b181499);pointer-events:none}.hud label{display:block;color:#96ac9c;font-size:9px;letter-spacing:2px}.hud strong{font:23px monospace;display:block;margin-top:3px}.hud small{font-size:11px;color:#9bab9e}.health{margin-right:auto}.health span{display:block;color:#b0e5b7;letter-spacing:4px;font-size:18px;margin-top:5px}#biome{font-size:10px;color:#a5c1ac;letter-spacing:2px;padding:5px 9px;border:1px solid #536c4a66}#biome[data-hot="true"]{color:#ffc394;border-color:#a9654255}.effectbar{position:absolute;top:62px;left:0;width:100%;padding:6px 22px;background:#10221988;display:flex;justify-content:space-between;font:10px monospace;color:#aec2ad;pointer-events:none}[data-tone="negative"]{color:#e8a08f}[data-tone="positive"]{color:#d4e5a2}.bottom{position:absolute;left:0;bottom:0;width:100%;padding:9px 20px;background:linear-gradient(transparent,#08150ddd);font-size:10px;color:#a0bba7;pointer-events:none;letter-spacing:1px}#overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:linear-gradient(#07120d66,#07120dbb)}.eyebrow{font:9px monospace;letter-spacing:3px;color:var(--mint)}#overlay h2{font-size:44px;letter-spacing:12px;font-weight:500;margin:15px 0}#overlay>p:not(.eyebrow){line-height:2.2;color:#b1c6b7;font-size:12px}#overlay button{background:var(--mint);color:#122c1c;font-weight:600;width:200px;margin:16px;padding:14px;border:0}#overlay small{font-size:10px;color:#8eac9a;line-height:1.8}.touch{display:none;position:absolute;bottom:34px;left:12px;right:12px;gap:8px;touch-action:none}.touch button{flex:1;background:#1b3829c9;min-height:38px}dialog{max-width:580px;width:90vw;max-height:86dvh;overflow:auto;background:#112219;border:1px solid #4b6954;color:#d9e7dc;padding:28px}dialog::backdrop{background:#000a}dialog h2{font-size:20px;font-weight:500;letter-spacing:2px}dialog p{font-size:12px;line-height:2;color:#a6bdac}details{margin:20px 0;color:#708e7b}details p{font:10px monospace;line-height:1.9}#collection{max-width:850px}#specimens{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.specimen-card{padding:15px 10px;background:radial-gradient(ellipse at 50% 30%,#3a453c88,transparent 75%),#112018;border:1px solid #334b38;text-align:center}.specimen-card canvas{width:112px;max-width:100%;height:auto;image-rendering:pixelated}.specimen-card h3{font-size:13px;margin:12px 0 6px;font-weight:500}.specimen-card small{font:8px monospace;letter-spacing:1px;color:#7e9d89}.specimen-card p{font-size:10px;line-height:1.8}.specimen-card b{font:10px monospace;color:#c3d3ad}@media(max-width:700px){header{padding:6px 8px;gap:5px;flex-wrap:wrap}.brand{font-size:11px;letter-spacing:1px}.brand i{font-size:20px;margin-right:3px}.brand small{display:none}nav{gap:3px}nav button{padding:5px 6px;font-size:9px}.hud{padding:10px 12px;gap:12px}.hud strong{font-size:21px}.health span{font-size:14px;letter-spacing:2px}#biome{font-size:8px;letter-spacing:0;padding:4px}.effectbar{font-size:8px;padding:6px 12px}.touch{display:flex}#overlay h2{font-size:32px}#specimens{grid-template-columns:repeat(2,1fr)}.specimen-card canvas{width:95px}.specimen-card p{font-size:9px}dialog{padding:20px}.bottom{font-size:9px;padding:8px 12px}}

.collection-head{position:sticky;top:-28px;z-index:2;display:flex;align-items:center;justify-content:space-between;background:#112219;padding:12px 0;border-bottom:1px solid #3b5645}.collection-head h2{margin:6px 0}.collection-head button{min-width:70px}@media(max-width:700px){.collection-head{top:-20px}}

#inventory{display:flex;align-items:center;gap:4px;flex:1;min-width:0;overflow-x:auto;pointer-events:auto;padding:2px 0}.health{margin-right:0}.bag-slot{position:relative;flex-shrink:0;width:38px;height:38px;border:1px solid #657c5c66;background:#14221bbf;display:flex;align-items:center;justify-content:center}.bag-slot canvas{width:32px;height:28px;image-rendering:pixelated}.bag-slot>span:last-child{position:absolute;right:2px;bottom:1px;font:9px monospace;color:#fff8d8;text-shadow:1px 1px #000}.wood-icon{color:#b88e60;font-size:24px}.bag-empty{font-size:9px;color:#789183;white-space:nowrap}.hud{gap:16px}.health span{white-space:nowrap;letter-spacing:1px;font-size:16px}.recipe{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid #3a5140}.recipe h3{font-size:14px;margin:6px 0}.recipe p{font-size:11px;margin:4px 0}.recipe small{color:#acba8c}.recipe button{flex-shrink:0}.recipe button:disabled{cursor:default}#crafting{max-width:640px}select{color:#e3e7c8;background:#1a3025;border:1px solid #536d54;padding:6px}#craftMessage{color:#e6cf94}@media(max-width:700px){.hud{gap:7px;padding:8px}.health span{font-size:11px;letter-spacing:0}.bag-slot{width:31px;height:33px}#biome{display:none}.hud strong{font-size:17px}}

.recipe-reason{color:#c5aa87!important}.bag-slot[data-item-slot="14"]{border-color:#a7b485;cursor:pointer}

#crafting{max-width:940px;width:94vw}.recipe{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:20px 0}.recipe-main{min-width:0}.recipe-title{display:flex;align-items:baseline;gap:10px;margin-bottom:12px}.recipe-title h3{font-size:12px;font-weight:500;margin:0}.recipe-title>small{font-size:9px;letter-spacing:1px}.recipe-flow{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.recipe-items{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.recipe-figure{margin:0;min-width:66px;text-align:center}.recipe-figure canvas{display:block;margin:auto;width:64px;height:56px;image-rendering:pixelated;background:radial-gradient(ellipse,#556c4933,transparent 75%)}.recipe-figure figcaption span{display:block;color:#d9e7cc;font-size:10px;line-height:1.7}.recipe-figure figcaption small{display:block;font:10px monospace;color:#91aa91;line-height:1.6}.recipe-figure.is-missing figcaption small{color:#d59a84}.recipe-results{padding:5px 12px;border-radius:4px;background:#8caa6720;border:1px solid #8d9f6b33}.recipe-arrow{color:#b2c49a;font:22px monospace}.recipe-plus{color:#6c876e;font-size:12px}.recipe p.recipe-tip,.recipe p.recipe-reason{font-size:10px;margin:10px 0 0}.recipe button{align-self:center;min-width:62px}@media(max-width:600px){.recipe{grid-template-columns:1fr;gap:10px}.recipe button{justify-self:end}.recipe-flow{gap:9px}.recipe-items{gap:3px}.recipe-figure{min-width:54px}.recipe-figure canvas{width:54px;height:47px}.recipe-figure figcaption span{font-size:9px}.recipe-results{padding:4px 7px}}

.mineral-facts{color:#bdcbb1!important;font-size:10px!important;line-height:1.8!important}

[hidden]{display:none!important}body[data-scene="surface"] #mineButton,body[data-scene="surface"] #poisonButton,body[data-scene="surface"] #route,body[data-scene="surface"] #demo,body[data-scene="surface"] .health{display:none}body[data-scene="cave"] #homeButton,body[data-scene="cave"] #descendButton{display:none}#homestead{max-width:1000px;width:min(1000px,94vw);max-height:88vh;overflow:auto}.home-storage{display:flex;flex-wrap:wrap;gap:12px}#homeContent .recipe-items{flex-wrap:wrap}#homeContent>p{max-width:75ch;line-height:1.8}body[data-scene="surface"] .hud>div:first-child>label,body[data-scene="surface"] .hud>div:last-child>label{font-size:0}body[data-scene="surface"] .hud>div:first-child>label:after{content:'季节';font-size:12px}body[data-scene="surface"] .hud>div:last-child>label:after{content:'建设进度';font-size:12px}#returnSurface{font-size:14px}

#homeContent .recipe{gap:18px}#homeContent .recipe>div{min-width:0}#homeContent .recipe button{max-width:170px}#homeContent .recipe-figure{width:82px;flex-shrink:0}#homeContent .recipe-figure small{display:block}#homestead .collection-head{position:sticky;top:-1px;background:#13271e;z-index:2;padding:8px 0}
