/* GlitchMod navigation system
   A compact broadcast rail above a focused player command deck. The header is
   intentionally dark in both color themes so it remains a stable brand frame. */

:root {
    --gm-nav-void: #050b13;
    --gm-nav-deep: #08131f;
    --gm-nav-panel: #0d1b2a;
    --gm-nav-panel-2: #102437;
    --gm-nav-line: rgba(137, 184, 214, .17);
    --gm-nav-line-strong: rgba(114, 218, 240, .38);
    --gm-nav-ink: #f4f9fc;
    --gm-nav-copy: #a9bdca;
    --gm-nav-muted: #738b9d;
    --gm-nav-cyan: #58ddf5;
    --gm-nav-cyan-strong: #18b9db;
    --gm-nav-blue: #6288ff;
    --gm-nav-green: #9dea66;
}

#header.gm-header {
    position: sticky;
    z-index: 1050;
    top: 0;
    overflow: visible;
    isolation: isolate;
    border: 0;
    border-bottom: 1px solid rgba(88, 221, 245, .2);
    color: var(--gm-nav-ink);
    background: rgba(5, 11, 19, .96);
    box-shadow: 0 14px 45px rgba(0, 4, 10, .28);
    backdrop-filter: saturate(140%) blur(20px);
    transition: box-shadow .22s ease, background .22s ease;
}

#header.gm-header::before {
    position: absolute;
    z-index: -1;
    inset: 29px 0 0;
    content: "";
    opacity: .78;
    background:
        radial-gradient(circle at 12% 10%, rgba(24, 185, 219, .12), transparent 24rem),
        radial-gradient(circle at 88% 0, rgba(98, 136, 255, .1), transparent 22rem),
        linear-gradient(115deg, rgba(255, 255, 255, .012), transparent 35%),
        var(--gm-nav-deep);
    pointer-events: none;
}

#header.gm-header::after {
    position: absolute;
    z-index: -1;
    inset: 29px 0 0;
    display: block;
    content: "";
    opacity: .25;
    background-image:
        linear-gradient(90deg, transparent 49.7%, rgba(111, 191, 213, .08) 50%, transparent 50.3%),
        linear-gradient(rgba(111, 191, 213, .05) 1px, transparent 1px);
    background-size: 170px 100%, 100% 14px;
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    pointer-events: none;
}

#header.gm-header.is-scrolled {
    background: rgba(4, 9, 16, .985);
    box-shadow: 0 18px 52px rgba(0, 4, 10, .45);
}

.gm-header__signalbar {
    height: 29px;
    border-bottom: 1px solid rgba(137, 184, 214, .1);
    background: rgba(2, 7, 13, .72);
}

.gm-signalbar__inner {
    display: flex;
    height: 29px;
    align-items: center;
    justify-content: space-between;
}

.gm-network-status {
    display: flex;
    gap: .55rem;
    align-items: center;
    margin: 0;
    color: var(--gm-nav-muted);
    font-size: .7rem;
    line-height: 1;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.gm-network-status strong {
    color: #c7d9e4;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.gm-network-status strong::after {
    margin-left: .55rem;
    color: #385064;
    content: "//";
}

.gm-network-status__pulse {
    position: relative;
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: var(--gm-nav-green);
    box-shadow: 0 0 9px rgba(157, 234, 102, .65);
}

.gm-network-status__pulse::after {
    position: absolute;
    inset: -.2rem;
    border: 1px solid rgba(157, 234, 102, .35);
    border-radius: inherit;
    content: "";
}

.gm-network-status a {
    color: #d8edf5;
    font-weight: 850;
    text-decoration: none;
}

.gm-network-status a:hover,
.gm-network-status a:focus-visible {
    color: var(--gm-nav-cyan);
}

.gm-signalbar__links {
    display: flex;
    height: 100%;
    align-items: center;
}

.gm-signalbar__links a {
    display: inline-flex;
    height: 100%;
    gap: .38rem;
    align-items: center;
    padding: 0 .7rem;
    border-left: 1px solid rgba(137, 184, 214, .08);
    color: #8198a9;
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .025em;
    text-decoration: none;
    transition: color .16s ease, background .16s ease;
}

.gm-signalbar__links a i {
    color: #5c778b;
    font-size: .68rem;
}

.gm-signalbar__links a:hover,
.gm-signalbar__links a:focus-visible,
.gm-signalbar__links a.active {
    color: #e8f8fd;
    background: rgba(88, 221, 245, .055);
}

.gm-signalbar__links a:is(:hover, :focus-visible, .active) i {
    color: var(--gm-nav-cyan);
}

.gm-signalbar__links .gm-signalbar__submit {
    border-right: 1px solid rgba(137, 184, 214, .08);
    color: #b8d2df;
    background: rgba(88, 221, 245, .035);
}

.gm-header__main {
    position: relative;
}

#header .gm-navbar {
    min-height: 72px;
    padding: .58rem 0;
}

