/* ORDA site. Graphite palette (D-005, .claude/skills/orda-ui/style.md): one dark look, no theme switch.
   The shop is products first: rank cards with their figures and every perk named, the kits of each
   server, token packs, and every rule behind a click (a rank's sheet opens by :target and draws a picture
   for each perk, the rules sit in the FAQ's <details>). Behind every page is one of the game menu's
   scenes (static/art/site.webp, make_art.py), darkened so the text keeps its contrast. */
:root {
  color-scheme: dark;
  --ground: #151515;
  --panel: #1E1E1E;
  --raised: #282828; /* also the backdrop baked into static/ranks/*.png */
  --cell-hover: #333333; /* an item cell of a kit under the pointer */
  --icon-edge: rgba(255, 255, 255, .5); /* the light outline of an item icon on its dark cell */
  /* Opaque on purpose: a see-through line takes the colour of whatever lies under it, and a corner then shows two. */
  --stroke: #303030;
  --stroke-strong: #424242;
  --divider: #2B2B2B;
  --text: #F2F3F5;
  --text2: #A6ABB3;
  --text3: #7C8189;
  --accent: #2563EB;
  --accent-hover: #1D4FD8;
  --ink: #60A5FA;
  --gold: #F5C542;
  --gold-deep: #B8860B;
  --success: #4ADE80;
  --danger: #F87171;
  --warning: #FBBF24;
  /* The seven ranks' inks and chat tints, as the in-game store draws them (store-v2/plan.md, StoreConfig). */
  --silver: #AEB9C6;
  --gold-rank: #C98B5E;
  --platinum: #86CFC3;
  --vip: #F6EE82;
  --vip-chat: #FAF6C4;
  --diamond: #B37CF3;
  --diamond-chat: #DCC3FA;
  --titan: #7C8FF0;
  --titan-chat: #B9C3F6;
  --ruby: #EC4A6C;
  --ruby-chat: #F7AFC1;
  /* What a player has without a rank, in the perk pictures; and the game HUD's own bar colours. */
  --free: #6B7078;
  --bar-food: #E0913A;
  --bar-water: #4AA3DF;
  --bar-oxygen: #7FD6E8;
  /* The one scale of corners (README, «Углы и рамки»): a mark under 16 px, a chip or a cell, a button or an inner
     plate, a card, a sheet. A pill is 999px, a dot 50%. A box inside another takes the step below it. */
  --radius-dot: 2px;
  --radius-xs: 4px;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 16px;
  --gutter: clamp(16px, 3vw, 40px);
  --top-h: 64px;
  --sans: Inter, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "SF Mono", Menlo, "Roboto Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
/* An open rank sheet holds the page still behind it. */
html:has(.sheet:target) { overflow: hidden; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* The game scene behind the page: fixed, so it stays while the page scrolls, as behind the game's menu. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(21, 21, 21, .34), rgba(21, 21, 21, .5) 50%, rgba(21, 21, 21, .72)),
    url("art/site.webp") center bottom / cover no-repeat;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #93C5FD; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--radius-xs); }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--top-h) + 16px); }
code { font-family: var(--mono); font-size: .9em; color: var(--text); background: var(--raised); padding: 1px 6px; border-radius: var(--radius-xs); }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: var(--radius-xs); z-index: 30; }
.skip:focus { left: 8px; }
/* The small label over a document's title on the legal pages. */
.eyebrow { font-size: 14px; color: var(--text3); }

/* ---- header ---- */
.top { border-bottom: 1px solid var(--divider); background: rgba(21, 21, 21, .92); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; gap: 8px 32px; min-height: var(--top-h); }
.brand { display: inline-flex; color: var(--text); flex: 0 0 auto; }
.brand svg { height: 22px; width: auto; fill: currentColor; display: block; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav a { color: var(--text2); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-xs); font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .08); }
.nav .nav-discord { margin-left: auto; color: var(--text); border: 1px solid var(--stroke-strong); }
.nav .nav-discord:hover { border-color: var(--text2); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-s); border: 1px solid var(--stroke-strong);
  background: var(--raised); color: var(--text);
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .12s, border-color .12s;
}
.btn:hover { background: #323232; color: var(--text); }
.btn-primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn-big { min-height: 52px; padding: 0 28px; font-size: 16px; }
/* Closed on purpose, not broken: a quiet outlined label where the button will be. */
.btn[disabled] { background: transparent; color: var(--text3); border: 1px dashed var(--stroke-strong); cursor: not-allowed; }

/* ---- home: hero with the servers ---- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--divider); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 40px clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(40px, 6vw, 88px); }
.hero-mark { fill: var(--text); width: min(460px, 82%); height: auto; display: block; margin-bottom: clamp(24px, 3vw, 36px); }
.hero h1 { font-size: clamp(28px, 3.4vw, 46px); max-width: 18ch; letter-spacing: -.015em; }
.hero-lead { margin-top: 16px; max-width: 52ch; color: var(--text2); font-size: clamp(16px, 1.3vw, 18px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: clamp(28px, 4vw, 44px); list-style: none; }
.facts b { display: block; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.facts span { color: var(--text3); font-size: 14px; }

.servers-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.servers h2 { font-size: 20px; }
/* Players on all servers and on each one, written by online.js; absent until it has a fresh answer. */
.online-total { color: var(--text2); font-size: 15px; padding-left: 16px; position: relative; }
.online-total::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.online-total b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.board .count { margin-left: 10px; color: var(--success); font: 500 13px var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.servers-hint { color: var(--text2); font-size: 14px; margin: 4px 0 14px; }
.board { background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; list-style: none; }
.board li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 2px 10px; align-items: center; padding: 12px 14px 12px 18px; }
.board li + li { border-top: 1px solid var(--divider); }
.board .num { color: var(--text3); font: 600 15px var(--mono); grid-row: 1 / span 2; }
.board .map { font-weight: 600; line-height: 1.3; grid-column: 2; }
.board .addr { font: 14px var(--mono); color: var(--text2); user-select: all; white-space: nowrap; grid-column: 2; }
/* The main action joins through Steam; copying the address is the second one. */
.board .play { grid-column: 3; grid-row: 1 / span 2; min-height: 40px; min-width: 96px; }
.copy { grid-column: 4; grid-row: 1 / span 2; background: transparent; color: var(--text2); border: 1px solid var(--stroke-strong); border-radius: var(--radius-s); font: 500 14px var(--sans); padding: 0 12px; min-height: 40px; min-width: 116px; cursor: pointer; transition: background-color .12s; }
.copy:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.copy.done { color: var(--success); }
.join { margin-top: 12px; color: var(--text3); font-size: 14px; }

/* ---- sections ---- */
.section { padding-block: clamp(36px, 5vw, 64px); }
.section + .section { border-top: 1px solid var(--divider); }
.section-head { margin-bottom: 20px; max-width: 72ch; }
.section-head h2 { font-size: clamp(22px, 2.4vw, 30px); }
.section-head p { color: var(--text2); margin-top: 8px; }
/* A heading with its action on the same line. */
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; max-width: none; }
.head-row p { margin-top: 6px; }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { color: var(--text2); font-size: 15px; }

