.scene-top{flex-wrap:wrap;justify-content:flex-end;max-width:70%}
.scene-top .play-mode-button{width:auto;min-width:58px;height:34px;padding:5px 9px;font-size:12px;white-space:nowrap}
#play-controls[hidden]{display:none!important}
#manual-pause[hidden]{display:none!important}
#play-controls{position:absolute;inset:0;pointer-events:none;z-index:8}
.helm-control{position:absolute;left:max(18px,env(safe-area-inset-left));bottom:18px;width:126px;pointer-events:auto}
#helm-wheel{width:120px;height:120px;touch-action:none;user-select:none;border-radius:50%;cursor:grab;filter:drop-shadow(0 3px 6px #0008)}
#helm-wheel svg{width:100%;height:100%;fill:#183039d9;stroke:#c6d0cd;stroke-width:7}
#helm-wheel .wheel-hub{fill:#223e47;stroke-width:4}#helm-wheel .wheel-mark{stroke:#edcd8b;stroke-width:9}
#helm-wheel:focus-visible,#accelerator:focus-visible{outline:3px solid #f0ce83;outline-offset:4px}
.helm-caption{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#eee;gap:6px}
#helm-center{padding:7px 8px;background:#122e39e8;border:1px solid #68828b;border-radius:5px;font-size:11px;min-height:32px}
#accelerator{position:absolute;right:max(18px,env(safe-area-inset-right));bottom:25px;width:120px;height:102px;border:2px solid #d4b77b;border-radius:24px;background:linear-gradient(135deg,#edcd94,#b38c51);color:#152b32;font-weight:700;box-shadow:0 5px 15px #0005;touch-action:none;user-select:none;pointer-events:auto}
#accelerator span{display:block;font-size:18px}#accelerator small{display:block;margin-top:7px;font-size:11px}
#accelerator.pressed{background:#f5dfb6;transform:translateY(3px);box-shadow:0 1px 5px #0006}
.drive-hint{position:absolute;bottom:40px;left:50%;transform:translateX(-50%);text-align:center;line-height:1.7;font-size:10px;color:#d4e1df;text-shadow:0 1px 3px #000;max-width:180px}
.manual-play #stage .camera-buttons{bottom:176px}.manual-play #stage .gesture{display:none}
.manual-play #stage .scene-bottom{bottom:228px}.manual-play .scene-title small{display:none}
.play-landscape{overflow:hidden}
.play-landscape #stage{position:fixed;inset:0;width:100vw;height:100vh;width:100dvw;height:100dvh;max-height:none;min-height:0;border-radius:0;z-index:100;border:0;background:#102229}
.play-landscape #stage .scene-title{top:14px;left:max(18px,env(safe-area-inset-left))}
.play-landscape #stage .scene-top{top:14px;right:max(14px,env(safe-area-inset-right))}
.play-landscape #stage .scene-bottom{left:50%;right:auto;bottom:78px;transform:translateX(-50%);gap:20px}
.play-landscape #stage .boat-id{display:none}.play-landscape #stage .speed>b{font-size:37px}
.play-landscape #stage .camera-buttons{top:62px;bottom:auto;max-width:72%;width:auto}
.play-landscape #stage .camera-buttons button{padding:7px 10px;font-size:10px}
.play-landscape .drive-hint{bottom:24px}.play-landscape #accelerator{right:max(22px,env(safe-area-inset-right))}
@media (orientation:portrait){
 .play-landscape #stage{inset:auto;left:50%;top:50%;width:100vh;height:100vw;width:100dvh;height:100dvw;transform:translate(-50%,-50%) rotate(90deg);transform-origin:center}
 .manual-play:not(.play-landscape) .drive-hint{bottom:151px;max-width:90%;width:250px;font-size:9px}
 .manual-play:not(.play-landscape) .scene-title{top:61px}
 .manual-play:not(.play-landscape) .scene-top{max-width:95%;left:12px;right:12px}
 .play-landscape .helm-control{left:max(22px,env(safe-area-inset-top))}
 .play-landscape #accelerator{right:max(22px,env(safe-area-inset-bottom))}
}
@media(max-width:550px){body:not(.play-landscape) .scene-title{top:65px}body:not(.play-landscape) .scene-top{max-width:95%}}
@media (max-height:430px) and (orientation:landscape){
 .play-landscape .scene-title b{font-size:13px}.play-landscape .scene-title>span{width:24px;height:24px}
 .play-landscape #helm-wheel{width:100px;height:100px}.play-landscape .helm-control{width:112px;bottom:10px}
 .play-landscape #accelerator{width:108px;height:87px;bottom:15px}
}
#wheel-rotor{transform-origin:50px 50px}
#helm-wheel .gauge-track{fill:none;stroke:#66808a;stroke-width:5}
#helm-wheel .helm-arc{fill:none;stroke-width:6;stroke-linecap:round;stroke-dasharray:0 100;transition:stroke-dasharray 40ms linear}
#helm-wheel #helm-left{stroke:#ff9b38}#helm-wheel #helm-right{stroke:#49b8ff}
#helm-wheel #helm-neutral{stroke:#162b34;stroke-width:1;fill:#e4eeee;transition:filter .12s}
#helm-wheel #helm-neutral.flash{fill:white;filter:drop-shadow(0 0 3px white)}
#slow-mode{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);pointer-events:auto;min-height:44px;padding:8px 12px;border:1px solid #b5c5c9;border-radius:10px;background:#193640ed;color:#edf3f4;font-size:12px;white-space:nowrap}
#slow-mode[aria-pressed=true]{background:#e8c889;color:#182c34;border-color:#ffe4aa}
.manual-play .drive-hint{bottom:64px}.play-landscape .drive-hint{bottom:62px}
@media(orientation:portrait){.manual-play:not(.play-landscape) #slow-mode{bottom:165px}.manual-play:not(.play-landscape) .drive-hint{bottom:140px}.manual-play:not(.play-landscape) #stage .camera-buttons{bottom:218px}.manual-play:not(.play-landscape) #stage .scene-bottom{bottom:265px}}

/* Landscape edge rail: camera tabs occupy their own compact top row. */
.play-landscape #stage .camera-buttons{position:absolute;top:max(6px,env(safe-area-inset-top));left:12px;right:12px;bottom:auto;transform:none;max-width:none;width:auto;justify-content:center;padding:3px;background:#112b35d9}
.play-landscape #stage .camera-buttons button{min-height:30px;padding:5px 12px;font-size:11px}
.play-landscape #stage .scene-top{top:49px;max-width:78%}
.play-landscape #stage .scene-title{top:52px}
@media(max-height:430px) and (orientation:landscape){.play-landscape #stage .scene-title{display:none}}
