/* BYTE BLASTER — site styles.
   One stylesheet for every page. Palette and type mirror the game itself:
   near-black background, cyan/magenta neon, pixel font for headings and a
   monospace terminal face for body text. */

/* ── Country flags ───────────────────────────────────────────────────────────
   Windows ships no flag glyphs at all — a flag emoji falls back to the two
   letters of its country code ("RU"). The game already carries this font, so
   the site uses the same file. The unicode-range keeps it to regional
   indicators: every other character still comes from the page's own type. */
@font-face {
  font-family: 'Twemoji Country Flags';
  unicode-range: U+1F1E6-1F1FF;
  src: url('fonts/TwemojiCountryFlags.woff2') format('woff2');
  font-display: swap;
}

:root {
  --bg:      #04040f;
  --bg-2:    #080818;
  --panel:   #0a0a20;
  --line:    #1a1a3a;
  --cyan:    #0ff;
  --magenta: #f0f;
  --green:   #0f8;
  --orange:  #f80;
  --red:     #f55;
  --text:    #c8d4e8;
  --dim:     #7788a0;
  --pixel:   'Twemoji Country Flags', 'Press Start 2P', 'Courier New', monospace;
  --mono:    'Twemoji Country Flags', 'Share Tech Mono', 'Consolas', monospace;
  --maxw:    1180px;
}

/* ── Scrollbars ───────────────────────────────────────────────────────────────
   Browsers draw light-grey scrollbars by default, which on a near-black page
   look like someone taped white strips to the edges. `color-scheme: dark` tells
   the browser this is a dark UI (it also darkens form controls and the overscroll
   area); the rules under it restyle the bars themselves on engines that allow it. */
:root { color-scheme: dark; }

