/* Reservation action in the homepage menu: balanced padding and warm bronze. */
body #mobileMenu .mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 280px !important;
    min-height: 52px !important;
    padding: 14px 20px !important;
    border: 1px solid #a88b62 !important;
    border-radius: 6px;
    background: linear-gradient(160deg, #604936 0%, #493628 100%) !important;
    color: #fffaf2 !important;
    font-family: var(--font-sans);
    font-size: 0.75rem !important;
    font-weight: 500;
    line-height: 1.5 !important;
    letter-spacing: 0.1em !important;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    text-wrap: balance;
    box-shadow: inset 0 1px 0 rgb(255 250 242 / 12%), 0 4px 12px rgb(0 0 0 / 18%);
    transition: background-color 180ms ease, border-color 180ms ease !important;
}

/* Menu-link decorations must not shift or underline this button. */
body #mobileMenu .mobile-menu-cta::before,
body #mobileMenu .mobile-menu-cta::after {
    content: none;
}

@media (hover: hover) {
    body #mobileMenu .mobile-menu-cta:hover {
        background: linear-gradient(160deg, #6a523c 0%, #513d2d 100%) !important;
        border-color: #c8aa7c !important;
        color: #fffaf2 !important;
    }
}

body #mobileMenu .mobile-menu-cta:focus-visible {
    outline: 2px solid #dfc8a3;
    outline-offset: 4px;
}

body #mobileMenu .mobile-menu-cta:active {
    background: #392b22 !important;
}

@media (prefers-reduced-motion: reduce) {
    body #mobileMenu .mobile-menu-cta {
        transition: none !important;
    }
}

/* Fit the homepage menu into the visible phone viewport, including Safari UI. */
@media (max-width: 950px) {
    body #mobileMenu {
        inset: 0 0 auto !important;
        height: 100vh !important;
        height: 100svh !important;
        height: 100dvh !important;
        padding: max(16px, env(safe-area-inset-top, 0px)) clamp(20px, 6vw, 28px) max(16px, env(safe-area-inset-bottom, 0px)) !important;
        gap: 0;
        justify-content: flex-start;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
    }

    body #mobileMenu .mobile-menu-header {
        flex: 0 0 auto;
        min-height: 48px;
        padding: 0 !important;
    }

    body #mobileMenu .mobile-menu-logo {
        max-width: calc(100% - 60px);
        padding: 0 !important;
        line-height: 1;
    }

    body #mobileMenu .site-signature--mobile {
        width: 160px !important;
        height: auto !important;
        max-height: 54px;
        object-fit: contain;
    }

    body #mobileMenu .mobile-menu-divider {
        margin: 14px 0 !important;
    }

    body #mobileMenu .mobile-menu-links {
        flex: 1 0 auto;
        gap: clamp(4px, 1.2vh, 10px) !important;
        justify-content: center;
    }

    body #mobileMenu .mobile-menu-links a {
        min-height: 44px !important;
        padding: 4px 0 !important;
        font-size: clamp(20px, 5.8vw, 24px) !important;
        line-height: 1.2 !important;
        letter-spacing: 0.1em !important;
    }

    body #mobileMenu .mobile-menu-footer {
        flex: 0 0 auto;
        margin-top: 16px !important;
        padding-bottom: 0 !important;
        gap: 12px !important;
    }

    body #mobileMenu .mobile-menu-social {
        flex: 0 0 auto;
        margin: 0 !important;
        gap: 24px !important;
    }

    body #mobileMenu .mobile-menu-social a {
        width: 44px;
        height: 44px;
        min-height: 44px !important;
        padding: 0 !important;
        font-size: 23px !important;
        line-height: 1 !important;
    }

    body #mobileMenu .mobile-menu-tagline {
        margin: 0 !important;
        line-height: 1.4;
    }
}

@media (max-width: 950px) and (max-height: 650px) {
    body #mobileMenu .site-signature--mobile {
        width: 144px !important;
        max-height: 48px;
    }

    body #mobileMenu .mobile-menu-divider {
        margin: 10px 0 !important;
    }

    body #mobileMenu .mobile-menu-links {
        gap: 4px !important;
    }
}

/* Animate the glyphs only: keep all three touch targets stationary. */
@keyframes tournou-social-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.16); }
}

@media (prefers-reduced-motion: no-preference) {
    body #mobileMenu.active .mobile-menu-social a > i {
        display: inline-block;
        transform-origin: center;
        animation: tournou-social-pulse 2.8s ease-in-out infinite;
    }

    body #mobileMenu.active .mobile-menu-social a:nth-child(2) > i {
        animation-delay: 0.2s;
    }

    body #mobileMenu.active .mobile-menu-social a:nth-child(3) > i {
        animation-delay: 0.4s;
    }
}


/* One menu component across the site; retain translated labels. */
body #mobileMenu { box-sizing: border-box; font-family: var(--font-sans, sans-serif); }
body #mobileMenu .mobile-menu-cta { font-family: var(--font-sans, sans-serif) !important; margin-inline: auto !important; }
body #mobileMenu .mobile-menu-footer { align-items: center; }
@media(max-width:950px) {
 html[lang^="en"] body #mobileMenu .mobile-menu-links a,
 html[lang^="es"] body #mobileMenu .mobile-menu-links a { font-size:clamp(17px,5vw,22px)!important;letter-spacing:.07em!important; }
 body #mobileMenu .mobile-menu-tagline { font-size:11px; }
}
