/**
 * Mobil / tablet ön yüz header (≤1079px, masaüstü header’dan önce): inline stillerden sonra yüklenir.
 */
@media (max-width: 1079.98px) {
    html body.site-empty-body .front-mobile-header .fmh-platform-strip {
        position: relative;
        margin: 0 0 0.2rem;
        padding: 0.55rem;
        border-radius: 0.9rem;
        overflow: hidden;
        isolation: isolate;
    }
    html body.site-empty-body .front-mobile-header .fmh-submenu .fmh-platform-strip .fmh-package-cards.fmh-package-cards--platform-grid {
        --fmh-pg-gap: 0.45rem;
        position: relative;
        z-index: 1;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: stretch;
        align-content: flex-start;
        gap: var(--fmh-pg-gap);
        width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }
    html body.site-empty-body .front-mobile-header .fmh-submenu .fmh-platform-strip .fmh-package-cards--platform-grid > a.fmh-package-item:not(.fmh-package-item--epin-cover) {
        flex: 0 0 calc((100% - 2 * var(--fmh-pg-gap)) / 3) !important;
        width: calc((100% - 2 * var(--fmh-pg-gap)) / 3) !important;
        max-width: calc((100% - 2 * var(--fmh-pg-gap)) / 3) !important;
        box-sizing: border-box;
        min-width: 0 !important;
    }

    /* Oyunlar: 2 sütun grid + header dropdown alt bar (fmh-mobile 3 sütun flex’i ezmesin) */
    html body.site-empty-body .front-mobile-header .fmh-submenu .fmh-platform-strip .fdh-mega-grid--games,
    html body.site-empty-body .front-mobile-header .fmh-submenu .fmh-platform-strip .fdh-mega-grid--games.fmh-package-cards--platform-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        flex-direction: unset !important;
        flex-wrap: unset !important;
        gap: var(--fmh-pg-gap) !important;
        width: 100% !important;
    }

    html body.site-empty-body .front-mobile-header .fmh-submenu .fmh-platform-strip .fdh-mega-grid--games > a.fmh-package-item--epin-cover {
        flex: unset !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        aspect-ratio: 4 / 5.2 !important;
        min-height: 7.25rem !important;
        overflow: hidden !important;
    }

    /* Lisans: 2 sütun grid (tek ürün olsa bile yarım genişlik) */
    html body.site-empty-body .front-mobile-header .fmh-submenu .fmh-platform-strip .fdh-mega-grid--licenses,
    html body.site-empty-body .front-mobile-header .fmh-submenu .fmh-platform-strip .fdh-mega-grid--licenses.fmh-package-cards--platform-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        flex-direction: unset !important;
        flex-wrap: unset !important;
        gap: var(--fmh-pg-gap) !important;
        width: 100% !important;
    }

    html body.site-empty-body .front-mobile-header .fmh-submenu .fmh-platform-strip .fdh-mega-grid--licenses > .orvix-license-media-card--nav {
        flex: unset !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        aspect-ratio: 4 / 5.2 !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
    }

    html body.site-empty-body .front-mobile-header .fmh-submenu .fmh-platform-strip .fdh-mega-grid--licenses > .orvix-license-media-card--nav:only-child {
        grid-column: 1;
        justify-self: stretch;
    }

    html body.site-empty-body .front-mobile-header .fmh-submenu .fmh-package-item--epin-cover .fdh-mega-game-foot {
        display: flex !important;
    }

    html body.site-empty-body .front-mobile-header .fmh-submenu .fmh-package-item--epin-cover .fdh-mega-game-foot__name {
        color: #fff !important;
        padding-left: 0.14rem;
    }

    html body.site-empty-body .front-mobile-header .fmh-submenu .fmh-platform-strip .fmh-package-cards--platform-grid > a.fmh-package-item:not(.fmh-package-item--epin-cover) {
        justify-content: center !important;
        align-items: center !important;
    }

    /* Mobil menü: path deseni kapalı */
    html body.site-empty-body .front-mobile-header .fmh-submenu {
        --fmh-path-decor-opacity: 0 !important;
        --fmh-path-decor-url: none !important;
    }

    html body.site-empty-body .front-mobile-header .fmh-submenu .fmh-package-item::before {
        background-image: none !important;
        opacity: 0 !important;
    }
    html body.site-empty-body .front-mobile-header .fmh-package-text-stack:not(.fmh-package-text-stack--free-tool):not(.fmh-package-text-stack--platform-svc) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        gap: 0.12rem;
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }
    html body.site-empty-body .front-mobile-header .fmh-package-text-stack--platform-svc {
        flex: 0 1 auto !important;
        flex-grow: 0 !important;
        min-height: 0 !important;
    }
    html body.site-empty-body .front-mobile-header .fmh-package-item--free-tool .fmh-package-text-stack.fmh-package-text-stack--free-tool {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        gap: 0.12rem;
        width: 100%;
        min-width: 0;
        flex: 0 1 auto !important;
        flex-grow: 0 !important;
    }
    html body.site-empty-body .front-mobile-header .fmh-package-text-stack--free-tool .fmh-package-line--platform {
        font-size: 0.6rem;
        font-weight: 900;
        line-height: 1.1;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.95);
        word-break: break-word;
    }
    html body.site-empty-body .front-mobile-header .fmh-package-text-stack--free-tool .fmh-package-line--tool {
        font-size: 0.62rem;
        font-weight: 500;
        line-height: 1.15;
        text-transform: none;
        color: #fff;
        word-break: break-word;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    html body.site-empty-body .front-mobile-header .fmh-package-line--combined {
        text-transform: none;
        letter-spacing: 0;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    /* Kök menü satırı: gölge yok */
    html body.site-empty-body .front-mobile-header .fmh-menu-root-link.fmh-is-active,
    html body.site-empty-body .front-mobile-header .fmh-menu-root-link:focus-visible {
        box-shadow: none !important;
    }

    /* Platform + ücretsiz araç — kare renkli kart (Neo mobil stili, tüm temalar) */
    html body.site-empty-body .front-mobile-header .fmh-submenu .fmh-platform-strip .fmh-package-cards--platform-grid > a.fmh-package-item.fmh-package-item--platform-svc,
    html body.site-empty-body .front-mobile-header .fmh-submenu .fmh-platform-strip .fmh-package-cards--platform-grid > a.fmh-package-item.fmh-package-item--free-tool {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        aspect-ratio: 1 / 1 !important;
        width: calc((100% - 2 * var(--fmh-pg-gap, 0.45rem)) / 3) !important;
        max-width: calc((100% - 2 * var(--fmh-pg-gap, 0.45rem)) / 3) !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0.36rem 0.28rem !important;
        gap: 0.24rem !important;
        border-radius: 0.88rem !important;
        background: var(--fmh-item-color, var(--bs-primary)) !important;
        border: 0 !important;
        text-align: center !important;
        overflow: hidden !important;
        position: relative !important;
    }

    html body.site-empty-body .front-mobile-header .fmh-package-item--platform-svc .fmh-package-icon,
    html body.site-empty-body .front-mobile-header .fmh-package-item--free-tool .fmh-package-icon {
        flex: 0 0 auto !important;
        width: 2rem !important;
        height: 2rem !important;
        min-width: 2rem !important;
        min-height: 2rem !important;
        border-radius: 0.5rem !important;
        background: rgba(255, 255, 255, 0.22) !important;
        color: #fff !important;
    }

    html body.site-empty-body .front-mobile-header .fmh-package-item--platform-svc .fmh-package-icon i,
    html body.site-empty-body .front-mobile-header .fmh-package-item--free-tool .fmh-package-icon i {
        color: #fff !important;
        font-size: 1rem !important;
    }

    html body.site-empty-body .front-mobile-header .fmh-package-text-stack--platform-svc,
    html body.site-empty-body .front-mobile-header .fmh-package-item--free-tool .fmh-package-text-stack.fmh-package-text-stack--free-tool {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.1rem !important;
        width: 100% !important;
        flex: 0 1 auto !important;
        flex-grow: 0 !important;
        min-height: 0 !important;
        text-align: center !important;
    }

    html body.site-empty-body .front-mobile-header .fmh-package-item--platform-svc .fmh-package-line--platform-name,
    html body.site-empty-body .front-mobile-header .fmh-package-item--platform-svc .fmh-package-line--services-suffix,
    html body.site-empty-body .front-mobile-header .fmh-package-text-stack--free-tool .fmh-package-line--platform,
    html body.site-empty-body .front-mobile-header .fmh-package-text-stack--free-tool .fmh-package-line--tool {
        color: #fff !important;
        text-align: center !important;
        width: 100% !important;
        font-size: 0.6rem !important;
        line-height: 1.15 !important;
        word-break: break-word !important;
        white-space: normal !important;
    }

    html body.site-empty-body .front-mobile-header .fmh-package-item--platform-svc .fmh-package-line--platform-name,
    html body.site-empty-body .front-mobile-header .fmh-package-text-stack--free-tool .fmh-package-line--platform {
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
    }

    html body.site-empty-body .front-mobile-header .fmh-package-item--platform-svc .fmh-package-line--services-suffix,
    html body.site-empty-body .front-mobile-header .fmh-package-text-stack--free-tool .fmh-package-line--tool {
        font-weight: 500 !important;
        opacity: 0.88 !important;
    }
}
