/* Desaturated game scene behind the first screen, fading into the page black */
.stage { position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: min(1040px, 118vh); overflow: hidden; pointer-events: none; }
.stage::before { content: ""; position: absolute; inset: 0; background: url(/media/stage.webp?v=1) center 35% / cover; filter: saturate(0) brightness(0.27) contrast(1.1); opacity: 0.9; }
.stage::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 14, 14, 0.78) 0%, rgba(14, 14, 14, 0.4) 42%, rgba(14, 14, 14, 0) 70%),
        linear-gradient(180deg, rgba(14, 14, 14, 0.55) 0%, rgba(14, 14, 14, 0) 22%, rgba(14, 14, 14, 0.35) 62%, var(--bg) 100%);
}
body { position: relative; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); padding-top: clamp(40px, 7vh, 88px); padding-bottom: clamp(56px, 9vh, 104px); align-items: center; }
/* the first screen is the whole screen, its content in the middle: on a screen taller than the content the next
   section begins right under the fold instead of showing the top half of its heading there (26.11.2026; before
   that the head of a character of the line-up stuck out there, the owner: «у Канеки вообще голова торчит») */
.hero { min-height: calc(100vh - var(--header-h, 72px)); min-height: calc(100svh - var(--header-h, 72px)); }
.lede { color: var(--soft); font-size: 18px; max-width: 32em; margin: 0 0 32px; }
.console { display: flex; align-items: stretch; background: var(--well); border: 1px solid var(--line); border-radius: var(--r); max-width: 520px; overflow: hidden; }
.console code { flex: 1; padding: 16px 18px; font: 500 16px/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console code::before { content: "›"; color: var(--gold); margin-right: 10px; }
/* «Скопировать» is the quiet way since 24.11.2026: the gold button of the first screen is «Играть» */
.console button { border: 0; border-left: 1px solid var(--line); background: var(--raised); color: var(--text); font: 600 15px var(--sans); padding: 0 20px; cursor: pointer; transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .console button:hover { background: #2a2a2a; } }
.console button.is-done { color: #06210f; }
/* «Играть» (24.11.2026): one click starts CS2 through Steam and joins the chosen server (steam://connect).
   Before it the only way in was the console, which new players have switched off. */
.play-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; max-width: 520px; margin-bottom: 10px; }
.btn.play { gap: 10px; padding: 15px 30px 15px 24px; border-radius: var(--r); font: italic 800 20px/1 var(--wide); text-transform: uppercase; }
.btn.play svg { flex: none; width: 17px; height: 17px; }
.btn.play:focus-visible { outline: 3px solid rgba(242, 183, 48, 0.5); outline-offset: 3px; }
.play-note { flex: 1 1 200px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
/* A phone or a tablet (touch only) cannot run CS2, and most visitors from TikTok, Discord and Telegram come from
   one: instead of «Играть» the first screen offers to send the address to yourself, to have it at the computer
   later, and the Telegram channel that says when the server is busy */
.phone-row { display: none; max-width: 520px; margin-bottom: 10px; }
.phone-note { margin: 0 0 10px; color: var(--soft); font-size: 15px; line-height: 1.4; }
.phone-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.phone-acts .btn { gap: 8px; padding: 13px 8px; text-align: center; color: var(--text); }
.phone-acts .btn-gold { color: var(--gold-ink); }
.phone-acts svg { flex: none; width: 18px; height: 18px; }
/* the narrowest phones: the name of the server and its state do not fit in one line */
@media (max-width: 350px) {
    .srv { grid-template-columns: minmax(0, 1fr); }
    .srv .srv-online { grid-row: 2; }
}
@media (hover: none) and (pointer: coarse) {
    .play-row { display: none; }
    .phone-row { display: block; }
}
/* Server switch above the address: classic / bhop with their online */
.servers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 520px; margin-bottom: 10px; }
/* until home.js fills it, the server switch keeps its place (is-wait), so the title above does not jump
   down; with a single server home.js hides it and the place goes away */
.servers.is-wait { visibility: hidden; height: 60px; }
@media (max-width: 720px) { .servers.is-wait { height: 77px; } }
.srv { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 3px 10px; text-align: left; padding: 10px 14px 9px; background: var(--well); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); font: inherit; cursor: pointer; }
.srv b { font: italic 800 16px/1.2 var(--wide); }
.srv .srv-online { font: italic 700 15px/1 var(--num); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.srv small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; line-height: 1.3; }
.srv.is-live .srv-online { color: var(--live); }
.srv.is-on { border-color: rgba(242, 183, 48, 0.7); background: rgba(242, 183, 48, 0.07); }
.srv.is-on b { color: var(--gold); }
.srv:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .srv:not(.is-on):hover { border-color: var(--line-strong); } }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 18px; font-size: 15px; color: var(--muted); }
.hero-links a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); }

