.amo-menu-trigger,
.amo-mobile-panel,
.amo-mobile-backdrop {
    display: none;
}

@media (max-width: 980px) {
    .site-header .nav {
        gap: 11px;
        min-width: 0;
    }

    .amo-menu-trigger {
        display: flex;
        order: 0;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .13);
        border-radius: 13px;
        background: #17172b;
        cursor: pointer;
    }

    .amo-menu-trigger span {
        display: block;
        width: 19px;
        height: 2px;
        border-radius: 4px;
        background: #fff;
        transition: transform .2s, opacity .2s;
    }

    .site-header .brand {
        order: 1;
        min-width: 0;
    }

    .site-header .brand img {
        width: min(42vw, 174px);
    }

    .site-header .mobile-menu {
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .amo-mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 199;
        background: rgba(0, 0, 0, .72);
        opacity: 0;
        backdrop-filter: blur(4px);
        transition: opacity .25s;
    }

    .amo-mobile-backdrop:not([hidden]) {
        display: block;
    }

    .amo-mobile-backdrop.is-open {
        opacity: 1;
    }

    .amo-mobile-panel {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 200;
        display: flex;
        visibility: hidden;
        width: min(340px, 87vw);
        padding: calc(19px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
        overflow-y: auto;
        flex-direction: column;
        gap: 0;
        border-right: 1px solid rgba(236, 72, 153, .32);
        background: linear-gradient(165deg, #21132e, #0c0e1d 42%);
        box-shadow: 24px 0 75px rgba(0, 0, 0, .6);
        overscroll-behavior: contain;
        transform: translateX(-105%);
        transition: transform .28s ease, visibility .28s;
    }

    .amo-mobile-panel.is-open {
        visibility: visible;
        transform: translateX(0);
    }

    .amo-mobile-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .amo-mobile-logo img {
        width: 190px;
        max-width: 100%;
        height: auto;
    }

    .amo-mobile-top button {
        width: 38px;
        height: 38px;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 12px;
        background: rgba(255, 255, 255, .06);
        color: #fff;
        cursor: pointer;
    }

    .amo-mobile-subtitle {
        margin: 14px 0 19px;
        color: #c4b5d0;
        font-size: 12px;
    }

    .amo-mobile-search {
        display: flex;
        align-items: center;
        min-height: 47px;
        overflow: hidden;
        border: 1px solid #37304e;
        border-radius: 14px;
        background: #16182d;
    }

    .amo-mobile-search input {
        min-width: 0;
        padding: 13px;
        flex: 1;
        border: 0;
        outline: 0;
        background: transparent;
        color: #fff;
        font-size: 14px;
    }

    .amo-mobile-search button {
        padding: 0 14px;
        border: 0;
        background: transparent;
        color: #ed87ca;
        font-size: 29px;
        cursor: pointer;
    }

    .amo-mobile-section {
        margin: 26px 9px 11px;
        color: #ac9ab7;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .17em;
    }

    .amo-mobile-links {
        display: grid;
        gap: 5px;
    }

    .amo-mobile-links a {
        display: flex;
        min-height: 48px;
        align-items: center;
        gap: 14px;
        padding: 12px 14px;
        border-radius: 13px;
        color: #f0eaf5;
        font-size: 14px;
        font-weight: 750;
    }

    .amo-mobile-links a span {
        display: grid;
        width: 26px;
        place-items: center;
        color: #ee85cf;
        font-size: 19px;
    }

    .amo-mobile-links a b {
        margin-left: auto;
        color: #9b8ca7;
        font-size: 19px;
        font-weight: 400;
    }

    .amo-mobile-links a.is-current,
    .amo-mobile-links a:hover {
        background: linear-gradient(100deg, rgba(236, 72, 153, .19), rgba(139, 92, 246, .13));
    }

    .amo-mobile-account {
        padding: 13px 15px;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 14px;
        background: rgba(255, 255, 255, .05);
        font-size: 13px;
    }

    .amo-mobile-account a,
    .amo-mobile-account button {
        color: #f9a8d4;
        font-weight: 800;
        text-decoration: none;
    }

    .amo-mobile-account form {
        margin-top: 10px;
    }

    .amo-mobile-account button {
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .amo-mobile-username {
        overflow-wrap: anywhere;
        font-weight: 700;
    }

    .amo-mobile-foot {
        margin-top: auto;
        padding: 30px 5px 0;
        color: #908598;
        font-size: 11px;
        text-align: center;
    }

    body.amo-menu-locked {
        overflow: hidden;
        touch-action: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .amo-mobile-panel,
    .amo-mobile-backdrop,
    .amo-menu-trigger span {
        transition: none !important;
    }
}
