/* 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: 100%;
    margin: 0 auto;
}

body.season-index:not(.season-news) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

.season-header {
    --season-nav-btn-w: 234px;
    --season-nav-btn-h: 65px;
    --season-nav-brand-inset: 0;
    --season-nav-account-w: 286px;
    --season-nav-online-w: 260px;
    --season-nav-right-offset: 30px;
    --season-nav-online-value-left: 160px;
    --season-nav-lift: 8px;
    position: relative;
    z-index: 20;
    width: 100%;
    min-height: 98px;
    margin: 0;
    border-top: 1px solid rgba(170, 230, 255, .56);
    border-bottom: 1px solid rgba(72, 166, 220, .72);
    background:
        linear-gradient(90deg, rgba(1, 12, 29, .98), rgba(5, 38, 70, .96) 22%, rgba(4, 29, 59, .97) 50%, rgba(5, 38, 70, .96) 78%, rgba(1, 12, 29, .98));
    box-shadow: 0 8px 24px rgba(0, 5, 20, .66), inset 0 1px rgba(220, 248, 255, .13);
}

.season-header::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background: url('../images/season/season-navbar-panel.webp') center / 100% 100% no-repeat;
    opacity: 1;
    filter: drop-shadow(0 5px 12px rgba(0, 7, 25, .72));
}

body.season-winter .b-mainmenu {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 98px;
    margin: 0;
    padding: 15px 30px 18px;
    box-sizing: border-box;
    border: 0;
    background: none;
    box-shadow: none;
}

body.season-winter .b-mainmenu::before {
    display: none;
}

body.season-winter .b-mainmenu > .season-nav__item,
body.season-winter .b-mainmenu > .season-nav__right-group > .season-nav__item {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: var(--season-nav-btn-w);
    min-width: var(--season-nav-btn-w);
    height: var(--season-nav-btn-h);
    min-height: var(--season-nav-btn-h);
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    color: transparent;
    background-color: transparent;
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    box-shadow: none;
    text-shadow: none;
    transform: translateY(var(--season-nav-lift));
    transition: filter .16s ease;
}

body.season-winter .b-mainmenu > .season-nav__item:hover,
body.season-winter .b-mainmenu > .season-nav__right-group > .season-nav__item:hover,
body.season-winter .b-mainmenu > .season-nav__item:focus-visible,
body.season-winter .b-mainmenu > .season-nav__right-group > .season-nav__item:focus-visible {
    transform: translateY(var(--season-nav-lift));
    filter: brightness(1.14) saturate(1.12) drop-shadow(0 0 7px rgba(77, 207, 255, .58));
    text-decoration: none;
    outline: 0;
}

body.season-winter .b-mainmenu > .season-nav__item > span,
body.season-winter .b-mainmenu > .season-nav__right-group > .season-nav__item > span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.season-winter .b-mainmenu > .season-nav__item--home {
    margin-left: var(--season-nav-brand-inset);
    background-image: url('../images/season/nav-button-home.webp');
}

body.season-winter .b-mainmenu > .season-nav__item--news {
    background-image: url('../images/season/nav-button-news.webp');
}

body.season-winter .b-mainmenu > .season-nav__item--forum {
    background-image: url('../images/season/nav-button-forum.webp');
}

body.season-winter .b-mainmenu > .season-nav__item--library {
    background-image: url('../images/season/nav-button-library.webp');
}

body.season-winter .b-mainmenu > .season-nav__item--rating {
    background-image: url('../images/season/nav-button-rating.webp');
}

body.season-winter .b-mainmenu > .season-nav__right-group {
    position: absolute;
    z-index: 2;
    right: var(--season-nav-right-offset);
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transform: translateY(calc(-50% + var(--season-nav-lift)));
}

body.season-winter .b-mainmenu > .season-nav__right-group > .season-nav__account {
    width: var(--season-nav-account-w);
    min-width: var(--season-nav-account-w);
    margin: 0;
    background-image: url('../images/season/nav-button-account.webp');
    transform: none;
}

body.season-winter .b-mainmenu > .season-nav__right-group > .season-nav__account:hover,
body.season-winter .b-mainmenu > .season-nav__right-group > .season-nav__account:focus-visible {
    transform: none;
}

body.season-winter .b-mainmenu .season-nav__online {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: var(--season-nav-online-w);
    min-width: var(--season-nav-online-w);
    height: var(--season-nav-btn-h);
    min-height: var(--season-nav-btn-h);
    color: #eefaff;
    background: transparent url('../images/season/nav-button-online.webp') center / 100% 100% no-repeat;
    text-shadow: 0 1px 3px #00172e;
}

body.season-winter .b-mainmenu .season-nav__online-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

body.season-winter .b-mainmenu .season-nav__online-value {
    position: absolute;
    left: var(--season-nav-online-value-left);
    top: 50%;
    width: 44px;
    transform: translateY(-50%);
    color: #fff;
    font: 700 17px/1 Georgia, 'Times New Roman', serif;
    text-align: center;
}

@media (min-width: 1441px) and (max-width: 2000px) {
    .season-header {
        min-height: clamp(92px, calc(1.25vw + 74px), 98px);
    }

    body.season-winter .b-mainmenu {
        gap: clamp(6px, .417vw, 8px);
        min-height: clamp(92px, calc(1.25vw + 74px), 98px);
    }

    body.season-winter .b-mainmenu > .season-nav__item {
        width: clamp(180px, calc(11.25vw + 18px), 234px);
        min-width: clamp(180px, calc(11.25vw + 18px), 234px);
        height: clamp(50px, calc(3.125vw + 5px), 65px);
        min-height: clamp(50px, calc(3.125vw + 5px), 65px);
        transform: translateY(clamp(6px, .417vw, 8px));
    }

    body.season-winter .b-mainmenu > .season-nav__item:hover,
    body.season-winter .b-mainmenu > .season-nav__item:focus-visible {
        transform: translateY(clamp(6px, .417vw, 8px));
    }

    body.season-winter .b-mainmenu > .season-nav__item--home {
        margin-left: 0;
    }

    body.season-winter .b-mainmenu > .season-nav__right-group {
        right: 30px;
        gap: clamp(6px, .417vw, 8px);
        transform: translateY(calc(-50% + clamp(6px, .417vw, 8px)));
    }

    body.season-winter .b-mainmenu > .season-nav__right-group > .season-nav__account {
        width: clamp(220px, calc(13.75vw + 22px), 286px);
        min-width: clamp(220px, calc(13.75vw + 22px), 286px);
        height: clamp(50px, calc(3.125vw + 5px), 65px);
        min-height: clamp(50px, calc(3.125vw + 5px), 65px);
    }

    body.season-winter .b-mainmenu .season-nav__online {
        width: clamp(200px, calc(12.5vw + 20px), 260px);
        min-width: clamp(200px, calc(12.5vw + 20px), 260px);
        height: clamp(50px, calc(3.125vw + 5px), 65px);
        min-height: clamp(50px, calc(3.125vw + 5px), 65px);
    }

    body.season-winter .b-mainmenu .season-nav__online-value {
        left: clamp(123px, calc(7.708vw + 12px), 160px);
        width: clamp(34px, calc(2.083vw + 4px), 44px);
        font-size: clamp(13px, calc(.833vw + 1px), 17px);
    }
}

@media (min-width: 769px) and (max-width: 1440px) {
    .season-header {
        min-height: clamp(72px, 6.39vw, 92px);
    }

    body.season-winter .b-mainmenu {
        gap: clamp(4px, .42vw, 6px);
        min-height: clamp(72px, 6.39vw, 92px);
        padding: clamp(16px, 1.39vw, 20px) clamp(20px, 2.08vw, 30px) clamp(17px, 1.53vw, 22px);
    }

    body.season-winter .b-mainmenu > .season-nav__item {
        width: clamp(72px, 12.5vw, 180px);
        min-width: clamp(72px, 12.5vw, 180px);
        height: clamp(28px, 3.47vw, 50px);
        min-height: clamp(28px, 3.47vw, 50px);
        transform: translateY(clamp(3px, .42vw, 6px));
    }

    body.season-winter .b-mainmenu > .season-nav__item:hover,
    body.season-winter .b-mainmenu > .season-nav__item:focus-visible {
        transform: translateY(clamp(3px, .42vw, 6px));
    }

    body.season-winter .b-mainmenu > .season-nav__item--home {
        margin-left: 0;
    }

    body.season-winter .b-mainmenu > .season-nav__right-group {
        right: clamp(20px, 2.08vw, 30px);
        gap: clamp(4px, .42vw, 6px);
        transform: translateY(calc(-50% + clamp(3px, .42vw, 6px)));
    }

    body.season-winter .b-mainmenu > .season-nav__right-group > .season-nav__account {
        width: clamp(88px, 15.28vw, 220px);
        min-width: clamp(88px, 15.28vw, 220px);
        height: clamp(28px, 3.47vw, 50px);
        min-height: clamp(28px, 3.47vw, 50px);
    }

    body.season-winter .b-mainmenu .season-nav__online {
        width: clamp(80px, 13.89vw, 200px);
        min-width: clamp(80px, 13.89vw, 200px);
        height: clamp(28px, 3.47vw, 50px);
        min-height: clamp(28px, 3.47vw, 50px);
    }

    body.season-winter .b-mainmenu .season-nav__online-value {
        left: clamp(49px, 8.54vw, 123px);
    }
}

.season-hero {
    position: relative;
    width: calc(100% - 24px);
    min-height: 600px;
    margin: 0 auto 24px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

body.season-index:not(.season-news) .season-hero,
body.season-index:not(.season-news) .season-hero__content {
    min-height: max(460px, calc(100vh - 260px));
}

.season-hero__veil {
    display: none;
}

.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 {
    position: absolute;
    left: 50%;
    bottom: clamp(54px, 7vh, 100px);
    width: min(720px, calc(100% - 820px));
    transform: translateX(-50%);
    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(250px, 28vw, 390px);
    height: auto;
    margin: 0 auto -16px;
    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 {
    position: absolute;
    right: clamp(24px, 3vw, 76px);
    bottom: clamp(54px, 7vh, 100px);
    width: 360px;
    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;
}

/* The legacy markup is retained, but its unused decorative bitmaps are not fetched. */
body.season-winter .b-main-frame > span,
body.season-winter .b-common-block > span:not(.b-common-block__header),
body.season-winter .b-news-footer > span {
    display: none !important;
    background-image: none !important;
}

body.season-winter .b-footer_main {
    display: none !important;
    background-image: none !important;
}

body.season-winter .b-main-frame,
body.season-winter .b-main-frame__cont,
body.season-winter .b-index-decor,
body.season-winter .b-common-block,
body.season-winter .b-common-block__header,
body.season-winter .b-common-block__header-inner,
body.season-winter .b-common-block__cont,
body.season-winter .b-common-block__bgl,
body.season-winter .b-common-block__bgr,
body.season-winter .b-news-footer,
body.season-winter .b-news-footer__cont {
    background-image: none !important;
}

body.season-winter .b-main-frame__cont,
body.season-winter .b-common-block__cont,
body.season-winter .b-news-footer__cont {
    border: 1px solid rgba(114, 197, 242, .28);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(5, 33, 65, .94), rgba(2, 17, 39, .96)) !important;
    box-shadow: inset 0 0 24px rgba(79, 186, 255, .08);
}

