:root{color-scheme:dark;font-family:Inter,'Segoe UI',sans-serif;color:#edf5ef;background:#101c24;font-size:14px;--mint:#a3e6c8;--line:#48645e;--panel:#14252ceF}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input{font:inherit;color:inherit}button{cursor:pointer;background:#22383e;border:1px solid #49645f;border-radius:7px;padding:8px 12px}button:hover{background:#38564f}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--mint)}[hidden]{display:none!important}canvas{position:fixed;inset:0;width:100%;height:100%;image-rendering:auto}#hud{position:fixed;inset:0;pointer-events:none}#hud button,#hud aside{pointer-events:auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 20px;background:linear-gradient(#0e1b24eb,transparent)}.brand{letter-spacing:.16em;font-size:21px}.brand small{color:var(--mint);font-size:11px}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:700;color:var(--mint);text-transform:uppercase}.topactions{display:flex;gap:7px;align-items:center}.pill{border:1px solid #6b8c7f;border-radius:20px;padding:6px 10px;color:var(--mint);background:#14252c}.stats{margin:8px 20px;width:190px;background:#14252cde;border:1px solid #405853;border-radius:10px;padding:12px;display:grid;gap:8px}.stat{display:grid;grid-template-columns:52px 1fr 29px;align-items:center;gap:6px;font-size:10px}.track{height:7px;background:#31434b;border-radius:10px;overflow:hidden}.track i{display:block;height:100%;border-radius:10px}.inventory{position:absolute;right:16px;top:76px;bottom:135px;width:286px;overflow:auto;background:var(--panel);border:1px solid #4c6964;border-radius:12px;padding:14px;box-shadow:0 14px 45px #09151d66}.panelhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.panelhead:not(:first-child){margin-top:18px}.panelhead h2{font-size:16px;margin:3px 0}.slots{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.slot{position:relative;aspect-ratio:1;border:1px solid #47615e;background:#182d35;border-radius:6px;display:grid;place-items:center;padding:4px;min-width:0}.slot.active{outline:2px solid #a3e6c8;background:#32574f}.slot .num{position:absolute;bottom:2px;right:4px;font-size:10px;color:#fff}.slot .key{position:absolute;top:2px;left:4px;font-size:9px;color:#9cb3b4}.item{width:20px;height:20px;border:2px solid #ffffff46;box-shadow:inset -4px -4px #0003;border-radius:4px;transform:rotate(-8deg)}.item.tool{transform:rotate(-35deg);width:6px;height:25px;border-radius:2px;background:#b08b65!important;position:relative}.item.tool:after{content:'';position:absolute;left:-7px;top:-1px;width:19px;height:7px;background:#c6d5d7;border-radius:2px}.hint,.muted{font-size:11px;color:#a6b9b8;line-height:1.5}.recipe{display:flex;width:100%;justify-content:space-between;align-items:center;margin:5px 0;font-size:11px;padding:8px;gap:6px}.recipe small{color:#b4c8c4;text-align:right}.bottom{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);text-align:center;max-width:98vw}.hotbar{pointer-events:auto;display:grid;grid-template-columns:repeat(10, minmax(30px,49px));gap:5px;padding:8px;background:#12242ce8;border:1px solid #4f6b65;border-radius:12px}.selected{margin:5px;color:#ecf4e7;text-shadow:0 2px 5px #000;font-weight:600}.controls{font-size:10px;color:#e0efea;text-shadow:0 1px 4px #000;margin-top:6px;white-space:normal}.overlay{position:fixed;inset:0;display:grid;place-items:center;background:linear-gradient(90deg,#0b1724cc,#17272a44);overflow:auto}.menubox{width:min(420px,94vw);padding:30px;background:#102029ed;border:1px solid #58766d;border-radius:18px;box-shadow:0 24px 90px #08121888}.back{display:inline-block;font-size:11px;color:#b9d4cc;margin-bottom:26px}.menubox h1{font-size:clamp(40px,8vw,60px);letter-spacing:-.05em;margin:7px 0;font-weight:900}.menubox h1 span{color:var(--mint)}.menubox p{color:#b1c8c5;margin:0 0 24px}.menubox label{display:grid;gap:6px;font-size:11px;color:#b6c9c7;margin:12px 0 8px}.menubox input{background:#1b3039;border:1px solid #4b6667;padding:10px;border-radius:6px}.primary{display:flex;flex-direction:column;align-items:flex-start;width:100%;font-size:17px;font-weight:700;background:#a3e6c8;color:#132f2c;border:0;padding:13px 15px}.primary:hover{background:#c0f1db}.primary span{font-size:11px;font-weight:400;margin-top:3px}.secondary{background:#254c55;color:#d8f8eb;border:1px solid #5d8b81}.subtle{width:100%;margin-top:10px;background:none;border:0;color:#aec1bf;font-size:12px}.menufine{color:#7e9e99;font-size:10px;letter-spacing:.12em;text-align:center;margin-top:15px}#error{color:#ffb7a8;font-size:12px;margin-top:8px}#toast{font-size:12px;text-shadow:0 2px 4px #000;color:#fff;min-height:16px}#map{display:flex;height:11px;position:relative;border-radius:3px;overflow:hidden}#map i{flex:1}#map b{position:absolute;height:100%;width:3px;background:white}.landing{overflow:auto;background:radial-gradient(ellipse at 75% 25%,#244842,#0d1923 65%);min-height:100vh}.platform{display:flex;justify-content:space-between;padding:25px 7%;border-bottom:1px solid #364f51;letter-spacing:.18em}.platform b span{color:var(--mint)}.platform small{color:#a6c6bd}.library{max-width:1100px;margin:70px auto;padding:0 24px}.library h1{font-size:clamp(45px,7vw,83px);letter-spacing:-.06em;line-height:.98;margin:16px 0}.library>p{color:#aac6c2}.gamecard{display:block;max-width:520px;margin:38px 0 24px;border:1px solid #54736a;border-radius:14px;overflow:hidden;background:#152a31;transition:transform .2s}.gamecard:hover{transform:translateY(-4px)}.cardart{height:230px;display:grid;align-content:center;justify-items:center;background:linear-gradient(150deg,#142a43,#457c70 58%,#233b38);position:relative}.cardart strong{font-size:48px;letter-spacing:.06em;z-index:1}.cardart span{font-size:34px;color:#b1ebd4}.cardart small{letter-spacing:.4em;color:#d1e5dd}.cardbody{display:flex;justify-content:space-between;align-items:center;padding:20px}.cardbody p{font-size:12px;color:#b0c6c1;margin:6px 0}.playbtn{background:var(--mint);color:#18342d;padding:12px 16px;border-radius:7px;font-weight:bold}@media(max-width:760px){.inventory{width:220px;right:6px;top:100px;bottom:115px;padding:9px}.topbar{padding:9px;flex-wrap:wrap}.topactions{gap:4px}.topactions button{padding:6px}.stats{width:145px;margin:3px 8px}.brand{font-size:16px}.slot .item{width:15px;height:15px}.hotbar{gap:2px;padding:5px}.controls{font-size:9px}}
/* Pixel interface: bevelled inventory cells, hard edges, original palette. */
:root{font-family:Consolas,'Courier New',monospace;--mint:#f2d383;--panel:#252e4aef;color:#fff2cf;--line:#7786b0;background:#273751}canvas{image-rendering:pixelated}button,input{border-radius:0!important}button{background:#45567e;border:2px solid #9baacf;border-right-color:#202c48;border-bottom-color:#202c48;box-shadow:0 2px #151b2b;color:#fff4d8;font-weight:700;text-shadow:1px 2px #1c243b}button:hover{background:#687bab;color:#fff8df}button:active{transform:translateY(1px);box-shadow:none}.topbar{padding:9px 12px;background:transparent;text-shadow:2px 2px #182438}.brand{font-size:22px;letter-spacing:.06em;color:#ffe8aa}.brand small,.eyebrow{color:#fff0b2;text-shadow:1px 2px #25334b}.pill{border-radius:0;border:2px solid #7889b6;background:#283653;color:#f9df9d;font-size:11px}.stats{margin:2px 12px;border:2px solid #8795bc;border-right-color:#28344e;border-bottom-color:#28344e;border-radius:0;background:#222d48db;padding:8px;width:183px;gap:6px;box-shadow:2px 2px #172035}.track{height:10px;border-radius:0;border:1px solid #11192a;background:#141c30}.track i{border-radius:0;box-shadow:inset 0 2px #ffffff38,inset 0 -2px #0004}.inventory{width:280px;right:12px;top:57px;bottom:auto;max-height:calc(100% - 160px);padding:10px;border:3px solid #8c9cc6;border-bottom-color:#24304c;border-right-color:#24304c;border-radius:0;background:#293858ed;box-shadow:4px 4px #121a2bc0}.panelhead{margin-bottom:6px}.panelhead:not(:first-child){margin-top:10px}.panelhead h2{color:#ffe6aa;text-shadow:2px 2px #171e31;font-size:18px}.slots{gap:3px;grid-template-columns:repeat(8,1fr)}.slot{background:#3c4b75;border:2px solid #8297c1;border-right-color:#1e2944;border-bottom-color:#1e2944;border-radius:0!important;box-shadow:inset 1px 1px #adbee044,inset -2px -2px #0c183847;padding:1px}.slot:hover{background:#5b6f9b}.slot.active{background:#695b46;outline:2px solid #ffdc72;border-color:#ffe3a4;z-index:1;box-shadow:inset 0 0 0 2px #b6954d}.slot .num{font-size:11px;right:2px;bottom:0;text-shadow:1px 2px #0a1120;pointer-events:none}.slot .key{top:1px;left:2px;color:#e1e7fb;text-shadow:1px 1px #1b2540;pointer-events:none}.item-icon{width:72%;height:72%;object-fit:contain;image-rendering:pixelated;pointer-events:none;filter:drop-shadow(1px 2px #141b3099)}.hint,.muted{color:#bfcbe7;font-size:10px}.recipe{margin:3px 0;padding:5px 6px;font-size:10px;text-align:left;min-height:30px}.recipe small{font-size:9px;color:#f0ddad}.recipe b{max-width:46%}.bottom{bottom:10px}.hotbar{grid-template-columns:repeat(10,minmax(28px,47px));gap:3px;padding:4px;background:#28344fdb;border:2px solid #8c9cc6;border-bottom-color:#202b46;border-right-color:#202b46;border-radius:0;box-shadow:3px 3px #182237}.selected{font-size:14px;color:#fff0b1;text-shadow:2px 2px #1a2237}.controls{text-shadow:1px 2px #182137;color:#fff5d8}.overlay{background:#14213955;align-content:center;justify-items:center}.menubox{background:#293754ed;border:4px solid #99a9cc;border-right-color:#27334e;border-bottom-color:#27334e;border-radius:0;padding:22px;width:min(430px,94vw);box-shadow:6px 6px #16213cb0}.menubox h1{font-family:Impact,'Arial Black',sans-serif;letter-spacing:1px;font-size:clamp(42px,8vw,65px);color:#cde18c;text-shadow:3px 3px #41532c,5px 5px #1b2d25,-2px -2px #eaf1b3;margin:8px 0 12px}.menubox h1 span{color:#9bc65c}.menubox p{color:#e4dfc9;margin-bottom:16px}.menubox label{color:#e0e8fb}.menubox input{background:#17243e;border:2px solid #101b30;border-right-color:#7d92bd;border-bottom-color:#7d92bd;padding:8px}.primary,.secondary{background:#52699b;border:2px solid #a7b7de;border-bottom-color:#1d2b4b;border-right-color:#1d2b4b;color:#fff3c7;align-items:center;text-align:center}.primary:hover,.secondary:hover{background:#7390bc;color:#fff8db}.primary span{color:#d5e0f1}.subtle{border:0;color:#d0d9f0;text-shadow:none;box-shadow:none}.menufine{color:#a9b7d5}.back{margin-bottom:12px}.cardart{background:repeating-linear-gradient(0deg,#609dc6 0 12px,#6ba7ce 12px 24px);border-radius:0}.gamecard{border-radius:0}.playbtn{border-radius:0}.platform b span{color:#f4d58c}#map{border-radius:0;height:12px;border:1px solid #b1bddd}@media(max-width:760px){.inventory{width:220px;top:105px;max-height:calc(100% - 200px)}.slots{grid-template-columns:repeat(5,1fr)}.hotbar{grid-template-columns:repeat(10,minmax(24px,36px))}.controls{font-size:9px}.topbar{padding:6px}.topactions button{font-size:10px}.stats{width:145px}.slot .num{font-size:9px}}
/* 2.2: readable HUD, responsive inventory, chat and multitouch. */
:root{font-size:16px;font-family:'Segoe UI',Arial,sans-serif}button,input{font-size:16px}canvas{touch-action:none}.topbar{flex-wrap:wrap;gap:6px}.topactions{flex-wrap:wrap;gap:6px}.topactions button{font-size:16px;min-height:38px;padding:6px 10px}.brand{font-size:24px}.brand small,.eyebrow,.pill,#zoom{font-size:14px;letter-spacing:normal}.stats{width:215px;padding:9px}.stat{font-size:14px;grid-template-columns:55px 1fr 32px}.inventory{width:min(380px,96vw);top:70px;bottom:102px;max-height:none;padding:12px;overscroll-behavior:contain;z-index:3}.slots{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.slot .num,.slot .key{font-size:13px}.panelhead h2{font-size:22px}.hint,.muted,.controls{font-size:14px}.recipe{font-size:15px;min-height:42px;gap:8px}.recipe small{font-size:13px}.recipe b{max-width:50%}.selected,#toast{font-size:16px}.bottom{z-index:2;max-width:98vw;width:max-content}.hotbar{grid-template-columns:repeat(10,minmax(0,48px));width:min(520px,97vw)}.menubox{width:min(510px,95vw);max-height:97dvh;overflow:auto;margin:auto}.menubox label,.menubox .primary span,.menufine,.back,.subtle,#error{font-size:15px}.roomActions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.roomHead{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.roomHead button{font-size:14px;padding:5px 10px}#rooms{display:grid;gap:4px;max-height:110px;overflow:auto;margin-top:5px;font-size:15px}#rooms button{text-align:left;padding:6px 9px}#mineInfo{margin:0 auto 5px;background:#17243de8;padding:7px 12px;border:2px solid #9aaad0;width:min(310px,90vw);font-weight:bold}#mineInfo progress{display:block;width:100%;height:13px;accent-color:#f2d383;margin-top:5px}#chat{position:absolute;bottom:115px;left:12px;width:min(400px,94vw);max-height:45vh;padding:10px;background:#243451f5;border:3px solid #879ac2;box-shadow:3px 3px #131c30;pointer-events:auto;z-index:4;display:flex;flex-direction:column}#messages{min-height:60px;overflow:auto;overflow-wrap:anywhere;flex:1;max-height:24vh;font-size:16px;line-height:1.5}#messages p{margin:3px 0}#messages b{color:#f2d383}#chatForm{display:flex;gap:5px;margin-top:7px}#chatInput{width:100%;min-width:0;background:#17243e;border:1px solid #8596bb;padding:8px}#touch{position:absolute;left:10px;right:10px;bottom:83px;display:flex;justify-content:space-between;pointer-events:none;z-index:2}#touch button{touch-action:none;user-select:none;-webkit-user-select:none;min-width:55px;min-height:48px;padding:6px;background:#354a74dc;font-size:17px}.touchLeft,.touchRight{display:flex;gap:6px;align-items:end}.touchRight{flex-wrap:wrap;justify-content:end}.touchLeft{flex-wrap:wrap}#touchMode.placing{background:#795b30} @media(max-width:760px){.topbar{padding:6px;gap:4px}.brand{font-size:20px}.topactions{gap:3px}.topactions button{font-size:14px;padding:5px 8px;min-height:34px}.pill,.eyebrow,#zoom{font-size:12px}.stats{width:168px;padding:5px;margin:3px 6px;gap:3px}.stat{font-size:12px;grid-template-columns:44px 1fr 28px}.inventory{top:105px;bottom:82px;width:min(350px,95vw);right:5px;padding:9px}.slots{grid-template-columns:repeat(8,minmax(0,1fr))}.slot .key,.slot .num{font-size:11px}.hotbar{gap:2px;padding:3px}.controls{display:none}.selected,#toast{font-size:14px}.bottom{bottom:5px}.menubox{padding:14px}.menubox h1{font-size:42px}.menubox p{margin:4px 0 10px}.menubox label{margin:6px 0}.menubox .primary{padding:8px}.roomHead{margin-top:6px}#chat{bottom:142px;left:5px;max-height:50vh}#touch{bottom:80px;left:5px;right:5px}#touch button{min-width:44px;min-height:46px;font-size:15px}.touchLeft,.touchRight{max-width:48%}.recipe{font-size:14px}.recipe small{font-size:12px}}@media(pointer:coarse){.controls{display:none}.bottom{bottom:5px}#mineInfo{margin-bottom:58px}#toast{max-width:90vw;margin:auto}}@media(max-height:500px) and (pointer:coarse){.inventory{top:52px;bottom:68px}.stats{width:145px}.topbar .eyebrow{display:none}#chat{bottom:78px;max-height:60vh}.menubox{max-height:98dvh}}
