/* Rallyver V19.2.246 responsive refinement — keeps approved Vector shell and existing HUD controls. */

/* The overview session instrument must remain readable instead of being globally shrunk. */
#rvV6Page_overview .rv6-session-art{
  transform:none!important;transform-origin:center!important;width:100%!important;max-width:100%!important;min-width:0!important;
  min-height:128px!important;padding:11px 12px!important;box-sizing:border-box!important;
}
#rvV6Page_overview .rv6-session-art-top{font-size:clamp(7px,1vw,9px)!important;letter-spacing:.11em!important;gap:6px!important;white-space:normal!important;}
#rvV6Page_overview .rv6-session-art>strong{font-size:clamp(16px,2vw,23px)!important;line-height:1.12!important;margin:12px 0 5px!important;overflow-wrap:anywhere!important;}
#rvV6Page_overview .rv6-session-art>small{font-size:clamp(8px,1vw,10px)!important;letter-spacing:.07em!important;white-space:normal!important;overflow-wrap:anywhere!important;}
#rvV6Page_overview .rv6-session-art-data{gap:clamp(10px,2vw,22px)!important;flex-wrap:wrap!important;margin-top:11px!important;}
#rvV6Page_overview .rv6-session-art-data b{font-size:clamp(16px,2.2vw,23px)!important;}
#rvV6Page_overview .rv6-session-art-data small{font-size:8px!important;}

/* Entry card: slightly wider shell, centered logo, narrower name field. */
body.rv-v6-ready #loginOverlay .login-box{width:min(97vw,1160px)!important;max-width:1160px!important;}
body.rv-v6-ready #loginOverlay .rv6-login-shell{width:100%!important;max-width:1160px!important;grid-template-columns:minmax(0,1.12fr) minmax(275px,.88fr)!important;}
body.rv-v6-ready #loginOverlay .rv6-login-brand{align-items:center!important;justify-content:center!important;text-align:center!important;width:100%!important;}
body.rv-v6-ready #loginOverlay .rv6-login-brand .rv-login-logo{display:block!important;align-self:center!important;object-position:center center!important;margin-inline:auto!important;width:min(190px,100%)!important;max-width:100%!important;}
body.rv-v6-ready #loginOverlay .rv6-login-field{width:min(100%,390px)!important;max-width:390px!important;align-self:center!important;box-sizing:border-box!important;}
body.rv-v6-ready #loginOverlay .rv6-login-field input{width:100%!important;max-width:100%!important;box-sizing:border-box!important;}
body.rv-v6-ready #loginOverlay .rv6-login-form #btnJoin{width:min(100%,390px)!important;max-width:390px!important;align-self:center!important;}
@media (max-width:760px) {

  body.rv-v6-ready #loginOverlay .login-box{width:97vw!important;max-width:97vw!important;}
  body.rv-v6-ready #loginOverlay .rv6-login-shell{width:100%!important;grid-template-columns:minmax(0,1.03fr) minmax(245px,.97fr)!important;}
  body.rv-v6-ready #loginOverlay .rv6-login-field,body.rv-v6-ready #loginOverlay .rv6-login-form #btnJoin{width:94%!important;max-width:360px!important;}
  #rvV6Page_overview .rv6-session-art{min-height:118px!important;padding:9px!important;}
}


/* Driving Resolution and Lanes are always presented on one row in two unequal columns. */
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair{
  display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)!important;grid-auto-flow:row!important;
  grid-column:1/-1!important;align-items:stretch!important;gap:7px!important;width:100%!important;min-width:0!important;
}
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair>.rv240-setting-row{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;min-width:0!important;width:100%!important;max-width:100%!important;overflow:hidden!important;box-sizing:border-box!important;
}
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair>.rv240-setting-row .rv240-control-label{
  display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;min-width:0!important;width:100%!important;
}
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair>.rv240-setting-row .rv240-control-field,
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair>.rv240-setting-row select{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}

/* The tab rail owns its own scroll area; content below it stays reachable on short landscape phones. */
#uiPanelInner,.rv6-settings-layout,.rv6-settings-nav,.rv6-settings-content{min-height:0!important;}
#uiPanelInner .rally-menu-tabs.rv6-settings-tabs{min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;}
#uiPanelInner #rv244SettingsTabScroll{position:relative!important;z-index:5!important;display:flex!important;pointer-events:auto!important;touch-action:pan-y!important;cursor:pointer!important;}
#uiPanelInner .rv6-settings-content{min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;}
#uiPanelInner .rmt-section.active{min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;}
@media (max-height:520px) {

  #uiPanelInner .rally-menu-tabs.rv6-settings-tabs{max-height:48dvh!important;}
  #uiPanelInner .rv6-settings-content{max-height:calc(100dvh - 18px)!important;}
  #uiPanelInner .rmt-section.active{max-height:calc(100dvh - 28px)!important;}
}


/* Independent scroll for workspace pages and modal content, without scrolling the game canvas. */
#rvV6Workspace{min-width:0!important;min-height:0!important;}
#rvV6Workspace .rv6-workspace-main{min-width:0!important;min-height:0!important;overflow:hidden!important;}
#rvV6Workspace .rv6-page-host{min-width:0!important;min-height:0!important;max-width:100%!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;}
#rvV6Workspace .rv6-page{min-width:0!important;min-height:0!important;max-width:100%!important;overflow-wrap:anywhere!important;}
#rvV6Page_room #rvRoomPopup .rv-modal-card,#rvV6Page_sponsorship #supportPopup .rv-popup-card,
#rvV6Page_academy #academyPopup .rv-popup-card{max-height:calc(100dvh - 18px)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;}
#racePanel{min-height:0!important;max-height:calc(100dvh - 16px)!important;overflow:hidden!important;}
#racePanel .race-rooms-list{min-height:0!important;flex:1 1 auto!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;}

/* Three-part race toolbar: controls, session-status chip, race-status message. */
#racePanel .rv246-race-tools-row{display:grid!important;grid-template-columns:minmax(0,1.85fr) minmax(82px,.72fr) minmax(100px,.95fr)!important;align-items:stretch!important;gap:6px!important;min-width:0!important;width:100%!important;margin:5px 0!important;}
#racePanel .rv246-race-tools-row>*{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
#racePanel .rv246-race-tools-row .race-panel__controls{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-content:start!important;align-items:stretch!important;gap:5px!important;margin:0!important;padding:5px!important;min-width:0!important;}
#racePanel .rv246-race-tools-row .race-panel__controls #raceRoomSelect,
#racePanel .rv246-race-tools-row .race-panel__controls #roomPasswordInput{grid-column:1/-1!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,
#racePanel .rv246-race-tools-row .race-panel__controls #btnEntryProposal,
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom{min-width:0!important;width:100%!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:clamp(9px,1vw,11px)!important;line-height:1.35!important;padding:6px!important;box-sizing:border-box!important;}
#racePanel .rv246-race-tools-row #racePanelStatus,
#racePanel .rv246-race-tools-row #raceStatusBox{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;max-width:100%!important;min-height:30px!important;height:auto!important;margin:0!important;padding:5px 7px!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;text-align:center!important;line-height:1.35!important;font-size:clamp(9px,1vw,11px)!important;box-sizing:border-box!important;}
#racePanel .rv246-race-tools-row #racePanelStatus{border:1px solid rgba(90,210,243,.2)!important;border-radius:8px!important;background:rgba(23,73,90,.18)!important;color:#bfeefa!important;}
#racePanel .rv246-race-tools-row #raceStatusBox{border:1px solid rgba(255,255,255,.09)!important;border-radius:8px!important;background:rgba(255,255,255,.035)!important;}
@media (max-width:560px) {

 #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,1.55fr) minmax(65px,.72fr) minmax(76px,.85fr)!important;gap:4px!important;}
 #racePanel .rv246-race-tools-row .race-panel__controls{gap:4px!important;padding:4px!important;}
 #racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,#racePanel .rv246-race-tools-row .race-panel__controls #btnEntryProposal,#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom{font-size:9px!important;padding:5px 3px!important;}
 #racePanel .rv246-race-tools-row #racePanelStatus,#racePanel .rv246-race-tools-row #raceStatusBox{font-size:8px!important;padding:4px!important;}
}


/* Small-phone workspace: remove the dead gap next to the icon-only rail. */
@media (max-width:700px) {

 #rvV6Workspace{grid-template-columns:56px minmax(0,1fr)!important;column-gap:0!important;gap:0!important;width:100%!important;max-width:100%!important;padding:0!important;}
 #rvV6Workspace .rv6-nav-rail{width:56px!important;min-width:56px!important;max-width:56px!important;flex:0 0 56px!important;margin:0!important;padding-inline:3px!important;overflow-x:hidden!important;}
 #rvV6Workspace .rv6-workspace-main{grid-column:2!important;flex:1 1 0!important;width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;}
 #rvV6Workspace .rv6-page-host{width:100%!important;max-width:100%!important;padding-inline:0!important;}
 #rvV6Workspace .rv6-nav-group-label{display:none!important;}
}


/* Two separate controller help cards are placed by JS beside their own touch controls. */
#rv7ControllerCoach .rv7-control-tip{width:min(250px,42vw)!important;min-width:154px!important;max-width:calc(100vw - 18px)!important;max-height:calc(100dvh - 18px)!important;overflow-y:auto!important;padding:10px 11px!important;}
#rv7ControllerCoach .rv7-control-tip p{font-size:clamp(10px,1.1vw,12px)!important;line-height:1.6!important;overflow-wrap:anywhere!important;}
#rv7ControllerCoach .rv7-control-tip button{min-height:34px!important;}
@media (max-width:420px) {

 #rv7ControllerCoach .rv7-control-tip{width:min(46vw,220px)!important;min-width:142px!important;padding:8px!important;}
 #rv7ControllerCoach .rv7-control-tip>b{font-size:11px!important;}
 #rv7ControllerCoach .rv7-control-tip p{font-size:10px!important;line-height:1.5!important;}
}



/* Redesign 15 refinements: keep the session card legible in compact landscape layouts. */
#rvV6Page_overview .rv6-overview-mast{grid-template-columns:minmax(0,1.18fr) minmax(170px,.82fr)!important;align-items:stretch!important;min-width:0!important;}
#rvV6Page_overview .rv6-mast-copy,#rvV6Page_overview .rv6-mast-instrument{min-width:0!important;}
#rvV6Page_overview .rv6-session-art{flex:0 0 auto!important;align-self:stretch!important;min-width:0!important;min-height:144px!important;padding:12px!important;overflow:hidden!important;}
#rvV6Page_overview .rv6-session-art-top{font-size:clamp(9px,1vw,11px)!important;letter-spacing:.08em!important;}
#rvV6Page_overview .rv6-session-art>strong{font-size:clamp(18px,2.2vw,25px)!important;margin:12px 0 7px!important;letter-spacing:-.025em!important;}
#rvV6Page_overview .rv6-session-art>small{font-size:clamp(9px,1vw,11px)!important;letter-spacing:.035em!important;}
#rvV6Page_overview .rv6-session-art-data{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:12px!important;}
#rvV6Page_overview .rv6-session-art-data>span{min-width:0!important;}
#rvV6Page_overview .rv6-session-art-data b{font-size:clamp(18px,2vw,24px)!important;line-height:1.15!important;}
#rvV6Page_overview .rv6-session-art-data small{font-size:9px!important;letter-spacing:.08em!important;}

/* Narrow screens need a deliberate stacked login composition, not two cramped grid columns. */
@media (max-width:560px) and (orientation:portrait) {

 body.rv-v6-ready #loginOverlay .login-box{width:min(94vw,440px)!important;max-width:94vw!important;max-height:92dvh!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;}
 body.rv-v6-ready #loginOverlay .rv6-login-shell{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;gap:12px!important;}
 body.rv-v6-ready #loginOverlay .rv6-login-aside{min-height:0!important;padding:14px!important;overflow:visible!important;}
 body.rv-v6-ready #loginOverlay .rv6-login-system-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;}
 body.rv-v6-ready #loginOverlay .rv6-login-form{min-width:0!important;width:100%!important;padding:14px!important;box-sizing:border-box!important;}
 body.rv-v6-ready #loginOverlay .rv6-login-field,body.rv-v6-ready #loginOverlay .rv6-login-form #btnJoin{width:100%!important;max-width:320px!important;}
}


/* Ensure all commonly opened workspace modals can scroll internally on short devices. */
#rvV6Page_driver #playerProfilePopup .rv-modal-card,
#rvV6Page_wallet #rvWalletPopup .rv-modal-card,
#rvV6Page_progress #rvScorePopup .rv-modal-card,
#rvV6Page_room #rvRoomPopup .rv-modal-card,
#rvV6Page_sponsorship #supportPopup .rv-popup-card,
#rvV6Page_academy #academyPopup .rv-popup-card,
#rvV6Page_social .chat-history-card,
#rvV6Page_support .chat-history-card,
#rvV6Page_management #adminPanel .admin-content,
#rvV6Page_management #adminPanel .admin-body{
 min-height:0!important;max-height:calc(100dvh - 30px)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;box-sizing:border-box!important;
}
@media (max-height:520px) {

 #rvV6Workspace .rv6-page-host{max-height:calc(100dvh - 42px)!important;}
 #rvV6Page_driver #playerProfilePopup .rv-modal-card,#rvV6Page_wallet #rvWalletPopup .rv-modal-card,#rvV6Page_progress #rvScorePopup .rv-modal-card,#rvV6Page_room #rvRoomPopup .rv-modal-card,#rvV6Page_sponsorship #supportPopup .rv-popup-card,#rvV6Page_academy #academyPopup .rv-popup-card,#rvV6Page_social .chat-history-card,#rvV6Page_support .chat-history-card{max-height:calc(100dvh - 18px)!important;padding:9px!important;}
}


/* Maintain the Vector side rail without a dead gap; the page host receives every remaining pixel. */
@media (max-width:700px) {

 #rvV6Workspace{grid-template-columns:56px minmax(0,1fr)!important;grid-auto-flow:column!important;column-gap:0!important;}
 #rvV6Workspace .rv6-workspace-main{grid-column:2!important;display:flex!important;flex-direction:column!important;min-width:0!important;max-width:none!important;flex:1 1 0!important;}
 #rvV6Workspace .rv6-workspace-top{min-width:0!important;max-width:100%!important;}
 #rvV6Workspace .rv6-page-host{flex:1 1 auto!important;min-height:0!important;}
}

@media (max-width:480px) {

 #rvV6Workspace{grid-template-columns:52px minmax(0,1fr)!important;}
 #rvV6Workspace .rv6-nav-rail{width:52px!important;min-width:52px!important;max-width:52px!important;flex-basis:52px!important;}
 #rvV6Workspace .rv6-workspace-main{grid-column:2!important;width:auto!important;max-width:none!important;}
 #rvV6Page_overview .rv6-overview-mast{grid-template-columns:minmax(0,1fr)!important;min-height:0!important;padding:10px!important;}
 #rvV6Page_overview .rv6-session-art{min-height:150px!important;padding:12px!important;}
 #rvV6Page_overview .rv6-session-art-top{font-size:9px!important;}
 #rvV6Page_overview .rv6-session-art>strong{font-size:20px!important;}
 #rvV6Page_overview .rv6-session-art-data b{font-size:20px!important;}
 #rvV6Page_overview .rv6-session-art-data small{font-size:9px!important;}
}



/* V19.2.246 responsive repair 16 — final cascade for narrow phones and touch play. */
@media  (max-width:700px) {

  #rvV6Workspace{display:grid!important;grid-template-columns:clamp(42px,12vw,50px) minmax(0,1fr)!important;grid-auto-flow:row!important;gap:0!important;column-gap:0!important;width:100vw!important;max-width:100vw!important;min-width:0!important;padding:0!important;box-sizing:border-box!important;}
  #rvV6Workspace>.rv6-nav-rail,#rvV6Workspace .rv6-nav-rail{grid-column:1!important;grid-row:1!important;width:clamp(42px,12vw,50px)!important;min-width:clamp(42px,12vw,50px)!important;max-width:clamp(42px,12vw,50px)!important;flex:none!important;margin:0!important;padding-inline:2px!important;box-sizing:border-box!important;}
  #rvV6Workspace>.rv6-workspace-main,#rvV6Workspace .rv6-workspace-main{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;justify-self:stretch!important;align-self:stretch!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;box-sizing:border-box!important;overflow:hidden!important;}
  #rvV6Workspace .rv6-workspace-top{width:100%!important;max-width:100%!important;min-width:0!important;}
  #rvV6Workspace .rv6-page-host{flex:1 1 0!important;width:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding-inline:0!important;box-sizing:border-box!important;}
  #rvV6Workspace .rv6-nav-group-label{display:none!important;}
}

@media  (max-width:430px) {

  #rvV6Workspace{grid-template-columns:44px minmax(0,1fr)!important;}
  #rvV6Workspace>.rv6-nav-rail,#rvV6Workspace .rv6-nav-rail{width:44px!important;min-width:44px!important;max-width:44px!important;}
  #rvV6Workspace>.rv6-workspace-main,#rvV6Workspace .rv6-workspace-main{grid-column:2!important;min-width:0!important;width:100%!important;}
}


/* Whole races page scrolls in the workspace rather than clipping the list in the card. */
#rvV6Workspace .rv6-page-host{min-height:0!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;}
#rvV6Page_races{min-height:max-content!important;height:auto!important;overflow:visible!important;}
#rvV6Page_races #racePanel[data-v6-active="true"],#racePanel[data-v6-active="true"]{position:relative!important;height:auto!important;max-height:none!important;overflow:visible!important;min-height:0!important;}
#rvV6Page_races #raceRoomsList,#racePanel[data-v6-active="true"] #raceRoomsList{height:auto!important;max-height:none!important;overflow:visible!important;}

/* One compact four-cell toolbar: controls, header status, wide status and search icon. */
#racePanel .rv246-race-tools-row{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(68px,.72fr) minmax(0,1.55fr) 34px!important;align-items:stretch!important;gap:5px!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;}
#racePanel .rv246-race-tools-row>*{align-self:stretch!important;min-width:0!important;min-height:38px!important;height:100%!important;box-sizing:border-box!important;}
#racePanel .rv246-race-tools-row .race-panel__controls{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;width:max-content!important;max-width:100%!important;min-width:0!important;gap:4px!important;padding:4px!important;margin:0!important;overflow:hidden!important;}
#racePanel .rv246-race-tools-row .race-panel__controls #raceRoomSelect{flex:1 1 72px!important;width:72px!important;min-width:0!important;max-width:110px!important;padding:5px 3px!important;font-size:clamp(8px,1.6vw,11px)!important;}
#racePanel .rv246-race-tools-row .race-panel__controls #roomPasswordInput{display:none!important;}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace{flex:0 0 auto!important;width:auto!important;min-width:max-content!important;max-width:none!important;white-space:nowrap!important;overflow-wrap:normal!important;padding:6px 7px!important;font-size:clamp(9px,1.65vw,11px)!important;line-height:1.2!important;}
#racePanel .rv246-race-tools-row .race-panel__controls #btnEntryProposal,#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom{flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:76px!important;white-space:normal!important;overflow-wrap:anywhere!important;padding:4px!important;font-size:clamp(8px,1.45vw,10px)!important;line-height:1.2!important;}
#racePanel .rv246-race-tools-row #racePanelStatus{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;overflow:hidden!important;overflow-wrap:anywhere!important;white-space:normal!important;text-align:center!important;padding:4px!important;font-size:clamp(8px,1.55vw,10px)!important;line-height:1.25!important;}
#racePanel .rv246-race-tools-row #raceStatusBox{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:100%!important;margin:0!important;padding:5px 6px!important;overflow:hidden!important;overflow-wrap:anywhere!important;white-space:normal!important;text-align:center!important;font-size:clamp(9px,1.7vw,11px)!important;line-height:1.25!important;}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap{display:flex!important;position:relative!important;align-items:center!important;justify-content:center!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:38px!important;min-height:38px!important;padding:0!important;margin:0!important;overflow:visible!important;box-sizing:border-box!important;}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle{display:flex!important;align-items:center!important;justify-content:center!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:38px!important;min-height:38px!important;padding:0!important;margin:0!important;}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap #rvRoomSearchInput{display:none!important;}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap.rv242-search-expanded #rvRoomSearchInput,#racePanel .rv246-race-tools-row #rvRoomSearchWrap.rv245-search-open #rvRoomSearchInput{display:block!important;position:absolute!important;top:calc(100% + 4px)!important;right:0!important;width:min(250px,88vw)!important;max-width:88vw!important;z-index:1000!important;background:#080e14!important;box-shadow:0 8px 24px rgba(0,0,0,.55)!important;}
@media (max-width:560px) {

 #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,1.22fr) minmax(56px,.68fr) minmax(0,1.35fr) 30px!important;gap:3px!important;}
 #racePanel .rv246-race-tools-row>*{min-height:34px!important;}
 #racePanel .rv246-race-tools-row .race-panel__controls{gap:3px!important;padding:3px!important;}
 #racePanel .rv246-race-tools-row .race-panel__controls #raceRoomSelect{flex-basis:58px!important;width:58px!important;font-size:8px!important;}
 #racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace{font-size:9px!important;padding:5px 4px!important;}
 #racePanel .rv246-race-tools-row .race-panel__controls #btnEntryProposal,#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom{max-width:52px!important;font-size:8px!important;padding:3px!important;}
 #racePanel .rv246-race-tools-row #rvRoomSearchWrap,#racePanel .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle{width:30px!important;min-width:30px!important;max-width:30px!important;height:34px!important;min-height:34px!important;}
 #racePanel .rv246-race-tools-row #racePanelStatus,#racePanel .rv246-race-tools-row #raceStatusBox{font-size:8px!important;padding:3px!important;}
}


