/* Winter public shell. Loaded only by public pages; the in-game UI is untouched. */

html.season-winter-html,
html.season-winter-html body {
    min-width: 0;
    min-height: 100%;
}

body.season-winter {
    overflow-x: hidden;
    color: #d8edff;
    background: #061529 url('../images/season/winter-background.webp') center top / cover fixed no-repeat;
}

body.season-winter > div[style*="position:fixed"] {
    display: none;
}

body.season-winter .b-main-wrapper {
    min-width: 0;
    overflow: visible;
}

body.season-winter .b-main {
    left: auto;
    width: min(1186px, 100%);
    margin: 0 auto;
}

body.season-winter .b-column-wrapper {
    width: min(1000px, calc(100% - 24px));
}

body.season-winter .b-mainmenu {
    position: relative;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: min(1120px, calc(100% - 24px));
    min-height: 62px;
    margin: 0 auto 12px;
    padding: 10px 18px;
    box-sizing: border-box;
    border: 1px solid rgba(137, 216, 255, .62);
    border-top: 0;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(180deg, rgba(3, 17, 39, .97), rgba(7, 43, 78, .9));
    box-shadow: 0 8px 30px rgba(0, 10, 30, .6), inset 0 -1px 0 rgba(213, 246, 255, .38);
    backdrop-filter: blur(10px);
}

body.season-winter .b-mainmenu > a,
body.season-winter .b-mainmenu > div > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 40px;
    margin: 0;
    padding: 0 18px;
    box-sizing: border-box;
    border: 1px solid #83d9ff;
    border-radius: 12px 4px;
    color: #f5fbff;
    background: linear-gradient(180deg, rgba(22, 108, 172, .94), rgba(3, 35, 75, .98));
    box-shadow: inset 0 0 14px rgba(135, 226, 255, .28), 0 0 12px rgba(42, 169, 255, .2);
    text-shadow: 0 1px 2px #00152d;
    transition: transform .16s ease, border-color .16s ease, filter .16s ease;
}

body.season-winter .b-mainmenu > a:hover,
body.season-winter .b-mainmenu > div > a:hover {
    transform: translateY(-1px);
    border-color: #e3f9ff;
    filter: brightness(1.15);
    text-decoration: none;
}

body.season-winter .b-mainmenu > a > span,
body.season-winter .b-mainmenu > div > a > span {
    height: auto;
    padding: 0;
    font: 700 13px/1.15 Georgia, 'Times New Roman', serif;
    color: inherit;
    background: none;
}

body.season-winter .b-mainmenu > div {
    position: static !important;
}

.season-hero {
    position: relative;
    width: min(1120px, calc(100% - 24px));
    min-height: 600px;
    margin: 0 auto 24px;
    overflow: hidden;
    border: 1px solid rgba(143, 220, 255, .7);
    border-radius: 24px;
    background: url('../images/season/winter-background.webp') center 47% / cover no-repeat;
    box-shadow: 0 22px 70px rgba(0, 8, 30, .65), inset 0 0 42px rgba(111, 214, 255, .18);
}

.season-hero__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(1, 14, 36, .35), rgba(2, 24, 52, .05) 45%, rgba(9, 2, 29, .38)),
                linear-gradient(0deg, rgba(0, 10, 30, .88), transparent 55%);
}

.season-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
    gap: 32px;
    min-height: 600px;
    padding: 40px 54px 38px;
    box-sizing: border-box;
}

.season-hero__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.season-hero__title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.season-hero__logo {
    width: clamp(260px, 37vw, 450px);
    height: auto;
    margin: 0 auto -42px;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .62));
}

.season-hero__lead {
    max-width: 610px;
    margin: 0 0 22px;
    color: #e9f7ff;
    font: 600 18px/1.4 Georgia, 'Times New Roman', serif;
    text-align: center;
    text-shadow: 0 2px 5px #001126;
}

.season-hero__actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

