/*
 * The language switch is the menu's last item, the same markup on every width (owner 2026-11-29: no copy for phones).
 * Phones have no menu, only this item: in the right corner, a dark translucent tile with «EN», orange on press.
 */
@media (max-width: 900px) {
    .header-links {
        display: block;
        position: absolute;
        right: 5px;
        z-index: 3;
    }

    .header-links::after,
    .header-links .header-link-li:not(.lang-switch),
    .header-links .lang-switch .link-text {
        display: none;
    }

    .header-links .links-header-ul {
        display: block;
        margin: 0;
        padding: 0;
    }

    .header-links .lang-switch {
        display: block;
        margin: 0;
        padding: 0;
    }

    .header-links .lang-switch a.link-header-a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 41px;
        height: 36px;
        padding: 0 10px;
        border-radius: 6px;
        background: rgba(var(--ms-grey-rgb), 0.11);
        color: var(--ms-text-3);
        -webkit-tap-highlight-color: transparent;
        transition: background 0.3s, color 0.3s;
    }

    .header-links .lang-switch a.link-header-a::after,
    .header-links .lang-switch a.link-header-a::before {
        display: none;
    }

    .header-links .lang-switch .ico-header-a.lang-ico {
        width: auto;
        height: auto;
        padding: 0;
        background: none;
        color: inherit;
        font-size: 13px;
    }

    .header-links .lang-switch a.link-header-a:active {
        background: rgba(var(--ms-buy-rgb), 0.2);
        color: var(--ms-accent-text);
    }
}

/* The decorative header images overlap the right end of the menu, where the switch is: let clicks through. */
.parallex-effect {
    pointer-events: none;
}

span.ico-header-a svg[viewBox="0 0 19 21"] {
    translate: -0.4px -0.15px;
}

span.ico-header-a svg[viewBox="-1 0 19 21"] {
    translate: -0.65px -0.15px;
}

/*
 * Server list on mobile: the whole card is the button (it already opens the shop): the header (the grid below, the same
 * on every width), then «Играть» and «Донат» in a row (purchase-sheet.css). The address is desktop only.
 */
@media (max-width: 900px) {
    .server-object {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        height: auto !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: box-shadow 0.3s;
    }

    .server-object:active {
        box-shadow: inset 0 0 0 1px rgba(var(--ms-accent-text-rgb), 0.45);
    }
}

/* Stats tiles (players / donors / servers): centred, not pushed left when the column is wider. */
@media (min-width: 901px) {
    .center-top-block-a {
        justify-content: center;
    }
}

:is(.left-block-a, .right-block-a) .mvx {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 16px 30px 30px;
}

