/* Typing Racer's own bar (owner, 2026-12-03): includes/racerBar.php, js/racer/bar.js.
   It is #main-header (class rbBar) in place of the site menu on the racer pages. Across the top (html.rbTop) it is the
   site menu's 47px, so the pages lay out as they always have under it. On the left (html.rbLeft, an 86px rail) or at
   the bottom (html.rbBottom), the page moves up into the room the top leaves (html.trHeadAuto, css/racer-autohead.css)
   and gets the room on that side here instead. Linked after css/racer-autohead.css on each racer page. */

/* ---------- the bar ---------- */
#main-header#main-header.rbBar{position:fixed !important; top:0; left:0; right:0; bottom:auto; width:auto; height:47px; min-width:0; margin:0; padding:0 10px 0 4px; box-sizing:border-box;
	display:flex; align-items:center; gap:8px; text-align:left; transform:none !important; z-index:2147483647;
	background:#0d1118; border:0; border-bottom:1px solid #000; box-shadow:0 1px 0 rgba(255,179,41,.35), 0 6px 22px rgba(0,0,0,.6);
	font:13px/1.2 'Open Sans', sans-serif; color:#c3cfdd;}
#main-header#main-header.rbBar::after{display:none !important;}		/* (the old menu's pull-tab and the garage's line under it) */
#main-header.rbBar span{color:inherit;}
#main-header.rbBar *{margin-left:0; margin-right:0;}		/* (the site's "* {margin:0 auto}" centred the menus' rows; the bar's own margins weigh more) */		/* (the Neon theme colours every span in the site menu) */
#main-header.rbBar a{text-decoration:none;}
#main-header.rbBar button{font-family:inherit; margin:0;}
html.rbBottom #main-header#main-header.rbBar{top:auto; bottom:var(--sto-anchor-h, 0px); border-bottom:0; border-top:1px solid #000; box-shadow:0 -1px 0 rgba(255,179,41,.35), 0 -6px 22px rgba(0,0,0,.6);}
#rbGrip{flex:none; width:16px; height:34px; border:0; padding:0; border-radius:6px; cursor:grab; touch-action:none;
	background:radial-gradient(circle, #5d6d85 1.6px, transparent 2px) 0 0/8px 8px; background-position:center; opacity:.8;}
#rbGrip:hover, #rbGrip:focus-visible{opacity:1; background-color:rgba(255,255,255,.06); outline:none;}
html.rbDragging, html.rbDragging *{cursor:grabbing !important;}
#main-header.rbBar #rbLogo{flex:none; display:flex; align-items:center; gap:7px; font:18px 'Russo One', sans-serif; color:#fff; letter-spacing:.02em; white-space:nowrap;}
#rbLogo img{width:40px; height:auto;}
#main-header.rbBar #rbLogo em{font-style:normal; color:#ffb329;}
#rbTabs{flex:1 1 auto; display:flex; align-items:center; justify-content:center; gap:1px; min-width:0;}
#main-header.rbBar .rbT, #main-header.rbBar .rbR{flex:none; display:flex; align-items:center; gap:6px; height:34px; padding:0 10px; box-sizing:border-box; border-radius:17px;
	color:#c3cfdd; font:700 14px 'Open Sans', sans-serif; white-space:nowrap; position:relative; background:none; border:0; cursor:pointer;}
#main-header.rbBar .rbT .fa, #main-header.rbBar .rbR .fa{font-size:14px; color:#8ea2bb;}
#main-header.rbBar .rbT:hover, #main-header.rbBar .rbR:hover{background:rgba(255,255,255,.07); color:#fff;}
#main-header.rbBar .rbT.on{background:linear-gradient(#ffc65c, #ffa91f); color:#201300;}		/* the page you're on: a filled tile, never a side stripe */
#main-header.rbBar .rbT.on .fa{color:#201300;}
.rbBadge[hidden]{display:none !important;}
#main-header.rbBar .rbBadge{display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px; box-sizing:border-box; border-radius:9px; background:#ff3d5e; color:#fff; font:800 11px 'Open Sans', sans-serif; margin-left:-1px;}
#main-header.rbBar .rbKey{flex:none; display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; margin:0 5px; padding:0; border-radius:6px; border:1.5px solid #4b5b74; background:none; color:#9fb0c6; font:700 11px 'Open Sans', sans-serif; cursor:pointer;}
#main-header.rbBar .rbKey:hover{border-color:#7f92ad; color:#e6ebf3;}
#main-header.rbBar .rbIc span, #main-header.rbBar .rbShort{display:none;}
#rbRight{flex:none; display:flex; align-items:center; gap:6px;}
#main-header.rbBar .rbR{background:#151a23; border:1px solid #2a3344; font-size:13px; padding:0 12px; color:#cfd9e6;}
#main-header.rbBar .rbR:hover{border-color:#41506a; background:#1a202b;}
#main-header.rbBar .rbR.open, #main-header.rbBar .rbR.on{border-color:#ffb329; color:#fff;}
#main-header.rbBar .rbR span{overflow:hidden; text-overflow:ellipsis;}
#main-header.rbBar .rbMe{max-width:150px; padding:0 10px 0 4px; gap:7px;}
#main-header.rbBar .rbMe.rbPrem span{color:#ffd166;}
#main-header.rbBar .rbAva{width:26px; height:26px; border-radius:50%; object-fit:cover; flex:none; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(135deg, #3b4b66, #25324a); color:#e6ebf3; font:800 13px 'Open Sans', sans-serif;}
#main-header.rbBar .rbPrem .rbAva{box-shadow:0 0 0 2px #ffb329;}
#main-header.rbBar .rbCrown{width:15px; flex:none; margin-left:-3px;}
#main-header.rbBar .rbCrown.rbGamer{width:auto; height:18px;}		/* Premium Gamer: the nametag drawing (images/branding/premiumGamerBare.svg), as on racer names */
#main-header.rbBar .rbCaret{font-size:12px; margin-left:-2px;}
#main-header.rbBar #rbLogin{color:#ffe08a; padding:0 12px;}
#main-header.rbBar #rbLogin .fa{color:#ffe08a;}
#main-header.rbBar #rbJoin{padding:0 12px; background:linear-gradient(#ffc65c, #ffa91f); border-color:#ffa91f; color:#201300;}
#main-header.rbBar #rbJoin .fa{color:#201300;}
/* Sound, Settings and Help: round icons side by side */
#rbIcons{display:flex; gap:4px;}
#main-header.rbBar .rbIc{width:34px; height:34px; padding:0; justify-content:center; border-radius:50%;}
#main-header.rbBar .rbIc .fa{font-size:16px; color:#aebdd0;}
#main-header.rbBar #rbSound .fa{color:#7fe0ff;}
#main-header.rbBar #rbSound.isOff .fa{color:#6d7b8e;}		/* (js/racer/audio.js PaintSnd sets isOff and the icon) */

/* ---------- the wallets: Speed Coins, Race Points, and in the lobby its own Fuel gauge (moved in by js/racer/bar.js) ---------- */
#rbWallet{flex:none; display:flex; align-items:center; gap:5px;}
#main-header.rbBar .rbW{display:flex; align-items:center; gap:6px; height:34px; padding:0 10px 0 5px; box-sizing:border-box; border-radius:17px; background:#13171f; border:1.5px solid rgba(255,190,70,.55);
	font:15px 'Russo One', sans-serif; color:#ffd166; cursor:pointer; white-space:nowrap; letter-spacing:.02em;}
#main-header.rbBar .rbW img{width:22px; height:22px; flex:none;}
#main-header.rbBar .rbW:hover{filter:brightness(1.15);}
#main-header.rbBar .rbW .rbPlus{width:17px; height:17px; border-radius:50%; background:#ffb329; color:#201300; font:800 13px/17px 'Open Sans', sans-serif; text-align:center; margin-left:1px;}
#main-header.rbBar #rbRp{border-color:rgba(90,160,255,.55); color:#9cc8ff;}
/* the lobby's gauge in the bar: its own styles (css/_u_trg.css #userFuelBank), a pill's height */
#main-header.rbBar #userFuelWrap{position:relative; display:block; flex:none;}
#main-header.rbBar #userFuelBank{height:34px; border-radius:17px; padding:0 4px; transform:none;}
#main-header.rbBar #userFuelBank .ufSeg{height:26px; padding:0 6px;}
#main-header#main-header.rbBar #userFuelWrap #lobbyPayPop{top:42px; left:auto; right:0; max-height:calc(100vh - 70px); overflow-y:auto;}
html.rbBottom #main-header#main-header.rbBar #userFuelWrap #lobbyPayPop{top:auto; bottom:42px;}
html.rbLeft #main-header#main-header.rbBar #userFuelWrap #lobbyPayPop{top:-8px; left:calc(100% + 12px); right:auto; max-height:calc(100vh - 30px);}

/* while a race is running the tabs, the logo and the wallets rest, as the dash's Lobby and Garage do: a stray click never leaves the race */
html.trRacing #main-header.rbBar #rbTabs, html.trRacing #main-header.rbBar #rbLogo, html.trRacing #main-header.rbBar .rbW, html.trRacing #main-header.rbBar #rbPitBtn,
html.rbRaceOn #main-header.rbBar #rbTabs, html.rbRaceOn #main-header.rbBar #rbLogo, html.rbRaceOn #main-header.rbBar .rbW, html.rbRaceOn #main-header.rbBar #rbPitBtn{opacity:.45; pointer-events:none;}

/* not enough room across: words give way a step at a time (FitBar in js/racer/bar.js), as few as it takes */
html.rbFit1 #main-header.rbBar .rbMe span, html.rbFit1 #main-header.rbBar .rbMe .rbCaret{display:none;}
html.rbFit1 #main-header.rbBar .rbMe{padding:0 6px 0 4px;}
html.rbFit2 #main-header#main-header.rbBar{gap:5px;}
html.rbFit2 #main-header.rbBar .rbT{padding:0 7px;}
html.rbFit2 #main-header.rbBar .rbKey{margin:0 2px;}
html.rbFit2 #main-header.rbBar .rbW{padding-right:8px; gap:5px;}
html.rbFit2 #rbIcons{gap:2px;}
html.rbFit3 #main-header.rbBar #rbLogo span{display:none;}
html.rbFit4 #main-header.rbBar .rbT .fa{display:none;}
html.rbFit5 #main-header.rbBar #rbSite span{display:none;}
html.rbFit6 #main-header.rbBar .rbKey{display:none;}
html.rbFit6 #main-header.rbBar .rbW .rbFull{display:none;}
html.rbFit6 #main-header.rbBar .rbW .rbShort{display:inline;}
html.rbFit6 #main-header.rbBar .rbW .rbPlus{display:none;}
html.rbFit7 #main-header.rbBar .rbT{padding:0 8px;}
html.rbFit7 #main-header.rbBar .rbT span{display:none;}		/* (icons only; the names are in their tips) */
html.rbFit7 #main-header.rbBar .rbT.on span{display:inline;}
html.rbFit8 #main-header.rbBar #rbRp, html.rbFit8 #main-header.rbBar #rbLogo{display:none;}
html.rbFit8 #main-header.rbBar #rbTabs{justify-content:flex-start; overflow-x:auto; scrollbar-width:none;}

/* a phone (760px and under; always across the top): the tabs and the Site button give way to one pit menu button (#rbPitBtn,
   the place you're on) that opens every place as a tile (#rbPit, owner 2026-12-03, mockup E). No grip, logo, Q / E or Race
   Points; Sound, Settings and Help are in the pit too. */
#main-header.rbBar #rbPitBtn, #main-header.rbBar #rbPit{display:none;}
@media (max-width:760px){
	#main-header#main-header.rbBar{gap:5px; padding:0 6px;}
	#main-header.rbBar #rbGrip, #main-header.rbBar #rbLogo, #main-header.rbBar #rbTabs, #main-header.rbBar #rbSite, #main-header.rbBar #rbRp, #main-header.rbBar #rbIcons{display:none;}
	#main-header#main-header.rbBar #rbPitBtn{display:flex; flex:0 1 auto; min-width:0; width:auto; height:34px; padding:0 10px 0 12px; gap:7px; border-radius:17px; border:1.5px solid #ffb329; background:#1d1709; color:#fff; font:15px 'Russo One', sans-serif; letter-spacing:.02em;}
	#main-header#main-header.rbBar #rbPitBtn .fa{font-size:15px; color:#ffb329;}
	#main-header#main-header.rbBar #rbPitBtn span{display:inline; overflow:hidden; text-overflow:ellipsis;}
	#main-header#main-header.rbBar #rbPitBtn .rbCaret{display:inline-block; font-size:12px; color:#ffd58a; margin-left:-1px;}
	#main-header#main-header.rbBar #rbPitBtn.open{background:#2e220a;}
	#main-header#main-header.rbBar #rbPitBtn .rbBadge{position:absolute; top:-4px; right:-4px; min-width:16px; height:16px; font-size:10px; padding:0 4px;}
	#rbWallet{margin-left:auto;}
	#main-header.rbBar .rbW{height:30px; padding:0 7px 0 4px; gap:4px; font-size:13px;}
	#main-header.rbBar .rbW img{width:18px; height:18px;}
	#main-header.rbBar .rbW .rbFull, #main-header.rbBar .rbW .rbPlus{display:none;}
	#main-header.rbBar .rbW .rbShort{display:inline;}
	#main-header.rbBar #userFuelBank{height:30px; padding:0 2px;}
	#main-header.rbBar #userFuelBank .ufSeg{padding:0 4px; gap:3px;}
	#main-header.rbBar .rbR{width:32px; height:32px; padding:0; justify-content:center; border-radius:50%;}
	#main-header.rbBar .rbR span, #main-header.rbBar .rbMe .rbCaret, #main-header.rbBar .rbMe .rbCrown{display:none;}
	#main-header.rbBar #rbLogin, #main-header.rbBar #rbJoin{width:auto; border-radius:16px; padding:0 9px;}
	#main-header.rbBar #rbLogin span, #main-header.rbBar #rbJoin span{display:inline;}
	#main-header.rbBar #rbLogin .fa, #main-header.rbBar #rbJoin .fa{display:none;}
	#main-header.rbBar #rbSiteMenu{width:calc(100vw - 16px);}

	/* the pit: every place as a tile, under the bar, over the page */
	#main-header#main-header.rbBar #rbPit:not([hidden]){display:flex; flex-direction:column; gap:10px; position:fixed; left:0; right:0; top:47px; bottom:0; z-index:2; overflow-y:auto; overscroll-behavior:contain;
		padding:14px 12px 22px; box-sizing:border-box; background:rgba(6,9,14,.96); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); color:#dfe7f1; text-align:left;}
	html.rbPitOn, html.rbPitOn body{overflow:hidden;}
	#rbPit .rbPitHead{display:flex; align-items:center; gap:10px;}
	#main-header.rbBar .rbPitTitle{font:21px 'Russo One', sans-serif; color:#fff; letter-spacing:.04em; white-space:nowrap;}
	#main-header.rbBar .rbPitTitle em{font-style:normal; color:#ffb329;}
	#main-header.rbBar .rbPitHint{color:#8596ac; font:600 13px 'Open Sans', sans-serif;}
	#main-header.rbBar .rbPitX{margin-left:auto; flex:none; width:38px; height:38px; border-radius:50%; border:0; padding:0; background:#1b2230; color:#c3cfdd; font-size:17px; cursor:pointer;}
	#rbPit .rbPitGrid{display:grid; grid-template-columns:1fr 1fr; gap:8px;}
	#main-header.rbBar .rbPitGrid > .rbPt:last-child:nth-child(even){grid-column:1 / -1;}		/* (a tile left on its own takes the row) */
	#main-header.rbBar .rbPt{position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-height:86px; padding:11px 12px 10px; box-sizing:border-box; overflow:hidden;
		border-radius:12px; border:1px solid #2b3547; background:linear-gradient(#1a2130, #141a25); color:#fff;}
	#main-header.rbBar .rbPt .fa{font-size:19px; margin-bottom:5px;}
	#main-header.rbBar .rbPt b{font:15px 'Russo One', sans-serif; color:#fff; letter-spacing:.02em;}
	#main-header.rbBar .rbPt small{font:600 11.5px/1.3 'Open Sans', sans-serif; color:#9fb0c6;}
	#main-header.rbBar .rbPt small em{font-style:normal; color:#ffd166;}
	#main-header.rbBar .rbPt .rbBadge{position:absolute; top:9px; right:9px;}
	#main-header.rbBar .rbPt:active{filter:brightness(1.2);}
	#main-header.rbBar .rbPtBig{grid-column:1 / -1; min-height:116px; border-color:rgba(255,179,41,.55); background:linear-gradient(135deg, #3a2608, #17110a 70%);}
	#main-header.rbBar .rbPtBig img{position:absolute; right:-8px; top:50%; width:150px; height:auto; transform:translateY(-55%);}
	#main-header.rbBar .rbPtBig b{margin-top:auto; font-size:26px; position:relative;}
	#main-header.rbBar .rbPtBig small{position:relative; max-width:60%;}
	/* the place you're on: a filled tile */
	#main-header.rbBar .rbPt.on{background:linear-gradient(#ffc65c, #ffa91f); border-color:#ffa91f;}
	#main-header.rbBar .rbPt.on b, #main-header.rbBar .rbPt.on small, #main-header.rbBar .rbPt.on small em, #main-header.rbBar .rbPt.on .fa{color:#201300 !important;}
	#main-header.rbBar #rbPit .rbPhoneRow{display:flex; gap:8px; margin:0;}
	#main-header.rbBar .rbPhoneBtn{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:10px 4px; border-radius:12px; border:1px solid #2b3547; background:#10151d; color:#dfe7f1; font:700 12px 'Open Sans', sans-serif; cursor:pointer;}
	#main-header.rbBar .rbPhoneBtn .fa{font-size:18px; color:#9fd8ff; width:auto;}
	#main-header.rbBar .rbPtOut{display:flex; align-items:center; gap:12px; width:100%; padding:11px 13px; box-sizing:border-box; border-radius:12px; border:1px dashed #3a475c; background:none; color:#dfe7f1; text-align:left; cursor:pointer;}
	#main-header.rbBar .rbPtOut .fa{flex:none; width:20px; font-size:17px; color:#ffb329; text-align:center;}
	#main-header.rbBar .rbPtOut span{display:flex; flex-direction:column; gap:2px; min-width:0;}
	#main-header.rbBar .rbPtOut b{font:700 14px 'Open Sans', sans-serif; color:#fff;}
	#main-header.rbBar .rbPtOut small{font:600 11.5px 'Open Sans', sans-serif; color:#8596ac;}
}