/* Settings content fills the panel; the close button floats and does not consume a header row. */
#uiPanelInner{position:relative!important;display:flex!important;flex-direction:column!important;min-height:0!important;height:100%!important;max-height:100%!important;overflow:hidden!important;box-sizing:border-box!important;}
#uiPanelInner .rv6-settings-mainbar,#uiPanelInner .rv240-compact-mainbar{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;}
#uiPanelInner .rv6-settings-layout{display:grid!important;grid-template-columns:minmax(94px,clamp(96px,22vw,154px)) minmax(0,1fr)!important;gap:6px!important;flex:1 1 auto!important;height:100%!important;min-height:0!important;overflow:hidden!important;}
#uiPanelInner .rv6-settings-nav{display:flex!important;flex-direction:column!important;align-self:stretch!important;min-width:0!important;min-height:0!important;max-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;}
#uiPanelInner .rally-menu-tabs.rv6-settings-tabs{flex:0 0 auto!important;min-height:max-content!important;max-height:none!important;overflow:visible!important;}
#uiPanelInner #rv244SettingsTabScroll{position:sticky!important;bottom:0!important;z-index:30!important;flex:0 0 32px!important;align-self:stretch!important;min-height:32px!important;margin-top:auto!important;background:rgba(9,17,26,.96)!important;box-shadow:0 -5px 15px rgba(0,0,0,.3)!important;touch-action:pan-y!important;}
#uiPanelInner .rv6-settings-content{min-height:0!important;height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;}
#uiPanelInner .rmt-section.active{min-height:0!important;overflow-x:hidden!important;overflow-y:visible!important;}
#uiPanelInner .rv246-floating-settings-close{position:absolute!important;top:5px!important;left:5px!important;right:auto!important;z-index:80!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;padding:0!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:7px!important;}
@media (max-width:560px) {

 #uiPanelInner .rv6-settings-layout{grid-template-columns:minmax(84px,27vw) minmax(0,1fr)!important;gap:4px!important;}
 #uiPanelInner .rv6-settings-nav{padding:5px!important;gap:5px!important;}
 #uiPanelInner .rally-menu-tabs.rv6-settings-tabs .rmt-tab{padding:7px 4px!important;font-size:9px!important;white-space:normal!important;overflow-wrap:anywhere!important;}
 #uiPanelInner .rv6-settings-content{padding:5px!important;}
}


/* Resolution and Lanes are adjacent controls even in narrow mobile settings. */
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair{display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)!important;grid-column:1/-1!important;gap:6px!important;width:100%!important;min-width:0!important;}
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair>.rv240-setting-row{display:flex!important;flex-direction:column!important;min-width:0!important;width:100%!important;max-width:100%!important;}
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair>.rv240-setting-row .rv240-control-label{font-size:clamp(8px,1.6vw,10px)!important;white-space:normal!important;}

/* The two login cards never scroll independently; logo and name form share a single width. */
body.rv-v6-ready #loginOverlay .login-box{overflow:hidden!important;overflow-x:hidden!important;overflow-y:hidden!important;overscroll-behavior:none!important;}
body.rv-v6-ready #loginOverlay .rv6-login-shell{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important;width:100%!important;max-width:1160px!important;min-width:0!important;overflow:hidden!important;}
body.rv-v6-ready #loginOverlay .rv6-login-aside,body.rv-v6-ready #loginOverlay .rv6-login-form{width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important;box-sizing:border-box!important;}
body.rv-v6-ready #loginOverlay .rv6-login-brand{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;}
body.rv-v6-ready #loginOverlay .rv6-login-brand .rv-login-logo{width:min(100%,190px)!important;max-width:100%!important;}
body.rv-v6-ready #loginOverlay .rv6-login-field,body.rv-v6-ready #loginOverlay .rv6-login-form #btnJoin{width:100%!important;max-width:100%!important;box-sizing:border-box!important;}
@media (max-width:560px) and (orientation:portrait) {

 body.rv-v6-ready #loginOverlay .login-box{width:min(94vw,440px)!important;max-width:94vw!important;max-height:94dvh!important;padding:10px!important;}
 body.rv-v6-ready #loginOverlay .rv6-login-shell{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,.9fr) minmax(0,1.1fr)!important;gap:6px!important;height:100%!important;max-height:100%!important;}
 body.rv-v6-ready #loginOverlay .rv6-login-aside{padding:8px!important;}
 body.rv-v6-ready #loginOverlay .rv6-login-system-list{display:none!important;}
 body.rv-v6-ready #loginOverlay .rv6-login-form{padding:8px!important;gap:5px!important;justify-content:center!important;}
 body.rv-v6-ready #loginOverlay .rv6-login-form h2{font-size:clamp(16px,3vh,22px)!important;margin:3px 0!important;}
 body.rv-v6-ready #loginOverlay .rv6-login-form>p{font-size:9px!important;margin:3px 0!important;}
 body.rv-v6-ready #loginOverlay .rv6-login-field,body.rv-v6-ready #loginOverlay .rv6-login-form #btnJoin{min-height:34px!important;}
}


/* Standard touch controller is deliberately visible during mobile play. */


/* Higher-specificity active-surface overrides: keep the controls compact in the real V6 workspace. */
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:3px!important;width:max-content!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:3px!important;overflow:hidden!important;box-sizing:border-box!important;
}
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #raceRoomSelect{
  flex:1 1 58px!important;width:58px!important;min-width:0!important;max-width:100px!important;padding:4px 3px!important;font-size:clamp(8px,1.4vw,10px)!important;
}
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace{
  flex:0 0 auto!important;width:auto!important;min-width:max-content!important;max-width:none!important;min-height:30px!important;height:auto!important;white-space:nowrap!important;overflow-wrap:normal!important;padding:5px 5px!important;font-size:clamp(8px,1.45vw,10px)!important;line-height:1.15!important;
}
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnEntryProposal,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom{
  flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:58px!important;min-height:30px!important;height:auto!important;white-space:normal!important;overflow-wrap:anywhere!important;padding:3px!important;font-size:8px!important;line-height:1.1!important;
}
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{
  display:flex!important;align-items:center!important;justify-content:center!important;align-self:stretch!important;height:auto!important;min-height:38px!important;max-height:none!important;margin:0!important;padding:4px!important;white-space:normal!important;overflow:hidden!important;overflow-wrap:anywhere!important;text-overflow:clip!important;box-sizing:border-box!important;line-height:1.2!important;
}
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceRoomsList{max-height:none!important;overflow:visible!important;}
@media (max-width:560px) {

 body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{min-height:34px!important;}
 body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus,
 body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{min-height:34px!important;font-size:8px!important;padding:3px!important;}
 body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #raceRoomSelect{flex-basis:50px!important;width:50px!important;}
 body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnEntryProposal,
 body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom{max-width:48px!important;font-size:7px!important;}
}


/* V19.2.247 repair 17 — touch input hit-testing, compact workspace, real settings scrolling and status-first toolbar. */
@media (max-width:700px) {

  #rvV6Workspace{
    display:grid!important;grid-template-columns:clamp(40px,10vw,46px) minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;grid-auto-flow:row!important;
    column-gap:0!important;row-gap:0!important;gap:0!important;width:100%!important;max-width:100%!important;
    min-width:0!important;padding:0!important;box-sizing:border-box!important;overflow:hidden!important;
  }
  #rvV6Workspace>.rv6-nav-rail,#rvV6Workspace .rv6-nav-rail{
    grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;
    flex:0 0 auto!important;margin:0!important;padding-inline:2px!important;box-sizing:border-box!important;
  }
  #rvV6Workspace>.rv6-workspace-main,#rvV6Workspace .rv6-workspace-main{
    grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;
    justify-self:stretch!important;align-self:stretch!important;flex:1 1 auto!important;
    width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;box-sizing:border-box!important;
    overflow:hidden!important;
  }
  #rvV6Workspace .rv6-workspace-top{width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;}
  #rvV6Workspace .rv6-page-host{flex:1 1 0!important;width:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;padding-inline:clamp(2px,1vw,6px)!important;box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important;}
}


/* The settings surface is an in-page workspace panel: stretch it to the page-stepper, not a centered viewport modal. */
#rvV6Workspace #rvV6Page_settings.active{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:stretch!important;
  width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;
}
#rvV6Workspace #rvV6Page_settings.active .rv6-live-surface,
#rvV6Workspace #rvV6Page_settings .rv6-live-surface{
  position:relative!important;display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important;
}
#rvV6Workspace #rvV6Page_settings #uiPanel[data-v6-active="true"]{
  position:relative!important;inset:auto!important;display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
  align-items:stretch!important;justify-content:stretch!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;overflow:hidden!important;
  background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;box-sizing:border-box!important;
}
#uiPanelInner{
  position:relative!important;display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-height:none!important;
  margin:0!important;box-sizing:border-box!important;overflow:hidden!important;
}
#uiPanelInner #btnCloseUI{display:none!important;visibility:hidden!important;pointer-events:none!important;}
#uiPanelInner .rv6-settings-mainbar,#uiPanelInner .rv240-compact-mainbar,#uiPanelInner #uiHeader{
  display:none!important;height:0!important;min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;
}
#uiPanelInner .rv6-settings-layout{
  display:grid!important;grid-template-columns:minmax(78px,clamp(82px,17vw,136px)) minmax(0,1fr)!important;
  flex:1 1 0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-height:none!important;
  gap:5px!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;
}
#uiPanelInner .rv6-settings-nav{
  display:flex!important;flex-direction:column!important;align-self:stretch!important;width:100%!important;min-width:0!important;
  height:100%!important;min-height:0!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;box-sizing:border-box!important;
}
#uiPanelInner .rally-menu-tabs.rv6-settings-tabs{
  display:flex!important;flex:1 1 0!important;flex-direction:column!important;align-items:stretch!important;
  width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;max-height:none!important;
  overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
}
#uiPanelInner .rally-menu-tabs.rv6-settings-tabs .rmt-tab{flex:0 0 auto!important;min-height:32px!important;white-space:normal!important;overflow-wrap:anywhere!important;}
#uiPanelInner #rv244SettingsTabScroll{
  position:sticky!important;bottom:0!important;display:flex!important;flex:0 0 28px!important;align-self:stretch!important;
  width:100%!important;min-width:0!important;min-height:28px!important;margin:3px 0 0!important;z-index:50!important;
  align-items:center!important;justify-content:center!important;pointer-events:auto!important;touch-action:manipulation!important;
}
#uiPanelInner .rv6-settings-content{
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-height:none!important;
  overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
}
#uiPanelInner .rmt-section.active{min-width:0!important;min-height:0!important;max-width:100%!important;overflow-x:hidden!important;overflow-y:visible!important;}
@media (max-height:520px) {

  #uiPanelInner .rv6-settings-layout{height:100%!important;max-height:none!important;}
  #uiPanelInner .rv6-settings-nav{overflow-y:auto!important;}
  #uiPanelInner .rally-menu-tabs.rv6-settings-tabs{flex:1 1 0!important;max-height:none!important;}
}


/* Resolution and Lanes: explicit 2-column pair, even when a legacy mobile rule tries to stack rows. */
#uiPanelInner #controls.rv240-control-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;}
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair{
  display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important;grid-auto-flow:row!important;
  grid-column:1/-1!important;justify-self:stretch!important;align-items:stretch!important;gap:6px!important;width:100%!important;min-width:0!important;
}
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair>.rv240-setting-row{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
  width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;
}
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair>.rv240-setting-row .rv240-control-label{width:100%!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair>.rv240-setting-row .rv240-control-field,
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair>.rv240-setting-row select{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;}

/* Race toolbar: compact action controls, full remaining width for status, and a strict two-line status cap. */
#racePanel .rv246-race-tools-row,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
  display:grid!important;grid-template-columns:minmax(126px,.95fr) minmax(66px,.62fr) minmax(0,1.55fr) 32px!important;
  grid-template-rows:minmax(38px,auto)!important;align-items:stretch!important;gap:4px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;margin:5px 0!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row>*,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{
  align-self:stretch!important;justify-self:stretch!important;min-width:0!important;min-height:38px!important;height:auto!important;max-width:100%!important;
  margin:0!important;box-sizing:border-box!important;overflow:hidden!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls{
  display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;
  width:100%!important;min-width:0!important;max-width:100%!important;gap:3px!important;padding:3px!important;overflow:hidden!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #raceRoomSelect,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #raceRoomSelect{
  flex:1 1 50px!important;width:50px!important;min-width:0!important;max-width:100%!important;padding:4px 2px!important;font-size:clamp(8px,1.2vw,10px)!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace,
#racePanel .rv246-race-tools-row .race-panel__controls #btnEntryProposal,
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnEntryProposal,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom{
  flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:30px!important;height:auto!important;
  white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;padding:4px!important;
  font-size:clamp(8px,1.25vw,10px)!important;line-height:1.15!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #raceStatusBox,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{
  display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:100%!important;
  min-height:38px!important;max-height:44px!important;height:auto!important;padding:4px!important;white-space:normal!important;overflow:hidden!important;
  overflow-wrap:anywhere!important;text-align:center!important;font-size:clamp(8px,1.15vw,10px)!important;line-height:1.2!important;
}
#racePanel .rv246-race-tools-row #racePanelStatus,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;
  align-self:stretch!important;min-width:0!important;width:100%!important;min-height:38px!important;max-height:44px!important;height:auto!important;
  padding:4px 6px!important;margin:0!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  text-overflow:clip!important;text-align:center!important;font-size:clamp(9px,1.3vw,11px)!important;line-height:1.25!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap,
#racePanel .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle{
  display:flex!important;align-items:center!important;justify-content:center!important;width:32px!important;min-width:32px!important;max-width:32px!important;
  height:38px!important;min-height:38px!important;max-height:44px!important;padding:0!important;margin:0!important;overflow:visible!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap #rvRoomSearchInput{display:none!important;}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap.rv242-search-expanded #rvRoomSearchInput,
#racePanel .rv246-race-tools-row #rvRoomSearchWrap.rv245-search-open #rvRoomSearchInput{
  display:block!important;position:absolute!important;top:calc(100% + 4px)!important;right:0!important;width:min(250px,88vw)!important;max-width:88vw!important;z-index:1000!important;
  background:#080e14!important;box-shadow:0 8px 24px rgba(0,0,0,.55)!important;
}
@media (max-width:560px) {

  #racePanel .rv246-race-tools-row,
  body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
    grid-template-columns:minmax(106px,1.05fr) minmax(54px,.65fr) minmax(0,1.5fr) 30px!important;gap:3px!important;
  }
  #racePanel .rv246-race-tools-row>*,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{min-height:36px!important;}
  #racePanel .rv246-race-tools-row #racePanelStatus,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{min-height:36px!important;max-height:44px!important;font-size:9px!important;padding:3px 4px!important;}
  #racePanel .rv246-race-tools-row #raceStatusBox,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{min-height:36px!important;font-size:8px!important;padding:3px!important;}
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap,#racePanel .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle{width:30px!important;min-width:30px!important;max-width:30px!important;height:36px!important;min-height:36px!important;}
}

@media (max-width:390px) {

  #racePanel .rv246-race-tools-row,
  body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
    grid-template-columns:minmax(98px,1fr) minmax(48px,.62fr) minmax(0,1.48fr) 28px!important;gap:2px!important;
  }
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap,#racePanel .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle{width:28px!important;min-width:28px!important;max-width:28px!important;}
  #racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace{padding:3px 2px!important;font-size:8px!important;}
}


/* The controller is above HUD hit layers; the transparent parent itself still lets the road receive touches. */
@media (pointer:coarse),(max-width:760px) {

  #touchOverlay{z-index:1699!important;pointer-events:none!important;}
  
  
}



/* Rallyver V19.2.248 — narrow-rail, two-line race status, search workflow and single-owner settings scrolling. */
@media (max-width:390px) {

  /* Half-width icon rail on iPhone-SE-sized displays; the main track gets every recovered pixel. */
  #rvV6Workspace,#rvV6Workspace.open{
    grid-template-columns:22px minmax(0,1fr)!important;
    grid-auto-flow:row!important;column-gap:0!important;gap:0!important;
    width:100vw!important;max-width:100vw!important;min-width:0!important;padding:0!important;box-sizing:border-box!important;
  }
  #rvV6Workspace>.rv6-nav-rail,#rvV6Workspace .rv6-nav-rail{
    grid-column:1!important;grid-row:1!important;flex:none!important;
    width:22px!important;min-width:22px!important;max-width:22px!important;flex-basis:22px!important;
    margin:0!important;padding:4px 1px!important;overflow-x:hidden!important;box-sizing:border-box!important;
  }
  #rvV6Workspace .rv6-nav-brand{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;padding:0!important;margin:0 0 5px!important;}
  #rvV6Workspace .rv6-nav-brand .rv6-nav-logo{display:flex!important;align-items:center!important;justify-content:center!important;width:18px!important;height:18px!important;flex:0 0 18px!important;margin:0!important;overflow:hidden!important;}
  #rvV6Workspace .rv6-nav-brand .rv6-nav-logo img{display:block!important;width:18px!important;height:18px!important;max-width:18px!important;object-fit:contain!important;}
  #rvV6Workspace .rv6-nav-brand>span:not(.rv6-nav-logo),#rvV6Workspace .rv6-nav-caption,#rvV6Workspace .rv6-nav-footer,#rvV6Workspace .rv6-nav-group-label{display:none!important;}
  #rvV6Workspace .rv6-nav-list{width:100%!important;min-width:0!important;gap:2px!important;margin:3px 0 0!important;padding:0!important;}
  #rvV6Workspace .rv6-button.rv6-nav-item{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:30px!important;padding:5px 1px!important;margin:0!important;}
  #rvV6Workspace .rv6-nav-item .rv6-icon{width:15px!important;height:15px!important;flex:0 0 15px!important;min-width:15px!important;}
  #rvV6Workspace .rv6-nav-item .rv6-button-label{display:none!important;}
  #rvV6Workspace>.rv6-workspace-main,#rvV6Workspace .rv6-workspace-main{
    grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;
    justify-self:stretch!important;align-self:stretch!important;flex:1 1 0!important;
    width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;
    overflow:hidden!important;box-sizing:border-box!important;
  }
}