.season-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    min-height: 58px;
    padding: 8px 24px;
    box-sizing: border-box;
    border: 2px solid #b8ebff;
    border-radius: 18px 5px;
    color: #fff !important;
    font: 700 20px/1.1 Georgia, 'Times New Roman', serif;
    letter-spacing: .02em;
    text-shadow: 0 2px 3px #00152e;
    box-shadow: inset 0 0 19px rgba(255, 255, 255, .2), 0 8px 24px rgba(0, 0, 0, .4);
    transition: transform .16s ease, filter .16s ease;
}

.season-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    text-decoration: none;
}

.season-button--battle {
    border-color: #ffb070;
    background: linear-gradient(180deg, #9e291c, #3e0713 82%);
}

.season-button--ice {
    background: linear-gradient(180deg, #187bc4, #062e69 82%);
}

.season-button__icon {
    font-size: 25px;
}

.season-rating {
    align-self: end;
    padding: 18px 18px 14px;
    box-sizing: border-box;
    border: 1px solid rgba(146, 224, 255, .76);
    border-radius: 18px 6px;
    background: linear-gradient(180deg, rgba(4, 31, 67, .94), rgba(2, 15, 38, .96));
    box-shadow: inset 0 0 24px rgba(75, 184, 255, .16), 0 12px 32px rgba(0, 0, 0, .46);
}

.season-rating__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(124, 207, 255, .35);
}

.season-rating__head h2 {
    margin: 0;
    color: #fff;
    font: 700 20px/1.2 Georgia, 'Times New Roman', serif;
}

.season-rating__head span {
    color: #98d9ff;
    font-size: 11px;
}

.season-rating__list {
    margin: 8px 0 10px;
    padding: 0;
    list-style: none;
}

.season-rating__list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 32px;
    border-bottom: 1px solid rgba(124, 207, 255, .13);
    color: #dff4ff;
    font-size: 12px;
}