.gm-brand {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin-right: clamp(1rem, 2.2vw, 2rem);
    color: #fff !important;
    text-decoration: none;
}

.gm-brand__lockup {
    display: flex;
    gap: .68rem;
    align-items: center;
}

.gm-brand__emblem {
    position: relative;
    display: grid;
    width: 47px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(88, 221, 245, .28);
    clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
    background:
        linear-gradient(145deg, rgba(88, 221, 245, .13), transparent 52%),
        rgba(12, 29, 43, .92);
    box-shadow: inset 0 0 22px rgba(24, 185, 219, .06);
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.gm-brand__emblem::after {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    content: "";
    background: var(--gm-nav-green);
    box-shadow: 0 0 7px rgba(157, 234, 102, .75);
}

.gm-brand__emblem img {
    display: block;
    width: 39px;
    height: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35));
}

.gm-brand:hover .gm-brand__emblem,
.gm-brand:focus-visible .gm-brand__emblem {
    border-color: rgba(88, 221, 245, .58);
    background: rgba(17, 42, 59, .95);
    transform: translateY(-1px);
}

.gm-brand__copy {
    display: grid;
    min-width: 0;
}

.gm-brand__name {
    color: #f7fbfd;
    font-size: 1.35rem;
    font-weight: 950;
    line-height: .95;
    letter-spacing: -.065em;
    white-space: nowrap;
}

.gm-brand__name span {
    color: var(--gm-nav-cyan);
}

.gm-brand__tagline {
    display: block;
    margin-top: .35rem;
    color: #7891a3;
    font-size: .56rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .11em;
    text-transform: uppercase;
    white-space: nowrap;
}

#header .navbar-collapse {
    min-width: 0;
}

#header .gm-primary-nav {
    gap: .14rem;
    align-items: center;
    padding: .22rem;
    border: 1px solid rgba(137, 184, 214, .11);
    border-radius: .8rem;
    background: rgba(4, 12, 21, .52);
    box-shadow: inset 0 1px rgba(255, 255, 255, .015);
}

#header .gm-navbar .nav-link {
    position: relative;
    display: inline-flex;
    min-height: 42px;
    gap: .46rem;
    align-items: center;
    justify-content: center;
    padding: .58rem .72rem !important;
    border: 1px solid transparent;
    border-radius: .58rem;
    color: var(--gm-nav-copy) !important;
    background: transparent;
    font-size: .875rem;
    font-weight: 760;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color .17s ease, border-color .17s ease, background .17s ease, transform .17s ease;
}

#header .gm-primary-nav .nav-link {
    min-height: 40px;
    font-size: .8rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

#header .gm-navbar .nav-link::after {
    display: none;
}

#header .gm-navbar .nav-link > i {
    color: #66859a;
    font-size: .82rem;
    transition: color .17s ease, transform .17s ease;
}

#header .gm-navbar .nav-link:hover,
#header .gm-navbar .nav-link:focus-visible {
    border-color: rgba(137, 184, 214, .14);
    color: #fff !important;
    background: rgba(112, 171, 202, .075);
    transform: translateY(-1px);
}

