/* Shared shell; sport scenes and controls retain their own layout. */
.qse-page-content { padding: 1.5rem; }
.qse-game-toolbar {
    display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
    padding: .25rem .5rem; min-height: 52px;
    background: var(--qse-surface, #fff); border-bottom: 1px solid var(--qse-border, #dee2e6);
}
.qse-game-toolbar .btn, .qse-mobile-topbar .btn { min-height: 44px; }
.qse-game-toolbar .btn { min-width:44px; }
.qse-game-toolbar .qse-game-brand { font-weight: 700; color: var(--qse-text, #212529); text-decoration: none; }
.qse-game-toolbar .qse-game-view { margin-left: auto; }
.qse-portal:not(.qse-game-first) .qse-toolbar-menu { display: none; }
.qse-game-first .qse-page-content { padding: .5rem; }
.qse-portal .sidebar-logo { width: 112px; max-width: 100%; }
.qse-drawer-close { display: none; }
.qse-game-first .qse-sidebar-collapse, .qse-topbar-shell .qse-sidebar-collapse { display: none; }
.qse-game-first .qse-drawer-close, .qse-topbar-shell .qse-drawer-close { display: inline-flex; }
/* The off-canvas drawer: game-first mode, and every non-game page since the 2026-10-10 top bar. */
.qse-game-first > .qse-portal-navigation, .qse-topbar-shell > .qse-portal-navigation {
    position: fixed; top: 0; left: 0; height: 100vh; height: 100dvh;
    z-index: 1040; transform: translateX(-100%); visibility: hidden;
    overflow-y: auto; box-shadow: 2px 0 16px rgba(0,0,0,.4);
    transition: transform .2s ease;
}
.qse-game-first > .qse-portal-navigation.mobile-open, .qse-topbar-shell > .qse-portal-navigation.mobile-open { transform: translateX(0); visibility: visible; }
.qse-game-first > .mobile-nav-backdrop.show, .qse-topbar-shell > .mobile-nav-backdrop.show { display: block !important; }
.qse-game-first .qse-portal-footer { padding: .5rem 1rem !important; font-size: .75rem; }
.qse-sidebar-fullscreen { display: flex; }
.qse-customer-nav .text-muted { color: #a8b0bd !important; }
@media (min-width: 768px) {
    .qse-customer-nav .nav-link { padding: .375rem .75rem; line-height: 1.4; }
}
@media (max-width: 767.98px) {
    .qse-customer-nav .nav-link { min-height: 44px; display: flex; align-items: center; }
    .qse-page-content { padding: 1rem; }
    .qse-game-first .qse-page-content { padding: .375rem; }
    .qse-portal-navigation { visibility: hidden; overflow-y: auto; height: 100dvh; }
    .qse-portal-navigation.mobile-open { visibility: visible; }
    .qse-drawer-close { display: inline-flex; }
    .qse-sidebar-collapse, .qse-sidebar-fullscreen { display: none; }
    .qse-game-toolbar .qse-fullscreen-label { display: none; }
    .qse-portal:not(.qse-game-first) .qse-toolbar-menu { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
    .qse-portal > .qse-portal-navigation { transition: none !important; }
}
@media (max-width: 360px) {
    .qse-game-toolbar .qse-toolbar-menu-label { display:none; }
}

/* 2026-11-06 (UI alignment rule, owner 2026-10-24): equal-cell button groups. Every button in a .qse-eq group is the
   width of the widest one and the height of the tallest, on one centre line (a one-row grid whose 1fr columns, in an
   unsized container, are the widest label; minmax(0, ...) keeps them equal when a narrow screen squeezes the group
   and a label wraps - a plain 1fr column grows to its own longest word). .qse-eq-wrap also wraps on a phone: equal cells in columns, the first
   column flush left (--qse-eq-cell = the cell's minimum width). .qse-eq-grid always wraps that way (a long toolbar);
   a child that is not a button (a prompt, an error, a progress bar) takes a full row of its own. Spacing comes from
   the grid gap, so a button's own ms-* margin is dropped. Measured by tests/Launch/league-pages.browser.cjs. */
.qse-eq { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .5rem; align-items: stretch; vertical-align: middle; }
.qse-eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--qse-eq-cell, 10rem), 1fr)); grid-auto-rows: 1fr; gap: .5rem; align-items: stretch; }
:is(.qse-eq, .qse-eq-grid) > :is(.btn, a, button) { display: inline-flex; align-items: center; justify-content: center; gap: .3em; text-align: center; margin: 0 !important; }
.qse-eq-grid > :not(.btn):not(a):not(button) { grid-column: 1 / -1; }
.qse-eq.btn-group { gap: 0; }
.qse-eq.btn-group > .btn:not(:first-child) { border-left-width: 0; }   /* one shared border, exact equal widths */
.qse-eq.qse-eq-tight, .qse-eq-grid.qse-eq-tight { gap: .25rem; }
@media (max-width: 575.98px) {
    .qse-eq.qse-eq-wrap { display: grid; grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(var(--qse-eq-cell, 7rem), 1fr)); grid-auto-rows: 1fr; width: 100%; flex: 1 1 100%; }
}
