/* The shared styles of every page in one file (23.11.2026), so a phone fetches one stylesheet instead of four
   before the first screen. Sections in their old order; the page styles (home, shop, top...), bg.css and fx.css
   come after it as before. */

/* ═══════════════ tokens (was css/tokens.css) ═══════════════ */
/* Design tokens of the redesign (REDESIGN.md, mockup C «Монохром»).
   Gold is light, not paint: it marks actions, the logo and live numbers only. */
:root {
    --bg: #0e0e0e;
    --panel: #161616;
    --raised: #1f1f1f;
    --well: #090909;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.14);

    --text: #e9eaee;
    --soft: #c2c6cf;
    --muted: #8d939f;
    --dim: #4a505c;

    --gold: #f2b730;
    --gold-hover: #ffc844;
    --gold-ink: #1a1405;
    --live: #4cc38a;
    --danger: #e5645a;

    --wide: 'Exo 2', system-ui, sans-serif;
    --sans: 'Onest', system-ui, sans-serif;
    --num: 'Exo 2', 'Onest', sans-serif;

    --gutter: clamp(16px, 4vw, 48px);
    --max: 1320px;
    --r: 10px;
    --r-lg: 14px;
    --header-h: 72px;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ═══════════════ base (was css/base.css) ═══════════════ */
* { box-sizing: border-box; }
/* the scrollbar keeps its place, so the page does not shift sideways when it appears or a panel locks scrolling */
html { background: var(--bg); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: transparent; color: var(--text); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
/* Most pages draw their content with scripts after loading data. At least a screen tall from the start,
   the page keeps the footer below the first screen, so it does not jump down when the content arrives */
main { flex: 1; min-height: 100vh; }
a { color: inherit; }
img, video { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1 { font: italic 900 clamp(36px, 4.6vw, 64px)/1.05 var(--wide); margin: 0 0 22px; text-transform: uppercase; }
h2 { font: italic 900 clamp(28px, 3vw, 40px)/1.1 var(--wide); margin: 0 0 12px; text-transform: uppercase; }
h3 { margin: 0; }
.sub { color: var(--muted); margin: 0 0 40px; max-width: 40em; }
code.inline { font-family: var(--sans); background: var(--raised); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.num { font-family: var(--num); font-style: italic; font-weight: 800; font-variant-numeric: tabular-nums; }

.section { padding: clamp(64px, 10vh, 112px) 0; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ═══════════════ layout (was css/layout.css) ═══════════════ */
/* Header */
.site-header { position: relative; z-index: 20; }
/* the header is drawn by layout.js after the first paint: keep its height so the page does not move down */
#site-header { min-height: var(--header-h); }
/* keep room for the sign-in button or the user chip until auth answers, and for the online count until
   the status answers, so the language switch next to them does not jump */
.js-auth:empty { display: inline-block; width: 176px; height: 40px; }
.pill.is-wait { visibility: hidden; }
.top { display: flex; align-items: center; gap: 28px; height: var(--header-h); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand > svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.brand span { display: grid; line-height: 1; }
.brand b { font: italic 900 21px/1 var(--wide); }
.brand small { font: italic 600 9px/1 var(--wide); letter-spacing: 0.34em; color: var(--gold); margin-top: 4px; }
/* Logo animation «Удар ножом» (14.11.2026, idea 4 from design/mockups/logo-ideas.html, built with the animation skills):
   click — a thin blade stroke crosses the wordmark, the word parts along the cut for a moment and closes (under 0.5 s);
   press — the logo sinks 4% while the button is held. No hover effect and nothing for the keyboard.
   The halves are two clipped copies of the word; the stroke is an SVG line that layout.js aims on every play. */
.brand { position: relative; outline-offset: 4px; transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1); -webkit-tap-highlight-color: transparent; }
.brand:active { transform: scale(0.96); }
.brand-word { position: relative; }
.brand-half { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.brand-half.is-top { clip-path: polygon(-10% -10%, 110% -10%, 110% 29.6%, -10% 78.4%); }
.brand-half.is-bot { clip-path: polygon(-10% 78.4%, 110% 29.6%, 110% 110%, -10% 110%); }
.brand-blade { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.brand-blade line { stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.brand.is-cut .brand-text { opacity: 0; }
.brand.is-cut .brand-half { opacity: 1; }
.brand.is-cut .brand-half.is-top { animation: brand-part-top 420ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.brand.is-cut .brand-half.is-bot { animation: brand-part-bot 420ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.brand.is-cut .brand-blade line { animation: brand-blade 300ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes brand-blade { 0% { stroke-dashoffset: 100; opacity: 1; } 40% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes brand-part-top { 0%, 16% { transform: translate(0, 0); } 38% { transform: translate(3px, -2px); } 100% { transform: translate(0, 0); } }
@keyframes brand-part-bot { 0%, 16% { transform: translate(0, 0); } 38% { transform: translate(-3px, 2px); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) {
    .brand { transition: none; }
    .brand:active { transform: none; }
    .brand.is-cut .brand-half, .brand.is-cut .brand-blade line { animation: none; }
}

.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--text); }

.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; text-decoration: none; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.pill.is-online i { background: var(--live); }
/* Exo 2 digits sit low in their line (ascent 1 em, descent 0.2 em): the space under them lifts the numbers of
   the online pill and of the balance to the optical middle of the pill. Until 24.11.2026 the space was above,
   and the numbers stood 1.4 px below the middle and below the icon next to them. */
.pill b { font: italic 800 19px/1 var(--num); padding-bottom: 2px; white-space: nowrap; }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 6px 9px; font-size: 13px; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--raised); color: var(--text); }

.steam { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--raised); border: 1px solid var(--line); padding: 8px 14px; border-radius: 6px; font-size: 14px; white-space: nowrap; }
.steam:hover { border-color: var(--line-strong); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-size: 14px; max-width: 180px; }
.user-chip img { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Balance next to the avatar (24.11.2026): the sum in the numbers font, a link to the top-up in the profile;
   on a phone the header has no room, so the balance is the first line of the menu instead */
.js-auth { display: inline-flex; align-items: center; gap: 12px; }
.wallet-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; white-space: nowrap; transition: border-color 150ms ease; }
.wallet-pill svg { flex: none; width: 17px; height: 17px; color: var(--muted); }
.wallet-pill b { font: italic 800 18px/1 var(--num); font-variant-numeric: tabular-nums; padding-bottom: 2px; }
@media (hover: hover) and (pointer: fine) { .wallet-pill:hover { border-color: var(--line-strong); } }
.mobile-nav .mn-wallet { display: none; }
/* With the balance the header fits whole from 1280 px; below, the avatar button shows the picture without
   the name (the name is at the top of the menu it opens) */
@media (max-width: 1279px) {
    .user-chip span { display: none; }
    .user-chip { padding: 4px 10px 4px 4px; }
}

.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; background: var(--raised); border: 1px solid var(--line); cursor: pointer; text-decoration: none; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .count { position: absolute; top: -6px; right: -6px; background: var(--gold); color: var(--gold-ink); font: 600 11px/18px var(--sans); min-width: 18px; padding: 0 4px; text-align: center; border-radius: 9px; }
.menu-btn { display: none; }

/* Mobile menu: the nav slides down under the header */
.mobile-nav { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 56px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-start; }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover, .foot a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.foot .docs-note { flex-basis: 100%; }
.foot .docs-note:empty { display: none; }

/* The menu in one line with the sign-in button, the balance and the cart needs about 1160 px: in narrower
   windows «Как играть» broke into two lines (1081–1140 px), so since 24.11.2026 the menu folds into the button
   from 1180 px down */
/* just above that width the line is full when a player is signed in and the server is online: the words of the
   menu stand closer, so the online count «12 / 24» keeps its one line (it used to break in two) */
@media (min-width: 1181px) and (max-width: 1279px) {
    .nav a { padding: 8px 8px; }
}
@media (max-width: 1180px) {
    .nav { display: none; }
    .menu-btn { display: grid; }
    .mobile-nav { display: block; border-bottom: 1px solid var(--line); background: var(--bg); }
    .mobile-nav[hidden] { display: none !important; }
    .mobile-nav a { display: block; padding: 14px var(--gutter); text-decoration: none; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
    .top { gap: 12px; }
    .pill, .steam-label { display: none; }
    .js-auth:empty { width: 38px; }
    .steam { padding: 8px 10px; }
    .user-chip span { display: none; }
    .user-chip { padding: 4px; }
    .wallet-pill { display: none; }
    .mobile-nav .mn-wallet { display: flex; align-items: baseline; gap: 10px; }
    .mn-wallet span { color: var(--muted); }
    .mn-wallet b { font: italic 800 19px/1 var(--num); font-variant-numeric: tabular-nums; }
    .mn-wallet em { margin-left: auto; font-style: normal; font-weight: 600; font-size: 14px; color: var(--gold); }
}

/* Support button and panel (every page) */
.support { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: grid; justify-items: end; gap: 12px; }
.support-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(242, 183, 48, 0.6); transition: transform 0.15s; }
.support-btn:hover { background: var(--gold-hover); transform: translateY(-2px); }
.support-btn:focus-visible { outline: 3px solid rgba(242, 183, 48, 0.5); outline-offset: 3px; }
/* A phone: the button leaves the right edge while the page is scrolled down (layout.js) */
.support.is-away { transform: translateY(96px); opacity: 0; pointer-events: none; }
@media (max-width: 720px) { .support { transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out); } }
@media (prefers-reduced-motion: reduce) { .support { transition: none; } }
.support-panel { width: min(360px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow: auto; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); }
.support-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.support-seal, .sf-ico { display: none; }
.support-hd { flex: 1; min-width: 0; }
.support-hd .support-sub { margin: 4px 0 8px; }
.support-write small { display: block; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.support-head b { font: italic 800 18px var(--wide); }
.support-x { border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.support-sub { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.support-faq details { border-top: 1px solid var(--line); }
.support-faq summary { cursor: pointer; padding: 10px 0; font-weight: 500; list-style: none; }
.support-faq summary::-webkit-details-marker { display: none; }
.support-faq summary::after { content: '+'; float: right; color: var(--muted); }
.support-faq details[open] summary::after { content: '−'; }
.support-faq p { margin: 0 0 12px; color: var(--soft); font-size: 14px; line-height: 1.6; }
.support-faq a { color: inherit; }
.support-faq code { background: var(--raised); padding: 1px 6px; border-radius: 4px; }
.support-main { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 8px; padding: 12px 16px; border-radius: 8px; background: var(--gold); color: var(--gold-ink); font: 600 15px/1.2 var(--sans); text-decoration: none; }
.support-main:hover { background: var(--gold-hover); }
.support-alt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 10px; font-size: 14px; }
.support-alt a { display: inline-flex; align-items: center; gap: 7px; color: var(--soft); text-decoration: none; }
.support-alt a:hover { text-decoration: underline; }
@media (max-width: 560px) { .support-btn { width: 52px; height: 52px; } }

/* Avatar menu */
/* flex, so the wrapper is exactly as tall as the avatar button: as an inline button it was lined up by the
   bottom of the avatar picture, the wrapper grew by 2.8 px and the button stood 1.4 px above the balance and the
   cart next to it */
.um { position: relative; display: flex; }
.um .user-chip { cursor: pointer; color: var(--text); font: inherit; font-size: 14px; }
.um .user-chip:hover, .um .user-chip[aria-expanded="true"] { border-color: var(--line-strong); }
.um-caret { flex: none; color: var(--muted); transition: transform 0.15s; }
.user-chip[aria-expanded="true"] .um-caret { transform: rotate(180deg); }
.um-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 340px; max-height: calc(100vh - 90px); overflow: auto; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85); padding: 14px; display: grid; gap: 12px; }
.um-panel[hidden] { display: none; }
/* Avatar menu as a small profile («Маски», 23.11.2026): the map scene of the profile behind avatar and
   name, the rank mask large on the right, a white level bar, numbers in one row, VIP as a staircase */
.um-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 18px 14px 14px; margin: -14px -14px 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(180deg, rgba(20, 20, 20, 0), var(--panel) 94%), url(/media/bg/profile.webp?v=1) center 40% / cover no-repeat; }
.um-ava { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--raised); border: 1px solid var(--line-strong); }
.um-who { min-width: 0; }
.um-who b { display: block; font: italic 800 19px/1.15 var(--wide); overflow-wrap: anywhere; }
.um-who small { display: block; margin-top: 3px; color: var(--soft); font-size: 12.5px; }
.um-mask { display: block; width: 112px; height: 58px; margin: -4px -2px -4px 0; }
.um-mask img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 100% 50%; }
.um-level { display: grid; gap: 6px; }
.um-bar { height: 6px; border-radius: 3px; background: var(--well); overflow: hidden; }
.um-bar i { display: block; height: 100%; background: var(--text); border-radius: 3px; }
.um-level small { color: var(--muted); font-size: 12.5px; }
.um-level small b { color: var(--text); font-weight: 600; }
.um-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.um-tiles > div { padding: 10px 6px; text-align: center; min-width: 0; }
.um-tiles > div + div { border-left: 1px solid var(--line); }
.um-tiles b { display: block; font: italic 800 20px/1.1 var(--num); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-tiles b.is-top { color: var(--gold); }
.um-tiles small { color: var(--muted); font-size: 12px; }
.um-vip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--raised); }
.um-vip > div { flex: 1; min-width: 0; }
.um-vip b { display: block; font: italic 900 17px/1.1 var(--wide); text-transform: uppercase; }
.um-vip small { color: var(--soft); font-size: 12.5px; }
.um-vip-steps { flex: none; display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.um-vip-steps i { width: 9px; height: 7px; background: var(--panel); border-top: 1px solid var(--line-strong); }
.um-vip-steps i:nth-child(2) { height: 12px; }
.um-vip-steps i:nth-child(3) { height: 17px; }
.um-vip-steps i:nth-child(4) { height: 22px; }
.um-vip-steps i.on { background: var(--soft); border-top-color: var(--text); }
.um-vip-btn, .um-vip-on { flex: none; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; text-decoration: none; background: var(--gold); color: var(--gold-ink); }
.um-vip-on { background: var(--panel); color: var(--soft); }
.um-links { display: grid; margin: 0 -6px; }
.um-links a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r); text-decoration: none; color: var(--text); font-size: 15px; }
.um-links a:hover, .um-links a:focus-visible { background: var(--raised); }
.um-links a svg { color: var(--muted); flex: none; }
.um-links a span:first-of-type { flex: 1; }
.um-side { color: var(--soft); font: italic 800 15px/1 var(--num); }
.um-chip { font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #5865f2; color: #fff; }
.um-out { color: var(--danger) !important; }
.um-out svg { color: var(--danger) !important; }
@media (max-width: 720px) {
    .um { position: static; }
    .um-panel { left: 12px; right: 12px; width: auto; top: calc(var(--header-h, 64px) - 4px); position: fixed; }
}

/* ═══════════════ cart (was css/cart.css) ═══════════════ */
/* Cart drawer, shared by every page */
.cart-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.6); }
.cart-drawer { position: fixed; z-index: 91; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--panel); border-left: 1px solid var(--line-strong); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.25s ease; }
.cart-drawer.is-open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 22px; margin: 0; }
.cart-close { width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--line); background: var(--raised); cursor: pointer; display: grid; place-items: center; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; display: grid; align-content: start; gap: 18px; }
.cart-empty { text-align: center; color: var(--muted); padding: 48px 0; display: grid; gap: 16px; justify-items: center; }

