/* The product site, in the look the owner chose (B4 «Игровой интерфейс»,
   07.11.2026): a field PDA in the Zone — fog-grey dark, radiation
   yellow-green readouts, the brand's amber for actions, condensed capitals,
   mono digits, chamfered panels; the auction drawn our way on the home
   page, item pictures by EXBO (assets/items/, Apache-2.0).

   The Caddyfile's CSP: this file and the site's own pictures only — no
   inline styles, no data: images, no web fonts (Bahnschrift and Cascadia
   Mono / Consolas are on every Windows 10/11; elsewhere the fallbacks).
   Motion: transform and opacity only, paused off-screen, in a hidden tab
   and by its button; prefers-reduced-motion and the «Эффекты» button turn
   the effects off. */

:root {
  --bg: #0d1011;
  --panel: #151a1b;
  --panel-2: #1a2021;
  --panel-3: #212829;
  --line: #2c3536;
  --line-hi: #485556;
  --text: #e5ece8;
  --soft: #cad6d1;
  --muted: #a3b1ac;
  --green: #c8d84a;
  --green-dim: color-mix(in srgb, var(--green) 16%, transparent);
  --amber: #e8b23c;
  --amber-hi: #f2c460;
  --amber-lo: #c99520;
  --on-amber: #121410;
  --red: #d65a3c;
  /* Insets (inputs, wells), dialogs, the notice, card faces, the grid. */
  --well: #090c0d;
  --modal: #172022;
  --toast: #1a2325;
  --face-hi: #192021;
  --face-lo: #111617;
  --grid: rgba(200, 216, 74, 0.03);
  /* The Zone layer: rust stains, warning stripes, fog, the lamp. */
  --rust: #7d3b22;
  --hazard: #e8b23c;
  /* Fog: a cold grey-green over the dark. Peaks low enough that, all
     three layers stacked, muted text keeps WCAG AA (≥ 4.5). */
  --fog-a: rgba(196, 214, 208, 0.12);
  --fog-b: rgba(196, 214, 208, 0.08);
  --fog-band: rgba(196, 214, 208, 0.07);
  --fog-ground: rgba(196, 214, 208, 0.2);
  --fog-low: rgba(196, 214, 208, 0.08);
  --lamp: rgba(220, 235, 200, 0.05);
  --lamp-strong: rgba(230, 240, 190, 0.1);
  /* Item ranks: the colours the game paints item names with (sampled from
     tests/fixtures/auction_page1_2560x1440.png); Legend's gold is ours.
     Every place that uses a colour also writes the rank. */
  --r-newbie: #78ea78;
  --r-stalker: #8a8afc;
  --r-veteran: #d866c0;
  --r-master: #fc5466;
  --r-legend: #ecbd45;
  --r-art: #62cfc9;
  --rank: var(--line-hi);
  --cut: 14px;
  --wrap: 1200px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --head: "Bahnschrift", "Roboto Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* -- the Zone: atmosphere (B3, the owner: "the game says what it is — dress
   it the same way, with touches of survival horror") ---------------------
   Accents, not horror: dusk, a vignette, dust and fog in the air, worn
   metal and rust, warning stripes, a lamp that now and then flickers, a
   glitch on headings under the pointer. All of it sits behind the text or on decoration — the text stays
   readable, the buttons stay buttons. The "Эффекты" button (and
   prefers-reduced-motion) switches off fog, flicker and glitch. B4: no
   torch (the owner: it didn't work), no dosimeter (a number that meant
   nothing). */

/* Vignette, film grain and scratches behind everything (one 2 KB tile). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 30%, transparent 45%, rgba(0, 0, 0, 0.6) 100%),
    url("zone/wear.webp");
}

/* Fog in three layers, all under the text and the panels (live
   2026-11-07, the owner: one faint layer at 6 % was all but invisible;
   then «the density is right, but the motion can't be seen» — 60–120 s
   there and back with ease-in-out stood all but still, a page opens at the
   turn). Now each layer drifts one way at an even pace: the clouds lie in
   a tile that repeats sideways, and a cycle moves the layer by exactly one
   tile — no turn, no jump. Far banks slowest, the ground fastest, the wisps
   the other way: depth. The wisps and the ground also breathe (opacity).
   Two layers cover the window (fixed): wisps drift through the gaps
   between the sections as the page scrolls; the third lies on the ground
   at the bottom of the first screen (.facts::before). Transform and
   opacity only; paused in a hidden tab (fx-idle) and, for the ground,
   off-screen (is-away); gone with «Эффекты» off and under
   prefers-reduced-motion. Clouds stay inside their tile (centre ± 0.72 ×
   radius), so the seam never cuts one. */
body::after,
main::before {
  content: "";
  position: fixed;
  top: -15vh;
  left: 0;
  width: calc(100vw + var(--tile));
  height: 130vh;
  z-index: -1;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: var(--tile) 100%;
  will-change: transform, opacity;
}

/* Far banks: leftwards, 40 s a tile. */
body::after {
  --tile: 120vw;
  background-image:
    radial-gradient(ellipse 26% 10% at 22% 30%, var(--fog-a), transparent 72%),
    radial-gradient(ellipse 22% 8% at 64% 55%, var(--fog-a), transparent 72%),
    radial-gradient(ellipse 28% 9% at 50% 80%, var(--fog-a), transparent 72%),
    radial-gradient(ellipse 18% 7% at 84% 20%, var(--fog-a), transparent 72%),
    radial-gradient(ellipse 16% 7% at 14% 62%, var(--fog-b), transparent 72%);
  animation: fog-left 40s linear infinite;
}

/* Wisps: rightwards, 26 s a tile, breathing every 8 s; and a low band
   along the bottom edge of the window — fog at the feet on any screen
   (the layer spans -15..115 % of the window's height: its 88.5 % is the
   window's bottom). */
main::before {
  --tile: 110vw;
  background-image:
    linear-gradient(to bottom, transparent 70%, var(--fog-band) 88.5%, transparent 100%),
    radial-gradient(ellipse 24% 6% at 28% 66%, var(--fog-b), transparent 70%),
    radial-gradient(ellipse 26% 7% at 72% 38%, var(--fog-b), transparent 70%),
    radial-gradient(ellipse 20% 5% at 50% 14%, var(--fog-b), transparent 70%),
    radial-gradient(ellipse 16% 6% at 16% 46%, var(--fog-b), transparent 70%);
  animation: fog-right 26s linear infinite, fog-breathe 8s ease-in-out infinite alternate;
}

@keyframes fog-left {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-1 * var(--tile)), 0, 0);
  }
}

