:root{color-scheme:dark;--bg:#10111c;--panel:#191b29;--surface:#202333;--text:#f4f5ff;--muted:#a6aec4;--line:#36394b;--accent:#b8ff62;--onaccent:#15210d;--purple:#8e72ff;--shadow:0 18px 50px #0005}html[data-theme=light]{color-scheme:light;--bg:#f2f1f8;--panel:#fff;--surface:#eae8f4;--text:#202035;--muted:#55576a;--line:#cdcadb;--accent:#4c267e;--onaccent:#fff;--purple:#6d43dc;--shadow:0 18px 45px #34256320}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 15% 0%,#7252d71b,transparent 42%),var(--bg);color:var(--text);font:15px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,a,input{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,a:focus-visible{outline:3px solid var(--purple);outline-offset:4px}button[hidden],[hidden]{display:none!important}header,main,footer{max-width:1250px;margin:auto;padding-inline:32px}header{display:flex;justify-content:space-between;align-items:center;min-height:86px;border-bottom:1px solid var(--line);gap:15px}.brand{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:850;letter-spacing:.08em;line-height:1.25}.brand small{display:block;font:10px/1.8 ui-monospace,monospace;color:var(--muted);letter-spacing:.03em}.brandmark{font-size:25px;letter-spacing:-.12em;border:1px solid var(--line);padding:8px 12px 8px 8px;border-radius:9px}.brandmark span{color:var(--accent)}nav{display:flex;align-items:center;gap:20px;font-size:13px}nav button,.secondary,.text-button{background:transparent;color:var(--text);border:1px solid var(--line);border-radius:8px;padding:9px 13px}.intro{display:flex;justify-content:space-between;align-items:end;padding:48px 0 28px;gap:20px}.eyebrow{font:700 11px/1.5 ui-monospace,monospace;letter-spacing:.14em;color:var(--muted);margin:0 0 12px}.dot,.led{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--accent);margin-right:7px}.intro h1{font-size:clamp(64px,11vw,126px);letter-spacing:-.09em;line-height:.85;margin:0 0 17px;font-weight:950}.intro h1 span{color:var(--accent)}.lead{font-size:clamp(18px,3vw,26px);font-weight:650;margin:0}.subtitle{margin:4px 0;color:var(--muted)}.release{border-left:1px solid var(--line);padding:8px 0 8px 23px;min-width:190px;display:grid;font:11px/1.5 ui-monospace,monospace;color:var(--muted)}.release strong{font:800 24px/1.7 system-ui;color:var(--text)}.layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:22px;align-items:start}.console{border:1px solid #a392f2;border-radius:28px 28px 55px 28px;background:linear-gradient(150deg,#b1a1fb,#795cc9 42%,#553b98);padding:20px 24px 18px;box-shadow:var(--shadow),inset 0 2px 1px #ffffff65;color:#17122f;min-width:0}.console-head,.console-foot,.screen-footer,.panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font:800 11px/1.5 ui-monospace,monospace;letter-spacing:.08em}.console-head{margin-bottom:13px}.console-head b{color:#211442}.led{background:#522b53;box-shadow:inset 0 1px 3px #1e163c;margin-right:5px}.led.on{background:#a9ff74;box-shadow:0 0 10px #a9ff74}.screen-shell{background:#171921;border-radius:15px 15px 32px 15px;padding:15px 15px 10px;border:2px solid #3c2b70;box-shadow:inset 0 3px 10px #0008}.screen{position:relative;aspect-ratio:10/9;background:#101a19;border:1px solid #43594f;overflow:hidden;isolation:isolate;border-radius:3px;min-width:0}.screen.playing{aspect-ratio:auto;height:clamp(320px,48vw,620px)}#game{width:100%;height:100%;position:absolute;inset:0}#game canvas{image-rendering:pixelated}.boot{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;text-align:center;background:repeating-linear-gradient(0deg,#ffffff04 0 1px,transparent 1px 4px),radial-gradient(ellipse,#263b30,#121c19 72%);color:#a8cfaa;padding:16px;pointer-events:none}.pixel{width:76px;height:76px;margin-bottom:12px;filter:drop-shadow(0 0 13px #abff5240)}.boot-title{font:800 clamp(12px,2vw,19px) ui-monospace,monospace;letter-spacing:.1em;color:#c7ff83;margin:0}.boot p:last-child{font-size:13px;margin:8px 0 0}.screen-footer{color:#acb2c2;margin-top:9px;font-size:10px}.rainbow{display:flex;gap:3px}.rainbow i{width:8px;height:8px;border-radius:50%;background:#d87efc}.rainbow i:nth-child(2){background:#748eff}.rainbow i:nth-child(3){background:#a4f66b}.rainbow i:nth-child(4){background:#ffcd65}.rainbow i:nth-child(5){background:#ff7889}.console-foot{margin-top:17px;font-size:10px}.speaker{width:53px;height:19px;background:repeating-linear-gradient(110deg,#352465 0 3px,transparent 3px 8px);transform:skew(-12deg);border-radius:4px}.panel,.details article{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:23px;min-width:0}.panel-head .eyebrow{margin:0}.tag{color:var(--accent);border:1px solid var(--line);padding:3px 8px;border-radius:4px;font-size:10px}.panel h2{font-size:23px;line-height:1.2;margin:20px 0 5px;overflow-wrap:anywhere}.muted,.tiny{color:var(--muted);margin:5px 0 14px}.tiny{font-size:12px;line-height:1.55}.drop{width:100%;border:1px dashed var(--purple);background:var(--surface);color:var(--text);border-radius:11px;display:grid;justify-items:center;gap:2px;padding:22px 10px;margin:20px 0 12px}.drop small{color:var(--muted);font-size:12px}.upload{font-size:27px;line-height:1.2;color:var(--purple)}.drop.drag{outline:3px solid var(--purple)}.primary,.secondary{width:100%;display:flex;justify-content:center;align-items:center;gap:12px;padding:12px 10px;margin-top:9px;font-weight:750}.primary{color:var(--onaccent);background:var(--accent);border:0;border-radius:9px}.secondary:hover,nav button:hover{background:var(--surface)}.status{font-size:12px;min-height:36px;padding:10px 0;color:var(--muted);overflow-wrap:anywhere}.status.error{color:var(--text);border-left:3px solid #f66b74;padding-left:9px}.divider{border-top:1px solid var(--line);margin:10px 0 18px}.text-button{padding:3px 8px;font-size:11px}.details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:25px 0 36px}.details h2{font-size:20px;margin:0}.details p:not(.eyebrow){color:var(--muted)}.keys{font-size:12px;margin:10px 0}.keys div{display:flex;justify-content:space-between;gap:6px;border-bottom:1px solid var(--line);padding:7px 0}.keys dd{margin:0;white-space:nowrap}kbd{font:11px ui-monospace,monospace;border:1px solid var(--line);border-bottom-width:2px;border-radius:4px;padding:3px 5px;background:var(--surface);color:var(--text)}.inline{text-decoration:underline;text-underline-offset:4px;color:var(--accent)}footer{display:flex;justify-content:space-between;gap:15px;padding-block:22px;border-top:1px solid var(--line);font:10px ui-monospace,monospace;color:var(--muted)}@media(max-width:850px){.layout{grid-template-columns:1fr}.details{grid-template-columns:1fr}.screen{max-height:510px}.screen.playing{max-height:none;height:clamp(400px,80vw,650px)}}@media(max-width:520px){header,main,footer{padding-inline:15px}header{min-height:70px}nav a{display:none}.brand small{display:none}.brand{font-size:11px}.intro{padding:35px 0 22px}.release{display:none}.console{padding:13px 12px}.screen-shell{padding:10px 10px 7px}.console-foot{font-size:8px}.panel{padding:19px}.screen.playing{height:clamp(360px,110vw,500px)}footer{font-size:9px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}
/* GAMEKID v0.2 — compact play-first interface */
:root{--shell-hi:#b1a1fb;--shell-mid:#8c73dc;--shell-low:#694aa9;--shell-edge:#b7a5ff;--shell-ink:#20163c;--shell-shadow:#44316d}html[data-skin=kiwi]{--shell-hi:#d4f399;--shell-mid:#a5d05b;--shell-low:#77a63c;--shell-edge:#d7f4a8;--shell-ink:#243b13;--shell-shadow:#4a682a}html[data-skin=berry]{--shell-hi:#f6a7c6;--shell-mid:#da709e;--shell-low:#b65081;--shell-edge:#f9b6d0;--shell-ink:#4d1834;--shell-shadow:#80395e}html[data-skin=ice]{--shell-hi:#b6e9f7;--shell-mid:#7fbcd8;--shell-low:#5493b4;--shell-edge:#c8f4ff;--shell-ink:#153e54;--shell-shadow:#315e74}header,main,footer{max-width:1180px}header{min-height:70px}.intro{padding:33px 0 24px}.intro h1{font-size:clamp(54px,8vw,98px);letter-spacing:-.085em;margin-bottom:12px}.lead{font-size:clamp(17px,2.2vw,22px)}.subtitle{font-size:14px}.workspace-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px;padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.workspace-title,.workspace-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.workspace-title{font-size:13px}.workspace-version{font:10px ui-monospace,monospace;color:var(--muted)}.indicator{width:8px;height:8px;border-radius:50%;background:var(--accent)}.workspace-actions button{font-size:12px;font-weight:700;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);padding:8px 12px}.workspace-actions button[aria-pressed=true]{background:var(--accent);color:var(--onaccent)}.layout{grid-template-columns:minmax(0,1.62fr) minmax(285px,1fr);gap:16px}.console{background:linear-gradient(145deg,var(--shell-hi),var(--shell-mid) 45%,var(--shell-low));border-color:var(--shell-edge);color:var(--shell-ink);padding:16px 20px 15px;position:relative}.console-head b,.console-head{color:var(--shell-ink)}.hardware-brand{font-size:15px;letter-spacing:-.03em;font-style:italic}.hardware-brand b{font-size:11px;letter-spacing:.1em}.screen-shell{border-color:var(--shell-shadow);padding:13px 13px 10px}.screen{aspect-ratio:10/9;max-height:520px}.screen.playing{height:clamp(340px,40vw,540px);max-height:none}.boot{pointer-events:auto}.boot-action{margin:20px auto 0;background:#b8ff62;color:#192511;font-weight:800;border:0;border-radius:7px;padding:10px 16px;min-height:42px}.boot-action:hover{background:#d1ffa0}.hardware-trim{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 11px 9px;min-height:75px;user-select:none}.dpad{position:relative;width:78px;height:78px;flex:none;filter:drop-shadow(0 3px 1px #0005)}.dpad:before,.dpad:after{content:"";position:absolute;background:#24232d;border:2px solid #1b1b24;border-radius:5px}.dpad:before{width:27px;height:78px;left:25px}.dpad:after{width:78px;height:27px;top:25px}.dpad i{position:absolute;z-index:1;width:14px;height:14px;border:2px solid #555561;top:32px;left:32px;border-radius:50%}.face-keys{display:flex;gap:12px;transform:rotate(-18deg)}.face-keys span{display:grid;place-items:center;background:#282533;color:#e9e8f4;border-radius:50%;width:43px;height:43px;font:bold 15px ui-monospace,monospace;box-shadow:0 4px 0 #151420,0 6px 8px #0004}.system-keys{text-align:center;color:var(--shell-ink);align-self:end}.system-keys span{display:inline-block;background:#433c50;width:31px;height:8px;border-radius:8px;margin:0 4px;box-shadow:0 2px 0 #211b31;transform:rotate(-16deg)}.system-keys small{display:block;font:700 8px ui-monospace,monospace;margin-top:9px}.console-foot{margin-top:12px;opacity:1}.speaker{background:repeating-linear-gradient(110deg,var(--shell-shadow) 0 3px,transparent 3px 8px)}.sidebar{display:grid;gap:12px;min-width:0}.panel{padding:18px}.panel h2{margin-top:13px;font-size:21px}.drop{margin:13px 0 8px;padding:14px 9px}.remember{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted);padding:4px 0}.remember input{accent-color:var(--purple);width:17px;height:17px;flex:none}.status{padding-bottom:0;min-height:26px}.library{display:grid;gap:7px;margin:10px 0;max-height:250px;overflow:auto}.library-entry{display:flex;gap:7px;align-items:center;min-width:0}.library-open,.library-remove{background:var(--surface);border:1px solid var(--line);color:var(--text);border-radius:7px;padding:8px;min-height:40px}.library-open{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere}.library-open small{display:block;color:var(--muted);font-size:10px}.library-remove{flex:none;font-size:12px}.library-panel .tiny{margin:8px 0}.library-panel .divider{margin:13px 0}.library-panel #recent{margin-bottom:0;overflow-wrap:anywhere}.skins{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:13px}.skins button{display:grid;justify-items:center;gap:5px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);padding:8px 3px;font-size:11px}.skins button[aria-pressed=true]{outline:2px solid var(--purple);outline-offset:1px}.skins i{width:19px;height:19px;border-radius:50%;background:#a48bf3;border:1px solid #0003}.skins [data-skin=kiwi] i{background:#a5d05b}.skins [data-skin=berry] i{background:#da709e}.skins [data-skin=ice] i{background:#7fbcd8}.skip{position:fixed;top:10px;left:10px;z-index:99999;background:var(--panel);color:var(--text);padding:10px;transform:translateY(-200%)}.skip:focus{transform:none}.focus-mode .intro,.focus-mode .sidebar,.focus-mode .details{display:none}.focus-mode main{padding-top:15px}.focus-mode .layout{grid-template-columns:minmax(0,1fr);max-width:820px;margin:auto}.focus-mode .workspace-bar{max-width:820px;margin-inline:auto}.focus-mode .screen.playing{height:min(70vh,720px)}.console:fullscreen{width:100%;height:100%;border-radius:0;padding:12px;background:#101119;display:flex;flex-direction:column;justify-content:center;color:#cbd0e2}.console:fullscreen .console-head{color:#cbd0e2}.console:fullscreen .hardware-brand b{color:#cbd0e2}.console:fullscreen .screen-shell{margin:auto;width:min(100%,950px);display:flex;flex-direction:column;min-height:0}.console:fullscreen .screen{height:min(80vh,800px);max-height:none;aspect-ratio:auto}.console:fullscreen .hardware-trim,.console:fullscreen .console-foot{display:none}.console:fullscreen .screen-footer{color:#cbd0e2}
@media(max-width:850px){.layout{grid-template-columns:1fr}.sidebar{grid-template-columns:1fr 1fr}.skin-panel{grid-column:1/-1}.screen{max-height:480px}.screen.playing{height:clamp(370px,72vw,620px)}}@media(max-width:560px){.intro{padding:24px 0 20px}.intro h1{font-size:clamp(48px,13vw,72px)}.workspace-title{width:100%}.workspace-bar{flex-wrap:wrap;gap:8px}.workspace-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.workspace-actions button{padding:9px 2px;min-height:42px;font-size:11px}.sidebar{grid-template-columns:1fr}.skin-panel{grid-column:auto}.console{padding:12px}.screen-shell{padding:9px 9px 7px}.hardware-trim{min-height:56px;margin:13px 4px 6px}.dpad{transform:scale(.75);transform-origin:left center;width:65px;height:78px}.face-keys span{width:35px;height:35px}.face-keys{gap:8px}.system-keys span{width:24px;margin:0 2px}.screen.playing{height:clamp(365px,110vw,500px)}.boot .pixel{width:54px;height:54px}.boot-action{margin-top:12px}.boot-title{font-size:13px}.console-foot{font-size:8px}.focus-mode .screen.playing{height:70dvh}}

.intro h1{letter-spacing:-.055em}.fullscreen-exit{display:none}.console:fullscreen .fullscreen-exit{display:block;background:#202333;color:#f4f5ff;border:1px solid #666a7d;border-radius:7px;padding:9px 12px;min-height:40px;font-size:12px}.boot-message{font-size:13px;margin:8px 0 0}.focus-mode .screen:not(.playing){max-height:min(65vh,540px)}