/* Race row uses fixed action/search widths and gives the status cells the remaining space. */
#racePanel .rv246-race-tools-row,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
  display:grid!important;grid-template-columns:minmax(100px,1.05fr) minmax(0,1.4fr) minmax(0,1fr) 32px!important;
  grid-template-rows:40px!important;align-items:stretch!important;gap:3px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  overflow:visible!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row>* ,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{
  align-self:stretch!important;justify-self:stretch!important;min-width:0!important;width:100%!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;
  overflow:hidden!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls{
  display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;gap:2px!important;
  padding:2px!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #raceRoomSelect,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #raceRoomSelect{
  flex:1 1 40px!important;width:40px!important;min-width:0!important;max-width:100%!important;padding:3px 2px!important;font-size:clamp(8px,1.15vw,10px)!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace{
  display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;
  flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;
  padding:3px 4px!important;font-weight:800!important;font-size:clamp(8px,1.3vw,10px)!important;line-height:1.15!important;
  white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #btnEntryProposal,
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnEntryProposal,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom{
  flex:0 1 auto!important;min-width:0!important;max-width:46px!important;padding:2px!important;
  font-size:7px!important;line-height:1.05!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #racePanelStatus,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  padding:3px 5px!important;margin:0!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  text-overflow:clip!important;text-align:center!important;line-height:1.18!important;font-size:clamp(9px,1.25vw,11px)!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #raceStatusBox,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{
  display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;padding:3px 4px!important;margin:0!important;
  overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;
  font-size:clamp(8px,1.1vw,10px)!important;line-height:1.15!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:32px!important;min-width:32px!important;max-width:32px!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:0!important;overflow:visible!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle{
  display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 32px!important;
  width:32px!important;min-width:32px!important;max-width:32px!important;height:40px!important;min-height:40px!important;padding:0!important;margin:0!important;
  font-weight:800!important;cursor:pointer!important;touch-action:manipulation!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap #rvRoomSearchInput{display:none!important;position:absolute!important;top:calc(100% + 5px)!important;right:0!important;left:auto!important;z-index:100000!important;width:min(250px,84vw)!important;min-width:0!important;max-width:84vw!important;height:40px!important;min-height:40px!important;padding:7px 10px!important;margin:0!important;box-sizing:border-box!important;background:#080e14!important;border:1px solid rgba(90,210,243,.4)!important;border-radius:8px!important;color:#fff!important;box-shadow:0 8px 24px rgba(0,0,0,.55)!important;}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap.rv242-search-expanded #rvRoomSearchInput,
#racePanel .rv246-race-tools-row #rvRoomSearchWrap.rv245-search-open #rvRoomSearchInput,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap.rv242-search-expanded #rvRoomSearchInput,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap.rv245-search-open #rvRoomSearchInput{display:block!important;}
@media (max-width:560px) {

 #racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
   grid-template-columns:minmax(92px,1.02fr) minmax(0,1.42fr) minmax(0,1fr) 30px!important;gap:2px!important;height:38px!important;min-height:38px!important;max-height:38px!important;grid-template-rows:38px!important;
 }
 #racePanel .rv246-race-tools-row>*,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{height:38px!important;min-height:38px!important;max-height:38px!important;}
 #racePanel .rv246-race-tools-row #racePanelStatus,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{height:38px!important;min-height:38px!important;max-height:38px!important;padding:3px 4px!important;font-size:9px!important;line-height:1.15!important;}
 #racePanel .rv246-race-tools-row #raceStatusBox,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:8px!important;}
 #racePanel .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap,
 #racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle{width:30px!important;min-width:30px!important;max-width:30px!important;height:38px!important;min-height:38px!important;max-height:38px!important;}
}

@media (max-width:390px) {

 #racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
   grid-template-columns:minmax(86px,1fr) minmax(0,1.45fr) minmax(0,1fr) 28px!important;gap:2px!important;height:38px!important;min-height:38px!important;max-height:38px!important;
 }
 #racePanel .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap,
 #racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle{width:28px!important;min-width:28px!important;max-width:28px!important;}
}


/* Settings view fills the area down to the workspace stepper; the nav rail owns tab scrolling. */
#rvV6Workspace #rvV6Page_settings.active,
#rvV6Workspace #rvV6Page_settings.active .rv6-live-surface,
#rvV6Workspace #rvV6Page_settings.active #uiPanel[data-v6-active="true"],
#rvV6Workspace #rvV6Page_settings.active #uiPanelInner{
  flex:1 1 0!important;align-self:stretch!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;box-sizing:border-box!important;
}
#rvV6Workspace #rvV6Page_settings.active{padding:0!important;overflow:hidden!important;}
#uiPanelInner .rv6-settings-layout{display:grid!important;grid-template-columns:minmax(78px,clamp(82px,17vw,136px)) minmax(0,1fr)!important;flex:1 1 0!important;height:100%!important;min-height:0!important;max-height:none!important;gap:5px!important;overflow:hidden!important;}
#uiPanelInner .rv6-settings-nav{position:relative!important;display:flex!important;flex:1 1 0!important;flex-direction:column!important;align-self:stretch!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;}
#uiPanelInner .rally-menu-tabs.rv6-settings-tabs{display:flex!important;flex:0 0 auto!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow-x:hidden!important;overflow-y:visible!important;overscroll-behavior:contain!important;}
#uiPanelInner .rally-menu-tabs.rv6-settings-tabs .rmt-tab{flex:0 0 auto!important;width:100%!important;min-height:32px!important;white-space:normal!important;overflow-wrap:anywhere!important;}
#uiPanelInner #rv244SettingsTabScroll{position:sticky!important;bottom:0!important;z-index:100!important;flex:0 0 28px!important;display:flex!important;width:100%!important;min-width:0!important;height:28px!important;min-height:28px!important;margin:3px 0 0!important;align-items:center!important;justify-content:center!important;pointer-events:auto!important;touch-action:manipulation!important;}
#uiPanelInner .rv6-settings-content{flex:1 1 0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;}


/* Rallyver V19.2.249 — compact landscape rail, status-first race row and non-obscuring settings arrow. */
@media (max-width:700px) {

  /* Phones in landscape are often 640–700 CSS px wide; the old 40–46px rule missed these devices. */
  #rvV6Workspace,#rvV6Workspace.open{
    grid-template-columns:clamp(22px,3.8vw,27px) minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;grid-auto-flow:row!important;column-gap:0!important;row-gap:0!important;gap:0!important;
    width:100vw!important;max-width:100vw!important;min-width:0!important;padding:0!important;box-sizing:border-box!important;
  }
  #rvV6Workspace>.rv6-nav-rail,#rvV6Workspace .rv6-nav-rail{
    grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;flex:none!important;
    margin:0!important;padding:4px 1px!important;overflow-x:hidden!important;box-sizing:border-box!important;
  }
  #rvV6Workspace .rv6-nav-brand{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;padding:0!important;margin:0 0 4px!important;}
  #rvV6Workspace .rv6-nav-brand .rv6-nav-logo{display:flex!important;align-items:center!important;justify-content:center!important;width:clamp(15px,2.5vw,18px)!important;height:clamp(15px,2.5vw,18px)!important;flex:0 0 clamp(15px,2.5vw,18px)!important;margin:0!important;overflow:hidden!important;}
  #rvV6Workspace .rv6-nav-brand .rv6-nav-logo img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;}
  #rvV6Workspace .rv6-nav-brand>span:not(.rv6-nav-logo),#rvV6Workspace .rv6-nav-caption,#rvV6Workspace .rv6-nav-footer,#rvV6Workspace .rv6-nav-group-label{display:none!important;}
  #rvV6Workspace .rv6-nav-list{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;min-width:0!important;gap:2px!important;margin:3px 0 0!important;padding:0!important;}
  #rvV6Workspace .rv6-button.rv6-nav-item{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:27px!important;padding:4px 0!important;margin:0!important;}
  #rvV6Workspace .rv6-nav-item .rv6-icon{width:clamp(13px,2.1vw,15px)!important;height:clamp(13px,2.1vw,15px)!important;flex:0 0 clamp(13px,2.1vw,15px)!important;min-width:0!important;}
  #rvV6Workspace .rv6-nav-item .rv6-button-label{display:none!important;}
  #rvV6Workspace>.rv6-workspace-main,#rvV6Workspace .rv6-workspace-main{
    grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;justify-self:stretch!important;align-self:stretch!important;
    flex:1 1 0!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important;
  }
  #rvV6Workspace .rv6-workspace-top,#rvV6Workspace .rv6-page-host{min-width:0!important;max-width:100%!important;}
}

@media (max-width:390px) {

  #rvV6Workspace,#rvV6Workspace.open{grid-template-columns:20px minmax(0,1fr)!important;}
  #rvV6Workspace .rv6-nav-brand .rv6-nav-logo{width:15px!important;height:15px!important;flex-basis:15px!important;}
  #rvV6Workspace .rv6-button.rv6-nav-item{min-height:26px!important;}
  #rvV6Workspace .rv6-nav-item .rv6-icon{width:13px!important;height:13px!important;flex-basis:13px!important;}
}


/* Give racePanelStatus priority width; keep the two-line cap and fixed row height. */
#racePanel .rv246-race-tools-row,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
  grid-template-columns:minmax(88px,.88fr) minmax(0,2.15fr) minmax(0,.92fr) 30px!important;
  grid-template-rows:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;gap:3px!important;
}
#racePanel .rv246-race-tools-row #racePanelStatus,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;
  align-self:stretch!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  padding:3px 5px!important;margin:0!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  text-overflow:clip!important;text-align:center!important;font-size:clamp(9px,1.3vw,11px)!important;line-height:1.2!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace{
  display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;font-weight:900!important;
}
@media (max-width:560px) {

  #racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
    grid-template-columns:minmax(82px,.86fr) minmax(0,2.2fr) minmax(0,.88fr) 28px!important;
    grid-template-rows:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;gap:2px!important;
  }
  #racePanel .rv246-race-tools-row>*,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{height:38px!important;min-height:38px!important;max-height:38px!important;}
  #racePanel .rv246-race-tools-row #racePanelStatus,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:9px!important;line-height:1.15!important;padding:2px 4px!important;}
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap,
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle{width:28px!important;min-width:28px!important;max-width:28px!important;height:38px!important;min-height:38px!important;max-height:38px!important;}
}

@media (max-width:390px) {

  #racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
    grid-template-columns:minmax(76px,.82fr) minmax(0,2.25fr) minmax(0,.88fr) 26px!important;
  }
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap,
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle{width:26px!important;min-width:26px!important;max-width:26px!important;}
}


/* Remove the bottom padding only while the settings page is active, so the panel reaches the stepper. */
#rvV6Workspace:has(#rvV6Page_settings.active) .rv6-page-host{padding-top:0!important;padding-bottom:0!important;}
#rvV6Workspace #rvV6Page_settings.active,
#rvV6Workspace #rvV6Page_settings.active .rv6-live-surface,
#rvV6Workspace #rvV6Page_settings.active #uiPanel[data-v6-active="true"],
#rvV6Workspace #rvV6Page_settings.active #uiPanelInner{
  display:flex!important;flex-direction:column!important;flex:1 1 0!important;align-self:stretch!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;box-sizing:border-box!important;
}
#uiPanelInner .rv6-settings-layout{grid-template-columns:minmax(78px,clamp(82px,17vw,136px)) minmax(0,1fr)!important;flex:1 1 0!important;height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important;}
#uiPanelInner .rv6-settings-nav{position:relative!important;display:flex!important;flex-direction:column!important;flex:1 1 0!important;height:100%!important;min-height:0!important;max-height:none!important;padding-bottom:36px!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;box-sizing:border-box!important;}
#uiPanelInner .rally-menu-tabs.rv6-settings-tabs{display:flex!important;flex:0 0 auto!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;height:auto!important;min-height:max-content!important;max-height:none!important;overflow-x:hidden!important;overflow-y:visible!important;}
#uiPanelInner .rally-menu-tabs.rv6-settings-tabs .rmt-tab{flex:0 0 auto!important;width:100%!important;min-height:32px!important;white-space:normal!important;overflow-wrap:anywhere!important;}
#uiPanelInner #rv244SettingsTabScroll{position:absolute!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;z-index:100!important;display:flex!important;flex:none!important;width:100%!important;height:28px!important;min-height:28px!important;margin:0!important;align-items:center!important;justify-content:center!important;pointer-events:auto!important;touch-action:manipulation!important;background:rgba(9,17,26,.97)!important;box-shadow:0 -5px 15px rgba(0,0,0,.3)!important;}
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important;grid-column:1/-1!important;gap:6px!important;width:100%!important;min-width:0!important;}
#uiPanelInner #controls.rv240-control-grid>.rv240-setting-pair>.rv240-setting-row{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;box-sizing:border-box!important;}


/* Rallyver V19.2.251 — half-width rail for narrow screens, status-first race row and guaranteed final settings-tab reachability. */
@media (max-width:700px) {

  #rvV6Workspace,#rvV6Workspace.open{
    grid-template-columns:clamp(14px,2.1vw,18px) minmax(0,1fr)!important;
    column-gap:0!important;row-gap:0!important;gap:0!important;
    width:100vw!important;max-width:100vw!important;min-width:0!important;padding:0!important;box-sizing:border-box!important;
  }
  #rvV6Workspace>.rv6-nav-rail,#rvV6Workspace .rv6-nav-rail{
    width:100%!important;min-width:0!important;max-width:none!important;padding:3px 0!important;margin:0!important;overflow-x:hidden!important;box-sizing:border-box!important;
  }
  #rvV6Workspace .rv6-nav-brand{width:100%!important;min-width:0!important;padding:0!important;margin:0 0 3px!important;}
  #rvV6Workspace .rv6-nav-brand .rv6-nav-logo{width:12px!important;height:12px!important;min-width:12px!important;flex:0 0 12px!important;margin:0!important;}
  #rvV6Workspace .rv6-nav-brand .rv6-nav-logo img{width:100%!important;height:100%!important;object-fit:contain!important;}
  #rvV6Workspace .rv6-nav-list{width:100%!important;min-width:0!important;gap:2px!important;padding:0!important;margin:2px 0 0!important;}
  #rvV6Workspace .rv6-button.rv6-nav-item{width:100%!important;min-width:0!important;min-height:25px!important;height:25px!important;padding:3px 0!important;margin:0!important;justify-content:center!important;box-sizing:border-box!important;}
  #rvV6Workspace .rv6-nav-item .rv6-icon{width:11px!important;height:11px!important;min-width:11px!important;flex:0 0 11px!important;}
  #rvV6Workspace>.rv6-workspace-main,#rvV6Workspace .rv6-workspace-main{
    grid-column:2!important;grid-row:1!important;flex:1 1 0!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;justify-self:stretch!important;overflow:hidden!important;box-sizing:border-box!important;
  }
}

@media (max-width:390px) {

  #rvV6Workspace,#rvV6Workspace.open{grid-template-columns:10px minmax(0,1fr)!important;}
  #rvV6Workspace>.rv6-nav-rail,#rvV6Workspace .rv6-nav-rail{padding-left:0!important;padding-right:0!important;}
  #rvV6Workspace .rv6-nav-brand .rv6-nav-logo{width:8px!important;height:8px!important;min-width:8px!important;flex-basis:8px!important;}
  #rvV6Workspace .rv6-button.rv6-nav-item{min-height:22px!important;height:22px!important;padding:2px 0!important;}
  #rvV6Workspace .rv6-nav-item .rv6-icon{width:8px!important;height:8px!important;min-width:8px!important;flex-basis:8px!important;}
}


/* Keep the button and search icon narrow; the status text receives the remaining width. */
#racePanel .rv246-race-tools-row,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
  display:grid!important;grid-template-columns:minmax(70px,.72fr) minmax(0,3.4fr) minmax(0,.6fr) 26px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  grid-template-rows:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;gap:3px!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls{
  display:flex!important;width:100%!important;min-width:0!important;max-width:100%!important;align-items:stretch!important;justify-content:center!important;overflow:hidden!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace{
  width:100%!important;min-width:0!important;max-width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;font-weight:900!important;white-space:normal!important;line-height:1.15!important;padding:2px 4px!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #racePanelStatus,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{
  grid-column:auto!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:3px 5px!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  text-overflow:clip!important;text-align:center!important;font-size:clamp(9px,1.3vw,11px)!important;line-height:1.18!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #raceStatusBox,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{min-width:0!important;max-width:100%!important;width:100%!important;overflow:hidden!important;box-sizing:border-box!important;}
@media (max-width:560px) {

  #racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
    grid-template-columns:minmax(66px,.72fr) minmax(0,3.5fr) minmax(0,.55fr) 24px!important;grid-template-rows:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;gap:2px!important;
  }
  #racePanel .rv246-race-tools-row>* ,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{min-width:0!important;height:38px!important;min-height:38px!important;max-height:38px!important;}
  #racePanel .rv246-race-tools-row #racePanelStatus,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:9px!important;line-height:1.12!important;padding:2px 3px!important;}
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap,
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle{width:24px!important;min-width:24px!important;max-width:24px!important;}
}


/* Reserve scroll room inside the list itself, not outside it, so the last tab can clear the fixed arrow. */
#uiPanelInner .rv6-settings-nav{padding-bottom:0!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;max-height:none!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;}
#uiPanelInner .rally-menu-tabs.rv6-settings-tabs{padding-bottom:44px!important;box-sizing:border-box!important;min-height:max-content!important;max-height:none!important;overflow:visible!important;}
#uiPanelInner #rv244SettingsTabScroll{position:absolute!important;bottom:0!important;top:auto!important;left:0!important;right:0!important;height:28px!important;min-height:28px!important;z-index:100!important;}


/* Rallyver V19.2.386 — override legacy landscape rules using equal-or-higher specificity. */
@media  (max-width:700px) and (orientation:landscape) {

  body.rv-v6-ready #rvV6Workspace,
  body.rv-v6-ready #rvV6Workspace.open{
    display:grid!important;
    grid-template-columns:clamp(14px,2.1vw,18px) minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;grid-auto-flow:row!important;
    column-gap:0!important;row-gap:0!important;gap:0!important;
    width:100vw!important;max-width:100vw!important;min-width:0!important;padding:0!important;box-sizing:border-box!important;
  }
  body.rv-v6-ready #rvV6Workspace>.rv6-nav-rail,
  body.rv-v6-ready #rvV6Workspace .rv6-nav-rail{
    grid-column:1!important;grid-row:1!important;display:flex!important;
    width:100%!important;min-width:0!important;max-width:none!important;flex:none!important;
    padding:3px 0!important;margin:0!important;overflow-x:hidden!important;box-sizing:border-box!important;
  }
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;padding:0!important;margin:0 0 3px!important;gap:0!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand .rv6-nav-logo{display:flex!important;align-items:center!important;justify-content:center!important;width:12px!important;height:12px!important;min-width:0!important;flex:0 0 12px!important;margin:0!important;overflow:hidden!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand .rv6-nav-logo img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand>span:not(.rv6-nav-logo),body.rv-v6-ready #rvV6Workspace .rv6-nav-caption,body.rv-v6-ready #rvV6Workspace .rv6-nav-footer,body.rv-v6-ready #rvV6Workspace .rv6-nav-group-label,body.rv-v6-ready #rvV6Workspace .rv6-nav-item .rv6-button-label{display:none!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-nav-list{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;min-width:0!important;gap:2px!important;margin:2px 0 0!important;padding:0!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-button.rv6-nav-item{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:25px!important;height:25px!important;padding:2px 0!important;margin:0!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-nav-item .rv6-icon{width:11px!important;height:11px!important;min-width:11px!important;flex:0 0 11px!important;}
  body.rv-v6-ready #rvV6Workspace>.rv6-workspace-main,
  body.rv-v6-ready #rvV6Workspace .rv6-workspace-main{
    grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;
    justify-self:stretch!important;align-self:stretch!important;flex:1 1 0!important;
    width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;
    overflow:hidden!important;box-sizing:border-box!important;
  }
}

@media  (max-width:390px) and (orientation:landscape) {

  body.rv-v6-ready #rvV6Workspace,
  body.rv-v6-ready #rvV6Workspace.open{grid-template-columns:10px minmax(0,1fr)!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand .rv6-nav-logo{width:8px!important;height:8px!important;min-width:8px!important;flex-basis:8px!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-nav-button,
  body.rv-v6-ready #rvV6Workspace .rv6-button.rv6-nav-item{min-height:22px!important;height:22px!important;padding:1px 0!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-nav-item .rv6-icon{width:8px!important;height:8px!important;min-width:8px!important;flex-basis:8px!important;}
}


/* Give the join controls materially more width, reserve a compact status chip, and keep the text status two lines tall. */
#racePanel .rv246-race-tools-row,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
  display:grid!important;grid-template-columns:minmax(124px,1.5fr) minmax(0,5fr) minmax(34px,.38fr) 26px!important;
  grid-template-rows:40px!important;align-items:stretch!important;gap:3px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls{
  display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;justify-content:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  gap:2px!important;padding:2px!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,
#racePanel .rv246-race-tools-row .race-panel__controls #btnEntryProposal,
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnEntryProposal,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom{
  flex:1 1 0!important;min-width:0!important;max-width:none!important;width:100%!important;display:flex!important;
  align-items:center!important;justify-content:center!important;text-align:center!important;font-weight:900!important;
  line-height:1.1!important;padding:2px 3px!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #racePanelStatus,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;
  align-self:stretch!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:3px 5px!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  text-overflow:clip!important;text-align:center!important;font-size:clamp(9px,1.3vw,11px)!important;line-height:1.18!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #raceStatusBox,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;
  align-self:stretch!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  padding:2px 3px!important;margin:0!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;
  font-size:8px!important;line-height:1.12!important;box-sizing:border-box!important;
}
@media (max-width:560px) {

  #racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
    grid-template-columns:minmax(108px,1.45fr) minmax(0,4.8fr) minmax(30px,.38fr) 24px!important;
    grid-template-rows:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;gap:2px!important;
  }
  #racePanel .rv246-race-tools-row>*,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{height:38px!important;min-height:38px!important;max-height:38px!important;}
  #racePanel .rv246-race-tools-row .race-panel__controls,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls{height:38px!important;min-height:38px!important;max-height:38px!important;}
  #racePanel .rv246-race-tools-row #racePanelStatus,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:9px!important;line-height:1.12!important;padding:2px 3px!important;}
  #racePanel .rv246-race-tools-row #raceStatusBox,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:7px!important;line-height:1.1!important;padding:1px 2px!important;}
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap,
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle{width:24px!important;min-width:24px!important;max-width:24px!important;}
}

@media (max-width:390px) {

  #racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
    grid-template-columns:minmax(96px,1.4fr) minmax(0,4.8fr) minmax(28px,.36fr) 22px!important;
  }
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap,
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle{width:22px!important;min-width:22px!important;max-width:22px!important;}
}


/* The arrow occupies its own flow row; the last tab can never sit beneath it. */
#uiPanelInner .rv6-settings-nav,
body.rv-v6-ready #uiPanelInner .rv6-settings-nav{
  position:relative!important;display:flex!important;flex-direction:column!important;align-self:stretch!important;
  min-height:0!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;box-sizing:border-box!important;
}
#uiPanelInner .rally-menu-tabs.rv6-settings-tabs,
body.rv-v6-ready #uiPanelInner .rally-menu-tabs.rv6-settings-tabs{
  position:relative!important;display:flex!important;flex:0 0 auto!important;flex-direction:column!important;align-items:stretch!important;
  width:100%!important;height:auto!important;min-height:max-content!important;max-height:none!important;overflow:visible!important;
  padding-bottom:4px!important;box-sizing:border-box!important;
}
#uiPanelInner .rally-menu-tabs.rv6-settings-tabs .rmt-tab,
body.rv-v6-ready #uiPanelInner .rally-menu-tabs.rv6-settings-tabs .rmt-tab{flex:0 0 auto!important;width:100%!important;min-height:32px!important;white-space:normal!important;overflow-wrap:anywhere!important;}
#uiPanelInner #rv244SettingsTabScroll,
body.rv-v6-ready #uiPanelInner #rv244SettingsTabScroll{
  position:sticky!important;top:auto!important;bottom:0!important;left:auto!important;right:auto!important;z-index:100!important;
  display:flex!important;flex:0 0 28px!important;align-self:stretch!important;width:100%!important;min-width:0!important;height:28px!important;min-height:28px!important;
  margin:3px 0 0!important;padding:0!important;align-items:center!important;justify-content:center!important;pointer-events:auto!important;touch-action:manipulation!important;
  background:rgba(9,17,26,.97)!important;box-shadow:0 -5px 15px rgba(0,0,0,.3)!important;
}


