.global-head {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    z-index: 2;
}

.global-head-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 3px 16px;
}

.global-head-inner>img {
    margin: 0 8px 0 14px;
    max-height: 20px;
    border: 0;
}

.global-head-inner>.subtitle {
    font-size: 17px;
    line-height: 22px;
    margin-left: 8px;
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -ms-touch-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.global-head-inner>.toggle-drawer {
    color: #337dff;
    text-decoration: underline;
    cursor: pointer;
}

#global-head-toggle::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.4rem;
    line-height: 1;
    vertical-align: text-bottom;
    filter: brightness(0) invert(1);
    background: center / contain no-repeat url("https://evergarden.games/assets/images/expand_more.svg");
}

#global-head-toggle[aria-expanded="true"]::after {
    background-image: url("https://evergarden.games/assets/images/expand_less.svg");
}

.global-head-drawer {
    display: none;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 3rem;
    border-bottom: 4px solid #222426;
}

.global-head-drawer.visible {
    display: flex;
}

.global-head-drawer>img {
    margin: 0 8px 0 16px;
    max-height: 64px;
    border: 0;
}

.drawer-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    gap: 3rem;
}

.drawer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.75rem;
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -ms-touch-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.drawer-item>img {
    width: min(100%, 180px);
    height: 46%;
    max-height: none;
    object-fit: contain;
    flex: 0 0 auto;
}

.drawer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.drawer-content>h1,
.drawer-content>h2,
.drawer-content>h3,
.drawer-content>h4,
.drawer-content>p {
    word-spacing: 0.06em;
    letter-spacing: 0.04em;
    text-align: center;
}

.drawer-content>h1,
.drawer-content>h2,
.drawer-content>h3,
.drawer-content>h4 {
    text-transform: uppercase;
}

.drawer-content>p {
    font-size: 17px;
}

@media only screen and (max-width: 849px) {
    .global-head-drawer {
        display: none;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 0.5rem 0rem;
        border-bottom: 4px solid #222426;
    }

    .drawer-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0 0.5rem;
    }

    .drawer-item {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
    }

    .drawer-item>img {
        width: min(100%, 90px);
        height: 15%;
        max-height: none;
        object-fit: contain;
        flex: 0 0 auto;
    }

    .drawer-content {
        align-items: flex-start;
        text-align: left;
    }

    .drawer-content>h1,
    .drawer-content>h2,
    .drawer-content>h3,
    .drawer-content>h4,
    .drawer-content>p {
        text-align: left;
    }
}