@keyframes fog-right {
  from {
    transform: translate3d(calc(-1 * var(--tile)), 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fog-breathe {
  from {
    opacity: 0.55;
  }

  to {
    opacity: 1;
  }
}

@keyframes fog-breathe-low {
  from {
    opacity: 0.75;
  }

  to {
    opacity: 1;
  }
}

/* Ground fog: thickest along the bottom of the first screen, leftwards,
   24 s a tile, breathing every 11 s. It hangs from the facts strip, not
   from the hero (which clips what it holds): 300px up over the first
   screen and fading out below its bottom line, without an edge. Under the
   hero's content and the facts' panels — the root's negative layer; main
   clips its width. */
.facts {
  position: relative;
}

.facts::before {
  --tile: 110vw;
  content: "";
  position: absolute;
  left: 0;
  width: calc(100vw + var(--tile));
  top: -300px;
  height: 460px;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 22% 40% at 20% 65%, var(--fog-ground), transparent 70%),
    radial-gradient(ellipse 28% 36% at 54% 65%, var(--fog-ground), transparent 70%),
    radial-gradient(ellipse 18% 38% at 84% 65%, var(--fog-ground), transparent 70%),
    linear-gradient(to bottom, transparent 5%, var(--fog-low) 65%, transparent 100%);
  background-repeat: repeat-x;
  background-size: var(--tile) 100%;
  animation: fog-left 24s linear infinite, fog-breathe-low 11s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

/* A phone: wider tiles, so the clouds stay as broad as on a monitor and
   cross the narrow screen no faster. */
@media (max-width: 640px) {
  body::after {
    --tile: 200vw;
  }

  main::before,
  .facts::before {
    --tile: 180vw;
  }
}

:root.fx-idle body::after,
:root.fx-idle main::before,
:root.fx-idle .facts::before,
.hero.is-away + .facts::before {
  animation-play-state: paused;
}

/* A lamp over the hero that now and then flickers (a few dips, ≤ 3 a
   second, then steady for seconds). */
.hero {
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 20% 30%;
  z-index: -1;
  background: radial-gradient(ellipse 50% 60% at 60% 0%, var(--lamp-strong), transparent 70%);
  pointer-events: none;
  animation: lamp 9s linear infinite;
}

@keyframes lamp {
  0%,
  86%,
  100% {
    opacity: 1;
  }

  87% {
    opacity: 0.35;
  }

  88% {
    opacity: 0.9;
  }

  90% {
    opacity: 0.45;
  }

  91%,
  99% {
    opacity: 1;
  }
}

/* Worn metal and a rust stain on panels and frames. */
.panel::before,
.frame::before,
.release::before,
.plan::before {
  background-image:
    radial-gradient(circle at 94% 6%, color-mix(in srgb, var(--rust) 26%, transparent), transparent 32%),
    url("zone/wear.webp");
}

/* Warning stripes over the facts strip and the last call. */
.facts .wrap::before,
.cta .wrap::before {
  content: "";
  display: block;
  height: 6px;
  margin-bottom: 14px;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 10px, transparent 10px 20px);
  opacity: 0.6;
}

/* A glitch on section headings under the pointer: two offset copies
   (transform and opacity), once per hover. */
@media (hover: hover) {
  .section h2[data-echo] {
    position: relative;
  }

  .section h2[data-echo]::after {
    content: attr(data-echo) / "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: var(--red);
    opacity: 0;
    clip-path: inset(32% 0 40% 0);
    pointer-events: none;
  }

  .section h2[data-echo]:hover::after {
    animation: glitch 0.5s steps(3) 1;
  }
}

@keyframes glitch {
  0% {
    opacity: 0.9;
    transform: translateX(-4px);
  }

  33% {
    opacity: 0.8;
    transform: translateX(3px);
  }

  66% {
    opacity: 0.6;
    transform: translateX(-2px);
  }

  100% {
    opacity: 0;
    transform: none;
  }
}

/* The effects switch (header) and what it switches off. */
.fx-btn {
  width: 34px;
  height: 34px;
}

.fx-btn[aria-pressed="false"] {
  color: var(--muted);
}

:root.fx-off .hero::before {
  animation: none;
}

/* Effects off: no fog at all, not a still one. */
:root.fx-off body::after,
:root.fx-off main::before,
:root.fx-off .facts::before {
  display: none;
}

:root.fx-off .section h2[data-echo]::after {
  display: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-wrap: break-word;
  background-color: var(--bg);
  /* The PDA's graph paper: 1px lines every 32px. */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  /* A short page (404) keeps its footer at the bottom of the window. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--amber);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--amber-hi);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--head);
  font-stretch: condensed;
  font-variation-settings: "wdth" 75;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.5rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
}

h3 {
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

p,
ul,
ol,
dl {
  margin: 0 0 1em;
}

button {
  font: inherit;
  color: inherit;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 20;
  background: var(--amber);
  color: var(--on-amber);
  padding: 6px 12px;
}

.nav,
.lang-switch,
.footer-links,
.spec-row,
.fact-list,
.cats,
.go-steps,
.player-steps,
.lots,
.st-rows,
.st-check,
.legend,
.rank-key,
.thumbs,
.always {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* -- chamfered panels ----------------------------------------------------
   The outer box is the 1px frame (its background), ::before is the face,
   both cut by the same polygon: the diagonal corners keep their frame. */

.panel,
.btn-line,
.frame,
.release,
.plan {
  --shape: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  position: relative;
  isolation: isolate;
  clip-path: var(--shape);
  background: var(--line);
}

.panel::before,
.btn-line::before,
.frame::before,
.release::before,
.plan::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  clip-path: var(--shape);
  background: var(--panel);
}

/* -- HUD bits ------------------------------------------------------------ */

.hud-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font: 600 0.82rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1.2em;
}

.led {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim), 0 0 10px var(--green);
}

/* Section titles get a running index: 01 //, 02 // … (read as nothing). */
main {
  display: block;
  flex: 1 0 auto;
  counter-reset: sec;
  /* Pictures and glows reach past their cards on purpose: never past the
     page (clip, not hidden — sticky blocks keep working). */
  overflow-x: clip;
}

.section h2[data-echo] {
  counter-increment: sec;
}

.section h2[data-echo]::before {
  content: counter(sec, decimal-leading-zero) " //" / "";
  display: block;
  color: var(--green);
  font: 600 0.85rem/1 var(--mono);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

/* -- header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  transition: box-shadow 0.25s, background-color 0.25s;
}

/* B4: the header stays on screen. Once the page has scrolled it turns
   "compact": opaque, a shadow, the logo a touch smaller — by transform, so
   the header keeps its height and nothing below it moves. */
.top-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 48px;
  pointer-events: none;
}

.site-header.is-stuck {
  background: var(--bg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.brand img {
  transition: transform 0.25s var(--ease);
}

.site-header.is-stuck .brand img {
  transform: scale(0.86);
}

/* Anchors land below the header, not under it. */
section[id],
h2[id] {
  scroll-margin-top: 84px;
}

/* Specific enough to beat .icon-btn: on desktop the menu button is gone. */
.site-header .menu-btn {
  display: none;
}

.menu-btn .ico-close,
.site-header.is-open .menu-btn .ico-menu {
  display: none;
}

.site-header.is-open .menu-btn .ico-close {
  display: block;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--head);
  font-stretch: condensed;
  font-variation-settings: "wdth" 75;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.site-header nav {
  flex: 1 1 auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
}

.nav a {
  position: relative;
  display: block;
  padding: 6px 12px;
  color: var(--muted);
  font-family: var(--head);
  font-stretch: condensed;
  font-variation-settings: "wdth" 75;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

/* The brackets of the hovered and the current section sit in the link's
   padding: drawn or not, they take no room in the row (site check
   2026-11-07: as text they cost the Russian row ~90px). */
.nav a::before,
.nav a::after {
  position: absolute;
  top: 6px;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.15s;
}

.nav a::before {
  content: "[" / "";
  left: 1px;
}

.nav a::after {
  content: "]" / "";
  right: 1px;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::before,
.nav a:hover::after {
  opacity: 1;
}

.nav a[aria-current="page"] {
  color: var(--amber);
}

.nav a[aria-current="page"]::before,
.nav a[aria-current="page"]::after {
  opacity: 1;
}

.lang-switch {
  display: flex;
  font: 600 0.82rem/1 var(--mono);
}

.lang-switch li + li::before {
  content: "/";
  color: var(--line-hi);
  padding: 0 2px;
}

.lang-switch a {
  display: inline-block;
  padding: 6px 4px;
  color: var(--muted);
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  color: var(--green);
}

/* -- buttons: chamfered, never skewed ------------------------------------
   States: hover — lighter face and a soft glow (a pseudo-element's opacity,
   so nothing repaints the layout); active — pressed 1px down; focus — the
   cut is dropped and a green ring drawn; disabled — dimmed, no hover. */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.8em;
}

.btn {
  --shape: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border: 0;
  /* clip-path hides the hover sweep but doesn't stop it from widening the
     page; overflow does (the focus outline is drawn outside, unaffected). */
  overflow: hidden;
  clip-path: var(--shape);
  font-family: var(--head);
  font-stretch: condensed;
  font-variation-settings: "wdth" 75;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.08s;
}

.btn svg {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: square;
}

/* clip-path would cut the focus ring off: drop the cut while focused. */
.btn:focus-visible {
  clip-path: none;
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--amber);
  color: var(--on-amber);
}

.btn-primary:hover {
  background: var(--amber-hi);
  color: var(--on-amber);
}

.btn-primary:active {
  background: var(--amber-lo);
}

/* A light sweep across the primary button on hover: one pass, transform. */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.btn-primary:hover::after {
  transform: translateX(120%);
  transition: transform 0.6s var(--ease);
}

.btn-line {
  background: var(--amber);
  color: var(--amber);
}

.btn-line::before {
  background: var(--bg);
  transition: background-color 0.15s;
}

.btn-line:hover {
  color: var(--amber-hi);
}

.btn-line:hover::before {
  background: color-mix(in srgb, var(--amber) 8%, var(--bg));
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.btn-primary:disabled:hover {
  background: var(--amber);
}

.btn-primary:disabled::after {
  display: none;
}

.btn-line:disabled:hover::before {
  background: var(--bg);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.3rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 1rem;
}

/* Square icon button: pause / play / step. */
.icon-btn {
  --shape: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  clip-path: var(--shape);
  background: var(--line-hi);
  color: var(--green);
  cursor: pointer;
  transition: color 0.15s, transform 0.08s;
}

.icon-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  clip-path: var(--shape);
  background: var(--panel-2);
  transition: background-color 0.15s;
}

.icon-btn:hover {
  color: var(--text);
}

.icon-btn:hover::before {
  background: var(--panel-3);
}

.icon-btn:active {
  transform: translateY(1px);
}

.icon-btn:focus-visible {
  clip-path: none;
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.icon-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-btn-sm {
  width: 32px;
  height: 32px;
}

.icon-btn-sm svg {
  width: 14px;
  height: 14px;
}

/* A pause button shows "pause" while running and "play" once pressed. */
.ico-play,
[aria-pressed="true"] .ico-pause {
  display: none;
}

[aria-pressed="true"] .ico-play {
  display: block;
}

/* -- hero ---------------------------------------------------------------- */

.hero {
  padding: 56px 0 48px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: center;
}

.hero h1 .hl {
  display: block;
  color: var(--amber);
}

.lead {
  color: var(--soft);
  font-size: 1.1rem;
  max-width: 34em;
}

.pitch {
  color: var(--text);
  font-weight: 600;
}

/* --soft, not --muted: the ground fog rises behind this line, and the
   contrast holds even where all three layers meet. */
.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-top: 26px;
  color: var(--soft);
  font: 0.85rem/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Under the buttons on a phone: the program is for a Windows PC (a third
   of searches come from phones, the download is for the computer). */
.dl-note {
  display: none;
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .dl-note {
    display: block;
  }
}

/* The dot trails an item, so a wrapped line never starts with one. */
.spec-row li:not(:last-child)::after {
  content: "·" / "";
  color: var(--green);
  padding: 0 10px;
}

.hero-live {
  position: relative;
  margin: 0;
  padding: 22px;
}

/* Corner brackets around the hero frame. */
.hero-live::before,
.hero-live::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--green);
}

.hero-live::before {
  top: 6px;
  left: 6px;
  border-right: 0;
  border-bottom: 0;
}

.hero-live::after {
  right: 6px;
  bottom: 6px;
  border-left: 0;
  border-top: 0;
}

.frame {
  --cut: 18px;
  background: var(--line-hi);
  margin: 0;
}

.frame::before {
  background: var(--panel);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 7px 10px 7px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font: 600 0.78rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.frame-bar::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--green);
}