/* Rallyver V19.2.253 — widen the mobile rail back to a usable size; keep all room-action logic state driven. */
@media  (max-width:700px) and (orientation:landscape) {

  body.rv-v6-ready #rvV6Workspace,
  body.rv-v6-ready #rvV6Workspace.open{
    display:grid!important;
    grid-template-columns:clamp(42px,6.3vw,54px) minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;grid-auto-flow:row!important;
    column-gap:0!important;row-gap:0!important;gap:0!important;
    width:100vw!important;max-width:100vw!important;min-width:0!important;padding:0!important;box-sizing:border-box!important;
  }
  body.rv-v6-ready #rvV6Workspace>.rv6-nav-rail,
  body.rv-v6-ready #rvV6Workspace .rv6-nav-rail{
    grid-column:1!important;grid-row:1!important;display:flex!important;flex-direction:column!important;
    width:100%!important;min-width:0!important;max-width:none!important;flex:none!important;
    padding:4px 2px!important;margin:0!important;overflow-x:hidden!important;box-sizing:border-box!important;
  }
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;padding:0!important;margin:0 0 4px!important;gap:0!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand .rv6-nav-logo{display:flex!important;align-items:center!important;justify-content:center!important;width:20px!important;height:20px!important;min-width:20px!important;flex:0 0 20px!important;margin:0!important;overflow:hidden!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand .rv6-nav-logo img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand>span:not(.rv6-nav-logo),body.rv-v6-ready #rvV6Workspace .rv6-nav-caption,body.rv-v6-ready #rvV6Workspace .rv6-nav-footer,body.rv-v6-ready #rvV6Workspace .rv6-nav-group-label,body.rv-v6-ready #rvV6Workspace .rv6-nav-item .rv6-button-label{display:none!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-nav-list{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;min-width:0!important;gap:2px!important;margin:3px 0 0!important;padding:0!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-button.rv6-nav-item{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:28px!important;height:28px!important;padding:3px 0!important;margin:0!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-nav-item .rv6-icon{width:16px!important;height:16px!important;min-width:16px!important;flex:0 0 16px!important;}
  body.rv-v6-ready #rvV6Workspace>.rv6-workspace-main,
  body.rv-v6-ready #rvV6Workspace .rv6-workspace-main{
    grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;
    justify-self:stretch!important;align-self:stretch!important;flex:1 1 0!important;
    width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;
    overflow:hidden!important;box-sizing:border-box!important;
  }
}

@media  (max-width:390px) and (orientation:landscape) {

  body.rv-v6-ready #rvV6Workspace,body.rv-v6-ready #rvV6Workspace.open{grid-template-columns:30px minmax(0,1fr)!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand .rv6-nav-logo{width:16px!important;height:16px!important;min-width:16px!important;flex-basis:16px!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-button.rv6-nav-item{min-height:26px!important;height:26px!important;padding:2px 0!important;}
  body.rv-v6-ready #rvV6Workspace .rv6-nav-item .rv6-icon{width:13px!important;height:13px!important;min-width:13px!important;flex-basis:13px!important;}
}


/* Four-column layout: room action, dominant racePanelStatus, one-third-narrower race-status chip, search icon. */
#racePanel .rv246-race-tools-row,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
  display:grid!important;
  grid-template-columns:clamp(82px,24vw,96px) minmax(0,1fr) 24px 24px!important;
  grid-template-rows:40px!important;align-items:stretch!important;gap:3px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls{
  display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;justify-content:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  gap:0!important;padding:2px!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom{
  flex:1 1 auto!important;min-width:0!important;max-width:100%!important;width:100%!important;
  align-items:center!important;justify-content:center!important;text-align:center!important;font-weight:900!important;
  line-height:1.12!important;padding:3px 5px!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important;
}
/* The state updater writes inline display:none; this selector prevents legacy display:flex!important from showing both actions. */
#racePanel .race-panel__controls #btnJoinRace[style*="display:none"],
#racePanel .race-panel__controls #btnJoinRace[style*="display: none"],
#racePanel .race-panel__controls #btnLeaveRoom[style*="display:none"],
#racePanel .race-panel__controls #btnLeaveRoom[style*="display: none"],
#racePanel .race-panel__controls #btnJoinRace[hidden],
#racePanel .race-panel__controls #btnLeaveRoom[hidden],
body.rv-v6-ready #racePanel[data-v6-active="true"] .race-panel__controls #btnJoinRace[style*="display:none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .race-panel__controls #btnJoinRace[style*="display: none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .race-panel__controls #btnLeaveRoom[style*="display:none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .race-panel__controls #btnLeaveRoom[style*="display: none"]{display:none!important;}
#racePanel .rv246-race-tools-row #racePanelStatus,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;
  align-self:stretch!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:3px 5px!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  text-overflow:clip!important;text-align:center!important;font-size:clamp(11px,1.7vw,13px)!important;font-weight:700!important;line-height:1.15!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #raceStatusBox,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;
  align-self:stretch!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  padding:2px 2px!important;margin:0!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;
  font-size:7px!important;line-height:1.08!important;box-sizing:border-box!important;
}
#racePanel #racePanelSecondaryActions,
body.rv-v6-ready #racePanel #racePanelSecondaryActions{display:none;align-items:center;justify-content:flex-end;width:100%;min-width:0;max-width:100%;margin:5px 0 2px;padding:0;box-sizing:border-box;}
#racePanel #racePanelSecondaryActions #btnEntryProposal{display:inline-flex;align-items:center;justify-content:center;width:auto;max-width:100%;min-height:28px;height:auto;padding:5px 9px;border-radius:7px;font-size:9px;font-weight:800;white-space:normal;}
@media (max-width:560px) {

 #racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{grid-template-columns:clamp(78px,24vw,90px) minmax(0,1fr) 20px 22px!important;grid-template-rows:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;gap:2px!important;}
 #racePanel .rv246-race-tools-row>*,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{height:38px!important;min-height:38px!important;max-height:38px!important;}
 #racePanel .rv246-race-tools-row .race-panel__controls,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls{height:38px!important;min-height:38px!important;max-height:38px!important;}
 #racePanel .rv246-race-tools-row #racePanelStatus,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:clamp(9.5px,2.2vw,11px)!important;line-height:1.1!important;padding:2px 3px!important;}
 #racePanel .rv246-race-tools-row #raceStatusBox,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:6.5px!important;line-height:1.05!important;padding:1px!important;}
 #racePanel #racePanelSecondaryActions #btnEntryProposal{max-width:100%;min-height:26px;font-size:8px;padding:4px 7px;}
}



/* V19.2.255 repair: stable leaderboard name styling; the user's row must never pulse on refresh. */
#leaderboard .rank-item,
#leaderboard .rank-item.you,
#leaderboard .rank-item .rv-rank-name,
#rvV6RankingContent .rank-item,
#rvV6RankingContent .rank-item.you,
#rvV6RankingContent .rank-item .rv-rank-name {
  animation:none!important;
  transition:none!important;
  will-change:auto!important;
}
#leaderboard .rank-item.you .rv-rank-name,
#rvV6RankingContent .rank-item.you .rv-rank-name {
  animation:none!important;transition:none!important;opacity:1!important;filter:none!important;
}

/* Room information is an in-workspace page: let the page host own vertical scrolling. */
#rvV6Workspace #rvV6Page_room.active {
  display:block!important;min-width:0!important;min-height:max-content!important;height:auto!important;
  max-height:none!important;overflow:visible!important;box-sizing:border-box!important;
}
#rvV6Workspace #rvV6Page_room #rvV6Surface_room {
  display:flex!important;flex:0 0 auto!important;flex-direction:column!important;align-items:stretch!important;
  min-width:0!important;min-height:max-content!important;height:auto!important;max-height:none!important;overflow:visible!important;
}
#rvV6Workspace #rvV6Page_room #rvRoomPopup[data-v6-active="true"].open,
body.rv-v6-ready #rvV6Page_room #rvRoomPopup.open {
  position:relative!important;inset:auto!important;z-index:auto!important;display:flex!important;
  flex:0 0 auto!important;align-items:stretch!important;justify-content:stretch!important;
  width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important;box-sizing:border-box!important;
}
#rvV6Workspace #rvV6Page_room #rvRoomPopup[data-v6-active="true"]:not(.open) {display:none!important;}
#rvV6Workspace #rvV6Page_room #rvRoomPopup .rv-modal-card {
  position:relative!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:none!important;
  height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:clamp(12px,2vw,20px)!important;
  overflow:visible!important;overscroll-behavior:auto!important;box-sizing:border-box!important;
}
#rvV6Workspace #rvV6Page_room .rv-room-info-list,
#rvV6Workspace #rvV6Page_room .rv-room-info-list>div,
#rvV6Workspace #rvV6Page_room #rvRoomDescription,
#rvV6Workspace #rvV6Page_room #rvRoomRules,
#rvV6Workspace #rvV6Page_room #rvRoomMeta {
  min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
}
#rvV6Workspace #rvV6PageHost {min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;}

/* Race toolbar: the action button grows by about 20%; status text owns ~6x the race-status width. */
#racePanel .rv246-race-tools-row,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row {
  display:grid!important;
  grid-template-columns:clamp(98px,29vw,116px) minmax(96px,6fr) 16px 24px!important;
  grid-template-rows:40px!important;align-items:stretch!important;gap:3px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  padding:0!important;margin:5px 0!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls {
  display:flex!important;flex:0 0 auto!important;flex-flow:row nowrap!important;align-items:stretch!important;justify-content:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  gap:0!important;padding:2px!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #raceRoomSelect,
#racePanel .rv246-race-tools-row .race-panel__controls #roomPasswordInput,
#racePanel .rv246-race-tools-row .race-panel__controls #btnEntryProposal,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #raceRoomSelect,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #roomPasswordInput,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnEntryProposal {display:none!important;}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom {
  flex:1 1 100%!important;align-self:stretch!important;min-width:0!important;max-width:100%!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
  display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;text-align-last:center!important;
  padding:2px 4px!important;margin:0!important;overflow:hidden!important;overflow-wrap:anywhere!important;white-space:normal!important;
  font-size:clamp(8px,1.25vw,10px)!important;font-weight:900!important;line-height:1.12!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace[hidden],
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[hidden],
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display:none"],
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display: none"],
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display:none"],
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display: none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace[hidden],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[hidden],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display:none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display: none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display:none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display: none"] {display:none!important;}
#racePanel .rv246-race-tools-row #racePanelStatus,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus {
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-box-pack:center!important;-webkit-box-align:center!important;
  -webkit-line-clamp:2!important;line-clamp:2!important;align-self:stretch!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;padding:2px 5px!important;overflow:hidden!important;
  white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;text-overflow:clip!important;text-align:center!important;
  font-size:clamp(10px,1.8vw,13px)!important;font-weight:800!important;line-height:1.12!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #raceStatusBox,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox {
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-box-pack:center!important;-webkit-box-align:center!important;-webkit-line-clamp:2!important;line-clamp:2!important;
  align-self:stretch!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:1px!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;text-align:center!important;
  font-size:clamp(6px,1vw,7.5px)!important;line-height:1.05!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap {
  display:flex!important;align-items:center!important;justify-content:center!important;width:24px!important;min-width:24px!important;max-width:24px!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;padding:0!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle {
  display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:100%!important;min-height:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important;
}
@media (max-width:560px) {

 #racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row {
  grid-template-columns:clamp(96px,29vw,110px) minmax(80px,6fr) 14px 22px!important;grid-template-rows:38px!important;gap:2px!important;height:38px!important;min-height:38px!important;max-height:38px!important;
 }
 #racePanel .rv246-race-tools-row>*,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{height:38px!important;min-height:38px!important;max-height:38px!important;}
 #racePanel .rv246-race-tools-row .race-panel__controls,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls{height:38px!important;min-height:38px!important;max-height:38px!important;}
 #racePanel .rv246-race-tools-row #racePanelStatus,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:clamp(9px,2.1vw,11px)!important;line-height:1.08!important;padding:2px 3px!important;}
 #racePanel .rv246-race-tools-row #raceStatusBox,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:6px!important;line-height:1.02!important;padding:0!important;}
 #racePanel .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap{width:22px!important;min-width:22px!important;max-width:22px!important;height:38px!important;min-height:38px!important;max-height:38px!important;}
}

@media (max-width:390px) {

 #racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row {grid-template-columns:clamp(96px,31vw,112px) minmax(70px,6fr) 14px 22px!important;}
}



/* V19.2.255: widen the one-action control by ~20%, prioritize room status, and center all contents. */
#racePanel .rv246-race-tools-row,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row {
  display:grid!important;
  grid-template-columns:clamp(118px,35vw,140px) minmax(0,6.5fr) 16px 24px!important;
  grid-template-rows:40px!important;align-items:stretch!important;justify-items:stretch!important;
  gap:3px!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;margin:5px 0!important;padding:0!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls {
  display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  gap:0!important;padding:2px!important;margin:0!important;overflow:hidden!important;text-align:center!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom {
  display:flex!important;flex:1 1 100%!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;text-align-last:center!important;font-weight:900!important;white-space:normal!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
  margin:0!important;padding:2px 4px!important;line-height:1.1!important;overflow:hidden!important;overflow-wrap:anywhere!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #racePanelStatus,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus {
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-box-pack:center!important;-webkit-box-align:center!important;
  -webkit-line-clamp:2!important;line-clamp:2!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:2px 5px!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;
  text-align:center!important;text-align-last:center!important;line-height:1.1!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #raceStatusBox,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox {
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-box-pack:center!important;-webkit-box-align:center!important;
  -webkit-line-clamp:2!important;line-clamp:2!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:0!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;
  text-align:center!important;text-align-last:center!important;font-size:6px!important;line-height:1.02!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap {
  display:flex!important;align-items:center!important;justify-content:center!important;width:24px!important;min-width:24px!important;max-width:24px!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;padding:0!important;box-sizing:border-box!important;
}
@media (max-width:560px) {

 #racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row {
  grid-template-columns:clamp(115px,34vw,132px) minmax(0,6.5fr) 14px 22px!important;
  grid-template-rows:38px!important;gap:2px!important;height:38px!important;min-height:38px!important;max-height:38px!important;
 }
 #racePanel .rv246-race-tools-row>*,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{height:38px!important;min-height:38px!important;max-height:38px!important;}
 #racePanel .rv246-race-tools-row .race-panel__controls,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls{height:38px!important;min-height:38px!important;max-height:38px!important;}
 #racePanel .rv246-race-tools-row #racePanelStatus,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:clamp(9px,2.1vw,11px)!important;line-height:1.08!important;}
 #racePanel .rv246-race-tools-row #raceStatusBox,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:5.5px!important;line-height:1.02!important;}
 #racePanel .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap{width:22px!important;min-width:22px!important;max-width:22px!important;height:38px!important;min-height:38px!important;max-height:38px!important;}
}

@media (max-width:390px) {

 #racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{grid-template-columns:clamp(115px,36vw,134px) minmax(0,6.5fr) 14px 22px!important;}
}



/* V19.2.256: authoritative toolbar sizing — the main race status is ~6.5x the compact secondary status. */
#racePanel .rv246-race-tools-row,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row {
  display:grid!important;
  grid-template-columns:clamp(102px,29vw,138px) minmax(0,3.12fr) minmax(20px,.48fr) 24px!important;
  grid-template-rows:40px!important;align-items:stretch!important;justify-items:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;
  gap:3px!important;margin:5px 0!important;padding:0!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row > *,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row > * {
  min-width:0!important;max-width:100%!important;min-height:0!important;margin:0!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls {
  display:flex!important;flex:0 1 auto!important;flex-flow:row nowrap!important;align-items:stretch!important;justify-content:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  gap:0!important;padding:2px!important;margin:0!important;overflow:hidden!important;text-align:center!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #raceRoomSelect,
#racePanel .rv246-race-tools-row .race-panel__controls #roomPasswordInput,
#racePanel .rv246-race-tools-row .race-panel__controls #btnEntryProposal,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #raceRoomSelect,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #roomPasswordInput,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnEntryProposal {display:none!important;}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom:not([hidden]):not([style*="display:none"]):not([style*="display: none"]) {
  display:flex!important;flex:1 1 100%!important;align-self:stretch!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
  margin:0!important;padding:2px 4px!important;overflow:hidden!important;overflow-wrap:anywhere!important;white-space:normal!important;
  text-align:center!important;text-align-last:center!important;font-size:clamp(9px,1.15vw,11px)!important;font-weight:900!important;line-height:1.12!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace[hidden],
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[hidden],
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display:none"],
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display: none"],
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display:none"],
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display: none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace[hidden],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[hidden],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display:none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display: none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display:none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display: none"] {display:none!important;}
#racePanel .rv246-race-tools-row #racePanelStatus,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus {
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-box-pack:center!important;-webkit-box-align:center!important;
  -webkit-line-clamp:2!important;line-clamp:2!important;align-self:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:2px 5px!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  text-align:center!important;text-align-last:center!important;font-size:clamp(10px,1.45vw,13px)!important;font-weight:800!important;line-height:1.12!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #raceStatusBox,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox {
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-box-pack:center!important;-webkit-box-align:center!important;
  -webkit-line-clamp:2!important;line-clamp:2!important;align-self:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:1px!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;
  text-align:center!important;text-align-last:center!important;font-size:clamp(6px,.9vw,8px)!important;line-height:1.02!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap {
  display:flex!important;align-items:center!important;justify-content:center!important;width:24px!important;min-width:24px!important;max-width:24px!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;padding:0!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle {
  display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:100%!important;min-height:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important;
}
@media (max-width:560px) {

 #racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{
  grid-template-columns:clamp(92px,29vw,118px) minmax(0,3.12fr) minmax(20px,.48fr) 22px!important;
  grid-template-rows:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;gap:2px!important;
 }
 #racePanel .rv246-race-tools-row>*,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{height:38px!important;min-height:38px!important;max-height:38px!important;}
 #racePanel .rv246-race-tools-row .race-panel__controls,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls{height:38px!important;min-height:38px!important;max-height:38px!important;}
 #racePanel .rv246-race-tools-row #racePanelStatus,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:10px!important;line-height:1.08!important;padding:2px 3px!important;}
 #racePanel .rv246-race-tools-row #raceStatusBox,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:6px!important;line-height:1.02!important;padding:0!important;}
 #racePanel .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap{width:22px!important;min-width:22px!important;max-width:22px!important;height:38px!important;min-height:38px!important;max-height:38px!important;}
}


/* Room info: undo legacy touch-action:none/overflow:hidden rules which blocked vertical touch scrolling. */
#rvV6Workspace .rv6-workspace-main{display:flex!important;flex-direction:column!important;height:100%!important;max-height:100%!important;min-height:0!important;overflow:hidden!important;}
#rvV6Workspace #rvV6PageHost{
  display:block!important;flex:1 1 0%!important;height:0!important;min-height:0!important;max-height:none!important;
  overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;scrollbar-width:thin!important;box-sizing:border-box!important;
}
#rvV6Workspace #rvV6Page_room.active{display:block!important;position:relative!important;width:100%!important;height:max-content!important;min-height:max-content!important;max-height:none!important;overflow:visible!important;touch-action:pan-y!important;}
#rvV6Workspace #rvV6Page_room #rvV6Surface_room{display:block!important;position:relative!important;width:100%!important;height:max-content!important;min-height:max-content!important;max-height:none!important;overflow:visible!important;touch-action:pan-y!important;}
#rvV6Workspace #rvV6Page_room #rvRoomPopup[data-v6-active="true"].open,
body.rv-v6-ready #rvV6Page_room #rvRoomPopup.open{
  display:flex!important;position:relative!important;inset:auto!important;width:100%!important;height:max-content!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;overflow:visible!important;overscroll-behavior:auto!important;touch-action:pan-y!important;
  align-items:stretch!important;justify-content:stretch!important;box-sizing:border-box!important;
}
#rvV6Workspace #rvV6Page_room #rvRoomPopup .rv-modal-card{
  display:block!important;position:relative!important;flex:0 0 auto!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;
  margin:0!important;overflow:visible!important;overflow-x:hidden!important;overflow-y:visible!important;overscroll-behavior:auto!important;
  -webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;box-sizing:border-box!important;
}
#rvV6Workspace #rvV6Page_room .rv-room-info-list,
#rvV6Workspace #rvV6Page_room .rv-room-info-list>*{min-width:0!important;max-width:100%!important;overflow:visible!important;overflow-wrap:anywhere!important;}


/* V19.2.257 — authoritative race toolbar geometry: full-fit controls, 6.5:1 primary/secondary status ratio, centered content. */
#racePanel .rv246-race-tools-row,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row {
  display:grid!important;
  grid-template-columns:clamp(122px,33vw,155px) minmax(0,4.4fr) minmax(0,.67fr) 24px!important;
  grid-template-rows:40px!important;
  align-items:stretch!important;justify-items:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;
  gap:3px!important;margin:5px 0!important;padding:0!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row > *,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row > * {
  align-self:stretch!important;justify-self:stretch!important;min-width:0!important;max-width:100%!important;
  height:100%!important;min-height:0!important;max-height:100%!important;margin:0!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls {
  display:flex!important;flex:0 0 auto!important;flex-flow:row nowrap!important;
  align-items:stretch!important;justify-content:stretch!important;text-align:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:100%!important;min-height:0!important;max-height:100%!important;
  gap:0!important;padding:2px!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #raceRoomSelect,
#racePanel .rv246-race-tools-row .race-panel__controls #roomPasswordInput,
#racePanel .rv246-race-tools-row .race-panel__controls #btnEntryProposal,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #raceRoomSelect,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #roomPasswordInput,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnEntryProposal {display:none!important;}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom:not([hidden]):not([style*="display:none"]):not([style*="display: none"]) {
  display:flex!important;flex:1 1 0!important;align-self:stretch!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
  margin:0!important;padding:2px 4px!important;overflow:hidden!important;overflow-wrap:anywhere!important;white-space:normal!important;
  text-align:center!important;text-align-last:center!important;font-size:clamp(9px,1.15vw,11px)!important;font-weight:900!important;line-height:1.12!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace[hidden],
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[hidden],
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display:none"],
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display: none"],
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display:none"],
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display: none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace[hidden],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[hidden],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display:none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display: none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display:none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display: none"] {display:none!important;}
#racePanel .rv246-race-tools-row #racePanelStatus,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus {
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-box-pack:center!important;-webkit-box-align:center!important;
  -webkit-line-clamp:2!important;line-clamp:2!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
  margin:0!important;padding:2px 5px!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  text-align:center!important;text-align-last:center!important;font-size:clamp(10px,1.55vw,13px)!important;font-weight:800!important;line-height:1.12!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #raceStatusBox,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox {
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-box-pack:center!important;-webkit-box-align:center!important;
  -webkit-line-clamp:2!important;line-clamp:2!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
  margin:0!important;padding:1px!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;
  text-align:center!important;text-align-last:center!important;font-size:clamp(6px,.95vw,8px)!important;line-height:1.04!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap {
  display:flex!important;align-items:center!important;justify-content:center!important;width:24px!important;min-width:24px!important;max-width:24px!important;
  height:100%!important;min-height:0!important;max-height:100%!important;margin:0!important;padding:0!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle {
  display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:100%!important;min-height:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important;
}
@media (max-width:560px) {

 #racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row {
  grid-template-columns:clamp(116px,32vw,142px) minmax(0,4.4fr) minmax(0,.67fr) 22px!important;
  grid-template-rows:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;gap:2px!important;
 }
 #racePanel .rv246-race-tools-row>*,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{height:38px!important;min-height:38px!important;max-height:38px!important;}
 #racePanel .rv246-race-tools-row .race-panel__controls,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls{height:38px!important;min-height:38px!important;max-height:38px!important;}
 #racePanel .rv246-race-tools-row #racePanelStatus,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:clamp(9px,2vw,11px)!important;}
 #racePanel .rv246-race-tools-row #raceStatusBox,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:6px!important;padding:0!important;}
 #racePanel .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap{width:22px!important;min-width:22px!important;max-width:22px!important;height:38px!important;min-height:38px!important;max-height:38px!important;}
}



/* V19.2.258 — final race toolbar sizing: fitted action, 6.5:1 primary/secondary status tracks, centered contents. */
#racePanel .rv246-race-tools-row,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row {
  display:grid!important;
  grid-template-columns:clamp(122px,33vw,155px) minmax(0,4.4fr) minmax(0,.67fr) 24px!important;
  grid-template-rows:40px!important;
  align-items:stretch!important;justify-items:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;
  gap:3px!important;margin:5px 0!important;padding:0!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row > *,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row > * {
  align-self:stretch!important;justify-self:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:100%!important;min-height:0!important;max-height:100%!important;
  margin:0!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls {
  display:flex!important;flex:0 0 auto!important;flex-flow:row nowrap!important;
  align-items:stretch!important;justify-content:stretch!important;text-align:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:100%!important;min-height:0!important;max-height:100%!important;
  gap:0!important;padding:2px!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #raceRoomSelect,
#racePanel .rv246-race-tools-row .race-panel__controls #roomPasswordInput,
#racePanel .rv246-race-tools-row .race-panel__controls #btnEntryProposal,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #raceRoomSelect,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #roomPasswordInput,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnEntryProposal {display:none!important;}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom:not([hidden]):not([style*="display:none"]):not([style*="display: none"]) {
  display:flex!important;flex:1 1 0!important;align-self:stretch!important;
  align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:100%!important;min-height:0!important;max-height:100%!important;
  margin:0!important;padding:2px 4px!important;overflow:hidden!important;
  overflow-wrap:anywhere!important;white-space:normal!important;
  text-align:center!important;text-align-last:center!important;
  font-size:clamp(9px,1.15vw,11px)!important;font-weight:900!important;line-height:1.12!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace[hidden],
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[hidden],
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display:none"],
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display: none"],
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display:none"],
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display: none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace[hidden],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[hidden],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display:none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace[style*="display: none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display:none"],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[style*="display: none"] {display:none!important;}
#racePanel .rv246-race-tools-row #racePanelStatus,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus {
  display:-webkit-box!important;-webkit-box-orient:vertical!important;
  -webkit-box-pack:center!important;-webkit-box-align:center!important;
  -webkit-line-clamp:2!important;line-clamp:2!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:100%!important;min-height:0!important;max-height:100%!important;
  margin:0!important;padding:2px 5px!important;overflow:hidden!important;
  white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  text-align:center!important;text-align-last:center!important;
  font-size:clamp(10px,1.55vw,13px)!important;font-weight:800!important;line-height:1.12!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #raceStatusBox,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox {
  display:-webkit-box!important;-webkit-box-orient:vertical!important;
  -webkit-box-pack:center!important;-webkit-box-align:center!important;
  -webkit-line-clamp:2!important;line-clamp:2!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:100%!important;min-height:0!important;max-height:100%!important;
  margin:0!important;padding:1px!important;overflow:hidden!important;
  white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;
  text-align:center!important;text-align-last:center!important;
  font-size:clamp(6px,.95vw,8px)!important;line-height:1.04!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap {
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:24px!important;min-width:24px!important;max-width:24px!important;
  height:100%!important;min-height:0!important;max-height:100%!important;
  margin:0!important;padding:0!important;box-sizing:border-box!important;
}
@media (max-width:560px) {

 #racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row {
  grid-template-columns:clamp(116px,32vw,142px) minmax(0,4.4fr) minmax(0,.67fr) 22px!important;
  grid-template-rows:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;gap:2px!important;
 }
 #racePanel .rv246-race-tools-row>*,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{height:38px!important;min-height:38px!important;max-height:38px!important;}
 #racePanel .rv246-race-tools-row .race-panel__controls,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls{height:38px!important;min-height:38px!important;max-height:38px!important;}
 #racePanel .rv246-race-tools-row #racePanelStatus,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:clamp(9px,2vw,11px)!important;}
 #racePanel .rv246-race-tools-row #raceStatusBox,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:6px!important;padding:0!important;}
 #racePanel .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap{width:22px!important;min-width:22px!important;max-width:22px!important;height:38px!important;min-height:38px!important;max-height:38px!important;}
}



/* V19.2.259 — final centered status geometry, preserving 6.5:1 responsive track ratio. */
#racePanel .rv246-race-tools-row #racePanelStatus,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus {
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  justify-self:stretch!important;align-self:stretch!important;text-align:center!important;text-align-last:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
  padding:2px 5px!important;margin:0!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  line-height:1.12!important;font-size:clamp(10px,1.55vw,13px)!important;font-weight:800!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #racePanelStatus > *,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus > * {
  max-width:100%!important;text-align:center!important;text-align-last:center!important;overflow-wrap:anywhere!important;
}
#racePanel .rv246-race-tools-row #raceStatusBox,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox {
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  justify-self:stretch!important;align-self:stretch!important;text-align:center!important;text-align-last:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
  padding:1px!important;margin:0!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;
  font-size:clamp(6px,.95vw,8px)!important;line-height:1.04!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row #raceStatusBox > *,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox > * {
  max-width:100%!important;text-align:center!important;text-align-last:center!important;overflow-wrap:anywhere!important;
}
@media (max-width:560px) {

 #racePanel .rv246-race-tools-row #racePanelStatus,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{font-size:clamp(9px,2vw,11px)!important;line-height:1.08!important;}
 #racePanel .rv246-race-tools-row #raceStatusBox,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{font-size:6px!important;line-height:1.02!important;padding:0!important;}
}



/* V19.2.262 — reduce the actual #raceStatusBox track by about one-third from V19.2.261; freed space goes to #racePanelStatus. */
#racePanel .rv246-race-tools-row,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row {
  grid-template-columns:clamp(122px,33vw,155px) minmax(0,4.4fr) minmax(0,.20fr) 24px!important;
}
@media (max-width:560px) {

  #racePanel .rv246-race-tools-row,
  body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row {
    grid-template-columns:clamp(116px,32vw,142px) minmax(0,4.4fr) minmax(0,.20fr) 22px!important;
  }
}



/* V19.2.263 — fallback for the exact same #raceStatusBox before the JS toolbar wrapper exists. */
#racePanel > #raceStatusBox {
  width:66.6667%!important;
  max-width:66.6667%!important;
  min-width:0!important;
  justify-self:center!important;
  align-self:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
  text-align:center!important;
}


