/* V5.122 SMARTPHONE TOUCH HUD. Keep gamepad / PC unaffected. */
@media (orientation:landscape) and (hover:none) and (pointer:coarse){
body.haruna-touch-drive-v5116 #harunaTouchDriveV5116 .ht115-mode{display:none!important}
body.haruna-touch-drive-v5116 #harunaTouchDriveV5116 .ht115-menu{top:auto!important;bottom:calc(env(safe-area-inset-bottom) + 4px)!important;right:max(5px,env(safe-area-inset-right))!important;width:58px!important;height:28px!important;font:800 11px/1 Arial!important;padding:3px!important;border:1px solid #65bfff!important;background:rgba(3,20,42,.3)!important;color:#d9f6ff!important;box-shadow:0 0 7px #08adfa!important;z-index:99999!important}
body.haruna-touch-drive-v5116 #harunaTouchDriveV5116 .ht115-steer,body.haruna-touch-drive-v5116 #harunaTouchDriveV5116 .ht115-brake{background:linear-gradient(160deg,rgba(0,33,57,.27),rgba(0,13,33,.13))!important;border:2px solid #47cdff!important;color:#e1faff!important;text-shadow:0 0 9px #25c6ff!important;box-shadow:0 0 9px #03baff,0 0 17px #007fee88,inset 0 0 8px #00aeff33!important}
body.haruna-touch-drive-v5116 #harunaTouchDriveV5116 .ht115-steer.is-pressed,body.haruna-touch-drive-v5116 #harunaTouchDriveV5116 .ht115-brake.is-pressed{background:rgba(12,133,219,.45)!important;border-color:#d3faff!important;box-shadow:0 0 15px #a3ecff,0 0 28px #00bfff,inset 0 0 14px #5feaff!important}
/* Existing rotating mini-map: inside steering, reduced size. */
body.haruna-touch-drive-v5116 #harunaMapHudV1635{left:clamp(116px,16vw,158px)!important;top:43%!important;width:clamp(92px,13.5vw,128px)!important;height:clamp(92px,13.5vw,128px)!important;opacity:.92!important;z-index:2700!important}
/* Full course map: independent window, existing mpMapCanvas is reparented here in JS. */
body.haruna-touch-drive-v5116 #harunaFullMapTouchV5122{position:fixed!important;left:max(7px,env(safe-area-inset-left))!important;bottom:calc(env(safe-area-inset-bottom) + 8px)!important;width:clamp(68px,13vw,112px)!important;height:clamp(65px,21dvh,105px)!important;z-index:2700!important;background:rgba(1,16,30,.2)!important;border:1px solid #44b7f088!important;border-radius:5px!important;pointer-events:none!important;overflow:hidden!important;display:block!important}
#harunaFullMapTouchV5122 canvas{width:100%!important;height:100%!important;display:block!important}
body.haruna-touch-drive-v5116 #harunaEurobeatRadio{position:fixed!important;top:max(3px,env(safe-area-inset-top))!important;right:clamp(198px,26vw,250px)!important;left:auto!important;width:42px!important;height:32px!important;min-width:0!important;overflow:hidden!important;padding:0!important;z-index:2800!important}
body.haruna-touch-drive-v5116 #harunaEurobeatRadio .radioName{display:none!important}
body.haruna-touch-drive-v5116 #harunaEurobeatRadio .radioMark{font-size:16px!important}
body.haruna-touch-drive-v5116 #harunaEurobeatRadioToggle{font-size:9px!important;min-width:24px!important;width:24px!important}
}
#harunaFullMapTouchV5122{display:none}

/* V5.123: Touch racing lap/time readout is independent of the portrait-only HUD. */
#harunaTouchTimeV5123{display:none}
@media (orientation:landscape) and (hover:none) and (pointer:coarse){
 body.haruna-touch-drive-v5116 #harunaTouchTimeV5123{display:flex!important;position:fixed!important;top:calc(env(safe-area-inset-top) + 3px)!important;left:max(79px,env(safe-area-inset-left))!important;z-index:2750!important;pointer-events:none!important;min-width:130px!important;max-width:min(34vw,205px)!important;height:40px!important;box-sizing:border-box!important;flex-direction:column!important;justify-content:center!important;padding:3px 8px!important;border:1px solid #62cfff99!important;border-radius:7px!important;background:rgba(2,13,28,.80)!important;color:#f5fbff!important;font:800 10px/1.2 Arial,sans-serif!important;letter-spacing:.015em!important;}
 #harunaTouchTimeV5123 .ht123-line{display:flex!important;gap:7px!important;align-items:center!important;white-space:nowrap!important;}
 #harunaTouchTimeV5123 .ht123-time{font-size:15px!important;line-height:1.1!important;font-weight:900!important;font-variant-numeric:tabular-nums!important;}
 #harunaTouchTimeV5123 .ht123-best{font-size:9px!important;color:#bfe7fa!important;white-space:nowrap!important;}
}
