/*
 * GMRGAME player header
 * This is the only stylesheet responsible for the current header markup.
 */

body.wok-3d-shell .main > header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    height: 86px !important;
    min-height: 86px !important;
    max-height: 86px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: linear-gradient(180deg, rgba(17, 17, 15, .985), rgba(7, 7, 6, .985)) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(215, 189, 114, .38) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .62), inset 0 -1px 0 rgba(255, 255, 255, .025) !important;
}

body.wok-3d-shell.route-landing .main > header,
body.wok-3d-shell.route-home .main > header {
    position: fixed !important;
    top: 0 !important;
}

body.wok-3d-shell .main-header-wrapper {
    position: relative;
    display: grid !important;
    grid-template-columns: 176px minmax(0, 1fr) auto !important;
    align-items: center;
    gap: clamp(14px, 2vw, 34px);
    box-sizing: border-box !important;
    width: min(var(--wok-shell-max, 1720px), calc(100% - 36px)) !important;
    max-width: none !important;
    height: 86px !important;
    min-height: 86px !important;
    margin: 0 auto !important;
    padding: 0 12px !important;
    background: transparent !important;
}

body.wok-3d-shell .main-header-left {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

body.wok-3d-shell .wok-main-logo {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 164px;
    height: 72px;
    margin: 0 !important;
    padding: 4px 6px;
    text-decoration: none !important;
}

body.wok-3d-shell .main > header .wok-main-logo img {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: block !important;
    float: none !important;
    width: 154px !important;
    max-width: 154px !important;
    height: 64px !important;
    margin: 0 !important;
    object-fit: contain;
    transform: none !important;
    filter: drop-shadow(0 8px 9px rgba(0, 0, 0, .86)) drop-shadow(0 0 12px rgba(215, 189, 114, .14));
    transition: transform .22s ease, filter .22s ease;
}

body.wok-3d-shell .main > header .wok-main-logo:hover img {
    transform: translateY(-2px) scale(1.025) !important;
    filter: drop-shadow(0 10px 11px rgba(0, 0, 0, .9)) drop-shadow(0 0 16px rgba(215, 189, 114, .24));
}

body.wok-3d-shell .main-header-center {
    position: static;
    display: block !important;
    grid-column: auto !important;
    justify-self: stretch !important;
    width: auto !important;
    min-width: 0;
    height: 86px;
    padding: 0 !important;
}

body.wok-3d-shell .main-nav-menu-wrapper,
body.wok-3d-shell .main-nav-menu {
    width: 100%;
    height: 86px;
    min-height: 86px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.wok-3d-shell .main-nav-menu-wrapper {
    display: block !important;
}

body.wok-3d-shell .main-nav-menu {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: clamp(4px, .55vw, 10px) !important;
    list-style: none;
}

body.wok-3d-shell .main-nav-menu > li,
body.wok-3d-shell .main-nav-menu > li:first-child {
    position: relative;
    display: block;
    float: none !important;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

body.wok-3d-shell .main-nav-menu > li > a,
body.wok-3d-shell .main-nav-menu > li:first-child > a,
body.wok-3d-shell .main-nav-menu > li:not(:first-child) > a {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
    padding: 0 clamp(8px, .75vw, 14px) !important;
    color: #cbc7bc !important;
    font-size: clamp(10px, .72vw, 12px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: .035em;
    white-space: nowrap;
    text-transform: uppercase;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: translateZ(5px) !important;
}

body.wok-3d-shell .main-nav-menu > li > a::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 1px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, var(--wok-gold, #d7bd72), transparent);
    box-shadow: 0 0 10px rgba(215, 189, 114, .42);
    transform: scaleX(.25);
    transition: opacity .2s ease, transform .2s ease;
}

body.wok-3d-shell .main-nav-menu > li:not(.wok-mobile-account-controls):not(:nth-last-child(2))::after {
    content: "◆";
    position: absolute;
    top: 50%;
    right: calc(clamp(4px, .55vw, 10px) * -1);
    color: rgba(215, 189, 114, .45);
    font-size: 6px;
    transform: translate(50%, -50%);
}

body.wok-3d-shell .main-nav-menu > li > a:hover {
    color: var(--wok-gold-bright, #fff0b4) !important;
    transform: translateY(-1px) translateZ(12px) !important;
}

body.wok-3d-shell .main-nav-menu > li > a:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

body.wok-3d-shell .main-header-right {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

body.wok-3d-shell .header-controls {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    white-space: nowrap;
}

body.wok-3d-shell .header-account-action,
body.wok-3d-shell .language-selector {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px !important;
    color: #ddd7c8 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .045em;
    text-decoration: none !important;
    text-transform: uppercase;
    background: linear-gradient(180deg, rgba(46, 39, 27, .74), rgba(10, 9, 7, .9)) !important;
    border: 1px solid rgba(215, 189, 114, .22) !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 7px 15px rgba(0, 0, 0, .3) !important;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

body.wok-3d-shell .header-account-action i,
body.wok-3d-shell .language-selector i {
    color: var(--wok-gold, #d7bd72);
}

body.wok-3d-shell .header-account-action--register {
    color: #fff0bd !important;
    background: linear-gradient(180deg, rgba(123, 83, 31, .86), rgba(51, 30, 10, .96)) !important;
    border-color: rgba(215, 189, 114, .5) !important;
}

body.wok-3d-shell .header-account-action:hover,
body.wok-3d-shell .language-selector:hover {
    color: #fff5d1 !important;
    border-color: rgba(215, 189, 114, .58) !important;
    transform: translateY(-2px);
}

body.wok-3d-shell .main > header .language-selector img {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 18px !important;
    max-width: 18px !important;
    height: 12px !important;
    margin: 0 !important;
    object-fit: cover;
    transform: none !important;
    border: 1px solid rgba(255, 255, 255, .15);
}

body.wok-3d-shell .wok-mobile-account-controls,
body.wok-3d-shell .header-social-icons {
    display: none !important;
}

body.wok-3d-shell .mobile-menu-toggle,
body.wok-3d-shell header .mobile-menu-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 17px !important;
    z-index: 1004 !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    box-sizing: border-box;
    width: 44px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 10px !important;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    pointer-events: none;
    transform: translateY(-50%) !important;
    background: linear-gradient(180deg, #6e4d20, #241507) !important;
    border: 1px solid #a97c3c !important;
    border-radius: 5px !important;
    box-shadow: inset 0 1px 0 rgba(255, 244, 196, .2), 0 5px 13px #000 !important;
}

body.wok-3d-shell .mobile-menu-toggle span {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    margin: 0 !important;
    background: #fff0b4 !important;
    border-radius: 2px;
    box-shadow: 0 1px 2px #000;
    transform-origin: center;
    transition: opacity .2s ease, transform .2s ease;
}

@media (max-width: 1260px) {
    body.wok-3d-shell .main-header-wrapper {
        grid-template-columns: 148px minmax(0, 1fr) auto !important;
        gap: 10px;
    }

    body.wok-3d-shell .wok-main-logo { width: 142px; }

    body.wok-3d-shell .main > header .wok-main-logo img {
        width: 136px !important;
        max-width: 136px !important;
    }

    body.wok-3d-shell .main-nav-menu > li > a {
        padding-inline: 7px !important;
        font-size: 10px !important;
    }

    body.wok-3d-shell .header-account-action {
        width: 38px;
        padding: 0 !important;
    }

    body.wok-3d-shell .header-account-action span { display: none; }
}

@media (max-width: 1100px) {
    body.wok-3d-shell .main > header {
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
    }

    body.wok-3d-shell .main-header-wrapper {
        display: flex !important;
        align-items: center;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: none !important;
        height: 70px !important;
        min-height: 70px !important;
        padding: 0 15px !important;
    }

    body.wok-3d-shell .main-header-left { display: flex !important; }

    body.wok-3d-shell .wok-main-logo {
        width: 132px;
        height: 62px;
        padding: 2px;
    }

    body.wok-3d-shell .main > header .wok-main-logo img {
        width: 126px !important;
        max-width: 126px !important;
        height: 56px !important;
    }

    body.wok-3d-shell .main-header-right { display: none !important; }

    body.wok-3d-shell .main-header-center {
        display: none !important;
        width: auto !important;
        height: auto;
    }

    body.wok-3d-shell .mobile-menu-toggle,
    body.wok-3d-shell header .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body.wok-3d-shell .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    body.wok-3d-shell .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    body.wok-3d-shell .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    body.wok-3d-shell.menu-open { overflow: hidden !important; }

    body.wok-3d-shell.menu-open .main-header-center {
        position: fixed !important;
        inset: 0 !important;
        z-index: 1002 !important;
        display: block !important;
        box-sizing: border-box !important;
        width: auto !important;
        max-width: none !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        padding: 82px 16px 24px !important;
        overflow-x: hidden;
        overflow-y: auto;
        background:
            linear-gradient(180deg, rgba(32, 27, 19, .99), rgba(6, 6, 5, .995)),
            url("/images/wok/wok-guide-city.png") center / cover no-repeat;
        border: 0;
        box-shadow: inset 12px 0 30px rgba(0, 0, 0, .28);
        animation: wokHeaderMenuIn .22s ease-out;
    }

    body.wok-3d-shell.menu-open .main-nav-menu-wrapper,
    body.wok-3d-shell.menu-open .main-nav-menu {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    body.wok-3d-shell.menu-open .main-nav-menu {
        display: flex !important;
        flex-flow: column nowrap !important;
        align-items: stretch;
        justify-content: flex-start !important;
        gap: 9px !important;
    }

    body.wok-3d-shell.menu-open .main-nav-menu > li,
    body.wok-3d-shell.menu-open .main-nav-menu > li:first-child,
    body.wok-3d-shell.menu-open .main-nav-menu > li:nth-last-child(2) {
        display: block !important;
        width: 100%;
        margin: 0 !important;
    }

    body.wok-3d-shell.menu-open .main-nav-menu > li::after { display: none !important; }

    body.wok-3d-shell.menu-open .main-nav-menu > li > a,
    body.wok-3d-shell.menu-open .main-nav-menu > li:first-child > a,
    body.wok-3d-shell.menu-open .main-nav-menu > li:not(:first-child) > a {
        display: flex !important;
        justify-content: flex-start;
        box-sizing: border-box;
        width: 100%;
        min-height: 50px;
        padding: 0 18px !important;
        color: #e7dfcc !important;
        font-size: 12px !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .18)) !important;
        border: 1px solid rgba(215, 189, 114, .16) !important;
        border-radius: 4px !important;
        transform: none !important;
    }

    body.wok-3d-shell.menu-open .wok-mobile-account-controls {
        display: block !important;
        margin-top: 8px !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(215, 189, 114, .2);
    }

    body.wok-3d-shell .wok-mobile-account-controls > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    body.wok-3d-shell .wok-mobile-account-controls a {
        display: flex !important;
        align-items: center;
        justify-content: center !important;
        gap: 7px;
        min-height: 44px !important;
        padding: 0 10px !important;
        color: #eee3c7 !important;
        font-size: 10px !important;
        font-weight: 800;
        text-decoration: none !important;
        background: rgba(93, 64, 25, .24) !important;
        border: 1px solid rgba(215, 189, 114, .22) !important;
        border-radius: 4px !important;
    }

    body.wok-3d-shell .wok-mobile-account-controls a:last-child {
        grid-column: 1 / -1;
    }
}

@keyframes wokHeaderMenuIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    body.wok-3d-shell .main > header *,
    body.wok-3d-shell .main > header *::before,
    body.wok-3d-shell .main > header *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