.steps { counter-reset: step; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; color: var(--text2); font-size: 15px; padding-left: 38px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--raised); color: var(--text); font: 600 13px/26px var(--mono); text-align: center; }

/* ---- the seven ranks: their colours, the home page's line-up, the shop's cards ---- */
[data-rank="silver"] { --rank: var(--silver); }
[data-rank="gold"] { --rank: var(--gold-rank); }
[data-rank="platinum"] { --rank: var(--platinum); }
[data-rank="vip"] { --rank: var(--vip); --rank-chat: var(--vip-chat); }
[data-rank="diamond"] { --rank: var(--diamond); --rank-chat: var(--diamond-chat); }
[data-rank="titan"] { --rank: var(--titan); --rank-chat: var(--titan-chat); }
[data-rank="ruby"] { --rank: var(--ruby); --rank-chat: var(--ruby-chat); }

/* Seven figures shoulder to shoulder on the backdrop their pictures carry. */
.lineup { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--raised); border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; }
.lineup a { position: relative; display: block; color: var(--text); text-decoration: none; border-bottom: 3px solid var(--rank); }
.lineup a + a { border-left: 1px solid var(--divider); }
.lineup img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; transition: transform .18s; }
.lineup a:hover img { transform: scale(1.04); }
.lineup-tag { position: absolute; inset: auto 0 0 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 8px; padding: 28px 12px 10px; background: linear-gradient(to top, rgba(21, 21, 21, .92) 35%, transparent); }
.lineup-tag b { color: var(--rank); font-size: 16px; font-weight: 700; letter-spacing: .03em; }
.lineup-tag span { font-size: 14px; color: var(--text2); font-variant-numeric: tabular-nums; }

/* ---- shop: the head, the buy bar ---- */
.shop-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; padding-block: clamp(24px, 3vw, 40px) 0; }
.shop-head h1 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.015em; }
.shop-head p { color: var(--text2); margin-top: 8px; max-width: 60ch; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--stroke-strong); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.tabs a:hover { background: rgba(255, 255, 255, .06); }
.page-head { padding-block: clamp(24px, 3vw, 40px) 0; }
.page-head h1 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.015em; }
.page-head p { color: var(--text2); margin-top: 10px; max-width: 72ch; }