/* ---------- on the left: a rail ---------- */
html.rbLeft #main-header#main-header.rbBar{right:auto; bottom:0; width:86px; height:auto; flex-direction:column; align-items:center; gap:2px; padding:4px 0 8px;
	border-bottom:0; border-right:1px solid #000; box-shadow:1px 0 0 rgba(255,179,41,.35), 6px 0 22px rgba(0,0,0,.5); overflow-y:auto; overflow-x:hidden; scrollbar-width:none;}
html.rbLeft #rbGrip{width:40px; height:14px; margin-bottom:2px;}
html.rbLeft #main-header.rbBar #rbLogo{order:1; margin:0 0 4px;}
html.rbLeft #rbLogo img{width:56px;}
html.rbLeft #main-header.rbBar #rbLogo span{display:none;}
html.rbLeft #rbTabs{order:2; flex:none; flex-direction:column; gap:2px;}
html.rbLeft #rbWallet{order:3; flex-direction:column; gap:6px; margin-top:8px; padding-top:10px; border-top:1px solid #222b39; width:70px; align-items:center;}
html.rbLeft #rbRight{order:4; flex-direction:column; gap:2px; margin-top:auto; padding-top:10px;}
html.rbLeft #main-header.rbBar .rbKey{margin:3px 0; width:30px; height:20px;}
html.rbLeft #main-header.rbBar .rbT, html.rbLeft #main-header.rbBar .rbR{width:74px; height:auto; min-height:46px; max-width:none; flex-direction:column; justify-content:center; gap:3px; padding:5px 2px 4px; border-radius:12px;
	font-size:11px; font-weight:700; background:none; border:0; color:#9fb0c6; text-align:center;}