body.season-winter .b-common-block__header {
    display: block;
    min-height: 32px;
    border: 1px solid rgba(130, 211, 255, .4);
    border-radius: 10px 10px 0 0;
    color: #f3fbff;
    background: linear-gradient(180deg, rgba(18, 91, 145, .96), rgba(4, 36, 75, .98)) !important;
}

body.season-winter .b-common-block__header-inner {
    color: inherit;
    background: none !important;
}

.season-footer {
    position: relative;
    z-index: 5;
    width: 100%;
    margin: 0;
    min-height: 76px;
    padding: 6px 0 8px;
    box-sizing: border-box;
    border: 0;
    color: #9ec7de;
    background: #031126;
    box-shadow: 0 -8px 24px rgba(0, 5, 20, .58);
    text-align: center;
}

body.season-index:not(.season-news) .season-footer {
    flex: 0 0 auto;
    margin-top: 0;
}

.season-footer::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background: url('../images/season/season-footer-panel.webp') center / 100% 100% no-repeat;
    filter: drop-shadow(0 -4px 10px rgba(0, 7, 25, .62));
}

.season-footer__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    gap: 24px;
    width: min(1760px, calc(100% - 64px));
    min-height: 62px;
    margin: 0 auto;
    padding: 7px clamp(56px, 8vw, 150px);
    box-sizing: border-box;
}

.season-footer__brand {
    justify-self: start;
    margin: 0 !important;
    color: #d8efff;
    font: 700 13px/1.2 Georgia, 'Times New Roman', serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px #001126;
}

.season-footer__socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.season-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #9bdfff;
    border-radius: 50%;
    color: #f3fbff;
    font: 700 11px/1 Arial, sans-serif;
    background: linear-gradient(180deg, rgba(24, 117, 178, .96), rgba(3, 34, 73, .98));
    box-shadow: inset 0 0 10px rgba(169, 231, 255, .24), 0 4px 12px rgba(0, 5, 20, .55);
}

.season-footer__socials a:hover {
    filter: brightness(1.2);
    text-decoration: none;
}

.season-footer__partners {
    display: flex;
    align-items: flex-end;
    justify-self: end;
    gap: 7px;
}

.season-footer__partners a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 30px;
    border: 1px solid rgba(144, 215, 255, .72);
    border-radius: 4px;
    color: #e8f8ff;
    font: 700 9px/1.05 Arial, sans-serif;
    letter-spacing: .04em;
    background: linear-gradient(180deg, rgba(13, 72, 119, .98), rgba(2, 27, 59, .98));
    box-shadow: inset 0 0 8px rgba(148, 221, 255, .18);
}

.season-footer__partners a:hover {
    filter: brightness(1.18);
    text-decoration: none;
}

body.season-news {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #d9e9f4;
    background: #050b13;
}

body.season-news .b-main-wrapper {
    flex: 1 0 auto;
    width: 100%;
}

body.season-news .b-column-wrapper {
    display: block;
    width: min(820px, calc(100% - 24px));
}

main.season-news {
    width: 100%;
    min-height: calc(100vh - 252px);
    padding: 0 16px 28px;
    box-sizing: border-box;
    background:
        linear-gradient(90deg, rgba(30, 93, 132, .08), transparent 24%, transparent 76%, rgba(30, 93, 132, .08)),
        linear-gradient(180deg, #07111d, #03070d);
}

.season-news__shell {
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 20px 16px 24px;
    box-sizing: border-box;
    border-right: 1px solid rgba(111, 192, 232, .22);
    border-left: 1px solid rgba(111, 192, 232, .22);
    background: rgba(3, 10, 18, .88);
    box-shadow: 0 0 44px rgba(0, 0, 0, .42);
}

.season-news__top,
.season-news__latest,
.season-news__article {
    margin: 0 0 12px;
    padding: 12px 14px 14px;
    border: 1px solid rgba(123, 202, 239, .28);
    border-radius: 10px;
    background: linear-gradient(165deg, rgba(10, 38, 61, .72), rgba(3, 13, 25, .92));
    box-shadow: inset 0 1px rgba(216, 246, 255, .06), 0 5px 18px rgba(0, 0, 0, .22);
}

.season-news__latest,
.season-news__article {
    margin-bottom: 0;
}

.season-news__section-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 0 0 10px;
    padding: 5px 13px;
    box-sizing: border-box;
    border: 1px solid rgba(130, 211, 255, .44);
    border-radius: 9px;
    color: #e7f7ff;
    background: linear-gradient(180deg, rgba(18, 83, 125, .92), rgba(5, 33, 66, .94));
    box-shadow: inset 0 1px rgba(225, 249, 255, .14), 0 2px 10px rgba(0, 0, 0, .28);
    font: 700 12px/1.3 Arial, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.season-news__best {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(111, 192, 232, .2);
}

.season-news__best-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.season-news__best-list {
    min-width: 0;
}

.season-news__best-frame {
    padding: 10px;
    border: 1px solid rgba(123, 202, 239, .25);
    border-radius: 5px;
    background: rgba(1, 10, 20, .64);
}

.season-news__best-frame[hidden] {
    display: none;
}

.season-news__best-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 10px;
}

.season-news__best-tabs button {
    min-width: 30px;
    min-height: 29px;
    padding: 3px 8px;
    border: 1px solid rgba(130, 211, 255, .4);
    border-radius: 7px;
    color: #d8eef9;
    background: linear-gradient(180deg, rgba(12, 60, 93, .88), rgba(4, 27, 54, .94));
    cursor: pointer;
    font: 700 12px/1 Arial, sans-serif;
}

.season-news__best-tabs button:hover,
.season-news__best-tabs button:focus-visible,
.season-news__best-tabs button.is-active {
    border-color: rgba(157, 226, 255, .8);
    color: #fff;
    background: linear-gradient(180deg, rgba(26, 108, 157, .96), rgba(7, 48, 88, .98));
    outline: none;
}

.season-news__fast {
    padding-top: 10px;
}

.season-news__fast-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(111, 192, 232, .12);
    color: #d8ebf6;
    font-size: 13px;
    line-height: 1.35;
}

.season-news__fast-line:last-child {
    border-bottom: 0;
}

.season-news__fast-line > a,
.season-news__fast-line > span {
    flex: 1 1 auto;
    min-width: 0;
}

.season-news__fast-line time,
.season-news__card-head time,
.season-news__article-head time {
    flex: 0 0 auto;
    color: #82bad8;
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;
}

.season-news__feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.season-news__feed li {
    margin: 0;
    padding: 0;
}

.season-news__best-media {
    display: block;
    width: min(100%, 780px);
    margin: 0 auto;
    padding: 3px;
    box-sizing: border-box;
    overflow: hidden;
    border: 2px solid rgba(151, 215, 242, .62);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(179, 229, 250, .16), rgba(1, 9, 18, .9));
    box-shadow: 0 0 0 1px rgba(1, 8, 17, .9), inset 0 0 10px rgba(122, 215, 255, .14), 0 5px 18px rgba(0, 0, 0, .4);
    text-decoration: none !important;
}

.season-news__best-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    box-sizing: border-box;
    border: 1px solid rgba(221, 247, 255, .28);
    border-radius: 3px;
}

.season-news__card {
    display: flex;
    align-items: stretch;
    gap: 15px;
    padding: 13px 15px;
    border: 1px solid rgba(123, 202, 239, .27);
    border-radius: 5px;
    color: inherit !important;
    background: linear-gradient(180deg, rgba(6, 25, 43, .76), rgba(2, 12, 23, .82));
    box-shadow: inset 0 1px rgba(220, 248, 255, .035);
    text-decoration: none !important;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.season-news__thumb {
    flex: 0 0 clamp(150px, 18vw, 280px);
    aspect-ratio: 16 / 9;
    max-height: 158px;
    overflow: hidden;
    border: 2px solid rgba(147, 215, 244, .58);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(179, 229, 250, .14), rgba(1, 10, 20, .86));
    box-shadow: 0 0 0 1px rgba(1, 8, 17, .88), inset 0 0 8px rgba(122, 215, 255, .12), 0 2px 8px rgba(0, 0, 0, .35);
}

.season-news__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.season-news__card:hover {
    border-color: rgba(143, 223, 255, .6);
    background: linear-gradient(180deg, rgba(10, 45, 73, .82), rgba(3, 20, 37, .88));
    box-shadow: inset 0 1px rgba(225, 249, 255, .08), 0 4px 14px rgba(0, 0, 0, .24);
}

.season-news__card-body {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.season-news__card-head,
.season-news__article-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.season-news__card-head strong,
.season-news__article-head h1 {
    color: #edfaff;
    font-weight: 700;
    text-decoration: none;
}

.season-news__card-head strong {
    font-size: 16px;
    line-height: 1.3;
}

.season-news__card:hover .season-news__card-head strong {
    color: #9fe3ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.season-news__excerpt {
    color: #a9c4d7;
    font-size: 13px;
    line-height: 1.45;
}

.season-news__more,
.season-news__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    min-height: 29px;
    padding: 5px 13px;
    box-sizing: border-box;
    border: 1px solid rgba(132, 214, 255, .65);
    border-radius: 7px;
    color: #e8f8ff !important;
    background: linear-gradient(180deg, rgba(20, 92, 139, .96), rgba(4, 37, 76, .98));
    box-shadow: inset 0 1px rgba(225, 249, 255, .16), 0 2px 8px rgba(0, 0, 0, .28);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.season-news__pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.season-news__article-head {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(111, 192, 232, .22);
}

.season-news__article-head h1 {
    margin: 0;
    font: 700 22px/1.3 Georgia, 'Times New Roman', serif;
}

.season-news__article-body {
    width: min(100%, 960px);
    margin: 8px auto 0;
    padding: 10px 14px 12px;
    box-sizing: border-box;
    border: 1px solid rgba(123, 202, 239, .28);
    border-radius: 10px;
    background: linear-gradient(165deg, rgba(10, 38, 61, .56), rgba(3, 13, 25, .72));
    box-shadow: inset 0 1px rgba(216, 246, 255, .06), 0 4px 18px rgba(0, 0, 0, .22);
    color: #c8dde9;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.season-news__article-body > *:first-child {
    margin-top: 0;
}

.season-news__article-body picture,
.season-news__article-body video,
.season-news__article-body iframe,
.season-news__article-body object {
    display: none !important;
}

.season-news__article-body img {
    display: block;
    width: auto;
    max-width: min(100%, 900px);
    max-height: 420px;
    height: auto;
    margin: 14px auto;
    padding: 3px;
    box-sizing: border-box;
    object-fit: contain;
    border: 2px solid rgba(147, 215, 244, .58);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(179, 229, 250, .14), rgba(1, 10, 20, .9));
    box-shadow: 0 0 0 1px rgba(1, 8, 17, .88), inset 0 0 10px rgba(122, 215, 255, .12), 0 8px 28px rgba(0, 0, 0, .38);
}