#header .gm-navbar .nav-link:is(:hover, :focus-visible) > i {
    color: var(--gm-nav-cyan);
}

#header .gm-navbar .nav-link.active {
    border-color: rgba(88, 221, 245, .23);
    color: #f7fdff !important;
    background:
        linear-gradient(135deg, rgba(24, 185, 219, .16), rgba(98, 136, 255, .08)),
        rgba(11, 29, 43, .88);
    box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 5px 18px rgba(0, 4, 10, .18);
}

#header .gm-navbar .nav-link.active > i {
    color: var(--gm-nav-cyan);
    filter: drop-shadow(0 0 5px rgba(88, 221, 245, .45));
}

#header .gm-navbar .nav-link.active::before {
    position: absolute;
    right: .8rem;
    bottom: -.29rem;
    left: .8rem;
    width: auto;
    height: 2px;
    content: "";
    border-radius: 99px;
    background: var(--gm-nav-cyan);
    box-shadow: 0 0 9px rgba(88, 221, 245, .8);
}

#header .gm-utility-nav {
    gap: .2rem;
    align-items: center;
    margin-left: .65rem;
    padding-left: .65rem;
    border-left: 1px solid rgba(137, 184, 214, .12);
}

#header .gm-search-toggle {
    min-width: 126px;
    justify-content: flex-start;
    border-color: rgba(137, 184, 214, .14);
    background: rgba(8, 22, 34, .68);
}

#header .gm-search-toggle[aria-expanded="true"] {
    border-color: rgba(88, 221, 245, .38);
    color: #fff !important;
    background: rgba(24, 185, 219, .12);
}

#header .gm-nav-login {
    color: #c4d4de !important;
}

#header .gm-navbar .gm-nav-register {
    margin-left: .05rem;
    padding-right: .85rem !important;
    padding-left: .85rem !important;
    border-color: #8cecff;
    color: #04151d !important;
    background: linear-gradient(135deg, #83edff, #32c6e4 72%);
    box-shadow: inset 0 1px rgba(255, 255, 255, .55), 0 8px 22px rgba(24, 185, 219, .17);
    font-weight: 900;
    text-shadow: none;
}

#header .gm-navbar .gm-nav-register > i {
    color: #06313b !important;
}

#header .gm-navbar .gm-nav-register:hover,
#header .gm-navbar .gm-nav-register:focus-visible {
    border-color: #c5f7ff;
    color: #031319 !important;
    background: linear-gradient(135deg, #aaf4ff, #54d8ef);
    box-shadow: inset 0 1px rgba(255, 255, 255, .62), 0 10px 26px rgba(24, 185, 219, .25);
    transform: translateY(-1px);
}

#header .gm-theme-toggle {
    display: grid !important;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0 !important;
    place-items: center;
    border-color: rgba(137, 184, 214, .14) !important;
    background: rgba(8, 22, 34, .66);
}

#header .gm-theme-toggle:hover,
#header .gm-theme-toggle:focus-visible {
    border-color: rgba(88, 221, 245, .32) !important;
}

#header .gm-message-link {
    gap: .4rem;
}

#header .gm-message-link__badge {
    display: inline-grid;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 .28rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    color: #041820;
    background: var(--gm-nav-cyan);
    box-shadow: 0 0 0 3px rgba(88, 221, 245, .08);
    font-size: .62rem;
    font-weight: 950;
}

#header .gm-user-link {
    min-height: 42px !important;
    justify-content: flex-start !important;
    padding-top: .28rem !important;
    padding-bottom: .28rem !important;
}

#header .gm-user-link .gm-avatar {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(88, 221, 245, .42);
}

#header .gm-user-link__copy,
#header .gm-user-link__copy strong,
#header .gm-user-link__copy small {
    display: block;
}

#header .gm-user-link__copy strong {
    overflow: hidden;
    max-width: 104px;
    color: #f6fbfe;
    font-size: .78rem;
    line-height: 1.05;
    text-overflow: ellipsis;
}