.frame-bar .grow {
  flex: 1;
}

.sim-tag {
  color: var(--muted);
  font-weight: 400;
}

.frame img {
  width: 100%;
  padding: 1px;
}

/* -- the auction, as the game draws it -----------------------------------
   B3: the owner asked for the real auction. Our own HTML/CSS after the
   layout and colours of the game's PDA (tests/fixtures: auction_page1,
   auction_window_1920x1009_panel, ransom_and_bid_buttons, rarity_list,
   sort_arrow): a grey bezel with a yellow band, the tab bar, Rarity + search
   + Search, Item / Time · Bid amount · Buyout price ▼, rows with the name in
   its rank colour and the time left in gold, "Place bid" / "Buyout lot"
   under the selected row, "Confirm the purchase" + Ok, the balance at the
   bottom. No game art, logo or font. Its colours stay the game's in every
   palette; the bot's own layer (scan line, verdicts, log, count, notice)
   takes the site's.

   Truth: the bot compares a lot's whole buyout price with the limit and
   never reads the quantity — so every lot here is one piece, no number on
   the icon. A lot with no buyout price ("---") is skipped. */

.pda {
  --pda-screen: #121212;
  --pda-line: #303030;
  --pda-text: #f4f4f4;
  --pda-head: #a8a8a8;
  --pda-time: #c6a82a;
  --pda-tabs: #424866;
  --pda-box: #242424;
  --pda-btn: #1a1a1a;
  --pda-sel: #2a2a2e;
  position: relative;
  padding: 7px;
  border-radius: 18px;
  background: linear-gradient(160deg, #5a5a5a, #3c3c3c 45%, #4a4a4a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 40px rgba(0, 0, 0, 0.55);
  font: 0.84rem/1.25 "Segoe UI", system-ui, sans-serif;
}

/* The yellow rubber band of the PDA. */
.pda-band {
  padding: 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffd27a, #f5b843 40%, #e9a92f);
}

.pda-screen {
  position: relative;
  overflow: hidden;
  border: 1px solid #000;
  border-radius: 5px;
  background: var(--pda-screen);
  color: var(--pda-text);
}

.pda-tabs {
  margin: 0;
  padding: 4px 12px 3px;
  background: linear-gradient(180deg, #4a5172, var(--pda-tabs));
  color: #d6d8ea;
  font-size: 0.86rem;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
}

.pda-tabs .on {
  color: #7be070;
}

.pda-filter {
  display: grid;
  grid-template-columns: auto minmax(0, 0.9fr) minmax(0, 1.3fr) auto;
  gap: 6px;
  align-items: center;
  padding: 8px 10px 7px;
  border-bottom: 1px solid var(--pda-line);
  color: var(--pda-head);
}

.pda-select,
.pda-input {
  position: relative;
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 6px;
  overflow: hidden;
  border: 1px solid #5a5a60;
  background: var(--pda-box);
  color: #e6e6e6;
  white-space: nowrap;
}

.pda-select i {
  margin-left: auto;
  padding: 0 3px;
  background: #6c6c7c;
  color: #e6e6e6;
  font-style: normal;
  font-size: 0.7rem;
}

.pda-input {
  background: #161616;
}

/* Typing: a cover the field's colour slides off the name (transform). */
.pda-input .type-cover {
  position: absolute;
  inset: 0;
  background: #161616;
  transform: translateX(100%);
}

.pda-input.is-typing .type-cover {
  transform: translateX(0);
  transition: none;
}

.pda-input.is-typed .type-cover {
  transform: translateX(100%);
  transition: transform 0.9s steps(16, end);
}

/* The game's flat buttons: a thin frame, a nick at the bottom-right. */
.pda-btn {
  position: relative;
  padding: 2px 14px 3px;
  border: 1px solid #8a8a90;
  background: var(--pda-btn);
  color: #d0d0d0;
  clip-path: polygon(0 0, 100% 0, 100% 62%, calc(100% - 9px) 100%, 0 100%);
}

.pda-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 120px;
  gap: 8px;
  padding: 6px 12px 5px 52px;
  border-bottom: 1px solid var(--pda-line);
  color: var(--pda-head);
}

.pda-head span:not(:first-child) {
  text-align: center;
}

.pda-sort i {
  display: inline-block;
  font-style: normal;
  font-size: 0.72rem;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.25s;
}

.pda-sort.is-sorted {
  color: #e8e8e8;
}

.pda-sort.is-sorted i {
  opacity: 1;
}

/* Rows: 48px slots moved by transform; the action strip opens under the
   selected one and pushes the rest down, as in the game. */
.lots {
  position: relative;
  height: calc(5 * 48px + 40px);
  margin: 0;
  overflow: hidden;
}

.lot {
  position: absolute;
  inset: 0 0 auto;
  height: 48px;
  transition: transform 0.45s var(--ease);
}

/* The still frame (no JS, reduced motion): the first lot has no buyout
   price and is skipped, the second is picked with the strip open under it. */
.lot:nth-child(2) {
  transform: translateY(48px);
}

.lot:nth-child(3) {
  transform: translateY(136px);
}

.lot:nth-child(4) {
  transform: translateY(184px);
}

.lot:nth-child(5) {
  transform: translateY(232px);
}

.lot:nth-child(6) {
  transform: translateY(280px);
}

.lot-in {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 86px 120px;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  height: 48px;
  padding: 3px 12px 3px 8px;
  border-bottom: 1px solid var(--pda-line);
  transition: opacity 0.35s, transform 0.45s var(--ease), background-color 0.2s;
}

/* The item icon as an inventory cell: a dark well, the rank line below. */
.lot-in img {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  padding: 1px;
  border: 1px solid #3a3a3a;
  border-bottom: 2px solid var(--rank);
  background: radial-gradient(circle at 50% 45%, #34342f, #1a1a18);
}

.lot-name {
  overflow: hidden;
  color: var(--rank);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lot-time {
  grid-column: 2;
  overflow: hidden;
  color: var(--pda-time);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lot-bid,
.lot-price {
  grid-row: 1 / span 2;
  text-align: center;
  white-space: nowrap;
}

.lot-bid {
  grid-column: 3;
}

.lot-price {
  grid-column: 4;
}

/* The row the bot picked: the game's selection plus the bot's frame. */
.lot.is-sel .lot-in {
  background: var(--pda-sel);
}

.lot-in::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid var(--amber);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.is-match .lot-in::after {
  opacity: 1;
}

.is-match .lot-price {
  color: var(--amber-hi);
}

/* The bot's verdict sits over the bid column (the bot ignores bids). */
.lot-verdict {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: center;
  padding: 2px 7px;
  border: 1px solid currentColor;
  background: var(--pda-screen);
  font: 600 0.68rem/1.3 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s, transform 0.2s var(--ease);
}

.lot-verdict:empty {
  display: none;
}

.is-match .lot-verdict,
.is-over .lot-verdict,
.is-skip .lot-verdict,
.is-gone .lot-verdict {
  opacity: 1;
  transform: none;
}

.is-match .lot-verdict {
  color: var(--amber);
}

.is-over .lot-verdict {
  color: var(--red);
}

/* No buyout price: the tag stands where the price would be. */
.is-skip .lot-verdict {
  grid-column: 4;
  color: #b8b8b8;
}

.is-skip .lot-price {
  visibility: hidden;
}

.is-over .lot-price {
  color: var(--red);
}

.is-gone .lot-in {
  opacity: 0;
  transform: translateX(30%);
}

.is-fresh .lot-in {
  opacity: 0;
  transform: translateX(-6%);
}

/* "Place bid" / "Buyout lot" under the selected row. */
.lot-act {
  position: absolute;
  inset: 0 0 auto;
  height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 0 12px 0 52px;
  border-bottom: 1px solid var(--pda-line);
  background: #161616;
  opacity: 0;
  transform: translateY(96px);
  transition: opacity 0.2s, transform 0.45s var(--ease);
}

.lot-act.is-open {
  opacity: 1;
}

.act-input {
  height: 24px;
  padding: 0 6px;
  border: 1px solid #5a5a60;
  background: #161616;
  color: #9a9a9a;
  line-height: 22px;
}

.act-buy {
  transition: background-color 0.12s, color 0.12s;
}

.act-buy.is-press {
  background: #d8d8d8;
  color: #111;
}

/* The bot's scan line: one slot tall, moved down the rows. */
.lot-scan {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 48px;
  border-top: 1px solid color-mix(in srgb, var(--green) 75%, transparent);
  background: linear-gradient(color-mix(in srgb, var(--green) 18%, transparent), transparent 75%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.2s;
  pointer-events: none;
}

.is-live .lot-scan.is-on {
  opacity: 1;
}

.pda-pages {
  margin: 0;
  padding: 5px 12px;
  color: #d8d8d8;
  text-align: center;
  word-spacing: 6px;
}

.pda-pages b {
  padding: 0 4px;
  background: #d8d8d8;
  color: #121212;
}

.pda-pages i {
  color: #9a9a9a;
  font-style: normal;
}

.pda-status {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 5px 12px 6px;
  border-top: 1px solid var(--pda-line);
  color: #c8c8c8;
  font-size: 0.92rem;
}

.pda-bal {
  transition: color 0.3s;
}

.pda-bal.is-flash {
  color: var(--amber-hi);
}

/* The confirmation, over everything in the PDA: an opaque window on a
   dimmed screen — never seen through the rows. */
.pda-modal {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0s 0.15s;
}

.pda-modal.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s;
}

.pda-dialog {
  min-width: 230px;
  padding: 16px 20px 14px;
  border: 1px solid #6a6a70;
  background: #1e1e1e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  text-align: center;
  transform: scale(0.96);
  transition: transform 0.2s var(--ease);
}

.pda-modal.is-on .pda-dialog {
  transform: none;
}

.pda-dialog p {
  margin: 0 0 12px;
  color: #ececec;
}

.pda-ok {
  display: inline-block;
  min-width: 90px;
  padding: 4px 16px;
  border: 1px solid #8a8a90;
  background: #2a2a2a;
  color: #e6e6e6;
  transition: background-color 0.12s, color 0.12s;
}

.pda-ok.is-press {
  background: #d8d8d8;
  color: #111;
}

/* The bot's own line under the PDA: what it's doing, how many bought. */
.feed {
  position: relative;
  padding: 12px 14px 10px;
}

.feed-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding-top: 10px;
}

.feed-log {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--green);
  font: 0.78rem/1.4 var(--mono);
}

.feed-log::before {
  content: "> " / "";
  color: var(--muted);
}

.feed-count {
  flex: none;
  margin: 0;
  color: var(--muted);
  font: 0.74rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.feed-count b {
  display: block;
  color: var(--amber);
  font-size: 1.6rem;
  line-height: 1.1;
  transition: transform 0.2s var(--ease);
}

.feed-count b.is-bump {
  transform: scale(1.25);
}

.limit-chip {
  padding: 1px 8px;
  border: 1px solid var(--amber);
  color: var(--amber);
  white-space: nowrap;
}

.limit-chip b {
  font-weight: 600;
}

/* The Windows notice the program shows after a purchase. */
/* Top-right of the frame: over the search bar, which the bot is done with
   by then — the balance and the rows stay in view. */
.toast {
  position: absolute;
  right: 16px;
  top: 56px;
  z-index: 6;
  max-width: min(320px, calc(100% - 32px));
  padding: 10px 14px 10px 12px;
  border-left: 3px solid var(--green);
  background: var(--toast);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  font-size: 0.85rem;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.3s var(--ease);
  pointer-events: none;
}

.toast.is-on {
  opacity: 1;
  transform: none;
}

.toast small {
  display: block;
  color: var(--muted);
  font: 0.68rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toast b {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.toast span {
  color: var(--soft);
  font-family: var(--mono);
}

.feed-data {
  display: none;
}

.rank-newbie {
  --rank: var(--r-newbie);
}

.rank-stalker {
  --rank: var(--r-stalker);
}

.rank-veteran {
  --rank: var(--r-veteran);
}

.rank-master {
  --rank: var(--r-master);
}

.rank-legend {
  --rank: var(--r-legend);
}

.rank-art {
  --rank: var(--r-art);
}

/* While paused, nothing loops. */
.is-paused *,
.is-paused *::before,
.is-paused *::after {
  animation-play-state: paused !important;
}

/* -- facts strip: trust, under the hero ------------------------------- */

.facts {
  padding: 0 0 40px;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fact {
  --cut: 10px;
  padding: 16px 18px 18px;
}

.fact p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.fact .fact-key {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text);
  font: 600 0.85rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -- sections ------------------------------------------------------------ */

.section {
  padding: 72px 0;
}

.section-lead {
  color: var(--muted);
  max-width: 46em;
  margin-bottom: 2em;
}

/* -- step player: what the bot does after Start --------------------------
   A schematic game window (our own drawing, not the game's art) and the
   list of steps. The stage's data-step picks the current step; the at1…at9
   classes mark the steps reached, so a state that holds (sorted rows, the
   bought lot) stays on. Fixed aspect ratio: changing steps never moves the
   page. */

.player {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  align-items: start;
}

/* Beside the list of steps the stage stays in view — below the sticky
   header (65px), not under it. */
.player-main {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 12px;
}

.stage {
  --cut: 18px;
  container-type: inline-size;
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--line-hi);
}

.stage::before {
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--green) 7%, transparent), transparent 60%),
    var(--well);
}

.st-win {
  position: absolute;
  inset: 6% 5% 7%;
  display: flex;
  flex-direction: column;
  gap: 2.2cqw;
  padding: 2.4cqw 2.8cqw;
  border: 1px solid var(--line-hi);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  font-size: 2.15cqw;
  opacity: 0.35;
  transform: scale(0.97);
  transition: opacity 0.45s, transform 0.45s var(--ease);
}

.at1 .st-win {
  opacity: 1;
  transform: none;
}

.st-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font: 600 1.7cqw/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.st-tab {
  padding: 0.6cqw 1.4cqw;
  border-bottom: 2px solid var(--green);
  color: var(--text);
}

/* The auction key: pressed on step 1. */
.st-key {
  display: grid;
  place-items: center;
  width: 4.4cqw;
  height: 4.4cqw;
  border: 1px solid var(--line-hi);
  border-bottom-width: 3px;
  color: var(--text);
  font-size: 2cqw;
  transition: transform 0.15s, border-color 0.15s;
}

.st-key svg {
  width: 62%;
  height: 62%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

[data-step="1"] .st-key {
  border-color: var(--amber);
  color: var(--amber);
  animation: key-press 1.4s ease-in-out infinite;
}

@keyframes key-press {
  0%, 60%, 100% {
    transform: none;
  }

  70% {
    transform: translateY(2px);
  }
}

.st-search {
  position: relative;
  display: flex;
  gap: 1.6cqw;
  align-items: stretch;
}

.st-field {
  position: relative;
  flex: 1;
  height: 4.6cqw;
  overflow: hidden;
  border: 1px solid var(--line-hi);
  background: var(--well);
}

.st-q {
  position: absolute;
  inset: 0 auto 0 1.4cqw;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.st-q2 {
  opacity: 0;
}

/* Typing: a cover the field's colour slides off the text (transform). */
.st-cover {
  position: absolute;
  inset: 0;
  background: var(--well);
  transform: translateX(0);
}

.at3 .st-cover {
  transform: translateX(100%);
  transition: transform 1.1s steps(14, end);
}

.at9 .st-q1 {
  opacity: 0;
}

.at9 .st-q2 {
  opacity: 1;
}

.at9 .st-cover {
  transition: none;
}

.st-rare {
  display: flex;
  align-items: center;
  padding: 0 1.4cqw;
  border: 1px solid var(--line-hi);
  color: var(--muted);
  font-size: 1.8cqw;
  white-space: nowrap;
}

.st-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 0 1.4cqw 0.8cqw 6.6cqw;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 1.6cqw/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st-sort i {
  display: inline-block;
  font-style: normal;
  opacity: 0.35;
  transition: opacity 0.3s, color 0.3s;
}

.at4 .st-sort {
  color: var(--text);
}

.at4 .st-sort i {
  color: var(--amber);
  opacity: 1;
}

.st-rows {
  position: relative;
  height: calc(4 * 6.2cqw);
}

.st-row {
  --rank: var(--r-newbie);
  position: absolute;
  inset: 0 0 auto;
  height: 6.2cqw;
  display: grid;
  grid-template-columns: 4.6cqw minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.6cqw;
  padding: 0 1.4cqw 0 0.6cqw;
  border-left: 0.4cqw solid var(--rank);
  border-bottom: 1px solid var(--line);
  transition: transform 0.6s var(--ease), opacity 0.35s;
}

.st-row img {
  width: 4.2cqw;
  height: 4.2cqw;
}

.st-row b {
  font: 600 2.2cqw/1 var(--mono);
}

/* Unsorted until step 4: the cheapest rows sit lower. */
.st-r1 {
  transform: translateY(200%);
}

.st-r2 {
  transform: translateY(0);
}

.st-r3 {
  transform: translateY(300%);
}

.st-r4 {
  transform: translateY(100%);
}

.at4 .st-r1 {
  transform: translateY(0);
}

.at4 .st-r2 {
  transform: translateY(100%);
}

.at4 .st-r3 {
  transform: translateY(200%);
}

.at4 .st-r4 {
  transform: translateY(300%);
}

.st-row::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--amber);
  background: color-mix(in srgb, var(--amber) 14%, transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

[data-step="6"] .st-r1::after {
  opacity: 1;
}

.at7 .st-r1 {
  opacity: 0.25;
}

.at9 .st-row {
  opacity: 0.2;
}

/* The scan line reads the rows on step 5. */
.st-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6.2cqw;
  border-top: 1px solid color-mix(in srgb, var(--green) 75%, transparent);
  background: linear-gradient(color-mix(in srgb, var(--green) 18%, transparent), transparent 75%);
  opacity: 0;
  pointer-events: none;
}

[data-step="5"] .st-scan {
  opacity: 1;
  animation: st-scan 2s var(--ease) infinite;
}

@keyframes st-scan {
  0% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(100%);
  }

  50% {
    transform: translateY(200%);
  }

  75%,
  100% {
    transform: translateY(300%);
  }
}

.st-balance {
  margin-top: auto;
  display: flex;
  gap: 1.4cqw;
  align-items: baseline;
  color: var(--muted);
  font: 1.8cqw/1.2 var(--mono);
}

.st-bal {
  position: relative;
  display: inline-grid;
}

.st-bal > * {
  grid-area: 1 / 1;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.st-b1 {
  color: var(--text);
}

.st-b2 {
  color: var(--text);
  opacity: 0;
  transform: translateY(40%);
}

.st-b2 em {
  color: var(--amber);
  font-style: normal;
}

.at7 .st-b1 {
  opacity: 0;
  transform: translateY(-40%);
}

.at7 .st-b2 {
  opacity: 1;
  transform: none;
}

[data-step="7"] .st-balance {
  color: var(--green);
}

/* Overlays. */
.st-check,
.st-dialog,
.st-toast,
.st-next,
.st-cursor {
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s, transform 0.35s var(--ease);
  pointer-events: none;
}

.st-check {
  right: 7%;
  top: 22%;
  display: grid;
  gap: 1cqw;
  padding: 1.8cqw 2.2cqw;
  border: 1px solid var(--green);
  background: color-mix(in srgb, var(--well) 96%, transparent);
  font: 1.9cqw/1.3 var(--mono);
  transform: translateY(6%);
}

.st-check li::before {
  content: "✓ " / "";
  color: var(--green);
}

[data-step="2"] .st-check {
  opacity: 1;
  transform: none;
}

/* Brackets around what the self-check looks at (step 2). */
.st-mark {
  position: absolute;
  inset: -0.8cqw;
  border: 1px dashed var(--green);
  opacity: 0;
  transition: opacity 0.3s;
}

[data-step="2"] .st-mark {
  opacity: 0.9;
}

.st-dialog {
  left: 50%;
  top: 46%;
  min-width: 34cqw;
  padding: 2cqw 2.6cqw 2.4cqw;
  border: 1px solid var(--amber);
  background: var(--modal);
  text-align: center;
  transform: translate(-50%, -44%) scale(0.95);
  box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.6);
}

.st-dialog p {
  margin: 0 0 0.8cqw;
  color: var(--muted);
  font: 1.6cqw/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.st-dialog b {
  display: block;
  margin-bottom: 1.4cqw;
  font: 700 2.8cqw/1.1 var(--mono);
}

.st-dialog span {
  display: inline-block;
  padding: 0.6cqw 3cqw;
  background: var(--amber);
  color: var(--on-amber);
  font: 700 2cqw/1.2 var(--head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[data-step="6"] .st-dialog {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.st-cursor {
  left: 56%;
  top: 60%;
  width: 3.6cqw;
  height: 3.6cqw;
  transform: translate(30%, 40%);
}

.st-cursor svg {
  width: 100%;
  height: 100%;
  fill: var(--text);
  stroke: var(--well);
  stroke-width: 1.5;
}

[data-step="6"] .st-cursor {
  opacity: 1;
  transform: none;
}

.st-toast {
  right: 4%;
  bottom: 10%;
  max-width: 52%;
  padding: 1.4cqw 2cqw;
  border-left: 0.5cqw solid var(--green);
  background: var(--toast);
  box-shadow: 0 1.6cqw 4cqw rgba(0, 0, 0, 0.55);
  font-size: 1.9cqw;
  line-height: 1.35;
  transform: translateY(18%);
}

.st-toast small {
  display: block;
  color: var(--muted);
  font: 1.4cqw/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st-toast b {
  display: block;
}

.st-toast span {
  color: var(--soft);
  font-family: var(--mono);
}

[data-step="8"] .st-toast {
  opacity: 1;
  transform: none;
}

.st-next {
  left: 50%;
  top: 56%;
  padding: 1.2cqw 2.4cqw;
  border: 1px solid var(--green);
  background: color-mix(in srgb, var(--well) 96%, transparent);
  color: var(--green);
  font: 600 2cqw/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-60%, -50%);
}

[data-step="9"] .st-next {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* Controls under the stage. */
.player-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-count {
  margin-left: auto;
  color: var(--muted);
  font: 600 0.85rem/1 var(--mono);
  letter-spacing: 0.1em;
}

.player-count b {
  color: var(--green);
}

.player-ctrl p {
  margin: 0;
}

.player-hint {
  margin: 0;
  color: var(--muted);
  font: 0.78rem/1.4 var(--mono);
}

/* Progress of the current step: a bar filled by transform (scaleX). */
.player-bar {
  height: 3px;
  background: var(--line);
  overflow: hidden;
}

.player-bar span {
  display: block;
  height: 100%;
  background: var(--green);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.player-bar span.is-run {
  transform: scaleX(1);
  transition: transform var(--step-ms, 4200ms) linear;
}

.is-paused .player-bar span.is-run {
  transform: scaleX(0);
  transition: none;
}

.player-steps {
  display: grid;
  gap: 4px;
  counter-reset: st;
}

.player-steps button {
  counter-increment: st;
  position: relative;
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  gap: 0 10px;
  width: 100%;
  padding: 9px 12px 10px;
  border: 0;
  border-left: 2px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.player-steps button::before {
  content: counter(st, decimal-leading-zero) / "";
  grid-row: span 2;
  color: var(--line-hi);
  font: 700 1.25rem/1.2 var(--mono);
  transition: color 0.2s;
}

.player-steps b {
  font-family: var(--head);
  font-stretch: condensed;
  font-variation-settings: "wdth" 75;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.player-steps span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.player-steps button:hover {
  background: color-mix(in srgb, var(--green) 4%, transparent);
}

.player-steps button[aria-current="step"] {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, color-mix(in srgb, var(--amber) 10%, transparent), transparent);
}

.player-steps button[aria-current="step"]::before {
  color: var(--amber);
}

.player-steps button[aria-current="step"] span {
  color: var(--soft);
}

/* What holds on every step. */
.always {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.always li {
  padding: 5px 12px;
  border: 1px dashed var(--line-hi);
  color: var(--muted);
  font: 0.8rem/1.4 var(--mono);
}

.always b {
  color: var(--green);
  font-weight: 600;
}

/* -- the Panel with callouts --------------------------------------------- */

.callouts {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 32px;
  align-items: start;
}

.shot-pins {
  position: relative;
}

.pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--on-amber);
  font: 700 0.95rem/1 var(--mono);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 28%, transparent), 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* Pins sit on the top-left corner of each zone of the 1200×720 Panel
   (percent of the picture), never on its text. */
.pin-1 {
  left: 19.6%;
  top: 9.3%;
}

.pin-2 {
  left: 96.2%;
  top: 11.5%;
}

.pin-3 {
  left: 39.4%;
  top: 29.4%;
}

.pin-4 {
  left: 19.6%;
  top: 44.4%;
}

.pin-5 {
  left: 59.25%;
  top: 44.4%;
}

.legend {
  display: grid;
  gap: 4px;
  counter-reset: pin;
}

.legend li {
  counter-increment: pin;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-hi);
}

.legend li::before {
  content: counter(pin) / "";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--amber);
  color: var(--amber);
  font: 700 0.85rem/1 var(--mono);
}

.legend p {
  margin: 0;
}

.legend b {
  display: block;
  font-family: var(--head);
  font-stretch: condensed;
  font-variation-settings: "wdth" 75;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legend span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* -- item categories: inventory cells -------------------------------------
   B3, after the owner's inventory: a dark cell, the item big, "×N" at the
   top right (here: how many items the section has in the game's base),
   a line of the rank colour along the bottom — our own drawing. Juicy: the
   picture bright and a little over the edge, a glow of the rank colour
   behind it; hover lifts the cell, brightens the glow, turns the item and
   runs a glint — transform and opacity only. EXBO's icons are 128 px at
   most (barter ones 74 px), so a category picture stays ≤ 132 px. */

.cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 16px;
}

.cat {
  --c: 12px;
  --shape: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  position: relative;
  isolation: isolate;
  min-height: 188px;
  transition: transform 0.3s var(--ease);
}

.cat-face {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  padding: 14px 16px 14px;
  clip-path: var(--shape);
  background: color-mix(in srgb, var(--rank) 30%, var(--line));
}

/* The cell: a dark well with a faint inner light, worn texture, and the
   rank line along the bottom, as in the game's inventory. */
.cat-face::before {
  content: "";
  position: absolute;
  inset: 1px 1px 4px;
  z-index: -1;
  clip-path: var(--shape);
  background:
    radial-gradient(circle at 70% 62%, color-mix(in srgb, var(--rank) 26%, transparent), transparent 55%),
    url("zone/wear.webp"),
    linear-gradient(170deg, var(--face-hi), var(--well) 80%);
}

.cat-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
  transform: translateX(-110%);
  pointer-events: none;
}

.cat-line {
  position: absolute;
  left: var(--c);
  right: 1px;
  bottom: 1px;
  height: 3px;
  background: var(--rank);
}

.cat h3 {
  position: relative;
  max-width: 70%;
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
}

/* B4: "348 предметов" in words under the name — "×348" read as a stack. */
.cat-count {
  position: relative;
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 0.82rem/1.3 var(--mono);
}

.cat-glow {
  position: absolute;
  right: -14px;
  bottom: -18px;
  z-index: 1;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--rank) 55%, transparent), transparent 66%);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.35s var(--ease);
}

.cat img {
  position: absolute;
  right: -8px;
  bottom: -10px;
  z-index: 2;
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: saturate(1.3) brightness(1.12) contrast(1.05) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.6));
  transition: transform 0.35s var(--ease);
}

@media (hover: hover) {
  .cat:hover {
    transform: translateY(-6px);
  }

  .cat:hover .cat-glow {
    opacity: 1;
    transform: scale(1.12);
  }

  .cat:hover img {
    transform: translate(-4px, -6px) scale(1.08) rotate(-5deg);
  }

  .cat:hover .cat-face::after {
    transform: translateX(110%);
    transition: transform 0.7s var(--ease);
  }
}

/* "Often bought": barter as inventory cells, the owner's own stacks. */
.strip-title {
  margin: 36px 0 14px;
  color: var(--soft);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.inv {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inv-cell {
  position: relative;
  display: grid;
  gap: 6px;
}

.inv-box {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--rank);
  background:
    radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--rank) 22%, transparent), transparent 62%),
    url("zone/wear.webp"),
    var(--well);
  transition: transform 0.25s var(--ease);
}

