.cw-mobile-nav,
.cw-mobile-menu {
    display: none;
}

@media (max-width: 760px) {
    .navigation {
        display: none !important;
    }

    body {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }

    .cw-mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
        background: #100D17;
        border-top: 1px solid #653052;
        box-shadow: 0 -4px 24px #FF36AE15;
    }

    .cw-mobile-nav a,
    .cw-mobile-nav button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-height: 48px;
        padding: 4px 0;
        border: 0;
        background: transparent;
        color: #A99AAF;
        text-decoration: none;
        font-family: inherit;
        font-size: 10px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .cw-mobile-nav svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .cw-mobile-nav .active {
        color: #FF36AE;
        text-shadow: 0 0 12px #FF36AE70;
    }

    .cw-mobile-menu:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1100;
        background: #000B;
    }

    .cw-menu-panel {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 85dvh;
        overflow-y: auto;
        padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
        background: #100D17;
        border: 1px solid #653052;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 40px #FF36AE20;
    }

    .cw-menu-panel h2 {
        margin: 0 0 20px;
        color: #FF36AE;
        font-family: monospace;
        letter-spacing: 2px;
    }

    .cw-menu-panel a,
    .cw-menu-panel button {
        display: block;
        width: 100%;
        min-height: 48px;
        padding: 14px;
        margin: 8px 0;
        border: 1px solid #502040;
        border-radius: 8px;
        background: #211224;
        color: #E8E1F0;
        font: inherit;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .cw-menu-panel .cw-close {
        color: #FF77C9;
        text-align: center;
    }
}


.cw-legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 18px 12px;
    font-size: 12px;
}

.cw-legal-links a {
    color: #FF77C9;
    text-decoration: none;
}

#cw-menu-legal {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #502040;
}

.cw-open-knowledge {
    max-width: 760px;
    margin: 24px auto 12px;
    padding: 28px 18px;
    text-align: center;
    border-top: 1px solid #502040;
}

.cw-open-knowledge p {
    margin: 10px 0;
    line-height: 1.6;
}

.cw-hacklab-brand {
    display: inline-block;
    color: #FF36AE;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 3px;
    text-decoration: none;
}

.cw-license {
    margin: 22px 0;
}

.cw-license a {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #FF36AE;
    border-radius: 6px;
    color: #FF77C9;
    font-family: monospace;
    font-weight: bold;
    text-decoration: none;
}

.cw-license-note {
    max-width: 580px;
    margin: 12px auto !important;
    color: #A99AAF;
    font-size: 12px;
}

.cw-open-slogan {
    color: #FF77C9;
    font-size: 10px;
    letter-spacing: 2px;
}