/* V19.2.265 — double the #raceStatusBox track share while keeping a usable primary status and square search control. */
#rvV6Page_races #racePanel .rv246-race-tools-row,
#racePanel .rv246-race-tools-row,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row {
  display:grid!important;
  grid-template-columns:clamp(104px,18vw,138px) minmax(0,5fr) minmax(236px,2fr) 42px!important;
  grid-template-rows:auto!important;
  align-items:stretch!important;justify-items:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:auto!important;min-height:46px!important;max-height:none!important;
  gap:5px!important;margin:5px 0!important;padding:0!important;overflow:visible!important;box-sizing:border-box!important;
}
#rvV6Page_races #racePanel .rv246-race-tools-row > *,
#racePanel .rv246-race-tools-row > *,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row > * {
  min-width:0!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
  margin:0!important;align-self:stretch!important;justify-self:stretch!important;box-sizing:border-box!important;
}
#rvV6Page_races #racePanel .rv246-race-tools-row > .race-panel__controls,
#racePanel .rv246-race-tools-row > .race-panel__controls,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row > .race-panel__controls {
  grid-column:1 / 2!important;grid-row:1!important;
  display:flex!important;flex:0 1 auto!important;flex-flow:row nowrap!important;
  align-items:stretch!important;justify-content:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:auto!important;min-height:42px!important;max-height:none!important;
  padding:2px!important;gap:2px!important;overflow:hidden!important;box-sizing:border-box!important;
}
#rvV6Page_races #racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,
#rvV6Page_races #racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom,
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom {
  flex:1 1 0!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:auto!important;min-height:38px!important;max-height:none!important;
  display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;
  white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.15!important;
  padding:4px!important;font-size:clamp(9px,1vw,11px)!important;box-sizing:border-box!important;
}
#rvV6Page_races #racePanel .rv246-race-tools-row > #racePanelStatus,
#racePanel .rv246-race-tools-row > #racePanelStatus,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row > #racePanelStatus {
  grid-column:2 / 3!important;grid-row:1!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:46px!important;max-height:none!important;
  margin:0!important;padding:5px 7px!important;overflow:hidden!important;white-space:normal!important;
  overflow-wrap:anywhere!important;word-break:normal!important;text-align:center!important;text-align-last:center!important;
  font-size:clamp(10px,1vw,12px)!important;font-weight:800!important;line-height:1.15!important;box-sizing:border-box!important;
}
#rvV6Page_races #racePanel .rv246-race-tools-row > #raceStatusBox,
#racePanel .rv246-race-tools-row > #raceStatusBox,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row > #raceStatusBox {
  grid-column:3 / 4!important;grid-row:1!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:46px!important;max-height:none!important;
  margin:0!important;padding:6px 8px!important;overflow:visible!important;white-space:normal!important;
  overflow-wrap:anywhere!important;word-break:normal!important;text-align:center!important;text-align-last:center!important;
  font-size:clamp(9.5px,.85vw,11px)!important;font-weight:700!important;line-height:1.16!important;
  border-radius:8px!important;box-sizing:border-box!important;
}
#rvV6Page_races #racePanel .rv246-race-tools-row > #rvRoomSearchWrap,
#racePanel .rv246-race-tools-row > #rvRoomSearchWrap,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row > #rvRoomSearchWrap {
  grid-column:4 / 5!important;grid-row:1!important;
  position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
  justify-self:center!important;align-self:center!important;flex:0 0 42px!important;
  width:42px!important;min-width:42px!important;max-width:42px!important;
  height:42px!important;min-height:42px!important;max-height:42px!important;
  margin:0!important;padding:0!important;overflow:visible!important;box-sizing:border-box!important;
}
#rvV6Page_races #racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle,
#rvV6Page_races #racePanel .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle,
#rvV6Page_races #racePanel .rv246-race-tools-row #rvRoomSearchWrap > button,
#racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle,
#racePanel .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle,
#racePanel .rv246-race-tools-row #rvRoomSearchWrap > button,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle {
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 42px!important;width:42px!important;min-width:42px!important;max-width:42px!important;
  height:42px!important;min-height:42px!important;max-height:42px!important;
  margin:0!important;padding:0!important;border-radius:9px!important;box-sizing:border-box!important;
}
@media (max-width:650px) {

  #rvV6Page_races #racePanel .rv246-race-tools-row,
  #racePanel .rv246-race-tools-row,
  body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row {
    grid-template-columns:clamp(72px,16vw,104px) minmax(0,4fr) minmax(164px,2fr) 40px!important;
    grid-template-rows:auto!important;min-height:42px!important;height:auto!important;max-height:none!important;gap:3px!important;
  }
  #rvV6Page_races #racePanel .rv246-race-tools-row > #racePanelStatus,
  #racePanel .rv246-race-tools-row > #racePanelStatus,
  body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row > #racePanelStatus {min-height:42px!important;padding:4px 5px!important;font-size:clamp(9px,1.5vw,10.5px)!important;}
  #rvV6Page_races #racePanel .rv246-race-tools-row > #raceStatusBox,
  #racePanel .rv246-race-tools-row > #raceStatusBox,
  body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row > #raceStatusBox {min-height:42px!important;padding:5px 6px!important;font-size:9.2px!important;line-height:1.16!important;}
  #rvV6Page_races #racePanel .rv246-race-tools-row > #rvRoomSearchWrap,
  #racePanel .rv246-race-tools-row > #rvRoomSearchWrap,
  body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row > #rvRoomSearchWrap {width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;}
  #rvV6Page_races #racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle,
  #rvV6Page_races #racePanel .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle,
  #rvV6Page_races #racePanel .rv246-race-tools-row #rvRoomSearchWrap > button,
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle,
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle,
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap > button {flex:0 0 40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;}
}

@media (max-width:390px) and (orientation:landscape) {

  #rvV6Page_races #racePanel .rv246-race-tools-row,
  #racePanel .rv246-race-tools-row,
  body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row {
    grid-template-columns:clamp(64px,18vw,78px) minmax(0,3fr) minmax(148px,2fr) 36px!important;gap:2px!important;
  }
  #rvV6Page_races #racePanel .rv246-race-tools-row > #raceStatusBox,
  #racePanel .rv246-race-tools-row > #raceStatusBox,
  body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row > #raceStatusBox {padding:4px 5px!important;font-size:8.8px!important;}
  #rvV6Page_races #racePanel .rv246-race-tools-row > #rvRoomSearchWrap,
  #racePanel .rv246-race-tools-row > #rvRoomSearchWrap,
  body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row > #rvRoomSearchWrap {width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;}
  #rvV6Page_races #racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle,
  #rvV6Page_races #racePanel .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle,
  #rvV6Page_races #racePanel .rv246-race-tools-row #rvRoomSearchWrap > button,
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle,
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle,
  #racePanel .rv246-race-tools-row #rvRoomSearchWrap > button {flex:0 0 36px!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;}
}



/* V19.2.265 — width increase is applied to the real grid track containing #raceStatusBox, not only to the element box. The track minimum is doubled in each responsive mode: 118→236px, 82→164px, 74→148px; the neighboring #racePanelStatus yields space proportionally. */


/* V19.2.266 — solo-first room state, readable two-line status, clean nav logo, and a legible mobile HUD mark. */
#rvV6Page_races #racePanel .rv246-race-tools-row > #raceStatusBox,
#racePanel .rv246-race-tools-row > #raceStatusBox,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row > #raceStatusBox {
  white-space:pre-line!important;display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;padding:6px 9px!important;
  line-height:1.22!important;font-size:clamp(10px,.95vw,12px)!important;
  text-align:center!important;text-align-last:center!important;overflow-wrap:anywhere!important;box-sizing:border-box!important;
}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace[hidden],
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[hidden],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace[hidden],
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom[hidden] {
  display:none!important;visibility:hidden!important;pointer-events:none!important;
}
#rvV6Workspace .rv6-nav-brand .rv6-nav-logo,
body.rv-v6-ready #rvV6Workspace .rv6-nav-brand .rv6-nav-logo {
  border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
  filter:none!important;clip-path:none!important;
}
#rvV6Workspace .rv6-nav-brand .rv6-nav-logo img,
body.rv-v6-ready #rvV6Workspace .rv6-nav-brand .rv6-nav-logo img {
  border:0!important;outline:0!important;box-shadow:none!important;filter:none!important;
}
@media (max-width:700px) {

  #rvV6GameHud .rv6-brand-logo,
  body.rv238-hud-vector #rvV6GameHud .rv6-brand-logo {
    width:40px!important;height:28px!important;min-width:40px!important;max-width:40px!important;
    flex:0 0 40px!important;padding:0!important;border:0!important;border-right:0!important;
    clip-path:none!important;border-radius:0!important;box-shadow:none!important;
  }
  #rvV6GameHud .rv6-brand-logo img,
  body.rv238-hud-vector #rvV6GameHud .rv6-brand-logo img {
    display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:100%!important;
    object-fit:contain!important;border:0!important;outline:0!important;box-shadow:none!important;filter:none!important;
  }
}

@media (max-width:430px) {

  #rvV6GameHud .rv6-brand {gap:3px!important;min-width:0!important;}
  #rvV6GameHud .rv6-brand-logo,
  body.rv238-hud-vector #rvV6GameHud .rv6-brand-logo {width:38px!important;height:26px!important;min-width:38px!important;max-width:38px!important;flex:0 0 38px!important;}
  #rvV6GameHud .rv6-brand-copy {min-width:0!important;max-width:58px!important;overflow:hidden!important;}
  #rvV6GameHud .rv6-brand-copy b {font-size:9px!important;letter-spacing:.02em!important;}
  #rvV6GameHud .rv6-brand-copy small {display:none!important;}
}

@media (max-width:390px) {

  /* Keep the navigation rail's original 8px layout box; only the image gets a tiny visual scale-up. */
  #rvV6Workspace .rv6-nav-brand .rv6-nav-logo,
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand .rv6-nav-logo {
    position:relative!important;width:8px!important;height:8px!important;min-width:8px!important;min-height:8px!important;
    max-width:8px!important;max-height:8px!important;flex:0 0 8px!important;overflow:visible!important;
  }
  #rvV6Workspace .rv6-nav-brand .rv6-nav-logo img,
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand .rv6-nav-logo img {
    position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;
    width:10px!important;height:10px!important;max-width:none!important;max-height:none!important;object-fit:contain!important;
  }
}


/* Landscape phones (including iPhone SE-class viewports): enlarge only the nav-logo image by 2px; keep the responsive rail cell unchanged. */
@media (max-width:700px) and (orientation:landscape) {

  #rvV6Workspace .rv6-nav-brand .rv6-nav-logo,
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand .rv6-nav-logo{
    position:relative!important;overflow:visible!important;border:0!important;box-shadow:none!important;
  }
  #rvV6Workspace .rv6-nav-brand .rv6-nav-logo img,
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand .rv6-nav-logo img{
    position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;
    width:22px!important;height:22px!important;max-width:none!important;max-height:none!important;object-fit:contain!important;
  }
}

@media (max-width:390px) and (orientation:landscape) {

  #rvV6Workspace .rv6-nav-brand .rv6-nav-logo,
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand .rv6-nav-logo{
    width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;flex:0 0 16px!important;
  }
  #rvV6Workspace .rv6-nav-brand .rv6-nav-logo img,
  body.rv-v6-ready #rvV6Workspace .rv6-nav-brand .rv6-nav-logo img{width:18px!important;height:18px!important;}
}



/* V19.2.267 — preserve explicit two-line room status messages and visibly disable offline room actions. */
#racePanel #racePanelStatus{display:block!important;min-width:0!important;max-width:100%!important;white-space:pre-line!important;line-height:1.4!important;text-align:right!important;}
#rvV6Page_races #racePanel #raceStatusBox,
body.rv-v6-ready #racePanel[data-v6-active="true"] #raceStatusBox,
#racePanel .rv246-race-tools-row #raceStatusBox,
#racePanel > #raceStatusBox{white-space:pre-line!important;line-height:1.4!important;}
#raceRoomsList .rv-room-actions button:disabled{opacity:.42!important;cursor:not-allowed!important;filter:saturate(.25)!important;pointer-events:none!important;}


