/* Main Menu positioning only. Approved artwork, paint and scene geometry stay intact. */
@media(min-width:701px){
 #brightness:has(>#app.reference-main-menu.reference-ui){--menu-fit-controls-width:320px;--menu-fit-safe-right:1.1vw;--menu-fit-separation:24px}
 #brightness:has(>#app.reference-main-menu.reference-ui) .account-rank-component{width:min(800px,calc(100% - 24px));grid-template-columns:58px max-content minmax(200px,1fr) max-content;column-gap:12px}
 #brightness:has(>#app.reference-main-menu.reference-ui) .account-rank-progress{padding-block:8.5px}
 /* Fixed positioning uses the full viewport instead of the clipped app below the rank row. */
 #app.reference-main-menu.reference-ui .menu-reference-top{position:fixed;left:auto;right:var(--menu-fit-safe-right);top:76px;width:var(--menu-fit-controls-width);max-width:calc(100% - 24px);gap:8px;justify-content:flex-end}
 #app.reference-main-menu.reference-ui .menu-reference-auxiliary{justify-content:flex-end}
}
@media(min-width:1200px){
 #brightness:has(>#app.reference-main-menu.reference-ui) .account-rank-component{position:absolute;top:50%;right:max(calc((100% - 800px)/2),calc(var(--menu-fit-controls-width) + var(--menu-fit-safe-right) + var(--menu-fit-separation)));width:min(800px,calc(100% - var(--menu-fit-controls-width) - var(--menu-fit-safe-right) - var(--menu-fit-separation) - 12px));transform:translateY(-50%)}
 #app.reference-main-menu.reference-ui .menu-reference-top{top:12px}
}
@media(min-width:1800px){
 #brightness:has(>#app.reference-main-menu.reference-ui){--menu-fit-controls-width:650px}
}
@media(min-width:701px) and (max-width:1799px){
 /* Long account names stay beneath Store, clear of the adjacent flag. */
 #app.reference-main-menu.reference-ui .menu-reference-auxiliary .username{max-width:134px;text-align:right}
}