html.rbLeft #main-header.rbBar .rbT .fa, html.rbLeft #main-header.rbBar .rbR .fa{font-size:18px; display:block;}
html.rbLeft #main-header.rbBar .rbT:hover, html.rbLeft #main-header.rbBar .rbR:hover{background:rgba(255,255,255,.07); color:#fff;}
html.rbLeft #main-header.rbBar .rbT.on{background:linear-gradient(#ffc65c, #ffa91f); color:#201300;}
html.rbLeft #main-header.rbBar .rbR.open{background:rgba(255,179,41,.16); color:#fff;}
html.rbLeft #main-header.rbBar .rbR span{display:block; max-width:70px;}
html.rbLeft #main-header.rbBar .rbMe{color:#cfd9e6;}
html.rbLeft #main-header.rbBar .rbMe .rbCaret, html.rbLeft #main-header.rbBar .rbMe .rbCrown{display:none;}
html.rbLeft #main-header.rbBar .rbMe .rbAva{width:24px; height:24px; font-size:12px;}
html.rbLeft #main-header.rbBar #rbJoin{background:none; color:#ffd166;}
html.rbLeft #main-header.rbBar #rbJoin .fa{color:#ffd166;}
html.rbLeft #main-header.rbBar .rbBadge{position:absolute; top:3px; right:12px; min-width:16px; height:16px; font-size:10px; padding:0 4px;}
html.rbLeft #rbIcons{flex-direction:column; gap:2px;}
html.rbLeft #main-header.rbBar .rbIc span{display:block;}
@media (max-height:760px){
	html.rbLeft #rbIcons{flex-direction:row; gap:2px; margin:2px 0 4px;}
	html.rbLeft #main-header.rbBar .rbIc{width:25px; min-height:0; height:30px; padding:0; border-radius:8px;}
	html.rbLeft #main-header.rbBar .rbIc .fa{font-size:15px;}
	html.rbLeft #main-header.rbBar .rbIc span{display:none;}
}
html.rbLeft #main-header.rbBar .rbW{width:72px; height:28px; padding:0 4px; gap:5px; font-size:12.5px; justify-content:center;}
html.rbLeft #main-header.rbBar .rbW img{width:17px; height:17px;}
html.rbLeft #main-header.rbBar .rbW .rbPlus, html.rbLeft #main-header.rbBar .rbW .rbFull{display:none;}
html.rbLeft #main-header.rbBar .rbW .rbShort{display:inline;}
html.rbLeft #main-header.rbBar #userFuelBank{width:72px; height:auto; flex-direction:column; align-items:stretch; padding:2px 0; border-radius:12px;}
html.rbLeft #main-header.rbBar #userFuelBank .ufSeg{justify-content:center; height:auto; padding:4px 6px;}
html.rbLeft #main-header.rbBar #userFuelBank .ufSeg + .ufSeg{border-left:0; border-top:1px solid rgba(255,255,255,.14);}
html.rbLeft #main-header.rbBar #userFuelBank .ufStack{flex-direction:column; gap:3px;}		/* the battery under its number (owner, 2026-12-03) */
@media (max-height:700px){
	html.rbLeft #main-header.rbBar .rbT, html.rbLeft #main-header.rbBar .rbR:not(.rbIc){min-height:41px; padding:3px 2px 2px; gap:2px;}
	html.rbLeft #rbLogo img{width:46px;}
	html.rbLeft #main-header.rbBar #rbLogo{margin-bottom:0;}
	html.rbLeft #rbWallet{gap:4px; margin-top:5px; padding-top:7px;}
	html.rbLeft #main-header.rbBar .rbW{height:26px;}
	html.rbLeft #main-header.rbBar .rbKey{display:none;}
}