.inv-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--rank) 40%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}

/* EXBO's barter icons are 74 px: shown at ~56 % so they stay sharp. */
.inv-box img {
  position: relative;
  z-index: 1;
  width: 56%;
  height: auto;
  filter: saturate(1.25) brightness(1.1) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));
}

/* A black item on a black cell: lift it a little. */
.rank-none .inv-box img {
  filter: brightness(1.7) contrast(1.1) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));
}

.inv-name {
  color: var(--muted);
  font: 0.78rem/1.3 var(--mono);
}

@media (hover: hover) {
  .inv-cell:hover .inv-box {
    transform: translateY(-4px);
  }

  .inv-cell:hover .inv-box::after {
    opacity: 1;
  }
}

.rank-none {
  --rank: #d8d8d8;
}

.rank-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 24px;
  color: var(--muted);
  font: 0.8rem/1.4 var(--mono);
}

.rank-key li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-key li::before {
  content: "";
  width: 14px;
  height: 4px;
  background: var(--rank);
}

.note {
  margin-top: 10px;
  color: var(--muted);
  font: 0.8rem/1.5 var(--mono);
}

/* -- getting started: parallelogram cards -------------------------------
   B3: back to the owner's example (owner-ref-steps.png). B2 had drifted:
   the cards leaned the other way, had a 1px frame and a wide gap. Now as in
   the example — leaning right (skewX +5°), no frame, a soft gradient face,
   12px apart; a big dim number on top, the step, one line, three small
   squares under it (pictograms for steps 1–2, items for step 3). The face
   is skewed, the text stays upright. */