.season-news__article-body table.item img,
.season-news__article-body table.artifact-table img,
.season-news__article-body table.library-artifact-img img,
.season-news__article-body table.superman img {
    display: inline-block;
    width: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.season-news__article-body table {
    width: 100% !important;
    max-width: 100%;
}

.season-news__back {
    margin: 10px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(111, 192, 232, .22);
    text-align: left;
}

.season-news__back .season-news__button {
    align-self: auto;
}

body.season-news .b-column-right {
    float: none;
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
}

body.season-news .b-main-frame,
body.season-news .b-main-frame__cont,
body.season-news .b-index-decor {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

body.season-news .b-news-item img,
body.season-news .b-common-block__cont img {
    max-width: 100%;
    height: auto;
}

body.season-news .b-news-item,
body.season-news .b-news-item__head,
body.season-news .b-news-item__datetime,
body.season-news .b-news-item__datetime-inner,
body.season-news .b-news-item__header,
body.season-news .b-divider-2,
body.season-news .b-divider-2 > div,
body.season-news .b-divider-2__l-inner,
body.season-news .b-divider-2__r-inner {
    background-image: none !important;
}

body.season-news .b-common-block__cont {
    padding: 16px;
}

body.season-news .b-news-item {
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid rgba(118, 205, 249, .3);
    border-radius: 12px;
    color: #dcedf8;
    background: linear-gradient(180deg, rgba(8, 47, 86, .9), rgba(2, 22, 50, .96)) !important;
    box-shadow: inset 0 0 20px rgba(86, 191, 255, .07);
}

body.season-news .b-news-item__datetime,
body.season-news .b-news-item__datetime-inner {
    color: #91d9ff;
    font-size: 12px;
}

body.season-news .b-icon-32x32_time {
    display: none;
}

body.season-news .b-news-item__header,
body.season-news .b-news-item__header a {
    color: #f2fbff !important;
    font: 700 18px/1.3 Georgia, 'Times New Roman', serif;
    text-shadow: 0 1px 3px #00162e;
}

body.season-news .b-divider-2 {
    display: none;
}

.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-footer__inner {
        width: calc(100% - 32px);
        padding-right: 28px;
        padding-left: 28px;
    }

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

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

    .season-hero__intro {
        left: 24px;
        width: min(620px, calc(100% - 390px));
        transform: none;
    }

    .season-rating {
        right: 24px;
        width: 320px;
    }
}

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

    .season-header {
        min-height: 0;
        margin-bottom: 10px;
    }

    .season-header::before {
        display: none;
    }

    body.season-winter .b-mainmenu {
        flex-wrap: wrap;
        width: 100%;
        margin: 0 auto;
        gap: 6px;
        min-height: 0;
        padding: 12px 10px;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    body.season-winter .b-mainmenu::before {
        display: none;
    }

    body.season-winter .b-mainmenu > .season-nav__item,
    body.season-winter .b-mainmenu > .season-nav__right-group > .season-nav__item,
    body.season-winter .b-mainmenu .season-nav__online {
        flex: 1 1 calc(50% - 6px);
        width: auto;
        min-width: 0;
        height: 38px;
        min-height: 38px;
        padding: 0 8px;
        border: 1px solid #83d9ff;
        border-radius: 5px;
        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;
        transform: none;
    }

    body.season-winter .b-mainmenu > .season-nav__right-group {
        display: contents;
        position: static;
        transform: none;
    }

    body.season-winter .b-mainmenu > .season-nav__item--home,
    body.season-winter .b-mainmenu > .season-nav__right-group > .season-nav__account {
        margin-left: 0;
    }

    body.season-winter .b-mainmenu > .season-nav__item:hover,
    body.season-winter .b-mainmenu > .season-nav__right-group > .season-nav__item:hover,
    body.season-winter .b-mainmenu > .season-nav__item:focus-visible,
    body.season-winter .b-mainmenu > .season-nav__right-group > .season-nav__item:focus-visible {
        transform: none;
        filter: brightness(1.15);
    }

    body.season-winter .b-mainmenu > .season-nav__item > span,
    body.season-winter .b-mainmenu > .season-nav__right-group > .season-nav__item > span {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        color: inherit;
        font: 700 12px/1.15 Georgia, 'Times New Roman', serif;
    }

    body.season-winter .b-mainmenu .season-nav__online-label {
        position: static;
        width: auto;
        height: auto;
        margin: 0 4px 0 0;
        overflow: visible;
        clip: auto;
        font: 700 12px/1.15 Georgia, 'Times New Roman', serif;
    }

    body.season-winter .b-mainmenu .season-nav__online-value {
        position: static;
        width: auto;
        transform: none;
        color: inherit;
        font: 700 12px/1.15 Georgia, 'Times New Roman', serif;
    }

    .season-hero {
        width: calc(100% - 16px);
        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 {
        position: static;
        width: 100%;
        transform: none;
    }
    .season-hero__logo { width: min(330px, 90vw); margin-bottom: -14px; }
    .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 {
        position: static;
        width: 100%;
    }

    .season-footer {
        width: 100%;
        margin: 18px 0 0;
        min-height: 0;
        padding: 0;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 0;
        background: linear-gradient(180deg, rgba(5, 39, 72, .97), rgba(1, 13, 31, .99));
    }

    .season-footer::before {
        display: none;
    }

    .season-footer__inner {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 0;
        gap: 12px;
        padding: 22px 14px 18px;
    }

    .season-footer__brand,
    .season-footer__partners {
        justify-self: auto;
    }

    main.season-news {
        min-height: 0;
        padding: 0 8px 18px;
    }

    .season-news__shell {
        padding: 10px 0 14px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .season-news__top,
    .season-news__latest,
    .season-news__article {
        padding: 9px;
        border-radius: 7px;
    }

    .season-news__best-head {
        flex-direction: column;
        gap: 0;
    }

    .season-news__best-tabs {
        justify-content: flex-start;
        margin-top: -2px;
    }

    .season-news__fast-line,
    .season-news__card-head,
    .season-news__article-head {
        flex-direction: column;
        gap: 4px;
    }

    .season-news__fast-line time,
    .season-news__card-head time,
    .season-news__article-head time {
        white-space: normal;
    }

    .season-news__card {
        flex-direction: column;
        padding: 10px;
    }

    .season-news__thumb {
        flex-basis: auto;
        width: 100%;
        max-height: 190px;
    }

    .season-news__more {
        min-height: 30px;
        padding: 5px 12px;
    }

    .season-news__article-head h1 {
        font-size: 18px;
    }

    .season-news__article-body {
        margin-top: 8px;
        padding: 10px;
        border-radius: 7px;
    }

    .season-footer__partners {
        position: static;
        justify-content: center;
        margin-top: 0;
    }

    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 > .season-nav__item,
    body.season-winter .b-mainmenu > .season-nav__right-group > .season-nav__item,
    body.season-winter .b-mainmenu .season-nav__online {
        font-size: 11px;
    }

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

/* Clean donor-style library shell. Legacy library frames stay unrendered. */
body.season-library {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #d9e9f4;
    background: #050b13;
}

body.season-library .b-main-wrapper { flex: 1 0 auto; width: 100%; }
body.season-library #go-top,
body.season-library .b-go-top { display: none !important; }

main.season-library {
    width: 100%;
    min-height: calc(100vh - 252px);
    padding: 0 16px 28px;
    box-sizing: border-box;
    background: linear-gradient(90deg, rgba(30, 93, 132, .08), transparent 24%, transparent 76%, rgba(30, 93, 132, .08)), linear-gradient(180deg, #07111d, #03070d);
}

.season-library__shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 20px 16px 24px;
    box-sizing: border-box;
    border-right: 1px solid rgba(111, 192, 232, .22);
    border-left: 1px solid rgba(111, 192, 232, .22);
    background: rgba(3, 10, 18, .88);
    box-shadow: 0 0 44px rgba(0, 0, 0, .42);
}

.season-library__sidebar,
.season-library__content { min-width: 0; }

.season-library__group,
.season-library__content {
    margin: 0 0 10px;
    border: 1px solid rgba(123, 202, 239, .28);
    border-radius: 9px;
    background: linear-gradient(165deg, rgba(10, 38, 61, .74), rgba(3, 13, 25, .94));
    box-shadow: inset 0 1px rgba(216, 246, 255, .06), 0 5px 18px rgba(0, 0, 0, .22);
    overflow: hidden;
}

.season-library__group summary {
    display: block;
    padding: 10px 12px;
    cursor: pointer;
    color: #edfaff;
    background: linear-gradient(180deg, rgba(18, 83, 125, .92), rgba(5, 33, 66, .94));
    border-bottom: 1px solid rgba(130, 211, 255, .28);
    font: 700 12px/1.3 Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    list-style: none;
}

.season-library__group summary::-webkit-details-marker { display: none; }
.season-library__categories { display: flex; flex-direction: column; gap: 8px; padding: 12px; }

.season-library__categories a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    box-sizing: border-box;
    border: 1px solid rgba(123, 202, 239, .3);
    border-radius: 8px;
    color: #d6edf8 !important;
    background: linear-gradient(180deg, rgba(13, 66, 103, .78), rgba(4, 31, 58, .92));
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    text-decoration: none !important;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.season-library__categories a:hover { border-color: rgba(143, 223, 255, .62); color: #f1fbff !important; background: linear-gradient(180deg, rgba(20, 92, 139, .86), rgba(4, 37, 76, .96)); box-shadow: 0 2px 10px rgba(0, 0, 0, .22); }
.season-library__categories a.is-active { border-color: rgba(131, 216, 255, .48); color: #fff !important; background: linear-gradient(180deg, rgba(20, 92, 139, .88), rgba(4, 37, 76, .94)); box-shadow: inset 0 1px rgba(225, 249, 255, .12); }
.season-library__content { margin-bottom: 0; }

.season-library__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(123, 202, 239, .25);
    background: rgba(2, 17, 31, .72);
}

.season-library__head--navigation,
.season-library__head--title { justify-content: center; }
.season-library__head h1 { margin: 0; color: #edfaff; font: 700 18px/1.3 Arial, sans-serif; text-align: center; }
.season-library__article-nav { display: grid; grid-template-columns: 130px minmax(240px, 1fr) 130px; align-items: center; gap: 12px; width: min(100%, 680px); min-width: 0; margin: 0 auto; }

.season-library__article-nav > a,
.season-library__article-nav > span,
.season-library__article-nav select {
    min-height: 34px;
    box-sizing: border-box;
    border: 1px solid rgba(132, 214, 255, .58);
    border-radius: 6px;
    color: #e8f8ff;
    background: linear-gradient(180deg, rgba(20, 92, 139, .96), rgba(4, 37, 76, .98));
    font-size: 12px;
}

.season-library__article-nav > a,
.season-library__article-nav > span { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0 11px; text-decoration: none !important; }
.season-library__article-nav > span.is-disabled { opacity: .4; }
.season-library__article-nav label { flex: 1 1 auto; min-width: 0; }
.season-library__article-nav select { width: 100%; padding: 0 9px; }
.season-library__article-nav option { color: #e8f8ff; background: #06182b; }
.season-library__article-nav .jq-selectbox { display: block; width: 100%; padding: 0; border: 1px solid rgba(132, 214, 255, .58); border-radius: 6px; background: linear-gradient(180deg, rgba(20, 92, 139, .96), rgba(4, 37, 76, .98)); box-sizing: border-box; }
.season-library__article-nav .jq-selectbox .select { width: 100%; height: 32px; padding: 0 34px 0 10px; box-sizing: border-box; color: #e8f8ff; background: none; text-shadow: none; font: 12px/32px Arial, sans-serif; }
.season-library__article-nav .jq-selectbox .trigger { width: 32px; }
.season-library__article-nav .jq-selectbox .trigger .arrow { top: 13px; right: 11px; border-top-color: #9be2ff; }
.season-library__article-nav .jq-selectbox .dropdown { top: 34px; width: 100%; max-height: 260px; margin: 0; padding: 4px; box-sizing: border-box; overflow-y: auto; border: 1px solid rgba(132, 214, 255, .58); border-radius: 6px; color: #cfeaf7; background: #06182b; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); font: 12px/1.35 Arial, sans-serif; }
.season-library__article-nav .jq-selectbox ul { margin: 0; padding: 0; }
.season-library__article-nav .jq-selectbox li { padding: 7px 9px; border: 1px solid transparent; border-radius: 4px; color: #cfeaf7; background: none; }
.season-library__article-nav .jq-selectbox li:hover,
.season-library__article-nav .jq-selectbox li.selected { padding: 7px 9px; border-color: rgba(132, 214, 255, .45); color: #fff; background: rgba(24, 111, 164, .62); }
.season-library__body { padding: 14px; }
.season-library__article { color: #c8dde9; font-size: 14px; line-height: 1.58; overflow-wrap: anywhere; }
.season-library__article:not(.season-library__article--bestiary) { padding: 12px 14px 16px; border: 1px solid rgba(123, 202, 239, .25); border-radius: 10px; background: linear-gradient(165deg, rgba(8, 34, 56, .52), rgba(2, 12, 22, .62)); box-shadow: inset 0 1px rgba(216, 246, 255, .055), 0 4px 16px rgba(0, 0, 0, .2); }
.season-library__article > :first-child { margin-top: 0; }
.season-library__article h1, .season-library__article h2, .season-library__article h3, .season-library__article h4 { color: #edfaff; }
.season-library__article:not(.season-library__article--bestiary) > h2,
.season-library__article:not(.season-library__article--bestiary) > h3,
.season-library__article:not(.season-library__article--bestiary) > h4 { text-align: center; }
.season-library__article:not(.season-library__article--bestiary) > p:has(> a > strong),
.season-library__article:not(.season-library__article--bestiary) > p:has(> strong > a) { text-align: center; }
.season-library__article a { color: #83d9ff; }
.season-library__article table { width: 100% !important; max-width: 100%; border-collapse: collapse; }
.season-library__article td, .season-library__article th { padding: 7px; border: 1px solid rgba(123, 202, 239, .2); }
.season-library__article img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
.season-library__article picture, .season-library__article video, .season-library__article iframe, .season-library__article object, .season-library__article svg, .season-library__article canvas { display: none !important; }
.season-library__empty { margin: 0; color: #9fbaca; text-align: center; }
.season-library__sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

@media (max-width: 1100px) {
    .season-library__shell { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    main.season-library { min-height: 0; padding: 0 8px 18px; }
    .season-library__shell { grid-template-columns: 1fr; gap: 10px; padding: 10px 0 14px; border: 0; background: transparent; box-shadow: none; }
    .season-library__sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .season-library__group { margin: 0; }
    .season-library__head { align-items: stretch; flex-direction: column; gap: 10px; }
    .season-library__article-nav { grid-template-columns: 68px minmax(0, 1fr) 68px; gap: 7px; width: 100%; min-width: 0; }
    .season-library__body { padding: 12px; overflow-x: auto; }
}

@media (max-width: 420px) {
    .season-library__sidebar { grid-template-columns: 1fr; }
    .season-library__article-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
}

/* Clean donor-style forum shell. The legacy forum data/actions remain in PHP. */
body.season-forum {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #d9e9f4;
    background: #050b13;
}

body.season-forum .b-main-wrapper { flex: 1 0 auto; width: 100%; }

main.season-forum {
    width: 100%;
    min-height: calc(100vh - 252px);
    padding: 0 16px 28px;
    box-sizing: border-box;
    background: linear-gradient(90deg, rgba(30, 93, 132, .08), transparent 24%, transparent 76%, rgba(30, 93, 132, .08)), linear-gradient(180deg, #07111d, #03070d);
}

.season-forum__shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 20px 16px 24px;
    box-sizing: border-box;
    border-right: 1px solid rgba(111, 192, 232, .22);
    border-left: 1px solid rgba(111, 192, 232, .22);
    background: rgba(3, 10, 18, .88);
    box-shadow: 0 0 44px rgba(0, 0, 0, .42);
}

.season-forum__sidebar,
.season-forum__content { min-width: 0; }

.season-forum__group,
.season-forum__content {
    margin: 0 0 10px;
    border: 1px solid rgba(123, 202, 239, .28);
    border-radius: 9px;
    background: linear-gradient(165deg, rgba(10, 38, 61, .74), rgba(3, 13, 25, .94));
    box-shadow: inset 0 1px rgba(216, 246, 255, .06), 0 5px 18px rgba(0, 0, 0, .22);
    overflow: hidden;
}

.season-forum__group summary {
    display: block;
    padding: 10px 12px;
    cursor: pointer;
    color: #edfaff;
    background: linear-gradient(180deg, rgba(18, 83, 125, .92), rgba(5, 33, 66, .94));
    border-bottom: 1px solid rgba(130, 211, 255, .28);
    font: 700 12px/1.3 Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    list-style: none;
}

.season-forum__group summary::-webkit-details-marker { display: none; }
.season-forum__categories { display: flex; flex-direction: column; padding: 6px; }
.season-forum__categories a {
    display: block;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #bcd6e6 !important;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none !important;
}
.season-forum__categories a:hover { color: #f1fbff !important; background: rgba(23, 92, 135, .35); }
.season-forum__categories a.is-active { border-color: rgba(131, 216, 255, .48); color: #fff !important; background: linear-gradient(180deg, rgba(20, 92, 139, .88), rgba(4, 37, 76, .94)); }

.season-forum__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(123, 202, 239, .25);
    background: rgba(2, 17, 31, .72);
}
.season-forum__eyebrow { display: block; margin-bottom: 3px; color: #76b9dc; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.season-forum__head h1 { margin: 0; color: #edfaff; font: 700 21px/1.25 Georgia, 'Times New Roman', serif; }

.season-forum__topics,
.season-forum__posts { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.season-forum__topic,
.season-forum__post {
    min-width: 0;
    border: 1px solid rgba(123, 202, 239, .25);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(6, 25, 43, .76), rgba(2, 12, 23, .84));
    box-shadow: inset 0 1px rgba(220, 248, 255, .035);
}
.season-forum__topic-link { display: flex; flex-direction: column; gap: 8px; padding: 13px 15px; color: inherit !important; text-decoration: none !important; }
.season-forum__topic:hover { border-color: rgba(143, 223, 255, .55); background: linear-gradient(180deg, rgba(10, 45, 73, .82), rgba(3, 20, 37, .88)); }
.season-forum__topic-head,
.season-forum__post > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.season-forum__topic-head strong { color: #edfaff; font-size: 16px; line-height: 1.3; }
.season-forum__topic-head time,
.season-forum__post time { flex: 0 0 auto; color: #82bad8; font-size: 12px; font-weight: normal; white-space: nowrap; }
.season-forum__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.season-forum__badges span { padding: 2px 7px; border: 1px solid rgba(132, 214, 255, .36); border-radius: 10px; color: #bfe9fb; background: rgba(11, 66, 102, .48); font-size: 10px; text-transform: uppercase; }
.season-forum__excerpt { color: #a9c4d7; font-size: 13px; line-height: 1.45; }
.season-forum__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #78a9c5; font-size: 12px; }
.season-forum__empty { margin: 0; padding: 24px; color: #9fbaca; text-align: center; }

.season-forum__post { padding: 14px 16px; }
.season-forum__post--starter { border-color: rgba(139, 218, 255, .4); }
.season-forum__post > header { margin: -14px -16px 13px; padding: 10px 14px; border-bottom: 1px solid rgba(123, 202, 239, .2); background: rgba(8, 41, 67, .45); }
.season-forum__post > header strong { color: #edfaff; }
.season-forum__post-body { color: #c8dde9; font-size: 14px; line-height: 1.58; overflow-wrap: anywhere; }
.season-forum__post-body img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
.season-forum__post-body table { width: 100% !important; max-width: 100%; border-collapse: collapse; }
.season-forum__post-body td, .season-forum__post-body th { padding: 6px; border: 1px solid rgba(123, 202, 239, .18); }
.season-forum__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 12px; }
.season-forum__actions a { padding: 4px 8px; border: 1px solid rgba(132, 214, 255, .38); border-radius: 5px; color: #83d9ff !important; background: rgba(8, 52, 84, .5); font-size: 11px; text-decoration: none !important; }
.season-forum__actions a.is-danger { border-color: rgba(255, 126, 126, .42); color: #ffb2b2 !important; background: rgba(93, 17, 29, .45); }

.season-forum__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 13px;
    box-sizing: border-box;
    border: 1px solid rgba(132, 214, 255, .65);
    border-radius: 7px;
    color: #e8f8ff !important;
    background: linear-gradient(180deg, rgba(20, 92, 139, .96), rgba(4, 37, 76, .98));
    box-shadow: inset 0 1px rgba(225, 249, 255, .16), 0 2px 8px rgba(0, 0, 0, .28);
    font: 700 12px/1.2 Arial, sans-serif;
    text-decoration: none !important;
    cursor: pointer;
}
.season-forum__pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 14px 16px; }

.season-forum__composer { margin: 0 14px 14px; padding: 14px; border: 1px solid rgba(123, 202, 239, .3); border-radius: 7px; background: rgba(2, 14, 26, .78); }
.season-forum__post-body .season-forum__composer { margin: 0; }
.season-forum__composer h2 { margin: 0 0 12px; color: #edfaff; font: 700 16px/1.3 Georgia, 'Times New Roman', serif; }
.season-forum__composer form,
.season-forum__composer label { display: flex; flex-direction: column; gap: 6px; }
.season-forum__composer form { gap: 11px; }
.season-forum__composer label { color: #bcd6e6; font-size: 12px; font-weight: 700; }
.season-forum__composer input,
.season-forum__composer textarea { width: 100%; padding: 9px 10px; box-sizing: border-box; border: 1px solid rgba(126, 207, 246, .48); border-radius: 5px; color: #eefaff; background: #041426; font: 14px/1.45 Arial, sans-serif; resize: vertical; }
.season-forum__composer .season-forum__button { align-self: flex-end; min-width: 130px; }

@media (max-width: 768px) {
    main.season-forum { min-height: 0; padding: 0 8px 18px; }
    .season-forum__shell { grid-template-columns: 1fr; gap: 10px; padding: 10px 0 14px; border: 0; background: transparent; box-shadow: none; }
    .season-forum__sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .season-forum__group { margin: 0; }
    .season-forum__head { align-items: stretch; flex-direction: column; gap: 10px; }
    .season-forum__head .season-forum__button { align-self: flex-start; }
    .season-forum__topics, .season-forum__posts { padding: 10px; }
}

@media (max-width: 520px) {
    .season-forum__sidebar { grid-template-columns: 1fr; }
    .season-forum__topic-head,
    .season-forum__post > header { flex-direction: column; gap: 4px; }
    .season-forum__topic-head time,
    .season-forum__post time { white-space: normal; }
    .season-forum__composer { margin-right: 10px; margin-left: 10px; }
}

/* Donor-style rating shell. Legacy PHP keeps producing the leaderboard data. */
body.season-rating-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #d9e9f4;
    background: #050b13;
}

body.season-rating-page .b-main-wrapper { flex: 1 0 auto; width: 100%; }

.season-rating-page__main {
    width: 100%;
    min-height: calc(100vh - 252px);
    padding: 0 16px 28px;
    box-sizing: border-box;
    background: linear-gradient(90deg, rgba(30, 93, 132, .08), transparent 24%, transparent 76%, rgba(30, 93, 132, .08)), linear-gradient(180deg, #07111d, #03070d);
}

.season-rating-page__shell {
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 20px 16px 26px;
    box-sizing: border-box;
    border-right: 1px solid rgba(111, 192, 232, .22);
    border-left: 1px solid rgba(111, 192, 232, .22);
    background: rgba(3, 10, 18, .88);
    box-shadow: 0 0 44px rgba(0, 0, 0, .42);
}

.season-rating-page__nav { margin-bottom: 12px; }
.season-rating-page__groups { display: flex; overflow: hidden; border: 1px solid rgba(123, 202, 239, .35); border-radius: 8px; background: rgba(3, 16, 29, .92); }
.season-rating-page__groups a { display: flex; flex: 1 1 0; align-items: center; justify-content: center; min-height: 42px; padding: 7px 13px; box-sizing: border-box; border-right: 1px solid rgba(123, 202, 239, .2); color: #bcd6e6 !important; background: linear-gradient(180deg, rgba(16, 67, 103, .62), rgba(4, 30, 56, .9)); font: 700 13px/1.25 Arial, sans-serif; text-align: center; text-decoration: none !important; }
.season-rating-page__groups a:last-child { border-right: 0; }
.season-rating-page__groups a:hover, .season-rating-page__groups a.is-active { color: #fff !important; background: linear-gradient(180deg, rgba(28, 112, 166, .95), rgba(5, 48, 88, .98)); box-shadow: inset 0 -2px #74d5ff; }

.season-rating-page__modes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; padding: 8px; border: 1px solid rgba(123, 202, 239, .2); border-radius: 8px; background: rgba(2, 14, 25, .7); }
.season-rating-page__modes a { display: inline-flex; align-items: center; gap: 6px; min-height: 31px; padding: 4px 11px; box-sizing: border-box; border: 1px solid rgba(123, 202, 239, .27); border-radius: 16px; color: #a9c9dc !important; background: rgba(12, 63, 98, .28); font: 600 12px/1.2 Arial, sans-serif; text-decoration: none !important; }
.season-rating-page__modes a:hover, .season-rating-page__modes a.is-active { border-color: rgba(133, 219, 255, .72); color: #fff !important; background: rgba(24, 111, 164, .62); }
.season-rating-page__modes img { object-fit: contain; }
.season-rating-page__mobile-nav { display: none; }

.season-rating-page__panel { overflow: hidden; border: 1px solid rgba(123, 202, 239, .3); border-radius: 9px; background: linear-gradient(165deg, rgba(9, 36, 58, .78), rgba(2, 12, 23, .96)); box-shadow: inset 0 1px rgba(216, 246, 255, .06), 0 7px 22px rgba(0, 0, 0, .28); }
.season-rating-page__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 17px; box-sizing: border-box; border-bottom: 1px solid rgba(123, 202, 239, .25); background: rgba(2, 17, 31, .72); }
.season-rating-page__eyebrow { display: block; margin-bottom: 3px; color: #76b9dc; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.season-rating-page__head h1 { display: flex; align-items: center; gap: 8px; margin: 0; color: #edfaff; font: 700 21px/1.25 Georgia, 'Times New Roman', serif; }
.season-rating-page__head h1 img { object-fit: contain; }
.season-rating-page__head > span { color: #76b9dc; font-size: 12px; }
.season-rating-page__content { min-width: 0; padding: 16px; overflow-x: auto; }
.season-rating-page__content .content { width: 100%; min-width: 0; margin: 0; padding: 0; color: #c8dde9; background: none; }

.season-rating-page__content .rating-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px; border: 1px solid rgba(123, 202, 239, .22); border-radius: 7px; background: rgba(2, 16, 29, .75); }
.season-rating-page__content .btn-rating { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid rgba(132, 214, 255, .42); border-radius: 6px; color: #d8edf7; background: linear-gradient(180deg, rgba(17, 78, 119, .82), rgba(4, 35, 67, .92)); font-size: 12px; }
.season-rating-page__content .btn-rating .btn { display: block; width: 15px; height: 15px; border: 1px solid #8bdcff; border-radius: 50%; background: #0b5788; box-shadow: inset 0 0 0 3px #052742; }
.season-rating-page__content .rating-search { display: flex; float: none; flex: 0 1 auto; align-items: center; gap: 7px; margin: 0; }
.season-rating-page__content .b-filter, .season-rating-page__content .ff__input-wrap, .season-rating-page__content .ff__input-wrap-inner, .season-rating-page__content .ff__input-wrap-input { display: block; position: relative; width: auto; height: auto; margin: 0; padding: 0; background: none; }
.season-rating-page__content .b-filter { flex: 0 1 220px; }
.season-rating-page__content .b-filter__icon, .season-rating-page__content .b-filter__reset { display: none; }
.season-rating-page__content .filterField { position: static; display: block; width: 220px; height: 34px; margin: 0; padding: 7px 10px; box-sizing: border-box; border: 1px solid rgba(126, 207, 246, .5); border-radius: 5px; color: #eefaff; background: #041426; }
.season-rating-page__content .ff__input-wrap-input label { position: absolute; top: 9px; left: 10px; color: #789ab0; pointer-events: none; }
.season-rating-page__content .filterField:focus + label, .season-rating-page__content .filterField:not([value=""]) + label { display: none; }
.season-rating-page__content b.butt1, .season-rating-page__content b.butt1 > b { display: inline-flex; align-items: center; height: auto; margin: 0; padding: 0; background: none; }
.season-rating-page__content input.redd { min-height: 34px; padding: 6px 13px; border: 1px solid rgba(132, 214, 255, .6); border-radius: 6px; color: #e8f8ff !important; background: linear-gradient(180deg, rgba(20, 92, 139, .96), rgba(4, 37, 76, .98)); font-weight: 700; cursor: pointer; }

.season-rating-page__content .rating-table, .season-rating-page__content .user-rating { width: 100%; min-width: 580px; border-collapse: collapse; color: #c8dde9; background: rgba(1, 11, 21, .48); }
.season-rating-page__content .rating-table th, .season-rating-page__content .user-rating th { padding: 11px 12px; border: 1px solid rgba(123, 202, 239, .24); color: #edfaff; background: rgba(14, 65, 101, .58); font-size: 12px; text-align: left; }
.season-rating-page__content .rating-table td, .season-rating-page__content .user-rating td { padding: 10px 12px; border: 1px solid rgba(123, 202, 239, .16); color: #c8dde9; background: transparent; }
.season-rating-page__content .rating-table tr:hover td, .season-rating-page__content .user-rating tr:hover td { background: rgba(19, 82, 122, .25); }
.season-rating-page__content .rating-place { color: #72d2ff !important; font-weight: 700; }
.season-rating-page__content a { color: #83d9ff; }
.season-rating-page__content img { max-width: 100%; height: auto; vertical-align: middle; }
.season-rating-page__content .rating-bg, .season-rating-page__content .coll { width: 100%; box-sizing: border-box; }
.season-rating-page__content .pages, .season-rating-page__content .page-list { margin-top: 13px; text-align: center; }

@media (max-width: 768px) {
    .season-rating-page__main { min-height: 0; padding: 0 8px 18px; }
    .season-rating-page__shell { padding: 10px 0 16px; border: 0; background: transparent; box-shadow: none; }
    .season-rating-page__groups, .season-rating-page__modes { display: none; }
    .season-rating-page__mobile-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border: 1px solid rgba(123, 202, 239, .3); border-radius: 8px; background: rgba(3, 16, 29, .92); }
    .season-rating-page__mobile-nav label { display: flex; flex-direction: column; gap: 4px; color: #76b9dc; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
    .season-rating-page__mobile-nav select { width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid rgba(132, 214, 255, .52); border-radius: 5px; color: #e8f8ff; background: #062340; }
    .season-rating-page__head { align-items: flex-start; flex-direction: column; gap: 5px; }
    .season-rating-page__content { padding: 10px; }
    .season-rating-page__content .rating-filter { align-items: stretch; flex-direction: column; }
    .season-rating-page__content .rating-search, .season-rating-page__content .filterField { width: 100%; }
    .season-rating-page__content .b-filter { flex: 1 1 auto; width: auto; }
}

@media (max-width: 460px) {
    .season-rating-page__mobile-nav { grid-template-columns: 1fr; }
    .season-rating-page__head h1 { font-size: 18px; }
}

/*
 * Donor bestiary composition, winter palette.
 * Бестиарий (`library/bestiary.area`): поиск и таблица под тёмную библиотеку.
 * Обёртка `.library-nev-bestiary` — на странице библиотеки и в iframe `bestiary_frame.php`.
 */
.library-nev-bestiary {
	color: rgba(224, 245, 255, 0.92);
	font-family: "Segoe UI", Tahoma, Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.45;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding: 10px 12px 12px;
	border: 1px solid rgba(123, 202, 239, 0.38);
	border-radius: 11px;
	background: linear-gradient(180deg, rgba(4, 20, 36, 0.92) 0%, rgba(2, 12, 22, 0.95) 100%);
	box-shadow: inset 0 1px 0 rgba(216, 246, 255, 0.08), 0 6px 20px rgba(0, 0, 0, 0.28);
}

.library-nev-bestiary table {
	border-collapse: collapse;
	box-sizing: border-box;
	max-width: 100%;
}

.library-nev-bestiary .library-nev-bestiary-list {
	table-layout: fixed;
}

.library-nev-bestiary .bg_l {
	background: rgba(9, 38, 63, 0.94) !important;
	background-image: none !important;
	color: inherit !important;
}

.library-nev-bestiary table.coll {
	border: 1px solid rgba(123, 202, 239, 0.38);
	border-radius: 10px;
	overflow: hidden;
	background: rgba(6, 28, 48, 0.96);
}

.library-nev-bestiary .library-nev-bestiary-search-table {
	margin-bottom: 8px;
	background: transparent !important;
}

.library-nev-bestiary .library-nev-bestiary-search-table > tbody > tr,
.library-nev-bestiary .library-nev-bestiary-search-table > tbody > tr > td {
	background: transparent !important;
}

.library-nev-bestiary .library-nev-bestiary-btn-shell {
	font-size: 0 !important;
}

.library-nev-bestiary table.coll td,
.library-nev-bestiary table.coll th {
	padding: 10px 12px;
	vertical-align: top;
	border-color: rgba(78, 138, 172, 0.38) !important;
}

.library-nev-bestiary table.coll > tbody > tr.bg_l > td > b,
.library-nev-bestiary table.coll th {
	color: #c8dde9;
	font-weight: 700;
}

.library-nev-bestiary table.coll > thead > tr,
.library-nev-bestiary tr.bg_l.brd2-bt th {
	background: rgba(12, 55, 88, 0.92);
	color: #dff4ff;
}

.library-nev-bestiary .library-nev-bestiary-list th {
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.02em;
	text-align: center;
}

.library-nev-bestiary .library-nev-bot-card {
	text-align: center;
}

.library-nev-bestiary .library-nev-bot-card-cell {
	padding: 4px !important;
}

.library-nev-bestiary .library-nev-bot-card__image-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	border: 1px solid rgba(130, 211, 255, 0.55);
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(7, 30, 52, 0.9) 0%, rgba(3, 18, 32, 0.92) 100%);
	box-shadow: inset 0 1px 0 rgba(216, 246, 255, 0.09), 0 4px 12px rgba(0, 0, 0, 0.24);
	text-decoration: none !important;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.library-nev-bestiary .library-nev-bot-card__image-link:hover {
	transform: translateY(-1px) scale(1.02);
	border-color: rgba(151, 215, 242, 0.85);
	box-shadow: inset 0 1px 0 rgba(220, 248, 255, 0.16), 0 8px 18px rgba(0, 0, 0, 0.34), 0 0 10px rgba(130, 211, 255, 0.16);
}

.library-nev-bestiary .library-nev-bot-card__image {
	display: block;
	width: 60px;
	height: 60px;
	border-radius: 6px;
	object-fit: cover;
}

.library-nev-bestiary .library-nev-bot-card__title {
	margin-top: 8px;
	min-height: 10px;
}

.library-nev-bestiary .library-nev-bot-card__title b {
	display: inline-block;
	font-weight: 700;
	line-height: 1.25;
}

.library-nev-bestiary input[type="text"].brd,
.library-nev-bestiary input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 34px;
	padding: 6px 10px;
	border-radius: 6px;
	border: 1px solid rgba(100, 176, 218, 0.45) !important;
	background: rgba(3, 18, 32, 0.94) !important;
	background-image: none !important;
	color: rgba(224, 245, 255, 0.96) !important;
}

.library-nev-bestiary input::placeholder {
	color: rgba(200, 185, 160, 0.5);
}

.library-nev-bestiary .redd,
.library-nev-bestiary .redd * {
	color: inherit !important;
}

.library-nev-bestiary a,
.library-nev-bestiary a.b {
	color: #bfe0ff !important;
	text-decoration: none !important;
	border-bottom: 1px dashed rgba(191, 224, 255, 0.35) !important;
}

.library-nev-bestiary a:hover,
.library-nev-bestiary a.b:hover {
	color: #dff4ff !important;
	text-decoration: underline !important;
}

.library-nev-bestiary .library-nev-bot-drop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 4px 12px;
	border: 1px solid rgba(111, 192, 232, 0.5) !important;
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(10, 58, 92, 0.82) 0%, rgba(7, 34, 58, 0.88) 100%) !important;
	box-shadow: inset 0 1px 0 rgba(216, 246, 255, 0.12), 0 2px 10px rgba(0, 0, 0, 0.24);
	color: #d9edff !important;
	text-decoration: none !important;
	border-bottom: 1px solid rgba(111, 192, 232, 0.35) !important;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.library-nev-bestiary .library-nev-bot-drop-btn:hover {
	transform: translateY(-1px);
	border-color: rgba(151, 215, 242, 0.78) !important;
	box-shadow: inset 0 1px 0 rgba(220, 248, 255, 0.2), 0 4px 14px rgba(0, 0, 0, 0.32);
	color: #f3fbff !important;
	text-decoration: none !important;
}

.library-nev-bestiary .library-nev-bestiary-admin-toggle {
	float: right;
}

.library-nev-bestiary .library-nev-bot-cell-pad {
	padding: 8px !important;
}

.library-nev-bestiary .library-nev-bot-drop-cell {
	height: 48px;
	padding: 8px !important;
}

.library-nev-bestiary .library-nev-hidden-row {
	display: none;
}

.library-nev-bestiary .library-nev-bot-row-drop-detail {
	width: 100%;
}

.library-nev-bestiary .library-nev-bot-row-drop-detail > td {
	display: table-cell;
	width: 100%;
	box-sizing: border-box;
}

.library-nev-bestiary .library-nev-bot-drop-content {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 28px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	text-align: left;
	z-index: 1;
}

.library-nev-bestiary .library-nev-bot-drop-col {
	float: none;
	min-width: 0;
	box-sizing: border-box;
	line-height: 1.45;
}

.library-nev-bestiary .library-nev-bot-drop-col--offset {
	margin-left: 0;
}

.library-nev-bestiary .library-nev-bestiary-artifact-title {
	cursor: pointer;
}

.library-nev-bestiary .library-nev-cell-center {
	text-align: center;
	vertical-align: middle;
}

.library-nev-bestiary .library-nev-bot-loc-ico {
	vertical-align: middle;
}

/* Кнопки «Сбросить» / «Найти»: убираем красные спрайты tbl-btn2_* */
.library-nev-bestiary b.butt1 {
	height: auto !important;
	font-size: inherit !important;
	display: inline-flex !important;
	align-items: stretch;
	background: none !important;
	margin: 0 8px 0 0;
	vertical-align: middle;
}

.library-nev-bestiary b.butt1:last-child {
	margin-right: 0;
}

.library-nev-bestiary b.butt1 b {
	height: auto !important;
	font-size: inherit !important;
	display: flex !important;
	align-items: center;
	background: none !important;
	padding: 0 !important;
}

.library-nev-bestiary b.butt1 input[type="submit"],
.library-nev-bestiary b.butt1 input[type="button"] {
	height: auto !important;
	min-height: 19px;
	margin: 0 !important;
	min-width: 112px;
	padding: 3px 30px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	font-family: inherit !important;
	color: #9fe3ff !important;
	background: linear-gradient(180deg, rgba(12, 70, 108, 0.95) 0%, rgba(8, 40, 68, 0.98) 100%) !important;
	border: 1px solid rgba(132, 214, 255, 0.45) !important;
	border-radius: 8px !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	cursor: pointer;
	text-decoration: none !important;
}

.library-nev-bestiary b.butt1 input[type="submit"]:hover,
.library-nev-bestiary b.butt1 input[type="button"]:hover {
	border-color: rgba(143, 223, 255, 0.55) !important;
	color: #edfaff !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 14px rgba(0, 0, 0, 0.34);
	transform: translateY(-1px);
}

.library-nev-bestiary td.bot-info-stats {
	display: flex;
	justify-content: center;
	align-items: center;
}

.library-nev-bestiary .library-nev-stats-wrap.library-nev-stats-panel {
	display: inline-flex;
	flex-direction: column;
	gap: 8px;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
}

.library-nev-bestiary .library-nev-stats-line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 32px;
	padding: 4px 10px;
	border: 1px solid rgba(111, 192, 232, 0.45);
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(6, 32, 55, 0.9) 0%, rgba(3, 15, 28, 0.92) 100%);
	box-shadow: inset 0 1px 0 rgba(216, 246, 255, 0.08);
}

.library-nev-bestiary .library-nev-stats-money-sep {
	width: 100%;
	box-sizing: border-box;
	margin-top: 2px;
	padding-top: 8px;
	border-top: 1px solid rgba(111, 192, 232, 0.28);
}

.library-nev-bestiary .library-nev-stats-money-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 10px;
}

.library-nev-bestiary .library-nev-stats-panel {
	max-width: 100%;
	width: fit-content;
	margin: 0;
	gap: 6px;
	padding: 8px 10px;
	border: 1px solid rgba(111, 192, 232, 0.45);
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(6, 32, 55, 0.9) 0%, rgba(3, 15, 28, 0.92) 100%);
	box-shadow: inset 0 1px 0 rgba(216, 246, 255, 0.08);
}

.library-nev-bestiary .library-nev-stats-line--compact {
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.library-nev-bestiary .library-nev-money-label,
.library-nev-bestiary .library-nev-stats-label {
	color: #c8dde9;
	font-weight: 700;
	white-space: nowrap;
}

.library-nev-bestiary .library-nev-money-value,
.library-nev-bestiary .library-nev-stats-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	line-height: 1;
}

.library-nev-bestiary .library-nev-stats-money-inline .library-nev-money-label,
.library-nev-bestiary .library-nev-stats-money-inline .library-nev-money-value {
	flex: 0 0 auto;
}

.library-nev-bestiary .library-nev-money-value img {
	vertical-align: middle;
}

.library-nev-bestiary .bot-info-loc {
	text-align: center !important;
	vertical-align: top !important;
	min-width: 280px;
	padding: 2px 6px 0 !important;
}

.library-nev-bestiary .library-nev-bot-loc-table {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	border-collapse: separate;
	border-spacing: 4px 3px;
	table-layout: fixed;
	font-size: 11px;
	line-height: 1.18;
}

.library-nev-bestiary .library-nev-bot-loc-col {
	width: 50%;
}

.library-nev-bestiary .library-nev-bot-loc-cell {
	text-align: center !important;
	vertical-align: middle !important;
	padding: 4px 6px !important;
	width: 50%;
	border: 1px solid rgba(111, 192, 232, 0.38) !important;
	border-radius: 8px;
	background: rgba(3, 18, 32, 0.92);
	box-shadow: inset 0 1px 0 rgba(216, 246, 255, 0.06);
	word-break: break-word;
}

.library-nev-bestiary .library-nev-bot-loc-cell--empty {
	opacity: 0.35;
	background: rgba(3, 16, 29, 0.42);
	border-style: dotted !important;
}

.library-nev-bestiary .library-nev-bot-loc-cell--message {
	border-style: dashed !important;
	background: rgba(5, 24, 42, 0.72);
}

.library-nev-bestiary .library-nev-bot-loc-cell-inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2px;
	max-width: 100%;
	text-align: center;
	line-height: 1.15;
	min-height: 13px;
}

.library-nev-bestiary .library-nev-bot-loc-cell-inner .library-nev-bot-loc-ico {
	vertical-align: middle;
	flex-shrink: 0;
}

/* Строки данных (в т.ч. из кэша `bot_info`) */
.library-nev-bestiary table.coll > tbody > tr > td {
	background: rgba(5, 24, 42, 0.55);
	color: rgba(224, 245, 255, 0.92);
}

.library-nev-bestiary table.coll > tbody > tr:nth-child(even) > td {
	background: rgba(8, 36, 60, 0.5);
}

.library-nev-bestiary .library-nev-bestiary-list tbody tr:hover td {
	background: rgba(12, 50, 80, 0.64);
}

.library-nev-bestiary .library-nev-bestiary-search-actions td {
	border-top: 0 !important;
	background: transparent !important;
}

/* Пагинация */
.library-nev-bestiary-pager {
	padding: 10px 0 6px;
	color: rgba(224, 245, 255, 0.88);
	font-size: 13px;
	overflow-x: auto;
}

.library-nev-bestiary-pager--top {
	padding: 0 0 10px;
}

.library-nev-bestiary-pager .library-nev-pager-simple {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
}

.library-nev-bestiary-pager .library-nev-pager-controls {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 0;
}

.library-nev-bestiary-pager .library-nev-pager-current,
.library-nev-bestiary-pager .library-nev-pager-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	border-bottom: 0 !important;
}

.library-nev-bestiary-pager .library-nev-pager-current {
	background: linear-gradient(180deg, rgba(12, 70, 108, 0.92) 0%, rgba(8, 40, 68, 0.96) 100%);
	border: 1px solid rgba(132, 214, 255, 0.5);
	color: #e7f7ff;
}

.library-nev-bestiary-pager .library-nev-pager-arrow {
	background: rgba(6, 32, 55, 0.72);
	border: 1px solid rgba(111, 192, 232, 0.35);
	color: #d8ecff !important;
	font-size: 18px;
}

.library-nev-bestiary-pager .library-nev-pager-arrow:hover {
	border-color: rgba(151, 215, 242, 0.68);
	color: #f4fbff !important;
	text-decoration: none !important;
}

.library-nev-bestiary-pager .library-nev-pager-arrow.is-disabled {
	opacity: 0.45;
	color: rgba(216, 236, 255, 0.7) !important;
	cursor: default;
}

.library-nev-bestiary-pager a {
	color: #bfe0ff !important;
	border-bottom: 0 !important;
}

.library-nev-bestiary-pager a:hover {
	color: #dff4ff !important;
}

/* iframe игры: общий фон, если подключён только main/opt без library_nev */
body.bestiary-frame-body {
	font-family: "Segoe UI", Tahoma, Arial, Helvetica, sans-serif;
	margin: 0;
	box-sizing: border-box;
	min-height: 100vh;
	min-height: 100dvh;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: max(8px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px))
		max(12px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
}

body.bestiary-frame-body .library-nev-bestiary {
	max-width: min(960px, 100%);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

/*
 * Бестиарий: адаптив (телефоны / планшеты / узкие ноутбуки).
 * Десктоп: три колонки в строке монстра; телефоны (≤760px): блок монстра в `tbody.library-nev-bestiary-bot-group`
 * — карточка → характеристики → локации → кнопка награды (кэш генерируется в `bestiary_cache.lib`).
 */
@media (max-width: 1100px) {
	.library-nev-bestiary {
		font-size: clamp(12px, 0.35vw + 11px, 13px);
		padding: clamp(8px, 1.5vw, 12px) clamp(8px, 2vw, 12px) clamp(10px, 2vw, 14px);
	}

	.library-nev-bestiary .library-nev-bestiary-list {
		min-width: 520px;
	}

	.library-nev-bestiary .library-nev-bestiary-list colgroup col:nth-child(1) {
		width: 28%;
		min-width: 120px;
	}

	.library-nev-bestiary .library-nev-bestiary-list colgroup col:nth-child(2) {
		width: 32%;
		min-width: 140px;
	}

	.library-nev-bestiary .library-nev-bestiary-list colgroup col:nth-child(3) {
		width: 40%;
		min-width: 180px;
	}

	.library-nev-bestiary .bot-info-loc {
		min-width: 0;
	}

	.library-nev-bestiary .library-nev-bot-loc-table {
		font-size: clamp(10px, 0.25vw + 9px, 11px);
	}
}

@media (max-width: 760px) {
	.library-nev-bestiary .library-nev-bestiary-search-table {
		display: block;
		width: 100%;
	}

	.library-nev-bestiary .library-nev-bestiary-search-table tbody {
		display: block;
		width: 100%;
	}

	.library-nev-bestiary .library-nev-bestiary-search-table tr.bg_l {
		display: flex;
		flex-direction: column;
		gap: 10px;
		width: 100%;
		box-sizing: border-box;
	}

	.library-nev-bestiary .library-nev-bestiary-search-table tr.bg_l > td {
		display: block;
		width: 100% !important;
		box-sizing: border-box;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.library-nev-bestiary tr.library-nev-bestiary-search-actions,
	.library-nev-bestiary tr.library-nev-bestiary-search-actions td {
		display: block;
		width: 100% !important;
		box-sizing: border-box;
	}

	.library-nev-bestiary tr.library-nev-bestiary-search-actions td {
		padding-top: 4px !important;
		text-align: center !important;
	}

	.library-nev-bestiary tr.library-nev-bestiary-search-actions .library-nev-bestiary-btn-shell {
		display: inline-flex !important;
		justify-content: center;
		flex-wrap: wrap;
		gap: 8px;
		width: 100%;
	}

	.library-nev-bestiary b.butt1 input[type="submit"],
	.library-nev-bestiary b.butt1 input[type="button"] {
		min-width: min(160px, 44vw);
		min-height: 40px;
		padding: 8px 16px !important;
		touch-action: manipulation;
	}

	.library-nev-bestiary-pager .library-nev-pager-controls {
		flex-wrap: wrap;
		gap: 8px;
		row-gap: 10px;
	}

	.library-nev-bestiary-pager .library-nev-pager-current,
	.library-nev-bestiary-pager .library-nev-pager-arrow {
		width: min(36px, 11vw);
		height: min(36px, 11vw);
		min-width: 36px;
		min-height: 36px;
		touch-action: manipulation;
	}

	.library-nev-bestiary .library-nev-money-label,
	.library-nev-bestiary .library-nev-stats-label {
		white-space: normal;
		text-align: center;
	}

	.library-nev-bestiary .library-nev-stats-value {
		white-space: normal;
		text-align: center;
	}

	.library-nev-bestiary td.bot-info-stats {
		flex-wrap: wrap;
	}

	.library-nev-bestiary .library-nev-stats-wrap.library-nev-stats-panel {
		width: 100%;
		max-width: 100%;
	}

	.library-nev-bestiary .library-nev-bot-drop-col--offset {
		margin-left: 0;
	}

	.library-nev-bestiary .library-nev-bot-drop-content {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 10px 12px;
	}

	.library-nev-bestiary .library-nev-bot-drop-col {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	/* Узкий экран: без горизонтального скролла таблицы — локации под карточкой, затем «Возможная награда». */
	.library-nev-bestiary .library-nev-bestiary-list {
		min-width: 0;
		width: 100%;
		display: table;
		table-layout: fixed;
	}

	.library-nev-bestiary .library-nev-bestiary-list > tbody.library-nev-bestiary-bot-group {
		display: block;
		width: 100%;
		box-sizing: border-box;
		margin: 0 0 16px;
		border-radius: 10px;
		overflow: hidden;
		border: 1px solid rgba(111, 192, 232, 0.35);
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
	}

	.library-nev-bestiary .library-nev-bestiary-bot-group .library-nev-bot-row-main {
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	.library-nev-bestiary .library-nev-bestiary-bot-group .library-nev-bot-row-main > td {
		display: block;
		width: 100% !important;
		box-sizing: border-box;
		border-width: 0 0 1px 0 !important;
		border-style: solid;
		border-color: rgba(111, 192, 232, 0.28);
	}

	.library-nev-bestiary .library-nev-bestiary-bot-group .library-nev-bot-row-main > td:last-child {
		border-bottom-width: 0 !important;
	}

	.library-nev-bestiary .library-nev-bestiary-bot-group .library-nev-bot-card-cell {
		order: 1;
	}

	.library-nev-bestiary .library-nev-bestiary-bot-group td.bot-info-stats {
		order: 2;
	}

	.library-nev-bestiary .library-nev-bestiary-bot-group td.bot-info-loc {
		order: 3;
		padding-top: 10px !important;
		padding-bottom: 10px !important;
	}

	.library-nev-bestiary .library-nev-bestiary-bot-group .library-nev-bot-row-drop {
		display: block;
		width: 100%;
	}

	.library-nev-bestiary .library-nev-bestiary-bot-group .library-nev-bot-row-drop > td {
		display: block;
		width: 100% !important;
		box-sizing: border-box;
		border-width: 0 !important;
		height: auto;
		min-height: 48px;
	}

	.library-nev-bestiary .library-nev-bestiary-bot-group .library-nev-bot-row-drop-detail > td {
		box-sizing: border-box;
		border-width: 0 !important;
	}
}

@media (max-width: 480px) {
	.library-nev-bestiary .library-nev-bestiary-list {
		min-width: 0;
	}

	.library-nev-bestiary .library-nev-bot-card__image {
		width: min(60px, 15vw);
		height: min(60px, 15vw);
	}
}

/* Встраивание в страницу библиотеки (не iframe): та же сетка */
body.season-library .library-nev-bestiary {
	max-width: 100%;
}

/* Registration: donor mechanics over the supplied winter panel. */
body.season-register {
    min-height: 100vh;
    color: #dff5ff;
}

.season-register-main {
    width: 100%;
    padding: 0 16px 36px;
    box-sizing: border-box;
}

body.season-register form.site-register-card.new-reg-main {
    position: relative;
    display: block;
    width: min(960px, calc(100vw - 32px)) !important;
    max-width: 960px;
    aspect-ratio: 1408 / 1117;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent !important;
    box-shadow: none;
}

body.season-register .site-register-card__art {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

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

body.season-register .site-register-card__canvas-col,
body.season-register .site-register-card__fields-col {
    position: static;
    display: contents;
}

body.season-register .reg-character-creator {
    position: absolute;
    left: 6.25%;
    top: 11.65%;
    z-index: 1;
    display: block;
    width: 42.7%;
    height: 80.8%;
    max-width: none;
}

body.season-register .reg-character-creator__preview {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: 45.9%;
    overflow: hidden;
}

body.season-register .new-reg-flash,
body.season-register #canvasReg,
body.season-register #canvasReg canvas {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0;
    border: 0;
    background: transparent !important;
}

body.season-register #canvasReg canvas {
    transform: translateY(4%);
    transform-origin: 50% 100%;
}

body.season-register .reg-character-creator__panel {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
}

body.season-register .reg-character-creator__race {
    position: absolute;
    left: 0;
    top: 47.7%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6%;
    width: 100%;
    height: 6%;
}

body.season-register .reg-character-creator__race-btn,
body.season-register .reg-character-creator__random-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: transparent;
    font-size: 0;
    cursor: pointer;
}

body.season-register .reg-character-creator__race-btn:hover,
body.season-register .reg-character-creator__race-btn:focus-visible,
body.season-register .reg-character-creator__race-btn.is-active,
body.season-register .reg-character-creator__random-btn:hover,
body.season-register .reg-character-creator__random-btn:focus-visible {
    outline: 0;
    background: rgba(35, 170, 255, .12);
    box-shadow: inset 0 0 18px rgba(85, 211, 255, .22);
}

body.season-register .reg-character-creator__race-desc {
    position: absolute;
    left: 0;
    top: 55.3%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 7.5%;
    margin: 0;
    padding: 0 4%;
    box-sizing: border-box;
    overflow: hidden;
    color: #ccefff;
    font-size: clamp(9px, 1vw, 14px);
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 1px 3px #00152e;
}

body.season-register .reg-character-creator__controls {
    position: absolute;
    left: 0;
    top: 64.1%;
    width: 100%;
    height: 25.5%;
}

body.season-register .reg-character-creator__control {
    position: absolute;
    left: 0;
    width: 100%;
    height: 17.9%;
}

body.season-register .reg-character-creator__control:nth-child(1) { top: 0; }
body.season-register .reg-character-creator__control:nth-child(2) { top: 20.4%; }
body.season-register .reg-character-creator__control:nth-child(3) { top: 40.8%; }
body.season-register .reg-character-creator__control:nth-child(4) { top: 61.2%; }
body.season-register .reg-character-creator__control:nth-child(5) { top: 81.6%; }

body.season-register .reg-character-creator__control-label {
    display: none;
}

body.season-register .reg-character-creator__stepper {
    position: absolute;
    left: 31.8%;
    top: 0;
    display: grid;
    grid-template-columns: 12.5% minmax(0, 1fr) 12.5%;
    gap: 1.8%;
    width: 67.5%;
    height: 100%;
}

body.season-register .reg-character-creator__step-btn,
body.season-register .reg-character-creator__step-value {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1;
    text-align: center;
}

body.season-register .reg-character-creator__step-btn {
    color: transparent;
    font-size: 0;
    cursor: pointer;
}

body.season-register .reg-character-creator__step-btn:hover:not(:disabled),
body.season-register .reg-character-creator__step-btn:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 1px rgba(140, 224, 255, .7), 0 0 10px rgba(54, 194, 255, .4);
}

body.season-register .reg-character-creator__step-btn:disabled {
    cursor: default;
    opacity: .35;
}

body.season-register .reg-character-creator__step-value {
    color: #eafaff;
    font-size: clamp(10px, 1.15vw, 16px);
    text-shadow: 0 1px 3px #00152e;
}

body.season-register .reg-character-creator__random-btn {
    position: absolute;
    left: 0;
    top: 91.3%;
    height: 6.8%;
}

body.season-register .site-register-card__fields-col {
    position: static;
    display: contents;
}

body.season-register .season-register-field,
body.season-register .season-register-referrer,
body.season-register .season-register-auto-password,
body.season-register .season-register-agreement,
body.season-register .season-register-errors,
body.season-register .season-register-submit {
    z-index: 2;
}

body.season-register .season-register-field {
    position: absolute;
    left: 52.55%;
    width: 40.6%;
    height: 4.95%;
}

body.season-register .season-register-field--email { top: 14.45%; }
body.season-register .season-register-field--password { top: 20.98%; }
body.season-register .season-register-field--password-repeat { top: 27.55%; }
body.season-register .season-register-field--nick { top: 34.08%; }
body.season-register .season-register-field--code { top: 40.65%; }

body.season-register .season-register-field input {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0 5%;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 9px;
    outline: 0;
    color: #effbff;
    background: rgba(0, 9, 25, .12);
    font: 600 clamp(11px, 1.15vw, 17px)/1 Arial, sans-serif;
    text-shadow: 0 1px 3px #00152e;
}

body.season-register .season-register-field--password input,
body.season-register .season-register-field--password-repeat input {
    padding-right: 12%;
}

body.season-register .site-register-card__pw-toggle {
    position: absolute;
    right: 2.2%;
    top: 14%;
    width: 8%;
    height: 72%;
    padding: 0;
    border: 0;
    outline: 0;
    color: rgba(180, 229, 251, .78);
    background: transparent;
    cursor: pointer;
}

body.season-register .site-register-card__pw-toggle:hover,
body.season-register .site-register-card__pw-toggle:focus-visible,
body.season-register .site-register-card__pw-toggle.is-revealed {
    color: #8ee4ff;
}

body.season-register .site-register-card__pw-toggle svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.season-register .season-register-field input::placeholder {
    color: rgba(195, 232, 249, .68);
}

body.season-register .season-register-field input:hover,
body.season-register .season-register-field input:focus {
    border-color: rgba(126, 222, 255, .72);
    background: rgba(3, 26, 58, .42);
    box-shadow: inset 0 0 14px rgba(52, 187, 255, .16), 0 0 12px rgba(52, 187, 255, .26);
}

body.season-register .season-register-field .error:not(:empty) {
    position: absolute;
    right: 2%;
    bottom: calc(100% + 2px);
    max-width: 96%;
    overflow: hidden;
    color: #ffb6b6;
    font-size: clamp(8px, .78vw, 11px);
    line-height: 1.15;
    text-align: right;
    white-space: nowrap;
    text-shadow: 0 1px 2px #001020;
}

body.season-register .nick-examples {
    position: absolute;
    left: 3%;
    top: calc(100% + 4px);
    z-index: 5;
    display: none;
    width: 94%;
    max-height: 130px;
    padding: 8px 10px;
    box-sizing: border-box;
    overflow-y: auto;
    border: 1px solid rgba(111, 207, 255, .58);
    border-radius: 7px;
    color: #dff6ff;
    background: rgba(2, 18, 42, .97);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .55);
    font-size: 12px;
}

body.season-register .nick-examples a { color: #8fdfff !important; }

body.season-register .season-register-referrer {
    position: absolute;
    left: 52.8%;
    top: 50.15%;
    width: 40%;
    color: #ccefff;
    font-size: clamp(9px, .85vw, 12px);
    text-align: center;
}

body.season-register .season-register-auto-password {
    position: absolute;
    left: 53.2%;
    top: 47.1%;
    display: flex;
    align-items: flex-start;
    width: 39.4%;
    gap: 7px;
    color: #cce9f7;
    font-size: clamp(8px, .76vw, 11px);
    line-height: 1.2;
    text-shadow: 0 1px 2px #00152e;
    cursor: pointer;
}

body.season-register .season-register-auto-password input {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #36bfff;
}

body.season-register .season-register-agreement {
    position: absolute;
    left: 53.2%;
    top: 52.45%;
    width: 39.4%;
    height: 25.25%;
    margin: 0;
    padding: 1.4% 2%;
    box-sizing: border-box;
    overflow: hidden;
    color: #cce9f7;
    background: rgba(0, 12, 32, .14);
    font-size: clamp(9px, .86vw, 13px);
    line-height: 1.35;
    text-shadow: 0 1px 2px #00152e;
}

body.season-register .season-register-agreement > b {
    display: block;
    margin-bottom: 4px;
    color: #eefbff;
    text-align: center;
}

body.season-register .season-register-agreement ul {
    width: max-content;
    max-width: 100%;
    margin: 0 auto 8px;
    padding-left: 18px;
}

body.season-register .season-register-agreement li { margin: 2px 0; }
body.season-register .season-register-agreement a { color: #86ddff !important; }

body.season-register .season-register-agreement__check {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: 8px auto 0;
    cursor: pointer;
}

body.season-register .season-register-agreement__check input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: #36bfff;
}

body.season-register #licenseErr:not(:empty) {
    margin-top: 4px;
    color: #ffb6b6;
    text-align: center;
}

body.season-register .season-register-errors {
    position: absolute;
    left: 53.2%;
    top: 77.9%;
    width: 39.4%;
    max-height: 7%;
    overflow: auto;
    color: #ffb9b9;
    font-size: clamp(8px, .78vw, 11px);
    line-height: 1.25;
    text-align: center;
}

body.season-register .season-register-errors:empty { display: none; }

body.season-register .season-register-submit {
    position: absolute;
    left: 52.15%;
    top: 82.15%;
    width: 41.5%;
    height: 17.45%;
    padding: 0;
    border: 0;
    outline: 0;
    color: transparent;
    background: transparent url("../images/season/registration-submit-disabled.webp") center / 100% 100% no-repeat;
    box-shadow: none;
    font-size: 0;
    cursor: not-allowed;
}

body.season-register .season-register-submit:not(:disabled) {
    background-image: url("../images/season/registration-submit-active.webp");
    cursor: pointer;
}

body.season-register .season-register-submit:not(:disabled):hover {
    filter: brightness(1.08) drop-shadow(0 0 10px rgba(72, 211, 255, .42));
}

body.season-register .season-register-submit:focus-visible {
    outline: 2px solid #8fe6ff;
    outline-offset: -8px;
}

@media (max-width: 768px) {
    .season-register-main { padding: 0 10px 22px; }

    body.season-register form.site-register-card.new-reg-main {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        max-width: 620px;
        aspect-ratio: auto;
        padding: 12px;
        box-sizing: border-box;
        overflow: hidden;
        border: 1px solid rgba(120, 211, 255, .48);
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(5, 30, 58, .98), rgba(1, 13, 31, .99)) !important;
        box-shadow: inset 0 1px rgba(218, 247, 255, .08), 0 12px 30px rgba(0, 0, 0, .48);
    }

    body.season-register .site-register-card__art { display: none; }

    body.season-register .site-register-card__canvas-col,
    body.season-register .site-register-card__fields-col {
        position: static;
        display: block;
    }

    body.season-register .reg-character-creator {
        position: static;
        display: grid;
        gap: 9px;
        width: 100%;
        height: auto;
    }

    body.season-register .reg-character-creator__preview {
        position: relative;
        width: 100%;
        height: clamp(200px, 58vw, 280px);
        border: 1px solid rgba(120, 211, 255, .38);
        border-radius: 10px;
        background: radial-gradient(ellipse at 50% 75%, rgba(20, 101, 154, .38), rgba(1, 12, 28, .84) 68%);
        box-shadow: inset 0 0 24px rgba(48, 176, 238, .12);
    }

    body.season-register #canvasReg canvas { transform: none; }

    body.season-register .reg-character-creator__panel {
        position: static;
        padding: 10px;
        border: 1px solid rgba(120, 211, 255, .35);
        border-radius: 10px;
        background: rgba(2, 20, 43, .78);
    }

    body.season-register .reg-character-creator__race,
    body.season-register .reg-character-creator__controls {
        position: static;
        width: 100%;
        height: auto;
    }

    body.season-register .reg-character-creator__race {
        gap: 8px;
        margin-bottom: 8px;
    }

    body.season-register .reg-character-creator__race-btn,
    body.season-register .reg-character-creator__random-btn {
        position: static;
        min-height: 40px;
        border: 1px solid rgba(120, 211, 255, .52);
        border-radius: 7px;
        color: #eafaff;
        background: linear-gradient(180deg, rgba(16, 91, 139, .92), rgba(3, 40, 79, .96));
        font-size: 14px;
        text-shadow: 0 1px 2px #00152e;
    }

    body.season-register .reg-character-creator__race-desc {
        position: static;
        width: 100%;
        height: auto;
        min-height: 44px;
        margin: 0 0 9px;
        padding: 8px;
        border: 1px solid rgba(120, 211, 255, .25);
        border-radius: 7px;
        background: rgba(0, 8, 22, .46);
        font-size: 12px;
    }

    body.season-register .reg-character-creator__control {
        position: static;
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        width: 100%;
        height: auto;
        margin-top: 6px;
    }

    body.season-register .reg-character-creator__control-label {
        display: block;
        color: #dff5ff;
        font-size: 13px;
        font-weight: 700;
    }

    body.season-register .reg-character-creator__stepper {
        position: static;
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 6px;
        width: 100%;
        height: 36px;
    }

    body.season-register .reg-character-creator__step-btn,
    body.season-register .reg-character-creator__step-value {
        height: 36px;
        border: 1px solid rgba(120, 211, 255, .44);
        border-radius: 6px;
        background: rgba(2, 23, 50, .92);
    }

    body.season-register .reg-character-creator__step-btn {
        color: #eafaff;
        font-size: 22px;
    }

    body.season-register .reg-character-creator__step-value { font-size: 13px; }
    body.season-register .reg-character-creator__random-btn { margin-top: 9px; }

    body.season-register .site-register-card__fields-col {
        display: flex;
        flex-direction: column;
        gap: 9px;
        margin-top: 12px;
    }

    body.season-register .season-register-field,
    body.season-register .season-register-referrer,
    body.season-register .season-register-auto-password,
    body.season-register .season-register-agreement,
    body.season-register .season-register-errors,
    body.season-register .season-register-submit {
        position: static;
        width: 100%;
        height: auto;
    }

    body.season-register .season-register-field--password,
    body.season-register .season-register-field--password-repeat {
        position: relative;
    }

    body.season-register .season-register-field input {
        height: 44px;
        padding: 8px 12px;
        border: 1px solid rgba(120, 211, 255, .46);
        border-radius: 8px;
        color: #effbff;
        background: rgba(0, 10, 27, .88);
        font-size: 16px;
    }

    body.season-register .season-register-field .error:not(:empty) {
        position: static;
        display: block;
        max-width: none;
        margin: 0 0 4px;
        font-size: 12px;
        text-align: left;
        white-space: normal;
    }

    body.season-register .nick-examples {
        position: static;
        width: 100%;
        margin-top: 5px;
    }

    body.season-register .season-register-auto-password {
        align-items: flex-start;
        padding: 3px 2px;
        box-sizing: border-box;
        font-size: 12px;
    }

    body.season-register .season-register-auto-password input {
        width: 17px;
        height: 17px;
    }

    body.season-register .season-register-agreement {
        padding: 11px 12px;
        overflow: visible;
        border: 1px solid rgba(120, 211, 255, .3);
        border-radius: 9px;
        background: rgba(0, 11, 28, .58);
        font-size: 12px;
    }

    body.season-register .season-register-errors {
        max-height: none;
        font-size: 12px;
    }

    body.season-register .season-register-submit {
        min-height: 0;
        aspect-ratio: 2172 / 724;
        margin-top: 2px;
    }
}