#header .gm-user-link__copy small {
    margin-top: .16rem;
    color: #63d8ee;
    font-size: .56rem;
    font-weight: 850;
}

.gm-mobile-tools {
    display: flex;
    gap: .44rem;
    align-items: center;
    margin-left: auto;
}

.gm-mobile-search,
#header .gm-navbar .navbar-toggler {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(137, 184, 214, .18);
    border-radius: .62rem;
    outline: 0;
    color: #b9cbd6;
    background: rgba(11, 29, 43, .76);
    box-shadow: inset 0 1px rgba(255, 255, 255, .02);
}

.gm-mobile-search[aria-expanded="true"],
#header .gm-navbar .navbar-toggler[aria-expanded="true"] {
    border-color: rgba(88, 221, 245, .44);
    color: #fff;
    background: rgba(24, 185, 219, .13);
}

.gm-menu-icon {
    position: relative;
    display: grid;
    width: 1.08rem;
    height: .82rem;
    align-content: space-between;
}

.gm-menu-icon i {
    display: block;
    width: 100%;
    height: 1.5px;
    border-radius: 99px;
    background: currentColor;
    transform-origin: center;
    transition: transform .2s ease, opacity .15s ease;
}

.navbar-toggler[aria-expanded="true"] .gm-menu-icon i:first-child {
    transform: translateY(.335rem) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .gm-menu-icon i:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .gm-menu-icon i:last-child {
    transform: translateY(-.335rem) rotate(-45deg);
}

.gm-nav-section-label,
.gm-mobile-destinations {
    display: none;
}

/* Account menu */
#header .gm-dropdown {
    overflow: hidden;
    min-width: 16rem;
    margin-top: .58rem !important;
    padding: .5rem;
    border: 1px solid rgba(137, 184, 214, .18);
    border-radius: .85rem;
    color: #dceaf3;
    background:
        linear-gradient(145deg, rgba(24, 185, 219, .07), transparent 42%),
        rgba(7, 19, 31, .99);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    backdrop-filter: blur(20px);
}

#header .gm-dropdown .dropdown-item {
    display: flex;
    min-height: 44px;
    gap: .65rem;
    align-items: center;
    padding: .62rem .68rem;
    border-radius: .58rem;
    color: #cbdbe6;
    background: transparent;
    font-size: .82rem;
    font-weight: 740;
}

#header .gm-dropdown .dropdown-item > i {
    color: var(--gm-nav-cyan);
}

#header .gm-dropdown .dropdown-item:hover,
#header .gm-dropdown .dropdown-item:focus,
#header .gm-dropdown .dropdown-item.active {
    color: #fff;
    background: rgba(88, 221, 245, .08);
}

#header .gm-user-link + .gm-dropdown {
    width: min(290px, calc(100vw - 2rem));
}

#header .gm-account-home {
    display: grid;
    grid-template-columns: 2.45rem minmax(0, 1fr) auto;
    gap: .68rem;
    align-items: center;
    padding: .58rem;
    border-radius: .68rem;
    color: #dceaf3;
    text-decoration: none;
}

#header .gm-account-home:hover,
#header .gm-account-home:focus {
    color: #fff;
    background: rgba(88, 221, 245, .08);
}

#header .gm-account-home img {
    width: 2.45rem;
    height: 2.45rem;
    border: 2px solid rgba(88, 221, 245, .4);
    border-radius: .62rem;
    object-fit: cover;
}

#header .gm-account-home span,
#header .gm-account-home strong,
#header .gm-account-home small {
    display: block;
    min-width: 0;
}

#header .gm-account-home strong {
    overflow: hidden;
    color: #f2f9fd;
    font-size: .82rem;
    text-overflow: ellipsis;
}

#header .gm-account-home small {
    margin-top: .14rem;
    color: #7891a4;
    font-size: .68rem;
}

#header .dropdown-divider {
    border-color: rgba(137, 184, 214, .12);
}