.buy-bar { margin-top: 20px; display: grid; gap: 12px; }
.notice { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 14px 18px 14px 44px; position: relative; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--stroke); color: var(--text2); font-size: 15px; }
.page-head .notice { margin-top: 20px; }
.notice::before { content: ""; position: absolute; left: 18px; top: 19px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--warning); }
.notice b { color: var(--text); font-weight: 600; }

.account { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 18px 20px; }
.account-text { flex: 1 1 300px; display: grid; gap: 4px; }
.account-text b { font-size: 17px; font-weight: 600; }
.account-text span { color: var(--text2); font-size: 15px; }
.account dl, .status-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; }
.account dl { flex: 1 1 300px; }
.account dt, .status-facts dt { color: var(--text3); font-size: 13px; }
.account dd, .status-facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.account dd.id, .status-facts dd.id { font: 15px/1.6 var(--mono); overflow-wrap: anywhere; }
.account dd.gold, .status-facts dd.gold { color: var(--gold); }
.account dd.none { color: var(--text2); font-weight: 400; }
.account dd[data-rank] { color: var(--rank); }
/* The second way to buy, without the login: a pasted profile link, then the "is it you" card. */
.paste { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 620px); gap: 8px; padding-top: 16px; border-top: 1px solid var(--divider); }
.paste label { color: var(--text2); font-size: 14px; }
.topup-row { display: flex; gap: 10px; }
/* Basis 0: the field takes what the button leaves, so a phone keeps the button inside the panel. */
.paste input[type="text"], .topup input { flex: 1 1 0; width: 0; min-width: 0; min-height: 44px; padding: 0 14px; background: var(--raised); color: var(--text); border: 1px solid var(--stroke-strong); border-radius: var(--radius-s); font: 15px var(--sans); }
.paste input[type="text"]:focus, .topup input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.paste input::placeholder, .topup input::placeholder { color: var(--text3); font-weight: 400; }
.paste-msg { color: var(--danger); font-size: 14px; min-height: 1.5em; margin: 0; }
.who { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; }
.who-face { width: 64px; height: 64px; border-radius: var(--radius-xs); background: var(--raised); overflow: hidden; }
.who-face img { display: block; width: 64px; height: 64px; }
.who-text { display: grid; gap: 2px; min-width: 0; }
.who-text b { font-size: 17px; font-weight: 600; }
.who-nick { font-weight: 600; overflow-wrap: anywhere; }
.who-id { color: var(--text2); font: 14px/1.6 var(--mono); overflow-wrap: anywhere; }
.who-id mark { background: none; color: var(--gold); font-weight: 600; }
.who-confirm { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; cursor: pointer; }
.who-confirm input { width: 18px; height: 18px; accent-color: var(--accent); }
.who .btn { grid-column: 3; grid-row: 1; }
.who-note { grid-column: 1 / -1; color: var(--text3); font-size: 14px; margin: 0; }
.pay-error { color: var(--danger); font-size: 15px; }

/* ---- shop: rank cards in two lines ---- */
.shop-sec { padding-block: clamp(24px, 3vw, 36px); }
.shop-sec > .wrap > h2, .sec-title h2 { font-size: clamp(22px, 2.2vw, 28px); }
.sec-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 16px; }
.sec-title p { color: var(--text2); font-size: 15px; }
.lines { display: grid; gap: 24px; }
.line-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 10px; }
.line-head h3 { font-size: 16px; }
.line-head p { color: var(--text3); font-size: 14px; }
.ranks { display: grid; gap: 12px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.rank { position: relative; background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .12s; }
.rank:hover, .rank:focus-within { border-color: var(--rank); }
.rank-art { display: block; background: var(--raised); border-bottom: 3px solid var(--rank); }
.rank-art img, .rank-art svg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 18%; }
.rank-art svg { padding: 14px 0 0; fill: rgba(255, 255, 255, .09); }
.rank-free { --rank: var(--free); }
.rank-free h3 { color: var(--text2); letter-spacing: 0; }
.rank-body { display: flex; flex-direction: column; gap: 4px; padding: 14px; flex: 1; }
.rank h3 { font-size: 20px; font-weight: 700; letter-spacing: .03em; color: var(--rank); }
.rank .cost { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.rank .cost b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank .cost span { color: var(--text3); font-size: 14px; }
.rank .btn { margin-top: 12px; padding: 0 10px; }
/* Every perk of the rank by name, each with its small sign; the sheet behind the button draws them. */
.mini { list-style: none; display: grid; gap: 6px; align-content: start; flex: 1; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--divider); color: var(--text2); font-size: 14px; line-height: 1.3; }
.mini li { display: flex; align-items: flex-start; gap: 8px; }
.ic { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; fill: var(--rank, var(--text2)); }
.ic.big { width: 30px; height: 30px; margin: 0; }
/* The whole card opens the sheet; the button is where the keyboard lands. */
.rank .btn::after { content: ""; position: absolute; inset: 0; }