.cart-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start; background: var(--raised); border-radius: var(--r); padding: 10px; }
.cart-item img, .cart-item .ph { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--well); display: grid; place-items: center; font: italic 800 13px var(--wide); color: var(--muted); }
.cart-item b { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; }
.cart-item .term { color: var(--muted); font-size: 13px; }
.cart-item input[type="range"] { margin-top: 6px; }
.cart-item .price { font: italic 800 22px/1 var(--num); text-align: right; white-space: nowrap; }
.cart-item .remove { display: block; margin: 8px 0 0 auto; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 0; }
.cart-item .remove:hover { color: var(--danger); }

.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 13px; color: var(--muted); }
.field input[type="text"], .field input[type="email"] { width: 100%; background: var(--well); border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 12px; color: var(--text); font: 400 15px var(--sans); }
.field input:focus { outline: none; border-color: rgba(242, 183, 48, 0.6); }
.field .hint { font-size: 12px; color: var(--muted); }
.row { display: flex; gap: 8px; }
.row input { flex: 1; min-width: 0; }
.btn-small { border: 1px solid var(--line-strong); background: var(--raised); border-radius: 8px; padding: 0 14px; font: 500 14px var(--sans); cursor: pointer; white-space: nowrap; }
.btn-small:hover { border-color: rgba(242, 183, 48, 0.6); }
.buyer { display: flex; align-items: center; gap: 10px; background: var(--raised); border-radius: var(--r); padding: 10px 12px; font-size: 14px; }
.buyer img { width: 32px; height: 32px; border-radius: 50%; }
.buyer button { margin-left: auto; border: 0; background: none; color: var(--soft); text-decoration: underline; cursor: pointer; font-size: 13px; }
.msg { font-size: 13px; }
.msg.ok { color: var(--live); }
.msg.err { color: var(--danger); }

