:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#252a49;background:#e3e8fa;font-synthesis:none;font-weight:450;--ink:#252a49;--blue:#5e6fe8;--muted:#6c7191}
*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #7b56d7;outline-offset:5px}[hidden]{display:none!important}button:disabled{cursor:default}
#world{position:fixed;inset:0;outline:none}#world canvas{display:block;width:100%;height:100%;touch-action:none}.hud-header{position:fixed;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:28px 36px;gap:20px;pointer-events:none;z-index:5}.hud-header>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:12px;font-weight:750;font-size:16px}.brand>span{width:42px;height:42px;border-radius:14px;background:#fff9;box-shadow:0 4px 20px #59648d10;display:grid;place-items:center;font-size:16px;letter-spacing:-3px;padding-right:3px}.brand small{display:block;font-size:8px;letter-spacing:1.6px;font-weight:650;margin-top:5px;color:#646a8b}.header-actions{display:flex;align-items:center;gap:10px}.plain-link{font-size:12px;font-weight:650;margin-right:15px}.round-button{border:1px solid #fff9;background:#ffffff86;color:var(--ink);width:38px;height:38px;border-radius:50%;font-size:23px;display:grid;place-items:center}.round-button[aria-pressed=true]{background:#5e6fe8;color:white}.welcome{position:fixed;left:36px;top:128px;pointer-events:none;z-index:2}.eyebrow{font-size:9px;font-weight:750;letter-spacing:2px;color:#6c6d99}h1{font-size:clamp(30px,3vw,48px);letter-spacing:-2px;line-height:1.08;margin:16px 0}h1 span{color:#7477b9}.welcome p{font-size:12px;line-height:1.8;color:#70758f;max-width:300px}.welcome.is-exploring{opacity:0}.location{position:fixed;left:36px;bottom:120px;display:flex;align-items:center;gap:8px;font-size:11px;pointer-events:none}.location-dot{width:7px;height:7px;background:#7586b3;border-radius:50%}.location small{color:#848ba5;font-size:10px;border-left:1px solid #bfc6de;margin-left:5px;padding-left:12px}.action-bar{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:12px;z-index:5}.action-bar>span{font-size:11px;color:#737a99;font-weight:550;white-space:nowrap}.action-bar button{display:flex;gap:13px;align-items:center;background:#343958;color:#fff;border:1px solid #fff8;border-radius:17px;min-width:185px;padding:13px 17px;font-size:12px;box-shadow:0 8px 22px #34395824}.action-bar button:disabled{background:#fff9;color:#9399b1;box-shadow:none}.action-bar button b{margin-left:auto;font-size:19px;font-weight:400}kbd{font-family:inherit;font-size:10px;border:1px solid currentColor;border-radius:4px;min-width:20px;height:20px;display:inline-grid;place-items:center;opacity:.65}.controls-hint{position:fixed;left:36px;bottom:29px;display:flex;align-items:center;gap:10px;color:#6f7696;font-size:10px}.controls-hint>span:first-child{text-align:center}.key-row{display:flex;gap:2px;margin-top:2px}.controls-hint kbd{min-width:16px;height:16px;font-size:8px}.controls-hint p{margin:0;line-height:1.7}.controls-hint p span{display:block;opacity:.6;font-size:9px}.controls-hint i{height:24px;border-left:1px solid #bcc4e0;margin:0 6px}.mouse-icon{font-size:27px}.camera-controls{position:fixed;right:36px;bottom:36px;display:flex;background:#ffffff85;border:1px solid #fff9;border-radius:13px;overflow:hidden;z-index:5}.camera-controls button{background:none;border:0;color:#747c9d;width:34px;height:35px;font-size:20px}.camera-controls button+button{border-left:1px solid #d4d9ea}.house-label{position:absolute;transform:translate(-50%,-50%);border:1px solid #ffffffbd;background:#fffdf8ed;box-shadow:0 3px 12px #4b59871c;border-radius:10px;padding:7px 12px;display:flex;gap:8px;align-items:center;white-space:nowrap;color:var(--ink);font-size:11px;font-weight:650;pointer-events:auto;will-change:left,top}.house-label>span{width:19px;height:19px;border-radius:6px;background:var(--house-color);color:white;display:grid;place-items:center;font-size:9px}.house-label b{font-weight:400;color:#9b9bb7;margin-left:2px}.house-label.is-target{background:#343958;color:#fff;border-color:#747baf}.house-label.is-visited::after{content:'✓';font-size:10px;color:#73a38c}.joystick{display:none;position:fixed;left:25px;bottom:31px;width:103px;height:103px;border-radius:50%;border:1px solid #fff8;background:#ffffff50;box-shadow:inset 0 0 0 18px #ffffff28;touch-action:none;z-index:8}.joystick span{position:absolute;left:30px;top:30px;width:42px;height:42px;background:#fff9;border:1px solid #fff;border-radius:50%;box-shadow:0 3px 8px #5a638b16;pointer-events:none}.loading,.fallback{position:fixed;inset:0;background:#e3e8fa;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:30;padding:30px;text-align:center}.loading p{font-size:12px;color:#7882a8;letter-spacing:.3px}.loading-mark{background:#fff6;padding:25px;border-radius:23px;font-size:32px;letter-spacing:-7px;padding-right:32px;box-shadow:0 10px 40px #a2acd230}.fallback a{padding:15px 25px;background:#5e6fe8;color:white;border-radius:14px;margin-top:20px}.fallback p{color:#6c7191}#transition{position:fixed;inset:0;background:#e3e8fa;pointer-events:none;z-index:20;opacity:0;transition:opacity .25s}#transition.active{opacity:1}.in-room .welcome,.in-room #labels,.in-room .action-bar,.in-room .controls-hint,.in-room .camera-controls,.in-room .joystick,.in-room .location{display:none}.in-room .hud-header{z-index:11}.room-content{position:fixed;inset:100px 0 0;z-index:10;pointer-events:none}.back-button{position:absolute;left:36px;top:18px;border:0;border-radius:10px;padding:11px 14px;background:#ffffffc9;color:#555d83;font-size:11px;pointer-events:auto}.back-button kbd{margin-left:12px;font-size:8px}.room-copy{position:absolute;right:5vw;top:50%;transform:translateY(-50%);background:#ffffffec;border:1px solid white;border-radius:23px;padding:34px;width:min(390px,38vw);max-height:calc(100dvh - 180px);overflow:auto;box-shadow:0 20px 70px #3c4d7b22;pointer-events:auto;scrollbar-width:thin}.room-copy h2{font-size:34px;line-height:1.12;letter-spacing:-1.5px;margin:13px 0 17px}.room-copy h3{font-size:18px;margin:23px 0 8px;letter-spacing:-.4px}.room-copy p{font-size:12px;line-height:1.85;color:#727895;margin:10px 0}.room-copy .tags{display:flex;flex-wrap:wrap;gap:6px;margin:19px 0}.tags span{font-size:9px;padding:7px 9px;background:#eef0fc;color:#6e72a3;border-radius:6px}.room-link{display:inline-block;background:#565fba;color:white;border-radius:9px;padding:12px 15px;font-size:11px;margin:5px 6px 0 0}.room-link.secondary{background:#f0f0fb;color:#6366a2}.room-copy .note{font-size:10px;color:#8d92a9;padding-top:10px;border-top:1px solid #e8eaf3}.room-caption{position:absolute;bottom:26px;left:36px;font-size:8px;color:#6b7398;letter-spacing:2px}dialog{border:1px solid white;background:#f7f8fe;color:var(--ink);border-radius:24px;max-width:530px;width:calc(100% - 32px);padding:28px;box-shadow:0 20px 100px #394a7b44}dialog::backdrop{background:#343c6066;backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.dialog-heading h2{font-size:25px;letter-spacing:-1px;margin:8px 0 0}#destination-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}#destination-list button{text-align:left;border:1px solid #e0e3f3;background:white;border-radius:12px;padding:17px;font-size:12px;color:#454b70}#destination-list button span{display:inline-grid;place-items:center;border-radius:7px;width:25px;height:25px;background:var(--house-color);color:white;margin-right:8px;font-size:10px}dialog>p{font-size:10px;color:#8a8eaa;line-height:1.7}body.is-navigating #world{cursor:progress}
@media(max-width:900px){.welcome{top:102px}.welcome h1{font-size:33px}.welcome p{font-size:10px}.hud-header{padding:22px}.brand small{font-size:7px}.plain-link{font-size:10px;margin-right:4px}.controls-hint{display:none}.location{left:22px;bottom:115px}.camera-controls{right:22px}.room-copy{padding:26px;width:40vw;right:3vw}.room-copy h2{font-size:28px}.room-caption{left:22px}.back-button{left:22px}}
@media(pointer:coarse){.joystick{display:block}.controls-hint{display:none}.action-bar{left:auto;right:25px;transform:none;bottom:36px}.action-bar>span{font-size:9px;max-width:190px;white-space:normal;text-align:right}.action-bar button{min-width:140px;justify-content:center}.action-bar kbd{display:none}.camera-controls{bottom:160px}.location{bottom:159px}.location small{display:none}}
@media(max-width:600px){.hud-header{padding:19px 18px}.brand{font-size:13px;gap:8px}.brand>span{width:35px;height:35px;border-radius:11px;font-size:14px}.brand small{font-size:6px;letter-spacing:1px}.header-actions{gap:6px}.round-button{width:32px;height:32px;font-size:20px}.plain-link{display:none}.welcome{top:95px;left:22px}.eyebrow{font-size:7px;letter-spacing:1.6px}.welcome h1{font-size:30px;letter-spacing:-1.2px;margin:10px 0}.welcome p{font-size:10px;max-width:230px;line-height:1.6}.house-label{font-size:9px;padding:6px 8px;gap:5px;border-radius:8px}.house-label>span{width:16px;height:16px;font-size:8px}.house-label b{display:none}.location{font-size:9px;left:22px}.action-bar button{font-size:11px;padding:13px;min-width:135px}.camera-controls{right:22px}.camera-controls button{width:29px;height:30px;font-size:17px}.joystick{width:94px;height:94px;left:22px;bottom:32px}.joystick span{left:27px;top:27px;width:40px;height:40px}.room-content{inset:75px 0 0}.back-button{top:7px;font-size:10px}.room-copy{top:auto;bottom:19px;left:16px;right:16px;transform:none;width:auto;max-height:45dvh;border-radius:19px;padding:23px}.room-copy h2{font-size:25px;margin:8px 0 10px}.room-copy h3{font-size:16px}.room-copy p{font-size:11px;line-height:1.7}.room-caption{display:none}#destination-list button{padding:12px;font-size:10px}dialog{padding:22px}}
@media(prefers-reduced-motion:reduce){#transition{transition:none}}
@media(max-width:600px){.joystick{display:block}.action-bar{left:auto;right:22px;transform:none;bottom:34px}.action-bar>span{font-size:9px;max-width:170px;white-space:normal;text-align:right}.action-bar kbd{display:none}.camera-controls{bottom:150px}.location{bottom:150px}.location small{display:none}.house-label{min-height:32px}}
#world canvas{cursor:grab}#world.is-orbiting canvas{cursor:grabbing}.in-room #world canvas{cursor:default}