/* Search command panel */
#header .gm-search-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    border-top: 1px solid rgba(137, 184, 214, .1);
    border-bottom: 1px solid rgba(88, 221, 245, .22);
    color: #dceaf3;
    background:
        radial-gradient(circle at 10% -40%, rgba(24, 185, 219, .16), transparent 23rem),
        radial-gradient(circle at 88% 130%, rgba(98, 136, 255, .15), transparent 22rem),
        rgba(5, 14, 24, .99);
    box-shadow: 0 28px 65px rgba(0, 0, 0, .5);
    backdrop-filter: blur(24px);
}

.gm-search-panel__inner {
    padding-top: 1.1rem;
    padding-bottom: 1.15rem;
}

.gm-search-panel__heading {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
}

.gm-search-panel__heading > span {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 1px solid rgba(88, 221, 245, .22);
    border-radius: .6rem;
    color: var(--gm-nav-cyan);
    background: rgba(24, 185, 219, .08);
}

.gm-search-panel__heading small,
.gm-search-panel__heading strong {
    display: block;
}

.gm-search-panel__heading small {
    margin-bottom: .12rem;
    color: #68ddef;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.gm-search-panel__heading strong {
    color: #f3faff;
    font-size: .9rem;
}

.gm-search-panel__heading > button {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(137, 184, 214, .15);
    border-radius: .55rem;
    color: #8298a9;
    background: rgba(116, 160, 187, .04);
}

.gm-search-panel__heading > button:hover,
.gm-search-panel__heading > button:focus-visible {
    border-color: rgba(88, 221, 245, .3);
    color: #fff;
}

#header .gm-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .68rem;
    padding: .85rem 0 .75rem;
}

#header .gm-search-field {
    position: relative;
}

#header .gm-search-field > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    color: #6d8ba0;
    transform: translateY(-50%);
}

#header .gm-search-form input {
    width: 100%;
    height: 52px;
    padding: 0 7.5rem 0 2.9rem;
    border: 1px solid rgba(137, 184, 214, .2);
    border-radius: .72rem;
    outline: 0;
    color: #fff;
    caret-color: var(--gm-nav-cyan);
    background: rgba(2, 9, 16, .72);
    box-shadow: inset 0 1px rgba(255, 255, 255, .025);
    font-size: 1rem;
}

#header .gm-search-form input::placeholder {
    color: #688094;
}

#header .gm-search-form input:focus {
    border-color: rgba(88, 221, 245, .55);
    background: rgba(4, 15, 25, .94);
    box-shadow: 0 0 0 3px rgba(88, 221, 245, .07), inset 0 1px rgba(255, 255, 255, .03);
}

.gm-search-field__hint {
    position: absolute;
    top: 50%;
    right: .82rem;
    padding: .3rem .45rem;
    border: 1px solid rgba(137, 184, 214, .15);
    border-radius: .38rem;
    color: #637c90;
    background: rgba(92, 135, 163, .045);
    font-size: .65rem;
    font-weight: 800;
    transform: translateY(-50%);
}

#header .gm-search-form > button {
    display: inline-flex;
    min-width: 7.8rem;
    gap: .55rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #88ecff;
    border-radius: .72rem;
    color: #03151d;
    background: linear-gradient(135deg, #77e9fb, #2bc0de);
    box-shadow: 0 8px 24px rgba(24, 185, 219, .17);
    font-size: .875rem;
    font-weight: 950;
}

#header .gm-search-form > button:hover,
#header .gm-search-form > button:focus-visible {
    background: linear-gradient(135deg, #a1f2ff, #4bd1e8);
    transform: translateY(-1px);
}

.gm-search-shortcuts {
    display: flex;
    gap: .45rem;
    align-items: center;
}

.gm-search-shortcuts > span {
    margin-right: .1rem;
    color: #657e91;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.gm-search-shortcuts a {
    display: inline-flex;
    min-height: 34px;
    gap: .35rem;
    align-items: center;
    padding: .4rem .58rem;
    border: 1px solid rgba(137, 184, 214, .12);
    border-radius: .45rem;
    color: #91a7b7;
    background: rgba(109, 157, 188, .035);
    font-size: .75rem;
    font-weight: 750;
    text-decoration: none;
}

