:root{font-family:Arial,'Noto Sans JP',sans-serif;color-scheme:dark;color:#eef2ef;background:#0c171b}*{box-sizing:border-box}body{margin:0}main{max-width:1700px;margin:auto;padding:24px 30px 16px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.brand{font-size:24px;font-weight:900;font-style:italic;letter-spacing:-.7px}.brand b{color:#e6c88c}.brand span{display:block;font-size:9px;color:#82989c;letter-spacing:.19em;font-style:normal;font-weight:500;margin-top:5px}header a{color:#becbcb;text-decoration:none;font-size:13px;border-bottom:1px solid #668183;padding:8px 0}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;border:1px solid #405357;border-radius:8px;overflow:hidden;background:#142227}#stage{position:relative;min-height:635px;height:min(74vh,790px);overflow:hidden;background:linear-gradient(#91b5c7,#d1dce0 48%,#37565b 49%,#183238)}#viewport{position:absolute;inset:0;touch-action:none}#viewport canvas{width:100%;height:100%;display:block;touch-action:none}.shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#10232955,transparent 25%,transparent 65%,#051719a8)}button,select,input{font:inherit}button{cursor:pointer;color:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #f1cc82;outline-offset:4px}.scene-title{position:absolute;top:24px;left:24px;display:flex;align-items:center;gap:13px;pointer-events:none}.scene-title>span{font-size:12px;color:#152125;background:#edce96;display:grid;place-items:center;width:33px;height:33px;border-radius:50%}.scene-title b{display:block;font-size:17px;font-weight:500;text-shadow:0 1px 6px #0005}.scene-title small{display:block;font-size:10px;margin-top:6px;color:#c1cfce}.scene-top{position:absolute;right:22px;top:24px;display:flex;gap:12px;align-items:center}.scene-top>span{font-size:10px;letter-spacing:.1em;padding:7px 10px;background:#0c212786;border:1px solid #b2c8c944;border-radius:3px}.scene-top button{background:#0c212786;border:1px solid #b2c8c944;border-radius:3px;width:30px;height:30px;font-size:20px}.scene-bottom{position:absolute;bottom:96px;left:26px;right:26px;display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none}.boat-id{display:flex;gap:12px;align-items:center}.boat-id>span{font-size:23px;font-weight:800;background:#eeefea;color:#20343a;width:38px;height:40px;display:grid;place-items:center;box-shadow:0 4px 16px #0003}.boat-id b{font-size:13px;letter-spacing:.12em}.boat-id small{display:block;margin-top:5px;font-size:8px;color:#aec0c2;letter-spacing:.15em}.speed{display:flex;align-items:center;gap:9px}.speed>b{font-size:59px;font-weight:400;font-style:italic;font-variant-numeric:tabular-nums;line-height:1}.speed>span{font-size:14px;color:#e4ece6}.speed small{display:block;font-size:9px;color:#a6bcbd;margin-top:6px}.gesture{position:absolute;bottom:69px;left:0;right:0;text-align:center;font-size:10px;color:#c0d0d0;pointer-events:none;text-shadow:0 1px 5px #000}.camera-buttons{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;background:#0a1d25c9;backdrop-filter:blur(10px);border:1px solid #8eaaa64d;border-radius:6px;padding:4px;white-space:nowrap}.camera-buttons button{border:0;background:transparent;border-radius:3px;padding:11px 17px;font-size:12px;color:#b4c4c7}.camera-buttons .active{color:#f3ddba;background:#8eacac21}.loading{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;background:#112831e8;z-index:4}.loading[hidden],.error[hidden]{display:none}.loader{width:32px;height:32px;border:2px solid #4a646d;border-top-color:#e6c58d;border-radius:50%;animation:spin 1.2s linear infinite;margin-bottom:20px}.loading b{font-size:16px}.loading p{font-size:12px;color:#a6b8bc}.error{position:absolute;z-index:5;inset:20% 10%;padding:30px;background:#132831;border:1px solid #d4b780;border-radius:6px;line-height:1.8}.error b{font-size:18px}.error p{font-size:14px}.error button{border:1px solid #d4b780;background:#2b3f43;padding:12px;border-radius:4px}aside{padding:29px 25px 22px;background:linear-gradient(145deg,#1b2b2e,#122127);border-left:1px solid #405357}.panel-heading>span{font-size:9px;letter-spacing:.2em;color:#beac8c}h1{font-size:21px;font-weight:500;margin:12px 0}.panel-heading p{font-size:13px;color:#9aafb1;line-height:1.85;margin:12px 0 25px}.primary{width:100%;display:flex;justify-content:space-between;padding:15px 17px;color:#1b2b2f;background:linear-gradient(115deg,#eed4a5,#cbad76);border:1px solid #e3c492;border-radius:4px;font-size:15px;font-weight:bold}.primary:disabled{opacity:.4}.primary b{font-size:12px}.control{margin-top:25px}.control label,.control-label{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin-bottom:13px;color:#d8e1df}.control output{color:#e2c496;font-size:12px}input[type=range]{width:100%;height:5px;margin:6px 0 10px;accent-color:#e4c389;cursor:pointer;touch-action:pan-y}.scale{display:flex;justify-content:space-between;color:#758f94;font-size:10px}.segmented{display:flex;border:1px solid #486063;border-radius:4px;padding:3px;gap:3px}.segmented button{width:50%;background:none;border:0;padding:9px;font-size:13px;color:#a6b9bd;border-radius:2px}.segmented .active{background:#526b6c44;color:#efd4a8}select{width:100%;border:1px solid #486063;padding:10px;background:#13252c;color:#d4dfdc;font-size:13px;border-radius:3px}.control>small{display:block;font-size:10px;color:#7f999e;line-height:1.7;margin-top:9px}.panel-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #354b4e;margin-top:24px;padding-top:18px}.panel-bottom button{border:0;background:none;padding:0;color:#a1b5b9;font-size:11px}.panel-bottom>span{color:#7f9b9f;font-size:10px;font-variant-numeric:tabular-nums}footer{display:flex;justify-content:space-between;gap:30px;color:#7e969c;font-size:11px;line-height:1.8;margin-top:17px}footer p{max-width:990px;margin:0}footer b{font-weight:500;color:#bbcbc9;margin-right:12px}footer>span{white-space:nowrap;font-size:10px;letter-spacing:.12em}#stage:fullscreen{width:100vw;height:100svh;min-height:0}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:950px){main{padding:15px}.workspace{grid-template-columns:1fr}#stage{height:65svh;min-height:450px;max-height:780px}aside{border-left:0;border-top:1px solid #405357;display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:22px}.panel-heading{display:none}.primary{grid-column:1/-1}.control{margin:0}.panel-bottom{grid-column:1/-1;margin:0;padding-top:16px}footer>span{display:none}}@media(max-width:550px){main{padding:12px 9px}header{margin-bottom:14px}.brand{font-size:21px}.brand span{font-size:8px}header a{font-size:11px}.scene-title{top:17px;left:14px;gap:9px}.scene-title b{font-size:15px}.scene-title small{font-size:9px}.scene-title>span{width:28px;height:28px}.scene-top{right:13px;top:17px;gap:5px}.scene-top>span{font-size:9px;padding:6px}.scene-top button{width:26px;height:26px;font-size:17px}.scene-bottom{left:17px;right:17px;bottom:100px}.boat-id{gap:8px}.boat-id>b{font-size:11px}.boat-id small{font-size:7px}.boat-id>span{width:30px;height:33px;font-size:20px}.speed>b{font-size:43px}.speed>span{font-size:12px}.speed small{font-size:8px}.camera-buttons button{padding:10px 13px;font-size:11px}.gesture{font-size:9px}aside{gap:23px 17px;padding:19px 17px}.control label,.control-label{font-size:12px}.control output{font-size:10px}.control>small{font-size:10px}select{font-size:12px}footer{font-size:10px}.error{inset:15% 5%;padding:20px}}@media(prefers-reduced-motion:reduce){.loader{animation:none}}

.camera-buttons{max-width:calc(100% - 24px)}.camera-buttons button{padding:11px 12px}@media(max-width:550px){.camera-buttons{width:calc(100% - 24px);justify-content:space-between}.camera-buttons button{padding:10px 7px;font-size:10px;flex:1}}
