*{box-sizing:border-box}body{margin:0;background:#000;color:#fff;font:14px system-ui,sans-serif}#scene,canvas{position:fixed;inset:0;width:100%;height:100%;display:block}#menu{position:fixed;inset:0;background:linear-gradient(90deg,#000e,#0000 80%);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:7vw;gap:16px}h1{font-size:clamp(42px,8vw,100px);letter-spacing:-.06em;margin:0}small,#clock,#money{font-family:ui-monospace,monospace;letter-spacing:.08em}small{color:#999;font-size:10px}p{margin:0;color:#aaa}button{background:#101010;color:#fff;border:1px solid #333;border-radius:5px;padding:10px 14px;font:inherit;cursor:pointer;min-height:40px}button:hover,button:focus-visible{border-color:#fff}#wake{background:#fff;color:#000;min-width:170px}header,footer,aside{position:fixed;background:#080808ed;backdrop-filter:blur(12px);border:1px solid #262626;border-radius:8px;padding:12px}header{top:12px;left:12px;right:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}footer{bottom:12px;left:50%;transform:translateX(-50%);width:min(650px,calc(100% - 24px));display:grid;gap:9px}aside{right:12px;top:80px;width:min(300px,90vw);z-index:3;max-height:calc(100dvh - 245px);overflow:auto}[hidden]{display:none!important}h2{font-size:14px;margin:0}.stat{margin:14px 0;font:11px ui-monospace,monospace;color:#bbb}.stat span{float:right}.track{height:3px;background:#262626;margin-top:7px}.fill{height:100%;background:#eee}.line{display:flex;align-items:center;gap:8px}.line h2,.line #status{flex:1}#status{font-size:12px;color:#ccc}.actions{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.actions button{padding:9px 4px}#bubble{position:fixed;transform:translate(-50%,-100%);background:#fff;color:#111;padding:8px 12px;border-radius:9px;font-size:12px;max-width:220px;pointer-events:none;text-align:center;z-index:2}@media(max-width:520px){#menu{justify-content:flex-end;padding:24px 24px 12vh;background:linear-gradient(0deg,#000 0%,#0000 70%)}header{padding:8px;font-size:11px}header button{padding:6px 8px;font-size:11px}.actions{grid-template-columns:repeat(3,1fr)}aside{max-height:calc(100dvh - 280px)}}
#boot{position:fixed;inset:0;z-index:10;background:#000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;text-align:center}#boot-detail{max-width:480px;overflow-wrap:anywhere}button{background:#080808;color:#eee;border-color:#333}#wake{background:#fff;color:#000}#scene{z-index:0}#menu,header,footer{z-index:1}aside{z-index:3}

body{font-family:'IBM Plex Mono',monospace}h1{font-family:Doto,monospace;letter-spacing:.06em;font-weight:700}button{border-radius:8px;background:#151515;color:#eee}button:hover,button:focus-visible{border-color:#ff481c;color:#ff481c}#wake{background:#151515;color:#ff481c;border-color:#ff481c;text-transform:uppercase}#menu{gap:18px}.accent{color:#ff481c}.menu-buttons{display:flex;gap:8px}.modal{position:fixed;z-index:5;top:50%;left:50%;transform:translate(-50%,-50%);width:min(360px,90vw);background:#151515;border:1px solid #333;border-radius:12px;padding:24px;display:grid;gap:16px;box-shadow:0 0 0 100vmax #0009}select{background:#151515;color:white;padding:8px}.fill{background:#ff481c}#bubble{background:#151515;color:#eee;border:1px solid #ff481c}/* v0.1.4 game HUD */
#scene canvas{position:absolute;inset:0;touch-action:none}body.playing #scene{inset:64px 0 115px 142px;width:auto;height:auto}header{top:0;left:0;right:0;height:58px;border:0;border-bottom:1px solid #262626;border-radius:0;background:#080808;padding:8px 16px}#clock{flex:1;text-align:center}#money{color:#ff481c}header button{min-width:40px;padding:5px 10px;font-size:20px}#tablet{left:10px;right:auto;top:70px;width:122px;bottom:120px;max-height:none;padding:0;border:0;background:transparent;overflow:auto}.hudlabel{display:block;margin:4px 0 8px}.stat{margin:0;background:#131313;border:1px solid #222;border-radius:8px;padding:8px}.statname{font-size:10px;color:#aaa}.statvalue{display:flex;align-items:center;gap:6px}.statvalue svg{width:34px;height:34px;flex:none}.statvalue b{font-size:17px;color:#eee;font-weight:500}.critical{border-color:#ff481c}#stats{display:grid;gap:6px}footer{bottom:8px;width:min(650px,calc(100% - 160px));left:calc(50% + 65px);padding:8px 12px;background:#0b0b0b;border-radius:12px;gap:5px}.actions{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.actions button{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;padding:7px 2px;min-height:48px}.actions svg,#objectactions svg{width:22px;height:22px}.actions button.current{color:#ff481c;border-color:#ff481c}#pause,#speed{min-height:30px;padding:3px 10px}#status{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.build{font-size:9px}#objectmenu{position:fixed;z-index:4;bottom:130px;left:50%;transform:translateX(-50%);width:min(280px,90vw);background:#151515;border:1px solid #ff481c;border-radius:10px;padding:12px}#objectmenu strong{flex:1;font-size:12px}#objectactions{display:flex;gap:8px;margin-top:8px}#objectactions button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;text-transform:capitalize}#bubble{max-width:min(260px,85vw);z-index:3} @media(max-width:700px){header{height:52px;padding:5px 8px;gap:5px}header button{min-width:32px;font-size:16px;padding:4px 7px}#clock,#money{font-size:11px;letter-spacing:0}#tablet{top:58px;left:8px;right:8px;width:auto;bottom:auto;overflow:visible}.hudlabel{display:none}#stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.stat{padding:5px 7px}.statvalue svg{width:26px;height:26px}.statvalue b{font-size:15px}.statname{font-size:9px}body.playing #scene{inset:176px 0 116px 0}footer{left:50%;width:calc(100% - 16px);bottom:max(6px,env(safe-area-inset-bottom));padding:6px;gap:4px}.actions button{font-size:10px;min-height:44px}.actions svg{width:20px;height:20px}.build{font-size:8px}#objectmenu{bottom:120px}}@media(max-height:500px) and (min-width:701px){#tablet{bottom:90px}.stat{padding:3px}.statvalue svg{width:23px;height:23px}body.playing #scene{bottom:95px}}

/* IDEA CTRL inspired menu */
#menu{display:grid;grid-template-columns:60% 40%;grid-template-rows:52px 1fr 38px;padding:0 4vw;gap:0;background:none;pointer-events:none;font-family:system-ui,sans-serif;align-items:center}#menu>*{min-width:0}.menu-brand{grid-column:1/-1;font-size:12px;font-weight:700;letter-spacing:.12em}.menu-brand small{margin-left:10px}.menu-world{align-self:end;text-align:center;padding-bottom:22px}.menu-content{pointer-events:auto;width:min(100%,350px);justify-self:center;display:grid;gap:14px;padding:20px 0}.menu-content h1{font:600 clamp(36px,5vw,68px)/1.05 system-ui,sans-serif;letter-spacing:-.055em}.menu-content small,.menu-brand small,.menu-foot small,.menu-world small{font-family:system-ui,sans-serif;letter-spacing:.15em;font-size:10px}.life-info{border-top:1px solid #262626;border-bottom:1px solid #262626;padding:18px 0;display:grid;gap:8px}.life-info h2{font-size:23px}.life-metrics{display:flex;gap:40px;margin-top:10px}.life-metrics strong{display:block;font-size:19px;margin-top:5px}.menu-content button{border-radius:2px;text-align:left;letter-spacing:.12em;text-transform:uppercase;font-size:12px;min-height:44px}.menu-content button span{float:right}#menu #wake{background:#eee;color:#111;border:1px solid #eee;font-weight:700}#menu #wake:after{content:'→';float:right}#menu #newlife{background:#080808}.menu-buttons button{border:0;background:transparent;padding-left:0;color:#aaa}.menu-foot{grid-column:1/-1;display:flex;justify-content:space-between}.menu-content button:hover{border-color:#fff;color:#fff}#menu #wake:hover{background:#ccc;color:#111}body:not(.playing) #scene{inset:52px 40% 38px 0;width:auto;height:auto}#aboutpanel{font-family:system-ui,sans-serif} @media(max-width:700px){#menu{grid-template-columns:1fr;grid-template-rows:44px minmax(150px,1fr) auto 28px;padding:0 20px;overflow:auto;align-items:center}.menu-brand,.menu-foot{grid-column:1}.menu-world{padding-bottom:4px}.menu-content{width:100%;max-width:420px;padding:10px 0;gap:9px}.menu-content h1{font-size:38px}.life-info{padding:9px 0;gap:4px}.life-metrics{margin-top:4px}.menu-content button{min-height:40px}body:not(.playing) #scene{inset:44px 0 auto;height:calc(100dvh - 420px);min-height:150px;width:100%}}
#extras{position:fixed;z-index:30;right:12px;top:72px;width:min(340px,calc(100vw - 24px));max-height:65dvh;overflow:auto;background:#101010;border:1px solid #555;padding:14px;color:white;border-radius:8px;font-size:13px}#extras button{display:block;width:100%;margin:6px 0;padding:10px;background:#202020;color:white;border:1px solid #555;border-radius:4px}#extras .line button{width:auto}#extras button:disabled{opacity:.35}#extras .editbuttons{display:flex;gap:4px}#bubble{pointer-events:auto;cursor:pointer}#money{cursor:pointer}#hud{flex-wrap:wrap}
#loginGate,#accountPanel{z-index:100;max-height:85dvh;overflow:auto}#loginGate button,#accountPanel button{display:block;width:100%;margin:8px 0}#syncStatus,#loginStatus{overflow-wrap:anywhere;font-size:12px}#accountPanel[hidden],#loginGate[hidden]{display:none}
