:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Hiragino Kaku Gothic ProN",sans-serif;color:#183a3d;background:#dbe7e5;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden;overscroll-behavior:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;font-size:14px;font-weight:650;border:1px solid #fff9;background:#fffffff0;color:#163b3e;border-radius:13px;min-height:46px;padding:0 16px;cursor:pointer;box-shadow:0 3px 20px #11353212}button:focus-visible,a:focus-visible{outline:3px solid #00796d;outline-offset:3px}button:active{transform:scale(.97)}button:disabled{opacity:.4}button[aria-pressed=true]{background:#173c3f;color:white;border-color:#173c3f}button.primary{background:#183f42;color:#fff;border:0;width:100%;margin-top:16px}button.round{width:46px;padding:0;border-radius:50%;font-size:20px}h1,h2,p{margin:0}#world{position:fixed;inset:0;touch-action:none;outline:none}#world canvas{display:block;width:100%;height:100%;touch-action:none}.topbar{position:fixed;top:0;left:0;right:0;padding:calc(18px + env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) 14px max(22px,env(safe-area-inset-left));display:flex;justify-content:space-between;gap:12px;align-items:center;pointer-events:none;background:linear-gradient(#eef5f4dd,transparent)}.brand{display:flex;gap:10px;align-items:center}.brand-mark{background:#183f42;color:#baf4df;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;font-weight:750;font-size:25px}.brand h1{font-size:17px;letter-spacing:.01em}.brand p{font-size:12px;margin-top:2px}.top-actions{display:flex;gap:8px;pointer-events:auto}.location{position:fixed;top:calc(89px + env(safe-area-inset-top));left:max(24px,env(safe-area-inset-left));display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;background:#ffffffe5;padding:10px 14px;border-radius:30px;pointer-events:none;box-shadow:0 3px 18px #0e343410}.status-dot{width:7px;height:7px;background:#20906e;border-radius:100%}.location-detail{font-size:12px;font-weight:400;color:#5e7778;border-left:1px solid #b6ceca;margin-left:2px;padding-left:10px}.view-tools{position:fixed;top:calc(87px + env(safe-area-inset-top));right:max(22px,env(safe-area-inset-right));display:flex;gap:8px}.controls{pointer-events:none;position:fixed;bottom:max(40px,calc(22px + env(safe-area-inset-bottom)));left:max(34px,env(safe-area-inset-left));right:max(30px,env(safe-area-inset-right));display:flex;justify-content:space-between;align-items:end}.move-control,.look-control{display:flex;align-items:center;flex-direction:column;gap:12px}.control-label{font-size:14px;color:#fff;font-weight:600;text-shadow:0 1px 6px #0b292bcc;background:#183f426c;padding:4px 11px;border-radius:20px}#stick{width:128px;height:128px;background:#fff3;border:2px solid #fffc;border-radius:100%;position:relative;pointer-events:auto;touch-action:none;box-shadow:0 3px 25px #0e353329,inset 0 0 24px #fff2}#thumb{width:56px;height:56px;position:absolute;left:34px;top:34px;background:#f3fffaeb;border:2px solid white;border-radius:50%;box-shadow:0 3px 12px #0e353340;pointer-events:none}.stick-arrows{position:absolute;inset:0;display:grid;place-items:center;font-size:112px;color:#fffa;pointer-events:none;font-weight:200;line-height:1}.look-control svg{width:60px;height:60px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 4px #183f4288);margin-bottom:12px}.footnote{position:fixed;bottom:calc(9px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);white-space:nowrap;font-size:11px;background:#fff8;padding:2px 7px;border-radius:5px;pointer-events:none}#crosshair{position:fixed;top:50%;left:50%;width:6px;height:6px;background:#fff;border:1px solid #27424799;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}#toast{position:fixed;left:50%;bottom:calc(218px + env(safe-area-inset-bottom));transform:translateX(-50%);font-size:14px;background:#14383ee8;color:white;padding:12px 18px;border-radius:14px;text-align:center;max-width:90%;width:max-content;pointer-events:none;opacity:0;transition:opacity .3s}#toast.show{opacity:1}.loading{position:fixed;inset:0;display:grid;place-items:center;background:#eaf1ed;z-index:10;padding:25px}.loading-card{width:100%;max-width:390px;text-align:center}.loading-mark{display:inline-grid;place-items:center;background:#193e40;color:#b9ecd9;width:72px;height:72px;border-radius:22px;font-size:43px;font-weight:800;margin-bottom:25px}.loading h2{font-size:21px;margin-bottom:14px}.loading p{font-size:15px;line-height:1.8;color:#607976}.loading .loading-hint{margin-top:24px;font-size:14px}.progress{height:4px;background:#cadbd3;border-radius:6px;overflow:hidden;margin-top:26px}#progress-bar{height:100%;background:#278567;width:8%;transition:width .2s}.loading a{display:block;color:#2d655b;margin-top:20px;font-size:14px}dialog{border:none;border-radius:23px;padding:26px;width:min(480px,calc(100% - 30px));max-height:86dvh;color:#193b3e;box-shadow:0 20px 100px #082a3344;overflow:auto}dialog::backdrop{background:#0b252d80;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:.17em;color:#43856e;font-weight:700;margin-bottom:7px}dialog h2{font-size:20px;line-height:1.4}.dialog-head button{background:#eff5f1;border:none;flex-shrink:0;box-shadow:none}.room-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.room-grid button{text-align:left;background:#f0f5f1;box-shadow:none;min-height:66px;line-height:1.5;border:1px solid #dbe6df;padding:12px;font-size:14px}.room-grid button span{display:block;font-size:10px;letter-spacing:.1em;color:#7c9990;margin-bottom:4px}.dialog-note{font-size:12px;color:#68827a;line-height:1.8;margin-top:20px}.help-list{display:grid;gap:16px}.help-list b{font-size:15px}.help-list p{font-size:14px;color:#607870;line-height:1.7;margin-top:4px}.desktop-help{font-size:13px;padding:13px;background:#f0f5f1;border-radius:10px;line-height:1.7;margin-top:20px}[hidden]{display:none!important}
@media(max-width:600px){.topbar{padding-left:16px;padding-right:16px;gap:7px}.brand{gap:8px}.brand h1{font-size:15px}.brand p{font-size:11px}.brand-mark{width:36px;height:36px;font-size:23px}.top-actions{gap:7px}.top-actions button{padding:0 12px}.top-actions .round{width:42px;min-height:42px;padding:0}.location{left:17px;top:calc(84px + env(safe-area-inset-top));font-size:14px;padding:8px 11px}.location-detail{display:none}.view-tools{top:calc(81px + env(safe-area-inset-top));right:16px;gap:6px}.view-tools button{min-height:39px;padding:0 12px;font-size:13px}.view-tools #reset span{display:none}.controls{left:24px;right:20px}.look-control{max-width:155px}.look-control .control-label{font-size:12px}.controls #stick{width:120px;height:120px}.controls #thumb{left:30px;top:30px}.look-control svg{margin-bottom:12px}.footnote{font-size:10px}dialog{padding:22px}dialog h2{font-size:18px}}
@media(max-height:500px){.topbar{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:0}.brand-mark{width:35px;height:35px}.brand p{display:none}.location{top:63px;left:max(22px,env(safe-area-inset-left))}.view-tools{top:60px}.controls{bottom:max(24px,env(safe-area-inset-bottom));left:max(28px,env(safe-area-inset-left));right:max(30px,env(safe-area-inset-right))}#stick,.controls #stick{width:100px;height:100px}#thumb,.controls #thumb{width:48px;height:48px;left:24px;top:24px}.stick-arrows{font-size:88px}.move-control,.look-control{gap:7px}.look-control svg{height:42px;width:42px;margin:0}.control-label{font-size:12px}.footnote{bottom:5px}#toast{bottom:140px}.location-detail{display:none}}
@media(hover:hover) and (pointer:fine){.look-control .control-label{font-size:13px}}
/* Two main modes remain visible while the movement controls stay available in both. */
.view-tools{left:50%;right:auto;transform:translateX(-50%);top:calc(84px + env(safe-area-inset-top));gap:8px;align-items:center;white-space:nowrap}.display-modes{display:flex;padding:4px;background:#fffffff2;border:1px solid #fff;border-radius:16px;gap:4px;box-shadow:0 3px 18px #11353216}.display-modes button{border:0;box-shadow:none;min-height:42px;font-size:14px;background:transparent;padding:0 18px}.display-modes button[aria-pressed=true]{background:#193f42;color:white;box-shadow:0 2px 7px #11353225}.view-tools #reset{min-height:50px}.zoom-tools{position:fixed;right:max(22px,env(safe-area-inset-right));top:calc(87px + env(safe-area-inset-top));display:flex;gap:5px}.zoom-tools button{width:42px;min-height:42px;padding:0;font-size:21px}.eye-view{width:100%;margin-top:18px;background:#eff6f1;box-shadow:none}.look-control .control-label{font-size:13px}
@media(max-width:950px){.location-detail{display:none}}
@media(max-width:600px){.view-tools{top:calc(78px + env(safe-area-inset-top));left:16px;right:16px;transform:none;gap:7px}.display-modes{flex:1;min-width:0;padding:4px}.display-modes button{flex:1;min-height:39px;font-size:14px;padding:0 10px}.view-tools #reset{min-height:49px;min-width:43px}.location{top:calc(140px + env(safe-area-inset-top))}.zoom-tools{top:calc(136px + env(safe-area-inset-top));right:16px}.zoom-tools button{width:39px;min-height:39px}.look-control .control-label{font-size:12px}}
@media(max-height:500px) and (min-width:601px){.view-tools{top:calc(57px + env(safe-area-inset-top))}.display-modes button{min-height:36px;padding:0 14px}.view-tools #reset{min-height:44px}.location{top:62px}.zoom-tools{top:59px}.zoom-tools button{min-height:40px;width:40px}.view-tools #reset span{display:none}}

:root{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
