:root{color-scheme:dark;--bg:#0c100d;--panel:#121914;--panel2:#18221b;--line:#26352a;--text:#eef5ef;--muted:#91a095;--green:#9cff57;--green2:#6bdc39}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,sans-serif}.app-shell{min-height:100vh;display:flex}.sidebar{width:236px;flex:none;background:#0e140f;border-right:1px solid var(--line);padding:25px 16px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;color:var(--text);font-weight:900;letter-spacing:1.6px;text-decoration:none;font-size:13px;margin:0 0 46px 7px}.brand small{display:block;color:var(--green);font-size:9px;letter-spacing:3px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--green);color:#11190e;font-size:22px;font-weight:950;box-shadow:0 0 25px #9cff5733}.side-label,.eyebrow{font-size:10px;letter-spacing:2px;color:#819084;font-weight:800}.side-label{padding:0 10px 12px}.nav-item{border:0;background:transparent;color:#aab7ac;padding:12px 13px;border-radius:9px;text-align:left;font:600 13px inherit;cursor:pointer;margin-bottom:4px}.nav-item span{display:inline-block;width:27px;color:#91a095;font-size:17px}.nav-item:hover,.nav-item.active{background:#1a281b;color:var(--green)}.nav-item.active span{color:var(--green)}.side-label-spaced{margin-top:28px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:17px 5px 0;color:#c2d0c4;font-size:12px}.sidebar-bottom small{display:block;color:#758278;margin:5px 0 0 16px}.status-dot,.pulse{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:8px;box-shadow:0 0 10px #9cff57}.main{min-width:0;flex:1}.topbar{height:68px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4.5%}.breadcrumb{color:#89968b;font-size:12px}.breadcrumb span{padding:0 9px;color:#536056}.breadcrumb b{color:#e4eee5}.top-actions{display:flex;align-items:center;gap:18px}.save-state{font-size:11px;color:#8fa095}.avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#243a23;color:var(--green);font-size:10px;font-weight:800}.page{max-width:1500px;margin:auto;padding:42px 4.5% 20px}.hidden{display:none!important}.hero{min-height:310px;border:1px solid #2c422e;border-radius:18px;background:radial-gradient(ellipse at 78% 48%,#284323 0,#152319 36%,#111813 72%);padding:42px 48px;display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative}.hero h1{font-size:clamp(36px,5vw,58px);line-height:1.02;letter-spacing:-2px;margin:17px 0}.hero h1 em{color:var(--green);font-style:normal}.hero p,.page-title p{max-width:450px;color:#9baa9e;line-height:1.7}.primary-btn,.secondary-btn{border-radius:8px;padding:11px 16px;font-weight:800;font-size:12px;cursor:pointer}.primary-btn{border:1px solid var(--green);background:var(--green);color:#11180e;box-shadow:0 5px 22px #9cff5720}.primary-btn:hover{background:#b4ff80}.secondary-btn{border:1px solid #354438;background:#172019;color:#dce9dd}.text-btn{border:0;background:none;color:var(--green);font-weight:700;cursor:pointer}.hero-art{width:40%;height:230px;position:relative;display:grid;place-items:center}.hero-cube{width:116px;height:116px;border:1px solid #c0ff83;border-radius:25px;display:grid;place-items:center;font-size:72px;font-weight:950;color:#baff8a;background:linear-gradient(145deg,#385b2d,#17271a);box-shadow:0 0 80px #8fff4b38;transform:rotate(-12deg);z-index:2}.orbit{position:absolute;border:1px solid #8fff4b44;border-radius:50%;width:240px;height:95px;transform:rotate(-28deg)}.orbit-b{transform:rotate(54deg);width:260px}.orb{position:absolute;border-radius:50%;filter:blur(1px);background:#a5ff5c}.orb-one{width:9px;height:9px;top:34px;right:65px}.orb-two{width:6px;height:6px;bottom:30px;left:38px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:38px 0 18px}.section-heading h2,.page-title h1{margin:5px 0 0;font-size:25px;letter-spacing:-.6px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.project-card{border:1px solid var(--line);background:var(--panel);border-radius:13px;overflow:hidden;cursor:pointer;transition:.2s}.project-card:hover{border-color:#658a4c;transform:translateY(-2px)}.project-art{height:116px;display:grid;place-items:center;background:radial-gradient(circle at 50% 50%,#38572c,#17251a 65%);font-size:43px;color:#b3ff7a}.project-card:nth-child(3n+2) .project-art{background:radial-gradient(circle,#3b3d68,#191b2c 70%)}.project-card:nth-child(3n+3) .project-art{background:radial-gradient(circle,#67412b,#2a1d17 70%)}.project-info{padding:14px 15px}.project-info b{font-size:13px}.project-info p{color:#89978c;font-size:11px;margin:5px 0 0}.empty-card{padding:24px;border:1px dashed #354438;border-radius:12px;color:#8b9a8e;grid-column:1/-1}.feature-strip{margin-top:24px;border:1px solid var(--line);background:#111812;border-radius:12px;padding:17px;display:flex;align-items:center;gap:14px}.feature-icon{width:37px;height:37px;border-radius:10px;background:#263b20;color:var(--green);display:grid;place-items:center;font-size:20px}.feature-strip p{color:#91a095;font-size:12px;margin:4px 0 0}.page-title{margin:15px 0 28px}.page-title h1{font-size:36px}.editor-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.editor-heading h1{font-size:26px;margin:5px 0}.editor-actions{display:flex;gap:9px}.editor-layout{display:grid;grid-template-columns:205px minmax(250px,1fr) 220px;gap:12px;min-height:510px}.editor-panel,.viewport-wrap{border:1px solid var(--line);border-radius:11px;background:var(--panel);overflow:hidden}.panel-heading,.viewport-toolbar,.viewport-footer{height:43px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:10px;letter-spacing:1.3px;font-weight:850;color:#aab8ac}.panel-heading button{border:0;background:#243522;color:var(--green);border-radius:5px;font-size:18px;cursor:pointer}.object-list{padding:8px}.object-row{padding:9px;border-radius:7px;color:#a9b6ab;font-size:12px;cursor:pointer;display:flex;justify-content:space-between}.object-row.selected,.object-row:hover{background:#233323;color:var(--green)}.tools-heading{border-top:1px solid var(--line);margin-top:8px}.object-tools{display:grid;gap:5px;padding:10px}.object-tools button{background:#19231b;border:1px solid #2b3a2e;color:#c4d0c5;text-align:left;border-radius:6px;padding:8px;cursor:pointer;font-size:11px}.object-tools button:hover{border-color:var(--green);color:var(--green)}.viewport-wrap{display:flex;flex-direction:column;min-width:0}.viewport-toolbar,.viewport-footer{height:37px;font-size:9px}.viewport{position:relative;flex:1;min-height:390px;overflow:hidden;background-color:#182b24;background-image:linear-gradient(#ffffff0a 1px,transparent 1px),linear-gradient(90deg,#ffffff0a 1px,transparent 1px);background-size:24px 24px}.scene-sky{position:absolute;inset:0 0 25%;background:linear-gradient(#1b3a36aa,#1d342c22)}.scene-ground{position:absolute;bottom:0;height:25%;width:100%;background:linear-gradient(#426b32,#203b20);border-top:4px solid #8dbb54}.scene-object{position:absolute;min-width:35px;min-height:35px;display:grid;place-items:center;font-size:24px;cursor:pointer;user-select:none;filter:drop-shadow(0 4px 4px #0008)}.scene-object.selected{outline:1px dashed var(--green);outline-offset:5px}.scene-object[data-kind="Platform"]{width:90px;height:17px;background:#8aa85a;border-radius:4px;border:2px solid #c2d88b}.scene-object[data-kind="Player"]{font-size:34px}.scene-object[data-kind="Coin"]{color:#ffe36b}.scene-object[data-kind="Enemy"]{color:#ff8174}.viewport-empty{position:absolute;inset:0;display:grid;place-items:center;color:#c1d1c4;font-size:12px;pointer-events:none}.viewport-footer{border-top:1px solid var(--line);border-bottom:0;color:#77877a}.inspector-content{padding:13px}.muted{color:#839186;font-size:12px}.field{margin-bottom:14px}.field label{display:block;color:#9eaca0;font-size:10px;margin-bottom:6px}.field input{width:100%;accent-color:var(--green)}.field output{float:right;color:var(--green)}footer{border-top:1px solid var(--line);padding:17px 4.5%;font-size:9px;letter-spacing:1.5px;color:#718074;display:flex;justify-content:space-between}dialog{background:#141d16;color:var(--text);border:1px solid #40543d;border-radius:14px;padding:26px;width:min(420px,calc(100% - 30px));box-shadow:0 20px 90px #000b}dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}dialog h2{margin:8px 0 20px}dialog label{display:block;color:#aab8ac;font-size:11px;margin:13px 0 6px}dialog input,dialog select{width:100%;background:#0c120e;color:#eff7ef;border:1px solid #354438;border-radius:7px;padding:11px}.dialog-actions{display:flex;justify-content:end;gap:9px;margin-top:22px}@media(max-width:900px){.sidebar{width:190px}.editor-layout{grid-template-columns:170px minmax(220px,1fr)}.inspector{grid-column:1/-1}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.sidebar{width:58px;padding:18px 7px}.brand{margin:0 auto 35px}.brand>span:last-child,.side-label,.nav-item:not(.active),.nav-item{font-size:0}.nav-item{width:42px;height:42px;padding:8px}.nav-item span{font-size:18px}.sidebar-bottom{font-size:0}.sidebar-bottom small{display:none}.topbar{padding:0 15px}.page{padding:24px 15px}.hero{padding:28px 23px;min-height:290px}.hero-art{position:absolute;right:-50px;opacity:.38}.hero>div:first-child{position:relative;z-index:3}.project-grid{grid-template-columns:1fr}.editor-layout{grid-template-columns:1fr}.editor-panel{min-height:120px}.viewport{min-height:330px}.inspector{grid-column:auto}.editor-heading{align-items:flex-start;gap:10px;flex-direction:column}.editor-actions{width:100%}.editor-actions button{flex:1}.save-state{display:none}}
#runtime-hud{position:absolute;z-index:8;top:10px;left:10px;right:10px;display:flex;align-items:center;gap:14px;min-height:42px;padding:7px 10px;border:1px solid #9cff5766;border-radius:9px;background:#0b130ee8;color:#dff4dc;font-size:10px;letter-spacing:.5px;pointer-events:none;backdrop-filter:blur(8px)}#runtime-hud strong{color:var(--green);font-size:11px}.runtime-hint{color:#a8b8aa}.runtime-touch{margin-left:auto;display:flex;gap:6px;pointer-events:auto}.runtime-touch button{min-width:34px;height:29px;padding:0 9px;border:1px solid #557348;border-radius:6px;background:#20321e;color:#dfffcc;font-size:10px;font-weight:800;touch-action:none}.runtime-touch button:active{background:var(--green);color:#111}.viewport.playing .scene-object{pointer-events:none;transition:none}.viewport.playing{touch-action:pan-y}@media(max-width:650px){#runtime-hud{left:6px;right:6px;top:6px;gap:8px;padding:6px;font-size:9px}.runtime-hint{display:none}.runtime-touch button{height:34px;min-width:39px}}

#scene-objects{position:absolute;inset:0 auto 0 0;min-width:100%;transform-origin:top left;will-change:transform}.viewport.playing #scene-objects{pointer-events:none}.viewport.playing .scene-ground{width:100%;position:absolute;left:0}.viewport.playing .scene-sky{width:100%;position:absolute;left:0}

#runtime-game-over{position:absolute;z-index:12;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#071009df;color:#f2f8ef;text-align:center;backdrop-filter:blur(5px)}#runtime-game-over strong{font-size:clamp(24px,5vw,42px);letter-spacing:3px;color:#ff7777}#runtime-game-over span{font-size:12px;color:#c1cdbf}#runtime-game-over button,#runtime-touch-restart{border:1px solid #9ce85d;border-radius:7px;background:#a5f34d;color:#10200b;padding:9px 14px;font-size:10px;font-weight:900;cursor:pointer;pointer-events:auto}#runtime-hud #runtime-restart{border:1px solid #557348;border-radius:6px;background:#263d2a;color:#dfffcc;padding:0 9px;font-size:9px;font-weight:800;min-height:29px;pointer-events:auto}

.account-btn{border:1px solid #48613e;background:#1b2a1b;color:var(--green);border-radius:8px;padding:8px 13px;font-weight:800;font-size:11px;cursor:pointer}.account-btn:hover{border-color:var(--green)}
.auth-dialog{width:min(440px,calc(100% - 28px));padding:30px;background:#121a14;border:1px solid #40543d;border-radius:16px;color:var(--text);box-shadow:0 25px 100px #000d}.auth-dialog::backdrop{background:#000c;backdrop-filter:blur(5px)}.auth-dialog form{position:relative}.auth-close{position:absolute;right:0;top:0;border:0;background:transparent;color:#aab8ac;font-size:27px;cursor:pointer}.auth-dialog h2{font-size:27px;margin:9px 0 4px}.auth-copy,.auth-note{font-size:12px;color:#91a095;line-height:1.6}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:22px 0 17px}.auth-tab{padding:10px;border:1px solid #354438;background:#172019;color:#aab8ac;border-radius:7px;font-weight:800;cursor:pointer}.auth-tab.active{border-color:#9cff57;color:#aaff6a;background:#22331f}.auth-dialog .field{margin:12px 0}.auth-dialog .field label{display:block;font-size:10px;letter-spacing:1px;color:#9eaca0;margin-bottom:6px}.auth-dialog .field input{width:100%;padding:12px;border:1px solid #354438;border-radius:7px;background:#0b120d;color:#f1f7f0;outline:none}.auth-dialog .field input:focus{border-color:var(--green)}.auth-submit{width:100%;margin-top:6px}.auth-error{min-height:18px;color:#ff8d8d;font-size:12px;margin:8px 0}.auth-note{font-size:10px;margin:15px 0 0}.auth-dialog [hidden]{display:none!important}

.scene-object[data-kind="Hazard"]{color:#ff756b;font-size:30px}.scene-object[data-kind="Decoration"]{filter:saturate(.75);opacity:.9}.inspector-content select{width:100%;padding:8px;border:1px solid #354438;border-radius:7px;background:#101811;color:#eaf3e9;font-size:11px}.inspector-content select:focus{outline:1px solid var(--green)}

.event-editor{border:1px solid #344733;border-radius:8px;padding:11px;margin:14px 0;background:#111a13}.event-editor-title{font-size:10px;font-weight:900;letter-spacing:1.2px;color:var(--green);margin-bottom:12px}.event-editor .field{margin-bottom:10px}.event-editor input,.event-editor select{width:100%;padding:8px;border:1px solid #354438;border-radius:7px;background:#101811;color:#eaf3e9;font-size:11px}.event-editor p{font-size:10px;line-height:1.5}

/* Resizable scene object controls */
.inspector-content input[type="range"]{accent-color:var(--green);cursor:ew-resize}.scene-object[data-kind="Platform"]{min-width:0;min-height:0;padding:0}.scene-object{overflow:visible}