.go-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  counter-reset: go;
}

.go-steps > li {
  counter-increment: go;
  position: relative;
  isolation: isolate;
  min-height: 216px;
  padding: 22px 26px 24px 36px;
}

.go-steps > li::before {
  content: "";
  position: absolute;
  inset: 0 8px;
  z-index: -1;
  background: linear-gradient(160deg, var(--face-hi), var(--face-lo) 75%);
  transform: skewX(5deg);
}

.go-steps > li::after {
  content: counter(go, decimal-leading-zero) / "";
  position: absolute;
  top: 14px;
  left: 34px;
  z-index: -1;
  color: color-mix(in srgb, var(--amber) 22%, transparent);
  font: 700 3.4rem/1 var(--head);
  font-stretch: condensed;
  font-variation-settings: "wdth" 75;
}

.go-steps h3 {
  margin: 56px 0 6px;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.go-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.thumbs {
  display: flex;
  gap: 5px;
  margin-top: 14px;
}

.thumbs li {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--well);
}

.thumbs img {
  width: 30px;
  height: 30px;
}

.thumbs svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--soft);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* -- cards, readout, gallery, specs ------------------------------------- */

h2 + .cards,
h2 + .split,
h2 + .specs,
h2 + .go-steps,
h2 + .cats {
  margin-top: 1.8em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: card;
}

