/* Typing Racer: the site menu tucks away (owner, 2026-11-17) -- js/racer/autohead.js
   html.trHeadAuto: the menu bar is slid up out of sight (its shadow too) and each racer page moves up into the room;
   html.trHeadShow: it is down over the page for now. A thin tab at the top centre shows where it went: it hangs from
   the menu's bottom edge, so with the menu up it is all that shows, and the mouse on it brings the menu down. */
html.trHeadAuto #main-header{transform:translateY(calc(-100% - 26px)); transition:transform .22s ease, box-shadow .22s;}
html.trHeadAuto.trHeadShow #main-header{transform:none;}
html.trHeadAuto #main-header::after{content:""; position:absolute; left:50%; top:calc(100% + 26px); width:72px; height:6px; margin-left:-36px;
	border-radius:0 0 7px 7px; background:rgba(127,224,255,.4); box-shadow:0 0 8px rgba(63,208,255,.35); transition:opacity .2s, background .2s;}
html.trHeadAuto #main-header:hover::after{background:rgba(127,224,255,.75);}
html.trHeadAuto.trHeadShow #main-header::after{opacity:0; pointer-events:none;}
html.trgCalm.trHeadAuto #main-header, html.trgCalm.trHeadAuto #main-header::after{transition:none;}

/* the pages move up into the room (they kept a menu's height clear at the top) */
html.trHeadAuto body#typingRacer #topModule{margin-top:calc(10px - var(--trHeadH, 47px));}		/* the lobby's band: 10px clear of the top edge */
html.trHeadAuto #racerStandings, html.trHeadAuto div#racePass{margin-top:16px;}

/* a phone or tablet (html.trHeadTouch, owner 2026-11-26): the tab is a finger's size, with an arrow down, and stays faint
   so it doesn't cover the race; a tap on it brings the menu down */
html.trHeadAuto.trHeadTouch #main-header#main-header::after{content:"\f107"; left:50%; right:auto; bottom:auto; top:calc(100% + 26px); opacity:1; pointer-events:auto; width:46px; height:18px; margin-left:-23px; border-radius:0 0 10px 10px;
	background:rgba(14,22,30,.72); box-shadow:inset 0 -1px 0 rgba(127,224,255,.45), 0 2px 6px rgba(0,0,0,.35);
	color:rgba(160,225,255,.85); font:normal 15px/16px FontAwesome; text-align:center;}
/* (two ids: the garage draws its own line under the menu with ::after, my-garage.php) */
html.trHeadAuto.trHeadTouch.trHeadShow #main-header#main-header::after{opacity:0; pointer-events:none;}
