/* The Chinese look of the site: dark lacquer, gold, lanterns. The main look since 24.11.2026 (the owner's
   decision; before that day it was a preview behind ?cn=1).
   It lies over the previous look («Маски»: site.css and the styles of the pages) and applies while <html> has
   data-cn, which stands in every page; this file is linked last. /?cn=off takes the attribute away (js/cn.js),
   so the previous look can still be seen and must keep working.
   The pictures in media/cn are cut from the owner's pictures (design/cn/cut.py, cut_menu.py):
     lantern, branch, corner (the two together), envelope — the ornaments,
     lantern-mark — the lantern without its strings, the mark of the logo,
     banner — the whole tile as drawn, without the word and the figures (they are live text here),
     menu-* — the six tiles of the menu.
     plaque, dragon, cup — for the podium of the top page: an emptied tile and two things of the «Топ» tile.
     scroll, gavel — the gold things of the rules and bans tiles, for the penalty scale of those pages.
   The rule of this style is taken from cs2red, the owner's example of a good-looking site: surfaces are calm —
   flat dark lacquer with a thin edge, no texture and no glow — and painted art comes in small doses: the lantern
   of the logo, the menu, one ornament on a screen at most. The first try had silk ribbons, a glowing red edge and
   an ornament on every tile; the owner found it heavy.
   The colours come from the tokens below, so everything painted with --panel, --raised, --well and --line
   changes by itself. Ornaments never lie on text: a tile either has an empty corner for one or moves its content
   aside, like the tile in the picture does for its lantern. */

/* ── tokens ── */
[data-cn] {
    --bg: #0d0909;
    --panel: #1c0d0f;
    --raised: #2a1215;
    --well: #120809;
    --line: rgba(255, 112, 90, 0.12);
    --line-strong: rgba(255, 126, 98, 0.28);
    --soft: #dbcdc8;
    --muted: #ab9a96;
    --dim: #6a5350;

    --cn-edge: rgba(226, 54, 44, 0.5);
    --cn-gold-hi: #ffe2a0;
    --cn-gold-lo: #e7a136;
    --cn-lantern: url(/media/cn/lantern.webp?v=2);
    --cn-branch: url(/media/cn/branch.webp?v=2);
    --cn-corner: url(/media/cn/corner.webp?v=2);
    --cn-envelope: url(/media/cn/envelope.webp?v=2);
    --cn-lamp-glow: drop-shadow(0 0 12px rgba(255, 96, 40, 0.5));
    /* a badge like the one in the picture: a long hexagon with a gold outline. Its pointed ends are the side
       borders of the element (24 of the picture's 120 units each), the middle stretches with the text */
    --cn-hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='48' viewBox='0 0 120 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop stop-color='%23ffe2a0'/%3E%3Cstop offset='1' stop-color='%23d9902a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M19 3h82l16 21-16 21H19L3 24z' fill='%233c090b' stroke='url(%23g)' stroke-width='3.4' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ── the logo: a lantern instead of the star (the owner's wish, 24.11.2026) ──
   The star is an inline picture inside the link; the lantern takes its place as the link's first item.
   The same link is copied onto the loading screen, so it changes there too. */
[data-cn] .brand > svg { display: none; }
[data-cn] .brand::before {
    content: ""; flex: none; width: 29px; aspect-ratio: 130 / 163;
    background: url(/media/cn/lantern-mark.webp?v=2) center / contain no-repeat;
    filter: drop-shadow(0 0 7px rgba(255, 96, 40, 0.55));
}

/* ── the scene behind the first screen: the owner's painted night of the same place (25.11.2026: the CS2 corner with
   the jumping player, repainted in ChatGPT as an old Chinese town with lanterns and the moon), in its own colours,
   a little darker than the picture; the shades over it keep the title easy to read ── */
[data-cn] .stage::before { background-image: url(/media/cn/stage-night.webp?v=1); filter: brightness(0.74); opacity: 1; }
[data-cn] .stage::after {
    background:
        radial-gradient(58% 52% at 78% 30%, rgba(180, 26, 20, 0.08), rgba(180, 26, 20, 0) 70%),
        linear-gradient(90deg, rgba(13, 9, 9, 0.78) 0%, rgba(13, 9, 9, 0.4) 42%, rgba(13, 9, 9, 0) 70%),
        linear-gradient(180deg, rgba(13, 9, 9, 0.55) 0%, rgba(13, 9, 9, 0) 22%, rgba(13, 9, 9, 0.35) 62%, var(--bg) 100%);
}
[data-cn] body::after {
    background:
        radial-gradient(58% 60% at 80% 22%, rgba(180, 26, 20, 0.18), rgba(180, 26, 20, 0) 70%),
        linear-gradient(90deg, rgba(13, 9, 9, 0.82) 0%, rgba(13, 9, 9, 0.4) 46%, rgba(13, 9, 9, 0.15) 74%, rgba(13, 9, 9, 0.5) 100%),
        linear-gradient(180deg, rgba(13, 9, 9, 0.55) 0%, rgba(13, 9, 9, 0) 24%, rgba(13, 9, 9, 0.45) 62%, var(--bg) 100%);
}
/* the inner pages (25.11.2026, the owner: «фоны ... нужно переиграть ... подходящими под стиль сайта»): his painted
   nights of our maps instead of the grey maps of the look «Маски» — a market on a rooftop for the shop, a temple with
   a rack of blades for the skins, a pagoda under the moon for the top, a street of banners for the clans, a temple in
   the snow for the rules, a fortress with a gong for the bans (design/cn/make_page_bgs.py). They keep their colours;
   the shades of body::after above keep the left side, where the title stands, dark. The profile keeps its own. */
[data-cn][data-page="shop"] { --bg-map: url(/media/cn/bg-shop.webp?v=2); }
[data-cn][data-page="skins"] { --bg-map: url(/media/cn/bg-skins.webp?v=2); }
[data-cn][data-page="top"] { --bg-map: url(/media/cn/bg-top.webp?v=2); }
[data-cn][data-page="clans"] { --bg-map: url(/media/cn/bg-clans.webp?v=2); }
[data-cn][data-page="rules"] { --bg-map: url(/media/cn/bg-rules.webp?v=2); }
[data-cn][data-page="bans"] { --bg-map: url(/media/cn/bg-bans.webp?v=2); }
/* the chat (26.11.2026) meets in the street of banners of the clans: a place where players gather */
[data-cn][data-page="chat"] { --bg-map: url(/media/cn/bg-clans.webp?v=2); }
/* a profile without «Стиль» (26.11.2026): the pagoda under the moon of the top instead of the grey map of «Маски»
   (the night of the home page has the jumping player in it, who stood behind the name) */
[data-cn][data-page="profile"] { --bg-map: url(/media/cn/bg-top.webp?v=2); }
/* until the profile knows its «Стиль» (js/profile.js), no picture: a player's own background loads alone, not after this one */
[data-cn][data-page="profile"][data-look-pending] { --bg-map: none; }
/* wide screens, and narrower ones with dense pixels: the same pictures enlarged by Real-ESRGAN to 2560 px
   (design/cn/upscale_bgs.py, 26.11.2026); stretched over a large screen the 1672 px ones went soft */