.card {
  counter-increment: card;
  padding: 24px 24px 26px;
  transition: transform 0.25s var(--ease);
}

/* Hover: the frame lights amber along the cut corner. */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--amber) 0 22px, transparent 22px), linear-gradient(315deg, var(--amber) 0 22px, transparent 22px);
  opacity: 0;
  transition: opacity 0.2s;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
  }

  .card:hover::after {
    opacity: 1;
  }
}

.card h3 {
  color: var(--text);
}

.card:not(.channel) h3::before {
  content: "[" counter(card, decimal-leading-zero) "]" / "";
  display: block;
  color: var(--green);
  font: 600 0.8rem/1 var(--mono);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.channel h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}

.readout {
  margin: 0;
}

.readout div {
  padding: 16px 0 18px;
  border-top: 1px dashed var(--line-hi);
}

.readout div:last-child {
  border-bottom: 1px dashed var(--line-hi);
}

.readout dt {
  color: var(--amber);
  font-family: var(--head);
  font-stretch: condensed;
  font-variation-settings: "wdth" 75;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.readout dt::before {
  content: "> " / "";
  color: var(--green);
  font-family: var(--mono);
}

.readout dd {
  margin: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.specs {
  margin: 0;
  padding: 8px 28px;
}

.specs div {
  display: grid;
  grid-template-columns: 11em minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
}

.specs div + div {
  border-top: 1px dashed var(--line-hi);
}

.specs dt {
  color: var(--green);
  font: 600 0.9rem/1.7 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.specs dd {
  margin: 0;
  color: var(--muted);
}

.cta {
  padding-top: 24px;
}

.cta-box {
  --cut: 28px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: 32px;
  padding: 56px 48px;
  overflow: hidden;
}

.cta-box::before {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--amber) 8%, transparent), transparent 60%),
    var(--panel);
}

/* -- "try before you buy": a window of the program — the check run, a
   hunt with no purchases, its lines as the program writes them ("по порогу
   … подошли бы …"). The window keeps the program's own colours
   (gui/theme.py), the way the PDA keeps the game's. */

.cta-demo {
  --app-bg: #15171a;
  --app-panel: #1e2126;
  --app-line: #2c3037;
  --app-text: #e6e8eb;
  --app-muted: #8a9099;
  --app-accent: #e0a030;
  --app-ok: #4cb86a;
  margin: 0;
  border: 1px solid var(--app-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--app-panel);
  color: var(--app-text);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  font-size: 0.86rem;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--app-line);
  background: var(--app-bg);
  color: var(--app-muted);
  font-size: 0.8rem;
}

.app-bar b {
  color: var(--app-accent);
  font-weight: 600;
}

.app-bar .app-tab {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid var(--app-line);
  color: var(--app-text);
}

.app-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px 8px;
  font-weight: 600;
}

.app-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app-ok);
}