/* V19.2.268 — unify timing-card opacity and fit telemetry on landscape phones without increasing the speed pod's prior height. */
@media  (max-width:1100px) and (max-height:620px) and (orientation:landscape)  {

  #rvV6GameHud .rv6-speed-pod,
  body.rv-v6-ready #rvV6GameHud .rv6-speed-pod {
    box-sizing:border-box!important;
    height:clamp(78px,26dvh,99px)!important;
    min-height:0!important;
    max-height:99px!important;
    padding:4px 5px 3px!important;
  }
  #rvV6GameHud .rv6-speed-head {
    flex:0 0 8px!important;height:8px!important;min-height:8px!important;
    padding-left:10px!important;font-size:6px!important;line-height:1!important;
  }
  #rvV6GameHud #speed {
    display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;
    gap:5px!important;width:100%!important;height:clamp(48px,15dvh,55px)!important;
    min-height:0!important;max-height:55px!important;padding:0!important;margin:0!important;box-sizing:border-box!important;
  }
  #rvV6GameHud #speed #speed_value {
    display:inline-block!important;flex:0 0 auto!important;margin-top:13px!important;
    font-size:clamp(24px,4vw,31px)!important;line-height:1!important;letter-spacing:-.055em!important;
  }
  #rvV6GameHud #speed .rv5-speed-unit {
    display:inline-block!important;flex:0 0 auto!important;margin-top:13px!important;
    font-size:clamp(6px,1vw,8px)!important;line-height:1!important;letter-spacing:.06em!important;white-space:nowrap!important;
  }
  #rvV6GameHud #speed #rvV5SpeedTag {display:none!important;}
  #rvV6GameHud #speed #rvV5SpeedArc {top:-9px!important;height:63px!important;width:100%!important;}
  #rvV6GameHud .rv6-speed-foot {
    flex:0 0 8px!important;height:8px!important;min-height:8px!important;
    margin-top:auto!important;padding:2px 5px 0 8px!important;font-size:6px!important;line-height:1!important;
  }
  #rvV6GameHud #rvV6GearReadout {right:4px!important;bottom:12px!important;width:22px!important;height:26px!important;}
  #rvV6GameHud #rvV6GearReadout small {font-size:4px!important;}
  #rvV6GameHud #rvV6GearNumber {font-size:14px!important;}

  #rvV6GameHud .rv6-race-telemetry {
    left:clamp(118px,19vw,140px)!important;right:clamp(148px,22vw,154px)!important;
    height:36px!important;min-height:36px!important;max-height:36px!important;
    display:flex!important;align-items:stretch!important;box-sizing:border-box!important;
    padding:0 2px!important;overflow:hidden!important;gap:0!important;
  }
  #rvV6GameHud .rv6-lap-display {
    display:grid!important;grid-template-columns:auto auto!important;grid-template-rows:auto auto!important;
    flex:0 0 clamp(46px,9vw,62px)!important;min-width:0!important;height:100%!important;
    align-content:center!important;align-items:center!important;justify-content:center!important;
    gap:1px 3px!important;padding:2px 3px!important;box-sizing:border-box!important;
  }
  #rvV6GameHud .rv6-lap-display small {grid-column:1/-1!important;font-size:6px!important;line-height:1!important;letter-spacing:.06em!important;white-space:nowrap!important;}
  #rvV6GameHud .rv6-lap-display b {font-size:13px!important;line-height:1!important;white-space:nowrap!important;}
  #rvV6GameHud .rv6-lap-display span {font-size:7px!important;line-height:1!important;white-space:nowrap!important;}
  #rvV6GameHud .rv6-timing-grid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;flex:1 1 0!important;width:auto!important;min-width:0!important;height:100%!important;}
  #rvV6GameHud .rv6-time-cell {
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    min-width:0!important;width:auto!important;height:100%!important;gap:2px!important;
    padding:2px 2px!important;box-sizing:border-box!important;overflow:hidden!important;
  }
  #rvV6GameHud .rv6-time-cell>small {
    display:block!important;flex:0 0 auto!important;max-width:100%!important;
    font-size:6.2px!important;line-height:1!important;letter-spacing:.035em!important;white-space:nowrap!important;
  }
  #rvV6GameHud .rv6-time-cell .rv6-time-value,
  #rvV6GameHud .rv6-time-cell #current_lap_time,
  #rvV6GameHud .rv6-time-cell #last_lap_time,
  #rvV6GameHud .rv6-time-cell #fast_lap_time {
    display:block!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;
    text-align:center!important;line-height:1.05!important;white-space:nowrap!important;overflow:visible!important;
    font-size:0!important;
  }
  #rvV6GameHud #current_lap_time_value,
  #rvV6GameHud #last_lap_time_value,
  #rvV6GameHud #fast_lap_time_value {
    display:inline-block!important;max-width:100%!important;font-size:clamp(7px,1.2vw,9px)!important;
    line-height:1.05!important;white-space:nowrap!important;font-variant-numeric:tabular-nums!important;
  }
}



/* V19.2.275 — compact-landscape speedometer final balance.
   Carry forward the confirmed no-crop telemetry layout, trim its row by 3px,
   center every value vertically in its background, restore/position SPEED,
   and center KM/H directly under the speed numeral. The pod remains 99px tall. */
@media  (max-width:1100px) and (max-height:620px) and (orientation:landscape)  {

  #rvV6GameHud #rvV6SpeedPod,
  #rvV6GameHud .rv6-speed-pod,
  body.rv-v6-ready #rvV6GameHud #rvV6SpeedPod,
  body.rv-v6-ready #rvV6GameHud .rv6-speed-pod {
    height:99px!important; min-height:99px!important; max-height:99px!important;
    box-sizing:border-box!important; padding:1px 4px 1px!important;
    display:flex!important; flex-direction:column!important; gap:0!important;
  }

  /* The top header/footer retain their existing layout slots; only their text shrinks one step. */
  #rvV6GameHud .rv6-speed-head,
  #rvV6GameHud .rv6-speed-head span,
  #rvV6GameHud .rv6-speed-head span:last-child,
  #rvV6GameHud .rv6-speed-foot,
  #rvV6GameHud .rv6-speed-foot small {
    font-size:5px!important; line-height:1!important;
  }

  /* Main speed field: 56px, compensating for the 3px shorter timing strip. */
  #rvV6GameHud #rvV6SpeedPod #speed {
    position:relative!important; display:block!important;
    flex:0 0 56px!important; width:100%!important;
    height:56px!important; min-height:56px!important; max-height:56px!important;
    padding:0!important; margin:0!important; overflow:visible!important;
    box-sizing:border-box!important;
  }
  #rvV6GameHud #rvV6SpeedPod #speed #rvV5SpeedArc {
    position:absolute!important; top:-8px!important; left:0!important;
    width:100%!important; height:51px!important; max-height:51px!important;
    z-index:1!important; pointer-events:none!important;
  }
  /* SPEED sits below the top rule, above the reading, aligned to the left. */
  #rvV6GameHud #rvV6SpeedPod #speed #rvV5SpeedTag {
    display:block!important; position:absolute!important;
    top:9px!important; left:7px!important; right:auto!important; bottom:auto!important;
    transform:none!important; z-index:5!important;
    margin:0!important; padding:0!important;
    font-size:clamp(7px,.8vw,9px)!important; line-height:1!important;
    text-align:left!important; white-space:nowrap!important;
    visibility:visible!important; opacity:1!important;
  }
  /* Speed numeral: one step larger than the preceding pass, centered in the dial. */
  #rvV6GameHud #rvV6SpeedPod #speed #speed_value {
    position:absolute!important; top:17px!important; left:50%!important;
    transform:translateX(-50%)!important; z-index:4!important;
    display:block!important; width:max-content!important; max-width:100%!important;
    margin:0!important; padding:0!important;
    font-size:clamp(26px,3.8vw,31px)!important; line-height:.92!important;
    letter-spacing:-.045em!important; text-align:center!important;
    white-space:nowrap!important; font-variant-numeric:tabular-nums!important;
  }
  /* KM/H is centered horizontally to the numeral rather than sitting off to its side. */
  #rvV6GameHud #rvV6SpeedPod #speed .rv5-speed-unit {
    position:absolute!important; top:43px!important; left:50%!important;
    transform:translateX(-50%)!important; z-index:4!important;
    display:block!important; width:max-content!important; max-width:100%!important;
    margin:0!important; padding:0!important;
    font-size:clamp(6px,.8vw,8px)!important; line-height:1!important;
    text-align:center!important; white-space:nowrap!important;
  }

  /* Three-pixel trim: 44px -> 41px. Background and content share the same box. */
  #rvV6GameHud #rvV6RaceTelemetry,
  body.rv-v6-ready #rvV6GameHud #rvV6RaceTelemetry {
    position:relative!important; inset:auto!important; left:auto!important; right:auto!important; bottom:auto!important;
    display:flex!important; flex:0 0 41px!important; width:100%!important;
    height:41px!important; min-height:41px!important; max-height:41px!important;
    margin:0!important; padding:0 2px!important; gap:2px!important;
    align-items:stretch!important; box-sizing:border-box!important;
    overflow:visible!important; background:rgba(7,13,23,.96)!important;
    border:1px solid rgba(111,190,255,.42)!important; border-radius:7px!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-lap-display,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-timing-grid,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell {
    height:100%!important; min-height:0!important; max-height:100%!important;
    align-self:stretch!important; box-sizing:border-box!important;
    overflow:visible!important; margin:0!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-lap-display {
    display:grid!important; grid-template-columns:auto auto!important; grid-template-rows:auto auto!important;
    flex:0 0 clamp(46px,9vw,62px)!important; min-width:0!important;
    align-content:center!important; align-items:center!important; justify-content:center!important;
    gap:1px 3px!important; padding:0 2px!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-lap-display small {
    grid-column:1/-1!important; margin:0!important;
    font-size:clamp(7px,.78vw,9px)!important; line-height:1!important;
    text-align:center!important; white-space:nowrap!important; overflow:visible!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-lap-display b {
    font-size:clamp(16px,2.4vw,19px)!important; line-height:1!important;
    text-align:center!important; white-space:nowrap!important; overflow:visible!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-lap-display span {
    font-size:clamp(7px,.8vw,9px)!important; line-height:1!important;
    text-align:center!important; white-space:nowrap!important; overflow:visible!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-timing-grid {
    display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important;
    flex:1 1 0!important; width:auto!important; min-width:0!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell {
    display:flex!important; flex-direction:column!important;
    align-items:center!important; justify-content:center!important;
    min-width:0!important; width:auto!important; gap:1px!important;
    padding:0 1px!important; text-align:center!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell>small {
    display:block!important; flex:0 0 auto!important; max-width:100%!important;
    margin:0!important; font-size:clamp(7px,.78vw,9px)!important;
    line-height:1!important; letter-spacing:.02em!important;
    text-align:center!important; white-space:nowrap!important; overflow:visible!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell .rv6-time-value,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell #current_lap_time,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell #last_lap_time,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell #fast_lap_time {
    display:block!important; flex:0 0 auto!important; width:100%!important;
    min-width:0!important; max-width:100%!important; margin:0!important;
    text-align:center!important; line-height:1!important; white-space:nowrap!important;
    overflow:visible!important; font-size:0!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry #current_lap_time_value,
  #rvV6GameHud #rvV6RaceTelemetry #last_lap_time_value,
  #rvV6GameHud #rvV6RaceTelemetry #fast_lap_time_value {
    display:inline-block!important; max-width:100%!important;
    font-size:clamp(12px,1.6vw,15px)!important; line-height:1!important;
    text-align:center!important; white-space:nowrap!important;
    overflow:visible!important; font-variant-numeric:tabular-nums!important;
    letter-spacing:-.035em!important;
  }
}



/* V19.2.276 — timing row trim and final compact mobile speed label alignment.
   Keep the outer meter exactly 99px high: timing card 41 -> 38px, speed field grows
   by the same 3px. Re-center the timing data within each background, put SPEED below
   the dial's upper rule at the left, and align KM/H vertically just to the left of the
   speed number. Give the speed header label room past the meter's slanted left edge. */
@media  (max-width:1100px) and (max-height:620px) and (orientation:landscape)  {

  #rvV6GameHud #rvV6SpeedPod,
  #rvV6GameHud .rv6-speed-pod,
  body.rv-v6-ready #rvV6GameHud #rvV6SpeedPod,
  body.rv-v6-ready #rvV6GameHud .rv6-speed-pod {
    height:99px!important; min-height:99px!important; max-height:99px!important;
    box-sizing:border-box!important; padding:1px 4px!important;
    display:flex!important; flex-direction:column!important; gap:0!important;
  }
  /* Header text: one step larger than v275; inset ~10 narrow spaces from the left wall. */
  #rvV6GameHud .rv6-speed-head {
    padding-left:clamp(30px,5vw,38px)!important; padding-right:2px!important;
    box-sizing:border-box!important; text-align:left!important; overflow:visible!important;
    font-size:6px!important; line-height:1!important; white-space:nowrap!important;
  }
  #rvV6GameHud .rv6-speed-head span,
  #rvV6GameHud .rv6-speed-head span:last-child,
  #rvV6GameHud .rv6-speed-foot,
  #rvV6GameHud .rv6-speed-foot small {
    font-size:6px!important; line-height:1!important; white-space:nowrap!important;
  }
  #rvV6GameHud .rv6-speed-head span:first-child {
    overflow:visible!important; text-overflow:clip!important; min-width:max-content!important;
  }
  /* Allocate the 3px saved from the timing strip to the actual speed field. */
  #rvV6GameHud #rvV6SpeedPod #speed {
    position:relative!important; display:block!important; flex:0 0 59px!important;
    width:100%!important; height:59px!important; min-height:59px!important; max-height:59px!important;
    padding:0!important; margin:0!important; overflow:visible!important; box-sizing:border-box!important;
  }
  #rvV6GameHud #rvV6SpeedPod #speed #rvV5SpeedArc {
    position:absolute!important; top:-8px!important; left:0!important;
    width:100%!important; height:51px!important; max-height:51px!important;
    z-index:1!important; pointer-events:none!important;
  }
  /* SPEED must be below, not level with, the upper rule; anchor it to the left. */
  #rvV6GameHud #rvV6SpeedPod #speed #rvV5SpeedTag {
    display:block!important; position:absolute!important;
    top:13px!important; left:7px!important; right:auto!important; bottom:auto!important;
    transform:none!important; z-index:5!important; margin:0!important; padding:0!important;
    font-size:clamp(7px,.8vw,9px)!important; line-height:1!important;
    text-align:left!important; white-space:nowrap!important; overflow:visible!important;
    visibility:visible!important; opacity:1!important;
  }
  /* Speed number one size larger than v275. */
  #rvV6GameHud #rvV6SpeedPod #speed #speed_value {
    position:absolute!important; top:21px!important; left:50%!important;
    transform:translateX(-50%)!important; z-index:4!important;
    display:block!important; width:max-content!important; max-width:100%!important;
    margin:0!important; padding:0!important;
    font-size:clamp(28px,4.1vw,33px)!important; line-height:.92!important;
    letter-spacing:-.045em!important; text-align:center!important;
    white-space:nowrap!important; font-variant-numeric:tabular-nums!important;
  }
  /* KM/H: vertically centered against the number and placed immediately to its left. */
  #rvV6GameHud #rvV6SpeedPod #speed .rv5-speed-unit {
    position:absolute!important; top:32px!important; right:calc(50% + 25px)!important;
    left:auto!important; transform:none!important; z-index:4!important;
    display:block!important; width:max-content!important; max-width:100%!important;
    margin:0!important; padding:0!important;
    font-size:clamp(6px,.8vw,8px)!important; line-height:1!important;
    text-align:right!important; white-space:nowrap!important;
  }
  /* LAP/CURRENT/BEST/LAST background is reduced another 3px: 41 -> 38px. */
  #rvV6GameHud #rvV6RaceTelemetry,
  body.rv-v6-ready #rvV6GameHud #rvV6RaceTelemetry {
    position:relative!important; inset:auto!important; left:auto!important; right:auto!important; bottom:auto!important;
    display:flex!important; flex:0 0 38px!important; width:100%!important;
    height:38px!important; min-height:38px!important; max-height:38px!important;
    margin:0!important; padding:0 2px!important; gap:2px!important;
    align-items:stretch!important; box-sizing:border-box!important;
    overflow:visible!important; background:rgba(7,13,23,.96)!important;
    border:1px solid rgba(111,190,255,.42)!important; border-radius:7px!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-lap-display,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-timing-grid,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell {
    height:100%!important; min-height:0!important; max-height:100%!important;
    align-self:stretch!important; box-sizing:border-box!important;
    overflow:visible!important; margin:0!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-lap-display {
    display:grid!important; grid-template-columns:auto auto!important; grid-template-rows:auto auto!important;
    flex:0 0 clamp(46px,9vw,62px)!important; min-width:0!important;
    align-content:center!important; align-items:center!important; justify-content:center!important;
    gap:1px 3px!important; padding:0 2px!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-lap-display small {
    grid-column:1/-1!important; margin:0!important; font-size:clamp(7px,.78vw,9px)!important;
    line-height:1!important; text-align:center!important; white-space:nowrap!important; overflow:visible!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-lap-display b {
    font-size:clamp(16px,2.4vw,19px)!important; line-height:1!important;
    text-align:center!important; white-space:nowrap!important; overflow:visible!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-lap-display span {
    font-size:clamp(7px,.8vw,9px)!important; line-height:1!important;
    text-align:center!important; white-space:nowrap!important; overflow:visible!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-timing-grid {
    display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important;
    flex:1 1 0!important; width:auto!important; min-width:0!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell {
    display:flex!important; flex-direction:column!important;
    align-items:center!important; justify-content:center!important;
    min-width:0!important; width:auto!important; gap:1px!important;
    padding:0 1px!important; text-align:center!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell>small {
    display:block!important; flex:0 0 auto!important; max-width:100%!important; margin:0!important;
    font-size:clamp(7px,.78vw,9px)!important; line-height:1!important; letter-spacing:.02em!important;
    text-align:center!important; white-space:nowrap!important; overflow:visible!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell .rv6-time-value,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell #current_lap_time,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell #last_lap_time,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell #fast_lap_time {
    display:block!important; flex:0 0 auto!important; width:100%!important; min-width:0!important;
    max-width:100%!important; margin:0!important; text-align:center!important; line-height:1!important;
    white-space:nowrap!important; overflow:visible!important; font-size:0!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry #current_lap_time_value,
  #rvV6GameHud #rvV6RaceTelemetry #last_lap_time_value,
  #rvV6GameHud #rvV6RaceTelemetry #fast_lap_time_value {
    display:inline-block!important; max-width:100%!important;
    font-size:clamp(12px,1.6vw,15px)!important; line-height:1!important;
    text-align:center!important; white-space:nowrap!important; overflow:visible!important;
    font-variant-numeric:tabular-nums!important; letter-spacing:-.035em!important;
  }
}



/* V19.2.277 — final compact-mobile typography and rule spacing pass.
   Keep pod height at 99px and the telemetry background at 38px. Shift only the
   telemetry text/value layers up 4px (never the card backgrounds), put SPEED clearly
   below the upper dial rule, align KM/H on the right of the larger numeral, reduce the
   header inset while protecting the slanted edge, and tighten the two-rule spacing. */
@media  (max-width:1100px) and (max-height:620px) and (orientation:landscape)  {

  /* Move the timing data only; keep the LAP/LAST cell backgrounds stationary. */
  #rvV6GameHud #rvV6RaceTelemetry .rv6-lap-display > small,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-lap-display > b,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-lap-display > span,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell > small,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell > .rv6-time-value,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell #current_lap_time_value,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell #last_lap_time_value,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell #fast_lap_time_value {
    position:relative!important;
    top:-4px!important;
  }

  /* Header labels: one size larger; keep them just far enough from the slanted wall. */
  #rvV6GameHud .rv6-speed-head {
    padding-left:clamp(14px,2.4vw,18px)!important;
    padding-right:2px!important;
    margin-bottom:-2px!important;
    box-sizing:border-box!important;
    text-align:left!important;
    overflow:visible!important;
    font-size:7px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  #rvV6GameHud .rv6-speed-head span,
  #rvV6GameHud .rv6-speed-head span:last-child,
  #rvV6GameHud .rv6-speed-foot,
  #rvV6GameHud .rv6-speed-foot small {
    font-size:7px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  #rvV6GameHud .rv6-speed-head span:first-child {
    min-width:max-content!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  /* Move the dial rule up slightly to reduce the gap between the two horizontal rules. */
  #rvV6GameHud #rvV6SpeedPod #speed #rvV5SpeedArc {
    top:-10px!important;
    height:51px!important;
    max-height:51px!important;
  }
  /* Clearly beneath the upper rule, on the left, and above the speed number. */
  #rvV6GameHud #rvV6SpeedPod #speed #rvV5SpeedTag {
    display:block!important;
    position:absolute!important;
    top:18px!important;
    left:7px!important;
    right:auto!important;
    bottom:auto!important;
    transform:none!important;
    z-index:5!important;
    margin:0!important;
    padding:0!important;
    font-size:clamp(7px,.8vw,9px)!important;
    line-height:1!important;
    text-align:left!important;
    white-space:nowrap!important;
    overflow:visible!important;
    visibility:visible!important;
    opacity:1!important;
  }
  /* Speed numeral one more size larger; preserve the meter's existing 99px outer height. */
  #rvV6GameHud #rvV6SpeedPod #speed #speed_value {
    position:absolute!important;
    top:20px!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    z-index:4!important;
    display:block!important;
    width:max-content!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    font-size:clamp(30px,4.3vw,35px)!important;
    line-height:.92!important;
    letter-spacing:-.045em!important;
    text-align:center!important;
    white-space:nowrap!important;
    font-variant-numeric:tabular-nums!important;
  }
  /* KM/H on the right side of the number, with its center vertically aligned to the digits. */
  #rvV6GameHud #rvV6SpeedPod #speed .rv5-speed-unit {
    position:absolute!important;
    top:31px!important;
    left:calc(50% + 30px)!important;
    right:auto!important;
    transform:none!important;
    z-index:4!important;
    display:block!important;
    width:max-content!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    font-size:clamp(6px,.8vw,8px)!important;
    line-height:1!important;
    text-align:left!important;
    white-space:nowrap!important;
  }
}



/* V19.2.279 — universal compact-landscape phone speedometer layout. */
@media  (max-width:1100px) and (max-height:620px) and (orientation:landscape)  {

  /* Values and labels remain independent; the timing-card background never moves. */
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell > small {
    position:relative!important; top:-6px!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell > .rv6-time-value,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell #current_lap_time_value,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell #last_lap_time_value,
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell #fast_lap_time_value {
    position:relative!important; top:-1px!important;
  }
  #rvV6GameHud #rvV6RaceTelemetry .rv6-time-cell {
    justify-content:center!important; gap:2px!important;
  }

  /* Apply the accepted compact pod geometry to wide and narrow landscape phones alike. */
  #rvV6GameHud #rvV6SpeedPod,
  #rvV6GameHud .rv6-speed-pod,
  body.rv-v6-ready #rvV6GameHud #rvV6SpeedPod,
  body.rv-v6-ready #rvV6GameHud .rv6-speed-pod {
    width:clamp(150px,28vw,208px)!important;
    max-width:40vw!important;
    height:99px!important; min-height:99px!important; max-height:99px!important;
    box-sizing:border-box!important;
  }

  /* VEHICLE TELEMETRY + LIVE DATA and the actual bottom border move together by 2px.
     The two labels share this header row; the footer/tick marks are deliberately untouched. */
  #rvV6GameHud .rv6-speed-head {
    position:relative!important;
    top:2px!important;
  }
}



