/*
 * L2Mythodea Mobile Home v3
 * Mobile-only redesign. Desktop remains unchanged.
 */

.mobile-home-ui {
    display: none;
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    body {
        min-width: 0;
    }

    /* Keep the mobile header clean: logo + menu only. */
    .header {
        z-index: 50;
    }

    .header-nav,
    .header-right,
    #server-status-container {
        display: none !important;
    }

    .header-left {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .header-left .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-left .logo img {
        width: auto;
        max-width: 122px;
        height: auto;
    }

    .hero-box,
    .hero {
        min-height: 100svh;
        height: 100svh !important;
    }

    .hero {
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 74px 16px 58px;
        box-sizing: border-box;
    }

    .hero-bgbefore,
    .hero-bgafter {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .hero-bgbefore img,
    .hero-bgafter img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    /* The original Discord gift is replaced by the centered mobile controls. */
    .hero > .gift,
    .hero-timer {
        display: none !important;
    }

    

    .hero-title img {
        display: block;
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
    }
	
	.hero-title {
    position: absolute !important;
    top: 60% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 4;
    width: min(92vw, 400px) !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    pointer-events: none;
}

    .mobile-home-ui {
        position: absolute;
        inset: 0;
        z-index: 8;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 92px 20px 82px;
        box-sizing: border-box;
        pointer-events: none;
    }

    .mobile-server-status {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 9px;
        width: 100%;
        pointer-events: auto;
    }

    .mobile-server-status .server-status {
        display: block;
        width: min(78vw, 280px);
        min-width: 0;
        margin: 0;
        padding: 8px 14px;
        box-sizing: border-box;
        border-radius: 7px;
        font-size: 13px;
        line-height: 1.2;
        letter-spacing: 1.2px;
        text-align: center;
        background: rgba(0, 0, 0, 0.74);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .mobile-server-status .online {
        color: #eaffea;
        border: 1px solid rgba(120, 255, 142, 0.46);
        box-shadow: 0 0 7px rgba(233, 248, 234, 0.7),
                    0 0 15px rgba(143, 244, 160, 0.55),
                    0 0 27px rgba(46, 125, 50, 0.55);
    }

    .mobile-server-status .offline {
        color: #ffc2c2;
        border: 1px solid rgba(255, 107, 107, 0.45);
        box-shadow: 0 0 7px rgba(255, 220, 220, 0.6),
                    0 0 15px rgba(255, 107, 107, 0.45),
                    0 0 27px rgba(139, 0, 0, 0.5);
    }

    .mobile-home-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 11px;
        width: 100%;
        pointer-events: auto;
    }

    .mobile-home-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: min(76vw, 292px);
        min-height: 46px;
        padding: 10px 18px;
        box-sizing: border-box;
        color: #fff;
        background: linear-gradient(180deg, rgba(24, 24, 24, 0.88), rgba(3, 3, 3, 0.9));
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 4px;
        box-shadow: 0 7px 22px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.08);
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 1.4px;
        text-decoration: none;
        text-transform: uppercase;
        text-shadow: 0 1px 5px #000;
        transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    }

    .mobile-home-btn:active {
        transform: scale(0.98);
    }

    .mobile-home-btn-install {
        border-color: rgba(218, 181, 111, 0.72);
        background: linear-gradient(180deg, rgba(94, 71, 36, 0.92), rgba(28, 20, 9, 0.94));
        box-shadow: 0 0 15px rgba(199, 154, 75, 0.24),
                    0 7px 22px rgba(0, 0, 0, 0.42),
                    inset 0 1px rgba(255, 255, 255, 0.1);
    }

    /* Music bar at the bottom, below the mobile action buttons. */
    #music-player {
        z-index: 45;
        padding: 7px 12px 9px !important;
        background: rgba(0, 0, 0, 0.78) !important;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        box-sizing: border-box;
    }

    #toggle-btn {
        min-width: 150px;
        padding: 8px 17px !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        border-radius: 4px !important;
        background: rgba(20, 20, 20, 0.86) !important;
        font-size: 13px !important;
        letter-spacing: 0.5px;
    }

    .cookie {
        left: 10px;
        right: 10px;
        bottom: 58px;
        max-width: none;
    }
}

@media (max-width: 390px) {
    .hero-title {
        top: 60% !important;
        width: min(92vw, 400px) !important;
    }

    .mobile-home-ui {
        padding-top: 84px;
        padding-bottom: 72px;
    }

    .mobile-home-btn {
        min-height: 43px;
        font-size: 12px;
    }
}

@media (max-height: 700px) and (max-width: 768px) {
    .hero-title {
        top: 60% !important;
        width: min(92vw, 400px) !important;
    }

    .mobile-home-ui {
        padding-top: 72px;
        padding-bottom: 60px;
    }

    .mobile-server-status {
        gap: 6px;
    }

    .mobile-server-status .server-status {
        padding: 6px 12px;
        font-size: 11px;
    }

    .mobile-home-actions {
        gap: 7px;
    }

    .mobile-home-btn {
        min-height: 38px;
        padding: 8px 14px;
        font-size: 11px;
    }
}
@media (max-width:768px){

.contacts .socials{
    display:flex !important;
    flex-direction:column;
    align-items:center !important;
    justify-content:center !important;
    gap:25px;
    width:100%;
    margin:0 auto;
    text-align:center;
}

.contacts .socials a{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

}