@media (min-width: 1700px), (min-width: 1100px) and (min-resolution: 1.3dppx) {
    [data-cn][data-page="shop"] { --bg-map: url(/media/cn/bg-shop-2k.webp?v=1); }
    [data-cn][data-page="skins"] { --bg-map: url(/media/cn/bg-skins-2k.webp?v=1); }
    [data-cn][data-page="top"] { --bg-map: url(/media/cn/bg-top-2k.webp?v=1); }
    [data-cn][data-page="clans"] { --bg-map: url(/media/cn/bg-clans-2k.webp?v=1); }
    [data-cn][data-page="rules"] { --bg-map: url(/media/cn/bg-rules-2k.webp?v=1); }
    [data-cn][data-page="bans"] { --bg-map: url(/media/cn/bg-bans-2k.webp?v=1); }
    [data-cn][data-page="chat"] { --bg-map: url(/media/cn/bg-clans-2k.webp?v=1); }
    [data-cn][data-page="profile"] { --bg-map: url(/media/cn/bg-top-2k.webp?v=1); }
    [data-cn] .stage::before { background-image: url(/media/cn/stage-night-2k.webp?v=1); }
}
/* the faint rings behind sections were gold; here they are the red of the edges */
[data-cn] .rings::before { background-image: repeating-radial-gradient(circle at var(--rings-at, 88% 30%), rgba(236, 70, 54, 0.08) 0 1px, transparent 1px 56px); }

/* ── tiles ──
   Nothing is painted on a tile: the tokens make it flat dark lacquer with a thin edge. A tile that can be
   pressed answers the cursor with a gold edge. */
@media (hover: hover) and (pointer: fine) {
    [data-cn] :is(.cm, .skin-tile):hover { border-color: rgba(255, 196, 96, 0.6); }
}
[data-cn] :is(.cm, .skin-tile) { transition: border-color 150ms ease, background-color 150ms ease; }

/* ── ornaments: few, and each in a place of its own ──
     the first screen — a blossom branch and a lantern on the corner of the server panel,
     the community cards — a lantern at the left end, as on the tile of the picture,
     gifts («everything is free», the rewards for a friend) — a red envelope: on the corner of the first,
     before the last label of the second,
     the VIP table — the lantern on its branch in the empty top-left cell.
   Those that hang over an edge are pseudo-elements of the tile. */
[data-cn] :is(.cm, .free, .live) { position: relative; }
[data-cn] :is(.cm, .live)::after, [data-cn] .live::before, [data-cn] .free::after {
    content: ""; position: absolute; z-index: 2; pointer-events: none; background: center / contain no-repeat;
}
/* a lantern hangs on its string from the top of the picture and sways a little around that point */
@keyframes cn-sway { from { rotate: -1.5deg; } to { rotate: 1.5deg; } }
[data-cn] :is(.cm, .live)::after { aspect-ratio: 130 / 280; background-image: var(--cn-lantern); filter: var(--cn-lamp-glow); transform-origin: 50% 0; }
@media (prefers-reduced-motion: no-preference) {
    [data-cn] :is(.cm, .live)::after { animation: cn-sway 5.6s ease-in-out infinite alternate; }
    [data-cn] .cm + .cm::after { animation-duration: 6.6s; animation-delay: -2.4s; }
}

/* the first screen: the server panel wears the corner of the picture — a blossom branch over its top edge and the
   lantern on it. Mirrored to the right corner: the left one holds the state of the server. The light under the
   panel was gold; here it is the red of the lantern, and weaker */
[data-cn] .live { overflow: visible; box-shadow: 0 0 0 1px rgba(255, 96, 64, 0.1), 0 40px 140px -30px rgba(214, 40, 30, 0.3); }
[data-cn] .live-video { border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0; overflow: hidden; }
[data-cn] .live { --k: 0.62px; }      /* a pixel of the source picture on the screen */
[data-cn] .live::before { right: calc(var(--k) * -6); top: calc(var(--k) * -37); width: calc(var(--k) * 276); aspect-ratio: 276 / 114; background-image: var(--cn-branch); scale: -1 1; }
[data-cn] .live::after { right: calc(var(--k) * -47); top: calc(var(--k) * -15); width: calc(var(--k) * 130); }

/* the community cards: the lantern at the left end, the content after it */
[data-cn] .cm { padding-left: 104px; }
[data-cn] .cm::after { left: 22px; top: -2px; width: 62px; }

/* "everything is free" is a gift: a red envelope on the corner (the rewards for a friend have theirs before the last label, see below) */
[data-cn] .free::after { aspect-ratio: 136 / 161; background-image: var(--cn-envelope); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55)); }
[data-cn] .free::after { right: -18px; top: -30px; width: 62px; }

/* the VIP table clips what leaves it, so its ornament lies on the table itself: the lantern on its branch in
   the empty top-left cell */
[data-cn] .table-scroll { background-image: var(--cn-corner); background-repeat: no-repeat; background-position: left 16px top -12px; background-size: auto 160px; }

/* ── the top (the owner asked for a proper Chinese look, 24.11.2026) ──
   The podium is the one rich thing of the page: its three steps are lacquer plaques in the gold frame of the menu
   tiles (plaque.webp, an emptied tile, stretched by its edges), and the first place has the dragon and the cup of
   the «Топ» tile. The table stays calm: the first three places stand in the gold hexagon of the badges, each
   rank floor begins with a band of lacquer and a gold line. --ph is the height of a step. */
[data-cn] .pod-step {
    align-items: center; padding-top: 0; background: none; border: 10px solid transparent; border-radius: 0;
    border-image: url(/media/cn/plaque.webp?v=2) 18 fill / 10px; color: var(--cn-gold-hi); text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6);
}
[data-cn] .pod.is-me .pod-step { box-shadow: none; filter: drop-shadow(0 0 6px rgba(255, 176, 64, 0.5)); }
/* the digit stands in the middle of what the dragon leaves free */
[data-cn] .pod.p1 { container-type: inline-size; }
[data-cn] .pod.p1 .pod-step { --ph: 84px; position: relative; padding-left: calc(var(--ph) * 0.889 - 7px); }
[data-cn] .pod.p1 .pod-step::before, [data-cn] .pod.p1 .pod-step::after { content: ""; position: absolute; pointer-events: none; background: center / contain no-repeat; }
/* the dragon comes out of the bottom left corner, as on the tile: his neck ends at the gold line of the frame */
[data-cn] .pod.p1 .pod-step::before { left: -7px; bottom: -7px; height: calc(var(--ph) * 0.88); aspect-ratio: 192 / 190; background-image: url(/media/cn/dragon.webp?v=1); }
[data-cn] .pod.p1 .pod-step::after { display: none; right: 0; top: 50%; translate: 0 -50%; height: calc(var(--ph) * 0.6); aspect-ratio: 141 / 158; background-image: url(/media/cn/cup.webp?v=1); }
/* the cup closes the step on the right only where the step has room for the dragon, the digit and the cup */
@container (min-width: 180px) {
    [data-cn] .pod.p1 .pod-step { padding-left: 22px; }
    [data-cn] .pod.p1 .pod-step::after { display: block; }
}
/* a free place of the first days: the plaque is dim, like the mask above it */
[data-cn] .pod.is-free .pod-step { filter: saturate(0.5) brightness(0.62); }