/* V19.2.281 — force racePanelStatus into two independently laid-out lines. */
#rvV6Page_races #racePanel .rv246-race-tools-row > #racePanelStatus.rv281-status-multiline,
#rvV6Page_races #racePanel .rv246-race-tools-row #racePanelStatus.rv281-status-multiline,
#racePanel .rv246-race-tools-row #racePanelStatus.rv281-status-multiline,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus.rv281-status-multiline,
#racePanel #racePanelStatus.rv281-status-multiline {
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:normal!important;
  -webkit-line-clamp:unset!important;
  line-clamp:unset!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
  line-height:1.08!important;
  text-align:center!important;
}
#rvV6Page_races #racePanel .rv246-race-tools-row > #racePanelStatus.rv281-status-multiline > .rv281-status-line,
#rvV6Page_races #racePanel .rv246-race-tools-row #racePanelStatus.rv281-status-multiline > .rv281-status-line,
#racePanel .rv246-race-tools-row #racePanelStatus.rv281-status-multiline > .rv281-status-line,
body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus.rv281-status-multiline > .rv281-status-line,
#racePanel #racePanelStatus.rv281-status-multiline > .rv281-status-line {
  display:block!important;
  flex:0 0 auto!important;
  width:100%!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
  line-height:1.08!important;
}


/* V19.2.295 — prevent telemetry heading clipping on every viewport. */
#rvV6GameHud #rvV6SpeedPod .rv6-speed-head,
#rvV6GameHud .rv6-speed-pod .rv6-speed-head {
  overflow:visible!important; text-overflow:clip!important; line-height:1.15!important;
  box-sizing:border-box!important; padding-left:clamp(24px,12%,36px)!important; padding-right:6px!important;
}
#rvV6GameHud #rvV6SpeedPod .rv6-speed-head span,
#rvV6GameHud .rv6-speed-pod .rv6-speed-head span {
  min-width:0!important; max-width:none!important; overflow:visible!important;
  text-overflow:clip!important; white-space:nowrap!important; line-height:1.15!important;
}
#rvV6GameHud #rvV6SpeedPod .rv6-speed-head span:first-child,
#rvV6GameHud .rv6-speed-pod .rv6-speed-head span:first-child {flex:1 1 auto!important;}
#rvV6GameHud #rvV6SpeedPod .rv6-speed-head span:last-child,
#rvV6GameHud .rv6-speed-pod .rv6-speed-head span:last-child {flex:0 0 auto!important; width:auto!important;}
@media (max-width:1100px) and (max-height:620px) and (orientation:landscape)  {

  #rvV6GameHud #rvV6SpeedPod .rv6-speed-head,
  #rvV6GameHud .rv6-speed-pod .rv6-speed-head {
    position:relative!important; top:2px!important;
    display:flex!important; align-items:center!important; justify-content:space-between!important;
    flex:0 0 12px!important; height:12px!important; min-height:12px!important; max-height:12px!important;
    gap:2px!important; margin-bottom:-4px!important;
    padding:0 2px 1px clamp(16px,12%,22px)!important;
    box-sizing:border-box!important; line-height:1.2!important;
    white-space:nowrap!important; overflow:visible!important; text-overflow:clip!important;
    font-size:clamp(5px,.68vw,7px)!important; letter-spacing:.02em!important;
  }
  #rvV6GameHud #rvV6SpeedPod .rv6-speed-head span,
  #rvV6GameHud .rv6-speed-pod .rv6-speed-head span {
    display:block!important; flex:0 0 auto!important; min-width:max-content!important; max-width:none!important;
    box-sizing:border-box!important; font-size:inherit!important; line-height:1.2!important;
    letter-spacing:.02em!important; white-space:nowrap!important; overflow:visible!important;
    text-overflow:clip!important; text-shadow:none!important;
  }
  #rvV6GameHud #rvV6SpeedPod .rv6-speed-head span:first-child,
  #rvV6GameHud .rv6-speed-pod .rv6-speed-head span:first-child {flex:0 0 auto!important; min-width:max-content!important;}
  #rvV6GameHud #rvV6SpeedPod .rv6-speed-head span:last-child,
  #rvV6GameHud .rv6-speed-pod .rv6-speed-head span:last-child {
    flex:0 0 auto!important; width:auto!important; max-width:none!important; color:#7be6ff!important;
  }
  #rvV6GameHud #rvV6SpeedPod #speed #rvV5SpeedTag {top:15px!important;}
}


/* The R is positioned by the game loop from the measured speed digits, not a fixed guess. */
#rvV6GameHud #rvV6SpeedPod #speed #rvV6ReverseIndicator {
  position:absolute!important; right:auto!important; bottom:auto!important;
  display:block; z-index:8!important; width:auto!important; min-width:0!important; max-width:none!important;
  height:auto!important; margin:0!important; padding:0!important;
  border:0!important; border-radius:0!important; outline:0!important;
  background:transparent!important; box-shadow:none!important;
  color:#ff2638; font-family:inherit; font-size:inherit; font-weight:1000;
  line-height:.92; letter-spacing:0!important; text-align:left!important; white-space:nowrap!important;
  text-shadow:none!important; -webkit-text-stroke:0 transparent!important;
  transform:none!important; pointer-events:none!important; opacity:1;
}
#rvV6GameHud #rvV6SpeedPod #speed #rvV6ReverseIndicator[hidden] {display:none!important;}
#rvV6GameHud #rvV6SpeedPod #speed #rvV6ReverseIndicator.is-blinking:not(.is-moving-reverse) {
  animation:rv292ReverseReadyPulse .7s steps(2,end) infinite!important;
}
#rvV6GameHud #rvV6SpeedPod #speed #rvV6ReverseIndicator.is-moving-reverse {
  animation:rv292ReverseRedWhitePulse .62s ease-in-out infinite!important;
}
@keyframes  rv292ReverseReadyPulse  {
0%,100%{opacity:1;color:#ff2638}50%{opacity:.45;color:#ff2638}}

@keyframes  rv292ReverseRedWhitePulse  {
0%,100%{color:#ff2638;opacity:1}50%{color:#fff;opacity:1}}



/* V19.2.295 — prevent telemetry labels from clipping on narrow portrait phones too. */
@media  (max-width:760px) and (orientation:portrait)  {

  #rvV6GameHud #rvV6SpeedPod .rv6-speed-head,
  #rvV6GameHud .rv6-speed-pod .rv6-speed-head {
    display:flex!important; align-items:center!important; justify-content:space-between!important;
    min-height:12px!important; height:12px!important; flex:0 0 12px!important;
    gap:2px!important; padding:0 2px 1px clamp(16px,12%,20px)!important; margin-bottom:-2px!important;
    box-sizing:border-box!important; font-size:clamp(5px,1.1vw,7px)!important;
    line-height:1.2!important; white-space:nowrap!important; overflow:visible!important;
  }
  #rvV6GameHud #rvV6SpeedPod .rv6-speed-head span,
  #rvV6GameHud .rv6-speed-pod .rv6-speed-head span {
    font-size:inherit!important; line-height:1.2!important; letter-spacing:.02em!important;
    min-width:max-content!important; max-width:none!important; overflow:visible!important; flex:0 0 auto!important;
    text-overflow:clip!important; white-space:nowrap!important;
  }
  #rvV6GameHud #rvV6SpeedPod .rv6-speed-head span:first-child,
  #rvV6GameHud .rv6-speed-pod .rv6-speed-head span:first-child {flex:0 0 auto!important;}
  #rvV6GameHud #rvV6SpeedPod .rv6-speed-head span:last-child,
  #rvV6GameHud .rv6-speed-pod .rv6-speed-head span:last-child {flex:0 0 auto!important; color:#7be6ff!important;}
}



/* V19.2.295 — reserve a constant-width speed-readout slot so the reverse R stays at one fixed HUD coordinate. */
#rvV6GameHud #rvV6SpeedPod #speed #speed_value {
  width:3ch!important;
  min-width:3ch!important;
  max-width:3ch!important;
  text-align:center!important;
  box-sizing:content-box!important;
}


/* V19.2.306: stable four-slot race toolbar. Keep the same slots in the V6 workspace and legacy panel. */
#rvV6Page_races #racePanel .rv246-race-tools-row,#racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{display:grid!important;grid-template-columns:minmax(78px,1.12fr) minmax(63px,.78fr) minmax(70px,1fr) 30px!important;grid-template-rows:minmax(38px,auto)!important;grid-template-areas:"actions headstatus status search"!important;grid-auto-flow:row!important;align-items:stretch!important;justify-items:stretch!important;align-content:stretch!important;gap:4px!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important;padding:0!important;transition:none!important;animation:none!important;transform:none!important;contain:layout style!important}
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls,#racePanel .rv246-race-tools-row>.race-panel__controls,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>.race-panel__controls{grid-area:actions!important;display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:center!important;gap:3px!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:38px!important;max-height:none!important;margin:0!important;padding:3px!important;overflow:hidden!important;box-sizing:border-box!important;transition:none!important;transform:none!important}
#rvV6Page_races #racePanel .rv246-race-tools-row #racePanelStatus,#rvV6Page_races #racePanel .rv246-race-tools-row>#racePanelStatus,#racePanel .rv246-race-tools-row #racePanelStatus,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{grid-area:headstatus!important;align-self:stretch!important;justify-self:stretch!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:38px!important;max-height:none!important;margin:0!important;padding:4px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;transition:none!important;transform:none!important}
#rvV6Page_races #racePanel .rv246-race-tools-row #raceStatusBox,#rvV6Page_races #racePanel .rv246-race-tools-row>#raceStatusBox,#racePanel .rv246-race-tools-row #raceStatusBox,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{grid-area:status!important;align-self:stretch!important;justify-self:stretch!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:38px!important;max-height:none!important;margin:0!important;padding:4px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;transition:none!important;transform:none!important}
#rvV6Page_races #racePanel .rv246-race-tools-row #rvRoomSearchWrap,#rvV6Page_races #racePanel .rv246-race-tools-row>#rvRoomSearchWrap,#racePanel .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap{grid-area:search!important;align-self:stretch!important;justify-self:stretch!important;display:flex!important;align-items:center!important;justify-content:center!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:auto!important;min-height:38px!important;max-height:none!important;margin:0!important;padding:0!important;box-sizing:border-box!important;transition:none!important;transform:none!important}
#rvV6Page_races #racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,#rvV6Page_races #racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom,#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom{flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:31px!important;max-height:100%!important;margin:0!important;padding:3px 2px!important;box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;font:800 clamp(7px,1vw,10px)/1.12 Tahoma,Arial,sans-serif!important;transition:none!important;transform:none!important;animation:none!important}
#rvV6Page_races #racePanel .rv246-race-tools-row .race-panel__controls #raceRoomSelect,#rvV6Page_races #racePanel .rv246-race-tools-row .race-panel__controls #roomPasswordInput,#racePanel .rv246-race-tools-row .race-panel__controls #raceRoomSelect,#racePanel .rv246-race-tools-row .race-panel__controls #roomPasswordInput{display:none!important}
#rvV6Page_races #racePanel .rv246-race-tools-row #rvRoomSearchWrap #rv242RoomSearchToggle,#rvV6Page_races #racePanel .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle,#rvV6Page_races #racePanel .rv246-race-tools-row #rvRoomSearchWrap>button,#racePanel .rv246-race-tools-row #rv242RoomSearchToggle,#racePanel .rv246-race-tools-row .rv242-search-toggle,#racePanel .rv246-race-tools-row #rvRoomSearchWrap>button{width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important;padding:0!important;margin:0!important;flex:0 0 30px!important}
@media (max-width:420px) {
#rvV6Page_races #racePanel .rv246-race-tools-row,#racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{grid-template-columns:minmax(74px,1.1fr) minmax(58px,.78fr) minmax(64px,.95fr) 28px!important;gap:3px!important}#rvV6Page_races #racePanel .rv246-race-tools-row #rvRoomSearchWrap,#rvV6Page_races #racePanel .rv246-race-tools-row>#rvRoomSearchWrap,#racePanel .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap{width:28px!important;min-width:28px!important;max-width:28px!important}#rvV6Page_races #racePanel .rv246-race-tools-row #rv242RoomSearchToggle,#rvV6Page_races #racePanel .rv246-race-tools-row .rv242-search-toggle,#rvV6Page_races #racePanel .rv246-race-tools-row #rvRoomSearchWrap>button{width:28px!important;min-width:28px!important;max-width:28px!important;flex-basis:28px!important}}


/* V19.2.307 — compact, draggable, persistent live-setting preview and return-to-profiles highlight. */
.rv299-live-setting-launcher{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  width:100%!important;min-height:38px!important;margin:0 0 9px!important;padding:8px 12px!important;
  border:1px solid rgba(255,45,64,.72)!important;border-radius:9px!important;
  background:linear-gradient(115deg,rgba(255,38,56,.16),rgba(17,27,43,.92))!important;
  color:#fff!important;font:800 12px/1.25 Tahoma,Arial,sans-serif!important;text-align:center!important;
  box-shadow:inset 3px 0 0 #ff2638,0 5px 16px rgba(0,0,0,.22)!important;cursor:pointer!important;
}
.rv299-live-setting-launcher:disabled{opacity:.48!important;cursor:not-allowed!important;filter:grayscale(.25)!important}
#rv299LiveSettingPreview.rv299-live-setting-preview{
  position:fixed!important;z-index:2147483000!important;top:50%;left:50%;right:auto;bottom:auto;
  transform:translate(-50%,-50%);display:flex!important;flex-direction:column!important;gap:6px!important;
  width:min(360px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;
  max-height:min(176px,calc(100dvh - 16px))!important;overflow:hidden!important;box-sizing:border-box!important;
  padding:8px!important;border:1px solid rgba(160,190,220,.42)!important;border-radius:12px!important;
  color:#f4f7fb!important;background:rgba(7,13,23,.79)!important;
  -webkit-backdrop-filter:blur(13px) saturate(125%)!important;backdrop-filter:blur(13px) saturate(125%)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.09)!important;
  direction:rtl!important;font-family:Tahoma,Arial,sans-serif!important;isolation:isolate!important;
  user-select:none!important;-webkit-user-select:none!important;touch-action:pan-x pan-y!important;
}
#rv299LiveSettingPreview .rv299-live-preview-head{
  display:grid!important;grid-template-columns:16px minmax(0,1fr) auto!important;align-items:center!important;gap:6px!important;
  min-height:25px!important;max-height:25px!important;padding:0 1px 5px!important;margin:0!important;
  border-bottom:1px solid rgba(255,255,255,.11)!important;box-sizing:border-box!important;
  cursor:grab!important;touch-action:none!important;user-select:none!important;-webkit-user-select:none!important;
}
#rv299LiveSettingPreview.is-dragging .rv299-live-preview-head{cursor:grabbing!important}
#rv299LiveSettingPreview.is-dragging{opacity:.94!important;box-shadow:0 16px 38px rgba(0,0,0,.46),0 0 0 1px rgba(255,38,56,.28)!important}
#rv299LiveSettingPreview .rv299-live-preview-grip{display:flex!important;align-items:center!important;justify-content:center!important;width:16px!important;height:18px!important;color:#ff5262!important;font:900 17px/1 Tahoma,Arial,sans-serif!important;cursor:grab!important}
#rv299LiveSettingPreview #rv299LiveSettingLabel{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#f4f7fb!important;font:800 11px/1.25 Tahoma,Arial,sans-serif!important;direction:rtl!important;text-align:right!important}
#rv299LiveSettingPreview .rv299-live-preview-nav{display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:0!important}
#rv299LiveSettingPreview .rv299-live-preview-nav button{display:flex!important;align-items:center!important;justify-content:center!important;width:22px!important;min-width:22px!important;height:22px!important;min-height:22px!important;padding:0!important;margin:0!important;border:1px solid rgba(255,255,255,.19)!important;border-radius:6px!important;background:rgba(255,255,255,.07)!important;color:#fff!important;font:900 16px/1 Tahoma,Arial,sans-serif!important;cursor:pointer!important}
#rv299LiveSettingPreview #rv299LiveSettingCounter{min-width:25px!important;color:#b8c7d9!important;font:700 9px/1 Tahoma,Arial,sans-serif!important;text-align:center!important;white-space:nowrap!important}
#rv299LiveSettingPreview #rv299LiveSettingControlSlot{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;min-height:35px!important;max-height:42px!important;overflow:hidden!important;padding:2px 1px!important;box-sizing:border-box!important}
#rv299LiveSettingPreview #rv299LiveSettingControl{display:block!important;min-width:0!important;max-width:100%!important;max-height:30px!important;margin:0!important;padding:2px 4px!important;box-sizing:border-box!important;font:700 11px/1.2 Tahoma,Arial,sans-serif!important;color:#fff!important;accent-color:#ff2638!important}
#rv299LiveSettingPreview #rv299LiveSettingControl[type=range]{width:100%!important;height:23px!important;padding:0!important;cursor:ew-resize!important}
#rv299LiveSettingPreview #rv299LiveSettingControl[type=checkbox]{width:18px!important;height:18px!important;justify-self:start!important}
#rv299LiveSettingPreview #rv299LiveSettingControl:not([type=range]):not([type=checkbox]){max-width:170px!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:6px!important;background:#152033!important}
#rv299LiveSettingPreview .rv299-live-setting-value{display:block!important;min-width:38px!important;max-width:82px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;padding:4px 6px!important;border:1px solid rgba(255,38,56,.32)!important;border-radius:6px!important;background:rgba(255,38,56,.10)!important;color:#ffb5bd!important;text-align:center!important;font:800 10px/1.15 Tahoma,Arial,sans-serif!important}
#rv299LiveSettingPreview .rv299-live-preview-actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;min-height:28px!important;padding-top:4px!important;border-top:1px solid rgba(255,255,255,.09)!important;box-sizing:border-box!important}
#rv299LiveSettingPreview .rv299-live-preview-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:25px!important;height:25px!important;padding:4px 9px!important;margin:0!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:6px!important;color:#f8fafc!important;font:800 10px/1.1 Tahoma,Arial,sans-serif!important;white-space:nowrap!important;cursor:pointer!important}
#rv299LiveSettingPreview .rv299-live-preview-actions .rv299-live-confirm{border-color:rgba(255,38,56,.64)!important;background:rgba(255,38,56,.19)!important;box-shadow:inset 2px 0 0 #ff2638!important}
#rv299LiveSettingPreview .rv299-live-preview-actions .rv299-live-cancel{background:rgba(255,255,255,.07)!important}
#rv299LiveSettingPreview button:disabled{opacity:.4!important;cursor:not-allowed!important}
#rv299SoloConfigProfiles.rv299-profile-return-focus{outline:2px solid rgba(255,38,56,.9)!important;outline-offset:4px!important;box-shadow:0 0 0 5px rgba(255,38,56,.11),0 0 24px rgba(255,38,56,.17)!important;transition:outline-offset .16s ease,box-shadow .16s ease!important}
@media (max-width:420px) {

  #rv299LiveSettingPreview.rv299-live-setting-preview{width:min(330px,calc(100vw - 12px))!important;max-width:calc(100vw - 12px)!important;max-height:min(164px,calc(100dvh - 12px))!important;padding:7px!important;gap:5px!important}
  #rv299LiveSettingPreview .rv299-live-preview-head{grid-template-columns:14px minmax(0,1fr) auto!important;gap:4px!important}
  #rv299LiveSettingPreview .rv299-live-preview-grip{width:14px!important}
  #rv299LiveSettingPreview #rv299LiveSettingLabel{font-size:10px!important}
  #rv299LiveSettingPreview .rv299-live-preview-actions button{padding-left:7px!important;padding-right:7px!important;font-size:9px!important}
}

