/* Rallyver Redesign 12 — responsive settings, touch zones and readability */
:root{--rv240-hud-alpha:.65;--rv240-meter-alpha:.65;--rv240-lap-alpha:.65;--rv240-time-alpha:.65;--rv240-best-alpha:.65;--rv240-small-screen-meter-h:160px}
/* Use a one-step readability increase for compact game telemetry. */
#rvV6GameHud .rv6-brand-copy small{font-size:clamp(8px,1vw,10px)!important}
#rvV6GameHud .rv6-kicker{font-size:clamp(8px,.85vw,10px)!important}
#rvV6GameHud .rv6-card-head>div small,#rvV6GameHud .rv6-live-tag{font-size:clamp(7px,.8vw,9px)!important}
#rvV6GameHud .rv6-ranking-body,#rvV6GameHud #leaderboard .rank-item{font-size:clamp(9px,.92vw,12px)!important}
#rvV6GameHud #leaderboard .rank-item .rv-rank-laps{font-size:clamp(7px,.8vw,10px)!important}
#rvV6GameHud .rv6-speed-head{font-size:clamp(7px,.85vw,10px)!important}
#rvV6GameHud .rv6-speed-head span:last-child{font-size:clamp(7px,.8vw,9px)!important}
#rvV6GameHud #speed .rv5-speed-unit{font-size:clamp(8px,.82vw,10px)!important}
#rvV6GameHud #speed #rvV5SpeedTag{font-size:clamp(7px,.8vw,9px)!important}
#rvV6GameHud .rv6-speed-foot{font-size:clamp(8px,.85vw,10px)!important}
#rvV6GameHud .rv6-speed-foot small,#rvV6GameHud .rv6-lap-display small,#rvV6GameHud .rv6-time-cell small{font-size:clamp(8px,.8vw,9px)!important}
#rvV6GameHud .rv6-lap-display b,#rvV6GameHud .rv6-time-cell .rv6-time-value{font-size:clamp(12px,1.2vw,16px)!important}
#rvV6GameHud .rv6-session-flag{font-size:clamp(8px,.85vw,10px)!important}
/* Settings shell: compact header, fewer dead strips, active panel owns the scroll. */
#uiPanelInner{width:min(98vw,1160px)!important;max-width:1160px!important;height:min(94dvh,860px)!important;max-height:calc(100dvh - 10px)!important;overflow:hidden!important;padding:8px!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:6px!important}
#uiPanelInner .rv6-settings-mainbar.rv240-compact-mainbar{min-height:37px!important;height:40px!important;flex:0 0 40px!important;padding:4px 9px!important;margin:0!important;gap:8px!important}
#uiPanelInner .rv6-settings-mainbar-copy{display:flex!important;align-items:center!important;gap:0!important;min-width:0!important}
#uiPanelInner .rv6-settings-mainbar-copy h2{font-size:16px!important;line-height:1.2!important}
#uiPanelInner .rv6-settings-mainbar-copy small,#uiPanelInner .rv6-settings-mainbar-copy p,#uiPanelInner .rv6-settings-content-head{display:none!important}
#uiPanelInner #btnCloseUI.rv6-settings-close{align-self:center!important;width:30px!important;height:30px!important;min-height:30px!important;flex:0 0 30px!important;font-size:19px!important}
#uiPanelInner .rv6-settings-layout{flex:1 1 auto!important;min-height:0!important;max-height:calc(100dvh - 58px)!important;grid-template-columns:minmax(112px,158px) minmax(0,1fr)!important;gap:7px!important;align-items:stretch!important;overflow:hidden!important}
#uiPanelInner .rv6-settings-nav{min-height:0!important;max-height:100%!important;overflow:auto!important;gap:6px!important;padding:7px!important;position:relative!important;top:auto!important}
#uiPanelInner .rv6-settings-nav-head{padding-bottom:5px!important;gap:3px!important}
#uiPanelInner .rv6-settings-nav-head small{font-size:8px!important}
#uiPanelInner .rv6-settings-nav-head b{font-size:12px!important}
#uiPanelInner .rally-menu-tabs.rv6-settings-tabs{gap:4px!important}
#uiPanelInner .rmt-tab{min-height:36px!important;height:auto!important;padding:6px 7px!important;font-size:11px!important;line-height:1.35!important;white-space:normal!important}
#uiPanelInner .rv6-settings-content{min-height:0!important;max-height:100%!important;overflow:auto!important;overscroll-behavior:contain!important;gap:6px!important;padding:0!important}
#uiPanelInner .rmt-section{display:none!important;flex:0 0 auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;margin:0!important;padding:10px!important}
#uiPanelInner .rmt-section.active{display:block!important}
#uiPanelInner .rmt-section .rmt-card{margin:0 0 6px!important;padding:8px!important;min-width:0!important}
#uiPanelInner .rmt-section .rmt-card:last-child{margin-bottom:0!important}
#uiPanelInner .rmt-section h3,#uiPanelInner .rmt-section h4{font-size:13px!important;line-height:1.3!important;margin:0 0 7px!important}
#uiPanelInner .rmt-section label{font-size:11px!important;line-height:1.4!important}
#uiPanelInner .rmt-section input:not([type=checkbox]):not([type=radio]):not([type=range]),#uiPanelInner .rmt-section select,#uiPanelInner .rmt-section textarea{min-height:34px!important;padding:6px 8px!important;font-size:11px!important;box-sizing:border-box!important}
#uiPanelInner .rmt-section button{min-height:34px!important;font-size:11px!important}
/* Driving settings: resolution/lanes share a row; every range label remains on one line. */
#uiPanelInner .rv240-control-grid{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;width:100%!important;min-width:0!important}
#uiPanelInner .rv240-setting-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;min-width:0!important}
#uiPanelInner .rv240-setting-row{display:grid!important;grid-template-columns:minmax(136px,.42fr) minmax(0,1fr)!important;align-items:center!important;gap:8px!important;min-width:0!important;padding:4px 0!important;border-bottom:1px solid rgba(211,228,240,.08)!important}
#uiPanelInner .rv240-setting-pair .rv240-setting-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;padding:3px 0!important}
#uiPanelInner .rv240-control-label{display:block!important;min-width:0!important;margin:0!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;font-size:11px!important;line-height:1.25!important;direction:ltr!important;text-align:left!important;color:#d9e4ec!important}
#uiPanelInner .rv240-control-label span{white-space:nowrap!important}
#uiPanelInner .rv240-control-field{min-width:0!important;width:100%!important;display:flex!important;align-items:center!important}
#uiPanelInner .rv240-control-field select{width:100%!important;min-width:0!important;height:31px!important;min-height:31px!important;padding:4px 6px!important;font-size:11px!important}
#uiPanelInner .rv240-control-field input[type=range]{width:100%!important;min-width:0!important;min-height:20px!important;margin:0!important;accent-color:#ef3445!important}
#uiPanelInner #controls{display:grid!important;width:100%!important;min-width:0!important;box-sizing:border-box!important}
#uiPanelInner #controls table{display:none!important}
#uiPanelInner #fps.rv240-fps-line{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;flex-wrap:nowrap!important;min-width:0!important;overflow:hidden!important;margin:0 0 7px!important;padding:5px 7px!important;border:1px solid rgba(200,220,235,.16)!important;background:rgba(255,255,255,.025)!important;border-radius:3px!important}
#uiPanelInner #fps.rv240-fps-line>canvas,#uiPanelInner #fps.rv240-fps-line #stats{width:82px!important;height:34px!important;flex:0 0 82px!important;max-width:82px!important}
#uiPanelInner #fps.rv240-fps-line>div{display:flex!important;align-items:center!important;gap:4px!important;margin:0!important;padding:3px 6px!important;white-space:nowrap!important;font-size:11px!important;line-height:1.25!important;border-width:1px!important;min-width:0!important}
#uiPanelInner .rv240-performance-tip{margin:0 0 7px!important;padding:5px 7px!important;border-right:2px solid #e83749!important;background:rgba(255,255,255,.025)!important;color:#bac8d2!important;font-size:11px!important;line-height:1.45!important}
#uiPanelInner .rv240-reset-button{margin-top:3px!important}
/* Display preferences: checkbox + copy share a line; size and opacity sit side-by-side. */
#uiPanelInner .rv240-display-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-items:start!important}
#uiPanelInner .rv240-name-group{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important;padding:7px!important;border:1px solid rgba(211,228,240,.09)!important;background:rgba(255,255,255,.018)!important}
#uiPanelInner .rv240-name-toggle{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;min-height:25px!important;white-space:nowrap!important;font-size:11px!important}
#uiPanelInner .rv240-name-toggle input[type=checkbox]{flex:0 0 auto!important;margin:0!important}
#uiPanelInner .rv240-name-toggle span{white-space:nowrap!important}
#uiPanelInner .rv240-range-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;min-width:0!important}
#uiPanelInner .rv240-range-field{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0!important;margin:0!important;font-size:10px!important;line-height:1.2!important}
#uiPanelInner .rv240-range-field output{align-self:flex-end!important;color:#fff!important;font-weight:800!important;font-size:11px!important}
#uiPanelInner .rv240-range-field input[type=range]{width:100%!important;min-width:0!important;margin:0!important}
#uiPanelInner .rv240-inline-field{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;align-items:center!important;gap:5px!important;white-space:nowrap!important;margin:0!important;font-size:11px!important}
#uiPanelInner .rv240-inline-field input[type=color]{width:42px!important;min-height:26px!important;height:26px!important;padding:2px!important}
/* Language lives only inside its own panel. */
#uiPanelInner .rv240-language-card{max-width:600px!important}
#uiPanelInner .rv240-language-row-inline{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
#uiPanelInner .rv240-language-row-inline .rv7-language-copy{display:block!important;min-width:0!important;flex:1!important}
#uiPanelInner .rv240-language-row-inline .rv7-language-copy b{font-size:12px!important}
#uiPanelInner .rv240-language-row-inline select{width:min(270px,55%)!important;min-width:125px!important}
/* Independent placement controls and a single shared opacity value for every lap/time card. */
#uiPanelInner .rv240-cockpit-options{margin-top:10px!important;padding:9px!important;border:1px solid rgba(211,228,240,.13)!important;background:rgba(255,255,255,.018)!important;border-radius:3px!important}
#uiPanelInner .rv240-cockpit-options-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-bottom:7px!important}
#uiPanelInner .rv240-cockpit-options-head b,#uiPanelInner .rv240-cockpit-options>h4{font-size:12px!important;margin:0 0 7px!important}
#uiPanelInner .rv240-cockpit-options-head span{font-size:10px!important;color:#8ea4b3!important}
#uiPanelInner .rv240-options-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
#uiPanelInner .rv240-choice{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important;margin:0!important;color:#c9d6df!important;font-size:11px!important;line-height:1.3!important}
#uiPanelInner .rv240-choice select{width:100%!important;min-width:0!important;height:34px!important;min-height:34px!important;padding:5px 7px!important;font-size:11px!important}
#uiPanelInner .rv240-cockpit-note{font-size:10px!important;line-height:1.5!important;color:#8fa2af!important;margin:7px 0 0!important}
#uiPanelInner #rv238PresetStatus{font-size:10px!important;line-height:1.35!important}
/* Dashboard: remove needless duplicate line/index and expose all six destinations without scrolling. */
#rvV6Page_overview .rv6-page-intro{margin:0!important;padding:0!important;border:0!important;min-height:0!important;height:0!important;overflow:hidden!important}
#rvV6Page_overview .rv6-page-intro p,#rvV6Page_overview .rv6-page-index{display:none!important}
#rvV6Page_overview #rvV6PageDescription:empty{display:none!important}
#rvV6Workspace .rv6-workspace-top{min-height:49px!important;padding-block:5px!important}
#rvV6Page_overview .rv6-overview-mast{min-height:100px!important;height:auto!important;padding:10px 14px!important;margin-bottom:7px!important;grid-template-columns:minmax(0,1.45fr) minmax(115px,.55fr)!important;gap:8px!important}
#rvV6Page_overview .rv6-mast-copy h2{font-size:clamp(18px,2vw,24px)!important;margin:5px 0 3px!important;line-height:1.25!important}
#rvV6Page_overview .rv6-mast-copy p{font-size:11px!important;line-height:1.4!important;margin:0!important}
#rvV6Page_overview .rv6-mast-actions{margin-top:7px!important;gap:5px!important}
#rvV6Page_overview .rv6-primary-cta,#rvV6Page_overview .rv6-secondary-cta{min-height:30px!important;padding:5px 8px!important;font-size:10px!important}
#rvV6Page_overview .rv6-session-art{transform:scale(.82)!important;transform-origin:center!important}
#rvV6Page_overview .rv6-overview-metrics{gap:5px!important;margin-bottom:7px!important}
#rvV6Page_overview .rv6-metric-card{padding:6px 8px!important;min-height:46px!important}
#rvV6Page_overview .rv6-metric-card small{font-size:9px!important}
#rvV6Page_overview .rv6-metric-card b{font-size:14px!important;margin-top:2px!important}
#rvV6Page_overview .rv6-metric-foot{font-size:8px!important;margin-top:3px!important;padding-top:3px!important}
#rvV6Page_overview .rv6-section-heading{margin-bottom:5px!important}
#rvV6Page_overview .rv6-section-heading h3{font-size:14px!important}
#rvV6Page_overview .rv6-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
#rvV6Page_overview .rv6-feature-card{min-height:66px!important;padding:7px!important;grid-template-columns:29px minmax(0,1fr) 8px!important;gap:6px!important}
#rvV6Page_overview .rv6-feature-icon{width:28px!important;height:28px!important}
#rvV6Page_overview .rv6-feature-copy{gap:2px!important}
#rvV6Page_overview .rv6-feature-copy small{font-size:8px!important;line-height:1.2!important}
#rvV6Page_overview .rv6-feature-copy b{font-size:11px!important;line-height:1.3!important}
#rvV6Page_overview .rv6-feature-copy>span{font-size:9px!important;line-height:1.3!important}
#rvV6Page_overview .rv6-overview-footer{margin-top:5px!important;font-size:8px!important}
#rvV6Page_overview .rv6-page-host{padding-bottom:8px!important}
.rv6-page-step-btn.rv240-page-step-button{min-height:43px!important;padding-block:9px!important;font-size:11px!important}
/* Touch controls are individual fixed zones — the throttle wrapper must never create a blurred full-height slab. */