/* Firefox */
* { scrollbar-width: thin; scrollbar-color: #1f2b4a var(--bg); }

/* Chromium / Safari */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #16305a, #0f2140);
  border: 2px solid var(--bg);           /* inset, so the bar reads as slim */
  border-radius: 8px;
  transition: background .25s;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #1d4a7a, #14315c); }
::-webkit-scrollbar-thumb:active { background: linear-gradient(180deg, var(--cyan), #0a6b7a); }
::-webkit-scrollbar-corner { background: var(--bg); }

/* The horizontal bars inside wide tables and the wiki sidebar are thinner still:
   they sit inside a panel, so a full-size bar would dominate the box. */
.tw::-webkit-scrollbar, .toc::-webkit-scrollbar { width: 8px; height: 8px; }
.tw::-webkit-scrollbar-track, .toc::-webkit-scrollbar-track { background: transparent; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ── Bilingual content ───────────────────────────────────────────────────────
   Both languages live in the markup side by side; the active one is chosen by
   the data-site-lang attribute on <html>. No flash of the wrong language and no
   second copy of every page to keep in sync. */
[data-site-lang="ru"] [data-l="en"],
[data-site-lang="en"] [data-l="ru"] { display: none !important; }

/* ── Anchor offset ───────────────────────────────────────────────────────────
   The top bar is sticky, so an anchor scrolled to the very top ends up hidden
   underneath it. Every jump target reserves the bar's height plus a margin. */
:target,
section[id],
article section,
[id]:not(body):not(html) { scroll-margin-top: 88px; }
@media (max-width: 860px) {
  /* The bar wraps onto two rows on a phone, so it is taller there. */
  :target, section[id], article section, [id]:not(body):not(html) { scroll-margin-top: 132px; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.65;
  /* Faint grid, the same motif the game draws behind its levels. */
  background-image:
    linear-gradient(rgba(0,255,255,0.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,255,0.030) 1px, transparent 1px);
  background-size: 44px 44px;
  overflow-x: hidden;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 62px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

/* ── Type ────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--pixel); line-height: 1.5; margin: 0 0 18px; }
h1 { font-size: clamp(20px, 5vw, 40px); color: var(--cyan); text-shadow: 0 0 18px rgba(0,255,255,.55); letter-spacing: 2px; }
h2 { font-size: clamp(15px, 3vw, 22px); color: var(--cyan); letter-spacing: 1px; }
h3 { font-size: clamp(12px, 2.2vw, 15px); color: var(--green); }
h4 { font-size: 12px; color: var(--orange); }
p  { margin: 0 0 16px; }
a  { color: var(--cyan); text-decoration: none; border-bottom: 1px dotted rgba(0,255,255,.4); }
a:hover { color: #fff; border-bottom-color: #fff; }
code {
  font-family: var(--mono); background: #10102a; color: var(--green);
  padding: 2px 6px; border-radius: 3px; font-size: .92em;
  border: 1px solid var(--line); word-break: break-word;
}
.lead { font-size: clamp(15px, 2.2vw, 19px); color: #dbe6f5; }
.dim  { color: var(--dim); }
.tag  {
  display: inline-block; font-family: var(--pixel); font-size: 8px; letter-spacing: 1px;
  padding: 5px 9px; border: 1px solid var(--cyan); color: var(--cyan);
  border-radius: 3px; margin: 0 6px 6px 0; background: rgba(0,255,255,.06);
}
.tag.mag { border-color: var(--magenta); color: var(--magenta); background: rgba(255,0,255,.06); }
.tag.grn { border-color: var(--green);   color: var(--green);   background: rgba(0,255,136,.06); }
.tag.orn { border-color: var(--orange);  color: var(--orange);  background: rgba(255,136,0,.06); }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4,4,15,.92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
/* Высота задаётся снизу, а не намертво: в шапке лежит меню из девяти пунктов,
   ссылка на студию, переключатель языка и кнопка аккаунта с аватаром. На узком
   окне всё это переносится на вторую строку, и при height: 62px первая строка
   уезжала за верхний край. Теперь шапка просто становится выше. */
.top .wrap {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px 16px; min-height: 62px; padding-top: 8px; padding-bottom: 8px;
  /* Шапке позволено быть шире колонки текста: в ней девять пунктов меню,
     ссылка на студию, языки и кнопка аккаунта — в 1180 px они не помещаются,
     и меню переезжало на вторую строку даже на широком мониторе. */
  max-width: min(1360px, 100%);
}
.brand {
  font-family: var(--pixel); font-size: 13px; color: var(--cyan);
  text-shadow: 0 0 12px rgba(0,255,255,.5); border: none; white-space: nowrap;
}
.brand:hover { color: #fff; }
/* Возврат на сайт студии. Byte Blaster — её игра, и уходить со страницы игры
   «кнопкой назад» игрок не должен: путь домой видно сразу. */
.tostudio {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px;
  color: var(--dim); border: none; white-space: nowrap;
}
.tostudio:hover { color: var(--cyan); border: none; }
.tostudio img { width: 18px; height: 18px; object-fit: contain; display: block; }
@media (max-width: 900px) { .tostudio span { display: none !important; } }

nav.main { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
nav.main a {
  font-family: var(--pixel); font-size: 9px; padding: 8px 9px; border: 1px solid var(--line);
  border-radius: 3px; color: var(--text); background: var(--panel);
}
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--cyan); border-color: var(--cyan); }

/* ── Language switch ─────────────────────────────────────────────────────── */
.langsw { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.langsw button {
  font-family: var(--pixel); font-size: 9px; padding: 9px 11px; cursor: pointer;
  background: var(--panel); color: var(--dim); border: none; border-left: 1px solid var(--line);
}
.langsw button:first-child { border-left: none; }
.langsw button:hover { color: var(--cyan); }
.langsw button[aria-pressed="true"] { background: rgba(0,255,255,.12); color: var(--cyan); }

/* ── Logo mark ───────────────────────────────────────────────────────────── */
.logo {
  width: clamp(96px, 22vw, 148px); height: auto; display: block; margin: 0 auto 16px;
  image-rendering: auto; filter: drop-shadow(0 0 26px rgba(0,255,255,.45));
  border-radius: 18%;
}
.brand-ico { width: 22px; height: 22px; vertical-align: -5px; margin-right: 7px; border-radius: 5px; }

/* ── Download cards ──────────────────────────────────────────────────────── */
.dl { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dl .card { display: flex; flex-direction: column; }
.dl .card .ico { font-size: 34px; }
.dl .card .btn { margin-top: auto; min-width: 0; width: 100%; }
.badge {
  display: inline-block; font-family: var(--pixel); font-size: 7px; letter-spacing: 1px;
  padding: 4px 7px; border-radius: 3px; background: rgba(0,255,136,.12);
  color: var(--green); border: 1px solid var(--green); margin-left: 8px; vertical-align: 3px;
}
.badge.off { background: rgba(255,136,0,.12); color: var(--orange); border-color: var(--orange); }

/* A platform that isn't shipping yet: shown, but plainly not clickable. */
.card.soon { opacity: .72; }
.btn.disabled {
  display: block; text-align: center; cursor: not-allowed;
  border-color: var(--line); color: var(--dim); background: #0a0a18;
  padding: 18px 26px; border-radius: 5px; border-width: 2px; border-style: solid;
  font-family: var(--pixel); font-size: 12px; letter-spacing: 1px;
}
.btn.disabled:hover { transform: none; box-shadow: none; }

/* ── Changelog entries ───────────────────────────────────────────────────── */
.rel { border-left: 2px solid var(--line); padding: 0 0 6px 22px; margin: 0 0 26px; position: relative; }
.rel::before {
  content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan);
}
.rel.now::before { border-color: var(--green); box-shadow: 0 0 12px rgba(0,255,136,.6); }
.rel h3 { margin-bottom: 4px; }
.rel .when { font-size: 13px; color: var(--dim); margin-bottom: 12px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 54px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% 0 auto; height: 420px;
  background: radial-gradient(ellipse at 50% 40%, rgba(0,255,255,.16), transparent 62%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero .sub {
  font-family: var(--pixel); font-size: clamp(8px, 1.8vw, 11px);
  color: var(--magenta); letter-spacing: 3px; margin-bottom: 26px;
}
.hero .robot { font-size: clamp(48px, 12vw, 92px); line-height: 1; margin-bottom: 14px; filter: drop-shadow(0 0 22px rgba(0,255,255,.5)); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 30px 0 12px; }
.btn {
  display: block; min-width: 250px; padding: 18px 26px; border-radius: 5px;
  font-family: var(--pixel); font-size: 12px; letter-spacing: 1px; text-align: center;
  border: 2px solid var(--cyan); color: var(--cyan); background: var(--panel);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn small { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0; margin-top: 9px; color: var(--dim); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 22px rgba(0,255,255,.4); background: #10203a; color: var(--cyan); }
.btn.primary { border-color: var(--green); color: var(--green); }
.btn.primary:hover { box-shadow: 0 0 26px rgba(0,255,136,.45); background: #0a2418; }
/* Secondary buttons sit inline in a paragraph, so they hug their label instead
   of stretching across the column like the primary block buttons do. */
.btn.ghost { display: inline-block; border-color: var(--line); color: var(--text); min-width: 0; padding: 13px 20px; font-size: 10px; margin: 4px; }
.btn.ghost:hover { border-color: var(--magenta); color: var(--magenta); box-shadow: 0 0 18px rgba(255,0,255,.28); }
/* Необратимое действие (удаление аккаунта) не должно выглядеть как соседние
   кнопки настроек — иначе на него нажимают по инерции. */
.btn.danger { border-color: #ff4d5e; color: #ff8b95; }
.btn.danger:hover { border-color: #ff4d5e; color: #ff4d5e; background: #2a0d12; box-shadow: 0 0 22px rgba(255,77,94,.35); }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 6px; padding: 22px;
}
.card:hover { border-color: rgba(0,255,255,.4); }
.card .ico { font-size: 30px; line-height: 1; margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }

.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat { text-align: center; border: 1px solid var(--line); border-radius: 6px; padding: 18px 10px; background: var(--panel); }
.stat b { display: block; font-family: var(--pixel); font-size: clamp(16px, 3.4vw, 26px); color: var(--cyan); margin-bottom: 8px; }
.stat span { font-size: 13px; color: var(--dim); }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.tw { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 14px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #0c0c22; color: var(--cyan); font-family: var(--pixel); font-size: 9px; letter-spacing: 1px; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(0,255,255,.04); }

/* ── Wiki layout ─────────────────────────────────────────────────────────── */
.wiki { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; padding: 34px 0 70px; }
/* Grid items default to min-width:auto, so they refuse to shrink below their
   content. The wiki tables carry min-width:460px for readability, which pushed
   the whole grid past a 390px phone screen and brought back horizontal
   scrolling. min-width:0 lets the column shrink; the table then scrolls inside
   its own .tw container, which is what that container is for. */
.wiki > * { min-width: 0; }
.tw { max-width: 100%; }
.toc { position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 16px; }
.toc h4 { margin-bottom: 12px; }
.toc a { display: block; padding: 7px 9px; border: none; border-radius: 3px; color: var(--text); font-size: 14px; }
.toc a:hover, .toc a.active { background: rgba(0,255,255,.10); color: var(--cyan); }
.toc input {
  width: 100%; padding: 9px 10px; margin-bottom: 12px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 3px; color: var(--text); font-family: var(--mono); font-size: 14px;
}
.toc input:focus { outline: none; border-color: var(--cyan); }
.wiki article section { padding: 0 0 44px; border: none; }
.wiki article section:first-child { padding-top: 0; }
.wiki article h2 { padding-top: 14px; border-top: 1px solid var(--line); }
.wiki article section:first-child h2 { border-top: none; padding-top: 0; }

details { border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; margin: 0 0 18px; background: var(--panel); }
details[open] { border-color: rgba(255,0,255,.35); }
summary { cursor: pointer; font-family: var(--pixel); font-size: 11px; color: var(--magenta); }
summary:hover { color: #fff; }
details > *:first-of-type:not(summary) { margin-top: 16px; }

.note {
  border-left: 3px solid var(--orange); background: rgba(255,136,0,.07);
  padding: 12px 16px; margin: 0 0 18px; border-radius: 0 4px 4px 0; font-size: 14px;
}
.note.cy { border-left-color: var(--cyan); background: rgba(0,255,255,.06); }

ul.clean { list-style: none; padding: 0; margin: 0 0 18px; }
ul.clean li { padding: 7px 0 7px 24px; position: relative; border-bottom: 1px solid rgba(26,26,58,.6); }
ul.clean li::before { content: '▸'; position: absolute; left: 4px; color: var(--cyan); }
ul.clean li:last-child { border-bottom: none; }

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.err { min-height: 82vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.err .code { font-family: var(--pixel); font-size: clamp(56px, 18vw, 140px); color: var(--magenta); text-shadow: 0 0 34px rgba(255,0,255,.55); margin-bottom: 8px; }
.err .glitch { animation: flick 3.2s infinite steps(1); }
@keyframes flick { 0%,88%,100% { opacity: 1 } 90% { opacity: .35 } 93% { opacity: 1 } 95% { opacity: .55 } }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--line); padding: 34px 0; color: var(--dim); font-size: 14px; }
footer.site .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* Ссылки на документы студии. Раскладывает по страницам sync-legal.mjs —
   правится там, а не тут. Документы общие для обоих сайтов и живут в корне
   домена, поэтому строка стоит отдельно от навигации по самой игре. */
.legal-line {
  max-width: var(--maxw); margin: 20px auto 0; padding: 15px 22px 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .5px;
}
.legal-line a { color: var(--dim); }
.legal-line a:hover { color: var(--cyan); }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .wiki { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; max-height: none; }
  section { padding: 44px 0; }
  .hero { padding: 46px 0 36px; }
  .btn { min-width: 100%; }
  .top .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  nav.main { margin-left: 0; width: 100%; }
  nav.main a { flex: 1 1 auto; text-align: center; }
  body { font-size: 15px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .card { padding: 16px; }
  nav.main a { font-size: 8px; padding: 8px 6px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOTION
   Every animation here moves only `transform`, `opacity`, `filter` or
   `background-position` — the properties a browser can hand to the GPU without
   re-laying out the page. Nothing animates width/height/top/left, so scrolling
   stays smooth even on a phone.
   The whole block switches off for visitors who ask for reduced motion (bottom).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page arrival + drifting grid ─────────────────────────────────────────── */
/* Opacity only, deliberately: an animation on <body> that touches 
   makes body the containing block for every position:fixed child, and the
   launch overlay, the progress bar and the back-to-top button then anchor to
   the whole document instead of the viewport (measured: the overlay landed
   2119px below the screen). */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 44px 44px, 44px 44px; } }
body { animation: pageIn .5s ease-out both, gridDrift 24s linear infinite; }

/* ── Reveal on scroll ─────────────────────────────────────────────────────────
   Elements start slightly low and transparent; site.js adds .in when they enter
   the viewport. Stagger is set per element through the --d custom property. */
[data-rv] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .62s cubic-bezier(.22,.61,.36,1), transform .62s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-rv].in { opacity: 1; transform: none; }
[data-rv="left"]  { transform: translateX(-26px); }
[data-rv="right"] { transform: translateX(26px); }
[data-rv="zoom"]  { transform: scale(.94); }
[data-rv="left"].in, [data-rv="right"].in, [data-rv="zoom"].in { transform: none; }

/* ── Headings ─────────────────────────────────────────────────────────────── */
@keyframes neonPulse {
  0%, 100% { text-shadow: 0 0 18px rgba(0,255,255,.55), 0 0 34px rgba(0,255,255,.18); }
  50%      { text-shadow: 0 0 26px rgba(0,255,255,.85), 0 0 54px rgba(0,255,255,.34); }
}
.hero h1 { animation: neonPulse 3.4s ease-in-out infinite; }

/* A cyan rule grows out from the left as a section scrolls in. */
h2 { position: relative; padding-bottom: 10px; }
h2::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s cubic-bezier(.22,.61,.36,1) .1s;
}
[data-rv].in h2::after, h2.in::after { transform: scaleX(1); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes haloBreathe {
  0%, 100% { opacity: .8; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.06); }
}
@keyframes sweep { 0% { transform: translateY(-160px); } 55%, 100% { transform: translateY(560px); } }

.hero .logo {
  animation: float 5.2s ease-in-out infinite;
  transition: transform .4s cubic-bezier(.22,.61,.36,1), filter .4s;
}
.hero .logo:hover { transform: scale(1.06) rotate(-2deg); filter: drop-shadow(0 0 40px rgba(0,255,255,.75)); }
.hero::before { animation: haloBreathe 6s ease-in-out infinite; }
.hero .sub { animation: fadeUp .8s ease-out .25s both; }
/* Scanline sweeping down the hero, like a CRT refresh. */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 140px;
  background: linear-gradient(180deg, transparent, rgba(0,255,255,.05), transparent);
  animation: sweep 7s ease-in-out infinite; pointer-events: none;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
@keyframes primaryGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(0,255,136,0); }
  50%      { box-shadow: 0 0 24px rgba(0,255,136,.28); }
}
.btn {
  position: relative; overflow: hidden;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .25s, color .25s, border-color .25s;
}
/* A highlight sweeps across the button on hover. */
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .65s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-3px) scale(1.015); }
.btn:active { transform: translateY(-1px) scale(.99); transition-duration: .08s; }
.btn.disabled::after { display: none; }
.btn.primary { animation: primaryGlow 3.6s ease-in-out infinite; }
.btn.primary:hover { animation: none; }

/* ── Navigation ───────────────────────────────────────────────────────────── */
nav.main a {
  position: relative;
  transition: color .22s, border-color .22s, background .22s, transform .18s;
}
nav.main a:hover { transform: translateY(-2px); }
nav.main a::after {
  content: ''; position: absolute; left: 10%; right: 10%; bottom: 3px; height: 1px;
  background: var(--cyan); transform: scaleX(0); transform-origin: center;
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
}
nav.main a:hover::after, nav.main a[aria-current="page"]::after { transform: scaleX(1); }
.brand { transition: color .25s, transform .25s; }
.brand:hover { transform: translateX(2px); }
.brand-ico { transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.brand:hover .brand-ico { transform: rotate(-12deg) scale(1.12); }
.langsw button { transition: color .2s, background .25s, transform .18s; }
.langsw button:hover { transform: translateY(-1px); }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  position: relative;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), border-color .3s, box-shadow .3s, background .3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 34px rgba(0,0,0,.5), 0 0 22px rgba(0,255,255,.12);
}
/* Corner light that fades in on hover. */
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: 6px; pointer-events: none;
  background: linear-gradient(160deg, rgba(0,255,255,.14), transparent 42%);
  opacity: 0; transition: opacity .32s;
}
.card:hover::before { opacity: 1; }
.card .ico { display: inline-block; transition: transform .42s cubic-bezier(.34,1.56,.64,1); }
.card:hover .ico { transform: scale(1.18) rotate(-6deg); }

/* ── Stat tiles ───────────────────────────────────────────────────────────── */
.stat { transition: transform .3s cubic-bezier(.22,.61,.36,1), border-color .3s, box-shadow .3s; }
.stat:hover { transform: translateY(-5px) scale(1.02); border-color: rgba(0,255,255,.45); box-shadow: 0 0 20px rgba(0,255,255,.14); }
.stat b { display: block; transition: text-shadow .3s, transform .3s; }
.stat:hover b { text-shadow: 0 0 20px rgba(0,255,255,.8); transform: scale(1.06); }

/* ── Tables ───────────────────────────────────────────────────────────────── */
tbody tr { transition: background .25s, transform .25s; }
tbody tr:hover { background: rgba(0,255,255,.06); transform: translateX(4px); }

/* ── Links, tags, notes, lists ────────────────────────────────────────────── */
a { transition: color .2s, border-color .2s; }
.tag { transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s, background .22s; }
.tag:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 0 14px currentColor; }
.note { transition: transform .28s, box-shadow .28s, background .28s; }
.note:hover { transform: translateX(4px); }
ul.clean li { transition: transform .24s, color .24s; }
ul.clean li:hover { transform: translateX(6px); color: #e6f0ff; }
ul.clean li::before { transition: transform .28s cubic-bezier(.34,1.56,.64,1), color .24s; }
ul.clean li:hover::before { transform: translateX(3px) scale(1.25); color: var(--magenta); }

/* ── Spoilers ─────────────────────────────────────────────────────────────── */
@keyframes detailsOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
details { transition: border-color .3s, background .3s; }
summary { transition: color .22s, letter-spacing .3s; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before {
  content: '\25B8'; display: inline-block; margin-right: 9px; color: var(--magenta);
  transition: transform .34s cubic-bezier(.34,1.56,.64,1);
}
details[open] > summary::before { transform: rotate(90deg); }
summary:hover { letter-spacing: .5px; }
details[open] > *:not(summary) { animation: detailsOpen .42s cubic-bezier(.22,.61,.36,1) both; }

/* ── Changelog timeline ───────────────────────────────────────────────────── */
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0,255,136,.55); }
  50%      { box-shadow: 0 0 20px rgba(0,255,136,.95); }
}
.rel { transition: border-color .3s; }
.rel:hover { border-left-color: var(--cyan); }
.rel.now::before { animation: dotPulse 2.4s ease-in-out infinite; }

/* ── Wiki contents ────────────────────────────────────────────────────────── */
@keyframes tocMark { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.toc a { position: relative; transition: background .22s, color .22s, transform .22s, padding-left .22s; }
.toc a:hover { transform: translateX(3px); padding-left: 13px; }
.toc a.active { padding-left: 13px; }
.toc a.active::before {
  content: ''; position: absolute; left: 3px; top: 9px; width: 3px; height: 18px;
  background: var(--cyan); border-radius: 2px;
  animation: tocMark .3s cubic-bezier(.34,1.56,.64,1) both;
}
.toc input { transition: border-color .25s, box-shadow .25s; }
.toc input:focus { box-shadow: 0 0 14px rgba(0,255,255,.2); }

/* ── 404: chromatic split, like a broken signal ───────────────────────────── */
@keyframes glitchShift {
  0%, 92%, 100% { transform: none; text-shadow: 0 0 34px rgba(255,0,255,.55); }
  93% { transform: translateX(-3px) skewX(-2deg); text-shadow: 3px 0 var(--cyan), -3px 0 var(--red), 0 0 34px rgba(255,0,255,.55); }
  95% { transform: translateX(3px)  skewX(2deg);  text-shadow: -3px 0 var(--cyan), 3px 0 var(--red), 0 0 34px rgba(255,0,255,.55); }
  97% { transform: translateX(-1px); text-shadow: 2px 0 var(--green), -2px 0 var(--magenta), 0 0 34px rgba(255,0,255,.55); }
}
.err .glitch { animation: glitchShift 4.2s steps(1, end) infinite; }

/* ── Reading progress + back-to-top (both built by site.js) ──────────────── */
#readProgress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: transform .12s linear; pointer-events: none;
}
#toTop {
  position: fixed; right: 18px; bottom: 18px; z-index: 55;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: var(--panel); border: 1px solid var(--cyan); color: var(--cyan);
  font-size: 18px; line-height: 1; display: grid; place-items: center;
  opacity: 0; transform: translateY(14px) scale(.86); pointer-events: none;
  transition: opacity .3s, transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
#toTop.show { opacity: 1; transform: none; pointer-events: auto; }
#toTop:hover { box-shadow: 0 0 20px rgba(0,255,255,.5); transform: translateY(-3px) scale(1.06); }

/* ── Language swap ─────────────────────────────────────────────────────────
   A brief dip in opacity when the language changes, so the text does not pop
   from one alphabet to another. */
@keyframes langFade { 0% { opacity: 1; } 40% { opacity: .35; } 100% { opacity: 1; } }
body.langswap { animation: langFade .34s ease; }

/* ── Admin panel ──────────────────────────────────────────────────────────── */
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-7px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(3px); }
}
#bdPages div > div > div, #bdLangs div > div > div,
#bdPlatforms div > div > div, #bdEditions div > div > div {
  transition: width .9s cubic-bezier(.22,.61,.36,1);
}
#loginErr { animation: shake .4s ease; }
#dashView, #loginView { animation: fadeUp .45s ease-out both; }

/* ── Keyboard focus ───────────────────────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
  transition: outline-offset .15s;
}

/* ── Launch transition ────────────────────────────────────────────────────────
   Clicking a "play" link plays a short boot sequence over the whole page before
   the browser navigates: the screen closes in, a GRID-connection log types out,
   and a scanline wipes across. It is built by site.js, so no page carries any
   markup for it. Total run time ~1.4s — long enough to feel deliberate, short
   enough that nobody taps twice. */
#launchFx {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 50%, #06122a 0%, #04040f 70%);
  opacity: 0; pointer-events: none;
}
#launchFx.on { opacity: 1; pointer-events: all; animation: fxIn .22s ease-out both; }
@keyframes fxIn { from { opacity: 0; } to { opacity: 1; } }