[data-cn] .formula b { color: var(--cn-gold-hi); }
[data-cn] .lb th:first-child, [data-cn] .lb .place { width: 60px; padding-left: 10px; padding-right: 10px; text-align: center; }
/* the hexagon of a place is shorter and taller than the one of the badges: it holds one digit */
[data-cn] .lb tr.top3 .place {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='56' viewBox='0 0 96 56'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop stop-color='%23ffe2a0'/%3E%3Cstop offset='1' stop-color='%23d9902a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M19 3h58l16 25-16 25H19L3 28z' fill='%233c090b' stroke='url(%23g)' stroke-width='3.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / 46px 27px no-repeat;
    color: var(--cn-gold-hi); font-size: 17px;
}
[data-cn] .lb tr.tier-row { background: linear-gradient(90deg, rgba(124, 18, 20, 0.36), rgba(124, 18, 20, 0) 62%) var(--well); }
[data-cn] .lb tr.tier-row td { background: none; border-bottom-color: rgba(231, 161, 54, 0.32); }
@media (max-width: 720px) {
    [data-cn] .pod-step { border-width: 8px; border-image-width: 8px; }
    [data-cn] .pod.p1 .pod-step { --ph: 60px; }
    [data-cn] .pod.p1 .pod-step::before { left: -5px; bottom: -5px; }
    [data-cn] .lb th:first-child, [data-cn] .lb .place { width: 46px; padding-left: 6px; padding-right: 6px; }
    [data-cn] .lb tr.top3 .place { background-size: 38px 22px; font-size: 14px; }
}

/* ── rules and bans: the penalty scale (the owner agreed to do it like the top, 24.11.2026) ──
   The three steps are the lacquer plaques of the podium. A step is a filter: the chosen one glows gold, the one
   under the cursor gets lighter, one with nothing to show is dim. The gold thing of the page's menu tile, the
   scroll on the rules page and the gavel on the bans page, stands on the tallest step before its label. (First
   it lay inside that step under the number; the owner found it out of place there and showed where to move it.) */
[data-cn] .sc-step {
    position: relative; padding-top: 3px; background: none; border: 10px solid transparent; border-radius: 0;
    border-image: url(/media/cn/plaque.webp?v=2) 18 fill / 10px; box-shadow: none; transition: filter 150ms ease;
}
/* In the usual look the three steps rise like a staircase. As plaques in a frame the taller ones stood half
   empty, with the number pressed to the top, and the owner asked to lower them: here all three are of one height
   and their labels stand in one line. The room kept for the scale before it is drawn is smaller accordingly. */
[data-cn] .sc-step, [data-cn] .sc.s2 .sc-step, [data-cn] .sc.s3 .sc-step { height: 60px; }
[data-cn] .scale { min-height: 88px; }
[data-cn] .sc-step b { color: var(--cn-gold-hi); text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6); }
[data-cn] .sc-step b.zero { color: var(--soft); }
[data-cn] .sc-step small { color: var(--soft); }
[data-cn] .sc[aria-pressed="true"] .sc-step { background: none; box-shadow: none; filter: brightness(1.16) drop-shadow(0 0 6px rgba(255, 176, 64, 0.55)); }
@media (hover: hover) and (pointer: fine) {
    [data-cn] .sc:not(:disabled):hover .sc-step { background: none; filter: brightness(1.12); }
    [data-cn] .sc[aria-pressed="true"]:not(:disabled):hover .sc-step { filter: brightness(1.22) drop-shadow(0 0 6px rgba(255, 176, 64, 0.55)); }
}
[data-cn] .sc:disabled .sc-step { filter: saturate(0.5) brightness(0.62); }
/* The label and the thing before it are one line in the middle of the step, however long the label is (in
   English it is longer than the step on a phone): the line may stick out a little on both sides, it never wraps.
   The thing is level with the label: its middle stands on the middle of the letters. (First it stood lower, with
   its foot on the plaque; the owner saw it as fallen and asked to level it with the text.) The middle of the
   capital letters lies a little under the middle of the line, hence the half pixel down. */
[data-cn] .sc.s3 .sc-label { position: relative; max-width: none; padding-left: 33px; white-space: nowrap; }
[data-cn] .sc.s3 .sc-label::before {
    content: ""; position: absolute; left: 0; top: calc(50% + 0.5px); translate: 0 -50%; width: 28px; height: 28px; pointer-events: none;
    background: center / contain no-repeat; transition: filter 150ms ease;
}
[data-cn][data-page="rules"] .sc.s3 .sc-label::before { background-image: url(/media/cn/scroll.webp?v=1); }
[data-cn][data-page="bans"] .sc.s3 .sc-label::before { background-image: url(/media/cn/gavel.webp?v=1); }
[data-cn] .sc.s3:disabled .sc-label::before { filter: saturate(0.5) brightness(0.62); }
@media (max-width: 720px) {
    [data-cn] .sc-step { padding-top: 3px; border-width: 8px; border-image-width: 8px; }
    [data-cn] .sc-step, [data-cn] .sc.s2 .sc-step, [data-cn] .sc.s3 .sc-step { height: 48px; }
    [data-cn] .scale { min-height: 71px; }
    [data-cn] .sc.s3 .sc-label { padding-left: 23px; }
    [data-cn] .sc.s3 .sc-label::before { width: 20px; height: 20px; }
}
/* a phone held upright (a window up to 436 px, where a step is narrower than 130 px): next to the label the thing
   would stand right against the label of the neighbouring step, in English even on it. No thing there, the label
   is as it was. By the width of the window, not of the step: the step is a <button>, a poor container to ask. */
@media (max-width: 436px) {
    [data-cn] .sc.s3 .sc-label { max-width: 100%; padding-left: 0; white-space: normal; }
    [data-cn] .sc.s3 .sc-label::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
    [data-cn] .sc-step, [data-cn] .sc.s3 .sc-label::before { transition: none; }
}

/* ── the rewards for a friend (home) and the place in the top (profile) ──
   The same lacquer plaques as the podium and the penalty scale, by the rules the owner set on the scale: plaques
   of one height in one row with their labels in one line (rising steps stood half empty), and the thing of the
   block stands before the last label, level with its letters. Here the thing is the red envelope: the rewards
   are gifts. The labels are short («24 часа»), so the envelope has room on a phone too. */