.gm-search-shortcuts a i {
    color: var(--gm-nav-cyan-strong);
}

.gm-search-shortcuts a:hover,
.gm-search-shortcuts a:focus {
    border-color: rgba(88, 221, 245, .26);
    color: #fff;
    background: rgba(88, 221, 245, .07);
}

.gm-header__scanline {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    overflow: hidden;
    background: linear-gradient(90deg, transparent, rgba(88, 221, 245, .3) 20%, rgba(98, 136, 255, .28) 50%, rgba(157, 234, 102, .2) 80%, transparent);
    pointer-events: none;
}

.gm-header__scanline::after {
    position: absolute;
    inset: 0 auto 0 -14%;
    width: 12%;
    content: "";
    background: #c5f8ff;
    box-shadow: 0 0 14px 2px rgba(88, 221, 245, .82);
    animation: gm-nav-scan 9s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes gm-nav-scan {
    0%, 74% { opacity: 0; transform: translateX(0); }
    77% { opacity: 1; }
    96% { opacity: 1; transform: translateX(960%); }
    100% { opacity: 0; transform: translateX(960%); }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .gm-brand {
        margin-right: .8rem;
    }

    .gm-brand__emblem {
        width: 43px;
        height: 41px;
    }

    .gm-brand__emblem img {
        width: 36px;
    }

    .gm-brand__tagline,
    #header .gm-search-toggle span,
    #header .gm-message-link__label,
    #header .gm-user-link__copy small {
        display: none;
    }

    #header .gm-primary-nav .nav-link {
        padding-right: .58rem !important;
        padding-left: .58rem !important;
        font-size: .75rem;
    }

    #header .gm-search-toggle {
        min-width: 42px;
        width: 42px;
        padding: 0 !important;
    }

    #header .gm-utility-nav {
        margin-left: .4rem;
        padding-left: .4rem;
    }
}

