#mobileMenu {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(145deg, #f3efff, #fff9f7);
    color: #302440;
    transform: translateX(100%);
    transition: transform 350ms cubic-bezier(.22, .61, .36, 1);
}

#mobileMenu.is-open { transform: translateX(0); }
#mobileMenu::backdrop { background: transparent; }

#mobileMenu .mobile-menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(24px, env(safe-area-inset-top)) 24px 24px;
    border-bottom: 1px solid #6f43aa20;
}

#mobileMenuTitle {
    display: none !important;
    color: #6f43aa;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

#mobileMenuClose {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #6f43aa20;
    border-radius: 50%;
    background: white;
    color: #6f43aa;
    cursor: pointer;
}

#mobileMenu .mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 2px 24px max(32px, env(safe-area-inset-bottom));
}

#mobileMenu .mobile-menu-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 4px;
    border-bottom: 1px solid #6f43aa20;
    font-size: clamp(18px, 4vw, 38px);
    font-weight: 400;
    color: #302440;
    text-decoration: none;
}

#mobileMenu .mobile-menu-links a span { color: #9473bf; }
#mobileMenu a:hover, #mobileMenu a:focus-visible { color: #6f43aa; }
html.mobile-menu-open, html.mobile-menu-open body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    #mobileMenu { transition: none; }
}