.methods { display: grid; gap: 8px; }
.method { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 11px 12px; cursor: pointer; }
.method input { accent-color: var(--gold); width: 16px; height: 16px; margin: 0; }
.method b { display: block; font-weight: 600; font-size: 15px; }
.method small { color: var(--muted); font-size: 12.5px; }
.method:has(input:checked) { border-color: rgba(242, 183, 48, 0.7); background: rgba(242, 183, 48, 0.05); }
.method.is-disabled { opacity: 0.5; cursor: not-allowed; }

.cart-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 10px; background: var(--panel); }
.totals { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.totals div { display: flex; justify-content: space-between; }
.totals .total { color: var(--text); font-size: 16px; align-items: baseline; }
.totals .total b { font: italic 800 34px/1 var(--num); }
.totals .change span:last-child { color: var(--gold); font-weight: 600; }
.change-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pay-btn { width: 100%; padding: 15px; font-size: 16px; }
.pay-btn[disabled] { opacity: 0.55; cursor: progress; }
.legal { font-size: 12px; color: var(--muted); margin: 0; }
.legal a { color: var(--soft); }
/* The link to the offer where it has to be seen — in the cart, where paying means accepting it, and in the support
   answers: underlined, and on hover and on keyboard focus it turns lighter. Grey, not gold (the owner, 24.11.2026);
   the same link under the VIP table is quieter still, see shop.css. */
.legal a, .support-faq a { text-decoration: underline; text-underline-offset: 3px; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .legal a:hover, .support-faq a:hover { color: var(--text); } }
.legal a:focus-visible, .support-faq a:focus-visible { color: var(--text); }

/* SBP manual transfer step */
.sbp { display: grid; gap: 12px; }
.sbp dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; background: var(--raised); border-radius: var(--r); padding: 14px; }
.sbp dt { color: var(--muted); font-size: 14px; }
.sbp dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.sbp dd.amount { font: italic 800 28px/1 var(--num); color: var(--gold); }
.sbp .copy-row { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.done { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 32px 0; }
.done b { font: italic 800 20px/1.3 var(--wide); }
.done p { margin: 0; color: var(--soft); max-width: 30em; }

/* Toast and payment-result notice */
.toast { position: fixed; z-index: 95; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 12px 14px 12px 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); font-size: 14px; max-width: calc(100vw - 32px); }
.toast button { border: 0; background: none; color: var(--gold); font-weight: 600; cursor: pointer; white-space: nowrap; }
.notice { border-bottom: 1px solid var(--line); background: var(--panel); }
.notice .wrap { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; font-size: 15px; }
.notice.ok { box-shadow: inset 3px 0 0 var(--live); }
.notice.err { box-shadow: inset 3px 0 0 var(--danger); }
.notice button { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; }

/* Range slider (cart and shop) */
input[type="range"] { --fill: 100%; -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--gold) var(--fill), var(--well) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--well); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--text); border: 4px solid var(--gold); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 4px solid var(--gold); }

@media (max-width: 480px) {
    .cart-drawer { width: 100vw; border-left: 0; }
}