@media (max-width: 1199.98px) {
    #mainNav::before {
        display: none;
        content: none;
    }

    #header .gm-navbar {
        min-height: 66px;
        padding: .48rem 0;
    }

    .gm-brand {
        margin-right: 0;
    }

    .gm-brand__emblem {
        width: 43px;
        height: 41px;
    }

    .gm-brand__emblem img {
        width: 36px;
    }

    .gm-brand__name {
        font-size: 1.24rem;
    }

    #mainNav {
        position: absolute;
        top: calc(100% + .48rem);
        right: .75rem;
        left: .75rem;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: min(78vh, 680px);
        margin: 0;
        padding: .8rem;
        border: 1px solid rgba(137, 184, 214, .2);
        border-radius: .9rem;
        background:
            radial-gradient(circle at 8% 0, rgba(24, 185, 219, .12), transparent 17rem),
            radial-gradient(circle at 100% 100%, rgba(98, 136, 255, .11), transparent 20rem),
            rgba(5, 15, 25, .992);
        box-shadow: 0 28px 65px rgba(0, 0, 0, .55);
        backdrop-filter: blur(24px);
    }

    .gm-nav-section-label {
        display: block;
        margin: .1rem .35rem .55rem;
        color: #7892a4;
        font-size: .66rem;
        font-weight: 900;
        letter-spacing: .15em;
        text-transform: uppercase;
    }

    .gm-nav-section-label::before {
        margin-right: .42rem;
        color: var(--gm-nav-cyan);
        content: "//";
    }

    .gm-nav-section-label--account {
        margin-top: .8rem;
        padding-top: .75rem;
        border-top: 1px solid rgba(137, 184, 214, .11);
    }

    #header .gm-primary-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .24rem;
        padding: .28rem;
        border-radius: .75rem;
    }

    #header .gm-navbar .nav-link,
    #header .gm-primary-nav .nav-link {
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
        padding: .7rem .75rem !important;
        border-radius: .58rem;
        font-size: .875rem;
        letter-spacing: 0;
        text-transform: none;
    }

    #header .gm-navbar .nav-link.active::before {
        top: .72rem;
        right: auto;
        bottom: .72rem;
        left: -.29rem;
        width: 2px;
        height: auto;
    }

    .gm-mobile-destinations {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .28rem;
        margin-top: .6rem;
    }

    .gm-mobile-destinations a {
        display: grid;
        grid-template-columns: 2rem minmax(0, 1fr);
        gap: .6rem;
        align-items: center;
        min-height: 58px;
        padding: .55rem .62rem;
        border: 1px solid rgba(137, 184, 214, .12);
        border-radius: .65rem;
        color: #d2e0e9;
        background: rgba(9, 24, 37, .68);
        text-decoration: none;
    }

    .gm-mobile-destinations a > i {
        display: grid;
        width: 2rem;
        height: 2rem;
        place-items: center;
        border-radius: .5rem;
        color: var(--gm-nav-cyan);
        background: rgba(88, 221, 245, .08);
    }

    .gm-mobile-destinations a span,
    .gm-mobile-destinations a strong,
    .gm-mobile-destinations a small {
        display: block;
        min-width: 0;
    }

    .gm-mobile-destinations a strong {
        color: #edf7fb;
        font-size: .82rem;
    }

    .gm-mobile-destinations a small {
        overflow: hidden;
        margin-top: .16rem;
        color: #70899b;
        font-size: .62rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gm-mobile-destinations a:hover,
    .gm-mobile-destinations a:focus-visible,
    .gm-mobile-destinations a.active {
        border-color: rgba(88, 221, 245, .28);
        background: rgba(24, 185, 219, .09);
    }

    .gm-mobile-destinations .gm-mobile-destinations__submit {
        border-color: rgba(157, 234, 102, .2);
    }

    .gm-mobile-destinations .gm-mobile-destinations__submit > i {
        color: var(--gm-nav-green);
        background: rgba(157, 234, 102, .08);
    }

    #header .gm-utility-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .24rem;
        margin: 0;
        padding: 0;
        border: 0;
    }

    #header .gm-utility-nav > .nav-item.dropdown,
    #header .gm-utility-nav > .nav-item:has(.gm-user-link) {
        grid-column: 1 / -1;
    }

    #header .gm-theme-toggle {
        display: flex !important;
        width: 100%;
        height: 46px;
        gap: .46rem;
        justify-content: flex-start;
        padding: .7rem .75rem !important;
    }

    #header .gm-theme-toggle::after {
        display: inline;
        content: "Color theme";
        font-size: .875rem;
        font-weight: 760;
    }

    #header .gm-nav-register {
        margin: 0;
    }

    #header .gm-user-link + .gm-dropdown {
        position: static !important;
        width: 100%;
        margin: .16rem 0 .3rem !important;
        border-color: rgba(137, 184, 214, .12);
        background: rgba(10, 25, 39, .98);
        box-shadow: none;
        transform: none !important;
    }

    #header .gm-search-panel {
        max-height: calc(100svh - 95px);
        overflow-y: auto;
    }

    .admin-commandbar {
        top: 95px;
    }
}

@media (max-width: 767.98px) {
    #header.gm-header::before,
    #header.gm-header::after {
        inset: 0;
    }

    #header .gm-navbar {
        min-height: 64px;
    }

    .admin-commandbar {
        top: 64px;
    }
}