#launchFx .fxInner { text-align: center; transform: scale(.94); animation: fxPop .5s cubic-bezier(.34,1.56,.64,1) .05s both; }
@keyframes fxPop { to { transform: scale(1); } }

#launchFx .fxLogo {
  width: 108px; height: 108px; border-radius: 20%; display: block; margin: 0 auto 22px;
  filter: drop-shadow(0 0 30px rgba(0,255,255,.6));
  animation: fxSpin 1.4s cubic-bezier(.5,0,.2,1) both;
}
@keyframes fxSpin {
  0%   { transform: scale(.7) rotate(-14deg); opacity: 0; }
  45%  { transform: scale(1.06) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

#launchFx .fxTitle {
  font-family: var(--pixel); font-size: clamp(13px, 3vw, 20px); color: var(--cyan);
  letter-spacing: 3px; text-shadow: 0 0 22px rgba(0,255,255,.7); margin-bottom: 16px;
}
#launchFx .fxLog {
  font-family: var(--mono); font-size: 13px; color: var(--green);
  min-height: 22px; letter-spacing: 1px;
}
#launchFx .fxLog::after {
  content: '_'; animation: caret .55s steps(1) infinite; color: var(--green);
}
@keyframes caret { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* Loading rail that fills as the sequence runs. */
#launchFx .fxBar {
  width: min(320px, 68vw); height: 4px; margin: 22px auto 0;
  background: #0d1730; border-radius: 3px; overflow: hidden;
}
#launchFx .fxBar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  animation: fxFill 1.25s cubic-bezier(.4,0,.2,1) .1s forwards;
}
@keyframes fxFill { to { width: 100%; } }