.app-status span {
  margin-left: auto;
  color: var(--app-muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.app-lines {
  margin: 0;
  padding: 0 12px 10px;
  list-style: none;
  font: 0.76rem/1.45 var(--mono);
}

.app-lines li {
  padding: 4px 0;
  border-top: 1px dashed var(--app-line);
  color: var(--app-muted);
}

.app-lines .ok {
  color: var(--app-ok);
}

.app-foot {
  margin: 0;
  padding: 9px 12px;
  border-top: 1px solid var(--app-line);
  background: var(--app-bg);
  color: var(--app-text);
  font-size: 0.82rem;
}

.app-foot b {
  color: var(--app-ok);
}

.cta-copy p {
  color: var(--soft);
  max-width: 40em;
}

/* -- reveal on scroll: only blocks that start below the first screen;
   opacity and transform, so the layout never shifts. -- */

.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.will-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* -- footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  color: var(--muted);
  font-size: 0.88rem;
  padding: 32px 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.site-footer p {
  margin: 0 0 0.5em;
  max-width: 52em;
}

.site-footer p a {
  color: var(--soft);
}

/* -- the other pages: download, buy, FAQ, support, legal, 404 ------------
   The same look as the home page: condensed capitals for headings, mono
   for labels, chamfered panels, amber for actions. download.js and buy.js
   show and hide their parts with the hidden attribute — it wins over any
   display set here. */

[hidden] {
  display: none !important;
}

/* Anchors land below the sticky header (download #verify, buy #renew …). */
[id] {
  scroll-margin-top: 84px;
}

.page-head {
  position: relative;
  isolation: isolate;
  padding: 56px 0 12px;
}

/* The same lamp as over the hero, a little dimmer. */
.page-head::before {
  content: "";
  position: absolute;
  inset: -40% 0 0 40%;
  z-index: -1;
  background: radial-gradient(ellipse 50% 60% at 60% 0%, var(--lamp), transparent 70%);
  pointer-events: none;
  animation: lamp 9s linear infinite;
}

:root.fx-off .page-head::before {
  animation: none;
}

.page-head h1 {
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
}

.page-head p {
  color: var(--soft);
  max-width: 46em;
}

.page-head + .section {
  padding-top: 28px;
}

.eyebrow {
  color: var(--green);
  font: 600 0.82rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1.2em;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0.05em 0.35em;
  border: 1px solid var(--line);
  background: var(--well);
  color: var(--soft);
  overflow-wrap: anywhere;
}

/* -- prose: download, buy, support, legal -------------------------------- */

.prose {
  max-width: 50em;
  color: var(--soft);
}

.prose h2,
.faq h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  margin-top: 1.9em;
}

.prose > h2:first-child,
.prose > .release + h2,
.faq-group > h2:first-child {
  margin-top: 0;
}

.prose h2::before,
.faq h2::before {
  content: "// " / "";
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.8em;
}

.prose h3 {
  font-size: 1.12rem;
  margin-top: 1.5em;
}

.prose ul,
.prose ol,
.answer ul,
.answer ol {
  padding-left: 1.4em;
}

.prose li + li,
.answer li + li {
  margin-top: 0.4em;
}

.prose li::marker,
.answer li::marker {
  color: var(--green);
  font-family: var(--mono);
}

/* A legal page's blank the owner has yet to fill. */
.placeholder {
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  padding: 0 0.3em;
}

/* -- notices ------------------------------------------------------------- */

.notice {
  margin: 0 0 1.8em;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background: var(--panel);
  color: var(--soft);
}

.notice p:last-child,
.notice ul:last-child {
  margin-bottom: 0;
}

.notice-title {
  color: var(--amber);
  font: 600 0.85rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}

.notice-draft {
  border-left-color: var(--red);
}

.notice-draft .notice-title {
  color: var(--red);
}

/* -- tables (support) ---------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.6em;
  border: 1px solid var(--line);
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px dashed var(--line-hi);
}

tr:last-child > th,
tr:last-child > td {
  border-bottom: 0;
}

thead th {
  border-bottom: 1px solid var(--line-hi);
  color: var(--green);
  font: 600 0.8rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

tbody th {
  width: 30%;
  color: var(--text);
  font-weight: 600;
}

td {
  color: var(--muted);
}

/* -- download: the release box (download.js) ------------------------------ */

.release,
.plan {
  margin: 0 0 2em;
  padding: 26px 28px;
}

.release-version {
  margin: 0 0 0.3em;
  color: var(--text);
  font-family: var(--head);
  font-stretch: condensed;
  font-variation-settings: "wdth" 75;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.release-meta {
  margin: 0;
  color: var(--muted);
  font: 0.88rem/1.5 var(--mono);
}

.release-file {
  margin-top: 18px;
}

.hash,
.scan {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.scan {
  margin-top: 6px;
}

.hash code {
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
}

/* -- buy: plans, currency, renewal, consent (buy.js) --------------------- */

.pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 22px;
}

.pricing-head h2 {
  margin: 0;
}

.pricing .notice {
  margin-bottom: 0;
}

.currency {
  display: inline-flex;
  border: 1px solid var(--line-hi);
}

.currency button {
  padding: 8px 16px;
  border: 0;
  background: var(--panel-2);
  color: var(--muted);
  font: 600 0.9rem/1.2 var(--mono);
  letter-spacing: 0.06em;
  cursor: pointer;
}

.currency button + button {
  border-left: 1px solid var(--line-hi);
}

.currency button:hover {
  color: var(--text);
}

.currency button[aria-pressed="true"] {
  background: var(--amber);
  color: var(--on-amber);
}

.renew,
.consent {
  max-width: 36em;
  margin-bottom: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  background: var(--panel);
}

.renew-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
}

.renew-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-hi);
  background: var(--well);
  color: var(--text);
  font: 1rem/1.4 var(--mono);
  letter-spacing: 0.02em;
}

.renew-input::placeholder {
  color: var(--muted);
}

.renew-input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.renew-hint {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

/* The pay buttons lead nowhere until the box is ticked. */
.consent-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.consent-label input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--amber);
  cursor: pointer;
}

.consent-hint {
  margin: 8px 0 0 32px;
  font-size: 0.9rem;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 24px;
}

.plan h3 {
  margin: 0 0 0.4em;
  color: var(--green);
  font: 600 0.85rem/1.4 var(--mono);
  letter-spacing: 0.1em;
}

.plan-price {
  margin: 0;
  color: var(--amber);
  font-family: var(--head);
  font-stretch: condensed;
  font-variation-settings: "wdth" 75;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.1;
}

