#rotate-device { display:none; }
body.touch { min-width:0; }
body.touch .controls, body.touch .footnote { display:none; }
body.touch #touch-controls:not([hidden]) { display:block!important; user-select:none; }
body.touch #touch-controls[hidden] { display:none!important; }
body.touch .touch-cluster { bottom:max(14px, env(safe-area-inset-bottom)); gap:10px; }
body.touch .touch-cluster.left { left:max(14px, env(safe-area-inset-left)); }
body.touch .touch-cluster.right { right:max(14px, env(safe-area-inset-right)); }
body.touch .touch-btn { width:62px; height:58px; padding:0; border:1px solid #ffffff55; border-radius:8px!important; background:#141c28bb; color:#fff; font:700 20px Arial; touch-action:none; }
body.touch .touch-btn.gas { width:76px; background:#b92c2ad9; font-size:16px; }
body.touch .touch-btn.brake { font-size:16px; }
body.touch .touch-btn.pressed { background:#f2f6fa; color:#121820; }
body.touch .touch-btn:disabled { opacity:.35; }
body.touch .title-inner { min-width:0; width:min(560px,100%); max-height:100dvh; overflow-y:auto; padding:28px 28px 18px; border-radius:0; }
body.touch .title-inner::before { top:0; height:4px; }
body.touch .title-inner::after { display:none; }
body.touch .title-inner h1 { font-size:54px; line-height:.95; margin:12px 0; }
body.touch .race-brand .kicker { font-size:8px; }
body.touch .brand-subtitle { font-size:8px; }
body.touch .tagline { margin:14px 0; font-size:12px; }
body.touch .challenge-brief { padding:12px; margin:12px 0; }
body.touch .driver-duel { font-size:30px; }
body.touch .challenge-brief p { font-size:11px; }
body.touch .scenario-meta { margin:12px 0; }
body.touch .race-actions .primary-btn { padding:14px 8px; min-height:56px; }
body.touch .race-actions .primary-btn > span { font-size:14px; }
body.touch .results-card { max-height:100dvh; overflow-y:auto; width:min(560px,100%); padding:24px; }
body.touch #sound-toggle { top:auto; bottom:84px; right:max(14px,env(safe-area-inset-right)); font-size:9px; }
body.touch #broadcast-hud .gap-strip { top:40px; left:calc(50% + clamp(150px,24vw,220px)/2 + 8px); right:120px; gap:5px 7px; padding:8px 4px; }
body.touch #broadcast-hud .gap-strip::before { backdrop-filter:none; }
body.touch #broadcast-hud .gap-strip span { font-size:7px; letter-spacing:.07em; }
body.touch #broadcast-hud .gap-strip strong { font-size:11px; }
body.touch #broadcast-hud .gap-strip b { font-size:14px; padding-left:8px; }
body.touch #broadcast-hud .circuit-map { top:8px; right:8px; width:104px; display:block; }
body.touch #broadcast-hud .timing-tower { top:8px; left:max(8px,env(safe-area-inset-left)); width:126px; }
body.touch .tower-caption { display:flex; font-size:9px; padding:7px; }
body.touch .tower-caption small { display:none; }
body.touch #tower-rows li { height:22px; grid-template-columns:18px 3px 29px 1fr; gap:3px; font-size:10px; }
body.touch #tower-rows li:nth-child(n+4):not(.player):not(.target) { display:none; }
body.touch #tower-rows b { font-size:11px; }
body.touch #tower-rows .rank, body.touch #tower-rows .interval { font-size:9px; }
body.touch #tower-rows .tyre, body.touch #tower-rows .fastest-mark { display:none; }
body.touch #broadcast-hud .telemetry { top:auto; bottom:8px; left:50%; right:auto; transform:translateX(-50%); width:120px; height:82px; }
body.touch .speedometer-canvas { width:120px; height:82px; }
body.touch .speedometer-readout { top:42px; }
body.touch .speedometer-readout strong { font-size:22px; }
body.touch .speedometer-readout small { font-size:5px; }
body.touch .gear-readout { bottom:6px; left:12px; }
body.touch .gear-readout b { font-size:13px; }
body.touch #broadcast-hud .fastest-banner { top:80px; bottom:auto; font-size:10px; height:26px; }
body.touch .fastest-banner b { padding:0 8px; font-size:8px; }
body.touch .fastest-banner span { padding:0 8px; }
body.touch .fastest-banner strong { padding-right:8px; }
body.touch .lap-comparison { display:none!important; }
@media (pointer:coarse) and (orientation:portrait) {
 #rotate-device { display:flex; position:fixed; inset:0; z-index:100; background:#111923; align-items:center; justify-content:center; flex-direction:column; gap:16px; padding:40px; text-align:center; }
 #rotate-device b { font-size:24px; }
 #rotate-device span { font-size:14px; color:#a6b5c5; line-height:1.7; }
}
@media (pointer:coarse) and (max-height:360px) {
 body.touch .touch-btn { height:48px; }
 body.touch #broadcast-hud .fastest-banner { top:68px; }
}