/* Live server panel */
.live { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px rgba(242, 183, 48, 0.16), 0 40px 140px -30px rgba(242, 183, 48, 0.32); }
.live-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.live-video video { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.85); }
.live-tag { position: absolute; left: 12px; top: 12px; display: flex; gap: 8px; }
.live-tag span { display: inline-flex; align-items: center; gap: 7px; background: rgba(10, 10, 11, 0.85); border-radius: 6px; padding: 4px 9px; font-size: 13px; color: var(--muted); }
.live-tag span.is-on { color: var(--live); }
.killfeed { position: absolute; right: 10px; top: 10px; max-width: 72%; margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; justify-items: end; }
.killfeed li { display: flex; align-items: center; gap: 6px; max-width: 100%; background: rgba(10, 10, 11, 0.85); border-radius: 4px; padding: 3px 8px; font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.killfeed li > * { flex: none; }
.killfeed li span, .killfeed li b { overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.killfeed .m { color: #ff7a66; font-weight: 600; }
.killfeed svg { color: var(--muted); }
.killfeed .bot { color: var(--muted); font-size: 11px; border: 1px solid var(--line-strong); border-radius: 3px; padding: 0 4px; }
.killfeed li.end { color: var(--gold); }
.top-list li i { display: block; width: 76px; }
.live-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.live-stats > div { padding: 12px 16px 10px; min-width: 0; }
.live-stats > div + div { border-left: 1px solid var(--line); }
.live-stats small { display: block; color: var(--muted); font-size: 13px; }
.live-stats b { font: italic 800 32px/1 var(--num); font-variant-numeric: tabular-nums; }
/* "Будь первым" instead of a zero: smaller, on the same line height, so the panel keeps its size */
.live-stats b.is-text { display: block; font: italic 800 18px/32px var(--wide); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .live-stats b.is-text { white-space: normal; font-size: 14px; line-height: 16px; } }
.live-stats b.map-name { display: block; font: italic 800 17px/1.9 var(--wide); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-stats .online b { color: var(--gold); }
.top-list { padding: 14px 16px 12px; min-height: 231px; }
.top-list li.top-empty { display: block; padding: 10px 0 6px; color: var(--soft); font-size: 15px; line-height: 1.5; }
.top-list li.top-empty::before, .top-list li.top-way::before { content: none; }
.top-list li.top-way { grid-template-columns: 40px minmax(0, 1fr); padding: 3px 0; }
.top-list li.top-way b { font: italic 800 17px/1 var(--num); color: var(--text); }
.top-list li.top-way span { color: var(--soft); font-size: 14px; }
/* the top four arrive with the data: keep their place (231 px), so the panel and the title next to it do not jump */
.top-list.is-wait { visibility: hidden; height: 231px; }
.top-list h2 { font: 500 14px/1 var(--sans); color: var(--muted); margin: 0 0 8px; text-transform: none; }
.top-list ol { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.top-list li { counter-increment: p; display: grid; grid-template-columns: 18px 76px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 4px 0; font-size: 15px; }
.top-list li::before { content: counter(p); color: var(--muted); font: italic 800 19px/1 var(--num); padding-top: 2px; }
.top-list li img { width: 76px; height: 30px; display: block; }
.top-list .nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-list .pts { color: var(--muted); font: italic 700 19px/1 var(--num); padding-top: 2px; }
.top-list .more { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--soft); }

/* Line-up of the shop (.shop-roster in css/shop.css): characters cut out of their renders (web/media/chars,
   design/chars/cut_chars.py) standing on a stage of warm light to the right of the shop's title; each has its own
   shadow, the outer ones stand a little in the dark, the middle one in front. Each is a link to its skin and shows
   its name. The same kind of row stood under the first screen of the home page from 22.11.2026; the owner did not
   like it there («не нравятся эти ребята на главной», 26.11.2026: the head of the middle one stuck out at the
   bottom of the first screen), and the home page shows the characters in its shop section anyway, so it went. */
.shop-roster::before {
    content: ""; position: absolute; left: 4%; right: 4%; bottom: 8%; height: 34%; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(236, 84, 44, 0.42), rgba(160, 28, 18, 0.18) 58%, rgba(160, 28, 18, 0));
}
/* the figures show together once MVP.spaceRoster (layout.js) has moved apart those that would hide one another;
   --push is its extra margin on the left, a share of the width */
.shop-roster { transition: opacity 240ms ease-out; }
.shop-roster:not(.is-ready) { opacity: 0; }
.roster-char {
    --w: clamp(210px, 21vw, 330px); --dim: 1;
    position: relative; flex: none; display: block; width: var(--w); margin: 0 calc(var(--w) * -0.25) 0 calc(var(--w) * (var(--push, 0) - 0.25)); text-decoration: none;
    background: radial-gradient(22% 5% at 50% 94%, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0)) no-repeat;
}
.roster-char img {
    display: block; width: 100%; height: auto; aspect-ratio: 1;
    filter: brightness(var(--dim)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
    transition: transform 220ms var(--ease-out, ease-out), filter 220ms ease, opacity 220ms ease;
}
/* The pointer takes a character by its figure only (26.11.2026, the owner: «плохо они наводятся»): the squares of
   neighbours overlap by half, so the square caught the pointer for the one beside. The link itself lets the
   pointer through; a column in the middle of the square, where the figure stands, takes it. Two such columns never
   meet, so the one under the pointer does not change while it moves over a figure. Keyboard focus is unchanged. */
.roster-char { pointer-events: none; }
.roster-char::after { content: ""; position: absolute; left: 31%; right: 31%; top: 8%; bottom: 6%; border-radius: 40% 40% 12% 12%; pointer-events: auto; }
.roster-name {
    position: absolute; left: 50%; top: 3%; translate: -50% 0; padding: 5px 10px 4px; border-radius: 7px; white-space: nowrap; pointer-events: none;
    background: rgba(24, 10, 12, 0.92); border: 1px solid rgba(231, 161, 54, 0.55); color: #ffe2a0; font: 600 13px/1.2 var(--sans);
    opacity: 0; transition: opacity 150ms ease, translate 150ms ease;
}
.roster-char:focus-visible { outline: none; }
.roster-char:focus-visible img { filter: brightness(1.1) drop-shadow(0 0 10px rgba(231, 161, 54, 0.8)); }
.roster-char:focus-visible .roster-name { opacity: 1; translate: -50% -4px; }
@media (hover: hover) and (pointer: fine) {
    .roster-char:hover { z-index: 3; }
    /* the one under the pointer steps forward, the others step back into the dark */
    .shop-roster:has(.roster-char:hover) .roster-char:not(:hover) img { opacity: 0.55; }
    .roster-char:hover img { transform: translateY(-12px) scale(1.03); filter: brightness(1.1) drop-shadow(0 16px 20px rgba(0, 0, 0, 0.55)); }
    .roster-char:hover .roster-name { opacity: 1; translate: -50% -4px; }
}
@media (prefers-reduced-motion: reduce) {
    .shop-roster, .roster-char img, .roster-name { transition: none; }
    .roster-char:hover img { transform: none; }
}

/* Ranks: eight masks on rising steps. All masks the same height; the higher the rank,
   the wider the mask (knives, blades, wings), so the columns follow the masks' proportions */
#ranks { padding-bottom: clamp(56px, 8vh, 96px); }
.ladder {
    --mask-h: clamp(54px, 5.6vw, 88px);
    list-style: none; margin: 8px 0 0; padding: 0; display: grid; align-items: end; gap: 10px;
    grid-template-columns: minmax(84px, 0.9fr) minmax(96px, 1.12fr) minmax(96px, 2.25fr) minmax(96px, 2.55fr) minmax(96px, 2.16fr) minmax(96px, 2.42fr) minmax(96px, 2.47fr) minmax(96px, 2.69fr);
}
.ladder li { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.ladder li::after { content: ""; display: block; width: 100%; height: calc(6px + var(--i) * 10px); margin-top: 14px; background: var(--raised); border-top: 1px solid var(--line-strong); border-radius: 3px 3px 0 0; }
.ladder-mask { display: block; width: 100%; height: var(--mask-h); margin-bottom: 12px; }
.ladder-mask img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.ladder b { font: italic 800 17px/1.2 var(--wide); }
.ladder small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.ladder small:last-of-type { font-variant-numeric: tabular-nums; }
.ladder-more { display: inline-block; margin-top: 22px; color: var(--soft); font-size: 15px; }

/* How to play (26.11.2026, the owner: «раздел (как играть) сделай интереснее, а то он выглядит скучно»). Three
   cards instead of three lines of text: each shows its step — the button and the address to connect with, the
   maniac against everyone else, the points of a round — and carries its number as a red seal on the edge of its
   picture. The cards stand in a row when the section is wide enough for the two roles side by side, otherwise one
   under another, the picture beside the text or above it; measured on the section, which the side menu narrows. */
#how .wrap { container-type: inline-size; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.step { --art-h: 188px; position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.step-art { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: var(--art-h); padding: 16px 20px 26px; background: var(--well); border-bottom: 1px solid var(--line); }
.step .n {
    position: absolute; z-index: 1; left: 20px; top: calc(var(--art-h) - 22px); width: 44px; height: 44px; display: grid; place-items: center; padding-top: 2px;
    border-radius: 6px; background: #a3231b; box-shadow: inset 0 0 0 3px #a3231b, inset 0 0 0 4.5px rgba(255, 226, 160, 0.5), 0 6px 14px -6px rgba(0, 0, 0, 0.7);
    color: #ffe2a0; font: italic 900 24px/1 var(--num); rotate: -4deg;
}
.step h3 { margin: 34px 22px 8px; font: 600 18px/1.3 var(--sans); }
.step > p { margin: 0 22px 22px; color: var(--soft); }
/* the picture beside the text: the seal stands before the title, so nothing of the picture lies under it */
@container (min-width: 600px) and (max-width: 939.98px) {
    .step { display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .step-art { grid-row: 1 / -1; height: auto; min-height: var(--art-h); padding-bottom: 16px; border-bottom: 0; border-right: 1px solid var(--line); }
    .step .n { left: calc(340px + 24px); top: 20px; }
    .step h3 { margin: 30px 24px 12px 84px; }
    .step > p { margin: 0 24px 22px; }
}
@container (min-width: 940px) {
    .stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
/* 1: the button and the address of the first screen, for the same server */
.step-connect { flex-direction: column; gap: 10px; }
.step-connect .btn { width: 100%; max-width: 280px; padding: 12px 18px; font-size: 16px; }
.step-connect .btn svg { width: 15px; height: 15px; }
.console.is-small { flex-direction: row; width: 100%; max-width: 280px; }
.console.is-small code { padding: 11px 12px; font-size: 14px; white-space: nowrap; }
.console.is-small code::before { margin-right: 8px; }
.console.is-small button { display: grid; place-items: center; padding: 0 13px; border-top: 0; border-left: 1px solid var(--line); }
.console.is-small button svg { width: 17px; height: 17px; }
.console.is-small button.is-done .how-copy-icon { display: none; }
.how-key { margin: 2px 0 0; max-width: 280px; font-size: 13px; line-height: 1.35; color: var(--muted); text-align: center; }
.how-key kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-right: 7px; padding: 0 5px; vertical-align: 1px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--raised); color: var(--text); font: 600 13px/1 var(--sans); }
/* 2: one maniac (a mask of «Стиль») against everyone else */
.step-roles { display: grid; grid-template-columns: auto auto auto; grid-template-rows: 84px auto; align-content: center; justify-content: center; align-items: center; justify-items: center; gap: 10px 14px; }
.role-faces { display: flex; align-items: center; }
.role-faces img { display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--raised); box-shadow: 0 0 0 2px var(--well); }
.role-faces img + img { margin-left: -15px; }
.role-faces img.is-maniac { width: 84px; height: 84px; box-shadow: 0 0 0 2px #a3231b, 0 0 0 4px rgba(255, 226, 160, 0.28); }
.role-or { font: italic 800 13px/1 var(--wide); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.role-cap { display: grid; gap: 2px; text-align: center; }
.role-cap:first-of-type { grid-column: 1; }
.role-cap:last-of-type { grid-column: 3; }
.role-cap b { font: 600 15px/1.2 var(--sans); color: var(--text); }
.role-cap span { font-size: 13px; line-height: 1.3; color: var(--muted); }
/* 3: what a round brings, the same lines as on the top page: the survivor's on the left, the maniac's on the right */
.step-score { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 12px 20px; padding-left: 26px; padding-right: 26px; }
.step-score span { display: grid; align-content: start; gap: 3px; min-width: 0; }
.step-score b { font: italic 800 28px/1 var(--num); color: var(--gold); font-variant-numeric: tabular-nums; }
.step-score i { font-style: normal; font-size: 13.5px; line-height: 1.3; color: var(--soft); }

/* Chat commands under the steps (24.11.2026: the twelve a player needs, each from a plugin of the launch package).
   Since 26.11.2026 in three groups, and a click copies one: in the game it is pasted into the chat. */
.cmds { margin-top: 44px; }
.cmds-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 14px; }
.cmds-head h3 { margin: 0; font: 600 18px/1.3 var(--sans); }
.cmds-head p { margin: 0; font-size: 14px; color: var(--muted); }
.cmd-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@container (min-width: 760px) { .cmd-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.cmd-group { padding: 14px 10px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cmd-group h4 { margin: 0 10px 6px; font: italic 800 13px/1.2 var(--wide); letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold); }
.cmd-list { list-style: none; margin: 0; padding: 0; }
.cmd { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 5px 10px; border: 0; border-radius: 8px; background: none; color: var(--soft); font: 400 14.5px/1.3 var(--sans); text-align: left; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.cmd code { flex: none; min-width: 64px; padding: 4px 8px; border-radius: 6px; background: var(--raised); color: var(--text); font: 600 14px/1.2 var(--sans); text-align: center; transition: color 150ms ease; }
.cmd.is-done code { color: var(--live); }
.cmd:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.cmd:active { background: var(--raised); }
@media (hover: hover) and (pointer: fine) { .cmd:hover { background: var(--raised); color: var(--text); } }
@media (prefers-reduced-motion: reduce) { .cmd, .cmd code { transition: none; } }

/* Faint radar rings behind a section — gold as light */
.rings { position: relative; isolation: isolate; }
.rings::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: repeating-radial-gradient(circle at var(--rings-at, 88% 30%), rgba(242, 183, 48, 0.09) 0 1px, transparent 1px 56px);
    -webkit-mask-image: radial-gradient(circle at var(--rings-at, 88% 30%), #000 0, transparent 46%);
    mask-image: radial-gradient(circle at var(--rings-at, 88% 30%), #000 0, transparent 46%);
}

/* Maps: the current one large, the rest of the rotation around it */
.maps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 148px; gap: 12px; }
.map { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.map img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.map:hover img { transform: scale(1.03); }
.map figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 12px 10px; background: linear-gradient(transparent, rgba(8, 8, 9, 0.55) 40%, rgba(8, 8, 9, 0.92)); }
.map b { display: block; font: italic 800 15px/1.15 var(--wide); }
.map small { color: var(--muted); font-size: 12px; }
.map.is-big { grid-column: span 2; grid-row: span 2; }
.map.is-now { border-color: rgba(76, 195, 138, 0.45); }
.map.is-big b { font-size: 26px; }
.map.is-big figcaption { padding: 48px 18px 16px; }
.now-badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; background: rgba(10, 10, 11, 0.85); color: var(--live); font-size: 13px; padding: 5px 10px; border-radius: 6px; }
.now-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }

/* Free + why */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); }
.free { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; align-self: start; }
.free p { margin: 0; }
.free p:first-child { font: 500 22px/1.35 var(--sans); margin-bottom: 14px; }
.free p + p { color: var(--soft); }
.why { display: grid; gap: 22px; }
.why > div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.why > div:last-child { border-bottom: 0; }
.why b { font-weight: 600; }
.why p { margin: 0; color: var(--soft); }

/* Store preview: a glance, the shop itself lives on /shop */
.store-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 24px; }
.store-head .sub { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 12px 20px; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-line { border-color: rgba(242, 183, 48, 0.5); background: transparent; }
.btn-line:hover { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; }
.tiers a { display: block; padding: 18px 20px; text-decoration: none; }
.tiers a + a { border-left: 1px solid var(--line); }
.tiers a:hover { background: var(--raised); }
.tiers b { display: block; font: italic 800 18px/1.2 var(--wide); }
.tiers .hp { font: italic 800 30px/1 var(--num); display: block; margin-top: 10px; }
.tiers .hp small { font: 400 13px var(--sans); color: var(--muted); margin-left: 4px; }
.tiers .from { color: var(--muted); font-size: 14px; }
.tiers .from b { display: inline; font: italic 800 20px/1 var(--num); color: var(--text); }
/* Characters large: the square render on top, name and price under it */
.skins-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.skin-tile { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; }
.skin-tile:hover { border-color: var(--line-strong); }
.skin-tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.skin-tile > span { display: block; padding: 2px 18px 18px; }
.skin-tile .skin-name { display: block; font: italic 800 18px/1.25 var(--wide); margin-bottom: 4px; }
.skin-tile .skin-price { color: var(--muted); font-size: 14px; }
.skin-tile .skin-price b { font: italic 800 20px/1 var(--num); color: var(--text); }

/* Team as a top-down tree */
.org { --stem: 32px; --wire: rgba(255, 255, 255, 0.2); display: grid; justify-items: center; }
.org-lead { position: relative; margin-bottom: var(--stem); }
.org-lead::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: var(--stem); background: var(--wire); }
.org-lead:only-child::after { display: none; }
.org-mods { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: nowrap; }
.org-mods > li { position: relative; padding: var(--stem) 10px 0; }
.org-mods > li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--wire); }
.org-mods > li:first-child::before { left: 50%; }
.org-mods > li:last-child::before { right: 50%; }
.org-mods > li:only-child::before { display: none; }
.org-mods > li::after { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: var(--stem); background: var(--wire); }
.person { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px 10px 10px; min-width: 210px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; font: italic 800 16px var(--wide); color: var(--muted); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person b { display: block; font-weight: 600; font-size: 15px; line-height: 1.2; }
.person small { color: var(--muted); font-size: 13px; }
.org-lead .person { padding: 14px 22px 14px 14px; gap: 14px; min-width: 280px; }
.org-lead .avatar { width: 56px; height: 56px; font-size: 22px; }
.org-lead .person b { font-size: 18px; }
.org-lead .person p { margin: 4px 0 0; color: var(--soft); font-size: 13px; max-width: 26em; }
.tag { font: italic 800 11px/1 var(--wide); color: var(--gold-ink); background: var(--gold); border-radius: 4px; padding: 3px 5px; margin-left: 6px; vertical-align: 2px; }
.tag.mod { background: var(--raised); color: var(--text); }

/* «Позови друга» (24.11.2026): what the friend and the inviter get; the credits for the friend's hours on the
   server stand on three rising steps, the same step as the podium of the top. The numbers come from config.js. */
.invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: end; gap: 28px 56px; }
.invite .sub { max-width: 34em; margin-bottom: 22px; }
.inv-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.inv-box { display: grid; gap: 14px; min-width: 0; }
.inv-cap { margin: 0; color: var(--muted); font-size: 13px; }
.inv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; }
.inv-steps li { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; text-align: center; }
.inv-steps span { font: italic 800 16px/1.15 var(--wide); color: var(--soft); }
.inv-steps b { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; height: 66px; padding-top: 12px; background: var(--raised); border-top: 1px solid var(--line-strong); border-radius: 3px 3px 0 0; font: italic 800 28px/1 var(--num); font-variant-numeric: tabular-nums; }
.inv-steps li:nth-child(2) b { height: 90px; }
.inv-steps li:nth-child(3) b { height: 114px; }
.inv-steps small { font: 400 13px/1 var(--sans); color: var(--muted); }

