.hud.split-controls38{--control-bg:#173b43e8;--control-rim:#c7e4ce99}
.hud.split-controls38 .thumb-left{left:max(12px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));width:110px;height:166px}
.hud.split-controls38 .steering-switch{display:none}
.drive-lever38{width:100%;height:100%;position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:center;border:1px solid var(--control-rim);border-radius:32px;background:linear-gradient(130deg,#2e5260ed,#142e39f2);box-shadow:0 4px 12px #0004;touch-action:none;pointer-events:auto;user-select:none}
.drive-lever38>button{position:relative;z-index:2;width:100%;min-height:55px;flex:none;border:0;border-radius:28px;background:transparent;color:#f1f8df;font-size:24px;line-height:1;touch-action:none;padding:8px}
.drive-lever38 small{display:block;font:800 9px system-ui;letter-spacing:1px;margin-top:3px}
.lever-slot38{position:absolute;top:30px;bottom:30px;left:calc(50% - 5px);width:10px;border-radius:8px;background:#041b24;box-shadow:inset 0 2px 5px #000}
.lever-slot38 i{position:absolute;top:calc(50% - 14px);left:-22px;width:54px;height:28px;background:linear-gradient(#e5dfc5,#95967f);border:2px solid #fff6d0;border-radius:11px;transform:translateY(calc(var(--lever,0)*-48px));box-shadow:0 3px 7px #0008;pointer-events:none}
.drive-lever38.held{border-color:#ffe895}.drive-lever38.held .lever-slot38 i{background:#ffdd79}
.steer-panel38{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));width:156px;height:166px;pointer-events:auto}
.steering-wheel38{height:148px;position:relative;touch-action:none;user-select:none;border-radius:50%;background:radial-gradient(circle,#16394355 40%,#28434bac 65%,#c7e4ce77 67%,#142b3899 70%)}
.steering-wheel38 button{position:absolute;top:43px;z-index:2;width:44px;height:60px;min-height:44px;padding:0;border:0;background:transparent;color:#f5f5d8;font-size:42px;touch-action:none}.steering-wheel38 button:first-child{left:-7px}.steering-wheel38 button:last-child{right:-7px}
.wheel-art38{position:absolute;inset:12px;transform:rotate(calc(var(--wheel,0)*80deg));pointer-events:none}
.wheel-art38 svg,.cockpit-wheel38 svg{width:100%;height:100%;fill:none;stroke:#d5d6be;stroke-width:10;stroke-linecap:round;filter:drop-shadow(0 3px 3px #0008)}
.wheel-art38 .hub38,.cockpit-wheel38 .hub38{fill:#214352;stroke-width:3}.wheel-art38 .marker38,.cockpit-wheel38 .marker38{stroke:#ffd97c;stroke-width:5}
.steering-wheel38.held .wheel-art38 svg{stroke:#ffe39c}.steer-panel38>small{display:block;text-align:center;font:800 10px system-ui;letter-spacing:1.8px;color:#f2f5d6;text-shadow:0 2px 4px #000}
.hud.split-controls38 .thumb-right{left:12px;right:12px;bottom:196px;height:50px;width:auto;display:flex;gap:8px;align-items:center;justify-content:center;pointer-events:none}
.hud.split-controls38 .thumb-right>button{position:static;inset:auto;width:62px;height:52px;min-height:52px;border-radius:14px;padding:3px;flex:none;pointer-events:auto;border-bottom-width:3px}
.hud.split-controls38 .thumb-right>button b,.hud.split-controls38 .thumb-right>button>span,.hud.split-controls38 .thumb-right>button strong{font-size:23px}.hud.split-controls38 .thumb-right>button small{font-size:9px;margin-top:2px;line-height:1.15}
.hud.split-controls38 .drive-view{display:flex!important;background:#2c5068}.hud.split-controls38 .drive-view[aria-pressed=true]{background:#ddc37a;color:#173b43;border-color:#ffefb3}
.hud.split-controls38 .ufo-weapons{left:12px;right:12px;bottom:260px;justify-content:center;gap:8px}.hud.split-controls38 .ufo-weapons button{width:98px;min-height:50px;font-size:21px}
.hud.split-controls38 .speed{bottom:263px;left:50%;right:auto;transform:translateX(-50%)}.hud.split-controls38.ufo-flight .speed{bottom:326px}.hud.split-controls38 .speed b{font-size:29px}.hud.split-controls38 .speed>span{font-size:10px;max-width:240px;text-align:center}
.hud.split-controls38 .reset-btn{left:12px;bottom:265px;min-height:44px}.hud.split-controls38.ufo-flight .reset-btn{bottom:325px}
.hud.split-controls38[data-vehicle=tank] .drive-drift,.hud.split-controls38[data-vehicle=tank] .drive-power{visibility:hidden}
.cockpit38{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}.cockpit38[hidden]{display:none}
.windscreen38{position:absolute;inset:0;box-shadow:inset 0 -32px 35px #182b3270;pointer-events:none}
.dashboard38{position:absolute;width:min(560px,100vw);height:155px;left:50%;bottom:-32px;transform:translateX(-50%);border:4px solid #182731;border-bottom:0;border-radius:70% 70% 0 0;background:linear-gradient(#36515a,#172831 65%);box-shadow:0 -6px 18px #0005}
.instrument38{position:absolute;left:50%;top:17px;transform:translateX(-50%);display:flex;gap:6px;padding:7px 12px 22px;border-radius:14px;background:#091e27;border:1px solid #728e88}
.instrument38 i{width:19px;height:8px;border-radius:2px;background:#9db87e;box-shadow:0 0 6px #bde78977}.instrument38 i:nth-child(2){background:#ddbe69}.cockpit-label38{position:absolute;top:24px;left:-26px;right:-26px;text-align:center;color:#d9e4d2;font:700 7px system-ui;letter-spacing:1px;white-space:nowrap}
.cockpit-wheel38{position:absolute;left:calc(50% - 66px);top:33px;width:132px;height:132px;transform:rotate(var(--cockpit-turn,0deg))}.tank-yoke38{display:none}
.hud[data-vehicle=tank] .dashboard38{border-radius:20px 20px 0 0;background:linear-gradient(#667365,#253a33);height:132px}.hud[data-vehicle=tank] .windscreen38{border:12px solid #263b35;border-top-width:16px;border-bottom:0;box-shadow:inset 0 0 5px #000}
.hud[data-vehicle=tank] .cockpit-wheel38{display:none}.hud[data-vehicle=tank] .tank-yoke38{display:block;position:absolute;left:calc(50% - 76px);bottom:13px;width:152px;height:43px;border:12px solid #182722;border-top:0;border-radius:0 0 18px 18px;transform:rotate(var(--cockpit-turn,0deg))}
.hud[data-vehicle=ufo] .dashboard38{border-radius:85% 85% 0 0;background:linear-gradient(#536573,#192c48);border-color:#80beb8}.hud[data-vehicle=ufo] .instrument38{box-shadow:0 0 15px #69d9da66}.hud[data-vehicle=ufo] .cockpit-wheel38{opacity:.7}
@media(max-width:385px){.hud.split-controls38 .thumb-right{gap:5px}.hud.split-controls38 .thumb-right>button{width:58px}.hud.split-controls38 .thumb-left{left:8px;width:100px}.steer-panel38{right:7px;width:144px}.hud.split-controls38 .ufo-weapons button{width:92px}.hud.split-controls38 .speed>span{max-width:170px}}
@media(orientation:landscape) and (max-height:560px){
 .hud.split-controls38 .thumb-left{left:max(10px,env(safe-area-inset-left));bottom:12px;width:94px;height:142px}.drive-lever38>button{min-height:47px;padding:5px}.drive-lever38 small{font-size:8px}.lever-slot38 i{transform:translateY(calc(var(--lever,0)*-38px))}
 .steer-panel38{right:max(10px,env(safe-area-inset-right));bottom:8px;width:142px;height:148px}.steering-wheel38{height:133px}.steering-wheel38 button{top:37px}
 .hud.split-controls38 .thumb-right{left:116px;right:166px;bottom:13px;gap:6px}.hud.split-controls38 .thumb-right>button{width:52px;height:47px;min-height:47px}.hud.split-controls38 .thumb-right>button small{font-size:8px}
 .hud.split-controls38 .ufo-weapons{left:116px;right:166px;bottom:74px;gap:6px}.hud.split-controls38 .ufo-weapons button{width:88px;min-height:44px;font-size:18px}.hud.split-controls38 .speed,.hud.split-controls38.ufo-flight .speed{bottom:128px;left:50%;transform:translateX(-50%)}
 .hud.split-controls38 .reset-btn,.hud.split-controls38.ufo-flight .reset-btn{bottom:173px;left:12px;min-height:42px}.hud.split-controls38 .speed b{font-size:23px}.hud.split-controls38 .next-direction{font-size:10px;max-width:42vw}
 .dashboard38{height:108px;bottom:-36px;width:470px}.cockpit-wheel38{width:110px;height:110px;left:calc(50% - 55px);top:24px}.instrument38{top:6px}.hud[data-vehicle=tank] .dashboard38{height:104px}
}