/* Selectable HUD/speedometer corners. */
body[data-rv240-hud-position="top-right"] #rvV6GameHud .rv6-topbar{left:auto!important;right:calc(10px + var(--rv6-safe-r))!important}
body[data-rv240-hud-position="bottom-left"] #rvV6GameHud .rv6-topbar{top:auto!important;bottom:calc(9px + var(--rv6-safe-b))!important;left:calc(10px + var(--rv6-safe-l))!important;right:auto!important}
body[data-rv240-hud-position="bottom-right"] #rvV6GameHud .rv6-topbar{top:auto!important;bottom:calc(9px + var(--rv6-safe-b))!important;left:auto!important;right:calc(10px + var(--rv6-safe-r))!important}
body[data-rv240-hud-position="top-right"] #rvV6SessionChip,body[data-rv240-hud-position="top-right"] #rvV6GameHud .rv6-session-chip{left:auto!important;right:calc(10px + var(--rv6-safe-r))!important}
body[data-rv240-hud-position="bottom-left"] #rvV6SessionChip,body[data-rv240-hud-position="bottom-left"] #rvV6GameHud .rv6-session-chip{top:auto!important;bottom:calc(58px + var(--rv6-safe-b))!important;left:calc(10px + var(--rv6-safe-l))!important;right:auto!important}
body[data-rv240-hud-position="bottom-right"] #rvV6SessionChip,body[data-rv240-hud-position="bottom-right"] #rvV6GameHud .rv6-session-chip{top:auto!important;bottom:calc(58px + var(--rv6-safe-b))!important;left:auto!important;right:calc(10px + var(--rv6-safe-r))!important}
body[data-rv240-hud-position="top-right"] #rvV6RankingCard{left:auto!important;right:calc(10px + var(--rv6-safe-r))!important}
body[data-rv240-hud-position="bottom-left"] #rvV6RankingCard{top:auto!important;bottom:calc(58px + var(--rv6-safe-b))!important;left:calc(10px + var(--rv6-safe-l))!important;right:auto!important}
body[data-rv240-hud-position="bottom-right"] #rvV6RankingCard{top:auto!important;bottom:calc(58px + var(--rv6-safe-b))!important;left:auto!important;right:calc(10px + var(--rv6-safe-r))!important}
body[data-rv240-meter-position="top-left"] #rvV6SpeedPod{left:calc(10px + var(--rv6-safe-l))!important;right:auto!important;top:calc(76px + var(--rv6-safe-t))!important;bottom:auto!important}
body[data-rv240-meter-position="top-right"] #rvV6SpeedPod{left:auto!important;right:calc(10px + var(--rv6-safe-r))!important;top:calc(76px + var(--rv6-safe-t))!important;bottom:auto!important}
body[data-rv240-meter-position="bottom-left"] #rvV6SpeedPod{left:calc(10px + var(--rv6-safe-l))!important;right:auto!important;top:auto!important;bottom:calc(10px + var(--rv6-safe-b))!important}
body[data-rv240-meter-position="bottom-right"] #rvV6SpeedPod{left:auto!important;right:calc(10px + var(--rv6-safe-r))!important;top:auto!important;bottom:calc(10px + var(--rv6-safe-b))!important}
/* Opacity changes affect panels, not the legibility of readings. */
#rvV6GameHud .rv6-topbar,#rvV6GameHud .rv6-session-chip,#rvV6GameHud .rv6-ranking-card,#rvV6GameHud .rv6-status-ribbon{background:linear-gradient(115deg,rgba(4,11,17,var(--rv240-hud-alpha,.65)),rgba(5,12,18,var(--rv240-hud-alpha,.65)))!important}
#rvV6GameHud .rv6-speed-pod,#rvV6GameHud #rvV6SpeedPod{background:linear-gradient(145deg,rgba(6,15,23,var(--rv240-meter-alpha,.65)),rgba(2,6,11,var(--rv240-meter-alpha,.65)))!important}
#rvV6GameHud .rv6-lap-display{background:rgba(5,13,20,var(--rv240-lap-alpha,.65))!important}
#rvV6GameHud .rv6-time-cell{background:rgba(5,13,20,var(--rv240-time-alpha,.65))!important}
/* Phone landscape / iPhone SE class heights: shrink the speed pod and relocate throttle safely above it. */
@media (max-height:500px) and (orientation:landscape) {

 :root{--rv240-small-screen-meter-h:100px}
 #rvV6GameHud .rv6-speed-pod,#rvV6GameHud #rvV6SpeedPod{width:clamp(150px,28vw,208px)!important;min-height:0!important;height:100px!important;padding:4px 6px 3px!important;right:calc(6px + var(--rv6-safe-r))!important;bottom:calc(6px + var(--rv6-safe-b))!important;gap:2px!important}
 #rvV6GameHud .rv6-speed-head{font-size:8px!important;padding-left:10px!important;line-height:1.2!important}
 #rvV6GameHud #speed{min-height:58px!important;height:58px!important;overflow:hidden!important}
 #rvV6GameHud #rvV5SpeedArc{top:-14px!important;height:66px!important;width:100%!important}
 #rvV6GameHud #speed_value{margin-top:19px!important;font-size:clamp(23px,4vw,30px)!important;line-height:1!important}
 #rvV6GameHud #rvV6GearReadout{right:3px!important;bottom:9px!important;width:20px!important;height:22px!important}
 #rvV6GameHud #rvV6GearNumber{font-size:13px!important}
 #rvV6GameHud .rv6-speed-foot{padding:2px 4px 0 6px!important;font-size:9px!important}
 #rvV6GameHud .rv6-speed-foot small{font-size:8px!important}
 #rvV6GameHud #rvV6RaceTelemetry{position:relative!important;inset:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%!important;max-width:none!important;flex:0 0 24px!important;height:24px!important;min-height:24px!important;gap:3px!important;margin:1px 0 0!important;padding:2px 3px!important}
 #rvV6GameHud .rv6-lap-display{padding:3px 5px!important;min-width:40px!important}
 #rvV6GameHud .rv6-lap-display b,#rvV6GameHud .rv6-time-cell .rv6-time-value{font-size:12px!important}
 #rvV6GameHud .rv6-time-cell{padding:3px 5px!important;min-width:0!important}
 #rvV6GameHud .rv6-time-cell small,#rvV6GameHud .rv6-lap-display small{font-size:8px!important}
 #rvV6GameHud .rv6-ranking-card{top:calc(77px + var(--rv6-safe-t))!important;max-height:30dvh!important;width:clamp(118px,19vw,160px)!important}
 #rvV6GameHud .rv6-card-head{height:27px!important}
 #rvV6GameHud .rv6-card-head>div small,#rvV6GameHud .rv6-live-tag{font-size:8px!important}
 #rvV6GameHud #leaderboard .rank-item{min-height:23px!important;font-size:9px!important}
 
 
 
 
 #uiPanelInner{width:99vw!important;height:calc(100dvh - 6px)!important;max-height:calc(100dvh - 6px)!important;padding:4px!important;gap:4px!important}
 #uiPanelInner .rv6-settings-mainbar.rv240-compact-mainbar{height:34px!important;min-height:34px!important;flex-basis:34px!important;padding:2px 7px!important}
 #uiPanelInner .rv6-settings-mainbar-copy h2{font-size:14px!important}
 #uiPanelInner .rv6-settings-layout{max-height:calc(100dvh - 44px)!important;grid-template-columns:102px minmax(0,1fr)!important;gap:4px!important}
 #uiPanelInner .rv6-settings-nav{padding:4px!important}
 #uiPanelInner .rmt-tab{min-height:32px!important;padding:5px 4px!important;font-size:10px!important}
 #uiPanelInner .rmt-section{padding:7px!important}
 #uiPanelInner .rmt-section .rmt-card{padding:6px!important}
 #uiPanelInner .rmt-section h3,#uiPanelInner .rmt-section h4{font-size:12px!important;margin-bottom:5px!important}
 #uiPanelInner .rv240-setting-row{grid-template-columns:minmax(126px,.43fr) minmax(0,1fr)!important;gap:5px!important;padding:2px 0!important}
 #uiPanelInner .rv240-control-label{font-size:10px!important}
 #uiPanelInner .rv240-control-field select{height:29px!important;min-height:29px!important;font-size:10px!important}
 #uiPanelInner .rv240-name-group{padding:5px!important;gap:3px!important}
 #uiPanelInner .rv240-range-pair{gap:4px!important}
 #uiPanelInner .rv240-range-field{font-size:10px!important}
 #uiPanelInner .rv240-options-grid{gap:5px!important}
 #rvV6Page_overview .rv6-overview-mast{min-height:78px!important;padding:7px 9px!important;margin-bottom:5px!important}
 #rvV6Page_overview .rv6-mast-copy h2{font-size:17px!important;margin:3px 0!important}
 #rvV6Page_overview .rv6-mast-copy p{font-size:9px!important;line-height:1.3!important}
 #rvV6Page_overview .rv6-mast-actions{margin-top:4px!important}
 #rvV6Page_overview .rv6-primary-cta,#rvV6Page_overview .rv6-secondary-cta{min-height:25px!important;padding:4px 6px!important;font-size:9px!important}
 #rvV6Page_overview .rv6-metric-card{min-height:38px!important;padding:4px 6px!important}
 #rvV6Page_overview .rv6-feature-card{min-height:53px!important;padding:5px!important;gap:4px!important;grid-template-columns:22px minmax(0,1fr) 7px!important}
 #rvV6Page_overview .rv6-feature-icon{width:22px!important;height:22px!important}
 #rvV6Page_overview .rv6-feature-copy small{font-size:8px!important}
 #rvV6Page_overview .rv6-feature-copy b{font-size:10px!important}
 #rvV6Page_overview .rv6-feature-copy>span{font-size:8px!important}
}

