.container:has(.game-page){width:100%;max-width:1360px;border-right:0}.game-page{font:16px/1.5 var(--font-interface);color:var(--foreground);container-type:inline-size}.game-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:12px 0 20px}.game-heading h1{font-size:28px;margin:0}.game-heading span,.game-scene-status{font:12px/1.5 var(--font-mono)}.game-toolbar,.game-modes,.game-actions,.game-preferences{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.game-toolbar{grid-column:1/-1;min-width:0}.game-actions{margin-left:8px}.game-page button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:40px;min-height:40px;padding:8px 12px;border:1px solid #000;border-radius:0;font:14px/1.2 var(--font-interface);color:#000;background:var(--background);touch-action:none;transition:none}.game-page button:hover:not(:disabled),.game-page button[aria-pressed=true]{background:#000;color:#fefffa}.game-page button:disabled{opacity:.4;cursor:default}.game-page button:focus-visible,.game-scene:focus-visible{outline:2px solid #000;outline-offset:3px}.game-page svg{width:18px;height:18px;flex-shrink:0}.game-toolbar>output{margin-left:auto;font-size:13px}.game-preferences{margin-left:auto;font-size:12px}.game-preference{display:flex;align-items:center;gap:8px;min-width:0}.game-preferences select{min-height:40px;max-width:150px;border:1px solid #999;border-radius:0;background:var(--background);color:var(--foreground);padding:6px;font:13px var(--font-interface)}#game-fps{width:160px;max-width:100%}.game-stage{display:grid;grid-template-columns:minmax(0,1fr);gap:16px 20px}.game-stage[data-agent=true]{grid-template-columns:minmax(0,1fr)minmax(300px,360px);grid-template-rows:auto minmax(0,1fr);height:clamp(440px,calc((100cqw - 380px) * .5625 + 56px),calc(100dvh - 210px))}.game-stage[data-agent=true] .game-scene{height:100%;aspect-ratio:auto}.game-scene{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#d4e7eb;touch-action:none}.game-scene canvas{display:block;width:100%;height:100%}.game-scene iframe{display:block;width:100%;height:100%;border:0}#game-join{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.game-stage:fullscreen,.game-stage[data-agent=true]:fullscreen{width:100vw;height:100dvh;box-sizing:border-box;padding:16px;margin:0;background:var(--background);grid-template-rows:auto minmax(0,1fr)}.game-stage:fullscreen .game-scene{height:100%;min-height:0;aspect-ratio:auto}#game-crosshair{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);color:#fff;font:28px/1 var(--font-mono);text-shadow:0 1px 3px #000;pointer-events:none}.game-scene-status{position:absolute;inset:12px 16px auto;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;color:#fff;pointer-events:none}.game-scene:not([data-world-ready=true]) .game-scene-status{display:none}.game-scene-status span,.game-scene-status output{min-width:0;overflow-wrap:anywhere}.game-scene-status span:not(:empty),.game-scene-status output:not([hidden]){background:rgb(0 0 0/75%);padding:2px 6px}.game-loading{position:absolute;inset:12px auto auto 16px;display:flex;align-items:center;justify-content:flex-start;gap:8px;color:#fff;font:12px var(--font-interface);text-shadow:0 1px 3px #000;pointer-events:none;z-index:2}.game-loading span{padding:3px 7px;background:rgb(0 0 0/72%)}.game-scene[data-world-ready=true] .game-loading{display:none!important}.game-loading svg{animation:game-loading-spin 1.2s linear infinite}@keyframes game-loading-spin{to{transform:rotate(360deg)}}.game-touch{position:absolute;inset:auto 16px 16px;display:flex;justify-content:space-between;gap:16px}.game-dpad{display:grid;grid-template-columns:repeat(3,42px);grid-template-rows:repeat(2,42px);gap:4px}.game-dpad [data-move=forward]{grid-column:2}.game-dpad [data-move=left]{grid-column:1;grid-row:2}.game-dpad [data-move=back]{grid-column:2;grid-row:2}.game-dpad [data-move=right]{grid-column:3;grid-row:2}.game-touch-actions{display:flex;gap:4px;align-items:flex-end}.game-touch button{padding:8px;min-width:42px;min-height:42px;background:rgb(254 255 250/.9)}.game-agent{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0;padding:0 0 0 20px;border-left:1px solid #ddd;overflow:hidden}.game-agent-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font:14px var(--font-mono);flex-shrink:0}.game-agent-heading button{width:36px;height:36px;min-height:36px;min-width:36px;padding:7px}.game-agent-status{display:flex;flex-wrap:wrap;gap:4px 12px;flex-shrink:0}#game-goal-indicator{display:none;font:10px var(--font-mono);color:#666}#game-agent-state,#game-agent-vitals{font:12px/1.6 var(--font-mono);color:#555;overflow-wrap:anywhere}#game-goal{font:12px/1.6 var(--font-interface);overflow-wrap:anywhere;flex-shrink:0}.game-agent form{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;flex-shrink:0}.game-suggestions{display:flex;flex-direction:column;align-items:flex-start;gap:6px;flex:1;overflow:auto;min-height:0}.game-suggestions button{font-size:12px;padding:6px 8px;min-height:34px}.game-agent .game-log{padding:0;min-height:0}#game-conversation{flex:1;display:flex;overflow:hidden}.game-agent #game-messages{flex:1;margin:0;min-height:0;max-height:none;overflow:auto}#game-messages li[data-role=user]{font-weight:600}#game-messages li[data-kind=tool],#game-messages li[data-kind=status]{font:12px/1.7 var(--font-mono);color:#666}#game-messages .game-message-role{display:block;font:10px/1.6 var(--font-mono);text-transform:uppercase;color:#777}#game-command-history{flex-shrink:0;max-height:110px;overflow:auto}#game-command-history ol{max-height:75px;margin:6px 0 0}#game-task-status{display:block;overflow-wrap:anywhere}.game-task-result{display:flex;align-items:center;gap:8px;font-size:12px;flex-shrink:0}.game-task-result output{flex:1;min-width:0}#game-retry{flex-shrink:0;width:40px;height:40px;padding:8px}#game-messages li{white-space:pre-wrap}#game-commands code{font:12px/1.7 var(--font-mono);white-space:pre-wrap;overflow-wrap:anywhere}.game-agent input{flex:1;width:100%;min-width:0;min-height:42px;padding:10px;border:1px solid #999;background:var(--background);color:#000;font:16px/1.4 var(--font-interface)}.game-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.game-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px 0;font-size:13px}.game-challenge{padding:16px 0;border-bottom:1px solid #ddd}.game-challenge-heading{display:flex;align-items:center;gap:12px}.game-challenge-heading h2{margin:0 auto 0 0;font-size:18px}#game-challenge-time{font:16px var(--font-mono)}.game-objectives{display:flex;flex-wrap:wrap;gap:10px 20px;padding:12px 0;font:13px/1.6 var(--font-mono)}.game-objectives .complete{color:#37754b}#game-challenge-result{font-size:13px}.game-log{border-top:1px solid #ddd;padding:12px 0;font-size:13px}.game-log summary{cursor:pointer}.game-log ol{list-style:none;margin:12px 0;padding:0;max-height:200px;overflow:auto}.game-log li{padding:5px 0;border-bottom:1px solid #eee;overflow-wrap:anywhere}.game-log time{font-family:var(--font-mono);margin-right:12px}.game-source{display:flex;flex-wrap:wrap;gap:20px;margin-top:20px;font-size:12px}.game-page [hidden]{display:none!important}@media(max-width:1050px){.game-stage[data-agent=true]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;height:auto;gap:12px}.game-stage[data-agent=true] .game-scene{height:auto;aspect-ratio:16/9}.game-agent{height:380px;padding:12px 0 0;border-left:0;border-top:1px solid #ddd;gap:6px}#game-conversation{min-height:80px}#game-command-history{max-height:64px}#game-command-history ol{max-height:36px}.game-stage[data-agent=true]:fullscreen{grid-template-rows:auto minmax(80px,1fr)minmax(260px,330px)}.game-stage[data-agent=true]:fullscreen .game-scene,.game-stage:fullscreen .game-agent{height:100%;min-height:0;aspect-ratio:auto}}@media(max-width:684px){.game-scene{aspect-ratio:4/3}.game-heading{align-items:center}.game-heading span{font-size:10px}.game-scene-status{left:56px}.game-stage[data-agent=true] .game-scene-status{inset:12px;flex-direction:column;align-items:flex-start}.game-toolbar>output{width:100%;margin-left:0}.game-preferences{margin-left:0}.game-preferences select{max-width:136px;min-height:36px}#game-fps{width:160px;max-width:160px}.game-preferences button{min-width:36px;min-height:36px;padding:7px}.game-agent{height:380px}.game-agent-heading{font-size:12px}.game-agent form{order:1}#game-conversation{order:2}#game-command-history{order:3}.game-modes{gap:4px}.game-modes button{padding:8px}.game-actions{gap:4px;margin-left:auto}.game-actions button{min-width:36px;padding:7px}}@media(max-width:1050px) and (max-height:700px){.game-stage:fullscreen .game-toolbar>output,.game-stage:fullscreen #game-agent-vitals,.game-stage:fullscreen #game-goal{display:none}.game-stage:fullscreen #game-goal-indicator:not([hidden]){display:inline}.game-stage:fullscreen #game-conversation{min-height:60px}}