/* ---- shop: token packs ---- */
.packs { display: grid; gap: 12px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pack { background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
/* Coins drawn from the side: each stack is --n coins tall. */
.pack-art { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 96px; margin: -14px -14px 12px; padding-bottom: 12px; background: var(--raised); border-bottom: 3px solid var(--gold-deep); }
.stack { width: 28px; height: calc(var(--n) * 8px); border-radius: var(--radius-dot); background: repeating-linear-gradient(to top, var(--gold-deep) 0 2px, var(--gold) 2px 8px); box-shadow: inset 6px 0 0 rgba(255, 255, 255, .22), inset -5px 0 0 rgba(0, 0, 0, .16); }
.pack .tokens { font-size: 26px; font-weight: 600; line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
.pack .unit { color: var(--text3); font-size: 14px; }
.pack .bonus { color: var(--success); font-size: 13px; min-height: 1.55em; font-variant-numeric: tabular-nums; }
.pack .price { font-size: 20px; font-weight: 600; margin-top: auto; font-variant-numeric: tabular-nums; }
.pack .btn { margin-top: 10px; padding: 0 10px; }

.tok-extra { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); gap: 12px 28px; margin-top: 12px; }
.topup, .bonus-block { background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 8px; align-content: start; }
.topup label, .bonus-block h3 { color: var(--text); font-size: 16px; font-weight: 600; }
.topup input { font: 600 18px var(--sans); font-variant-numeric: tabular-nums; }
.topup input:disabled { color: var(--text3); cursor: not-allowed; border-style: dashed; }
.topup-sum { color: var(--text3); font-size: 14px; min-height: 1.5em; font-variant-numeric: tabular-nums; }
.topup-sum.gets { color: var(--gold); }
.topup-sum.bad { color: var(--danger); }
/* The bonus tiers: pay.js writes plain table rows, drawn here as a row of plates. */
.bonus-table table, .bonus-table tbody { display: block; }
.bonus-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bonus-table tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.bonus-table tr { display: flex; flex-direction: column; background: var(--raised); border-radius: var(--radius-s); padding: 8px 12px; }
.bonus-table td { padding: 0; border: 0; color: var(--text2); font-size: 14px; font-variant-numeric: tabular-nums; }
.bonus-table td + td { color: var(--gold); font-weight: 600; font-size: 16px; }
.bonus-note, .fine { color: var(--text3); font-size: 14px; }
.fine { margin-top: 14px; max-width: 110ch; }
.fine a, .faq a { color: var(--text2); }
.fine a:hover, .faq a:hover { color: var(--text); }

/* ---- shop: the rules, each behind its question ---- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; align-items: start; }
.faq-col { display: grid; gap: 8px; }
.faq details { background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 18px; cursor: pointer; font-weight: 600; list-style: none; border-radius: calc(var(--radius) - 1px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; color: var(--text3); font: 400 22px/1 var(--sans); }
.faq details[open] summary::after { content: "-"; }
.faq summary:hover { background: rgba(255, 255, 255, .03); }
.faq-in { padding: 0 18px 16px; display: grid; gap: 10px; color: var(--text2); font-size: 15px; }
.faq .steps { grid-template-columns: minmax(0, 1fr); }

.table-scroll { overflow-x: auto; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--panel); }
.faq .table-scroll { background: transparent; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--divider); vertical-align: top; }
tr:last-child > td { border-bottom: 0; }
th { color: var(--text3); font-weight: 600; font-size: 13px; white-space: nowrap; }
td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- shop: a rank's sheet, opened by its #rank-<id> ---- */
.sheet { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; padding: 24px; }
.sheet:target { display: flex; }
.sheet-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .74); cursor: default; }
.sheet-box { position: relative; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); width: min(1000px, 100%); height: min(860px, 100%); background: var(--panel); border: 1px solid var(--stroke-strong); border-radius: var(--radius-l); overflow: hidden; outline: 0; }
.sheet-box::before { content: ""; position: absolute; inset: 0 0 auto 0; z-index: 3; height: 3px; background: var(--rank); pointer-events: none; }
.sheet-art { position: relative; background: var(--raised); min-height: 0; }
.sheet-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; }
.sheet-body { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.sheet-main { padding: 24px 28px 20px; display: grid; gap: 14px; }
.sheet-line { color: var(--text3); font-size: 14px; }
.sheet h3 { font-size: 34px; font-weight: 700; letter-spacing: .03em; color: var(--rank); margin-top: -10px; }
.sheet .cost { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
.sheet .cost b { font-size: 24px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.sheet .cost span { color: var(--text2); font-size: 15px; }
.chat { font: 14px/1.5 var(--sans); color: var(--rank-chat, var(--text2)); background: var(--raised); border-radius: var(--radius-xs); padding: 8px 12px; overflow-wrap: anywhere; }
.chat b { color: var(--rank); font-weight: 600; }
/* A perk: its picture, then its name and one line of what it means. */
.perks { list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--text); }
.perk { display: grid; grid-template-columns: 214px minmax(0, 1fr); align-items: center; gap: 8px 18px; padding: 12px 14px; background: var(--raised); border-radius: var(--radius-s); }
.perk-chat, .perk-wide { grid-template-columns: minmax(0, 1fr); }
.perk-text { display: grid; gap: 2px; }
.perk-text b { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.perk-text span { color: var(--text2); font-size: 14px; }
.vis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 48px; }
/* A grid of inventory cells, --w by --h; in a rank's grid the part every player has (--bw by --bh) is dimmed. */
.cells { --c: 11px; position: relative; display: block; flex: 0 0 auto; width: calc(var(--w) * var(--c) + 2px); height: calc(var(--h) * var(--c) + 2px); background-color: var(--rank);
  background-image: linear-gradient(to right, var(--gap, var(--raised)) 2px, transparent 2px), linear-gradient(to bottom, var(--gap, var(--raised)) 2px, transparent 2px); background-size: var(--c) var(--c); }
.cells.base { background-color: var(--free); }
.cells:not(.base)::before { content: ""; position: absolute; left: 0; top: 0; width: calc(var(--bw) * var(--c) + 2px); height: calc(var(--bh) * var(--c) + 2px); background: rgba(40, 40, 40, .58); }
.vis-cmp { align-items: flex-end; flex-wrap: nowrap; }
.vis-cmp figure { margin: 0; display: grid; gap: 5px; }
.vis-cmp figcaption { color: var(--text3); font-size: 11px; line-height: 1.25; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--panel); color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill .ic { width: 13px; height: 13px; margin: 0; fill: var(--text3); }
.pill s { color: var(--text3); }
.slots { display: grid; grid-template-columns: repeat(8, 13px); gap: 3px; }
.slots i { width: 13px; height: 13px; border-radius: var(--radius-dot); background: var(--rank); }
.vis-bars { display: grid; gap: 7px; width: 100%; }
.bar { display: grid; grid-template-columns: 62px minmax(0, 1fr) 20px; align-items: center; gap: 8px; font-size: 12px; color: var(--text2); }
.bar b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar em { font-style: normal; color: var(--text); font-variant-numeric: tabular-nums; }
.track { display: block; height: 10px; background: var(--panel); border-radius: var(--radius-dot); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--fill); }
.bar-food { --fill: var(--bar-food); }
.bar-water { --fill: var(--bar-water); }
.bar-stamina { --fill: var(--rank); }
.bar-oxygen { --fill: var(--bar-oxygen); }
.bar-base { --fill: var(--free); }
.vis-fall svg { flex: 0 0 auto; width: 112px; height: auto; }
.vis-fall .ground { fill: var(--free); }
.vis-fall .guy { fill: var(--rank); }
.vis-fall .arc { stroke: var(--rank); stroke-width: 2.5; stroke-dasharray: 5 5; }
.vis-queue { gap: 5px; }
.vis-queue .ic { width: 22px; height: 22px; fill: var(--free); }
.vis-queue .you { width: 30px; height: 30px; fill: var(--rank); margin-right: 6px; }
.perk-chat .chat { margin: 0; }
.perk-kits { display: grid; gap: 10px; }
/* With the script on and no server picked yet (shop.js marks <html>): the kits and the delivery line wait for the choice. */
.perk-kits .kits-ask { display: none; color: var(--text2); font-size: 14px; }
html.js:not([data-server]) .perk-kits .kits-ask { display: block; }
html.js:not([data-server]) .perk-kits [data-of-server], html.js:not([data-server]) .sheet-kits, html.js:not([data-server]) .deliver { display: none; }
/* The note about taking kits is for a server that has some. */
#kits:not(:has(.kit-server:not([hidden]) .kit-grid)) .fine { display: none; }
/* The picker's pressed button already names the server. */
html[data-server] .perk-server, html[data-server] .kit-server h3 { display: none; }
.perk-of { display: grid; gap: 8px; }
.perk-of + .perk-of { margin-top: 8px; }
.perk-server { color: var(--text2); font-size: 13px; font-weight: 600; }
/* A rank's kits inside its sheet: the same cards as the «Наборы» section, on the perk row's plate. */
.perk-kits .kit-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.perk-kits .kit { border-radius: var(--radius-xs); }
.perk-kits .kit:only-child { grid-column: 1 / -1; }
/* The rank's kits by name, right under the server choice; a press shows the cards in the row below. */
.sheet-kits { display: grid; gap: 8px; }
.sheet-kits:empty { display: none; }
.brief-of { display: grid; gap: 6px; }
.brief { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; width: 100%; padding: 10px 14px; background: var(--raised); border: 1px solid var(--stroke); border-radius: var(--radius-s); color: var(--text2); font: 14px/1.4 var(--sans); text-align: left; cursor: pointer; }
.brief:hover { border-color: var(--text3); }
.brief > span { color: var(--text3); font-size: 13px; }
.brief ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; font-variant-numeric: tabular-nums; }
.brief b { color: var(--rank); font-weight: 600; margin-right: 4px; }
.perk-kits .kit h4 { font-size: 16px; }
.perks .term { color: var(--text3); }
.sheet-buy { position: sticky; bottom: 0; z-index: 2; margin-top: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 16px; padding: 14px 28px 16px; background: var(--panel); border-top: 1px solid var(--divider); }
/* The server comes first in a sheet: the kits under it and the button at the foot are that server's. */
.sheet-pick { display: grid; gap: 6px; }
.buy-for { color: var(--text3); font-size: 13px; }
.deliver { color: var(--text3); font-size: 13px; }
.deliver a { color: var(--text2); white-space: nowrap; }