@media (max-width: 575.98px) {
    #header > .container,
    #header .gm-search-panel > .container {
        padding-right: .75rem;
        padding-left: .75rem;
    }

    .gm-brand__lockup {
        gap: .55rem;
    }

    .gm-brand__emblem {
        width: 40px;
        height: 38px;
    }

    .gm-brand__emblem img {
        width: 34px;
    }

    .gm-brand__name {
        font-size: 1.16rem;
    }

    .gm-brand__tagline {
        display: none;
    }

    .gm-mobile-tools {
        gap: .34rem;
    }

    .gm-mobile-search,
    #header .gm-navbar .navbar-toggler {
        width: 40px;
        height: 40px;
    }

    #mainNav {
        top: calc(100% + .38rem);
        right: 0;
        left: 0;
        max-height: calc(100svh - 68px);
        padding: .72rem;
        border-right: 0;
        border-left: 0;
        border-radius: 0 0 .9rem .9rem;
    }

    #header .gm-primary-nav,
    .gm-mobile-destinations,
    #header .gm-utility-nav {
        grid-template-columns: 1fr;
    }

    .gm-mobile-destinations a {
        min-height: 54px;
    }

    #header .gm-utility-nav > .nav-item {
        grid-column: 1;
    }

    .gm-search-panel__inner {
        padding-top: .9rem;
        padding-bottom: .95rem;
    }

    .gm-search-panel__heading {
        grid-template-columns: 2.1rem minmax(0, 1fr) auto;
        gap: .58rem;
    }

    .gm-search-panel__heading > span {
        width: 2.1rem;
        height: 2.1rem;
    }

    #header .gm-search-form {
        grid-template-columns: minmax(0, 1fr) 50px;
    }

    #header .gm-search-form input {
        height: 50px;
        padding-right: .85rem;
        font-size: .9rem;
    }

    .gm-search-field__hint,
    #header .gm-search-form > button span {
        display: none;
    }

    #header .gm-search-form > button {
        min-width: 50px;
        padding: 0;
    }

    .gm-search-shortcuts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gm-search-shortcuts > span {
        grid-column: 1 / -1;
        margin: 0;
    }

    .gm-search-shortcuts a {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gm-header__scanline::after {
        animation: none !important;
    }

    #header .gm-navbar .nav-link,
    .gm-brand__emblem {
        transition: none;
    }
}

/* The public footer closes the same command-deck frame as the header. */
body:not(.gm-admin-area):not(.arcade-body) #footer.gm-footer {
    border-top:1px solid rgba(88,221,245,.2);
    background:
        radial-gradient(circle at 84% 4%,rgba(88,221,245,.13),transparent 24rem),
        radial-gradient(circle at 8% 100%,rgba(98,136,255,.08),transparent 24rem),
        linear-gradient(150deg,#050b13,#08131f 58%,#0a1a27);
    box-shadow:inset 0 1px rgba(255,255,255,.025);
}

body:not(.gm-admin-area):not(.arcade-body) #footer.gm-footer::before {
    opacity:.2;
    background-size:42px 42px;
}

body:not(.gm-admin-area):not(.arcade-body) .gm-footer__title {
    color:#dff6fb;
    letter-spacing:.13em;
}

body:not(.gm-admin-area):not(.arcade-body) .gm-footer__links a::before,
body:not(.gm-admin-area):not(.arcade-body) .gm-footer__brand-name span {
    color:var(--gm-nav-cyan);
}

body:not(.gm-admin-area):not(.arcade-body) .gm-footer__links a:hover {
    color:var(--gm-nav-cyan);
}

body:not(.gm-admin-area):not(.arcade-body) .gm-footer__form {
    border-color:rgba(88,221,245,.22);
    background:rgba(13,32,47,.76);
    box-shadow:inset 0 1px rgba(255,255,255,.035),0 12px 28px rgba(0,4,9,.2);
}

body:not(.gm-admin-area):not(.arcade-body) .gm-footer__form:focus-within {
    border-color:var(--gm-nav-cyan);
    box-shadow:0 0 0 3px rgba(88,221,245,.12),0 12px 28px rgba(0,4,9,.2);
}

body:not(.gm-admin-area):not(.arcade-body) .gm-footer__form button {
    color:#041720;
    background:linear-gradient(135deg,var(--gm-nav-cyan),#9be9f8);
    box-shadow:0 8px 20px rgba(24,185,219,.18);
}

body:not(.gm-admin-area):not(.arcade-body) .gm-footer__social a:hover {
    color:#041720;
    border-color:var(--gm-nav-cyan);
    background:var(--gm-nav-cyan);
    box-shadow:0 10px 22px rgba(24,185,219,.24);
}