[data-cn] .inv-steps b, [data-cn] .inv-steps li:nth-child(2) b, [data-cn] .inv-steps li:nth-child(3) b { height: 72px; }
[data-cn] .inv-steps b {
    justify-content: center; gap: 3px; padding-top: 0; background: none; border: 10px solid transparent; border-radius: 0;
    border-image: url(/media/cn/plaque.webp?v=2) 18 fill / 10px; color: var(--cn-gold-hi); text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6);
}
[data-cn] .inv-steps small { color: var(--soft); text-shadow: none; }
[data-cn] .inv-steps li:last-child span { position: relative; padding-left: 28px; white-space: nowrap; }
[data-cn] .inv-steps li:last-child span::before {
    content: ""; position: absolute; left: 0; top: calc(50% + 0.5px); translate: 0 -50%; width: 23px; height: 27px; pointer-events: none;
    background: var(--cn-envelope) center / contain no-repeat; filter: brightness(1.25) saturate(1.1);      /* small and dark red on black: a little lighter */
}
/* the profile: the step under the mask with the place in the top. Gold only for the first three, as before.
   Before the first rounds a player has no place: an empty frame would look like something failed to load,
   so there is no plaque then */
[data-cn] .pf-step {
    height: 60px; padding-top: 3px; background: none; border: 10px solid transparent; border-radius: 0;
    border-image: url(/media/cn/plaque.webp?v=2) 18 fill / 10px;
}
[data-cn] .pf-step b { text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6); }
[data-cn] .pf-step.is-top b { color: var(--cn-gold-hi); }
[data-cn] .pf-step small { color: var(--soft); }
[data-cn] .pf-step:empty { display: none; }
@media (max-width: 720px) {
    [data-cn] .inv-steps b { border-width: 8px; border-image-width: 8px; font-size: 24px; }      /* «+1,500» fits the plaque on a 360 px phone */
    [data-cn] .pf-step { height: 54px; padding-top: 2px; border-width: 8px; border-image-width: 8px; }
}

/* ── how to play (home): the points of a round in the gold of the plaques, the chat commands carry the hexagon
   badge of the menu (four plaques in one card were loud and ran into its seal) ── */
[data-cn] .step-score b { color: var(--cn-gold-hi); text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6); }
[data-cn] .cmd code { min-width: 72px; padding: 5px 2px; border: solid transparent; border-width: 0 9px; border-image: var(--cn-hex) 0 24 fill / 0 10px; border-radius: 0; background: none; color: var(--cn-gold-hi); }
[data-cn] .cmd.is-done code { color: var(--live); }
[data-cn] .cmd-group h4 { color: var(--cn-gold-lo); }

/* ── the 3D lantern of the home page (js/cn-lantern.js, after the owner's prototype, 24.11.2026) ──
   The night: the far lanterns of the sky, the pool of the lantern's light and the lantern behind the page, in a layer
   over the background and under the content. A copy of the lantern in front of the content, for the time it hangs on
   the branch of the server panel. The frames are on black: both layers are laid over the page with the screen mode,
   so black adds no light. The painted lantern of the branch hides while the 3D one is there. */
.cn-night, .cn-front { position: fixed; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.cn-night { z-index: -1; }
.cn-front { z-index: 15; }
.cn-night canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cn-pool { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform, opacity;
    background: radial-gradient(closest-side, rgba(255, 92, 26, 0.17), rgba(255, 92, 26, 0.07) 42%, rgba(255, 92, 26, 0)); }
/* the frame is screened over the pool and the sky of its own layer too: laid over them normally, its black covered
   the pool's light and the lantern stood in a dark square */
.cn-lamp3d { position: absolute; left: 0; top: 0; width: 400px; height: 430px; transform-origin: 200px 65.4px; will-change: transform, opacity;
    mix-blend-mode: screen; background: url(/media/cn/lantern-3d.webp?v=2) 0 0 / 2400px 2580px no-repeat; }
html.cn-lantern-on .live::after { visibility: hidden; }
/* the light of the lantern on the tiles and the headings it passes (--g from 0 to 1, --lx and --ly: where it is) */
html.cn-lantern-on main :is(.cm, .free, .tiers, .skin-tile) {
    background-image: radial-gradient(480px circle at var(--lx, 50%) var(--ly, 50%), rgba(255, 120, 44, calc(var(--g, 0) * 0.22)), transparent 60%);
}
html.cn-lantern-on main :is(.cm, .free, .tiers, .skin-tile, .map, .live) { border-color: rgba(255, 183, 94, calc(0.12 + var(--g, 0) * 0.5)); }
html.cn-lantern-on main h2 { text-shadow: 0 0 calc(var(--g, 0) * 26px) rgba(255, 150, 70, calc(var(--g, 0) * 0.7)); }

/* ── badges: the gold hexagon of the picture ── */
[data-cn] :is(.tier-tag, .skin-card .badge) {
    border: solid transparent; border-width: 0 9px; border-image: var(--cn-hex) 0 24 fill / 0 10px; border-radius: 0;
    background: none; padding: 5px 1px; color: var(--cn-gold-hi);
}

/* ── the menu ──
   The owner drew six tiles for it (ChatGPT, 24.11.2026; cut by design/cn/cut_menu.py). A row of all six under
   the header turned out too heavy, so on a wide screen the menu has two calmer shapes, chosen by data-cn-menu
   on <html> (js/cn.js):
     side — a column on the left, as on cs2red: the tiles are dim plaques, only the open page and the one under
            the cursor are lit. The column stays in place while the page scrolls. This is the default.
     line — the plain line of words in the header, as without this style; the open page stands on a lacquer plate.
   On a tablet and a phone the tiles are the opened menu in both.
   A tile is one picture stretched as a border image. Its left end (an ornament) and its right end (a gold icon)
   are the side borders of the link and keep their shape; the empty middle stretches under the label, which
   stays text. --l and --r are the widths of the ends in heights of the tile, from cut_menu.py;
   --h is the height of the tile. The links themselves come from js/layout.js, here they are found by address. */
[data-cn] :is(.mobile-nav, [data-cn-menu="side"] .nav) a:is([href="/#how"], [href="/shop"], [href="/skins"], [href="/top"], [href="/rules"], [href="/bans"], [href="/clans"], [href="/style"], [href="/chat"]) {
    position: relative; box-sizing: border-box; display: flex; align-items: center; height: var(--h);
    padding: 0 8px 1px calc(var(--h) * 0.12); border: solid transparent; border-width: 0 calc(var(--h) * var(--r)) 0 calc(var(--h) * var(--l));
    border-image: var(--tile) 0 var(--sr) 0 var(--sl) fill / 0 calc(var(--h) * var(--r)) 0 calc(var(--h) * var(--l));
    border-radius: 0; background: none; color: #fff; font: 700 clamp(15px, calc(var(--h) * 0.375), 20px)/1 'Philosopher', var(--sans);
    white-space: nowrap; text-decoration: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); transition: filter 180ms ease;
}
/* The ends of the tiles. As drawn, a tile had its gold icon next to the ornament and a cloud on the right; the
   owner asked to put the icon in place of the cloud, and on the shop tile to change the lantern for the envelope
   and to send the cart to the right end (cut_menu.py does both). So every tile is: ornament, label, gold icon;
   the shop tile also has the hexagon for the discount before its cart.
   The left end is the same for all six — the widest ornament, the fan — so the labels start on one line when
   the tiles stand in a column; the icons stand on one line too (--r is their common end). */