@media (max-height:420px) {
#rv299LiveSettingPreview.rv299-live-setting-preview{max-height:calc(100dvh - 8px)!important;gap:3px!important;padding:5px!important}#rv299LiveSettingPreview .rv299-live-preview-head{min-height:22px!important;max-height:22px!important;padding-bottom:3px!important}#rv299LiveSettingPreview #rv299LiveSettingControlSlot{min-height:29px!important;max-height:34px!important}#rv299LiveSettingPreview .rv299-live-preview-actions{min-height:25px!important}#rv299LiveSettingPreview .rv299-live-preview-actions button{height:23px!important;min-height:23px!important}}


/* V19.2.330 FIX: one final, stable geometry for the room toolbar. Earlier legacy rules overlap in this stylesheet. */
#racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{display:grid!important;grid-template-columns:minmax(118px,1.05fr) minmax(78px,.72fr) minmax(0,1.2fr) 32px!important;grid-template-rows:40px!important;gap:4px!important;align-items:stretch!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;overflow:visible!important;box-sizing:border-box!important;animation:none!important;transition:none!important;}
#racePanel .rv246-race-tools-row>*,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{display:flex!important;align-items:center!important;justify-content:center!important;justify-self:stretch!important;align-self:stretch!important;min-width:0!important;width:100%!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;box-sizing:border-box!important;animation:none!important;transition:none!important;}
#racePanel .rv246-race-tools-row .race-panel__controls,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls{display:flex!important;flex:0 1 auto!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:space-between!important;gap:3px!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:3px!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;}
#racePanel .rv246-race-tools-row .race-panel__controls #raceRoomSelect,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #raceRoomSelect{flex:1 1 44px!important;width:44px!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
#racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnJoinRace{flex:0 1 auto!important;flex-basis:auto!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:30px!important;max-height:34px!important;padding:4px 6px!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.2!important;font-size:clamp(8px,1.2vw,10px)!important;animation:none!important;transition:none!important;transform:none!important;box-sizing:border-box!important;}
#racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom,#racePanel .rv246-race-tools-row .race-panel__controls #btnEntryProposal,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnLeaveRoom,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls #btnEntryProposal{flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:28px!important;max-height:34px!important;padding:3px!important;animation:none!important;transition:none!important;box-sizing:border-box!important;}
#racePanel .rv246-race-tools-row #racePanelStatus,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:3px 5px!important;margin:0!important;overflow:hidden!important;line-height:1.2!important;font-size:clamp(8px,1.18vw,10px)!important;animation:none!important;transition:none!important;box-sizing:border-box!important;}
#racePanel .rv246-race-tools-row #raceStatusBox,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:3px 4px!important;margin:0!important;overflow:hidden!important;line-height:1.18!important;font-size:clamp(8px,1.05vw,9px)!important;animation:none!important;transition:none!important;box-sizing:border-box!important;}
#racePanel .rv246-race-tools-row #rvRoomSearchWrap, #racePanel .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle{display:flex!important;align-items:center!important;justify-content:center!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:0!important;margin:0!important;box-sizing:border-box!important;}
@media (max-width:560px) {
#racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{grid-template-columns:minmax(100px,1fr) minmax(68px,.72fr) minmax(0,1fr) 30px!important;gap:3px!important}#racePanel .rv246-race-tools-row>*,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>*{height:38px!important;min-height:38px!important;max-height:38px!important}#racePanel .rv246-race-tools-row .race-panel__controls,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row .race-panel__controls,#racePanel .rv246-race-tools-row #racePanelStatus,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #racePanelStatus,#racePanel .rv246-race-tools-row #raceStatusBox,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #raceStatusBox{height:38px!important;min-height:38px!important;max-height:38px!important}#racePanel .rv246-race-tools-row #rvRoomSearchWrap,#racePanel .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle{width:30px!important;min-width:30px!important;max-width:30px!important;height:38px!important;min-height:38px!important;max-height:38px!important}}

@media (max-width:390px) {
#racePanel .rv246-race-tools-row,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row{grid-template-columns:minmax(88px,.95fr) minmax(58px,.68fr) minmax(0,1fr) 28px!important;gap:2px!important}#racePanel .rv246-race-tools-row #rvRoomSearchWrap,#racePanel .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row #rvRoomSearchWrap .rv242-search-toggle{width:28px!important;min-width:28px!important;max-width:28px!important}}


/* Final specificity guard for V19.2.330: overrides legacy #rvV6Page_races rules without forcing visibility. */
#rvV6Page_races #racePanel .rv246-race-tools-row{display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(68px,.72fr) minmax(0,1.2fr) 30px!important;grid-template-rows:40px!important;grid-template-areas:"actions headstatus status search"!important;grid-auto-flow:row!important;gap:4px!important;align-items:stretch!important;justify-items:stretch!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;overflow:visible!important;contain:layout style!important;transition:none!important;animation:none!important;transform:none!important;box-sizing:border-box!important}
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls{grid-area:actions!important;display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:space-between!important;gap:3px!important;flex:0 1 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:3px!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;transition:none!important;animation:none!important;transform:none!important}
#rvV6Page_races #racePanel .rv246-race-tools-row>#racePanelStatus{grid-area:headstatus!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:3px 5px!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;transition:none!important;animation:none!important}
#rvV6Page_races #racePanel .rv246-race-tools-row>#raceStatusBox{grid-area:status!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:3px 4px!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;transition:none!important;animation:none!important}
#rvV6Page_races #racePanel .rv246-race-tools-row>#rvRoomSearchWrap{grid-area:search!important;display:flex!important;align-items:center!important;justify-content:center!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:0!important;margin:0!important;box-sizing:border-box!important}
#rvV6Page_races #racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace{flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:30px!important;max-height:34px!important;margin:0!important;padding:4px 6px!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.2!important;font-size:clamp(8px,1.2vw,10px)!important;transition:none!important;animation:none!important;transform:none!important;box-sizing:border-box!important}
#rvV6Page_races #racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom{flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:30px!important;max-height:34px!important;margin:0!important;padding:4px 6px!important;white-space:normal!important;overflow-wrap:anywhere!important;transition:none!important;animation:none!important;transform:none!important;box-sizing:border-box!important}
@media (max-width:560px) {
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,1fr) minmax(62px,.72fr) minmax(0,1fr) 28px!important;grid-template-rows:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;gap:3px!important}#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls,#rvV6Page_races #racePanel .rv246-race-tools-row>#racePanelStatus,#rvV6Page_races #racePanel .rv246-race-tools-row>#raceStatusBox,#rvV6Page_races #racePanel .rv246-race-tools-row>#rvRoomSearchWrap{height:38px!important;min-height:38px!important;max-height:38px!important}#rvV6Page_races #racePanel .rv246-race-tools-row>#rvRoomSearchWrap{width:28px!important;min-width:28px!important;max-width:28px!important}}

@media (max-width:390px) {
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,.95fr) minmax(55px,.68fr) minmax(0,1fr) 26px!important;gap:2px!important}#rvV6Page_races #racePanel .rv246-race-tools-row>#rvRoomSearchWrap{width:26px!important;min-width:26px!important;max-width:26px!important}}


/* V19.2.312: clipped black ticker anchored inside mast copy; fade toward session art. */
#rvV6Page_overview .rv6-mast-copy{position:relative!important;overflow:hidden!important;border-radius:inherit!important;padding-bottom:25px!important}

#rvV6Page_overview .rv6-news-label{position:relative!important;z-index:2!important;flex:0 0 auto!important;height:100%!important;display:flex!important;align-items:center!important;padding:0 8px!important;background:#111!important;color:#ff5b55!important;font-size:9px!important;font-weight:900!important;white-space:nowrap!important}





#rvV6Page_overview .rv6-news-telegram{background:#123d55!important;color:#8fd8ff!important}



/* Stabilize room controls: halve the control column and remove flex-width oscillation. */
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,1.5fr) minmax(0,.55fr) minmax(0,.8fr)!important;gap:5px!important;align-items:stretch!important}
#rvV6Page_races #racePanel .rv246-race-tools-row .race-panel__controls{width:100%!important;min-width:0!important;max-width:100%!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:4px!important;padding:5px!important;box-sizing:border-box!important;align-self:start!important}
#rvV6Page_races #racePanel .rv246-race-tools-row .race-panel__controls #btnJoinRace,#rvV6Page_races #racePanel .rv246-race-tools-row .race-panel__controls #btnEntryProposal,#rvV6Page_races #racePanel .rv246-race-tools-row .race-panel__controls #btnLeaveRoom{width:100%!important;min-width:0!important;max-width:100%!important;flex:initial!important;animation:none!important;transition:none!important;box-sizing:border-box!important}


/* V19.2.313: flush ticker, no label, continuous loop and real half-width race controls. */
#rvV6Page_overview .rv6-mast-copy{padding-bottom:22px!important;overflow:hidden!important;border-radius:inherit!important;}

#rvV6Page_overview .rv6-news-label{display:none!important;}




/* Stop inherited legacy rules from resizing controls after a state/room update. */
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,1.5fr) minmax(0,.55fr) minmax(0,.8fr) 28px!important;}
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls{width:100%!important;min-width:0!important;max-width:100%!important;flex:0 0 auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;}
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnJoinRace,
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnEntryProposal,
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnLeaveRoom{width:100%!important;min-width:0!important;max-width:100%!important;flex:0 0 auto!important;transition-property:background-color,color,border-color!important;animation:none!important;transform:none!important;}


/* V19.2.313 — native in-game newsroom using the shared WordPress news repository. */
#rvV6Page_news .rv6-news-page-head{padding:14px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:linear-gradient(125deg,rgba(225,6,0,.08),rgba(10,16,23,.95));}
#rvV6Page_news .rv6-news-page-head h2{margin:5px 0;color:#f4f7fa;font-size:clamp(18px,2.2vw,25px)}#rvV6Page_news .rv6-news-page-head p{margin:0;color:#9eacb8;font-size:11px;line-height:1.9}
#rvV6Page_news .rv6-news-page-status{padding:10px 2px;color:#9caeba;font-size:10px;}
#rvV6Page_news .rv6-news-page-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#rvV6Page_news .rv6-news-page-card{display:flex;flex-direction:column;gap:7px;min-width:0;padding:12px;border:1px solid rgba(255,255,255,.09);border-radius:10px;background:rgba(255,255,255,.025)}
#rvV6Page_news .rv6-news-page-card small{color:#ff8d86;font-size:9px;font-weight:900}#rvV6Page_news .rv6-news-page-card a{color:#edf3f7;text-decoration:none;font-size:12px;line-height:1.8;font-weight:800;overflow-wrap:anywhere}#rvV6Page_news .rv6-news-page-card time{color:#778895;font-size:9px;margin-top:auto}
#rvV6Page_news .rv6-news-page-telegram,#rvV6Page_news .rv6-news-page-website{display:inline-flex;width:max-content;max-width:100%;margin:9px 6px 0 0;padding:8px 11px;border:1px solid rgba(225,6,0,.22);border-radius:8px;color:#ff938c;text-decoration:none;font-size:10px}
@media (max-width:620px) {
#rvV6Page_news .rv6-news-page-grid{grid-template-columns:minmax(0,1fr)}#rvV6Page_news .rv6-news-page-card{padding:10px}}

@media (max-width:560px) {
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,1.05fr) minmax(0,.48fr) minmax(0,.48fr) 26px!important;gap:3px!important}}

@media (max-width:390px) {
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,.95fr) minmax(0,.42fr) minmax(0,.42fr) 24px!important;gap:2px!important}}



/* V19.2.315: ticker is flush with the main card edge, 50% translucent and fades text/background together. */
#rvV6Page_overview .rv6-mast-copy{padding-bottom:22px!important;overflow:visible!important;border-radius:0!important;}
#rvV6Page_overview .rv6-overview-mast{position:relative!important;overflow:hidden!important;}









/* Use one stable, narrow action column. Fixed flex sizing prevents join-button width oscillation. */
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,.72fr) minmax(55px,.58fr) minmax(0,1.35fr) 30px!important;grid-template-rows:40px!important;gap:3px!important;}
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:stretch!important;gap:3px!important;width:100%!important;min-width:0!important;max-width:100%!important;flex:0 0 auto!important;overflow:hidden!important;transition:none!important;animation:none!important;transform:none!important;}
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #raceRoomSelect{flex:0 1 34%!important;width:34%!important;min-width:0!important;max-width:34%!important;}
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnJoinRace,
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnEntryProposal,
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnLeaveRoom{display:flex!important;flex:1 1 0!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:28px!important;max-height:34px!important;margin:0!important;padding:3px 4px!important;white-space:normal!important;overflow-wrap:anywhere!important;transition:none!important;animation:none!important;transform:none!important;box-sizing:border-box!important;}
@media (max-width:560px) {
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,.72fr) minmax(50px,.62fr) minmax(0,1.3fr) 28px!important;grid-template-rows:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important}#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls,#rvV6Page_races #racePanel .rv246-race-tools-row>#racePanelStatus,#rvV6Page_races #racePanel .rv246-race-tools-row>#raceStatusBox,#rvV6Page_races #racePanel .rv246-race-tools-row>#rvRoomSearchWrap{height:38px!important;min-height:38px!important;max-height:38px!important}}

@media (max-width:390px) {
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,.70fr) minmax(45px,.6fr) minmax(0,1.25fr) 26px!important;gap:2px!important}#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #raceRoomSelect{flex-basis:30%!important;width:30%!important;max-width:30%!important}}

/* The in-game newsroom intentionally has no second heading card. */
#rvV6Page_news>.rv6-page-intro,#rvV6Page_news .rv6-news-page-head{display:none!important;}
#rvV6Page_news .rv6-news-page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;}
#rvV6Page_news .rv6-news-page-telegram,#rvV6Page_news .rv6-news-page-website{margin:0;padding:8px 12px;}


/* V19.2.315 prior ticker loop: equal inner sequences, translucent base and matched left fade. */




#rvV6Page_overview .rv6-news-label{display:none!important;}



/* V19.2.319 — ticker attaches to the mast edge, titles pass through without edge fading. */
#rvV6Page_overview .rv6-overview-mast{position:relative!important;overflow:hidden!important;}








@media (max-width:700px) {
#rvV6Page_overview .rv6-overview-mast{position:relative!important;}}



/* Prevent hidden Join/Leave controls from being forced visible by historic display:flex rules. */
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,.72fr) minmax(0,.87fr) minmax(0,1.30fr) 30px!important;grid-template-rows:38px!important;align-items:stretch!important;gap:3px!important;}
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:stretch!important;gap:3px!important;width:100%!important;min-width:0!important;max-width:100%!important;height:38px!important;min-height:38px!important;max-height:38px!important;flex:0 0 auto!important;overflow:hidden!important;transition:none!important;animation:none!important;transform:none!important;box-sizing:border-box!important;}
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnJoinRace,
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnLeaveRoom{display:flex!important;align-items:center!important;justify-content:center!important;flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;height:28px!important;min-height:28px!important;max-height:28px!important;margin:0!important;padding:3px 4px!important;box-sizing:border-box!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;transition:none!important;animation:none!important;transform:none!important;}
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnJoinRace[hidden],
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnLeaveRoom[hidden],
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnJoinRace[aria-hidden="true"],
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnLeaveRoom[aria-hidden="true"],
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnJoinRace[style*="display: none"],
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnLeaveRoom[style*="display: none"]{display:none!important;visibility:hidden!important;pointer-events:none!important;}
#rvV6Page_races #racePanel .rv246-race-tools-row #racePanelStatus{width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;}
@media (max-width:560px) {
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,.72fr) minmax(0,.87fr) minmax(0,1.30fr) 28px!important;grid-template-rows:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;}}

@media (max-width:390px) {
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,.70fr) minmax(45px,.87fr) minmax(0,1.25fr) 26px!important;gap:2px!important;}}


/* The news route remains an ordinary scrollable page; iframe fallback has its own touch scroll. */
#rvV6Page_news{height:auto!important;min-height:max-content!important;max-height:none!important;overflow:visible!important;}
#rvV6Page_news .rv6-news-blog-embed{display:block!important;width:100%!important;height:78dvh!important;min-height:560px!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important;pointer-events:auto!important;}
#rvV6Page_news .rv6-news-page-card{min-width:0!important;}
#rvV6Page_news .rv6-news-page-excerpt{margin:0;color:#aab8c3;font-size:10px;line-height:1.9;overflow-wrap:anywhere;}


/* V19.2.319 final layout repair: same right edge for every mobile viewport, no mast reflow. */
#rvV6Page_overview .rv6-overview-mast{position:relative!important;isolation:isolate!important;}









@media (max-width:1024px) {
#rvV6Page_overview .rv6-overview-mast{position:relative!important;}}





/* Keep the race toolbar layout fixed while the authoritative action changes Join <-> Leave. */
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,.72fr) minmax(50px,1.305fr) minmax(0,1.30fr) 30px!important;grid-template-rows:38px!important;align-items:stretch!important;gap:3px!important;height:38px!important;min-height:38px!important;max-height:38px!important;}
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls,#racePanel .rv246-race-tools-row>.race-panel__controls,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>.race-panel__controls{position:relative!important;display:block!important;flex:none!important;width:100%!important;min-width:0!important;max-width:100%!important;height:38px!important;min-height:38px!important;max-height:38px!important;margin:0!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important;border:0!important;transition:none!important;animation:none!important;transform:none!important;}
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnJoinRace,#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnLeaveRoom,#racePanel .rv246-race-tools-row>.race-panel__controls #btnJoinRace,#racePanel .rv246-race-tools-row>.race-panel__controls #btnLeaveRoom,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>.race-panel__controls #btnJoinRace,body.rv-v6-ready #racePanel[data-v6-active="true"] .rv246-race-tools-row>.race-panel__controls #btnLeaveRoom{position:absolute!important;top:5px!important;right:3px!important;left:3px!important;bottom:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:none!important;width:calc(100% - 6px)!important;min-width:0!important;max-width:calc(100% - 6px)!important;height:28px!important;min-height:28px!important;max-height:28px!important;margin:0!important;padding:3px 4px!important;box-sizing:border-box!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;font-size:clamp(8px,1vw,10px)!important;line-height:1.1!important;transition:none!important;animation:none!important;transform:none!important;filter:none!important;opacity:1!important;}
#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnJoinRace[hidden],#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnLeaveRoom[hidden],#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnJoinRace[aria-hidden="true"],#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnLeaveRoom[aria-hidden="true"],#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnJoinRace[style*="display: none"],#rvV6Page_races #racePanel .rv246-race-tools-row>.race-panel__controls #btnLeaveRoom[style*="display: none"],#racePanel .race-panel__controls #btnJoinRace[hidden],#racePanel .race-panel__controls #btnLeaveRoom[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important;}
#rvV6Page_races #racePanel .rv246-race-tools-row #racePanelStatus{width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;transition:none!important;}
@media (max-width:560px) {
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,.72fr) minmax(50px,1.305fr) minmax(0,1.30fr) 28px!important;grid-template-rows:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;}}

@media (max-width:420px) {
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(74px,1.1fr) minmax(58px,1.17fr) minmax(64px,.95fr) 28px!important;gap:3px!important;}}

@media (max-width:390px) {
#rvV6Page_races #racePanel .rv246-race-tools-row{grid-template-columns:minmax(0,.70fr) minmax(45px,.9fr) minmax(0,1.25fr) 26px!important;gap:2px!important;}}


/* News fallback: use a real scrollable browsing area, not a screenshot-like fixed panel. */
#rvV6Workspace .rv6-page-host{overflow-y:auto!important;overscroll-behavior-y:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;}
#rvV6Page_news{height:auto!important;min-height:max-content!important;max-height:none!important;overflow:visible!important;touch-action:pan-y!important;}
#rvV6Page_news .rv6-news-blog-embed{display:block!important;position:relative!important;z-index:2!important;pointer-events:auto!important;width:100%!important;height:max(78dvh,600px)!important;min-height:600px!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important;}
#rvV6Page_news .rv6-news-page-grid{position:relative!important;}

/* The tutorial settings belong to the Platform admin, not to the player-facing game screen. */
#rvV6Page_plugins [data-rv-player-tutorial-settings],#rvV6Page_plugins .rv-plugin-player-admin-settings{display:none!important;}

/* Phase184: the expanded rail owns real width; collapse returns every freed pixel to the main page. */
#rvV6Workspace{grid-template-columns:minmax(174px,clamp(174px,22vw,270px)) minmax(0,1fr)!important;column-gap:0!important;gap:0!important}
#rvV6Workspace .rv6-nav-rail{width:auto!important;min-width:0!important;max-width:none!important;flex:initial!important;transition:width .28s ease,opacity .22s ease}
#rvV6Workspace .rv6-workspace-main{grid-column:2!important;width:auto!important;max-width:none!important;min-width:0!important;flex:1 1 0!important}
#rvV6Workspace.rv176-rail-collapsed{grid-template-columns:54px minmax(0,1fr)!important}
#rvV6Workspace.rv176-rail-collapsed .rv6-nav-rail{width:54px!important;min-width:54px!important;max-width:54px!important}
#rvV6Workspace.rv176-rail-collapsed .rv6-workspace-main{width:auto!important;max-width:none!important;flex:1 1 0!important}
@media(max-width:760px){#rvV6Workspace{grid-template-columns:minmax(128px,38vw) minmax(0,1fr)!important}#rvV6Workspace.rv176-rail-collapsed{grid-template-columns:44px minmax(0,1fr)!important}#rvV6Workspace.rv176-rail-collapsed .rv6-nav-rail{width:44px!important;min-width:44px!important;max-width:44px!important}}