/* ---- shop: the server a rank is bought for; every picker on the page shows the one choice (shop.js) ---- */
.sec-pick { justify-content: space-between; align-items: flex-end; gap: 12px 32px; }
.pick-box { display: grid; gap: 6px; }
.pick-label { color: var(--text3); font-size: 13px; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick button { min-height: 40px; padding: 0 14px; border-radius: var(--radius-s); border: 1px solid var(--stroke-strong); background: var(--panel); color: var(--text2); font: 500 14px var(--sans); cursor: pointer; white-space: nowrap; transition: background-color .12s, border-color .12s; }
.pick button:hover { color: var(--text); border-color: var(--text3); }
.pick button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 600; }
.pick-s button { min-height: 34px; padding: 0 11px; font-size: 13px; background: var(--raised); }

/* ---- shop: the kits of each server ---- */
.kit-servers { display: grid; gap: 28px; }
.kit-server h3 { font-size: 18px; margin-bottom: 10px; }
.kit-none { color: var(--text2); background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 16px 18px; max-width: 72ch; }
.kit-ranks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.kit-ranks button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--stroke-strong); background: var(--panel); color: var(--rank, var(--text)); font: 700 13px var(--sans); letter-spacing: .03em; cursor: pointer; }
.kit-ranks button span { color: var(--text3); font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.kit-ranks button:hover { border-color: var(--text3); }
.kit-ranks button.on { border-color: var(--rank, var(--text2)); background: var(--raised); }
/* A kit card is its contents, drawn as an inventory: every item's icon in a cell, by group (owner, 2026-11-17: a kit must be seen, not read). */
.kit-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); align-items: start; }
.kit { background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.kit-art { position: relative; display: grid; place-items: center; height: 200px; background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, .07), transparent 62%) var(--raised); border-bottom: 1px solid var(--divider); }
.kit-art img { display: block; height: 186px; width: auto; max-width: 100%; object-fit: contain; }
.kit-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 12px 14px 14px; }
.kit-head { display: grid; gap: 6px; }
.kit h4 { margin: 0; font: 600 18px/1.2 var(--sans); color: var(--text); }
.kit-who { list-style: none; display: grid; gap: 5px; }
.kit-who li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; line-height: 1.3; }
.kit-cd { display: inline-flex; align-items: center; gap: 5px; color: var(--text2); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kit-cd .ic { width: 13px; height: 13px; margin: 0; fill: var(--text3); }
.kit-who b { color: var(--rank); font-weight: 700; letter-spacing: .03em; }
.inv { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--divider); }
/* The name of the item under the pointer, the focus or a tap is written at the right of its group's title. */
.inv-group { position: relative; display: grid; gap: 5px; }
.inv h5 { margin: 0; color: var(--text3); font: 600 12px/1.4 var(--sans); letter-spacing: .02em; }
/* Cells share the card's width: at least --cell wide, square; a gun's is two of them and the gap between. */
.inv ul { --cell: 50px; --gap: 4px; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cell), 1fr)); gap: var(--gap); align-items: start; }
.it { outline: 0; min-width: 0; }
.it .pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--raised); border: 1px solid var(--stroke); border-radius: var(--radius-xs); }
.it-wide { grid-column: span 2; }
.it-wide .pic { aspect-ratio: 2.06; }
.it img { display: block; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; filter: drop-shadow(0 0 1px var(--icon-edge)) drop-shadow(0 0 1px var(--icon-edge)); }
.it .glyph { width: 22px; height: 22px; margin: 0; fill: var(--text3); }
.it .pic b { position: absolute; right: 2px; bottom: 1px; padding: 0 3px; border-radius: var(--radius-dot); background: rgba(21, 21, 21, .82); color: var(--text); font: 600 11px/1.35 var(--sans); font-variant-numeric: tabular-nums; }
.it .cap { display: block; margin-top: 3px; color: var(--text2); font-size: 12px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it:hover .pic, .it:focus .pic { border-color: var(--text3); background: var(--cell-hover); }
.it:focus-visible .pic { border-color: var(--accent); }
.it::after { content: attr(data-name); position: absolute; top: 0; right: 0; max-width: 68%; display: none; padding-left: 10px; background: var(--panel); color: var(--text); font: 500 12px/1.4 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it:hover::after, .it:focus::after { display: block; }
.it-wide::after { content: none; }
.inv-group:has(.it:hover) .it:focus:not(:hover)::after { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(21, 21, 21, .6); color: var(--text); text-decoration: none; font: 400 24px/1 var(--sans); }
.sheet-close:hover { background: var(--raised); color: var(--text); }

/* ---- the payment status page (pay.js) ---- */
.status-lead:empty { display: none; }
.status { --tone: var(--text3); max-width: 760px; margin-top: 16px; padding: 28px; background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); position: relative; overflow: hidden; }
.status::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--tone); }
.status[data-state="paid"] { --tone: var(--success); }
.status[data-state="pending"] { --tone: var(--warning); }
.status[data-state="failed"] { --tone: var(--danger); }
.page-head .status h1 { font-size: clamp(24px, 3vw, 32px); margin-top: 0; }
.page-head .status .status-lead { margin-top: 10px; }
.status-facts { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--divider); }
.status-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.status-actions:empty { display: none; }

