*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#222;color:#fff;font-family:Microsoft YaHei,monospace}button,select,input,a{font:inherit}button,.button{color:#fff;text-shadow:2px 2px #222;background:#787878;border:2px solid #171717;box-shadow:inset 2px 2px #bcbcbc,inset -2px -2px #444;padding:10px 16px;cursor:pointer;text-decoration:none;text-align:center;display:block}button:hover,.button:hover{background:#879bc0;box-shadow:inset 2px 2px #bed3ff,inset -2px -2px #4d6080}button:disabled{color:#aaa;background:#494949;cursor:default}select,input{background:#333;color:#fff;border:2px solid #111;padding:6px;max-width:100%}[hidden]{display:none!important}#game{width:100%;height:100%;display:block}.overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;padding:22px;z-index:20}.title-screen{text-align:center;width:410px;max-width:100%;text-shadow:2px 3px #202020}.title-screen h1{font-size:clamp(46px,6vw,70px);letter-spacing:8px;color:#ddd;text-shadow:3px 3px #333,5px 5px #111;margin:0}.title-screen h2{color:#fff467;font-size:24px;margin:12px}.title-screen p{margin:20px 0 30px}.title-screen button,.title-screen .button{width:100%;margin:9px 0}.title-screen label{display:flex;align-items:center;justify-content:space-between;padding:8px 0}.title-screen small{display:block;font-size:11px;color:#bbb;margin-top:30px}.panel{background:#c6c6c6;color:#333;border:4px solid #222;box-shadow:inset 3px 3px #fff,inset -3px -3px #555;padding:22px;max-height:94vh;overflow:auto;text-shadow:none}.panel h2{font-size:20px;margin:0 0 18px}.panel header{display:flex;align-items:center;justify-content:space-between}.close{padding:0 10px;font-size:22px}.menu-panel{width:450px;max-width:100%}.menu-panel>button,.menu-panel>.button{width:100%;margin:8px 0}.menu-panel label{display:flex;justify-content:space-between;align-items:center;margin:14px 0}.menu-panel p{font-size:12px;line-height:1.9}.menu-panel input[type=text],#world-name{width:100%;margin-top:16px}.world-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #999;padding:9px 0;gap:8px}.world-row small{display:block;font-size:10px;color:#555}#crosshair{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font:700 24px monospace;color:#fff;text-shadow:1px 1px black;pointer-events:none}#target{position:absolute;top:calc(50% + 30px);width:100%;text-align:center;font-size:12px;text-shadow:1px 1px #111;pointer-events:none}#mine{position:absolute;top:calc(50% + 55px);left:calc(50% - 50px);width:100px;height:5px;background:#0008;display:none}#mine i{display:block;background:#fff;height:100%;width:0}#toast{position:absolute;top:15%;width:100%;text-align:center;text-shadow:2px 2px #111;pointer-events:none}#debug{position:absolute;top:9px;left:9px;font:13px/1.5 monospace;white-space:pre;background:#0008;padding:6px;pointer-events:none}#menu{position:absolute;right:14px;top:14px;width:40px;height:36px;padding:3px}#bottom{position:absolute;bottom:12px;left:50%;transform:translate(-50%);width:456px;max-width:96vw;text-shadow:2px 2px #111;pointer-events:none}#vitals{display:flex;justify-content:space-between;font:700 20px monospace;letter-spacing:0}#hearts{color:#f44838}#hunger{color:#d99d53}#air{text-align:right;color:#9bd7ff;font-size:17px;height:22px}#xp{height:5px;background:#1d2814;border:1px solid #151515;margin-bottom:6px;position:relative}#xp i{height:100%;display:block;background:#82cd1c}#xp b{position:absolute;top:-20px;width:100%;text-align:center;font-size:15px;color:#8ded29}#selected-name{position:absolute;bottom:87px;width:100%;text-align:center;font-size:13px}#hotbar{display:grid;grid-template-columns:repeat(9,1fr);gap:2px;background:#171717;padding:3px;border:2px solid #888;pointer-events:auto}.slot{position:relative;width:100%;aspect-ratio:1;min-width:0;padding:3px;background:gray;border:2px solid #555;box-shadow:inset 1px 1px #aaa}.slot.selected{border-color:#fff;background:#a2a2a2}.slot img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.slot em{position:absolute;right:2px;bottom:0;font-style:normal;font-size:14px;line-height:1}.slot .durability{position:absolute;bottom:3px;left:4px;width:80%;height:3px;background:#242424}.durability i{display:block;background:#6ed332;height:100%}#controls{display:block;text-align:center;font-size:10px;color:#ddd;margin-top:8px}.inventory-panel{width:810px;max-width:100%}.inventory-panel h3{font-size:14px;font-weight:400;margin:16px 0 7px}.inventory-panel h3 small{font-size:10px;color:#555}#inventory-grid{display:grid;grid-template-columns:repeat(9,1fr);gap:4px;max-width:520px;margin:auto}#inventory-grid .slot{aspect-ratio:1;max-height:50px}#inventory-grid .slot:nth-child(n+28){margin-top:7px}#craft-section{display:grid;grid-template-columns:1fr 220px;gap:20px}#recipes{max-height:210px;overflow:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;align-content:start}#recipes button{font-size:11px;padding:7px 3px}#recipes button.available{color:#dfffbc}#recipes button.active{outline:2px solid #497c36}.recipe-detail{text-align:center}#recipe-grid{display:grid;grid-template-columns:repeat(3,36px);gap:3px;justify-content:center;margin:12px 0}#recipe-grid .slot{height:36px}#craft{width:100%;font-size:13px}#ingredients,#craft-tip,#inventory-message{font-size:11px;line-height:1.6}#carried{font-size:12px;min-height:20px;text-align:center;color:#315c31;margin-top:10px}.furnace-slots{display:flex;gap:10px;justify-content:center;align-items:center;margin:22px 0}.furnace-slots button{width:110px;min-height:75px;font-size:12px}#smelt-progress{width:100%;height:15px;accent-color:#d16c16}#creative-items{display:grid;grid-template-columns:repeat(9,1fr);max-height:210px;overflow:auto;gap:4px}#creative-items button{height:42px;aspect-ratio:1}#death{background:#6e0f129e}#death h2{font-size:42px;color:#fff}@media(max-width:650px){#craft-section{grid-template-columns:1fr 145px;gap:10px}.panel{padding:12px}#recipes{grid-template-columns:repeat(2,1fr)}#bottom{width:380px}#controls{font-size:8px}#vitals{font-size:16px}.inventory-panel h3 small{display:block}.furnace-slots{gap:5px}.furnace-slots button{width:85px}}#vitals>span{white-space:nowrap}#hunger{font-size:16px;line-height:24px;letter-spacing:-1px}#hearts{line-height:24px}