.plan-pay {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

/* Two pay buttons in a narrow card: one line each. */
.plan-pay .btn {
  padding: 10px 14px;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.markets {
  margin-top: 28px;
}

.markets-title {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.markets .actions {
  margin-top: 12px;
}

/* A plain button (buy, 404, markets): no fill of its own in the B look. */
.btn:not(.btn-primary):not(.btn-line) {
  background: var(--panel-3);
  color: var(--text);
}

.btn:not(.btn-primary):not(.btn-line):hover {
  background: var(--line-hi);
  color: var(--text);
}

/* -- FAQ ----------------------------------------------------------------- */

.faq {
  max-width: 52em;
}

.faq-group + .faq-group {
  margin-top: 44px;
}

details {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
}

details[open] {
  border-left: 3px solid var(--amber);
}

summary {
  position: relative;
  padding: 14px 48px 14px 18px;
  color: var(--text);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+" / "";
  position: absolute;
  right: 18px;
  top: 11px;
  color: var(--green);
  font: 600 1.3rem/1.2 var(--mono);
}

details[open] summary::after {
  content: "−" / "";
}

summary:hover {
  color: var(--amber-hi);
}

summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

details[open] summary {
  border-bottom: 1px dashed var(--line-hi);
}

.answer {
  padding: 14px 18px 4px;
  color: var(--soft);
  /* A link to /faq/#<question> lands here and the browser opens the
     <details> around it; the margin keeps the question itself in view
     under the sticky header. */
  scroll-margin-top: 130px;
}

/* -- lang.js: the polite offer of the other language, above the header --- */

.lang-offer {
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 0.92rem;
}

.lang-offer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.lang-offer p {
  margin: 0;
}

.lang-offer a {
  font-weight: 600;
}

.lang-offer button {
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid var(--line-hi);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-offer button:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .page-head {
    padding: 36px 0 6px;
  }

  .release,
  .plan {
    padding: 20px 18px;
  }

  tbody th {
    width: 40%;
  }

  th,
  td {
    padding: 10px 12px;
  }
}

/* -- guides: /ru/guides/ and the articles (scripts/build_guides.py) ------ */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font: 0.8rem/1.5 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.crumbs li + li::before {
  content: "→" / "";
  padding: 0 8px;
  color: var(--green);
}

.crumbs a {
  color: var(--soft);
}

.updated {
  margin: 0;
  color: var(--muted);
  font: 0.85rem/1.5 var(--mono);
}

.guide > p:first-child {
  color: var(--text);
  font-size: 1.08rem;
}

/* A program's window in an article, and what the picture shows. */
.guide figure {
  margin: 1.4em 0 1.8em;
}

.guide figure img {
  border: 1px solid var(--line);
}

.guide figcaption {
  margin-top: 0.6em;
  color: var(--muted);
  font-size: 0.9rem;
}

/* A case from live data in an article (scripts/build_guides.py, a ```case
   block): the lots of the list and, beside them, the sums. Text, not a
   picture, so it reads at any width: two columns on a wide screen, one on
   a narrow one. The colours are the site's: the list's bright green for
   what was bought, red for a lot someone else got, amber for the wall. */
.case {
  margin: 1.4em 0 1.8em;
  padding: 18px 20px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.prose .case p {
  margin: 0;
}

.prose .case .case-intro {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px 20px;
  align-items: start;
}

.prose .case-lots {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .case-lots li + li {
  margin-top: 0;
}

.case-lot {
  display: grid;
  grid-template-columns: 6.6ch 4.6ch minmax(0, 1fr);
  gap: 0 10px;
  align-items: baseline;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.case-price {
  color: var(--text);
  font: 600 1rem/1.35 var(--mono);
  white-space: nowrap;
}

.case-count {
  color: var(--muted);
  font: 0.86rem/1.35 var(--mono);
  white-space: nowrap;
}

.case-mark {
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.35;
}

.case-mark:empty {
  display: none;
}

.case-mark::before {
  content: "";
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-right: 0.5em;
  background: var(--line-hi);
}

.case-lot.is-bought {
  border-color: var(--r-newbie);
  background: color-mix(in srgb, var(--r-newbie) 15%, var(--panel));
}

.case-lot.is-bought .case-mark::before {
  background: var(--r-newbie);
}

.case-lot.is-other {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 15%, var(--panel));
}

.case-lot.is-other .case-price {
  color: var(--muted);
}

.case-lot.is-other .case-mark::before {
  background: var(--red);
}

.case-lot.is-wall {
  border-color: var(--amber);
  background: color-mix(in srgb, var(--amber) 15%, var(--panel));
}

.case-lot.is-wall .case-mark::before {
  background: var(--amber);
}

/* The max price's line across the list, its label at the right end. */
.case-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--r-newbie);
  font: 600 0.84rem/1.3 var(--mono);
  white-space: nowrap;
}

.case-line::before {
  content: "";
  flex: 1;
  border-top: 2px solid currentColor;
}

.case-line.is-dash {
  color: var(--soft);
}

.case-line.is-dash::before {
  border-top-style: dashed;
}

.case-sums {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--well);
}

.case-sum + .case-sum {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.prose .case .case-sum-title {
  margin-bottom: 8px;
  color: var(--text);
  font: 700 0.98rem/1.25 var(--head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-sum dl {
  margin: 0;
}

.case-sum dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}

.case-sum dt {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.case-sum dd {
  margin: 0;
  color: var(--text);
  font: 0.95rem/1.35 var(--mono);
  white-space: nowrap;
}

.case-total dt {
  color: var(--text);
  font-weight: 600;
}

.case-total dd {
  font-size: 1.12rem;
  font-weight: 700;
}

.case-total.is-good dd {
  color: var(--r-newbie);
}

.case-total.is-bad dd {
  color: var(--red);
}

.prose .case .case-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.prose .case .case-foot {
  margin-top: 12px;
  color: var(--muted);
  font: 0.78rem/1.4 var(--mono);
}

@media (max-width: 720px) {
  .case {
    padding: 14px 14px 12px;
  }

  .case-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-lot {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .case-mark {
    grid-column: 1 / -1;
  }
}

/* Cards of the index: the inventory cells of «Что скупать», a link each. */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-card {
  min-height: 200px;
}

.guide-link {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--text);
  text-decoration: none;
}

.guide-link:hover {
  color: var(--text);
}

.guide-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.guide-card .cat-face {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 18px;
}

.guide-title,
.guide-line,
.guide-date {
  position: relative;
  max-width: 68%;
}

.guide-title {
  margin: 0;
  font-family: var(--head);
  font-stretch: condensed;
  font-variation-settings: "wdth" 75;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guide-line {
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.guide-date {
  margin-top: auto;
  color: var(--muted);
  font: 0.8rem/1.4 var(--mono);
}

/* «Подробнее» on the home page: into a guide. */
.more {
  margin: 22px 0 0;
}

.more a {
  font-family: var(--head);
  font-stretch: condensed;
  font-variation-settings: "wdth" 75;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.more a::after {
  content: " →" / "";
}

.more a:hover {
  text-decoration: underline;
}

/* The flipping calculator (calc.js). */
.calc {
  margin: 0 0 1.4em;
  padding: 22px 24px 20px;
}

.calc-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
}

.calc-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.3;
}

.calc-field input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line-hi);
  background: var(--well);
  color: var(--text);
  font: 1.05rem/1.3 var(--mono);
}

.calc-field input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

/* A number calc.js can't read: the field says so, not only the «–». */
.calc-field input[aria-invalid="true"] {
  border-color: var(--red);
}

.calc-out {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line-hi);
}

.calc-out dt {
  color: var(--muted);
  font: 0.76rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calc-out dd {
  margin: 4px 0 0;
  color: var(--text);
  font: 600 1.3rem/1.2 var(--mono);
}

.calc-key dd {
  color: var(--amber);
}

.calc.is-loss [data-out="profit"] {
  color: var(--red);
}

/* The «Гайды» column of the footer (Russian pages). */
.footer-guides ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.footer-guides a {
  color: var(--muted);
}

.footer-guides a:hover {
  color: var(--text);
}

.site-footer .footer-title {
  margin: 0 0 8px;
  font: 600 0.82rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer .footer-title a {
  color: var(--green);
}

@media (max-width: 960px) {
  .calc-fields,
  .calc-out {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .guide-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Two classes: the narrow screens' `.cat` below comes later and would
     cut a card to 132px, its line and date hidden (check 2026-11-18). */
  .guide-cards .guide-card {
    min-height: 220px;
  }

  .calc {
    padding: 18px 16px;
  }
}

/* -- narrow screens ------------------------------------------------------ */

@media (max-width: 1100px) {
  .fact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .go-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player {
    grid-template-columns: minmax(0, 1fr);
  }

  /* One column: the stage above the list, scrolling with the page — stuck
     to the top it would cover the very steps it shows. */
  .player-main {
    position: static;
  }

  .callouts {
    grid-template-columns: minmax(0, 1fr);
  }

  .legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards,
  .cards-3,
  .cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-box {
    grid-template-columns: minmax(0, 1fr);
  }

}

/* The compact header: the sections fold into the menu as long as one row
   can't hold them all. Site check 2026-11-07: from 901 to ~1200px the row
   broke in two (1024 and 1100px — 108–112px tall). One row needs ~1150px
   in Russian since «Что нового» joined the menu (11.11.2026; ~1080px
   before), less in English (Bahnschrift); the margin covers the scrollbar
   and a wider font. */
@media (max-width: 1210px) {
  .site-header .wrap {
    flex-wrap: nowrap;
  }

  .brand {
    margin-right: auto;
  }

  .site-header .menu-btn {
    display: inline-grid;
  }

  .site-header nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 6px 16px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s 0.2s;
  }

  .site-header.is-open nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s, transform 0.2s var(--ease);
  }

  .nav {
    flex-direction: column;
    gap: 0;
  }

  .nav a {
    padding: 11px 4px;
    border-bottom: 1px dashed var(--line);
    font-size: 1.1rem;
  }

  /* In the menu's column the brackets go back into the line. */
  .nav a::before,
  .nav a::after {
    position: static;
  }

  .nav a::before {
    content: "[ " / "";
  }

  .nav a::after {
    content: " ]" / "";
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding: 32px 0 36px;
  }

  .hero-live {
    padding: 14px;
  }

  .hero-live::before {
    top: 2px;
    left: 2px;
  }

  .hero-live::after {
    right: 2px;
    bottom: 2px;
  }

  /* Site audit 16.11.2026: at 390px the simulation's bar (title,
     «симуляция», the max price, pause) took ~407px of a 330px frame, and
     the pause button stood past the frame's edge. Here the pause button
     keeps the top right corner, and what doesn't fit beside the title
     wraps under it. */
  .sim-bar {
    position: relative;
    flex-wrap: wrap;
    row-gap: 4px;
    padding-right: 52px;
  }

  .sim-bar > [data-pause] {
    position: absolute;
    top: 4px;
    right: 10px;
  }

  .feed {
    padding: 10px 8px 8px;
  }

  /* The PDA on a phone: thinner bezel, no bid column (the bot ignores
     bids), the verdict moves to the row's top-right corner. */
  .pda {
    padding: 4px;
    border-radius: 12px;
    font-size: 0.78rem;
  }

  .pda-band {
    padding: 4px;
    border-radius: 9px;
  }

  .pda-filter {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) auto;
    padding: 6px 8px;
  }

  .pda-filter .pda-lbl {
    display: none;
  }

  .pda-btn {
    padding: 2px 10px 3px;
  }

  .pda-head {
    grid-template-columns: minmax(0, 1fr) 104px;
    padding-left: 44px;
    padding-right: 8px;
  }

  .pda-head span:nth-child(2) {
    display: none;
  }

  .lot-in {
    grid-template-columns: 30px minmax(0, 1fr) 104px;
    column-gap: 6px;
    padding: 3px 8px 3px 6px;
  }

  .lot-in img {
    width: 30px;
    height: 30px;
  }

  .lot-bid {
    display: none;
  }

  .lot-price {
    grid-column: 3;
  }

  .lot-verdict {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    padding: 0 4px;
    font-size: 0.6rem;
  }

  .is-match .lot-price,
  .is-over .lot-price {
    align-self: end;
  }

  .lot-act {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0 8px 0 44px;
  }

  .lot-act .act-input {
    display: none;
  }

  .toast {
    right: 8px;
    top: 44px;
  }

  .is-skip .lot-verdict {
    grid-column: 3;
  }

  .section {
    padding: 52px 0;
  }

  .fact-list,
  .cards,
  .cards-3,
  .go-steps,
  .legend {
    grid-template-columns: minmax(0, 1fr);
  }

  .cats {
    gap: 22px 12px;
  }

  .inv {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cat h3 {
    max-width: 64%;
  }

  .cat {
    min-height: 132px;
  }

  .cat-face {
    padding: 16px 14px 14px;
  }

  .cat h3 {
    font-size: 1.05rem;
  }

  .cat img {
    width: 84px;
    height: 84px;
    right: -4px;
    bottom: -8px;
  }

  .cat-glow {
    width: 116px;
    height: 116px;
    right: -6px;
    bottom: -16px;
  }

  .facts {
    padding-bottom: 32px;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .specs {
    padding: 4px 18px;
  }

  .specs div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .cta-box {
    padding: 36px 20px;
  }

  .pin {
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    font-size: 0.8rem;
  }

  .player-steps span {
    font-size: 0.86rem;
  }
}

@media (max-width: 420px) {
  .header-cta {
    display: none;
  }

  .site-header .wrap {
    gap: 8px;
  }

  .brand {
    gap: 8px;
    font-size: 1.12rem;
    letter-spacing: 0.05em;
  }

  .fx-btn,
  .menu-btn {
    width: 34px;
    height: 34px;
  }
}

/* Reduced motion: still frames. JS doesn't start the feed or the player's
   autoplay; transitions and loops are off. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .will-reveal {
    opacity: 1;
    transform: none;
  }

  /* No fog, even with «Эффекты» on: a still one would only cloud the
     page. */
  body::after,
  main::before,
  .facts::before {
    display: none;
  }
}
