:root{--mobot-width:400px}.mobot-launcher{right:max(1rem, env(safe-area-inset-right));bottom:max(1rem, env(safe-area-inset-bottom));z-index:15;border:2px solid var(--line);background:var(--surface);width:68px;height:68px;box-shadow:var(--shadow-sm);cursor:pointer;border-radius:50%;place-items:center;padding:0;transition:transform .12s;display:grid;position:fixed}html.game-playing .mobot-launcher{display:none}.mobot-launcher:hover{transform:translateY(-2px)rotate(-4deg)}.mobot-panel{z-index:30;background:var(--bg);color:var(--ink);flex-direction:column;display:flex;position:fixed;inset:0}.mobot-panel[hidden]{display:none}@media (width>=64rem){.mobot-panel{width:var(--mobot-width);border-left:2px solid var(--line);inset:0 0 0 auto}html.mobot-open body{margin-right:var(--mobot-width)}}@media (width<=63.999rem){html.mobot-open{overflow:hidden}}.mobot-head{border-bottom:2px solid var(--line);background:var(--surface);align-items:center;gap:.6rem;padding:.7rem .9rem;display:flex}.mobot-head div{margin-right:auto;line-height:1.2;display:grid}.mobot-head .pixel{color:var(--ink-soft);font-size:.625rem}.mobot-icon{border:2px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;cursor:pointer;border-radius:8px;padding:.3rem .6rem;font-size:.8125rem;font-weight:600}.mobot-icon:disabled{opacity:.4;cursor:default}.mobot-log{overscroll-behavior:contain;flex-direction:column;flex:1;gap:.7rem;padding:1rem .9rem;display:flex;overflow-y:auto}.mobot-msg{border:2px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:14px;max-width:88%;margin:0;padding:.6rem .8rem;font-size:.975rem;line-height:1.5}.mobot-assistant{background:var(--surface);border-bottom-left-radius:4px;align-self:flex-start}.mobot-user{background:var(--accent);color:var(--accent-ink);border-bottom-right-radius:4px;align-self:flex-end}.mobot-sources{border-top:1.5px dashed var(--ink-soft);margin:.5rem 0 0;padding:.5rem 0 0 1.1rem;font-size:.8125rem}.mobot-status{color:var(--ink-soft);margin:0;animation:1.2s ease-in-out infinite mobot-pulse}@keyframes mobot-pulse{50%{opacity:.4}}.mobot-starters{flex-wrap:wrap;gap:.4rem;margin-top:.25rem;display:flex}.mobot-starters button{border:2px solid var(--line);background:var(--sun);color:#1b1b2f;font:inherit;cursor:pointer;border-radius:999px;padding:.35rem .7rem;font-size:.875rem;font-weight:600}.mobot-form{padding:.8rem .9rem max(.8rem, env(safe-area-inset-bottom));border-top:2px solid var(--line);background:var(--surface);gap:.5rem;display:grid}.mobot-form textarea{border:2px solid var(--line);background:var(--bg);width:100%;color:var(--ink);font:inherit;resize:none;border-radius:10px;padding:.6rem .7rem}.mobot-form-row{color:var(--ink-soft);justify-content:space-between;align-items:center;display:flex}.mobot-fineprint{color:var(--ink-soft);margin:0;font-size:.75rem}.mobot-log[hidden],.mobot-form[hidden]{display:none}.build-intro{align-items:flex-start}.build-intro img{align-self:center}.build-consent{color:var(--ink-soft);margin:0;font-size:.875rem}.build-problem{color:#c4262b;margin:0;font-weight:600}.build-progress{border-bottom:2px solid var(--line);background:var(--surface)}.build-progress div{background:var(--sun);height:6px;transition:width .3s}.build-progress span{color:var(--ink-soft);padding:.3rem .9rem;font-size:.625rem;display:block}.build-ready{border:2px dashed var(--line);border-radius:10px;margin:0;padding:.6rem .8rem;font-size:.9rem}.build-turn{flex-direction:column;gap:.5rem;display:flex}.build-turn-user{align-items:flex-end}.wf{border:2px solid var(--line);background:var(--surface);border-radius:12px;align-self:flex-start;width:min(100%,300px);margin:0;padding:.5rem}.wf svg{width:100%;height:auto;display:block}.wf figcaption{color:var(--ink-soft);margin-top:.35rem;font-size:.625rem}.wf-screen{fill:var(--bg);stroke:var(--line);stroke-width:1.5px}.wf-box{fill:var(--surface);stroke:var(--ink-soft);stroke-width:1.2px;stroke-dasharray:4 3}.wf-dark{fill:var(--ink-soft)}.wf-button{fill:var(--accent)}.wf-cross{stroke:var(--ink-soft);stroke-width:1px;opacity:.5}.wf-label-bg{fill:var(--surface)}.wf-label{fill:var(--ink);font:600 10px var(--font-body)}.wf-on-dark,.wf-button+.wf-label{fill:#fff}.swatches{border:2px solid var(--line);background:var(--surface);border-radius:12px;align-self:stretch;padding:.6rem}.swatches p{margin:0 0 .5rem;font-size:.625rem}.swatches div{grid-template-columns:repeat(auto-fill,minmax(5.5rem,1fr));gap:.4rem;display:grid}.swatches button{border:2px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;text-align:left;cursor:pointer;border-radius:10px;gap:.15rem;padding:.35rem;font-size:.8125rem;display:grid}.swatches button:disabled{cursor:default;opacity:.6}.swatches .chip{border:1.5px solid var(--line);border-radius:6px;height:2rem}.swatches .hex{color:var(--ink-soft);font-size:.6875rem}.prompt-card{border:2px dashed var(--line);background:var(--surface);border-radius:12px;align-self:stretch;padding:.6rem .8rem}.prompt-card p{margin:0 0 .4rem}.prompt-card .pixel{color:var(--ink-soft);font-size:.625rem}.prompt-text{font-size:.9rem}.prompt-hint{color:var(--ink-soft);font-size:.8125rem}.build-tools{gap:.4rem;display:flex}.build-file{border:2px solid var(--line);background:var(--surface);overflow-wrap:anywhere;border-radius:10px;align-self:flex-end;max-width:88%;padding:.45rem .7rem;font-size:.875rem}.build-file .pixel{color:var(--ink-soft);margin-right:.3rem;font-size:.625rem}.build-ready{justify-items:start;gap:.6rem;display:grid}.build-ready p{margin:0}.spec{border:2px solid var(--line);background:var(--surface);border-radius:12px;padding:.8rem .9rem;font-size:.9375rem;line-height:1.55}.spec h3{margin:1rem 0 .35rem;font-size:1.05rem}.spec h3:first-child{margin-top:0}.spec h4{margin:.7rem 0 .25rem;font-size:.95rem}.spec p,.spec ul,.spec ol{margin:0 0 .5rem}.spec ul,.spec ol{padding-left:1.2rem}.build-spec-actions form{gap:.5rem;display:grid}
