/* Hardpoint on a phone held sideways. Loaded after the page's own styles, only when it matches (see the <link> in src/000_head.html),
   so desktop and upright phones never wait for it. About 300px of height: every row here is counted. */

/* ---- in a match: one top row, so the map keeps its height ---- */
#hud{flex-wrap:wrap;gap:3px 8px;padding:3px 8px 7px}
#hud .sep,#hud #status,#hud .chip.x,#hud .chip.r small{display:none}
#hud .chip{min-width:0;gap:3px;padding:0}
#hud .chip svg{width:13px;height:13px}
#hud .chip b,#hud .clk b{font-size:12px}
#hud .chip small,#hud .clk small{font-size:7.5px;letter-spacing:.04em}
#hud .clk{min-width:0}
#hud .clk small{max-width:62px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#hud .infob{display:grid;place-items:center;min-width:34px;height:28px;padding:0 5px;font-size:0}
#hud [data-menu]::before{content:"Menu";font-size:10px}
#hud [data-info]::before{content:"Info";font-size:10px}
#hud [data-clip]::before{content:"\25CF";font-size:12px}
#hud [data-clip].on::before{content:"\25A0";color:var(--bad)}
#hud .spd{margin-left:auto;padding:1px}
#hud .spd button{min-width:23px;height:26px;padding:0 2px;font-size:10.5px}

/* the checklist: small, top left, never over the minimap */
#lt{left:6px;top:6px;width:210px;max-width:40%;max-height:calc(100% - 98px)}
#tut{overflow-y:auto;padding:5px 7px}
#tut h5{font-size:9px;letter-spacing:.02em;margin:0 0 2px;gap:4px}
#tut h5 span{white-space:nowrap}
#tut h5 button{font-size:9.5px}
#tut .st,#tut .tgo,#tut .wait{font-size:10.5px}
#tut .twhy,#tut .why{display:none}
#tut.open .twhy{display:block}
#hint{display:none!important}
#toast{top:6px;bottom:auto}
#reports{top:6px;right:82px;width:220px}

/* minimap bottom left, map buttons bottom right, in two columns so that all of them fit */
#mm{left:10px;right:auto;top:auto;bottom:8px}
#zoom{right:6px;bottom:6px;display:grid;grid-template-columns:32px 32px}
#zoom button{width:32px;height:32px}

/* the group bar: the name, then the orders (the rest open with More, as everywhere). It wraps, it never scrolls:
   its buttons act as soon as they are touched, so a swipe over them would give orders. */
#gbar{left:140px;right:82px;bottom:6px;transform:none;max-width:none;max-height:70%;overflow-y:auto;gap:3px;padding:4px 6px}
#gbar .ghint,#gbar .gl,#gbar .sep,#gbar .ghp,#gbar [data-act="gb:keys"]{display:none}
#gbar .gh{font-size:10px;white-space:nowrap;overflow:hidden}
#gbar .grow{gap:3px;margin:0;padding:1px 0;min-height:0;border:0;background:none;box-shadow:none;clip-path:none}
#gbar button{padding:6px 6px;font-size:9.5px;letter-spacing:.04em}

/* panels */
#pop{max-height:calc(100% - 8px);overflow-y:auto}
#info{left:auto;right:6px;top:6px;bottom:6px;width:min(360px,64%)}
#info .phead{padding:4px 8px 8px}
#info .swl small{display:none}
#info .itabs{padding:3px 0}
#info .itabs button{padding:2px 7px;font-size:10px}

/* ---- the main menu: a thin top bar and every tile on one screen ---- */
#menu .mbox:not(.solo){grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
#menu .mrail{flex-direction:row;align-items:center;gap:10px;padding:8px 10px 5px;border-right:0;border-bottom:1px solid #1f2b1b}
#menu .mrail .mplayer,#menu .mrail .mstats,#menu .mrail .mnav,#menu .mrail .mlinks,#menu .mlogo small{display:none}
#menu .mfs{margin-left:auto;padding:4px 10px}
#menu .mlogo img{width:22px;height:22px}
#menu .mlogo b{font-size:14px}
#menu .mlogo div{display:flex;align-items:center;gap:8px}.mstreak{display:inline}
#menu .mmain{padding:6px 8px;overflow-y:auto;-webkit-overflow-scrolling:touch}
#menu .tiles{flex:none;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:minmax(54px,auto);align-content:start;gap:5px}
#menu .tile{display:grid;grid-template-columns:16px minmax(0,1fr);align-content:center;align-items:center;column-gap:6px;min-height:0;padding:4px 7px}
#menu .tile::after{display:none}
#menu .tile .ti{position:static;grid-row:span 2;width:16px;height:16px;margin:0}
#menu .tile b{grid-column:2;font-size:10.5px;letter-spacing:.06em;line-height:1.15;-webkit-mask:none;mask:none}
#menu .tile small{display:none}
#menu .tile[data-m=mpq],#menu .tile[data-m=resume]{grid-column:span 2}
#menu .tile[data-m=mpq] small,#menu .tile[data-m=resume] small{display:block;grid-column:2;font-size:9px;line-height:1.2;max-height:none}
#menu .tile.hero{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;grid-column:span 2;grid-row:span 2;min-height:0;padding:8px 12px}
#menu .tile.hero b{font-size:19px;letter-spacing:.12em}
#menu .tile.hero small{display:block;font-size:10.5px;max-height:none}

/* the front page: title and button on the left, cards on the right, nothing cut off */
#menu .mbox.solo{overflow-y:auto}
.land{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);grid-template-rows:auto auto;align-content:center;align-items:center;height:auto;min-height:100%;gap:8px 18px;padding:10px 16px}
.lhero{align-items:center;text-align:center;gap:6px}
.lhero img,.ld{display:none}
.lhero h1{font-size:clamp(26px,9vh,40px);letter-spacing:.1em}
.lk{font-size:11px}
.lcta{align-self:stretch;align-items:center;font-size:18px;padding:10px 16px}
.lcta small{font-size:11px}
.lside{grid-template-columns:1fr 1fr;gap:6px}
.lc{font-size:10px;padding:7px 9px;line-height:1.3}
.lc b{font-size:10.5px;margin-bottom:2px}
.lfoot{grid-column:1/-1;justify-content:center;gap:2px 14px;font-size:11.5px}
.lfoot a{padding:4px 0}

/* narrower phones: still one top row (the slow speeds show only while one is in use, and there is no clip button) */
@media (max-width:760px){
  #hud{column-gap:5px}
  #hud [data-clip]:not(.on),#hud [data-spd="0.125"]:not(.on),#hud [data-spd="0.25"]:not(.on),#hud [data-spd="0.5"]:not(.on){display:none}
}