/* Two shutters closing in from the edges, then a scanline wipe. */
#launchFx::before, #launchFx::after {
  content: ''; position: absolute; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, #04040f, #061024);
  border-color: var(--cyan); border-style: solid; border-width: 0;
  pointer-events: none;
}
#launchFx::before, #launchFx::after { z-index: 1; }   /* shutters stay under the text */
#launchFx::before { top: 0;    border-bottom-width: 1px; transform: translateY(-101%); animation: shutterTop 1.4s cubic-bezier(.6,0,.3,1) .28s forwards; }
#launchFx::after  { bottom: 0; border-top-width: 1px;    transform: translateY(101%);  animation: shutterBot 1.4s cubic-bezier(.6,0,.3,1) .28s forwards; }
@keyframes shutterTop { 0% { transform: translateY(-101%); } 70%, 100% { transform: translateY(0); } }
@keyframes shutterBot { 0% { transform: translateY(101%); }  70%, 100% { transform: translateY(0); } }

/* The text sits above the shutters until the very end. */
#launchFx .fxInner { position: relative; z-index: 3; }

@media (prefers-reduced-motion: reduce) {
  /* No sequence at all: a plain fade, then straight to the game. */
  #launchFx .fxLogo, #launchFx .fxInner, #launchFx .fxBar i,
  #launchFx::before, #launchFx::after { animation: none !important; }
  #launchFx::before, #launchFx::after { transform: none; }
}