/* ---- the menu background (menu-bg.js, D-135): the cards to choose from and the upload with its 16:9 preview ---- */
.term { color: var(--text3); font-size: 14px; }
.pay-terms { margin-top: 14px; max-width: 110ch; color: var(--text2); font-size: 14px; }
#bg-account { margin-bottom: 28px; }
.bgs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.bg-card { background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.bg-card.current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bg-frame { aspect-ratio: 16 / 9; background: var(--raised); border-bottom: 1px solid var(--divider); display: grid; place-items: center; }
.bg-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-plain { color: var(--text3); font-size: 14px; }
.bg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.bg-foot h3 { font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.bg-foot .btn { min-height: 40px; padding: 0 16px; font-size: 14px; flex: 0 0 auto; }
.bg-card.current .btn[disabled] { background: transparent; color: var(--ink); border-color: transparent; cursor: default; }
.bg-upload { display: grid; gap: 16px 28px; grid-template-columns: minmax(0, 640px) minmax(220px, 1fr); align-items: start; }
.bg-upload.off { opacity: .6; }
.bg-preview { position: relative; aspect-ratio: 16 / 9; background: var(--panel); border: 1px dashed var(--stroke-strong); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.bg-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.bg-preview.shown { border-style: solid; }
.bg-preview.shown canvas { display: block; }
.bg-preview.shown .bg-preview-empty { display: none; }
.bg-preview-empty { color: var(--text3); font-size: 14px; padding: 16px; text-align: center; }
.bg-upload-side { display: grid; gap: 10px; justify-items: start; }
.bg-file { position: relative; }
/* The native file input stays for the keyboard and the screen reader, drawn as our button. */
.bg-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bg-file input:disabled { cursor: not-allowed; }
.bg-file:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.bg-upload.off .bg-file { color: var(--text3); }
.bg-file-name { color: var(--text2); font-size: 14px; overflow-wrap: anywhere; }
.bg-file-name:empty { display: none; }
.bg-upload-side .ok { color: var(--text2); }

/* ---- documents ---- */
.doc { max-width: 900px; padding-block: clamp(32px, 5vw, 56px); }
.doc h1 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 6px; letter-spacing: -.01em; }
.doc .rev { color: var(--text2); font-size: 14px; margin-top: 10px; }
.doc h2 { font-size: 20px; margin: 36px 0 12px; }
.doc p, .doc li { color: #D3D6DB; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0; display: grid; gap: 6px; }
.doc .table-scroll { margin: 12px 0; }
.doc dl { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 0; margin: 12px 0; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.doc dt, .doc dd { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--divider); overflow-wrap: anywhere; }
.doc dt { color: var(--text3); font-size: 14px; }
.doc dl > :nth-last-child(-n+2) { border-bottom: 0; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
mark.todo { background: rgba(251, 191, 36, .16); color: var(--warning); border-radius: var(--radius-dot); padding: 0 3px; font-family: var(--mono); font-size: .88em; overflow-wrap: anywhere; }

/* ---- footer: the documents, the seller and the contacts on every page ---- */
.foot { border-top: 1px solid var(--divider); background: #111; margin-top: clamp(32px, 5vw, 64px); font-size: 14px; color: var(--text2); }
.foot-grid { display: grid; gap: 28px 48px; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); padding-block: 36px 24px; }
.foot h2 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.foot ul { list-style: none; display: grid; gap: 6px; }
.foot a { color: var(--text2); }
.foot a:hover { color: var(--text); }
.foot-mark { height: 20px; width: auto; fill: var(--text); display: block; margin-bottom: 12px; }
.foot-note { max-width: 40ch; }
.seller { line-height: 1.8; overflow-wrap: anywhere; }
.foot-legal { padding-block: 16px 28px; border-top: 1px solid var(--divider); color: var(--text3); font-size: 13px; }

/* ---- narrower screens ---- */
@media (max-width: 1180px) {
  .tok-extra { grid-template-columns: minmax(0, 1fr); }
  .ranks { --cols: 3; }
  .packs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lineup { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lineup a:nth-child(4n+1) { border-left: 0; }
}
@media (max-width: 960px) {
  .ranks { --cols: 2; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bg-upload { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pack:last-child:nth-child(odd) { grid-column: span 2; }
  .lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lineup a:nth-child(n) { border-left: 0; }
  .lineup a:nth-child(even) { border-left: 1px solid var(--divider); }
  /* The sheet fills the phone; the figure becomes a strip over the text. */
  .sheet { padding: 0; align-items: stretch; }
  /* On a phone the sheet scrolls as one page: the figure leaves with the scroll, the buy bar stays, as short as it can be. */
  .sheet-box { display: block; overflow-y: auto; width: 100%; height: 100%; max-height: none; border-radius: 0; border-inline: 0; border-bottom: 0; }
  .sheet-art { height: 150px; }
  .sheet-body { display: block; overflow: visible; }
  .deliver-more { display: none; }
  .perk { grid-template-columns: minmax(0, 1fr); }
  .sheet-art img { object-fit: cover; object-position: 50% 24%; }
  .sheet-main { padding: 20px 16px 16px; }
  .sheet-buy { grid-template-columns: minmax(0, 1fr); padding: 10px 16px 12px; }
}
@media (max-width: 560px) {
  :root { --top-h: 56px; }
  /* A rank is a row on a phone: the face, then the name and the price beside the button, the perks under them. */
  .ranks { --cols: 1; gap: 8px; }
  .rank { flex-direction: row; align-items: stretch; }
  .rank-art { flex: 0 0 84px; border-bottom: 0; border-right: 3px solid var(--rank); }
  .rank-art img, .rank-art svg { height: 100%; aspect-ratio: auto; min-height: 88px; object-position: 50% 0; }
  .rank-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; align-content: start; gap: 0 12px; padding: 10px 12px 12px 14px; }
  .rank h3, .rank .cost { grid-column: 1; }
  .rank .btn { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; padding: 0 14px; }
  .mini { grid-column: 1 / -1; }
  .pick button { flex: 1 1 auto; }
  .kit-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .kit-art { height: 170px; }
  .kit-art img { height: 156px; }
  .top-row { gap: 8px 12px; }
  .brand svg { height: 18px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 6px; font-size: 14px; }
  /* A phone's bar keeps the servers, the shop and Discord; the contacts are in the footer of every page. */
  .nav a[data-nav="home"], .nav a[data-nav="contacts"] { display: none; }
  .nav .nav-discord { border: 0; color: var(--ink); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .tabs a { padding: 0 14px; }
  .board li { padding-left: 14px; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 2px 10px; }
  .board .num { grid-row: 1 / span 3; align-self: start; padding-top: 2px; }
  .board .addr { font-size: 13px; }
  .board .play { grid-row: 1 / span 3; }
  .copy { grid-column: 2; grid-row: 3; justify-self: start; min-width: 0; min-height: 32px; padding: 0; border: 0; color: var(--ink); }
  .copy:hover { background: none; }
  .doc dl { grid-template-columns: 1fr; }
  .doc dt { border-bottom: 0; padding-bottom: 0; }
  .who { grid-template-columns: 64px minmax(0, 1fr); }
  .who .btn { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  .who-confirm { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .status { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .rank, .copy, .lineup img, .pick button { transition: none; }
}

/* «Сайт обновился»: update.js shows it when version.txt changes while the page is open. */
.update-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px);
  padding: 10px 10px 10px 16px; background: var(--raised); color: var(--text);
  border: 1px solid var(--stroke-strong); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.update-reload {
  font: inherit; font-weight: 600; color: #fff; background: var(--accent);
  border: 0; border-radius: var(--radius-s); padding: 8px 14px; cursor: pointer;
}
.update-reload:hover { background: var(--accent-hover); }
.update-later {
  font: inherit; font-size: 20px; line-height: 1; color: var(--text); background: none;
  border: 0; border-radius: var(--radius-s); padding: 6px 8px; cursor: pointer; opacity: .7;
}
.update-later:hover { opacity: 1; }