/* --sl and --sr are the same ends as parts of the picture's width, for cutting it: --l or --r times 17.9402%
   (the height of the picture in its width). Written out as numbers: calc() with percentages in the slices of a
   border image was only seen to work in Chrome. */
[data-cn] :is(.nav, .mobile-nav) a:is([href="/#how"], [href="/shop"], [href="/skins"], [href="/top"], [href="/rules"], [href="/bans"], [href="/clans"], [href="/style"], [href="/chat"]) { --l: 1.083; --r: 0.963; --sl: 19.4292%; --sr: 17.2764%; }
[data-cn] :is(.nav, .mobile-nav) a[href="/#how"] { --tile: url(/media/cn/menu-how.webp?v=3); }
[data-cn] :is(.nav, .mobile-nav) a[href="/shop"] { --tile: url(/media/cn/menu-shop.webp?v=4); --r: 1.977; --sr: 35.4678%; }
[data-cn] :is(.nav, .mobile-nav) a[href="/skins"] { --tile: url(/media/cn/menu-skins.webp?v=3); }
[data-cn] :is(.nav, .mobile-nav) a[href="/top"] { --tile: url(/media/cn/menu-top.webp?v=3); }
[data-cn] :is(.nav, .mobile-nav) a[href="/rules"] { --tile: url(/media/cn/menu-rules.webp?v=3); }
[data-cn] :is(.nav, .mobile-nav) a[href="/bans"] { --tile: url(/media/cn/menu-bans.webp?v=3); }
/* «Кланы» (25.11.2026): the lion and the shield of the owner's picture on an empty tile of the six (cut_menu_clans.py) */
[data-cn] :is(.nav, .mobile-nav) a[href="/clans"] { --tile: url(/media/cn/menu-clans.webp?v=2); }
/* «Стиль» (26.11.2026): the owner's phoenix and hand mirror laid on an empty tile of the six (cut_menu_style.py) */
[data-cn] :is(.nav, .mobile-nav) a[href="/style"] { --tile: url(/media/cn/menu-style.webp?v=2); }
/* «Чат» (26.11.2026): the gold bell and cloud of the owner's support medallions laid on an empty tile of the six
   (cut_menu_chat.py) */
[data-cn] :is(.nav, .mobile-nav) a[href="/chat"] { --tile: url(/media/cn/menu-chat.webp?v=1); }
/* the discount for the longest term stands in the gold hexagon of the shop tile (the text comes from js/cn.js).
   The hexagon lies in the right end of the picture, 0.56 of the height right of where the label's box ends */
[data-cn] :is(.mobile-nav, [data-cn-menu="side"] .nav) a[href="/shop"]::after {
    content: var(--cn-off-short, none); position: absolute; left: calc(100% + var(--h) * 0.56); top: 51.5%; translate: -50% -50%;
    font: 700 calc(var(--h) * 0.25)/1 var(--sans); letter-spacing: -0.02em; color: var(--cn-gold-hi); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
/* the opened menu of a tablet and a phone: every tile is lit, the open page glows gold */
[data-cn] .mobile-nav a[aria-current="page"] { filter: brightness(1.2) saturate(1.08) drop-shadow(0 0 6px rgba(255, 176, 64, 0.55)); }
[data-cn] .mobile-nav a:is([href="/#how"], [href="/shop"], [href="/skins"], [href="/top"], [href="/rules"], [href="/bans"], [href="/clans"], [href="/style"], [href="/chat"]):active { filter: brightness(0.92); }
[data-cn] .mobile-nav a:is([href="/#how"], [href="/shop"], [href="/skins"], [href="/top"], [href="/rules"], [href="/bans"], [href="/clans"], [href="/style"], [href="/chat"]) { --h: 54px; }
@media (max-width: 1180px) {
    [data-cn] .mobile-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 8px; padding: 12px var(--gutter) 14px; }
    [data-cn] .mobile-nav .mn-wallet { grid-column: 1 / -1; }
}

/* side: the column on the left. The page moves right by its width; the logo stands on top of it */
[data-cn][data-cn-menu="side"] .nav a:is([href="/#how"], [href="/shop"], [href="/skins"], [href="/top"], [href="/rules"], [href="/bans"], [href="/clans"], [href="/style"], [href="/chat"]) { --h: 44px; flex: none; filter: saturate(0.55) brightness(0.64); }
[data-cn][data-cn-menu="side"] .nav a[aria-current="page"] { filter: drop-shadow(0 0 7px rgba(255, 170, 60, 0.5)); }
@media (hover: hover) and (pointer: fine) {
    [data-cn][data-cn-menu="side"] .nav a:is([href="/#how"], [href="/shop"], [href="/skins"], [href="/top"], [href="/rules"], [href="/bans"], [href="/clans"], [href="/style"], [href="/chat"]):hover { filter: saturate(0.95) brightness(0.92); }
    [data-cn][data-cn-menu="side"] .nav a[aria-current="page"]:hover { filter: brightness(1.08) drop-shadow(0 0 7px rgba(255, 170, 60, 0.5)); }
}
[data-cn][data-cn-menu="side"] .nav a:is([href="/#how"], [href="/shop"], [href="/skins"], [href="/top"], [href="/rules"], [href="/bans"], [href="/clans"], [href="/style"], [href="/chat"]):active { filter: brightness(0.8); }
@media (min-width: 1281px) {
    [data-cn][data-cn-menu="side"] { --cn-side: 244px; }
    [data-cn][data-cn-menu="side"] body { padding-left: var(--cn-side); }
    /* The header and its menu are drawn by a script after the first paint. The column itself is painted here,
       on the empty place of the header that stands in the page, so the left side is never a bare strip. */
    [data-cn][data-cn-menu="side"] #site-header::before {
        content: ""; position: fixed; z-index: 29; left: 0; top: 0; bottom: 0; box-sizing: border-box; width: var(--cn-side);
        background: linear-gradient(rgba(22, 6, 7, 0.94), rgba(13, 8, 8, 0.94) 420px); border-right: 1px solid var(--line);
    }
    /* the logo of the header only: the loading screen shows a copy of it (js/fx.js), which must stay in its place
       in the middle (25.11.2026: the copy took this rule too and lay over «Ищем страницу…») */
    [data-cn][data-cn-menu="side"] #site-header .brand { position: fixed; z-index: 31; left: 24px; top: 18px; }
    [data-cn][data-cn-menu="side"] .nav {
        position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; box-sizing: border-box; width: var(--cn-side); flex-direction: column; gap: 8px;
        padding: 88px 12px 20px; overflow-y: auto;
    }
    /* the count of players takes the left end of the top line, where the menu was */
    [data-cn][data-cn-menu="side"] .top-right { flex: 1; margin-left: 0; }
    [data-cn][data-cn-menu="side"] .top-right .pill { margin-right: auto; }
    /* the page is narrower by the column: the big heading follows the page, not the window, and keeps its two lines */
    [data-cn][data-cn-menu="side"] h1 { font-size: clamp(36px, calc((100vw - var(--cn-side)) * 0.046), 64px); }
    /* the same for the big figures of the server panel: «12 / 24» must not break in two */
    [data-cn][data-cn-menu="side"] .live-stats b { white-space: nowrap; font-size: clamp(22px, calc((100vw - var(--cn-side)) * 0.027), 32px); }
    [data-cn][data-cn-menu="side"] .live-stats b:is(.is-text, .map-name) { font-size: clamp(14px, calc((100vw - var(--cn-side)) * 0.0148), 18px); }
}
/* between 1181 and 1280 px there is no room for a column beside the page: the menu folds into the button, as on a tablet */
@media (min-width: 1181px) and (max-width: 1280px) {
    [data-cn][data-cn-menu="side"] .nav { display: none; }
    [data-cn][data-cn-menu="side"] .menu-btn { display: grid; }
    [data-cn][data-cn-menu="side"] .mobile-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px; padding: 12px var(--gutter) 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
}

