/* Mobile landing shell for index.php only. Desktop remains in season-winter.css. */

.season-index-mobile-nav {
    display: none;
}

@media (min-width: 1920px) {
    body.season-index:not(.season-news) {
        --season-chrome: 171px;
    }
}

/* Mobile keeps the compact shell; tablet/desktop now share the graphical public chrome. */
@media (max-width: 768px) {
    body.season-index:not(.season-news) {
        background-color: #061529;
        background-image: none;
    }

    body.season-index:not(.season-news) .season-index-header::before,
    body.season-index:not(.season-news) .season-footer::before {
        display: none;
    }

    body.season-index:not(.season-news) .season-index-desktop-nav {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 6px;
        min-height: 0;
        padding: 10px 12px;
    }

    body.season-index:not(.season-news) .season-index-desktop-nav > .season-nav__item,
    body.season-index:not(.season-news) .season-index-desktop-nav > .season-nav__right-group > .season-nav__item,
    body.season-index:not(.season-news) .season-index-desktop-nav .season-nav__online {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-width: 0;
        height: 42px;
        min-height: 42px;
        margin: 0;
        padding: 0 7px;
        box-sizing: border-box;
        border: 1px solid rgba(139, 221, 255, .48);
        border-radius: 7px;
        color: #e7f7ff;
        background-color: #0a3659;
        background-image: none;
        box-shadow: inset 0 1px rgba(223, 247, 255, .18);
        text-shadow: 0 1px 2px #00152d;
        transform: none;
    }

    body.season-index:not(.season-news) .season-index-desktop-nav > .season-nav__right-group {
        position: static;
        display: contents;
        transform: none;
    }

    body.season-index:not(.season-news) .season-index-desktop-nav > .season-nav__item > span,
    body.season-index:not(.season-news) .season-index-desktop-nav > .season-nav__right-group > .season-nav__item > span,
    body.season-index:not(.season-news) .season-index-desktop-nav .season-nav__online-label {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        color: inherit;
        background: none;
        font: 700 11px/1.15 Georgia, 'Times New Roman', serif;
        white-space: normal;
    }

    body.season-index:not(.season-news) .season-index-desktop-nav .season-nav__online-value {
        position: static;
        width: auto;
        margin-left: 4px;
        color: inherit;
        font: 700 11px/1.15 Georgia, 'Times New Roman', serif;
        transform: none;
    }

    body.season-index:not(.season-news) .season-index-desktop-nav > .season-nav__item:hover,
    body.season-index:not(.season-news) .season-index-desktop-nav > .season-nav__right-group > .season-nav__item:hover,
    body.season-index:not(.season-news) .season-index-desktop-nav > .season-nav__item:focus-visible,
    body.season-index:not(.season-news) .season-index-desktop-nav > .season-nav__right-group > .season-nav__item:focus-visible {
        color: #fff;
        background-color: #12608f;
        filter: none;
        transform: none;
    }

    body.season-index:not(.season-news) .season-button {
        min-height: 58px;
        border: 2px solid #b8ebff;
        border-radius: 18px 5px;
        color: #fff !important;
        font: 700 20px/1.1 Georgia, 'Times New Roman', serif;
        line-height: 1.1;
        text-shadow: 0 2px 3px #00152e;
        background-image: none;
        box-shadow: inset 0 0 19px rgba(255, 255, 255, .2), 0 8px 24px rgba(0, 0, 0, .4);
    }

    body.season-index:not(.season-news) .season-button--battle {
        border-color: #ffb070;
        background-color: #68131a;
        background-image: linear-gradient(180deg, #9e291c, #3e0713 82%);
    }

    body.season-index:not(.season-news) .season-button--ice {
        background-color: #0b4d8f;
        background-image: linear-gradient(180deg, #187bc4, #062e69 82%);
    }

    body.season-index:not(.season-news) .season-button__icon {
        display: inline;
    }

    body.season-index:not(.season-news) .season-rating {
        border: 1px solid rgba(139, 221, 255, .38);
        border-radius: 12px;
        background: linear-gradient(180deg, rgba(7, 42, 72, .96), rgba(1, 13, 30, .98));
        box-shadow: 0 8px 22px rgba(0, 5, 20, .44);
    }

    body.season-index:not(.season-news) .season-event-banners--desktop .season-event-banners__item::after {
        background-image: none;
    }

    body.season-index:not(.season-news) .season-footer {
        background: linear-gradient(180deg, #04182d, #010a18);
    }

    body.season-index:not(.season-news) .season-footer__socials a {
        border: 1px solid rgba(139, 221, 255, .44);
        border-radius: 50%;
        color: #dff5ff;
        background-color: #0a3659;
        background-image: none;
        box-shadow: inset 0 1px rgba(223, 247, 255, .2);
        font: 700 10px/1 Arial, sans-serif;
        text-shadow: 0 1px 2px #00152d;
    }

    body.season-index:not(.season-news) .season-popup .season-popup__block {
        border: 1px solid rgba(139, 221, 255, .52) !important;
        border-radius: 12px !important;
        background: linear-gradient(180deg, #082a48, #020d1e) !important;
        box-shadow: 0 12px 34px rgba(0, 3, 15, .72) !important;
    }
}

@media (max-width: 768px) {
    html.season-winter-html,
    html.season-winter-html body.season-index:not(.season-news) {
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body.season-index:not(.season-news) {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        color: #d8edff;
        background: #061529 url('../images/season/winter-background.webp') center top / cover scroll no-repeat;
    }

    body.season-index:not(.season-news) .b-main-wrapper {
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body.season-index:not(.season-news) .b-main {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body.season-index:not(.season-news) .season-index-header {
        position: relative;
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 0;
        overflow: visible;
        border-top: 0;
        border-bottom: 1px solid rgba(107, 198, 239, .42);
        background: linear-gradient(180deg, #071d34, #031020);
        box-shadow: 0 5px 15px rgba(0, 5, 20, .42);
    }

    body.season-index:not(.season-news) .season-index-header::before {
        display: none;
    }

    .season-index-mobile-nav {
        display: block;
        width: 100%;
        padding: max(8px, env(safe-area-inset-top, 0px)) 14px 8px;
        box-sizing: border-box;
    }

    .season-index-mobile-nav__menu {
        position: relative;
        width: min(338px, 100%);
        margin: 0 auto;
    }

    .season-index-mobile-nav__trigger {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 8px 52px 8px 22px;
        box-sizing: border-box;
        list-style: none;
        border: 1px solid rgba(139, 221, 255, .62);
        border-radius: 9px;
        color: #f2fbff;
        background: linear-gradient(180deg, #176ca6, #07345f 78%, #041f3e);
        box-shadow: inset 0 1px rgba(230, 250, 255, .24), 0 4px 12px rgba(0, 5, 20, .4);
        cursor: pointer;
        font: 700 17px/1.2 Georgia, 'Times New Roman', serif;
        letter-spacing: .04em;
        text-shadow: 0 1px 3px #00152e;
        -webkit-tap-highlight-color: transparent;
    }

    .season-index-mobile-nav__trigger::-webkit-details-marker {
        display: none;
    }

    .season-index-mobile-nav__trigger::marker {
        content: '';
    }

    .season-index-mobile-nav__trigger::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 23px;
        width: 10px;
        height: 10px;
        border-right: 2px solid #d8f3ff;
        border-bottom: 2px solid #d8f3ff;
        transform: translateY(-70%) rotate(45deg);
        transition: transform .16s ease;
    }

    .season-index-mobile-nav__menu[open] .season-index-mobile-nav__trigger::after {
        transform: translateY(-30%) rotate(225deg);
    }

    .season-index-mobile-nav__trigger:focus-visible {
        outline: 2px solid #b8ebff;
        outline-offset: 2px;
    }

    .season-index-mobile-nav__panel {
        position: absolute;
        z-index: 130;
        top: calc(100% + 7px);
        right: 0;
        left: 0;
        display: grid;
        gap: 7px;
        padding: 8px;
        border: 1px solid rgba(139, 221, 255, .45);
        border-radius: 9px;
        background: linear-gradient(180deg, rgba(5, 31, 57, .99), rgba(1, 12, 28, .99));
        box-shadow: 0 10px 28px rgba(0, 3, 15, .7);
    }

    .season-index-mobile-nav__panel a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 6px 12px;
        box-sizing: border-box;
        border: 1px solid rgba(118, 205, 244, .32);
        border-radius: 7px;
        color: #e7f7ff;
        background: linear-gradient(180deg, rgba(18, 91, 139, .9), rgba(4, 36, 69, .96));
        font: 700 14px/1.2 Georgia, 'Times New Roman', serif;
        text-decoration: none;
        text-shadow: 0 1px 2px #00152d;
    }

    .season-index-mobile-nav__panel a:hover,
    .season-index-mobile-nav__panel a:focus-visible {
        border-color: #8edfff;
        background: linear-gradient(180deg, #247fb5, #0a477e);
        outline: 0;
    }

    body.season-index:not(.season-news) .season-hero {
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 0;
        overflow: hidden;
        border-radius: 0;
        background: #071d35 url('../images/season/winter-background-index.png') center center / cover no-repeat;
    }

    body.season-index:not(.season-news) .season-hero__content {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: 8px 14px;
        box-sizing: border-box;
    }

    body.season-index:not(.season-news) .season-hero__intro {
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-height: 100%;
        transform: none;
    }

    body.season-index:not(.season-news) .season-hero__logo {
        width: min(330px, 78vw, 40dvh);
        max-height: 40dvh;
        margin: 0 auto -8px;
        object-fit: contain;
        filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .58));
    }

    body.season-index:not(.season-news) .season-hero__actions {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    body.season-index:not(.season-news) .season-button {
        width: min(300px, calc(100% - 16px));
        min-width: 0;
        height: 100px;
        min-height: 100px;
        padding: 0;
        border: 0;
        border-radius: 0;
        color: transparent !important;
        background-color: transparent;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        box-shadow: none;
        font-size: 0;
        line-height: 0;
        text-shadow: none;
        filter: drop-shadow(0 5px 9px rgba(0, 5, 23, .58));
    }

    body.season-index:not(.season-news) .season-button--battle {
        background-image: url('../images/season/hero-button-login.webp');
    }

    body.season-index:not(.season-news) .season-button--ice {
        background-image: url('../images/season/hero-button-register.webp');
    }

    body.season-index:not(.season-news) .season-button__icon {
        display: none;
    }

    body.season-index:not(.season-news) .season-rating,
    body.season-index:not(.season-news) .season-event-banners {
        display: none !important;
    }

    body.season-index:not(.season-news) .season-footer {
        flex: 0 0 68px;
        width: 100%;
        min-height: 68px;
        margin: 0;
        padding: 0;
        border-top: 1px solid rgba(107, 198, 239, .34);
        background: linear-gradient(180deg, #04182d, #010a18);
        box-shadow: 0 -5px 15px rgba(0, 5, 20, .42);
    }

    body.season-index:not(.season-news) .season-footer::before {
        display: none;
    }

    body.season-index:not(.season-news) .season-footer__inner {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 68px;
        padding: 7px 12px;
        box-sizing: border-box;
    }

    body.season-index:not(.season-news) .season-footer__brand,
    body.season-index:not(.season-news) .season-footer__partners {
        display: none;
    }

    body.season-index:not(.season-news) .season-footer__socials {
        gap: clamp(8px, 3vw, 14px);
    }

    body.season-index:not(.season-news) .season-footer__socials a {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(139, 221, 255, .44);
        border-radius: 50%;
        color: #dff5ff;
        background-color: #0a3659;
        background-image: none !important;
        box-shadow: inset 0 1px rgba(223, 247, 255, .2);
        font: 700 10px/1 Arial, sans-serif;
        text-shadow: 0 1px 2px #00152d;
    }

    body.season-index:not(.season-news) .season-footer__socials a.season-footer__social--vk {
        background-image: url('../images/season/footer-social-vk.webp') !important;
    }

    body.season-index:not(.season-news) .season-footer__socials a.season-footer__social--facebook {
        background-image: url('../images/season/footer-social-facebook.webp') !important;
    }

    body.season-index:not(.season-news) .season-footer__socials a.season-footer__social--telegram {
        background-image: url('../images/season/footer-social-telegram.webp') !important;
    }

    body.season-index:not(.season-news) .season-footer__socials a.season-footer__social--youtube {
        background-image: url('../images/season/footer-social-youtube.webp') !important;
    }

    body.season-index:not(.season-news) .season-footer__socials a.season-footer__social--discord {
        background-image: url('../images/season/footer-social-discord.webp') !important;
    }

    body.season-index:not(.season-news) .season-footer__socials a:hover {
        transform: translateY(-1px);
        background-color: #12608f;
    }

    body.season-index:not(.season-news) .season-scroll-controls {
        display: none !important;
    }

    body.season-index:not(.season-news) .season-index-desktop-nav {
        display: block;
        grid-template-columns: none;
        gap: 0;
        width: 100%;
        padding: max(8px, env(safe-area-inset-top, 0px)) 14px 8px;
    }

    body.season-index:not(.season-news) .season-index-desktop-nav > .season-nav__item {
        display: none !important;
    }

    body.season-index:not(.season-news) .season-index-desktop-nav > .season-nav__right-group,
    body.season-index:not(.season-news) .season-footer__partners {
        display: none !important;
    }

    body.season-index:not(.season-news) .season-popup .season-popup__block {
        border: 1px solid rgba(139, 221, 255, .52) !important;
        border-radius: 12px !important;
        background: linear-gradient(180deg, #082a48, #020d1e) !important;
        box-shadow: 0 12px 34px rgba(0, 3, 15, .72) !important;
    }
}

@media (max-width: 480px) {
    body.season-index:not(.season-news) .season-hero__logo {
        width: min(282px, 76vw, 38dvh);
        max-height: 38dvh;
    }
}