/* ---------- tips, the place picker, the Site and account menus, the drop zones ---------- */
#main-header.rbBar #rbTip{position:fixed; z-index:3; background:#fff; color:#141a24; font:600 12.5px 'Open Sans', sans-serif; padding:6px 10px; border-radius:7px; box-shadow:0 6px 22px rgba(0,0,0,.5); white-space:nowrap; pointer-events:none; opacity:0; transition:opacity .12s; left:-999px; top:0;}
#main-header.rbBar #rbTip.on{opacity:1;}
#main-header.rbBar .rbPop{position:fixed; z-index:2; display:none; background:#151b25; border:1px solid #2b3547; border-radius:12px; box-shadow:0 14px 40px rgba(0,0,0,.6); padding:8px; color:#dfe7f1; text-align:left; box-sizing:border-box; max-width:calc(100vw - 16px); max-height:calc(100vh - 16px); overflow-y:auto;}
#main-header.rbBar .rbPop.on{display:block;}
#main-header.rbBar .rbPop h4{margin:2px 6px 8px; padding:0; font:700 11px 'Open Sans', sans-serif; letter-spacing:.1em; color:#8396ad; text-transform:uppercase; background:none; border:0;}
#rbPick .rbPlaces{display:flex; gap:6px;}
#main-header.rbBar .rbPlace{width:84px; padding:8px 0 7px; border-radius:9px; border:1px solid #2b3547; background:#10151d; color:#cfd9e6; font:700 12px 'Open Sans', sans-serif; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:6px;}
#main-header.rbBar .rbPlace:hover{border-color:#4d5f7c; color:#fff;}
#main-header.rbBar .rbPlace.on{border-color:#ffb329; background:rgba(255,179,41,.12); color:#fff;}
.rbPlace i{display:block; width:40px; height:28px; border-radius:4px; border:1.5px solid #4b5b74; position:relative; box-sizing:border-box;}
.rbPlace i::after{content:""; position:absolute; background:#ffb329; border-radius:1px;}
.rbPlace[data-dock="top"] i::after{left:2px; right:2px; top:2px; height:5px;}
.rbPlace[data-dock="bottom"] i::after{left:2px; right:2px; bottom:2px; height:5px;}
.rbPlace[data-dock="left"] i::after{left:2px; top:2px; bottom:2px; width:6px;}
#main-header.rbBar #rbPick p{margin:8px 6px 2px; padding:0; font-size:11.5px; color:#8396ad; font-weight:600;}
#main-header.rbBar #rbSiteMenu{width:720px;}
#rbSiteMenu .rbCols{display:grid; grid-template-columns:repeat(4, 1fr); gap:4px;}
#main-header.rbBar #rbSiteMenu a, #main-header.rbBar #rbAcctMenu a{display:flex; align-items:center; gap:8px; padding:7px 8px; border-radius:8px; color:#dfe7f1; font:700 13px 'Open Sans', sans-serif; white-space:nowrap; text-align:left;}
#main-header.rbBar #rbSiteMenu a:hover, #main-header.rbBar #rbAcctMenu a:hover{background:rgba(255,255,255,.07);}
#main-header.rbBar #rbSiteMenu a .fa, #main-header.rbBar #rbAcctMenu a .fa{width:16px; text-align:center; color:#9fd8ff;}
#main-header.rbBar #rbSiteMenu a#rbBackTo{margin:0 0 6px; padding:9px 12px; background:#1d2534; border:1px solid #334055; color:#fff;}
#main-header.rbBar #rbSiteMenu a#rbBackTo:hover{border-color:#4d5f7c;}
#main-header.rbBar #rbSiteMenu a#rbBackTo .fa{color:#ffb329;}
#main-header.rbBar #rbSiteMenu a#rbBackTo small{margin-left:auto; color:#8396ad; font-weight:600; font-size:11.5px;}
@media (max-width:760px){ #rbSiteMenu .rbCols{grid-template-columns:repeat(2, 1fr);} }
/* the account menu: the site's (includes/widgets/loggedin.php) in the bar's dark look */
#main-header.rbBar #rbAcctMenu{width:270px;}
#main-header.rbBar #rbAcctMenu h4{margin:10px 9px 4px;}
#main-header.rbBar #rbAcctMenu a{gap:10px; padding:7px 9px;}
#main-header.rbBar #rbAcctMenu a.rbAcHead{padding:8px 9px; background:#1d2534; border:1px solid #2d3a50; gap:11px;}
#main-header.rbBar #rbAcctMenu a.rbAcHead:hover{border-color:#4d5f7c;}
#main-header.rbBar .rbAcAva{width:42px; height:42px; border-radius:50%; object-fit:cover; flex:none; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(135deg, #3b4b66, #25324a); color:#e6ebf3; font:800 18px 'Open Sans', sans-serif;}
.rbAcWho{display:flex; flex-direction:column; gap:4px; min-width:0; flex:1;}
#main-header.rbBar .rbAcName{font:16px 'Russo One', sans-serif; color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
#main-header.rbBar .rbAcName.rbPrem{color:#ffd166;}
.rbAcTags{display:flex; flex-wrap:wrap; gap:4px;}
#main-header.rbBar .rbAcTag{display:inline-flex; align-items:center; gap:4px; padding:2px 7px; border-radius:9px; background:#2a3448; color:#cfd9e6; font:700 10.5px 'Open Sans', sans-serif; letter-spacing:.02em;}
.rbAcTag img{width:12px;}
#main-header.rbBar .rbAcTag img.rbGamer{width:auto; height:14px;}
#main-header.rbBar .rbAcTagPrem{background:rgba(255,179,41,.16); color:#ffd166;}
#main-header.rbBar #rbAcctMenu .rbAcGo{color:#6d7b8e; margin-left:auto;}
#main-header.rbBar #rbAcctMenu a.rbAcPrem{margin-top:8px; padding:9px 10px; background:linear-gradient(135deg, rgba(255,179,41,.18), rgba(255,140,30,.08)); border:1px solid rgba(255,179,41,.45);}
#rbAcctMenu a.rbAcPrem img{width:22px;}
#main-header.rbBar #rbAcctMenu a.rbAcPrem span{display:flex; flex-direction:column; flex:1;}
#main-header.rbBar #rbAcctMenu a.rbAcPrem b{color:#ffd166;}
#main-header.rbBar #rbAcctMenu a.rbAcPrem small{color:#a7b4c6; font-weight:600; font-size:11.5px;}
#main-header.rbBar #rbAcctMenu a.rbAcPrem .fa{color:#ffb329;}
#main-header.rbBar #rbAcctMenu a.rbAcOut{margin-top:8px; border-top:1px solid #26303f; border-radius:0 0 8px 8px; padding-top:10px; color:#a7b4c6;}
#main-header.rbBar #rbAcctMenu a.rbAcOut .fa{color:#a7b4c6;}
#main-header.rbBar #rbAcctMenu a.rbAcOut:hover, #main-header.rbBar #rbAcctMenu a.rbAcOut:hover .fa{color:#ff8a8a;}
#main-header.rbBar #rbAcctMenu a.rbAcOut:hover{background:rgba(198,40,40,.12);}
#main-header.rbBar #rbZones{position:fixed; inset:0; z-index:1; display:none; background:rgba(4,6,10,.45);}
html.rbDragging #main-header.rbBar #rbZones{display:block;}
#main-header.rbBar .rbZ{position:absolute; display:flex; align-items:center; justify-content:center; border:2px dashed rgba(255,179,41,.55); background:rgba(255,179,41,.07); border-radius:10px; color:#ffd58a; font:16px 'Russo One', sans-serif; letter-spacing:.05em; transition:background .1s, border-color .1s;}
#main-header.rbBar .rbZ.hot{background:rgba(255,179,41,.30); border-style:solid; border-color:#ffb329; color:#fff;}
.rbZ[data-dock="top"]{left:110px; right:8px; top:8px; height:56px;}
.rbZ[data-dock="bottom"]{left:110px; right:8px; bottom:8px; height:56px;}
.rbZ[data-dock="left"]{left:8px; top:8px; bottom:8px; width:92px; writing-mode:vertical-rl; transform:rotate(180deg);}
#main-header.rbBar #rbGhost{position:fixed; z-index:4; display:none; padding:8px 12px; border-radius:18px; background:#ffb329; color:#201300; font:700 13px 'Open Sans', sans-serif; pointer-events:none; box-shadow:0 8px 24px rgba(0,0,0,.5); transform:translate(14px, 10px); white-space:nowrap;}
html.rbDragging #main-header.rbBar #rbGhost{display:block;}
/* the Sound panel (js/racer/audio.js #racerVol) and its first-visit question open over the bar */
html.rbOn #racerVol, html.rbOn #racerAsk{z-index:2147483647 !important;}

/* ---------- the pages: what the bar now has ---------- */
/* the lobby's title row (help, settings, sound, standings, garage, the sign, coins, Race Points, fuel): all of it is in the bar.
   The row itself stays, so the lead ad (games/typing-racer.php RacerTopFit, css/racer-ad.css) still finds its band, now
   all of it; with no ad on the page (Premium, the beta) the band folds away too. */
html.rbOn body#typingRacer #centerEntryModule > #leftOfTitle, html.rbOn body#typingRacer #centerEntryModule > h1, html.rbOn body#typingRacer #centerEntryModule > #rightOfTitle{display:none !important;}
html.rbOn body#typingRacer:not(:has(#leadPlug:not(.adNone))) #trgInterfaceContainer{height:auto;}
html.rbOn #lobbySeason, html.rbOn #topShowLink{display:none !important;}
/* each page's own Sound button, coin pill and wallet, and its links to the other racer pages */
html.rbOn .racerSndBtn:not(#rbSound):not(.rbPhoneBtn), html.rbOn .racerCoinPill, html.rbOn .gxWallet{display:none !important;}
html.rbOn .gxLobbyPill, html.rbOn .gxPassBtn,
html.rbOn .stBtn[href="/games/typing-racer"], html.rbOn .stBtn[href="/my-garage"], html.rbOn .stBtn[href="/my-showcase"], html.rbOn .stBtn[href="/racer-history"], html.rbOn .stBtn[href="/race-pass"],
html.rbOn .rpBtn[href="/games/typing-racer"], html.rbOn .rpBtn[href="/my-garage"], html.rbOn .rpBtn[href="/racer-history"], html.rbOn .rpBtn[href="/racer-standings"],
html.rbOn .rhBtn[href="/games/typing-racer"], html.rbOn .rhBtn[href="/my-garage"], html.rbOn .rhBtn[href="/racer-standings"], html.rbOn .rhBtn[href="/race-pass"],
html.rbOn .scBtn[href="/games/typing-racer"]{display:none !important;}
/* your own garage's Showcase button, your own showcase's Garage button (js/racer/bar.js marks them; someone else's stay) */
html.rbOn .rbDupe{display:none !important;}

/* the Showcase never kept a menu's height clear (it was made when the menu tucked away): across the top it starts under the bar */
html.rbTop body#racerShowcasePage #racerShowcase{margin-top:47px;}

/* ---------- the room the bar takes, docked left or at the bottom ---------- */
html.rbLeft body{padding-left:86px !important; box-sizing:border-box;}
html.rbLeft #racerHud{left:86px;}
html.rbBottom body{padding-bottom:47px !important; box-sizing:border-box;}
html.rbBottom{--rbB:47px;}
html.rbLeft{--rbL:86px;}
/* the dash rides on the bar (and on the anchor ad under it, in a room); the lobby's slim dash no longer clears the footer, which has gone to the top */
html.rbBottom:not(.trPortrait) body#typingRacer.hudFull #racerHud{bottom:calc(var(--rbB) + var(--sto-anchor-h, 0px));}
html.rbBottom:not(.trPortrait) body#typingRacer:not(.hudFull) #racerHud, html.rbBottom:not(.trPortrait) body#typingRacer:not(.hudFull) #racerHud.slim{bottom:var(--rbB);}
html.rbBottom body#typingRacer #chatWrap{bottom:var(--rbB);}
html:not(.trPortrait).rbBottom body#typingRacer.hudFull #quickChat{bottom:calc(158px + 47px + var(--sto-anchor-h, 0px));}
/* the page's little footer becomes a mini header while the bar is at the bottom (js/racer/bar.js moves it) */
html.rbBottom footer.microFooter.rbFootTop{position:sticky; top:0; bottom:auto; z-index:5; padding:8px 0; border-top:0; border-bottom:1px solid #1f2430;}
/* a notice under the menu (includes/overall/header.php .stoConsentBannerWrap): the page has moved up, so it sits near the top */
html.trHeadAuto.rbOn body > .stoConsentBannerWrap{margin:10px auto 0 !important;}