/* line: the words stay in the header; the open page stands on a small lacquer plate, the shop carries its discount */
[data-cn][data-cn-menu="line"] .nav a[aria-current="page"] { background: var(--panel); box-shadow: inset 0 0 0 1px var(--cn-edge); }
@media (min-width: 1400px) {
    [data-cn][data-cn-menu="line"] .nav a[href="/shop"]::after {
        content: var(--cn-off-short, none); display: inline-block; margin-left: 8px; vertical-align: 1px;
        border: solid transparent; border-width: 0 9px; border-image: var(--cn-hex) 0 24 fill / 0 10px;
        padding: 5px 1px; font: 700 11px/1 var(--sans); color: var(--cn-gold-hi);
    }
}
@media (prefers-reduced-motion: reduce) {
    [data-cn] :is(.mobile-nav, [data-cn-menu="side"] .nav) a:is([href="/#how"], [href="/shop"], [href="/skins"], [href="/top"], [href="/rules"], [href="/bans"], [href="/clans"], [href="/style"], [href="/chat"]) { transition: none; }
}

/* ── the switch of the lanterns «Фонарик ВКЛ / ВЫКЛ», put into the menus of the home page by js/cn-lantern.js: at the
   bottom of the menu column, as «Зима» on cs2red, and the last row of the folded menu; from 1000 px, where the
   lantern flies. Quieter than the menu tiles: a dark plate with the icon, the word and the state. The icon is the
   owner's sky lantern, lit or unlit (cut_sky_lantern.py). ── */
.cn-toggle { display: none; }
@media (min-width: 1000px) {
    [data-cn] .cn-toggle {
        display: flex; align-items: center; gap: 10px; box-sizing: border-box; width: 100%; height: 44px; margin: 0; padding: 0 14px 0 11px;
        border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(28, 13, 15, 0.82); color: var(--soft);
        font: 600 14px/1 var(--sans); text-align: left; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease;
    }
    [data-cn] .cn-toggle-ico { flex: none; width: 26px; height: 26px; margin: 0 -1px; background: url(/media/cn/sky-lantern-on.webp?v=1) center / contain no-repeat; transition: filter 150ms ease; }
    [data-cn] .cn-toggle-state { margin-left: auto; font: 700 12px/1 var(--sans); letter-spacing: 0.06em; color: var(--cn-gold-hi); }
    [data-cn] .cn-toggle[aria-checked="false"] .cn-toggle-ico { background-image: url(/media/cn/sky-lantern-off.webp?v=1); filter: brightness(0.78) saturate(0.85); }
    [data-cn] .cn-toggle[aria-checked="false"] .cn-toggle-state { color: var(--muted); }
    [data-cn] .cn-toggle:focus-visible { outline: 2px solid var(--cn-gold-lo); outline-offset: 2px; }
    [data-cn] .cn-toggle:active { background-color: rgba(18, 8, 9, 0.9); }
    [data-cn] .mobile-nav .cn-toggle { align-self: center; }
    [data-cn][data-cn-menu="line"] .nav .cn-toggle { display: none; }
}
@media (min-width: 1281px) {
    [data-cn][data-cn-menu="side"] .nav .cn-toggle { flex: none; margin-top: auto; }
}
@media (hover: hover) and (pointer: fine) {
    [data-cn] .cn-toggle:hover { border-color: var(--cn-edge); background-color: rgba(42, 18, 21, 0.92); }
}
@media (prefers-reduced-motion: reduce) {
    [data-cn] :is(.cn-toggle, .cn-toggle-ico) { transition: none; }
}

/* ── the cart (25.11.2026, the owner: «корзину получше в стиле сайта»): a lacquer panel with a gold edge, the red
   envelope by the title, the items on lacquer plaques in a thin gold frame, VIP as a red seal with gold letters
   (as the clan seals), the discount of the term in the gold hexagon of the shop tile, the fields as dark wells with
   a gold focus, the chosen way to pay lit in red and gold. ── */