/* ═══ Reduced motion ════════════════════════════════════════════════════════
   Everything above is decoration. When the visitor's system asks for less
   motion all of it stops — including the reveal, which is forced to its final
   state so no content is left invisible. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-rv] { opacity: 1 !important; transform: none !important; }
  h2::after { transform: scaleX(1) !important; }
}

/* ── Аккаунт и покупка ───────────────────────────────────────────────────── */
/* Формы на сайте появились вместе со страницами входа и покупки: раньше
   полей ввода тут не было вовсе, поэтому базовый вид задаётся здесь. */
.panel {
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 6px;
  padding: 28px 26px; max-width: 460px; margin: 0 auto;
}
.panel.wide { max-width: 720px; }

.field { margin-bottom: 16px; text-align: left; }
.field label {
  display: block; font-family: var(--pixel); font-size: 8px;
  letter-spacing: 1px; color: var(--dim); margin-bottom: 7px;
}
/* textarea и select идут наравне с input: иначе браузер рисует их белым
   листом посреди тёмной страницы. */
.field input,
.field textarea,
.field select {
  width: 100%; box-sizing: border-box; padding: 12px 13px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  color: var(--text); font-family: var(--mono); font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { line-height: 1.55; min-height: 96px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(0,255,255,.25);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--dim); }
