:root{color-scheme:dark;--cream:#f1ead8;--muted:#b6c0a9;--ink:#263d32;--line:#dfdec32a;--accent:#d6b77b;--panel:#182c27ed;font-family:"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#263d32;color:var(--cream);font-size:14px}button,input,select{font:inherit}button{color:inherit;cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{position:absolute;width:0;height:0;overflow:hidden}#world{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}#vignette{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 60% 40%,transparent 30%,#172d293b 100%)}body.title-screen #vignette{background:linear-gradient(90deg,#142c29ed 0%,#172e29c7 28%,#20372c35 62%,#10271f12),linear-gradient(0deg,#152e29b3,transparent 25%)}
.brand{position:fixed;top:32px;left:42px;display:flex;align-items:center;gap:12px;font-size:20px;font-weight:650;letter-spacing:4px;z-index:2;pointer-events:none}.brand>svg{width:35px;height:40px;color:#d4dcb8}.brand small{display:block;font-size:8px;font-weight:500;letter-spacing:3.1px;margin-top:6px;color:#c0cbb1}.edition{font:9px monospace;letter-spacing:2px;align-self:flex-start;margin:5px 0 0 12px;border-left:1px solid #d5dcbb50;padding-left:13px;color:#c5ccb5}
button{background:transparent;border:0}button:hover{color:#fff7df}.primary{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:54px;padding:16px 20px;background:var(--cream);color:#203c30;border:1px solid var(--cream);font-size:13px;font-weight:650;text-align:left;transition:background .15s}.primary:hover{background:#dacaa8;color:#203c30}.primary svg{width:20px}
.eyebrow{font-family:monospace;font-size:9px;letter-spacing:2px;color:#b7c6a9;display:flex;align-items:center;gap:10px}.eyebrow>span{width:24px;height:1px;background:#a0b592}.welcome-copy{position:absolute;left:6.3%;top:21%;width:315px;max-height:74%;overflow:auto;scrollbar-width:none}.welcome-copy h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-2.4px;font-size:70px;line-height:1.04;margin:23px 0 20px;color:#f6efdc}.welcome-copy em{font-weight:400;color:#c4cea6}.intro{font-size:13px;color:#cbd3bf;line-height:1.8;margin:0 0 28px}.welcome-note{position:absolute;right:42px;top:45px;font:9px monospace;letter-spacing:1.7px;display:flex;align-items:center;gap:12px;color:#eef1dd}.welcome-note>span:not(.status-dot){opacity:.5}.status-dot{width:5px;height:5px;background:#bad599;border-radius:50%;display:inline-block;box-shadow:0 0 8px #a4b48433}.world-options label{display:flex;justify-content:space-between;align-items:center;font:9px monospace;letter-spacing:1.6px;color:#b7c4a9;margin-bottom:7px}.world-options label button{font-size:20px;padding:0 3px}.world-options input{width:100%;padding:11px 12px;background:#ffffff09;border:1px solid #d5dcc32b;border-radius:0;color:#f2eddb;font-family:monospace;font-size:12px}.mode-switch{display:flex;gap:6px;margin:12px 0 9px}.mode-switch button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;padding:10px;border:1px solid #d5dcc32b;font-size:11px;color:#b9c6b0}.mode-switch svg{width:15px;height:15px}.mode-switch .active{border-color:#c0cda36b;background:#c3d8a512;color:#e1e7cd}.world-options p{font-size:10px;color:#b0bfa7;line-height:1.5;margin:10px 0 18px}.continue{padding:14px 0 0;width:100%;display:flex;justify-content:space-between;font-size:11px;color:#c4d1b4}.welcome-links{display:flex;gap:24px;margin-top:20px}.welcome-links button{padding:0;color:#c2ccb4;font-size:10px}.welcome-links span{margin-left:10px}.scene-caption{position:absolute;right:6%;bottom:17%;text-align:right}.scene-caption>span{font:9px monospace;letter-spacing:2px;color:#e4e5cd}.scene-caption p{font:italic 27px/1.4 Georgia,serif;color:#f1f0dc;margin:18px 0}.caption-line{height:1px;background:#d2d8b84d;width:40px;margin:23px 0 13px auto}.scene-caption small{font:8px monospace;letter-spacing:1.8px;color:#d1dac0}.welcome-footer{position:absolute;left:42px;right:42px;bottom:25px;display:flex;justify-content:space-between;border-top:1px solid #d5dcc326;padding-top:17px;font:8px monospace;letter-spacing:1.7px;color:#bdc9b1}.footer-plus{color:#d9c393;padding:0 6px}
#loading{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:14px;font:12px monospace;letter-spacing:1px;z-index:10}.spinner{width:19px;height:19px;border:1px solid #c4d0b53d;border-top-color:#d0dbb7;border-radius:50%;animation:spin 1.2s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#fatal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(90vw,600px);padding:32px;background:#263d32;z-index:20}#fatal h1{font:34px Georgia,serif}
#hud{position:fixed;inset:0;pointer-events:none}#hud button,#hotbar,.map-card{pointer-events:auto}body:not(.title-screen) .brand{top:23px;left:25px;transform:scale(.8);transform-origin:top left}.compass{position:absolute;left:50%;top:27px;transform:translateX(-50%);display:flex;align-items:center;gap:14px;font:9px monospace;letter-spacing:1.5px;background:#21372c75;padding:12px 18px;border:1px solid #e7e8c820;backdrop-filter:blur(10px)}#heading{color:#f8f0d7;font-weight:bold}.compass-ticks{color:#c8d3b575}#landmark{font-size:8px;color:#e8e3cd}#landmark-distance{font-size:8px;color:#d6ccae;white-space:nowrap}.top-actions{position:absolute;right:25px;top:24px;display:flex;gap:8px}.top-actions button{background:#21372c88;border:1px solid #e7e8c82b;padding:9px 12px;display:flex;align-items:center;gap:9px;font-size:10px;backdrop-filter:blur(8px)}.top-actions svg{width:15px;height:15px}.map-card{position:absolute;right:25px;top:85px;background:#243a30c4;border:1px solid #e7e8c82b;padding:10px;backdrop-filter:blur(12px);width:154px}.map-card>div{display:flex;align-items:center;gap:7px;font:7px monospace;letter-spacing:1px;color:#e5e6ce;margin-bottom:9px}.map-card svg{width:13px;height:13px}.map-card canvas{width:132px;height:132px;image-rendering:pixelated;display:block;opacity:.86}.map-card small{display:block;text-align:center;font:8px monospace;letter-spacing:1px;color:#ccd5bb;margin-top:9px}#crosshair{position:absolute;left:50%;top:50%;width:15px;height:15px;transform:translate(-50%,-50%);filter:drop-shadow(0 1px 1px #1b2e27)}#crosshair span{position:absolute;background:#fff8ddbc;left:7px;top:2px;width:1px;height:11px}#crosshair span+span{transform:rotate(90deg)}.target-info{position:absolute;left:50%;top:calc(50% + 30px);transform:translateX(-50%);text-align:center;text-shadow:0 1px 4px #132b22;font-size:11px}.target-info small{display:block;font:8px monospace;letter-spacing:.4px;color:#eff1ddc2;margin-top:6px}#mine-progress{display:block;appearance:none;width:110px;height:3px;margin:9px auto 0;border:0}#mine-progress::-webkit-progress-bar{background:#fff4}#mine-progress::-webkit-progress-value{background:#f1e4ba}.field-note{position:absolute;left:26px;bottom:103px;width:230px;text-shadow:0 1px 6px #21362d}.field-note>div{display:flex;align-items:center;gap:8px;font:8px monospace;letter-spacing:1.5px;color:#e8e8c9}.field-note svg{width:15px;height:15px}.field-note p{font:22px Georgia,serif;margin:12px 0 9px;color:#fff2d9}.field-note small{font-size:10px;color:#e0e5cb;line-height:1.6;display:block;max-width:210px}.field-note button{font-size:9px;margin-top:13px;padding:0;color:#e6e7cc}.field-note kbd{margin-left:9px}.quick-help{position:absolute;left:25px;bottom:47px;display:flex;gap:17px;font-size:8px;color:#e6e9d6}.quick-help kbd{margin-right:4px}kbd{font:8px monospace;border:1px solid #dce4c64d;border-radius:2px;padding:3px 5px;color:#ebecd5;white-space:nowrap}
.hotbar-wrap{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);text-align:center;pointer-events:auto}.vitals{display:flex;align-items:center;justify-content:space-between;margin:0 6px 6px;font-size:13px;letter-spacing:3px;text-shadow:0 1px 4px #132b22}.vitals #health{color:#e9a38a}.vitals #hunger{color:#e6c38c;font-size:10px}.vitals #creative-label{font:8px monospace;letter-spacing:1.8px;color:#f2e7c6;margin:auto}#selected-name{font-size:10px;margin:8px 0 8px;text-shadow:0 1px 4px #132b22;color:#f1ebd4;letter-spacing:.4px}#hotbar,#pack-hotbar{display:flex;gap:5px;padding:5px;border:1px solid #efe4be47;background:#21372fc4;backdrop-filter:blur(12px)}.slot{position:relative;width:49px;height:49px;border:1px solid #e8e6bc20;background:#d5dfbb08;display:flex;align-items:center;justify-content:center;padding:5px}.slot.active{border-color:#eddda8;background:#d0d8ad21;box-shadow:0 0 0 1px #eddda842}.slot.empty{opacity:.4}.slot .block-icon{width:31px;height:31px}.slot small{position:absolute;left:4px;top:3px;font:7px monospace;color:#c7d1b399}.slot b{position:absolute;right:4px;bottom:3px;font:9px monospace;color:#e6e7cc}.block-icon{width:32px;height:32px;stroke:none;overflow:visible;filter:drop-shadow(0 2px 2px #0a1a154d)}.block-icon.tool{stroke:currentColor;stroke-width:3;fill:none}.hotbar-hint{margin-top:8px;font:7px monospace;color:#f4f1ddba;letter-spacing:.5px}.hotbar-hint b{font-weight:400;color:#e1e5cfa6}.hotbar-hint i{margin:0 9px;font-style:normal;opacity:.5}.status-note{position:absolute;right:25px;bottom:27px;display:flex;align-items:center;gap:7px;font-size:8px;color:#d9e4c2;max-width:230px;text-align:right}#toast{position:absolute;left:50%;bottom:195px;transform:translateX(-50%);max-width:min(90vw,650px);text-align:center;font-size:11px;background:#20392dd9;padding:12px 18px;border:1px solid #c5d1a736;opacity:0;transition:opacity .3s}#toast.visible{opacity:1}#damage-flash{position:absolute;inset:0;box-shadow:inset 0 0 110px #c5442580;opacity:0;transition:opacity .2s}#debug{position:absolute;left:24px;top:100px;font:10px/1.7 monospace;background:#172e29c9;padding:12px}
.modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#112a2469;backdrop-filter:blur(12px);z-index:10;padding:20px}.modal-card{background:var(--panel);border:1px solid #d3dcba33;box-shadow:0 30px 120px #0b201b5e;padding:32px;max-height:94dvh;overflow:auto}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding-bottom:23px;border-bottom:1px solid var(--line);gap:12px}.modal-header>button{font-size:19px;opacity:.7;padding:0 0 8px 12px}.modal-card h2{font:39px Georgia,serif;letter-spacing:-1px;font-weight:400;margin:12px 0 0;color:#f3ead6}.modal-card h3{font:16px Georgia,serif;font-weight:400;color:#e3e5c9}.pack-card{width:990px;padding-bottom:22px}.pack-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:30px}.pack-heading{display:flex;justify-content:space-between;align-items:center}.pack-heading span{font:8px monospace;color:#aebda7}.pack-heading svg{width:17px;color:#c0cba7}.inventory-side{padding-right:5px}.filters{display:flex;gap:7px;margin:0 0 15px}.filters button{font-size:10px;padding:7px 11px;border:1px solid #c3cfa52b;color:#b6c4ac}.filters .active{background:#b3c39121;color:#ece9cf;border-color:#bbc99b73}#inventory-grid{display:grid;grid-template-columns:repeat(5,1fr);grid-auto-rows:78px;align-content:start;gap:7px;max-height:345px;min-height:150px;overflow:auto;padding-right:3px}.inventory-item{position:relative;min-height:75px;padding:8px 4px;background:#b3c39108;border:1px solid #c6d0b325;display:flex;flex-direction:column;align-items:center;gap:5px}.inventory-item:hover{background:#c5d79f17;border-color:#c7d3aa69}.inventory-item span{font-size:8px;color:#d0d9bf;text-align:center}.inventory-item b{position:absolute;right:5px;top:5px;font:9px monospace;color:#f1dfac}.pack-help{font-size:9px;color:#a7b99e;line-height:1.9;margin:14px 0}.pack-help kbd{padding:1px 3px}#pack-hotbar{gap:3px;padding:4px}#pack-hotbar .slot{width:38px;height:38px;flex:1}#pack-hotbar .slot svg{width:26px;height:26px}.recipes-side{border-left:1px solid var(--line);padding-left:25px}.recipe-subtitle{font-size:9px;color:#acbda3;margin:0 0 18px;line-height:1.6}#recipes{display:flex;flex-direction:column;gap:7px;max-height:440px;overflow:auto;padding-right:5px}.recipe{display:flex;align-items:center;gap:11px;border:1px solid #c6d0b325;padding:9px;background:#b3c39105;text-align:left;min-height:64px}.recipe:hover:not(:disabled){background:#c5d79f17}.recipe>svg{width:29px;height:29px}.recipe>div{flex:1}.recipe strong{display:block;font-size:11px;font-weight:500}.recipe small{font-size:8px;display:block;margin-top:4px;color:#acbba0;line-height:1.6}.recipe .recipe-count{font:10px monospace;color:#bcccac}.recipe:disabled{opacity:.45}.recipe .station{color:#dec189}#smelt-status{font:10px monospace;color:#e3bc7b;background:#c89b5810;padding:12px;margin-bottom:12px}
.pause-card{width:390px;text-align:center;padding:35px}.pause-card .eyebrow{justify-content:center;font-size:8px}.pause-card h2{font-size:42px;margin:18px 0}.pause-card p{font-size:11px;color:#b9c6ac;line-height:1.8;margin:13px 0 22px}.pause-card small{display:block;font-size:9px;color:#9fb296;line-height:1.8;margin-top:20px}.pause-card .primary{margin-top:20px}.pause-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 22px}.pause-grid button{border:1px solid #ccd5b530;padding:12px 5px;font-size:10px}.setting{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:10px;color:#c2ccb2;margin:14px 0}.setting input{width:55%;accent-color:#b4c699}.setting select{padding:7px;color:#d8dfc6;background:#273c2e;border:1px solid #ccd5b530;font-size:10px}.text-button{font-size:10px;padding:12px 0 0;color:#c6d2b4}.guide-card{width:830px}.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:26px 0}.guide-grid article>span{font:9px monospace;color:#d6b97a}.guide-grid h3{font-size:18px;margin:10px 0}.guide-grid p{font-size:10px;line-height:1.85;color:#b3c3aa;margin:0}.guide-card>.primary{max-width:280px;margin-left:auto}
#touch-controls{position:fixed;inset:0;pointer-events:none;z-index:3}#joystick{position:absolute;left:27px;bottom:130px;width:105px;height:105px;border-radius:50%;border:1px solid #edf1d34d;background:#21392c40;pointer-events:auto;touch-action:none}#joystick div{position:absolute;width:42px;height:42px;background:#d2dfad59;border:1px solid #edf1d34d;border-radius:50%;left:31px;top:31px}.touch-buttons{position:absolute;right:20px;bottom:130px;display:grid;grid-template-columns:repeat(2,48px);gap:10px}.touch-buttons button{width:48px;height:48px;border:1px solid #edf1d34d;background:#21392c75;border-radius:50%;font-size:22px;pointer-events:auto;touch-action:none}
@media(min-height:950px){.welcome-copy{top:19%}.welcome-copy h1{font-size:72px}.intro{margin-bottom:34px}.welcome-copy{width:340px}}
@media(max-height:780px) and (min-width:701px){.welcome-copy{top:17%;max-height:76%;width:290px}.welcome-copy h1{font-size:54px;margin:18px 0 13px}.intro{font-size:12px;margin-bottom:17px}.world-options p{margin:8px 0 12px}.welcome-links{margin-top:12px}.welcome-footer{bottom:17px;padding-top:12px}.field-note{bottom:110px}.brand{top:25px}}
@media(max-width:1100px){.field-note{width:190px}.field-note p{font-size:19px}.field-note small{font-size:9px;max-width:175px}.quick-help{gap:8px}.quick-help span:nth-child(2){display:none}.status-note{max-width:160px;bottom:35px}.hotbar-hint{font-size:6px}.slot{width:43px;height:46px}.compass{left:48%}.pack-card{padding:24px}.pack-layout{gap:20px}.recipes-side{padding-left:18px}}
@media(max-width:800px){.scene-caption{right:5%;bottom:18%;max-width:220px}.scene-caption p{font-size:23px}.scene-caption small{font-size:7px}.welcome-note{font-size:7px;right:25px;gap:7px}.brand{left:25px}.compass{top:23px;left:52%;padding:9px 12px;gap:8px}#landmark{display:none}.map-card{width:113px;right:15px;top:75px;padding:8px}.map-card canvas{width:95px;height:95px}.map-card>div{font-size:6px}.top-actions{right:15px}.top-actions button{padding:7px 9px}.top-actions span{display:none}.field-note{bottom:170px;width:185px}.field-note small{font-size:9px}.quick-help{display:none}.status-note{bottom:9px;right:15px;max-width:none;font-size:7px}.hotbar-wrap{bottom:27px}.guide-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.brand{left:22px;top:24px;font-size:16px;letter-spacing:3px}.brand>svg{width:28px}.brand small{font-size:7px;letter-spacing:2px}.edition{font-size:7px;letter-spacing:1px;margin-left:3px;padding-left:9px}.welcome-note{display:none}.welcome-copy{left:26px;top:19%;width:min(295px,calc(100vw - 52px));max-height:73%}.welcome-copy h1{font-size:57px;letter-spacing:-1.5px;margin:19px 0 15px}.intro{font-size:12px;margin-bottom:21px}.eyebrow{font-size:8px;letter-spacing:1.5px}.scene-caption{display:none}.welcome-footer{left:24px;right:24px;bottom:20px;font-size:6px;letter-spacing:1px}.welcome-footer>span:last-child{display:none}body.title-screen #vignette{background:linear-gradient(90deg,#172e29e3,#172e2978),linear-gradient(0deg,#152e29c2,transparent 30%)}.welcome-copy .primary{min-height:48px;font-size:12px}.brand small{margin-top:5px}body:not(.title-screen) .brand{left:14px;top:16px;transform:scale(.65)}body:not(.title-screen) .brand .edition{display:none}.compass{top:68px;left:50%;padding:7px 13px;font-size:8px}.compass-ticks{display:none}.top-actions{top:17px;right:12px}.map-card{right:12px;top:67px;width:83px;padding:5px}.map-card canvas{width:71px;height:71px}.map-card>div{font-size:5px;gap:3px;margin-bottom:5px}.map-card svg{width:9px;height:9px}.map-card small{font-size:6px;margin-top:5px}.field-note{left:14px;bottom:155px;width:170px}.field-note>div{font-size:6px;letter-spacing:1px}.field-note p{font-size:17px;margin:7px 0}.field-note small{font-size:8px;max-width:170px}.field-note button{font-size:8px;margin-top:9px}.slot{width:calc((100vw - 57px)/9);max-width:43px;height:41px;padding:2px}.slot .block-icon{width:25px;height:25px}.slot small{font-size:6px;left:2px;top:2px}.slot b{font-size:8px;right:2px;bottom:2px}#hotbar{gap:3px;padding:4px}.hotbar-hint{font-size:5.5px;letter-spacing:0}.hotbar-hint i{margin:0 4px}.hotbar-wrap{bottom:28px}.vitals{font-size:10px;letter-spacing:1.6px;margin:0 3px 4px}.vitals #hunger{font-size:8px}#selected-name{font-size:9px;margin-bottom:6px}.modal{padding:10px}.modal-card{padding:20px;max-height:95dvh}.modal-card h2{font-size:29px}.modal-header{padding-bottom:16px}.modal-header .eyebrow{font-size:7px;letter-spacing:1px}.pack-layout{grid-template-columns:1fr;gap:12px}.recipes-side{border-left:0;border-top:1px solid var(--line);padding:5px 0 0}.pack-heading h3{font-size:15px}.pack-help{font-size:8px;margin:9px 0}#inventory-grid{grid-template-columns:repeat(5,1fr);min-height:85px;max-height:190px;gap:4px}.inventory-item{min-height:65px;padding:6px 2px}.inventory-item span{font-size:7px}.inventory-item .block-icon{width:25px;height:25px}#recipes{max-height:240px}.recipe-subtitle{font-size:8px;margin-bottom:10px}.guide-grid{grid-template-columns:1fr;gap:17px}.guide-grid p{font-size:11px}.guide-grid h3{font-size:20px}.guide-card{max-height:90dvh}.pause-card{padding:26px;max-width:360px}.pause-card h2{font-size:38px}.status-note{max-width:calc(100vw - 30px);font-size:6px}#toast{font-size:10px;bottom:220px}#joystick{width:85px;height:85px;bottom:130px;left:20px}#joystick div{left:21px;top:21px}.touch-buttons{bottom:130px;right:15px;grid-template-columns:repeat(2,40px);gap:8px}.touch-buttons button{width:40px;height:40px;font-size:19px}body.touch .field-note{display:none}}
@media(max-height:650px){.welcome-copy{top:18%;}.welcome-copy h1{font-size:44px;margin:12px 0}.intro{margin-bottom:12px;font-size:11px}.world-options label{font-size:8px}.world-options input{padding:8px}.mode-switch{margin:9px 0 5px}.mode-switch button{padding:8px}.world-options p{font-size:9px;margin:7px 0 11px}.welcome-links{margin-top:12px}.welcome-footer{bottom:12px}.welcome-copy .primary{min-height:43px;padding:12px 16px}.field-note{display:none}.guide-card{max-height:94dvh}}