[data-cn] .cart-overlay { background: rgba(8, 3, 3, 0.66); }
[data-cn] .cart-drawer {
    background: linear-gradient(180deg, #2b0c0e, #1b0b0c 190px, #160a0b 60%);
    border-left: 1px solid rgba(231, 161, 54, 0.32); box-shadow: -28px 0 70px rgba(0, 0, 0, 0.55);
}
[data-cn] .cart-drawer::before {
    content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; pointer-events: none;
    background: linear-gradient(rgba(255, 226, 160, 0), rgba(255, 226, 160, 0.28) 18%, rgba(255, 226, 160, 0.28) 82%, rgba(255, 226, 160, 0));
}
[data-cn] .cart-head { padding: 16px 20px 16px 22px; border-bottom-color: rgba(231, 161, 54, 0.2); }
[data-cn] .cart-head h2 { display: flex; align-items: center; gap: 12px; }
[data-cn] .cart-head h2::before { content: ""; flex: none; width: 28px; height: 34px; background: var(--cn-envelope) center / contain no-repeat; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
[data-cn] .cart-close { border-color: rgba(231, 161, 54, 0.3); background: rgba(42, 18, 21, 0.9); color: var(--soft); transition: border-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { [data-cn] .cart-close:hover { border-color: rgba(231, 161, 54, 0.65); color: #fff; } }

[data-cn] .cart-item {
    grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; padding: 12px 14px 12px 12px;
    background: linear-gradient(100deg, rgba(128, 20, 22, 0.5), rgba(42, 16, 19, 0.94) 58%); border: 1px solid rgba(231, 161, 54, 0.3); border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 226, 160, 0.06), 0 6px 18px rgba(0, 0, 0, 0.28);
}
[data-cn] .cart-item img { width: 60px; height: 60px; border-radius: 9px; object-position: 50% 12%; background: #120809; box-shadow: 0 0 0 1px rgba(231, 161, 54, 0.4); }
[data-cn] .cart-item .ph {
    width: 60px; height: 60px; border-radius: 9px; color: #ffe2a0; font: 800 17px/1 var(--num); letter-spacing: 0.02em; text-shadow: 0 1px 0 rgba(80, 8, 6, 0.6);
    background: radial-gradient(120% 120% at 30% 20%, #d23a2c, #9e1b17 60%, #6f0f0e);
    box-shadow: inset 0 0 0 3px rgba(255, 226, 160, 0.85), inset 0 0 0 5px #8a1512, 0 1px 3px rgba(0, 0, 0, 0.5);
}
[data-cn] .cart-item b { font-size: 16px; }
[data-cn] .cart-item .term { display: flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--muted); }
[data-cn] .cart-item .off {
    padding: 4px 1px 3px; border: solid transparent; border-width: 0 8px; border-image: var(--cn-hex) 0 24 fill / 0 9px;
    font: 700 11px/1 var(--sans); color: var(--cn-gold-hi); white-space: nowrap;
}
[data-cn] .cart-item .off[hidden] { display: none; }
[data-cn] .cart-item .price { color: #fff; font-size: 24px; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); }
[data-cn] .cart-item .remove { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--muted); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { [data-cn] .cart-item .remove:hover { color: #ffb3a8; } }

[data-cn] .cart-body .field label, [data-cn] .cart-body .field .label { color: var(--soft); font-size: 13px; }
[data-cn] .cart-body .field input[type="text"], [data-cn] .cart-body .field input[type="email"] {
    background: #120809; border-color: rgba(255, 126, 98, 0.2); transition: border-color 150ms ease, box-shadow 150ms ease;
}
[data-cn] .cart-body .field input:focus { border-color: rgba(231, 161, 54, 0.75); box-shadow: 0 0 0 3px rgba(231, 161, 54, 0.14); }
[data-cn] .cart-body .btn-small { border-color: rgba(231, 161, 54, 0.35); background: rgba(42, 18, 21, 0.95); color: var(--cn-gold-hi); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { [data-cn] .cart-body .btn-small:hover { border-color: rgba(231, 161, 54, 0.75); } }
[data-cn] .cart-body .buyer { background: rgba(42, 18, 21, 0.9); border: 1px solid rgba(255, 126, 98, 0.16); }

[data-cn] .method { border-color: rgba(255, 126, 98, 0.18); background: rgba(18, 8, 9, 0.7); transition: border-color 150ms ease, background-color 150ms ease; }
[data-cn] .method input { accent-color: var(--cn-gold-lo); }
[data-cn] .method:has(input:checked) {
    border-color: rgba(231, 161, 54, 0.75); background: linear-gradient(100deg, rgba(128, 20, 22, 0.45), rgba(42, 16, 19, 0.9) 70%);
    box-shadow: inset 0 1px 0 rgba(255, 226, 160, 0.08);
}
@media (hover: hover) and (pointer: fine) { [data-cn] .method:not(.is-disabled):not(:has(input:checked)):hover { border-color: rgba(231, 161, 54, 0.4); } }

[data-cn] .cart-foot { background: linear-gradient(180deg, rgba(22, 10, 11, 0.96), #120809); border-top-color: rgba(231, 161, 54, 0.22); }
[data-cn] .totals .total { color: var(--soft); }
[data-cn] .totals .total b { color: #fff; text-shadow: 0 0 18px rgba(255, 150, 70, 0.18); }
[data-cn] .totals .change span:last-child { color: var(--cn-gold-hi); }
@media (prefers-reduced-motion: reduce) {
    [data-cn] :is(.cart-close, .cart-item .remove, .cart-body .field input, .method) { transition: none; }
}

/* ── the slider of the site: «Монета» (the owner chose it on 25.11.2026 of three: «Монета», «Фонарик», «Счёты»):
   a red lacquer groove in a thin gold edge and a gold Chinese coin with a square hole, which turns a little while
   it is held. Every range of the site: the term of VIP and of the skins in the shop, the terms in the cart.
   --fill is how far the slider is. ── */
[data-cn] input[type="range"] { height: 28px; }
[data-cn] input[type="range"]::-webkit-slider-runnable-track {
    height: 8px; border-radius: 4px;
    background: linear-gradient(to right, #7d1210, #d8352a var(--fill), #120809 var(--fill));
    box-shadow: inset 0 0 0 1px rgba(231, 161, 54, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.6);
}
[data-cn] input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: #120809; box-shadow: inset 0 0 0 1px rgba(231, 161, 54, 0.4); }
[data-cn] input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: linear-gradient(to right, #7d1210, #d8352a); }
[data-cn] input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border: 0; border-radius: 50%;
    background: linear-gradient(#3a0d0d, #3a0d0d) center / 7px 7px no-repeat, radial-gradient(circle at 35% 30%, #fff3c8, #f3c463 38%, #d08a22 70%, #8f5512);
    box-shadow: inset 0 0 0 2px rgba(120, 66, 10, 0.6), inset 0 0 0 4px rgba(255, 236, 180, 0.35), 0 2px 6px rgba(0, 0, 0, 0.55);
    transition: transform 150ms ease;
}
[data-cn] input[type="range"]::-moz-range-thumb {
    box-sizing: border-box; width: 26px; height: 26px; border: 0; border-radius: 50%;
    background: linear-gradient(#3a0d0d, #3a0d0d) center / 7px 7px no-repeat, radial-gradient(circle at 35% 30%, #fff3c8, #f3c463 38%, #d08a22 70%, #8f5512);
    box-shadow: inset 0 0 0 2px rgba(120, 66, 10, 0.6), inset 0 0 0 4px rgba(255, 236, 180, 0.35), 0 2px 6px rgba(0, 0, 0, 0.55);
}
[data-cn] input[type="range"]:active::-webkit-slider-thumb { transform: rotate(45deg) scale(1.06); }

[data-cn] input[type="range"]:focus-visible { outline: 2px solid var(--cn-gold-lo); outline-offset: 4px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
    [data-cn] input[type="range"]::-webkit-slider-thumb { transition: none; }
}

/* ── the VIP cards of the shop: lacquer plaques in a thin gold frame, the advised tier lit in gold ── */
[data-cn] .vc { background: linear-gradient(165deg, rgba(122, 18, 20, 0.34), rgba(28, 13, 15, 0.96) 58%); border-color: rgba(231, 161, 54, 0.24); }
[data-cn] .vc.is-pick { border-color: rgba(231, 161, 54, 0.75); box-shadow: inset 0 1px 0 rgba(255, 226, 160, 0.08), 0 0 26px rgba(255, 140, 50, 0.1); }
[data-cn] .vc-perks .ico { color: var(--cn-gold-lo); }
[data-cn] .vc-perks em { color: var(--cn-gold-hi); }
[data-cn] .vc-buy { border-top-color: rgba(231, 161, 54, 0.18); }
[data-cn] .vip-compare { border-color: rgba(231, 161, 54, 0.35); }

/* ── support (25.11.2026, the owner: «внутрянку поддержки сделать получше, мне наша не нравится»): the round button is
   the owner's red lacquer medallion with the gold headset (cut_support_icon.py); the panel a lacquer panel with a gold
   edge: a red seal and the title on a lacquer strip, every question with its gold icon on a red plate and a chevron,
   the open answer in a dark well, and «Написать нам»: the Telegram bot gold, Discord and the mail under it. ── */
[data-cn] .support-btn { background: url(/media/cn/support-medallion.webp?v=2) center / cover no-repeat; box-shadow: 0 10px 26px -6px rgba(255, 90, 40, 0.55); }
[data-cn] .support-btn svg { display: none; }
@media (hover: hover) and (pointer: fine) {
    [data-cn] .support-btn:hover { background: url(/media/cn/support-medallion.webp?v=2) center / cover no-repeat; filter: brightness(1.1); box-shadow: 0 12px 30px -6px rgba(255, 110, 50, 0.7); }
}
[data-cn] .support-btn:focus-visible { outline-color: rgba(231, 161, 54, 0.6); }
[data-cn] .support-panel {
    width: min(380px, calc(100vw - 32px)); max-height: min(76vh, 600px); padding: 0;
    background: linear-gradient(180deg, #2b0c0e, #1b0b0c 150px, #160a0b); border: 1px solid rgba(231, 161, 54, 0.35); border-radius: 16px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 226, 160, 0.06);
}
[data-cn] .support-head {
    gap: 12px; padding: 16px 14px 14px 16px; border-bottom: 1px solid rgba(231, 161, 54, 0.18);
    background: linear-gradient(110deg, rgba(150, 24, 22, 0.55), rgba(42, 16, 19, 0) 72%);
}
[data-cn] .support-seal {
    display: block; flex: none; width: 46px; height: 46px; border-radius: 50%;
    background: url(/media/cn/support-medallion.webp?v=2) center / cover no-repeat; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
[data-cn] .support-seal svg { display: none; }
[data-cn] .support-hd b { display: block; font: italic 800 20px/1.1 var(--wide); }
[data-cn] .support-hd .support-sub { margin: 4px 0 0; font-size: 13px; line-height: 1.4; }
[data-cn] .support-x {
    flex: none; display: grid; place-items: center; width: 34px; height: 34px; align-self: flex-start; border: 1px solid rgba(231, 161, 54, 0.3);
    border-radius: 50%; background: rgba(18, 8, 9, 0.6); color: var(--soft); font-size: 20px; transition: border-color 150ms ease, color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { [data-cn] .support-x:hover { border-color: rgba(231, 161, 54, 0.7); color: #fff; } }
[data-cn] .support-faq { display: grid; gap: 2px; padding: 8px 10px; }
[data-cn] .support-faq details { border-top: 0; border-radius: 10px; transition: background-color 150ms ease; }
[data-cn] .support-faq summary { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 8px; border-radius: 10px; font-size: 15px; font-weight: 600; }
[data-cn] .support-faq summary::after {
    content: ""; float: none; flex: none; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    rotate: 45deg; translate: 0 -2px; transition: rotate 200ms ease, translate 200ms ease;
}
[data-cn] .support-faq details[open] summary::after { content: ""; rotate: -135deg; translate: 0 2px; }
@media (hover: hover) and (pointer: fine) { [data-cn] .support-faq details:not([open]) summary:hover { background: rgba(255, 255, 255, 0.035); } }
[data-cn] .support-faq summary:focus-visible { outline: 2px solid var(--cn-gold-lo); outline-offset: -2px; }
[data-cn] .support-faq details[open] { background: rgba(14, 6, 7, 0.7); box-shadow: inset 0 0 0 1px rgba(231, 161, 54, 0.16); }
[data-cn] .sf-ico {
    display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; color: var(--cn-gold-hi);
    background: linear-gradient(160deg, rgba(160, 28, 24, 0.6), rgba(90, 14, 14, 0.6)); box-shadow: inset 0 0 0 1px rgba(231, 161, 54, 0.32);
}
[data-cn] .support-faq p { margin: 0; padding: 0 14px 13px 52px; font-size: 14px; line-height: 1.55; }
[data-cn] .support-faq code { background: rgba(42, 18, 21, 0.9); border: 1px solid rgba(231, 161, 54, 0.2); }
[data-cn] .support-write { padding: 12px 16px 16px; border-top: 1px solid rgba(231, 161, 54, 0.18); }
[data-cn] .support-write small { margin: 0 0 9px; font-size: 12.5px; letter-spacing: 0.02em; }
[data-cn] .support-main { margin-top: 0; padding: 12px 16px; border-radius: 10px; }
[data-cn] .support-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
[data-cn] .support-alt a {
    justify-content: center; padding: 10px; border: 1px solid rgba(231, 161, 54, 0.3); border-radius: 10px; background: rgba(42, 18, 21, 0.85);
    color: var(--soft); font-weight: 600; transition: border-color 150ms ease, color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { [data-cn] .support-alt a:hover { text-decoration: none; border-color: rgba(231, 161, 54, 0.7); color: #fff; } }
[data-cn] .support-alt a svg { color: var(--cn-gold-hi); }
@media (prefers-reduced-motion: reduce) {
    [data-cn] :is(.support-x, .support-faq details, .support-faq summary::after, .support-alt a) { transition: none; }
}

/* ── the shop banner of the home page: the owner's tile itself ──
   The picture holds the lantern, the branch, the cart, the clouds, the empty badge and the envelope; the word
   and the discount are text. Sizes are in cqw, parts of the banner's width, so everything scales with it. */
[data-cn] [data-cn-hide] { display: none; }
.cn-banner {
    position: relative; display: block; flex: none; width: min(100%, 480px); aspect-ratio: 1166 / 324; margin: -10px -18px -12px -10px;
    container-type: inline-size; color: #fff; text-decoration: none;
    background: url(/media/cn/banner.webp?v=3) center / 100% 100% no-repeat;
    transition: filter 180ms ease, transform 180ms var(--ease-out);
}
.cn-word { position: absolute; left: 29.2%; top: 49.4%; translate: 0 -50%; font: 500 7.5cqw/1 var(--sans); letter-spacing: -0.012em; white-space: nowrap;
    background: linear-gradient(#fff 30%, #c9c5c6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cn-off { position: absolute; left: 82.3%; top: 50.2%; translate: -50% -50%; display: flex; align-items: baseline; gap: 0.7cqw; white-space: nowrap;
    background: linear-gradient(var(--cn-gold-hi) 25%, var(--cn-gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cn-off small { font: 600 2.3cqw/1 var(--sans); }
.cn-off b { font: 700 4.9cqw/1 var(--sans); letter-spacing: -0.02em; }
@media (hover: hover) and (pointer: fine) {
    .cn-banner:hover { filter: brightness(1.12) saturate(1.06); }
}
.cn-banner:active { transform: scale(0.985); }
.cn-banner:focus-visible { outline: 3px solid rgba(242, 183, 48, 0.55); outline-offset: 4px; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) {
    .cn-banner { transition: none; }
}

/* ── narrow screens ── */
@media (max-width: 720px) {
    .cn-banner { width: 100%; margin: 4px 0 0; }
    [data-cn] .live { --k: 0.46px; }
    /* the page margin is narrow here: the lantern stays inside it */
    [data-cn] .live::before { right: calc(var(--k) * 14); }
    [data-cn] .live::after { right: calc(var(--k) * -27); }
    [data-cn] .cm { padding-left: 82px; }
    [data-cn] .cm::after { left: 16px; width: 48px; }
    [data-cn] .free::after { right: -6px; top: -26px; width: 52px; }
}
