:root{--world-purple:#7871c7;--world-dark:#29263f}body{background:#f5f4fa;color:#302d48}.topbar{height:76px;border-color:#e9e6f1}.brand-mark{background:#393551;color:#eacb89}.brand-sub{color:#8e88a3}.tabs{height:68px}.tab.active{color:#61559d;border-color:#8272bb}.private-label{color:#8c839e}.game-layout{position:relative}.world-heading{display:flex;align-items:center;justify-content:space-between;margin:5px 0 23px}.world-heading .eyebrow{font-size:9px;color:#9b91b0;letter-spacing:2px}.world-heading h1{font-size:27px;letter-spacing:-.5px;line-height:1.2;margin:10px 0 0;font-weight:750;color:#39324f}.world-heading h1>span{font-size:12px;font-weight:400;color:#a49aae;border-left:1px solid #d4cedf;margin-left:14px;padding-left:14px;letter-spacing:0}.world-location{background:white;border:1px solid #e5e0ee;border-radius:9px;padding:12px 16px;color:#8c7f9c;font-size:11px}.location-icon{font-size:16px;margin-right:7px;color:#9b83ba}.world-frame{border:1px solid #c9bfdc;border-radius:15px;overflow:hidden;box-shadow:0 9px 32px #3924550c;background:#29263f}.world-topbar{height:43px;background:#3a344f;color:#ddd5eb;display:flex;align-items:center;justify-content:space-between;padding:0 18px;font-size:10px;gap:16px}.world-topbar>span:first-child{display:flex;gap:8px;align-items:center}.world-live-dot{width:6px;height:6px;background:#a8cfab;border-radius:50%}.world-help{font-size:10px;color:#a99eba}.world-topbar button{background:#4a435e;border:1px solid #635877;border-radius:5px;font-size:10px;color:#ded5ed;padding:5px 10px}.world-stage{height:620px;position:relative;overflow:hidden;background:#526d57;isolation:isolate}.world-stage canvas{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;outline-offset:-4px;cursor:crosshair}.world-stage canvas:focus-visible{outline:3px solid #e2c57d}.world-welcome{position:absolute;left:20px;top:18px;display:flex;align-items:center;gap:10px;pointer-events:none;background:#ffffffed;border:1px solid #dad0e1;padding:12px 16px;border-radius:10px;box-shadow:0 3px 0 #263e3920}.world-quest-icon{color:#b58c40;background:#fff1cc;border:1px solid #edda9d;border-radius:7px;width:28px;height:30px;display:grid;place-items:center;font-weight:800;font-size:20px}.world-welcome strong{display:block;font-size:11px;color:#5b4f69;font-weight:700}.world-welcome div>span{display:block;font-size:9px;color:#a091ae;margin-top:5px}.world-talk{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);background:#fff9e9;border:2px solid #e2cc96;box-shadow:0 4px 0 #4b503344;border-radius:10px;display:flex;align-items:center;gap:13px;color:#716344;font-size:12px;padding:10px 17px;white-space:nowrap}.world-talk.near{background:#f6e5ac;border-color:#cfac62;box-shadow:0 4px 0 #86744766}.keycap{width:25px;height:25px;display:grid;place-items:center;background:#fff;border:1px solid #d2c6a7;border-bottom:3px solid #d2c6a7;border-radius:5px;font-weight:700;font-size:11px}.world-bottom{min-height:43px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fff;padding:10px 17px;color:#9b90a7;font-size:9px}.world-guide-status{display:flex;gap:7px;align-items:center;color:#8f849d;white-space:nowrap}.world-guide-status[data-state=thinking] .status-dot,.world-guide-status[data-state=listening] .status-dot{background:#c3a163;animation:pulse 1s infinite}.world-controls{display:flex;align-items:center;gap:4px;font-size:9px;white-space:nowrap}.world-controls kbd{font:9px system-ui;border:1px solid #e6e0ef;border-radius:3px;padding:1px 4px;color:#ab9cbe}.world-caption{display:flex;justify-content:space-between;font-size:9px;color:#a89bb4;margin:16px 1px}.world-dialogue{position:absolute;right:18px;top:18px;bottom:18px;width:390px;height:auto;padding:19px 18px 12px;border:2px solid #d4c9e2;border-radius:14px;box-shadow:0 6px 0 #33274033,0 10px 30px #33274033;z-index:5}.world-dialogue .conversation-header{padding-bottom:14px}.world-dialogue .conversation-header h2{font-size:15px;color:#55446a}.world-dialogue .eyebrow{font-size:8px;color:#ab92b4}.dialogue-tools{display:flex;gap:2px;align-items:center}.dialogue-tools .quiet{font-size:9px;padding:6px}.world-dialogue .messages{padding-top:12px}.world-dialogue .welcome{padding-top:17px}.world-dialogue .welcome h3{font-size:14px}.world-dialogue .welcome p{font-size:10px}.world-dialogue .suggestions{gap:6px;margin-top:18px}.world-dialogue .suggestions button{font-size:10px;padding:10px}.world-dialogue .welcome-symbol{background:#f4edf8;color:#b89acb}.world-dialogue .message{font-size:12px}.world-dialogue .message.user{background:#f1ebf7;color:#766084}.world-dialogue .message-label{color:#a388b2;font-size:8px}.world-dialogue .citation{background:#f9f6fc;border-color:#e6deed;font-size:10px}.world-dialogue .citation summary{color:#8b6ea4}.world-dialogue .composer{background:#fcfaff;border-color:#e6deef;padding:11px 11px 8px}.world-dialogue .composer textarea{font-size:11px}.world-dialogue .composer-actions{gap:3px}.world-dialogue .send-button{background:#84709e;font-size:9px;padding:9px 11px}.world-dialogue .send-button span{margin-left:5px}.world-dialogue .disclaimer{font-size:8px}.world-dialogue .mic-button span{font-size:9px}.world-dialogue .notice{font-size:10px;padding:8px 10px}.world-dpad{display:none;position:absolute;bottom:18px;left:15px;grid-template-columns:repeat(3,32px);grid-template-rows:repeat(2,32px);gap:3px}.world-dpad button{padding:0;background:#ffffffdc;color:#6d5a83;border:1px solid #cfbddb;border-bottom:3px solid #b6a6c1;border-radius:6px;touch-action:none;font-size:16px;user-select:none}.world-dpad [data-direction=up]{grid-column:2}.world-dpad [data-direction=left]{grid-column:1;grid-row:2}.world-dpad [data-direction=down]{grid-column:2;grid-row:2}.world-dpad [data-direction=right]{grid-column:3;grid-row:2}.login-card{position:relative;overflow:hidden;border-color:#e3d9eb;background:linear-gradient(145deg,#fff 40%,#f2ecf9);box-shadow:8px 8px 0 #e8e0ef}.login-card h1{color:#56466a}.login-card .eyebrow{color:#a48eb7}.login-card .primary{background:#84709e}.login-pixel{position:absolute;right:38px;top:42px;font-size:60px;color:#dccb91;transform:rotate(15deg);text-shadow:4px 4px 0 #f0e7cf}.page-footer{padding-top:20px;color:#b1a4bc}.page-footer span:last-child{color:#bbadc5}.world-dialogue .messages{scrollbar-width:thin;scrollbar-color:#d6c8e1 transparent}@media(min-width:1600px){.world-stage{height:680px}.world-dialogue{height:auto}}@media(max-width:1000px){.world-stage{height:560px}.world-help{display:none}.world-bottom #world-hint{display:none}.world-dialogue{width:350px}.world-welcome{padding:10px 12px}}@media(max-width:650px){.world-heading{margin:4px 0 16px}.world-heading h1{font-size:22px}.world-heading h1>span{display:none}.world-location{font-size:9px;padding:9px}.world-stage{height:480px}.world-stage canvas{object-fit:cover;object-position:center}.world-topbar{height:38px;padding:0 12px}.world-bottom{font-size:8px;padding:9px 11px}.world-controls{display:none}.world-dpad{display:grid;z-index:2}.world-talk{left:auto;right:12px;transform:none;font-size:10px;gap:8px;padding:8px 10px;bottom:24px}.world-talk .keycap{display:none}.world-welcome{left:12px;top:12px;max-width:250px}.world-welcome strong{font-size:10px}.world-welcome div>span{font-size:8px}.world-quest-icon{width:23px;height:26px}.world-dialogue{right:9px;left:9px;top:9px;bottom:9px;width:auto;padding:15px;z-index:5}.world-dialogue .conversation-header h2{font-size:14px}.world-caption{font-size:8px;margin-top:12px}.world-caption>span:last-child{display:none}.world-frame{border-radius:11px}.login-card h1{font-size:27px}.login-pixel{font-size:40px;right:24px;top:27px}.topbar{height:70px}.tabs{height:63px}}@media(prefers-reduced-motion:reduce){.world-guide-status .status-dot{animation:none!important}}
.world-actions{position:absolute;left:18px;bottom:20px;display:flex;gap:5px;z-index:2;padding:5px;background:#fffaf0ed;border:1px solid #d9c7a5;border-radius:11px;box-shadow:0 3px 0 #42365525}.world-actions button{display:flex;align-items:center;gap:5px;background:transparent;border:1px solid transparent;border-radius:7px;padding:7px 8px;font-size:10px;color:#796b85;min-height:34px}.world-actions button>span:first-child{font-size:16px;line-height:1}.world-actions button kbd{font:8px system-ui;color:#ad9bbc;border:1px solid #dfd2e7;border-radius:3px;padding:1px 3px}.world-actions button:hover{background:#f1e9f8}.world-actions button[aria-pressed=true]{background:#e9def3;border-color:#baa5ce;color:#6d4e8a}.world-actions button:disabled{cursor:default;opacity:.4}.world-talk{left:auto;right:18px;transform:none}.world-action-card{position:absolute;right:18px;top:18px;width:128px;border:1px solid #d4c3e3;background:#fffcf6f2;border-radius:13px;box-shadow:0 4px 0 #44345322;text-align:center;padding:10px 4px 12px;pointer-events:none;z-index:3}.world-action-card>span{font-size:9px;color:#a493af;letter-spacing:.5px}.world-action-card canvas{width:120px;height:132px;object-fit:contain;image-rendering:pixelated;cursor:default}.world-action-card strong{display:block;font-size:10px;color:#8c739f;font-weight:600}.world-dialogue{z-index:5}@media(max-width:1000px){.world-actions button kbd{display:none}.world-actions button{padding:7px}}@media(max-width:650px){.world-actions{left:12px;right:12px;bottom:100px;gap:3px;justify-content:space-between;padding:4px}.world-actions button{flex:1;justify-content:center;padding:7px 3px;font-size:9px;gap:4px}.world-actions button>span:first-child{font-size:14px}.world-action-card{width:100px;top:12px;right:12px;padding:7px 2px}.world-action-card canvas{width:94px;height:104px}.world-action-card strong{font-size:9px}.world-talk{right:12px}}
.game-layout.is-full{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;margin:0;max-width:none;width:auto;padding:10px 14px;background:#f5f4fa;box-sizing:border-box}.game-layout.is-full[hidden]{display:none}.game-layout.is-full .world-heading{margin:0 0 10px}.game-layout.is-full .world-heading .eyebrow{display:none}.game-layout.is-full .world-heading h1{margin:0;font-size:20px}.game-layout.is-full .world-frame{flex:1;min-height:0;display:flex;flex-direction:column}.game-layout.is-full .world-stage{flex:1;min-height:0;height:auto}.game-layout.is-full .world-caption{display:none}.world-topbar button[aria-pressed=true]#world-fullscreen{background:#6a5d86;border-color:#8e7fad}@media(max-width:650px){.game-layout.is-full{padding:6px}}
/* The office always fits the window: the page becomes one column exactly as tall as the screen and the stage takes whatever is left. */
@media(min-height:520px){body:has(#workspace:not([hidden])>#chat-panel:not([hidden])){height:100dvh;display:flex;flex-direction:column;overflow:hidden;& .topbar{flex:none;height:54px;padding:0 18px}& main{flex:1;min-height:0;display:flex;flex-direction:column;max-width:none;width:100%;margin:0;padding:0 16px 12px;box-sizing:border-box}& #workspace{flex:1;min-height:0;display:flex;flex-direction:column}& .tabs{flex:none;height:44px}& .game-layout{flex:1;min-height:0;display:flex;flex-direction:column}& .world-heading{flex:none;margin:0 0 10px}& .world-heading .eyebrow{display:none}& .world-heading h1{margin:0;font-size:20px}& .world-frame{flex:1;min-height:0;display:flex;flex-direction:column}& .world-topbar,& .world-bottom{flex:none}& .world-stage{flex:1;min-height:0;height:auto}& .world-caption,& .page-footer{display:none}}}
.world-topbar button,#world-room-label{white-space:nowrap}@media(max-width:650px){.world-topbar{gap:6px}#world-fullscreen{font-size:0;padding:5px 9px}#world-fullscreen::before{content:'\2922';font-size:12px}}