.season-rating__place { color: #ffda73; font-weight: bold; }
.season-rating__nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.season-rating__score { color: #9fe0ff; font-weight: bold; }
.season-rating__empty { display: block !important; padding: 12px 0; text-align: center; }

.season-rating__link {
    display: block;
    color: #bfeaff !important;
    font-weight: bold;
    text-align: center;
}

body.season-index .b-index-decor > .b-button-red-large,
body.season-index .b-index-decor > .b-button-blue-large {
    display: none;
}

.season-footer {
    position: relative;
    z-index: 5;
    width: min(1000px, calc(100% - 24px));
    margin: 18px auto 0;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid rgba(126, 206, 255, .35);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    color: #9ec7de;
    background: rgba(2, 15, 35, .9);
    text-align: center;
}

.season-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
}

.season-footer a { color: #d7f2ff; font-weight: bold; }
.season-footer p { margin: 10px 0 0; }

body.season-register header > .b-mainmenu {
    margin-bottom: 30px;
}

body.season-register .new-reg-main {
    width: min(949px, calc(100% - 24px)) !important;
}

@media (max-width: 1024px) {
    .season-hero__content {
        grid-template-columns: minmax(0, 1fr) 320px;
        padding: 34px 34px 30px;
    }

    .season-button { min-width: 190px; }
}

@media (max-width: 768px) {
    body.season-winter {
        background-attachment: scroll;
        background-position: 32% top;
    }

    body.season-winter .b-mainmenu {
        gap: 6px;
        min-height: 0;
        padding: 8px;
        border-radius: 0 0 16px 16px;
    }

    body.season-winter .b-mainmenu > a,
    body.season-winter .b-mainmenu > div > a {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
        height: 38px;
        padding: 0 8px;
    }

    body.season-winter .b-mainmenu > div {
        display: contents;
    }

    .season-hero {
        min-height: 0;
        background-position: 35% center;
        border-radius: 18px;
    }

    .season-hero__content {
        display: flex;
        flex-direction: column;
        min-height: 720px;
        justify-content: flex-end;
        gap: 24px;
        padding: 24px 20px 26px;
    }

    .season-hero__intro { width: 100%; }
    .season-hero__logo { width: min(390px, 94vw); margin-bottom: -34px; }
    .season-hero__lead { font-size: 16px; }

    .season-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .season-button { width: 100%; min-width: 0; min-height: 54px; }
    .season-rating { width: 100%; }

    body.season-winter .b-column-wrapper {
        display: flex;
        flex-direction: column;
        width: calc(100% - 16px);
    }

    body.season-winter .b-column-left,
    body.season-winter .b-column-right {
        float: none;
        width: 100%;
        margin: 0;
    }

    body.season-winter .b-column-right { order: 1; overflow-x: auto; }
    body.season-winter .b-column-left { order: 2; }

    body.season-winter .b-main-frame,
    body.season-winter .b-main-frame_left-side {
        padding-right: 10px;
        padding-left: 10px;
    }

    body.season-winter .b-main-frame__decor-tl-2,
    body.season-winter .b-main-frame__decor-tr-2,
    body.season-winter .b-main-frame__decor-bl,
    body.season-winter .b-main-frame__decor-br {
        display: none;
    }

    body.season-register .new-reg-ribbon {
        position: relative;
        height: 88px;
        border: 1px solid rgba(126, 206, 255, .55);
        border-radius: 16px 16px 0 0;
        background: linear-gradient(180deg, rgba(11, 78, 126, .96), rgba(2, 23, 54, .97)) !important;
    }

    body.season-register .new-reg-ribbon::after {
        content: 'Регистрация';
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #f2fbff;
        font: 700 28px/1 Georgia, 'Times New Roman', serif;
        text-shadow: 0 2px 4px #00152d, 0 0 16px #53c7ff;
    }

    body.season-register .new-reg-sides {
        padding: 18px 12px;
        border-right: 1px solid rgba(126, 206, 255, .42);
        border-left: 1px solid rgba(126, 206, 255, .42);
        background: rgba(3, 22, 48, .94) !important;
    }

    body.season-register .new-reg-sides .left-side { display: none; }

    body.season-register .new-reg-sides .right-side {
        float: none;
        width: 100%;
    }

    body.season-register .new-reg-form { width: min(100%, 420px); }
    body.season-register .new-reg-form table { table-layout: auto; }

    body.season-register .new-reg-form td,
    body.season-register .new-reg-form td.label {
        display: block;
        width: auto;
        padding: 4px 0;
        color: #e3f5ff;
    }

    body.season-register .new-reg-form .input-wrapper {
        width: auto;
        height: 34px;
        padding: 4px 8px;
        border: 1px solid #6fc9f3;
        border-radius: 7px;
        background: rgba(237, 249, 255, .96);
    }

    body.season-register .new-reg-form .input-wrapper input {
        height: 30px;
        box-sizing: border-box;
    }

    body.season-register .new-reg-form img { max-width: 100%; height: auto; }
    body.season-register .new-reg-agreement { width: auto; color: #d8edff; }

    body.season-register .new-reg-foot {
        height: 92px;
        border: 1px solid rgba(126, 206, 255, .42);
        border-top: 0;
        border-radius: 0 0 16px 16px;
        background: rgba(2, 16, 38, .95) !important;
    }

    body.season-register .new-reg-foot .submit-button {
        left: 50%;
        max-width: calc(100% - 24px);
        height: auto;
        margin-left: 0;
        transform: translateX(-50%);
    }

    body.season-library .b-start-page__bg,
    body.season-library .b-start-page__header-bg {
        width: 100%;
        max-width: 670px;
    }

    body.season-library .b-start-page__header-image {
        max-width: 100%;
        height: auto;
    }

    body.season-library .b-start-page__list-item,
    body.season-library .b-start-page__list-item.wide {
        float: none;
        width: calc(100% - 20px);
        max-width: 556px;
        margin-right: 0;
    }
}

@media (max-width: 420px) {
    body.season-winter .b-mainmenu > a,
    body.season-winter .b-mainmenu > div > a {
        font-size: 11px;
    }

    .season-hero__content { min-height: 650px; padding: 18px 12px 20px; }
    .season-hero__logo { width: min(340px, 100%); }
    .season-hero__lead { font-size: 14px; }
    .season-button { font-size: 18px; }
    .season-rating { padding: 14px 12px 10px; }
    .season-footer { padding: 16px 10px; }
}