select {
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  color: var(--text); font-family: var(--mono); font-size: 14px; padding: 10px 12px;
}

/* ── Разделы админки ─────────────────────────────────────────────────────
   Переключатель строит adminSections (assets/pixset-ui.js): панель управления
   слишком длинная, чтобы жить одной лентой. */
.sectnav {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 18px 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.sectnav button {
  cursor: pointer; padding: 9px 12px; border-radius: 3px;
  background: var(--panel); border: 1px solid var(--line); color: var(--dim);
  font-family: var(--pixel); font-size: 9px; letter-spacing: 1px;
}
.sectnav button:hover { color: var(--cyan); }
.sectnav button[aria-pressed="true"] { color: var(--cyan); border-color: var(--cyan); background: rgba(0,255,255,.08); }
.sect > :first-child { margin-top: 0 !important; }

/* ── Кнопка «мой аккаунт» ────────────────────────────────────────────────
   Вошедший игрок видит в шапке себя: аватар, ник и бейджи — ровно как на
   кнопке аккаунта в самой игре. Разметку строит assets/pixset-me.js. */
.me { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; }
.me-ava {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 3px;
  object-fit: cover; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(0,255,255,.08);
  font-family: var(--pixel); font-size: 8px; font-style: normal; color: var(--cyan);
  line-height: 1; overflow: hidden;
}
.me-nick { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .nbdgs { margin-left: 0; gap: 3px; }
.me .nbdg { width: 15px; height: 15px; flex-basis: 15px; }

/* ── Бейджи игроков ──────────────────────────────────────────────────────
   Разметку строит общий модуль assets/pixset-ui.js — тот же, что и на сайте
   студии; здесь только оформление в цветах игры.

     .nbdg — иконка у ника где угодно: название уезжает в подсказку;
     .bdg  — строка в профиле: иконка, название и объяснение. */
/* Отступ от ника даёт пробел в разметке (его ставит paintNickBadges), а не
   margin: пробел схлопывается при переносе строки, и не влезшие иконки встают
   ровно под ником, а не с уступом вправо. */
.nbdgs { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
/* Там, где ник — отдельная строка (профиль, кабинет), выравниваем средствами
   flex. Ячейки таблиц сюда не попадают: им хватает пробела. */
h1[data-nick], h2[data-nick], .nick[data-nick] {
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: 10px; row-gap: 4px;
}
.nbdg { display: inline-flex; align-items: center; justify-content: center;
        width: 20px; height: 20px; flex: 0 0 20px; }
.nbdg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nbdg i { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); display: block; }

.bdgs { display: grid; gap: 8px; }
.bdg {
  display: grid; grid-template-columns: 28px 1fr; align-items: center;
  gap: 4px 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 4px;
  background: rgba(0,255,255,.04);
}
.bdg img { width: 28px; height: 28px; object-fit: contain; display: block; grid-row: span 2; }
.bdg i { width: 12px; height: 12px; border-radius: 50%; display: block; grid-row: span 2; margin: 0 8px; }
.bdg b { font-family: var(--pixel); font-size: 10px; letter-spacing: 1px; color: var(--text); }
.bdg .bdg-hint { grid-column: 2; font-family: var(--mono); font-size: 12px; color: var(--dim); line-height: 1.5; }

/* <button> должен выглядеть ровно как ссылка-кнопка .btn рядом с ним. */
button.btn { cursor: pointer; font-family: var(--pixel); }
button.btn:disabled { opacity: .5; cursor: wait; transform: none; box-shadow: none; }
button.btn.small { padding: 11px 18px; font-size: 9px; min-width: 0; }

/* Во всю ширину — только внутри формы или панели, где кнопка одна и завершает
   ввод. В ряду .btns кнопка обязана быть такой же ширины, как соседние ссылки. */
form button.btn,
.panel > button.btn { width: 100%; min-width: 0; }

.tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.tabs button {
  flex: 1; padding: 11px 8px; cursor: pointer; border-radius: 4px;
  font-family: var(--pixel); font-size: 9px; letter-spacing: 1px;
  background: var(--bg); border: 1px solid var(--line); color: var(--dim);
  transition: color .15s, border-color .15s, background .15s;
}
.tabs button:hover { color: var(--cyan); border-color: rgba(0,255,255,.4); }
.tabs button.on { color: var(--cyan); border-color: var(--cyan); background: rgba(0,255,255,.07); }

.msg {
  display: none; padding: 11px 14px; margin-bottom: 18px; font-size: 14px;
  border-left: 3px solid; border-radius: 0 4px 4px 0; text-align: left;
}
.msg.show { display: block; }
.msg.err { border-color: var(--red);   background: rgba(255,85,85,.08);  color: #ffb3b3; }
.msg.ok  { border-color: var(--green); background: rgba(0,255,136,.08);  color: #9effc9; }

/* ── Промокод ─────────────────────────────────────────────────────────────
   Свёрнут в одну строчку-ссылку: тому, у кого кода нет, поле ввода на
   странице покупки только мешает и заставляет гадать, не переплачивает ли он. */
.promo { max-width: 420px; margin: 0 auto 20px; text-align: center; }
.promo-toggle {
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  font-family: var(--mono); font-size: 13px; color: var(--dim);
  border-bottom: 1px dashed var(--line);
  transition: color .15s, border-color .15s;
}
.promo-toggle:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.promo-form { display: flex; gap: 8px; margin-top: 12px; }
.promo-form input {
  flex: 1 1 auto; min-width: 0; box-sizing: border-box; padding: 11px 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  color: var(--text); font-family: var(--mono); font-size: 15px;
  letter-spacing: 2px; text-transform: uppercase;
}
.promo-form input::placeholder { color: var(--dim); letter-spacing: 1px; }
.promo-form input:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(0,255,255,.25);
}
/* min-width у .btn рассчитан на крупные кнопки героя — рядом с полем ввода
   такая кнопка съедала бы всю строку. */
.promo-form .btn {
  flex: 0 0 auto; min-width: 0; padding: 12px 16px;
  font-size: 10px; white-space: nowrap;
}
.promo-res {
  margin-top: 10px; font-family: var(--mono); font-size: 13px; line-height: 1.55;
}
.promo-res.ok  { color: #9effc9; }
.promo-res.err { color: #ffb3b3; }
/* Зачёркнутая старая цена рядом с новой — в .price-big над блоком. */
.price-was {
  color: var(--dim); text-decoration: line-through;
  font-size: .55em; margin-right: .6em; vertical-align: .18em;
}

/* Строка активации кода в кабинете: поле и кнопка в линию, на узком экране
   кнопка уходит под поле, а не ужимается до нечитаемой. */
.promo-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.promo-row input {
  flex: 1 1 200px; min-width: 0; box-sizing: border-box; padding: 11px 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  color: var(--text); font-family: var(--mono); font-size: 15px;
  letter-spacing: 2px; text-transform: uppercase;
}
.promo-row input::placeholder { color: var(--dim); letter-spacing: 1px; }
.promo-row input:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(0,255,255,.25);
}
.promo-row select { flex: 0 1 auto; }
.promo-row .btn { flex: 0 0 auto; min-width: 0; padding: 12px 18px; white-space: nowrap; }

.who { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.who .ava {
  width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center;
  border: 2px solid var(--cyan); border-radius: 6px; background: rgba(0,255,255,.07);
  font-family: var(--pixel); font-size: 20px; color: var(--cyan);
  padding: 0; overflow: hidden; cursor: pointer;
}
.who .ava:hover { box-shadow: 0 0 14px rgba(0,255,255,.35); }
/* Загруженное фото заполняет квадрат целиком; буква остаётся запасным видом. */
.who .ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avaActions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.avaActions button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--mono); font-size: 12px; color: var(--cyan);
  border-bottom: 1px dashed currentColor; line-height: 1.4;
}
.avaActions button:hover { color: #fff; }
.avaActions button[disabled] { opacity: .5; cursor: default; }
.who .nick { font-family: var(--pixel); font-size: 13px; color: #eaf2ff; margin-bottom: 6px; }
.who .mail { font-size: 13px; color: var(--dim); word-break: break-all; }

.lib { display: grid; gap: 12px; margin-bottom: 8px; }
.lib .item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--bg); flex-wrap: wrap;
}
.lib .item b { font-family: var(--pixel); font-size: 11px; color: #eaf2ff; }

.price-big {
  font-family: var(--pixel); font-size: clamp(18px, 4vw, 28px);
  color: var(--green); text-shadow: 0 0 16px rgba(0,255,136,.45); margin-bottom: 6px;
}