/* Community (23.11.2026, «Маски»): a section of its own with a title; the Discord card is alive — how many are
   online (gold, like the live numbers of the server above) and how many are in it, from /api/discord/stats.
   The bottom line keeps its height while empty, so nothing moves when the numbers come. */
.community { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cm { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 22px 24px 18px; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color 150ms ease, background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) {
    .cm:hover { border-color: var(--line-strong); background: var(--raised); }
    .cm:hover .cm-go { text-decoration: underline; }
}
.cm:focus-visible { outline: 3px solid rgba(242, 183, 48, 0.5); outline-offset: 2px; }
.cm-head { display: flex; align-items: center; gap: 12px; }
.cm-head svg { flex: none; width: 28px; height: 28px; color: var(--soft); }
.cm-head b { font: italic 800 24px/1 var(--wide); }
.cm-text { color: var(--soft); }
.cm-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; min-height: 37px; padding-top: 12px; border-top: 1px solid var(--line); }
.cm-live { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; color: var(--muted); font-size: 14px; }
.cm-live b { font: italic 800 20px/1 var(--num); font-variant-numeric: tabular-nums; color: var(--text); }
.cm-live b.on { color: var(--gold); }
.cm-live .dot { align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.cm-live .sep { margin: 0 4px; }
.cm-go { margin-left: auto; color: var(--gold); font-weight: 600; font-size: 15px; white-space: nowrap; }

@media (max-width: 1080px) {
    .hero, .split { grid-template-columns: minmax(0, 1fr); }
    .maps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 132px; }
    .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tiers a:nth-child(3) { border-left: 0; }
    .tiers a:nth-child(n+3) { border-top: 1px solid var(--line); }
    .community { grid-template-columns: minmax(0, 1fr); }
    .invite { grid-template-columns: minmax(0, 1fr); }
    .inv-box { max-width: 460px; }
}
/* Ranks scroll sideways when eight columns no longer fit */
@media (max-width: 960px) {
    .ladder { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(124px, 30%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
    .ladder li { scroll-snap-align: start; }
}
/* Phones: wider rank columns, two and a half on a screen */
@media (max-width: 720px) {
    .ladder { grid-auto-columns: minmax(118px, 42%); }
}
@media (max-width: 560px) {
    .skins-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .skin-tile { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px; }
    .skin-tile img { width: 96px; height: 96px; }
    .skin-tile > span { padding: 0 14px 0 0; }
    .skin-tile .skin-name { font-size: 15px; }
}
@media (max-width: 720px) {
    .why > div { grid-template-columns: 1fr; gap: 6px; }
    .live-stats b { font-size: 26px; }
    .live-stats b.map-name { font-size: 13px; line-height: 2; }
    .maps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 108px; gap: 8px; }
    .map.is-big b { font-size: 20px; }
    .map b { font-size: 13px; }
    .org { justify-items: stretch; }
    .org-lead .person, .person { min-width: 0; }
    .org-lead::after { left: 28px; }
    .org-mods { flex-direction: column; padding-left: 24px; margin-left: 28px; border-left: 1px solid var(--wire); }
    .org-mods > li { padding: 0 0 10px 0; }
    .org-mods > li:last-child { padding-bottom: 0; }
    .org-mods > li::before, .org-mods > li:first-child::before, .org-mods > li:last-child::before { top: 30px; left: -24px; right: auto; width: 24px; }
    .org-mods > li::after { display: none; }
    .org-mods > li:last-child::after { content: ""; display: block; position: absolute; left: -25px; top: 31px; bottom: 0; width: 3px; height: auto; background: var(--bg); }
}
@media (max-width: 440px) {
    .console { flex-direction: column; }
    .console code { white-space: normal; }
    .console button { padding: 12px; border-left: 0; border-top: 1px solid var(--line); }
    .tiers { grid-template-columns: minmax(0, 1fr); }
    .tiers a + a { border-left: 0; border-top: 1px solid var(--line); }
}