@media (max-width:700px) and (orientation:portrait) {
#uiPanelInner{width:99vw!important;max-height:97dvh!important}#uiPanelInner .rv6-settings-layout{grid-template-columns:88px minmax(0,1fr)!important}#uiPanelInner .rv240-display-grid{grid-template-columns:1fr!important}}

/* Individual controller positions. */










/* Preset-independent placement: selections win even when a themed HUD preset has its own defaults. */
body.rv238-hud-vector[data-rv240-meter-position="top-left"] #rvV6GameHud #rvV6SpeedPod{left:calc(10px + var(--rv6-safe-l))!important;right:auto!important;top:calc(76px + var(--rv6-safe-t))!important;bottom:auto!important}
body.rv238-hud-vector[data-rv240-meter-position="top-right"] #rvV6GameHud #rvV6SpeedPod{left:auto!important;right:calc(10px + var(--rv6-safe-r))!important;top:calc(76px + var(--rv6-safe-t))!important;bottom:auto!important}
body.rv238-hud-vector[data-rv240-meter-position="bottom-left"] #rvV6GameHud #rvV6SpeedPod{left:calc(10px + var(--rv6-safe-l))!important;right:auto!important;top:auto!important;bottom:calc(10px + var(--rv6-safe-b))!important}
body.rv238-hud-vector[data-rv240-meter-position="bottom-right"] #rvV6GameHud #rvV6SpeedPod{left:auto!important;right:calc(10px + var(--rv6-safe-r))!important;top:auto!important;bottom:calc(10px + var(--rv6-safe-b))!important}
/* Minimal means logo/menu for the HUD, not disabling the independent speedometer or leaderboard preference. */
body.rv238-hud-minimal #rvV6GameHud #rvV6SpeedPod{display:flex!important}
body.rv238-hud-minimal #rvV6GameHud #rvV6RaceTelemetry{display:flex!important}
body.rv238-hud-minimal:not(.rv238-leaderboard-hidden) #rvV6GameHud #rvV6RankingCard{display:flex!important}
/* Put the throttle zone next to whichever speedometer corner is selected when its mode is relative. */






#rvV6GameHud .rv6-time-cell.rv240-best-time-cell{background:rgba(5,13,20,var(--rv240-time-alpha,.65))!important}
/* High-priority overrides for presets which previously forced a wide cockpit on small landscape screens. */
@media (max-height:500px) and (orientation:landscape) {

 body.rv238-hud-vector #rvV6GameHud #rvV6SpeedPod{width:clamp(150px,28vw,208px)!important;height:100px!important;min-height:0!important;max-width:40vw!important;padding:4px 6px 3px!important}
 body.rv238-meter-vector #rvV6GameHud #rvV6SpeedPod #speed{height:58px!important;min-height:58px!important;max-height:58px!important;padding-bottom:0!important;overflow:hidden!important}
 body.rv238-meter-vector #rvV6GameHud #rvV6SpeedPod #speed_value{margin-top:19px!important;font-size:clamp(23px,4vw,30px)!important;line-height:1!important}
 body.rv238-meter-vector #rvV6GameHud #rvV6SpeedPod #rvV5SpeedArc{height:66px!important;top:-14px!important}
}

body[data-rv240-hud-position="bottom-left"] #rvV6GameHud #rvV6RankingCard,body[data-rv240-hud-position="bottom-right"] #rvV6GameHud #rvV6RankingCard{bottom:calc(104px + var(--rv6-safe-b))!important;top:auto!important}

@media (max-height:500px) and (orientation:landscape) {
#rvV6Page_overview .rv6-overview-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important}}











/* Baseline readability floor for small captions throughout game pages, not just the cockpit. */
#rvV6Workspace .rv6-page small,#rvV6Workspace .rv6-kicker,#rvV6PageHost small,#rvV6PageHost .rv6-kicker{font-size:max(8px,.82em)!important}
#rvV6Workspace .rv6-nav-item .rv6-button-label,#rvV6Workspace .rv6-nav-caption,#rvV6Workspace .rv6-page .rv6-feature-copy small{font-size:max(9px,.82em)!important}
#uiPanelInner small,#uiPanelInner .rmt-note{font-size:max(10px,.88em)!important;line-height:1.4!important}
#rv7HudPopup small,#rv7GuideOverlay small,.rv7-guide-card small,.rv7-popup-card small,.race-panel small,.chat-history-overlay small,.race-final-card small{font-size:max(9px,.85em)!important}

/* Final readability pass: lift tiny captions without making the short-landscape cockpit oversized. */
#rvV6GameHud .rv6-brand-copy small{font-size:clamp(10px,1vw,12px)!important;line-height:1.25!important}
#rvV6GameHud .rv6-kicker,#rvV6GameHud .rv6-card-head>div small,#rvV6GameHud .rv6-live-tag{font-size:clamp(9px,.9vw,11px)!important;line-height:1.25!important}
#rvV6GameHud .rv6-ranking-body,#rvV6GameHud #leaderboard .rank-item{font-size:clamp(10px,.95vw,13px)!important;line-height:1.35!important}
#rvV6GameHud #leaderboard .rank-item .rv-rank-laps{font-size:clamp(9px,.82vw,11px)!important}
#rvV6GameHud .rv6-speed-head,#rvV6GameHud .rv6-speed-head span:last-child,#rvV6GameHud #speed #rvV5SpeedTag{font-size:clamp(9px,.9vw,11px)!important}
#rvV6GameHud #speed .rv5-speed-unit,#rvV6GameHud .rv6-speed-foot{font-size:clamp(10px,.92vw,12px)!important}
#rvV6GameHud .rv6-speed-foot small,#rvV6GameHud .rv6-lap-display small,#rvV6GameHud .rv6-time-cell small{font-size:clamp(9px,.86vw,11px)!important;line-height:1.25!important}
#rvV6GameHud .rv6-session-flag{font-size:clamp(9px,.9vw,11px)!important}
#rvV6Workspace .rv6-page small,#rvV6Workspace .rv6-kicker,#rvV6PageHost small,#rvV6PageHost .rv6-kicker{font-size:max(10px,.9em)!important;line-height:1.35!important}
#rvV6Workspace .rv6-nav-item .rv6-button-label,#rvV6Workspace .rv6-nav-caption,#rvV6Workspace .rv6-page .rv6-feature-copy small{font-size:max(10px,.9em)!important;line-height:1.3!important}
#rvV6Page_overview .rv6-metric-foot,#rvV6Page_overview .rv6-overview-footer{font-size:10px!important;line-height:1.3!important}
#rvV6Page_overview .rv6-feature-copy small{font-size:10px!important;line-height:1.3!important}
#rvV6Page_overview .rv6-feature-copy>span{font-size:10px!important;line-height:1.3!important}
#uiPanelInner .rv6-settings-nav-head small{font-size:10px!important;line-height:1.3!important}
#uiPanelInner .rmt-tab{font-size:12px!important}
#uiPanelInner .rmt-section h3,#uiPanelInner .rmt-section h4{font-size:14px!important}
#uiPanelInner .rmt-section label,#uiPanelInner .rmt-section button{font-size:12px!important}
#uiPanelInner .rmt-section input:not([type=checkbox]):not([type=radio]):not([type=range]),#uiPanelInner .rmt-section select,#uiPanelInner .rmt-section textarea{font-size:12px!important}
#uiPanelInner small,#uiPanelInner .rmt-note{font-size:max(11px,.9em)!important;line-height:1.4!important}
#uiPanelInner .rv240-control-label,#uiPanelInner .rv240-control-field select{font-size:12px!important}
#uiPanelInner #fps.rv240-fps-line>div{font-size:12px!important}
#uiPanelInner .rv240-performance-tip{font-size:12px!important}
#uiPanelInner .rv240-name-toggle,#uiPanelInner .rv240-inline-field{font-size:12px!important}
#uiPanelInner .rv240-range-field{font-size:11px!important}
#uiPanelInner .rv240-range-field output{font-size:12px!important}
#uiPanelInner .rv240-language-row-inline{font-size:12px!important}
.rv6-page-step-btn.rv240-page-step-button{min-height:45px!important;padding-block:10px!important;font-size:12px!important}

/* The two speedometer timing cards have independent background alpha from the meter shell. */
#rvV6GameHud .rv6-time-cell{background:rgba(5,13,20,var(--rv240-time-alpha,.65))!important}
#rvV6GameHud .rv6-time-cell.rv240-best-time-cell{background:rgba(5,13,20,var(--rv240-time-alpha,.65))!important}

/* Short landscape phones: keep the vector preset and every reading within a compact cockpit. */
@media (max-height:500px) and (orientation:landscape) {

 #rvV6GameHud #rvV6SpeedPod{width:clamp(150px,28vw,208px)!important;max-width:40vw!important;height:100px!important;min-height:0!important;padding:4px 6px 3px!important;box-sizing:border-box!important}
 #rvV6GameHud #rvV6SpeedPod #speed{height:58px!important;min-height:58px!important;max-height:58px!important;overflow:hidden!important}
 #rvV6GameHud #rvV6SpeedPod #speed_value{font-size:clamp(23px,4vw,30px)!important;line-height:1!important}
 #rvV6GameHud .rv6-time-cell small,#rvV6GameHud .rv6-lap-display small{font-size:9px!important}
 #rvV6GameHud .rv6-time-cell .rv6-time-value,#rvV6GameHud .rv6-lap-display b{font-size:12px!important}
 #rvV6Workspace .rv6-page .rv6-feature-copy small,#rvV6Workspace .rv6-page .rv6-feature-copy>span{font-size:9px!important}
 #uiPanelInner{height:calc(100dvh - 6px)!important;max-height:calc(100dvh - 6px)!important;padding:5px!important}
 #uiPanelInner .rv6-settings-layout{grid-template-columns:minmax(96px,122px) minmax(0,1fr)!important;gap:5px!important}
 #uiPanelInner .rmt-tab{font-size:11px!important;min-height:34px!important;padding:5px!important}
 #uiPanelInner .rmt-section label,#uiPanelInner .rmt-section button,#uiPanelInner .rmt-section input:not([type=checkbox]):not([type=radio]):not([type=range]),#uiPanelInner .rmt-section select{font-size:11px!important}
}


/* V19.2.359: Hood preset keeps only Rallyver logo + hamburger in the top-left HUD; compact leaderboard stays top-right. */
body.rv238-hud-minimal #rvV6GameHud .rv6-topbar{left:calc(8px + var(--rv6-safe-l))!important;right:auto!important;width:max-content!important;max-width:calc(100vw - 16px)!important;display:flex!important;grid-template-columns:none!important}
body.rv238-hud-minimal #rvV6GameHud .rv6-brand{flex:0 0 38px!important;width:38px!important}
body.rv238-hud-minimal #rvV6GameHud .rv6-top-actions{flex:0 0 36px!important;width:36px!important}
body.rv238-hud-minimal #rvV6GameHud #rvV6RankingCard{position:fixed!important;top:calc(8px + var(--rv6-safe-t))!important;right:calc(8px + var(--rv6-safe-r))!important;left:auto!important;bottom:auto!important;width:clamp(112px,17vw,154px)!important;max-width:38vw!important;min-width:0!important;max-height:24vh!important;overflow:hidden!important;transform:none!important;opacity:1!important;z-index:900!important}
body.rv238-hud-minimal #rvV6GameHud #rvV6RankingCard .rv6-card-head{min-height:22px!important;padding:4px 6px!important}
body.rv238-hud-minimal #rvV6GameHud #rvV6RankingCard .rv6-card-head small{font-size:5px!important}
body.rv238-hud-minimal #rvV6GameHud #rvV6RankingCard .rv6-card-head b{font-size:8px!important}
body.rv238-hud-minimal #rvV6GameHud #rvV6RankingCard .rv6-ranking-body{max-height:17vh!important;overflow:hidden!important}
body.rv238-hud-minimal #rvV6GameHud #rvV6RankingCard .rank-item{min-height:18px!important;padding:2px 5px!important;font-size:8px!important}