.mvx-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.mvx-big {
    color: #fff;
    font-family: var(--font-family-first);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.mvx-sub,
.mvx-peak span {
    display: block;
    margin-top: 6px;
    color: var(--ms-text-3);
    font-family: var(--font-family-second);
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
}

.mvx-peak {
    text-align: right;
}

.mvx-peak b {
    display: block;
    color: var(--ms-accent-text);
    font-family: var(--font-family-first);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.mvx-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 48px;
    margin-top: 18px;
}

.mvx-chart i {
    flex: 1;
    border-radius: 2px 2px 0 0;
    background: rgba(var(--ms-grey-rgb), 0.3);
}

.mvx-chart i.peak {
    background: rgba(var(--ms-accent-text-rgb), 0.5);
}

.mvx-chart i.now {
    background: var(--ms-accent-text);
}

.mvx-base {
    height: 1px;
    background: rgba(var(--ms-grey-rgb), 0.2);
}

.mvx-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: var(--ms-text-4);
    font-family: var(--font-family-second);
    font-size: 10px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.mvx-howto {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(var(--ms-grey-rgb), 0.11);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.mvx-howto:hover {
    background: rgba(var(--ms-buy-rgb), 0.2);
}

.mvx-howto span {
    display: block;
    color: #fff;
    font-family: var(--font-family-second);
    font-size: 13px;
    font-weight: 600;
}

.mvx-howto small {
    display: block;
    margin-top: 2px;
    color: var(--ms-text-3);
    font-family: var(--font-family-second);
    font-size: 11px;
    font-weight: 500;
}

.mvx-howto em {
    color: var(--ms-accent-text);
    font-family: var(--font-family-second);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

/*
 * Server cards on desktop: the IP in a dark field with a copy button. Phones skip the address (the «Играть» sheet has it).
 */
.server-address {
    display: none;
}

@media (min-width: 901px) {
    .server-object .monitoring-server {
        gap: 10px;
    }

    /* The card and its monitoring part are one-column grids: an auto column grows to the
       address row's natural width and pushes it into the right padding, so pin it to the card. */
    .server-object,
    .server-object .monitoring-server {
        grid-template-columns: minmax(0, 1fr);
    }

    /* IP and port share a line while both fit whole; on narrower cards the port moves under the IP
       instead of cutting the address short. */
    .server-address {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .server-address-field {
        display: flex;
        flex: 1 0 auto;
        align-items: center;
        gap: 4px;
        height: 36px;
        padding: 0 4px 0 8px;
        border-radius: 8px;
        background: var(--ms-field);
    }

    .server-address-field small {
        color: var(--ms-text-4);
        font-family: var(--font-family-second);
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.06em;
    }

    .server-address-field span {
        flex: 1;
        overflow: hidden;
        color: #fff;
        font-family: var(--font-family-second);
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .server-address-field.port span {
        color: var(--ms-accent-text);
        font-variant-numeric: tabular-nums;
    }

    .server-address-copy {
        display: flex;
        flex: none;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        padding: 0;
        border: 0;
        border-radius: 6px;
        background: rgba(var(--ms-grey-rgb), 0.15);
        color: var(--ms-text-3);
        cursor: pointer;
        transition:
            background 0.3s,
            color 0.3s;
    }

    .server-address-copy:hover {
        background: rgba(var(--ms-buy-rgb), 0.2);
        color: var(--ms-accent-text);
    }

    .server-address-copy.copied {
        color: #4ade80;
    }
}

/*
 * Stats on mobile: one green plate with three numbers. The free space is shared equally — the same
 * gap at both edges and between the numbers (15px on the 275px plate), whatever their widths.
 */
@media (max-width: 900px) {
    .center-top-block-a .right-info-block-b {
        display: flex;
        justify-content: space-evenly;
        gap: 0;
    }

    .center-top-block-a .stats-object-b {
        flex: none;
        width: auto;
    }
}

/*
 * Server cards on desktop: compact, with one rhythm (12px between the parts, 10px inside the
 * monitoring part), and a calm "Перейти в магазин" button instead of the loud "Выбрать".
 * The label comes from CSS so the page does not flash the old text before scripts run.
 */
@media (min-width: 901px) {
    .server-object {
        height: auto;
        align-content: start;
        row-gap: 12px;
    }
}

/* Server icon: the mob head from the admin panel, bare on the card like in the sheets: no glow, no shadow under it
 * (owner 2026-11-29). The mode line under the name takes the colour of the head. */
.server-object[data-shop="1"] .description-server {
    color: var(--ms-mode-1);
}

.server-object[data-shop="2"] .description-server {
    color: var(--ms-mode-2);
}

.server-object[data-shop="3"] .description-server {
    color: var(--ms-mode-3);
}

.server-object[data-shop="4"] .description-server {
    color: var(--ms-mode-4);
}

/* The box is as wide as the visible head (28 of its 32 px), so the head lines up with the IP field; the head is centred
 * on the box's height, so it stands level with the name and the mode beside it (owner 2026-11-29). */
.server-object .ico-server {
    position: relative;
    display: block;
    flex: 0 0 34px;
    width: 34px;
    height: 38px;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.server-object .ico-server-img {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: -2px;
    width: 38px;
    height: 38px;
    margin: -19px 0 0;
    image-rendering: auto;
}

/* Hover: the head lifts a little. Desktop only, no motion for those who asked for less. */
@media (min-width: 901px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
    .server-object .ico-server-img {
        transition: transform 0.2s steps(2, end);
    }

    .server-object:hover .ico-server-img {
        transform: translateY(-2px);
    }
}

/* Mobile cards: 48px tall row, a 30px icon column (set in the mobile grid above). */
@media (max-width: 900px) {
    .server-object .ico-server {
        flex-basis: 30px;
        width: 30px;
    }

    .server-object .ico-server-img {
        width: 34px;
        height: 34px;
        margin-top: -17px;
    }
}

/*
 * d3 «премиально и спокойно»: pixel steps reduced to one calm motif.
 *
 * 1. Every old rectangle goes: all bumps of arbitrary sizes and every fake cut painted in the page colour.
 * 2. Each large panel gets exactly one "tab": a step on its top edge (the server list: bottom edge,
 *    because the hero characters stand on its top), in the panel colour,
 *    on an 8px grid: always 8px deep and 32px from the left corner, 96px wide on the narrow
 *    panels and 192px wide on the wide ones. It touches no text and no neighbouring panel.
 * 3. Phones (≤900px): no decor at all.
 *
 * The markup is unchanged; the tab reuses the existing .decor-1 element of each panel.
 */

[class*="absolute-block-decor"] {
    display: none !important;
}

@media (min-width: 901px) {
    /* Wide panels: the server list on the main page, the panel on doplata / moneyback / winners / contest. */
    .select-servers-block > .group-absolute-decore > .absolute-block-decor.decor-1,
    
    .left-block-a > .group-absolute-decore > .absolute-block-decor-5.decor-1,
    .center-top-block-a > .group-absolute-decore > .absolute-block-decor-6.decor-1,
    .right-block-a > .group-absolute-decore > .absolute-block-decor-8.decor-1 {
        display: block !important;
        position: absolute;
        top: -8px;
        right: auto;
        bottom: auto;
        left: 32px;
        width: 96px;
        height: 8px;
        margin: 0;
        border-radius: 0;
        background: var(--ms-panel);
        transform: none;
        z-index: 0;
        pointer-events: none;
    }

    .select-servers-block > .group-absolute-decore > .absolute-block-decor.decor-1{
        width: 192px;
    }

    /* The hero characters stand on the top edge of the server list, so its step goes to the bottom edge. */
    .select-servers-block > .group-absolute-decore > .absolute-block-decor.decor-1 {
        top: auto;
        bottom: -8px;
    }
}

/*
 * «Новые покупки» (owner 2026-11-29, mockup ms-site design/home-redesign/feed): the panel is built like «Мониторинг»
 * beside it, with its classes — the same heading, the .mvx-row on top (the item bought most often and
 * «от N ₽»), the same bottom card. Between them the last 5 buyers, one row per player: head, nick, what was bought,
 * the server's number. A row opens the catalog on that server and category (home-first.js), never the item. No server chips:
 * the 5 rows fit the height of the bottom row (471px), and every row shows its server.
 */
.left-block-a { padding: 0; }
.mvx-lead { min-width: 0; }
/* The name fits the room left beside «от N ₽» on one line at the row height: --n is its length (the server writes it),
   an Unbounded 700 letter is 0.75-0.8em wide (0.82 leaves a margin); 30px at most, as «Мониторинг»; no script resizes it after load. */
.mvx-feed .mvx-lead { flex: 1; container-type: inline-size; }
.mvx-feed .mvx-big {
    overflow: hidden; font-size: clamp(12px, calc(100cqi / (var(--n, 4) * 0.82)), 30px); line-height: 30px;
    white-space: nowrap; text-overflow: ellipsis;
}
/* «от N ₽ / донат навсегда» keeps its two lines; the name beside it gives way */
.mvx-feed .mvx-peak { flex: none; white-space: nowrap; }
.mvx-buys { display: grid; grid-template-rows: repeat(5, minmax(44px, 1fr)); margin: 14px -8px 0; }
.mvx-buy {
    display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 8px; border-radius: 8px;
    color: inherit; text-decoration: none; cursor: pointer; transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.mvx-buy .ms-head { width: 29px; height: 29px; }
.mvx-who { display: block; flex: 1; min-width: 0; }
.mvx-nick { display: flex; min-width: 0; color: #fff; font: 600 13px/17px var(--font-family-second), "Inter", sans-serif; }
/* Inter on the b and span themselves: the site sets Unbounded on bare b / span, which beats inheriting it */
.mvx-nick b { min-width: 0; overflow: hidden; font: 600 13px/17px var(--font-family-second), "Inter", sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.mvx-nick i:empty { display: none; }
.mvx-nick i { flex: none; margin-left: 4px; color: var(--ms-accent-text); font: normal 500 12px/17px var(--font-family-second), "Inter", sans-serif; }
.mvx-what { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 1px; color: var(--ms-text-3); font: 500 12px/16px var(--font-family-second), "Inter", sans-serif; }
.mvx-what span { min-width: 0; overflow: hidden; font: 500 12px/16px var(--font-family-second), "Inter", sans-serif; white-space: nowrap; text-overflow: ellipsis; }
/* the server's number: one width for #1…#4, so the column is straight */
.mvx-srv {
    display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 24px;
    border-radius: 8px; background: var(--ms-chip); color: var(--ms-text-3);
    font: 600 12px/1 var(--font-family-second), "Inter", sans-serif; font-variant-numeric: tabular-nums;
    transition: background 0.2s, color 0.2s;
}
.mvx-buy:active { background: var(--ms-tile); }
@media (hover: hover) {
    .mvx-buy:hover { background: var(--ms-tile); }
    .mvx-buy:hover .mvx-srv { background: var(--ms-accent-tint); color: var(--ms-accent-text); }
}
/* a purchase that came after the page was opened */
.mvx-buy.is-new { animation: mvx-in 0.45s ease both; }
@keyframes mvx-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* the list sits in the middle: as far from «Хочешь так же?» below as from the top row above (14px + half a row
   on both sides); the panel rule that pins the bottom card down (margin-top: auto) left it 0 under a list that
   takes the free height */
body .left-block-a > .mvx-feed > .mvx-howto { margin-top: 14px; }
@media (min-width: 1175px) {
    .mvx-feed > .mvx-buys { flex: 1; grid-template-rows: repeat(5, minmax(36px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .mvx-buy.is-new { animation: none; }
    .mvx-buy, .mvx-srv { transition: none; }
}
/*
 * No horizontal scroll: the orange glow under the panels (img.shadow-main, 1722px wide) and the
 * right hero art stick out past the window on narrower desktops and phones. Clip what goes past
 * the page width; clip (unlike hidden) makes no scroll container, so nothing else changes.
 */
.content {
    overflow-x: clip;
}

/*
 * /winners and contest pages: the picture is absolutely placed in the panel's top-right corner,
 * and on wide screens the winners list ran under it (names on top of the tree). Keep the list
 * clear of the picture; it wraps to more rows instead.
 */
@media (min-width: 901px) {
    .content-main:has(> .image-right-absolute) .list-info-contest {
        max-width: calc(100% - 520px);
    }
}

/*
 * Orange glow (center-shadow.png) behind the big panels: one rule for every page.
 * The old `top: -100%` was a share of the panel HEIGHT, so the glow climbed higher on taller panels.
 * Now its centre is pinned at a fixed distance below the panel's top edge: `top` puts the image's
 * top there, translateY(-50%) lifts it by half its own height. Width and z-index stay as they were
 * (120% of the panel, behind it), so the light spills out above and to the sides the same way on
 * the main page, the shop view, /doplata, /moneyback, /winners and /contest/*.
 */
@media (min-width: 901px) {
    img.shadow-main {
        top: 48px;
        bottom: auto;
        transform: translateY(-50%);
    }
}

/*
 * Phones, inner pages and the shop view (.content-main): a zero-height box on the panel's top edge,
 * with the glow (scaled ×2 as before) centred 170px ABOVE that edge; the rules further down then
 * centre it on the block. Nothing clips it; `.content { overflow-x: clip }` keeps it from causing
 * horizontal scroll. The main page's server block keeps the site's original phone glow (style.css):
 * a warm band right above the server block, which the owner prefers.
 */
@media (max-width: 900px) {
    .content-main > .container-shadow {
        position: absolute;
        top: 0;
        bottom: auto;
        left: 0;
        width: 100%;
        height: 0;
        overflow: visible;
    }

    .content-main > .container-shadow > img.shadow-main {
        top: -170px;
        bottom: auto;
        left: 0;
        width: 100%;
        transform: translateY(-50%) scale(2);
    }
}

/*
 * Inner pages (/doplata, /moneyback, /winners, /contest/*): the glow is centred on the main block and
 * exactly as tall as it, so the light only comes out from behind the block's sides and never reaches
 * the menu. It is tied to the block itself (top/bottom 0), so it stays put whatever the content height.
 * The main page (server block and its shop view, #shop__content) keeps the rule above.
 */
.border:not(#shop__content) > .content-main > .container-shadow {
    top: 0;
    bottom: 0;
    height: auto;
}

.border:not(#shop__content) > .content-main > .container-shadow > img.shadow-main {
    top: 0;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    transform: none;
}

/*
 * Main page, desktop: the server block gets the same light as the inner pages, centred on the block's
 * middle and coming out at its sides, plus a soft 90px peek above it. The glow is 90px taller than the
 * block at the top and the bottom; the part below the block fades out (mask) by the block's bottom edge,
 * so no warmth reaches «Раздача». Chosen by the designers and marketers ("середина", between 70 and 110).
 */
@media (min-width: 901px) {
    .select-servers-block img.shadow-main {
        top: -90px;
        bottom: auto;
        left: -10%;
        width: 120%;
        height: calc(100% + 180px);
        transform: none;
        -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 180px), transparent calc(100% - 90px));
        mask-image: linear-gradient(to bottom, #000 calc(100% - 180px), transparent calc(100% - 90px));
    }
}

/*
 * Page scrollbar in the site's style («камень», chosen by the owner): at rest the thumb is a calm
 * stone block in the panels' colour with a 2px Minecraft-style bevel (light top/left, dark
 * bottom/right), so it does not compete with the orange buttons. On hover it turns into an orange
 * block like a button; while dragged it goes deep orange with the bevel flipped, like a pressed
 * button. Square corners, 12px wide, 2px gap to the track. Firefox gets the calm pair of colours
 * through scrollbar-color. Phones keep their overlay bars. The site's thin 1px list bar
 * (.scroll-new in style.css) stays as it was.
 */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
    background: var(--ms-bg);
}

::-webkit-scrollbar-track {
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
    background: #3a3642;
    border: 2px solid var(--ms-bg);
    border-radius: 0;
    box-shadow:
        inset 2px 2px 0 rgba(255, 255, 255, 0.1),
        inset -2px -2px 0 rgba(0, 0, 0, 0.35);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ms-accent-text);
    box-shadow:
        inset 2px 2px 0 rgba(255, 228, 196, 0.45),
        inset -2px -2px 0 rgba(150, 64, 0, 0.45);
}

::-webkit-scrollbar-thumb:active {
    background: var(--ms-accent);
    box-shadow:
        inset 2px 2px 0 rgba(150, 64, 0, 0.45),
        inset -2px -2px 0 rgba(255, 228, 196, 0.3);
}

@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-color: #3a3642 var(--ms-bg);
    }
}

/*
 * Header background (background-top.png, 1921×1080): its pixel pattern only covers x≈240–1620 of the
 * picture and ends in a hard vertical edge on the right, so on every desktop screen a straight edge
 * showed on the right with nothing beyond it. On desktop the picture is scaled evenly so that exactly
 * the pattern (x 250–1610) spans the full width: background-size 1921/1360 = 141.25% of the box,
 * position 44.56% puts x 250 at the left edge. The pixels stay square. Because the scaled picture is
 * taller than its box, its lower part fades out (mask) so no new edge appears at the bottom.
 */
@media (min-width: 901px) {
    .absolute-image-header-top {
        background-size: 141.25% auto;
        background-position: 44.56% 0;
        -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    }
}

/*
 * Short pages (/doplata, /moneyback and the like on tall screens): the footer used to sit right under
 * the content and the rest of the screen below it stayed empty. The page is now at least one screen
 * tall and the footer is pushed to the bottom (margin-top: auto in a column). Long pages are unchanged.
 * style.css zooms the body to 0.85 / 0.8 on 1175–1499px, which also shrinks 100vh, so it is divided back.
 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer.footer-main {
    margin-top: auto;
}

@media (min-width: 1210px) and (max-width: 1499px) {
    body {
        min-height: calc(100vh / 0.85);
    }
}

@media (min-width: 1175px) and (max-width: 1210px) {
    body {
        min-height: calc(100vh / 0.8);
    }
}

/*
 * The glow layer is decoration only. On phones it is an absolutely positioned layer over the whole panel
 * (inner pages and the shop view), so it sat on top of the form and caught taps: «Доплатить» on /doplata
 * and the shop cards did not react. It never takes pointer events now.
 */
.container-shadow,
img.shadow-main {
    pointer-events: none;
}

/*
 * Privilege level scale on /doplata (variant d3-c, chosen by the owner after rounds with marketers,
 * designers and testers): left the current privilege, right the next step with its honest surcharge
 * and 12 rungs; clicking a rung scrolls to its card. Built by renderLevelScale() in additions.js.
 */
.ms-lvl {
    --ms-lvl-step: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 2px 4px, 2px 2px, 4px 2px);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    align-items: center;
    margin: 24px 0 25px;
    padding: 16px 24px;
    background: var(--ms-bg);
    clip-path: var(--ms-lvl-step);
}

/* One-time fill: each passed square grows from the left, one after another (≤ 600 ms in total). */
@keyframes ms-lvl-fill {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}

@media (max-width: 900px) {
    .ms-lvl {
        grid-template-columns: minmax(0, 1fr);
        margin: 16px 0 18px;
        padding: 12px 14px 6px;
    }
}

/*
 * Notification toasts (variant d3-b «Строка»): built by the toast code at the end of additions.js, which
 * replaces window.showModal. Compact two-line toasts with stepped pixel corners and a type-colour edge.
 */
.ms-toast-stack {
    position: fixed;
    top: 96px;
    right: 24px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 380px;
    pointer-events: none;
}

.ms-toast {
    --c: var(--ms-text-3);
    --step: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 2px 4px, 2px 2px, 4px 2px);
    position: relative;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
    pointer-events: auto;
    animation: ms-toast-in 0.2s steps(4, end) both;
    transition: opacity 0.18s, transform 0.18s;
}

.ms-toast-success { --c: var(--ms-accent-text); }
.ms-toast-error { --c: #e0605a; }
.ms-toast-info { --c: var(--ms-text-3); }

.ms-toast.is-out {
    opacity: 0;
    transform: translateX(16px);
}

.ms-toast-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 44px 13px 16px;
    background: var(--ms-panel);
    box-shadow: inset 3px 0 0 var(--c);
    clip-path: var(--step);
}

.ms-toast-icowrap {
    display: flex;
    flex: none;
    margin-top: 2px;
    color: var(--c);
}

.ms-toast-ico {
    display: block;
}

.ms-toast-body {
    min-width: 0;
    flex: 1;
}

.ms-toast-text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--ms-text-3);
    font-family: var(--font-family-second), Inter, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ms-toast-text.is-open {
    display: block;
    max-height: 40vh;
    overflow: auto;
    -webkit-line-clamp: unset;
}

.ms-toast-title {
    margin-right: 2px;
    color: #fff;
    font-family: var(--font-family-first), Unbounded, sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.ms-toast-text cgold,
.ms-toast-text cw {
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
}

.ms-toast-text cgold { color: var(--ms-accent-text); }
.ms-toast-text cw { color: #c9c6d0; }

.ms-toast-more,
.ms-toast-link {
    margin: 4px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ms-accent-text);
    font-family: var(--font-family-second), Inter, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ms-toast-x {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--ms-text-3);
    cursor: pointer;
}

.ms-toast-x:hover,
.ms-toast-x:focus-visible {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    outline: none;
}

.ms-toast-bar {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 0;
    height: 2px;
    background: var(--c);
    opacity: 0.75;
    transform-origin: left;
    animation: ms-toast-bar linear forwards;
}

/* «Поздравляем!»: the richest card, top-centre under the header, stays until closed. */
.ms-toast-reward {
    --c: var(--ms-accent-text);
    position: fixed;
    top: 96px;
    left: 50%;
    z-index: 9001;
    width: 440px;
    margin-left: -220px;
    animation-name: ms-toast-down;
}

.ms-toast-reward .ms-toast-head {
    gap: 14px;
    padding: 16px 48px 16px 18px;
    box-shadow: inset 0 3px 0 var(--c);
}

.ms-toast-pic {
    display: block;
    flex: none;
    width: 44px;
    height: 44px;
    color: var(--ms-accent-text);
    object-fit: contain;
    image-rendering: pixelated;
}

.ms-toast-pic .ms-toast-ico {
    width: 44px;
    height: 44px;
}

.ms-toast-reward .ms-toast-title {
    display: block;
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 24px;
}

.ms-toast-reward .ms-toast-text {
    display: block;
    color: #c9c6d0;
    font-size: 14px;
    line-height: 21px;
}

.ms-toast-srv {
    color: var(--ms-accent-text);
    font-weight: 600;
}

.ms-toast-reward.is-out {
    transform: translateY(-10px);
}

@keyframes ms-toast-in {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes ms-toast-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
}

@keyframes ms-toast-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ms-toast-bar {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 900px) {
    .ms-toast-stack {
        top: calc(env(safe-area-inset-top, 0px) + 12px);
        right: 12px;
        left: 12px;
        width: auto;
    }

    .ms-toast {
        animation-name: ms-toast-down;
        touch-action: none;
    }

    .ms-toast.is-out {
        transform: translateY(-12px);
    }

    .ms-toast-head {
        padding: 12px 48px 12px 14px;
    }

    .ms-toast-text,
    .ms-toast-title {
        font-size: 14px;
    }

    .ms-toast-x {
        top: 0;
        right: 0;
        width: 44px;
        height: 44px;
    }

    .ms-toast-reward {
        top: calc(env(safe-area-inset-top, 0px) + 12px);
        right: 12px;
        left: 12px;
        width: auto;
        margin-left: 0;
    }

    .ms-toast-reward .ms-toast-head {
        padding: 14px 48px 14px 14px;
    }

    .ms-toast-pic,
    .ms-toast-pic .ms-toast-ico {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ms-toast,
    .ms-toast-reward {
        animation: ms-toast-fade 0.2s ease-out both;
    }

    .ms-toast.is-out,
    .ms-toast-reward.is-out {
        transform: none;
    }
}

/* Section heading icons (same box as "Раздача", 25x23 icon in a 42x39 box).
   Inside the cards the box follows the 22px heading line and the card rows; on phones, the 18px headings. */
.heading-ico{display:flex;align-items:center;gap:15px}
.heading-ico .contest-ico-border{flex:none}
.heading-ico.category-h3 .contest-ico-border{width:34px;height:32px;gap:0}
.heading-ico.category-h3 .contest-ico-a{width:20px;height:18px}
.heading-ico.category-h3{gap:12px}
.online-h3.heading-ico h3.h3-text-a{max-width:none}
.group-section-a.heading-ico h1.section-h1{width:auto}
@media (max-width:1174px) {
.heading-ico.contest-heading{justify-content:center;gap:12px}
.heading-ico.contest-heading .contest-ico-border{width:34px;height:32px}
.heading-ico.contest-heading .contest-ico-a{width:20px;height:18px}
}
@media (max-width:900px) {
.heading-ico.category-h3 .contest-ico-border{width:28px;height:26px}
.heading-ico.category-h3 .contest-ico-a{width:17px;height:15px}
.heading-ico.category-h3{gap:10px}
}

/*
 * Even spacing between the page panel and the footer line (owner: «должно быть ровно и гармонично»).
 * - The panel hugs its content: shop.css gave it min-height: 50vh, which left an empty band under
 *   «Вернуться назад» on /winners, under «Доплатить» on /doplata and under the shop's categories.
 * - Panel → footer line → footer text are 50px each. The footer still reaches the bottom of a tall
 *   screen, but it grows downwards now instead of being pushed down, so the gap above the line stays 50px.
 * - /doplata: the results block under the form is empty until a nickname is checked; its first child's
 *   35px top margin added space under the button.
 */
.content-main {
    min-height: 0;
}

footer.footer-main {
    margin-top: 0;
    flex-grow: 1;
    align-items: flex-start;
}

.footer-block {
    margin-top: 50px;
}

.footer-block:after {
    top: 0;
}

/* Desktop menu: «EN» in the icon box instead of the globe, like the phone's button. */
.ico-header-a.lang-ico {
    font-family: var(--font-family-second);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-indent: 0.04em;
    line-height: 1;
}

/*
 * Legal documents (/oferta, /agreement, /privacy) in the site layout: the text of the old white pages
 * across the whole dark panel, lined up with «Вернуться назад», headings in the site font, links in
 * the accent colour.
 */
.legal-doc {
    position: relative;
    z-index: 1;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-family-second), Inter, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

/* the site sets Unbounded on every element: body text in Inter, headings stay in Unbounded */
.legal-doc * {
    font-family: var(--font-family-second), Inter, sans-serif;
}

.legal-doc h1,
.legal-doc h1 *,
.legal-doc h2,
.legal-doc h2 * {
    font-family: var(--font-family-first), sans-serif;
}

.legal-doc b {
    font-weight: inherit;
}

.legal-doc h1 {
    margin: 0 0 12px;
    color: #fff;
    font-family: var(--font-family-first);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
}

.legal-doc h1:not(:first-child) {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-doc h2 {
    margin: 36px 0 12px;
    color: #fff;
    font-family: var(--font-family-first);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.legal-doc h4 {
    margin: 0 0 28px;
    color: var(--ms-text-3);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.legal-doc p {
    margin: 0 0 12px;
}

.legal-doc ul,
.legal-doc ol {
    margin: 0 0 12px;
    padding-left: 22px;
}

.legal-doc li {
    margin-bottom: 6px;
}

.legal-doc a {
    color: var(--ms-accent-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-doc a:hover {
    color: var(--ms-accent);
}

.legal-notice {
    margin: 0 0 24px;
    padding: 12px 16px;
    border: 1px solid rgba(var(--ms-accent-rgb), 0.35);
    border-radius: 8px;
    background: rgba(var(--ms-accent-rgb), 0.08);
    color: var(--ms-accent-text);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .legal-doc {
        margin-top: 4px;
        font-size: 14px;
        line-height: 1.6;
    }

    .legal-doc h1 {
        font-size: 20px;
    }

    .legal-doc h1:not(:first-child) {
        margin-top: 40px;
        padding-top: 28px;
    }

    .legal-doc h2 {
        margin-top: 28px;
        font-size: 16px;
    }
}

/* ==========================================================================
 * Desktop harmony pass (designer review 25.11.2026): one grid, one rhythm, one button system.
 * ========================================================================== */

/* Main page, bottom row. style.css gives 0.27fr 0.44fr 0.27fr (0.6fr in the middle up to 1500px):
   fractions that do not add up to 1, plus the columns' own minimum width, left the row short of the
   right edge (29px at 1920, 110px at 1280). Whole fractions with minmax(0, …) fill it at every width.
   Each panel is as tall as its content (the owner preferred that to stretched panels with an empty
   middle). The gap inside the middle column matches the 25px gutters. */
@media (min-width: 1175px) {
    .bottom-block-a {
        grid-template-columns: minmax(0, 27fr) minmax(0, 44fr) minmax(0, 27fr);
    }
}

/* up to 1500px style.css makes the middle column wider (0.6fr): kept, as whole fractions */
@media (min-width: 1175px) and (max-width: 1500px) {
    .bottom-block-a {
        grid-template-columns: minmax(0, 27fr) minmax(0, 60fr) minmax(0, 27fr);
    }
}

@media (min-width: 1175px) {
    .center-block-a {
        gap: 25px;
    }
}

/* Main page panels: one inner padding (30px) and one step between sections (50px). */
@media (min-width: 901px) {
    .select-servers-block {
        padding: 30px;
    }

    .contests-block {
        margin-top: 50px;
    }
}

/* Page gutters on desktop: at least 48px from the window edges (about 40px on screen with the 0.85
   zoom below 1500px), never wider than the 1500px layout. Above 1500px the layout used to sit only
   12px from the edges of a 1536px window (a very common laptop width). The four server cards may
   shrink below their content's natural width (they overflowed their panel by ~20px at 1280px). */
@media (min-width: 901px) {
    .border {
        width: min(1500px, calc(100% - 96px));
    }
}

@media (min-width: 1175px) {
    .servers-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

a.custom-link-1:not(.server-object a) {
    border-radius: 12px;
}

/* /docs: the list of documents in the same column style as the documents themselves. */
.docs-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 4px;
}

.docs-list li {
    margin: 0;
}

.docs-list a {
    display: inline-block;
    padding: 6px 0;
}

/* 404 in the site layout (NotFoundPageFilter): a short centred message and the way back. */
.not-found {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 40px 0 20px;
    text-align: center;
}

.not-found-code {
    margin: 0;
    color: var(--ms-accent);
    font-family: var(--font-family-first);
    font-size: 72px;
    font-weight: 600;
    line-height: 1;
}

.not-found .section-p {
    max-width: 460px;
}

.not-found-actions {
    margin-top: 12px;
}

.not-found-actions .custom-link-1 {
    /* the phone rule a.custom-link-1 { width: 34px } (the server cards' chevron) squeezed it to 56px and the text wrapped */
    width: auto !important;
    height: 52px;
    padding: 12px 28px;
    white-space: nowrap;
}

/* One heading scale: page and section titles are 600 everywhere, like the main page's
   (the inner pages, the shop and the modals had 500 at the same 22px). Document titles follow it. */
h1.section-h1,
h4.title-h4-modal {
    font-weight: 600;
}

@media (min-width: 901px) {
    .legal-doc h1 {
        font-size: 22px;
    }
}

/* /winners and the contest page: winners in three even columns (each card was as wide as its text,
   so the columns did not line up), and the list as far from the text above as other blocks (30px). */
@media (min-width: 1175px) {

    .list-info-contest {
        margin-top: 30px;
    }
}

/* Two oranges only (#FF892C, #FFAA63): «Вернуться назад» and the menu hover had a third (#F19F55). */
a.link-back {
    color: var(--ms-accent);
}

a.link-back:hover,
a.link-header-a:hover {
    color: var(--ms-accent-text);
}

/* Short pages have no scrollbar: the whole layout used to shift 6px sideways between pages. */
html {
    scrollbar-gutter: stable;
}

/* No pull-to-refresh (owner 2026-11-29, like aresmine.ru): on a shop it is almost always an accident, and in the middle
   of a checkout it threw away the nick and the chosen method. The page and the sheets still scroll as before. */
html {
    overscroll-behavior-y: none;
}

/* Main page bottom row, one inner scale for the three panels: 30px from the panel edges, 24px from the
   heading to the content and from the content to the bottom action. The category rows' icons line up
   with the heading's box (they sat 10px further right). */
@media (min-width: 1175px) {
    :is(.left-block-a, .right-block-a) .category-h3 {
        padding: 30px 30px 0;
    }

    :is(.left-block-a, .right-block-a) > .mvx {
        margin: 24px 30px 30px;
    }
}

/* «Категории» on desktop: a 2-column grid of tiles, «Техническая поддержка» as the sixth tile, so the
   middle column is about as tall as «Последние покупки» and «Мониторинг» beside it (528px against
   682px at 1920 with the one-per-line list). The panel's own wrappers step aside (display: contents)
   so the five links and the support button share one grid; phones keep the list. */
@media (min-width: 1175px) {
    .center-bottom-block-a {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 10px;
        padding: 30px;
    }

    .center-bottom-block-a .category-list,
    .center-bottom-block-a .category-list-ul,
    .center-bottom-block-a .support-info {
        display: contents;
    }

    .center-bottom-block-a li.category-li {
        display: block;
        min-width: 0;
        padding: 0;
        list-style: none;
    }

    .center-bottom-block-a .category-a,
    .center-bottom-block-a .support-info .custon-button-2 {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
        height: 52px;
        margin: 0;
        padding: 0 14px;
        overflow: hidden;
        border-radius: 8px;
        background: var(--ms-tile);
        color: var(--ms-text-3);
    }

    .center-bottom-block-a .category-a p,
    .center-bottom-block-a .support-info .custon-button-2 p {
        min-width: 0;
        overflow: hidden;
        font-family: var(--font-family-second);
        font-size: 13px;
        font-weight: 500;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Main page bottom row, desktop: the category tiles without their heading (owner), and the three
   columns level — same top and bottom. «Хочешь так же?» and «Как зайти на сервер?» sit at the bottom
   of their panels, the tiles' last row at the bottom of the middle one; when the middle column is the
   shorter one, its tiles grow to fill it. */
@media (min-width: 1175px) {

    .bottom-block-a {
        align-items: stretch;
    }

    .left-block-a,
    .right-block-a,
    .center-block-a {
        display: flex;
        flex-direction: column;
    }

    :is(.left-block-a, .right-block-a) > .mvx {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    :is(.left-block-a, .right-block-a) > .mvx > .mvx-howto {
        margin-top: auto;
    }

    .center-bottom-block-a {
        flex: 1;
        align-content: stretch;
        grid-auto-rows: minmax(52px, 1fr);
    }

    .center-bottom-block-a .category-a,
    .center-bottom-block-a .support-info .custon-button-2 {
        height: 100%;
        min-height: 52px;
    }
}

/* «Мониторинг» on desktop: server buttons above the chart (additions.js), and the chart takes the
   panel's free height instead of leaving it empty above «Как зайти на сервер?». */
@media (min-width: 1175px) {
    .right-block-a .mvx-chart {
        flex: 1;
        min-height: 72px;
        align-items: flex-end;
        margin-top: 14px;
    }

    .right-block-a .mvx-chart i {
        border-radius: 3px 3px 0 0;
    }

    /* a dot above the current hour's bar */
    .right-block-a .mvx-chart i.now {
        position: relative;
    }

    .right-block-a .mvx-chart i.now::before {
        content: "";
        position: absolute;
        top: -12px;
        left: 50%;
        width: 6px;
        height: 6px;
        margin-left: -3px;
        border-radius: 50%;
        background: var(--ms-accent-text);
    }

    .right-block-a .mvx > .mvx-howto {
        margin-top: 16px;
    }

    .mvx-chips {
        display: flex;
        gap: 6px;
        margin-top: 14px;
    }

    /* one width for «#1»…«#4» (the «1» is narrower: its chip was 2px short) */
    .mvx-chip {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        font-variant-numeric: tabular-nums;
        flex: none;
        height: 28px;
        padding: 0 10px;
        border: 0;
        border-radius: 8px;
        background: var(--ms-chip);
        color: var(--ms-text-3);
        font-family: var(--font-family-second);
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }

    .mvx-chip.is-on,
    .mvx-chip:hover {
        background: var(--ms-accent-tint);
        color: var(--ms-accent-text);
    }
}

@media (max-width: 1174px) {
    .mvx-chips {
        display: none;
    }
}

/* «Последние покупки» and «Мониторинг» headings: always one line and the same size. Below ~1900px
   «Последние покупки» did not fit at 22px and broke into two lines next to a centred icon, while
   «Мониторинг» stayed on one. The size follows the panel's width (container query), 22px at most. */
@media (min-width: 1175px) {
    :is(.left-block-a, .right-block-a) .category-h3 {
        container-type: inline-size;
    }

    :is(.left-block-a, .right-block-a) .category-h3 h3.h3-text-a {
        max-width: none;
        font-size: clamp(15px, calc((100cqi - 48px) / 13), 22px);
        line-height: 1.4;
        white-space: nowrap;
    }
}

/*
 * PREVIEW (?dm=1, off with ?dm=0): phones get the desktop site instead of the phone version. base.eta
 * drops every max-width rule and applies every min-width (desktop) rule at any width, and puts .dm on
 * <html>; the rules below only fit that desktop site into a phone screen. They sit in max-width blocks
 * that mention .dm, which base.eta keeps.
 */
@media (max-width: 900px) {
    html.dm, html.dm body { overflow-x: hidden; }
    .dm .border { width: calc(100% - 32px) !important; max-width: none; margin: 0 auto; }

    /* header: logo, then the desktop menu boxes as an even row of icon + caption */
    .dm .header-block { flex-direction: column; align-items: center; gap: 18px; height: auto; padding: 24px 0 8px; }
    .dm .logotype-image { width: 200px; height: auto; }
    .dm .header-links { width: 100%; }
    .dm ul.links-header-ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: 100%; }
    .dm li.header-link-li { min-width: 0; justify-content: center; }
    .dm a.link-header-a { flex-direction: column; gap: 6px; width: 100%; height: auto; padding: 0; }
    .dm a.link-header-a .link-text { margin: 0; font-size: 10px; letter-spacing: 0; white-space: nowrap; }
    .dm a.link-header-a::after, .dm a.link-header-a::before { display: none; }

    /* hero */
    .dm .content-block { gap: 32px; padding-top: 24px; }
    .dm section.content-section-top { width: 100%; }
    .dm h1.h1-section-text-h1 { font-size: 26px; line-height: 1.3; }
    .dm p.p-section-text-p { width: 100%; font-size: 14px; }
    .dm .parallax-absolute-image-hand, .dm .parallax-absolute-image-left, .dm .parallax-absolute-image-right, .dm .effect-cube { display: none; }

    /* servers: the desktop cards (address and port fields, online, busiest hours), one per row */
    .dm .select-servers-block { width: 100%; padding: 14px; }
    .dm .servers-list { grid-template-columns: minmax(0, 1fr) !important; gap: 10px; }

    /* stats: the art above, the three tiles across the full width */
    .dm .center-top-block-a { flex-direction: column; align-items: center; gap: 12px; height: auto; padding: 20px 14px; }
    .dm img.stats-image-decor { width: 140px; height: auto; }
    .dm .right-info-block-b { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; width: 100%; }
    .dm .stats-object-b { width: auto; min-width: 0; height: 96px; }
    .dm p.text-stats-b-1 { font-size: 24px; }
    .dm p.text-stats-b-2 { font-size: 11px; }

    /* «Категории» tiles: two lines instead of «Доплатить до …» */
    .dm .center-bottom-block-a .category-a { height: 56px; }
    .dm .center-bottom-block-a .support-info .custon-button-2 { height: 56px; }
    .dm .center-bottom-block-a p.text-support-a { overflow: visible; white-space: normal; font-size: 12.5px; line-height: 1.3; text-align: left; }
    .dm .center-bottom-block-a p.text-category-a { overflow: visible; font-size: 12.5px; line-height: 1.3; white-space: normal; }

    /* giveaway */
    .dm .contests-block { width: 100%; }
    .dm p.text-block-info-a { width: 100%; }
    .dm .list-contests { grid-template-columns: minmax(0, 1fr) !important; gap: 12px; }

    /* bottom row: one column — stats and categories, then purchases, then monitoring */
    .dm .bottom-block-a { grid-template-columns: minmax(0, 1fr) !important; gap: 16px; height: auto; }
    .dm .center-block-a { order: -1; height: auto; }
    .dm .left-block-a, .dm .right-block-a { height: auto; }

    /* inner pages (shop, surcharge, refund, giveaways, legal): the desktop panel with phone paddings */
    .dm .content-main { padding: 22px 16px 26px !important; height: auto; min-height: 0; }
    .dm .image-right-absolute, .dm .group-absolute-decore { display: none; }
    .dm .top-main-content { width: 100%; }
    .dm h1.section-h1 { font-size: 22px; line-height: 1.3; }
    .dm p.section-p { width: 100%; font-size: 13px; line-height: 1.55; }
    .dm ul.category-list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }

    /* /winners and contest pages: the winners list full width (on desktop it keeps clear of the picture), one per row */
    .dm .content-main .list-info-contest { max-width: none; }

    /* footer */
    .dm .footer-block { padding: 24px 0; gap: 18px; }
    .dm .top-footer-block, .dm .bootom-footer-block { flex-direction: column; align-items: center; gap: 14px; }
    .dm .top-footer-block-right { flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; }
    .dm img.payment-ico-a { height: 32px; width: auto; }
    .dm p.text-center-footer { text-align: center; }
    .dm ul.links-footer-ul { flex-direction: column; align-items: center; gap: 8px; }
}

/* Окна покупки/оплаты/«Как зайти» выше экрана (1366×768, 1280×720) обрезались сверху и снизу
   вместе с крестиком: фон окна теперь скроллится, а auto-поля не дают уйти верху за экран. */
@media (min-width: 901px) {
    .absolute-modal {
        inset: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 24px 0;
        box-sizing: border-box;
    }
    .absolute-modal > .modal-form-check {
        margin: auto;
        max-width: calc(100% - 32px);
        box-sizing: border-box;
    }
}

/* Фокус с клавиатуры (outline у кнопок снят в стилях живого сайта). */
:where(a, button, input, [tabindex]):focus-visible {
    outline: 2px solid var(--ms-accent-text);
    outline-offset: 2px;
}

/* «Вернуться назад»: only as wide as its label. */
a.link-back {
    display: inline-flex;
}

/* One «Вернуться назад» on every width (owner 2026-11-29: no copy for phones). Desktop: above the page. Phones: a grey
   button centred under the page; the page column becomes a flex column only to move it there. */
@media (max-width: 900px) {
    .content-main:has(> a.link-back) {
        display: flex;
        flex-direction: column;
    }

    .content-main > a.link-back {
        order: 99;
        align-self: center;
        justify-content: center;
        gap: 8px;
        height: 33px;
        margin: 32px 0 15px;
        padding: 3.5px 12px;
        border-radius: 12px;
        background: rgba(122, 122, 122, 0.12);
        color: #7a7a7a;
    }

    .content-main.legal-page > a.link-back {
        margin-top: 28px;
    }

    .content-main.wa-on > a.link-back {
        margin: 14px 0 7px;
    }

    .content-main > a.link-back .text-link-back {
        font-size: 12px;
        line-height: 25.2px;
    }
}

/* iOS: 100vh — «большой» вьюпорт, футер уходил под панель Safari. */
@supports (min-height: 100svh) {
    body {
        min-height: 100svh;
    }
    @media (min-width: 1210px) and (max-width: 1499px) {
        body {
            min-height: calc(100svh / 0.85);
        }
    }
    @media (min-width: 1175px) and (max-width: 1210px) {
        body {
            min-height: calc(100svh / 0.8);
        }
    }
}

/* Standards mode (<!doctype html>): the site was drawn in quirks mode, where a line holding only
   an icon gets no extra line height. Same look in standards mode: icon boxes keep the size of the icon. */
:where(span[class*="ico"], span[class*="arrow"]) { line-height: 0; }
:where(span[class*="ico"], span[class*="arrow"]) > :where(svg, img) { vertical-align: top; }
:where(.parallex-effect) img, img.stats-image-decor { vertical-align: top; }
/* <picture> around the main page images (WebP, and an empty pixel for the hidden ones on phones): not a box of its
   own, the <img> keeps its place in the layout */
.parallex-effect > picture, .container-shadow > picture, picture:has(> img.stats-image-decor) { display: contents; }

/* Mobile shop: the upgrade (doplata) card under the category list. Built like the category
   buttons (#2B292E, radius 12px, orange gradient layer on hover/press) but left-aligned
   with two lines and an arrow, so it does not read as one more category. */
a.upgrade-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    margin-top: 20px;
    padding: 10px 14px;
    box-sizing: border-box;
    border-radius: 12px;
    background: #2B292E;
    color: #fff;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: 0.3s;
}
a.upgrade-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--ms-accent-text) 0%, #EA9A4E 100%);
    box-shadow: 0 4px 12px 2px #FF7324 inset;
    opacity: 0;
    transition: 0.3s;
}
a.upgrade-card > * { position: relative; z-index: 1; transition: color 0.3s; }
a.upgrade-card:hover::after, a.upgrade-card:active::after, a.upgrade-card:focus-visible::after { opacity: 1; }
a.upgrade-card:hover, a.upgrade-card:active, a.upgrade-card:focus-visible { outline: none; color: #2D241C; }
a.upgrade-card:hover > *,
a.upgrade-card:active > *,
a.upgrade-card:focus-visible > * { color: #2D241C; }
@media (max-width: 1174px) {
    .center-bottom-block-a { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px; padding: 20px; }
    .center-bottom-block-a .category-list,
    .center-bottom-block-a .category-list-ul,
    .center-bottom-block-a .support-info { display: contents; }
    .center-bottom-block-a li.category-li { display: block; min-width: 0; padding: 0; list-style: none; }
    .center-bottom-block-a .category-a,
    .center-bottom-block-a .support-info .custon-button-2 {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
        height: auto;
        min-height: 56px;
        margin: 0;
        padding: 8px 12px;
        overflow: hidden;
        border-radius: 8px;
        background: var(--ms-tile);
        color: var(--ms-text-3);
    }
    .center-bottom-block-a .category-a p,
    .center-bottom-block-a .support-info .custon-button-2 p {
        min-width: 0;
        font-family: var(--font-family-second);
        font-size: 13px;
        font-weight: 500;
        line-height: 1.3;
        white-space: normal;
        text-align: left;
    }
}

/* The remaining orange-gradient links in the same tinted style as the buy buttons: «Добавить сервер»
   (how-to-join window), «Доплатить» / «Отправить» / «Отправить заявку» / «Проверить» (refund-style forms),
   «На главную» (404). Orange tint and label, 8px corners; the old gradient only while pressed. */
a.custom-link-1:not(.server-object a) {
    border-radius: 8px;
    background: var(--ms-buy);
    box-shadow: none;
    filter: none;
    color: var(--ms-accent-text);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.3s;
}
a.custom-link-1:not(.server-object a) :is(p, .text-link-1, .ico-link-1) { color: var(--ms-accent-text); }
a.custom-link-1:not(.server-object a):hover { filter: none; }
a.custom-link-1:not(.server-object a):active { background: linear-gradient(180deg, var(--ms-accent-text) 0%, #EA9A4E 100%); }
a.custom-link-1:not(.server-object a):active :is(p, .text-link-1, .ico-link-1) { color: #2d241c; }
@media (hover: hover) {
    a.custom-link-1:not(.server-object a):hover { background: rgba(var(--ms-buy-rgb), 0.26); }
    a.custom-link-1:not(.server-object a):active { background: linear-gradient(180deg, var(--ms-accent-text) 0%, #EA9A4E 100%); }
}

/* «Последние покупки» next to «Мониторинг», one scale for both: the heading text is centred on its
   icon tile (it sat on the tile's top edge, 4px higher than «Мониторинг»), the same distance from the
   heading to the content, and on phones the same 20px inner padding (Monitoring had 30px). */
@media (min-width: 901px) and (max-width: 1174px) {
    :is(.left-block-a, .right-block-a) .category-h3.online-h3 { padding-bottom: 0; }
    :is(.left-block-a, .right-block-a) > .mvx { margin-top: 24px; }
}
@media (max-width: 900px) {
    :is(.left-block-a, .right-block-a) .category-h3.online-h3 { padding: 20px 20px 0; }
    :is(.left-block-a, .right-block-a) > .mvx { margin: 16px 20px 20px; }
}

/* «Категории» tiles: «Техническая поддержка» second, «Возврат средств» last (owner). The tiles share one
   grid on every width (the wrappers are display: contents), so the grid order moves them. */
.center-bottom-block-a li.category-li:nth-child(1) { order: 1; }
.center-bottom-block-a .support-info .custon-button-2 { order: 4; } /* swapped with «Информация» (owner 2026-11-26) */
.center-bottom-block-a li.category-li:nth-child(3) { order: 3; }
.center-bottom-block-a li.category-li:nth-child(4) { order: 2; }
.center-bottom-block-a li.category-li:nth-child(5) { order: 5; }
.center-bottom-block-a li.category-li:nth-child(2) { order: 6; }

/* «Категории» tiles on phones and tablets, the designers' variant 4 (owner): left-aligned like desktop,
   but every icon sits in the same 20px box so the labels start on one line, every tile is 52px high like on
   desktop (owner 2026-11-29; was 60) whether its label takes one line or two (2 × 17px + 2 × 8px fits), and a tap gives the orange tint with an orange label
   instead of the old sliding gradient (it stayed on after the tap). */
@media (max-width: 1174px) {
    .center-bottom-block-a { grid-auto-rows: 52px; }
    .center-bottom-block-a .category-a,
    .center-bottom-block-a .support-info .custon-button-2 {
        height: 100%;
        min-height: 0;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.15s, color 0.15s;
    }
    .center-bottom-block-a .category-ico,
    .center-bottom-block-a .support-ico {
        display: flex;
        flex: none;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
    }
    .center-bottom-block-a .category-ico svg,
    .center-bottom-block-a .support-ico svg { width: auto; height: auto; max-width: 20px; max-height: 18px; }
    .center-bottom-block-a .category-a p,
    .center-bottom-block-a .support-info .custon-button-2 p { text-wrap: balance; }
}
/* The panel's inner padding is the one of «Новые покупки» and «Мониторинг» beside it: 20px on phones, 30px from
   901px; on the narrowest phones (320px) the tiles' own padding and the icon gap give way so «Информация» fits on its line. */
@media (min-width: 901px) and (max-width: 1174px) {
    .center-bottom-block-a { padding: 30px; }
}
@media (max-width: 380px) {
    .center-bottom-block-a :is(.category-a, .support-info .custon-button-2) { gap: 6px; padding-left: 8px; padding-right: 8px; }
}
/* Desktop: «Тех. Поддержка»'s icon in the same 25px box as the other tiles' icons, so all labels start on one line */
@media (min-width: 1175px) {
    .center-bottom-block-a .support-ico { display: flex; flex: none; align-items: center; justify-content: center; width: 25px; }
}
/* The same tiles on every width (owner 2026-11-29: on desktop the old hover turned the label dark, the colour it had
   on the orange gradient that is long gone, so it merged with the tile): hover lightens the grey tint and the label,
   a press gives the orange tint with an orange label. No hover on touch screens, where it would stick after a tap. */
.center-bottom-block-a .category-a::after { display: none; }
.center-bottom-block-a :is(.category-a, .support-info .custon-button-2) { transition: background 0.15s, color 0.15s; }
.center-bottom-block-a :is(.category-a, .support-info .custon-button-2) p { color: inherit; }
.center-bottom-block-a :is(.category-a, .support-info .custon-button-2):is(:hover, :focus-visible) { background: var(--ms-tile); color: var(--ms-text-3); }
@media (hover: hover) {
    .center-bottom-block-a :is(.category-a, .support-info .custon-button-2):is(:hover, :focus-visible) { background: var(--ms-btn-grey); color: #ece4e8; }
}
.center-bottom-block-a :is(.category-a, .support-info .custon-button-2):active { background: var(--ms-buy); color: var(--ms-accent-text); }

/* the two bottom cards («Хочешь так же?» / «Как зайти на сервер?») on one line in the narrow columns */
@media (min-width: 1175px) and (max-width: 1500px) {
        body :is(.left-block-a, .right-block-a) .mvx > .mvx-howto { min-height: 72px; box-sizing: border-box; }
}
/* The logo grows 5% on hover (255 → 268px). It used to be done with transform: scale(1.05), which went soft.
   It is also no longer drawn from the 511px file at half size: at ≤ 0.5 Chrome draws a cheap reduced copy and
   the logo looked soft at rest (sharp only on hover). On ordinary screens base.eta now serves logotype-268.png
   (the same logo made 268px wide); sharp screens (≥ 1.5dppx) still get the 511px file. A <picture> media query,
   not srcset: with srcset Chrome takes the bigger file whenever it is already cached. */
a.logotype picture { display: contents; }
a.logotype:hover { transform: none; }
@media (hover: hover) and (min-width: 901px) {
    html:not(.dm) img.logotype-image { transition: width 0.3s, margin 0.3s; }
    html:not(.dm) a.logotype:hover img.logotype-image { width: 268px; margin: -1.5px -6.5px; }
}
@keyframes fv2-fade { from { opacity: 0; } to { opacity: 1; } }

/* «Новые покупки» and «Мониторинг» headings (owner 2026-11-26, variant 5 of 7 from the designers): under the text a
   line of 5 segments like the level scale — 2px, 4px gaps, the first two #FF892C, the rest #FF892C at 35% — as long as
   the text, its bottom level with the bottom edge of the icon tile. The h3 and the tile are centred in their flex row,
   so the line sits at centre + half the tile height (32px tile on desktop, 26px on phones); the text is lifted 2px /
   3px so the «у» descender clears it. */
.category-h3.online-h3.heading-ico > h3.h3-text-a { position: relative; top: -2px; }
.category-h3.online-h3.heading-ico > h3.h3-text-a::after {
    content: ""; position: absolute; left: 0; right: 0; top: calc(50% + 16px); height: 2px; pointer-events: none;
    background: linear-gradient(to right,
        var(--ms-accent) 0 calc(20% - 2px), transparent 0 calc(20% + 2px),
        var(--ms-accent) 0 calc(40% - 2px), transparent 0 calc(40% + 2px),
        rgba(var(--ms-accent-rgb), 0.35) 0 calc(60% - 2px), transparent 0 calc(60% + 2px),
        rgba(var(--ms-accent-rgb), 0.35) 0 calc(80% - 2px), transparent 0 calc(80% + 2px),
        rgba(var(--ms-accent-rgb), 0.35) 0);
}
@media (max-width: 900px) {
    .category-h3.online-h3.heading-ico > h3.h3-text-a { top: -3px; }
    .category-h3.online-h3.heading-ico > h3.h3-text-a::after { top: calc(50% + 14px); }
}
@keyframes fvs-draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -10px 0); } }

/*
 * Footer, «Якорь» (owner 2026-11-26, variant 7 of the designers' 8). One 2×2 grid on desktop: orange copyright
 * under the headings' 5-segment underline | the 8 payment chips in one row; disclaimer | links flush right.
 * The chips are one size (the SVGs bake uneven #1E1C22 plaques; the same-colour box hides them), 8px apart; all
 * text Inter 14/20; one 24px gap between all links; links turn white on hover. Phones: one centred column —
 * copyright with its underline as the footer's heading, links in 2 lines, chips 4×2, the disclaimer balanced.
 */
footer.footer-main .footer-block:not(#x) :is(.top-footer-block, .top-footer-block-left, .center-footer-block, .bootom-footer-block, .left-bottom-footer-block) { display: contents; }
footer.footer-main .footer-block:not(#x) :is(p.coop-text, p.text-center-footer, a.link-footer-a) { margin: 0; font-size: 14px; line-height: 20px; }
footer.footer-main .footer-block:not(#x) img.payment-ico-a {
    display: block; box-sizing: border-box; width: 76px; height: 36px; padding: 0;
    object-fit: contain; background: var(--ms-panel); border-radius: 4px;
}
footer.footer-main .footer-block:not(#x) .top-footer-block-right { gap: 8px; }
footer.footer-main .footer-block:not(#x) ul.links-footer-ul { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 0; padding: 0; }
footer.footer-main .footer-block:not(#x) li.footer-link-li:not(.footer-nav-extra) { display: contents; }
footer.footer-main .footer-block:not(#x) a.link-footer-a { transition: color 0.2s; }
footer.footer-main .footer-block:not(#x) a.link-footer-a:hover { color: #fff; text-decoration: none; }
footer.footer-main .footer-block:not(#x) p.coop-text { width: fit-content; justify-self: start; }
footer.footer-main .footer-block:not(#x) p.coop-text::after {
    content: ""; display: block; height: 2px; margin-top: 8px;
    background: linear-gradient(to right,
        var(--ms-accent) 0 calc(20% - 2px), transparent 0 calc(20% + 2px),
        var(--ms-accent) 0 calc(40% - 2px), transparent 0 calc(40% + 2px),
        rgba(var(--ms-accent-rgb), 0.35) 0 calc(60% - 2px), transparent 0 calc(60% + 2px),
        rgba(var(--ms-accent-rgb), 0.35) 0 calc(80% - 2px), transparent 0 calc(80% + 2px),
        rgba(var(--ms-accent-rgb), 0.35) 0);
}
@media (min-width: 901px) {
    footer.footer-main .footer-block:not(#x) {
        display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; padding: 48px 0;
    }
    footer.footer-main .footer-block:not(#x) .top-footer-block-right { display: flex; grid-area: 1 / 2; }
    footer.footer-main .footer-block:not(#x) p.coop-text { grid-area: 1 / 1; }
    footer.footer-main .footer-block:not(#x) p.text-center-footer { grid-area: 2 / 1; }
    footer.footer-main .footer-block:not(#x) ul.links-footer-ul { grid-area: 2 / 2; justify-self: end; }
}
@media (max-width: 900px) {
    footer.footer-main .footer-block:not(#x) {
        display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 40px 0;
    }
    footer.footer-main .footer-block:not(#x) p.coop-text { order: 0; }
    footer.footer-main .footer-block:not(#x) ul.links-footer-ul { order: 1; justify-content: center; }
    /* the same four chips as on desktop (МИР, VISA, Mastercard, СБП), one row under the links */
    footer.footer-main .footer-block:not(#x) .top-footer-block-right { order: 2; display: grid; grid-template-columns: repeat(4, 76px); gap: 8px; justify-content: center; width: 100%; }
    footer.footer-main .footer-block:not(#x) .top-footer-block-right img.payment-ico-a { height: 40px; }
    footer.footer-main .footer-block:not(#x) p.text-center-footer { order: 3; max-width: 400px; margin: 0 auto; text-align: center; text-wrap: balance; }
}

/* «Новые покупки» heading icon: ico-purchases.png is 25px wide but the cart is drawn in its left 23 — the 2 empty
   columns on the right put it 1px left of the plaque's centre. 4% = 1 of its 25 pixels, at any size. */
.contest-ico-border img.contest-ico-a[src*="ico-purchases"] { transform: translateX(4%); }

:is(.server-object-box, .left-info-selectbox):has(> .image-selectbox > img.server-ico-a[src*="/mob-"]) { gap: 12px; }

/* Footer, desktop: the payment chips end where «Политика конфиденциальности» under them does. */
@media (min-width: 901px) {
    footer.footer-main .footer-block:not(#x) .top-footer-block-right { justify-self: end; }
}

/*
 * Донат-Сундук and Богач-Сундук pictures a little darker (owner 2026-11-26: 10/15% first, then 5% back on his word):
 * next to the giveaway's iPhone 18 Pro card they glared. The emerald one reads brightest, so it gets more.
 * Matched by the uploaded files' names (shop products and the giveaway images); a re-upload gets a new name.
 */
img:is([src*="HiVk9bOpgTJX8NerUm0qCVIFa3no4pMSjISjACJV"], [src*="qgUjMvE2DZDf8jT2k3IKD5aPcbBKdj4UoelYgCCq"], [src*="tSHgMWpCPzeL29bRcRqIWOWdOVAsOnnUSP5JPytV"],
    [src*="pjQuqBN3x6YQYxGEc3RHRXdAjWXAlPlAjIVLAI1Y"], [src*="JwUAlFajkO16rsuJau8kUonf8quKbHIkbNOpnUnz"]) { filter: brightness(0.95); }
img:is([src*="bMzeA0I31NIy6Jhd7lRbYh3rsXe5V5UejlZ2Dqhl"], [src*="q3vOlCXzkIEUAS314EVPTcY5CHfHOJrRp4f7cNbS"],
    [src*="Jd0mZtyeyz1M0H31I8qPucj6rtoIieMcBmkfHWmu"], [src*="DGCPeuxqxoGehjUGjZc59lB5XwfGwPSRT0P3fJEk"]) { filter: brightness(0.9); }

/* Phones (26.11.2026): inner pages' panel (/moneyback, /doplata, documents, the shop) rounded like the main page's
 * server list (.select-servers-block, 12px); shop.css squared it on phones. */
@media (max-width: 900px) {
    .content-main { border-radius: 12px; }
}

/* Phones, main page «Категории» tiles (owner 2026-11-26, after the short names «Доплатить», «Поддержка», «Информация»):
 * the text starts at one vertical line on all six tiles — right after the icon, left-aligned (centring was tried and
 * dropped). «Поддержка» is a .custon-button-2, not a .category-a. */
@media (max-width: 900px) {
    .center-bottom-block-a :is(.category-a .text-category-a, .custon-button-2 .text-support-a) { flex: 1; text-align: left !important; }
}
@media (max-width: 900px) {
    body:has(#surcharge__promocode__input) .ms-lvl { margin-bottom: 10px; }
    body:has(#surcharge__promocode__input) :is(.shop-mobile, #shop__list__mobile) { margin-top: 0; }
}

/* Phones, main page (owner 2026-11-26): center-shadow.png keeps its glow, but the heading and the subtitle sit above it
 * (it was painted over the text). Repositioning it like on desktop hid it under the panel, masking its top off was
 * undone by the owner. Desktop untouched. */
@media (max-width: 900px) {
    .content-section-top { position: relative; z-index: 2; }
    /* 10% more transparent (owner 2026-11-26) */
    .select-servers-block > .container-shadow .shadow-main { opacity: 0.9; }
}

/* Hero «Сервер №1 в СНГ для Minecraft на телефоне» (2026-11-26): the second line is 621px at 42px, 2px over the
   old 619px column, and «телефоне» dropped to a third line. A slightly wider column keeps it on two lines. */
@media (min-width: 901px) {
    section.content-section-top { max-width: 640px; }
}

/*
 * Server card header (owner 2026-11-29, mockup ms-site design/home-redesign/servers-giveaways): two 18px rows, every
 * value level with its line — the name | «● N онлайн», the mode (+ «Рекомендуем») | the day as bars (phones; desktop
 * has the chart in «Мониторинг»). No «из N» and no weekly peak: beside the online now they read as «empty now». The
 * same markup on every width.
 */
.server-object .top-server-information {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-rows: 18px 18px;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
}
.server-object .ico-server { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.server-object .right-server-info { display: contents; }
.server-object .title-server {
    grid-column: 2; grid-row: 1; min-width: 0; margin: 0; overflow: hidden;
    line-height: 18px; white-space: nowrap; text-overflow: ellipsis;
}
.server-object .description-server {
    grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0;
    line-height: 18px; white-space: nowrap;
}
/* font: inherit - the site sets Unbounded on bare spans; the mode is the line's Inter */
.server-object .description-server > span:first-child { min-width: 0; overflow: hidden; font: inherit; text-overflow: ellipsis; }
.server-object .description-server .fs-tag { flex: none; margin-left: 0; }
.fs-online {
    grid-column: 3; grid-row: 1; justify-self: end; margin: 0; color: var(--ms-text-3);
    font: 500 12px/18px var(--font-family-second), "Inter", sans-serif; white-space: nowrap;
}
.fs-online::before {
    content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 5px 1px 0; border-radius: 50%;
    background: var(--ms-accent-text); vertical-align: middle;
}
.fs-online b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.fs-online > span { font: inherit; }
/* narrow cards (desktop around 1175-1360px): «● 60» without the word, so the mode and «Рекомендуем» keep their room;
   the orange dot means «online» on the whole site, the word stays in the tooltip */
.server-object .top-server-information { container-type: inline-size; }
@container (max-width: 286px) {
    .fs-online > span { display: none; }
}
.server-object .server-day-strip { grid-column: 3; grid-row: 2; justify-self: end; display: flex; align-items: flex-end; gap: 1px; height: 14px; }
.server-object .server-day-strip i { display: block; width: 2px; height: var(--h); border-radius: 1px; background: rgba(var(--ms-grey-rgb), 0.4); }
.server-object .server-day-strip i.no-data { background: rgba(var(--ms-grey-rgb), 0.15); }
.server-object .server-day-strip i.peak { background: rgba(var(--ms-accent-text-rgb), 0.5); }
.server-object .server-day-strip i.now { background: var(--ms-accent-text); }
/* the smallest phones (320px): thinner bars give «Дюп и Гриф» + «Рекомендуем» the 12px they lack */
@container (max-width: 300px) {
    .server-object .server-day-strip i { width: 1.5px; }
}
@media (min-width: 901px) {
    .server-object .server-day-strip { display: none; }
    /* desktop cards are narrow (four in a row) and the online can be «1 156 онлайн»: «Рекомендуем» takes
       the free cell under the online, so the mode keeps the whole middle column */
    .server-object .description-server { display: contents; }
    .server-object .description-server > span:first-child { grid-column: 2; grid-row: 2; line-height: 18px; }
    .server-object .description-server .fs-tag { grid-column: 3; grid-row: 2; justify-self: end; margin: 0; }
}

/*
 * «Раздача» as a panel like the other blocks of the main page (owner 2026-11-29, mockup ms-site
 * design/home-redesign/giveaways-panel): the panel, its tab on top, the heading with the 5-segment underline;
 * «Кто уже выиграл? / Победители ›» right of the heading on desktop, under the cards on phones. A card: the prize in
 * its bottom-left corner (the prize pictures are drawn up to the edges of their files, so their cut edges are the
 * card's edges), a glow in the prize's own colour (--gw-rgb, home-first.js reads it from the picture; orange until
 * then), three single lines - the name; the entry condition and the players; the draw time - and «›». No lift on
 * hover (a lifted card ran away from the cursor at its bottom edge and blinked): the background, the glow, the arrow
 * and the prize react instead.
 */
.contests-block {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
    row-gap: 22px;
    align-items: start;
    padding: 30px;
    border-radius: 12px;
    background: var(--ms-panel);
}

.contests-block > .gw-tab {
    position: absolute;
    left: 32px;
    top: -8px;
    width: 96px;
    height: 8px;
    background: var(--ms-panel);
}

.contests-block > .top-block-info-a { grid-column: 1; grid-row: 1; gap: 16px; }
.contests-block .top-group-info-block { gap: 12px; }
.contests-block .top-group-info-block .contest-ico-border { flex: none; width: 34px; height: 32px; }
.contests-block .top-group-info-block .contest-ico-a { width: 20px; height: 18px; }
.contests-block h2.h2-block-info-a { position: relative; top: -2px; font: 600 22px/31px Unbounded, sans-serif; }
.contests-block h2.h2-block-info-a::after {
    content: ""; position: absolute; left: 0; right: 0; top: calc(50% + 16px); height: 2px; pointer-events: none;
    background: linear-gradient(to right,
        var(--ms-accent) 0 calc(20% - 2px), transparent 0 calc(20% + 2px),
        var(--ms-accent) 0 calc(40% - 2px), transparent 0 calc(40% + 2px),
        rgba(var(--ms-accent-rgb), 0.35) 0 calc(60% - 2px), transparent 0 calc(60% + 2px),
        rgba(var(--ms-accent-rgb), 0.35) 0 calc(80% - 2px), transparent 0 calc(80% + 2px),
        rgba(var(--ms-accent-rgb), 0.35) 0);
}
.contests-block p.text-block-info-a { max-width: none; font: 500 14px/20px Inter, sans-serif; color: var(--ms-text-3); }
.contests-block > .gw-winners { display: flex; grid-column: 2; grid-row: 1; align-self: start; min-width: 300px; margin: 0; }
.contests-block > .list-contests { grid-column: 1 / -1; grid-row: 2; margin: 0; gap: 20px; }

/* a giveaway card: on the main page (.object-contest, opens the sheet) and at the top of the giveaway sheet
   (.gw-card--sheet, the same look without the arrow and the hover) */
.gw-card {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px 36px 14px 0;
    border-radius: 12px;
    background: var(--ms-bg);
    overflow: hidden;
    transition: background 0.2s;
}
.object-contest.gw-card { cursor: pointer; }
.object-contest.gw-card:hover { background: #1c1b21; }
.gw-card > * { position: relative; z-index: 1; }
/* the glow: a soft core behind the prize and a wide faint wash from the corner over the whole card */
.gw-card::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.85; transition: opacity 0.25s;
    background:
        radial-gradient(110px 100px at 46px calc(100% - 34px), rgba(var(--gw-rgb, 255, 137, 44), 0.34),
            rgba(var(--gw-rgb, 255, 137, 44), 0.1) 60%, transparent),
        radial-gradient(340px 150px at 0 100%, rgba(var(--gw-rgb, 255, 137, 44), 0.1), transparent 72%);
}
.object-contest.gw-card:hover::before { opacity: 1; }

.gw-card .gw-prize { align-self: stretch; min-height: 96px; margin: -14px 0; }
.gw-card .gw-prize-img {
    position: absolute; left: 0; bottom: 0; width: 96px; height: 96px; object-fit: contain;
    transform-origin: 0 100%; transition: transform 0.25s ease;
}
.object-contest.gw-card:hover .gw-prize-img { transform: scale(1.06); }

.gw-card .gw-card-text { display: grid; gap: 8px; min-width: 0; }
.gw-card .gw-name {
    margin: 0; font: 600 16px/22px Unbounded, sans-serif; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gw-card .gw-row { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.gw-card .gw-cond {
    flex: none; display: inline-block; height: 22px; padding: 0 8px; border-radius: 5px;
    background: var(--ms-tag); color: var(--ms-accent-text); font: 600 12px/22px Inter, sans-serif; white-space: nowrap;
}
.gw-card .gw-cond span { font: inherit; }
/* «Покупка от 200 ₽» where there is room, «от 200 ₽» on narrower cards (the subtitle says what it is) */
@media (max-width: 1299px) { .gw-card .gw-cond-buy { display: none; } }
.gw-card :is(.gw-players, .gw-when) {
    margin: 0; min-width: 0; font: 500 13px/17px Inter, sans-serif; color: var(--ms-text-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gw-card .gw-when span { font: inherit; }
.gw-card .gw-first, .gw-card .gw-when .gw-soon { color: var(--ms-accent-text); font-weight: 600; }
.object-contest .gw-go {
    position: absolute; top: 12px; right: 14px; color: var(--ms-text-3); font: 600 18px/1 Inter, sans-serif;
    transition: color 0.2s, transform 0.2s;
}
.object-contest:hover .gw-go { color: var(--ms-accent-text); transform: translateX(2px); }
/* in the sheet: no arrow, so no room kept for it */
.gw-card--sheet { padding-right: 14px; }

/* phones: low cards - a 64px picture, 10px inside, 6px between the lines; the winners card under the cards */
@media (max-width: 900px) {
    .contests-block { grid-template-columns: minmax(0, 1fr); row-gap: 15px; padding: 15px; }
    .contests-block h2.h2-block-info-a::after { top: calc(50% + 14px); }
    .contests-block > .list-contests { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .contests-block > .gw-winners { grid-column: 1; grid-row: 3; min-width: 0; }
    .gw-card { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px 26px 10px 0; }
    .gw-card::before {
        background:
            radial-gradient(80px 74px at 34px calc(100% - 26px), rgba(var(--gw-rgb, 255, 137, 44), 0.34),
                rgba(var(--gw-rgb, 255, 137, 44), 0.1) 60%, transparent),
            radial-gradient(260px 120px at 0 100%, rgba(var(--gw-rgb, 255, 137, 44), 0.1), transparent 72%);
    }
    /* as tall as the 72px picture: a two-line card (the sheet) cut the prize's top */
    .gw-card .gw-prize { min-height: 72px; margin: -10px 0; }
    .gw-card .gw-prize-img { width: 72px; height: 72px; }
    .gw-card .gw-card-text { gap: 6px; }
    .gw-card .gw-name { font-size: 13px; line-height: 18px; }
    .gw-card .gw-row { gap: 6px; }
    .gw-card .gw-cond { height: 20px; padding: 0 6px; font-size: 11px; line-height: 20px; }
    .gw-card :is(.gw-players, .gw-when) { font-size: 12px; line-height: 16px; }
    .gw-card--sheet { padding-right: 12px; }
    .object-contest .gw-go { top: 9px; right: 10px; }
}


/*
 * New Year look (admin «Настройки» → «Оформление сайта», settings.new_year; mockup ms-site design/home-redesign/
 * new-year): pixel snow over the first screen (home-first.js draws it on .ny-snow), a pixel snow cap and a steady
 * garland on the top edge of the server panel. The floating cubes are not rendered meanwhile (index.content.eta).
 * Layer 1: under the knight's hand (header-image-left-hand.png, layer 2), over the panel.
 */
.ny-snow { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; }
.ny-cap {
    position: absolute; top: -5px; left: 10px; right: 10px; z-index: 1; height: 9px; border-radius: 2px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='9' shape-rendering='crispEdges'%3E%3Cg fill='%23EEE9F3'%3E%3Crect y='0' width='48' height='4'/%3E%3Crect x='2' y='4' width='8' height='2'/%3E%3Crect x='4' y='6' width='4' height='2'/%3E%3Crect x='16' y='4' width='6' height='2'/%3E%3Crect x='28' y='4' width='12' height='2'/%3E%3Crect x='30' y='6' width='8' height='2'/%3E%3Crect x='32' y='8' width='2' height='1'/%3E%3C/g%3E%3Cg fill='%23FFFFFF'%3E%3Crect x='6' y='0' width='10' height='2'/%3E%3Crect x='26' y='0' width='14' height='2'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 48px 9px;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
}
.ny-garland { position: absolute; top: -3px; left: 24px; right: 24px; z-index: 1; display: flex; justify-content: space-between; height: 10px; pointer-events: none; }
.ny-garland::before { content: ""; position: absolute; top: 2px; left: 0; right: 0; height: 1px; background: rgba(var(--ms-grey-rgb), 0.45); }
.ny-garland i { position: relative; width: 6px; height: 6px; margin-top: 3px; background: var(--ms-accent-text); box-shadow: 0 0 6px rgba(var(--ms-accent-text-rgb), 0.55); }
.ny-garland i:nth-child(3n + 2) { background: #ffe7c4; box-shadow: 0 0 6px rgba(255, 231, 196, 0.55); }
.ny-garland i:nth-child(3n) { background: var(--ms-accent); box-shadow: 0 0 6px rgba(var(--ms-accent-rgb), 0.55); }
/* phones: 12 bulbs on the narrower panel */
@media (max-width: 600px) {
    .ny-garland i:nth-child(n + 13) { display: none; }
}

/*
 * Text inside buttons in the button's own font (owner 2026-11-29: «текст не попадает в кнопки»). style.css sets
 * Unbounded on every element (* { font-family }), so a bare span / b inside an Inter button became Unbounded, much
 * wider: «Donate from 0.70 €» filled its button edge to edge and squeezed the arrow off. Children of buttons now take
 * the button's font. :where() keeps this rule at zero specificity: it beats only that «*» (it comes later), and any
 * rule with a class - a child meant to have another font - still wins.
 */
:where(button, .mps-btn, a.mvx-howto, [role="button"]) :where(span, b, strong, em, i, small) {
    font-family: inherit;
}

/*
 * No zoom when a field gets the cursor on a phone (owner 2026-11-29: «зумит автоматически при загрузке страницы»).
 * iOS zooms into a field whose text is under 16px on screen; the site is shown at scale 0.9 (viewport initial-scale),
 * so the 16px nick field was 14.4px on screen. On touch screens fields are 18px (16.2 on screen).
 */
@media (pointer: coarse) {
    :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select) {
        font-size: 18px !important;
    }
}

/* «Технические работы» are on and this IP is in the admin's list: the site as usual and this strip on top, so the works
   are not forgotten (modules/maintenance, base.eta). Players get the maintenance page instead of the site. */
.ms-maint-strip { position: relative; z-index: 1000; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px;
    min-height: 34px; padding: 7px 16px; background: var(--ms-accent); color: var(--ms-bg); text-align: center; font: 600 12px/16px var(--font-family-second), "Inter", sans-serif; }
.ms-maint-strip span { font: inherit; }
.ms-maint-strip a { color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.ms-maint-strip a:hover { color: inherit; opacity: .8; }
