/* Cinderhall landing, direction 2 «Арсенал» (story-cinderhall-landing-concept): the product shows itself. Base: ui-style-bento over the hub HUD ("Походный HUD", ui-cinderhall tokens.ts).
   The mark, the palette and IBM Plex Sans of the hub are unchanged. Dark is the default theme; the light theme (a switch in the header) keeps the same accent and gold.
   Class widths follow frontend-visual-reflow-by-width-class: 599 / 839 / 1199 / 1200. No inline style anywhere: the CSP allows only the own origin (style-src 'self'). */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url('fonts/ibm-plex-sans-cyrillic-wght.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-wght.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0f1113; --panel: #161a1d; --raised: #1e2327; --line: #2a3036; --line-strong: #3a424a;
  --text: #e6e9ec; --muted: #969da5; --faint: #7b838c;
  --accent: #b93a30; --accent-hover: #c4433a; --on-accent: #ffffff; --accent-text: #e5655a; --accent-soft: #3a1715;
  --gold: #cba65e; --gold-text: #cba65e;
  --r-common: #4fae6b; --r-rare: #5cbde8; --r-legend: #9d72dc; --r-myth: #e8893b;
  --hud: rgba(15, 17, 19, 0.84); --hud-line: #3a424a; --veil: rgba(15, 17, 19, 0.38);
  --ok: #4fae6b;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --spring: cubic-bezier(0.34, 1.32, 0.64, 1);
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f2f3f4; --panel: #ffffff; --raised: #e4e7ea; --line: #cfd4d9; --line-strong: #b5bcc3;
  --text: #0f1113; --muted: #50575e; --faint: #5f666d;
  --accent-text: #9e2b25; --accent-soft: #f6e3e1; --gold-text: #7a5f2a;
  --hud: rgba(255, 255, 255, 0.9); --hud-line: #b5bcc3; --veil: rgba(15, 17, 19, 0.2);
  --ok: #2f7d4a;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); overflow-x: clip; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
[id] { scroll-margin-top: 84px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 4px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.nw { white-space: nowrap; }

/* buttons of the hub HUD */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 4px; border: 1px solid transparent;
  font: 600 16px/1.15 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms var(--ease); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: var(--raised); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
button.btn[disabled] { opacity: 0.6; cursor: progress; }

/* header */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; min-height: 64px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 32px; height: 34px; flex: none; }
.brand b { display: block; font-weight: 600; font-size: 17px; line-height: 1.1; letter-spacing: 0.01em; }
.brand small { display: block; color: var(--muted); font-size: 12px; line-height: 1.1; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 10px; border-radius: 4px; color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--raised); }
.hdr-sp { flex: 1; }
.pill { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.pill a { display: grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 10px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); }
.pill a[aria-current='true'] { background: var(--raised); color: var(--text); }
.pill a:not([aria-current='true']):hover { color: var(--text); }
.theme-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.theme-btn:hover { color: var(--text); background: var(--raised); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .i-sun { display: none; }
:root[data-theme='light'] .theme-btn .i-sun { display: block; }
:root[data-theme='light'] .theme-btn .i-moon { display: none; }
.menu-btn { display: none; min-height: 44px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 600 15px/1 var(--font); cursor: pointer; }
.menu-btn:hover { background: var(--raised); }
.mnav { display: none; border-top: 1px solid var(--line); padding: 12px 16px 16px; background: var(--bg); }
.mnav.open { display: grid; gap: 4px; }
.mnav a:not(.btn) { padding: 12px 8px; text-decoration: none; border-radius: 4px; font-size: 16px; }
.mnav a:not(.btn):hover { background: var(--raised); }
.mnav .btn { margin-top: 8px; }
.mnav .pill { justify-self: start; margin-top: 4px; }
.hdr-lang-menu { display: none; }

/* type */
.h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; max-width: 22ch; }
.sub { color: var(--muted); margin-top: 10px; font-size: 17px; max-width: 60ch; }
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec-alt { background: var(--panel); }
.sec-alt .tile { background: var(--bg); }
.kicker { color: var(--accent-text); font-weight: 500; font-size: 16px; margin-bottom: 14px; }
h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.03; font-weight: 650; letter-spacing: -0.02em; }
.lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 52ch; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.status { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.status::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 1px; background: var(--gold); transform: rotate(45deg); }

/* first screen: text and the live hero card */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.scene { position: relative; aspect-ratio: 16 / 8; background: #000; overflow: hidden; }
.sc { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 500ms var(--ease); }
.sc.on { opacity: 1; }
.ill { position: absolute; right: 8px; top: 8px; z-index: 2; font-size: 12px; line-height: 1.2; color: #e6e9ec; background: rgba(15, 17, 19, 0.82); padding: 3px 8px; border-radius: 2px; }
.loot { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 6px; }
.loot img { width: 40px; height: 40px; background: rgba(15, 17, 19, 0.82); border: 1px solid #2a3036; border-radius: 4px; padding: 3px; opacity: 0; transform: translateY(10px) scale(0.96); }
.card.s2 .loot img, .card.s3 .loot img, .card.s4 .loot img, .card.s5 .loot img { opacity: 1; transform: none; transition: opacity 260ms var(--ease), transform 380ms var(--spring); }
.card.s2 .loot img:nth-child(2) { transition-delay: 60ms; }
.card.s2 .loot img:nth-child(3) { transition-delay: 120ms; }
.who { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ava { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold); }
.who b { display: block; font-weight: 600; }
.who span { color: var(--muted); font-size: 14px; }
.rank { display: grid; gap: 6px; justify-items: end; font-size: 13px; color: var(--gold-text); font-weight: 600; }
.bar { display: block; width: 120px; height: 6px; background: var(--raised); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 38%; background: var(--gold); transition: width 700ms var(--ease); }
.card.s5 .bar i { width: 72%; }
.slots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; padding: 14px 16px; }
.sl { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--raised); border: 2px solid var(--line-strong); border-radius: 4px; transition: border-color 300ms ease; }
.sl img { width: 72%; height: 72%; object-fit: contain; }
.sl i { position: absolute; right: 3px; bottom: 1px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--text); }
.r-common { border-color: var(--r-common); }
.r-rare { border-color: var(--r-rare); }
.r-legend { border-color: var(--r-legend); }
.r-myth { border-color: var(--r-myth); }
.r-empty { border-style: dashed; }
.r-empty img, .r-empty i { opacity: 0; }
.card.s3 .slot-forge { border-style: solid; border-color: var(--r-common); }
.card.s3 .slot-forge img, .card.s3 .slot-forge i, .card.s4 .slot-forge img, .card.s4 .slot-forge i, .card.s5 .slot-forge img, .card.s5 .slot-forge i { opacity: 1; transition: opacity 200ms ease; }
.card.s3 .slot-forge img { animation: pop 420ms var(--spring); }
@keyframes pop { from { transform: scale(0.6); } to { transform: scale(1); } }
.card.s4 .slot-enh, .card.s5 .slot-enh { border-color: var(--r-rare); }
.card.s4 .slot-enh i, .card.s5 .slot-enh i { color: var(--r-rare); }
:root[data-theme='light'] .card.s4 .slot-enh i, :root[data-theme='light'] .card.s5 .slot-enh i { color: var(--text); }
.path { margin: 0; padding: 0 16px 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: p; }
.path li { counter-increment: p; font-size: 12.5px; line-height: 1.3; color: var(--faint); padding: 8px; border-top: 2px solid var(--line); transition: color 200ms ease, border-color 200ms ease; }
.path li::before { content: counter(p); display: block; font-weight: 700; margin-bottom: 2px; }
.card.s1 .path li:nth-child(-n + 1), .card.s2 .path li:nth-child(-n + 2), .card.s3 .path li:nth-child(-n + 3), .card.s4 .path li:nth-child(-n + 4), .card.s5 .path li { color: var(--text); border-color: var(--accent); }
.replay { display: none; margin: 0 16px 16px; background: none; border: 1px solid var(--line-strong); color: var(--muted); border-radius: 4px; min-height: 44px; padding: 0 14px; font: 500 14px var(--font); cursor: pointer; }
.js .replay:not([hidden]) { display: inline-flex; align-items: center; }
.replay:hover { color: var(--text); background: var(--raised); }

/* bento */
.bento { display: grid; gap: 12px; margin-top: 32px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 22px; display: grid; gap: 12px; align-content: start; transition: transform 180ms var(--ease), border-color 180ms ease; }
.tile:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.tile h3 { font-size: 22px; line-height: 1.2; font-weight: 600; }
.tile p { color: var(--muted); }
.tag { color: var(--gold-text); font-weight: 600; font-size: 15px; }
.ticks { display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ''; position: absolute; left: 1px; top: 9px; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
.tile .btn { justify-self: start; }
.b-paths { grid-template-columns: repeat(12, 1fr); }
.t-player { grid-column: span 7; grid-template-columns: minmax(170px, 250px) 1fr; gap: 20px; align-items: end; align-content: stretch; background: radial-gradient(80% 100% at 15% 100%, var(--accent-soft) 0%, var(--panel) 65%); }
.t-studio { grid-column: span 5; grid-template-rows: auto auto 1fr auto; }
.t-studio .btn { align-self: end; }
.sec-alt .t-player { background: radial-gradient(80% 100% at 15% 100%, var(--accent-soft) 0%, var(--bg) 65%); }
.t-bust { width: 100%; height: auto; align-self: end; margin: 0 0 -22px -6px; }
.t-body { display: grid; gap: 12px; }
.t-world { grid-column: 1 / -1; padding: 0; overflow: hidden; grid-template-columns: 1fr 1fr; gap: 0; align-content: stretch; }
.t-world img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.t-world .t-body { padding: 22px; align-content: center; }
.t-world p { max-width: 52ch; }

/* the seven activities: every tile is a mini-scene of the hub (a scene of the game, a screen fragment, a caption and one action) */
.b-how { grid-template-columns: repeat(12, 1fr); }
.d { padding: 0; overflow: hidden; gap: 0; grid-template-rows: 1fr auto; align-content: stretch; grid-column: span 4; }
.d-forge, .d-auction, .d-mining, .d-enhance { grid-column: span 6; }
.media { position: relative; isolation: isolate; display: grid; place-items: center; padding: 36px 14px 14px; min-height: 236px; }
.media > .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.media::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--veil); }
.hud { width: 100%; max-width: 440px; display: grid; gap: 10px; padding: 12px; background: var(--hud); border: 1px solid var(--hud-line); border-radius: 6px; backdrop-filter: blur(6px); color: var(--text); }
.hud-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.hud-h small { color: var(--muted); font-size: 13px; font-weight: 500; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 8px; }
.row-l { justify-content: flex-start; }
.res { display: grid; justify-items: center; gap: 2px; min-width: 44px; font-size: 13px; font-weight: 700; line-height: 1; }
.res img { width: 36px; height: 36px; object-fit: contain; }
.res-sm img { width: 32px; height: 32px; }
.op { color: var(--gold-text); font-weight: 700; font-size: 20px; line-height: 1; }
.sl-l { width: 56px; flex: none; aspect-ratio: 1; }
.sl-xl { width: 64px; flex: none; aspect-ratio: 1; }
.sl-l img, .sl-xl img { width: 78%; height: 78%; }
.sl-l i { font-size: 12px; }
.item { display: flex; align-items: center; gap: 12px; }
.item-t { display: grid; gap: 2px; min-width: 0; }
.item-t b { font-weight: 600; font-size: 15px; line-height: 1.25; }
.item-t span { color: var(--muted); font-size: 13px; line-height: 1.3; }
.meter { display: block; height: 8px; background: var(--raised); border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--gold); border-radius: 2px; transition: width 700ms var(--ease); }
.m-q i { width: 66%; }
.m-s i { width: 40%; }
.m-g i { width: 78%; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 8px 2px 4px; background: var(--raised); border: 1px solid var(--line); border-radius: 4px; font-size: 13px; font-weight: 700; line-height: 1; }
.chip img { width: 22px; height: 22px; object-fit: contain; }
.chip-steps { gap: 4px; padding: 2px 8px; font-weight: 600; color: var(--muted); }
.chip-steps.done { color: var(--text); border-color: var(--ok); }
.chip-steps.done::before { content: '✓'; color: var(--ok); font-weight: 700; }
.chip-steps:not(.done)::before { content: '○'; }
.price { display: inline-flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 700; line-height: 1; }
.price img { width: 28px; height: 28px; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.timer { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.timer::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); }
.pillnote { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 2px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; }
.fine { font-size: 13px; color: var(--muted); }
.hud-note { color: var(--muted); font-size: 13px; line-height: 1.4; }
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: t; }
.ladder li { counter-increment: t; display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border: 1px solid var(--line); border-radius: 4px; background: var(--raised); color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1; transition: border-color 300ms ease, color 300ms ease; }
.ladder li::after { content: counter(t, upper-roman); }
.ladder li img { width: 32px; height: 32px; object-fit: contain; opacity: 0.55; transition: opacity 300ms ease; }
.ladder li.on { border-color: var(--r-rare); color: var(--text); }
.ladder li.on img { opacity: 1; }
.stat { display: grid; grid-template-columns: 24px 1fr; gap: 2px 8px; align-items: center; font-size: 13px; }
.stat img { width: 24px; height: 24px; grid-row: 1 / 3; }
.stat .meter { height: 6px; }
.stat-a i { width: 64%; background: var(--r-rare); }
.stat-b i { width: 78%; background: var(--r-rare); }
.ores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ore { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border: 1px solid var(--line); border-radius: 4px; background: var(--raised); font-size: 14px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ore img { width: 36px; height: 36px; object-fit: contain; }
.squad { display: flex; align-items: center; gap: 10px; }
.squad img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); flex: none; }
.cap { display: grid; gap: 6px; justify-items: start; padding: 16px 20px 20px; background: var(--panel); border-top: 1px solid var(--line); }
.sec-alt .cap { background: var(--bg); }
.cap h3 { font-weight: 600; font-size: 19px; line-height: 1.25; }
.cap span { color: var(--muted); font-size: 15px; }
.act { display: none; margin-top: 6px; min-height: 44px; padding: 0 16px; background: var(--accent); color: var(--on-accent); border: 1px solid transparent; border-radius: 4px; font: 600 15px/1 var(--font); cursor: pointer;
  transition: background-color 150ms ease, transform 120ms var(--ease); }
.js .act { display: inline-flex; align-items: center; justify-content: center; }
.act:hover { background: var(--accent-hover); }
.act:active { transform: scale(0.97); }

/* the demo of a tile: the finished state is the default; a click shows the "before" state and then plays it forward */
.d[data-state='before'] .meter i { width: 0; transition: none; }
.d[data-state='before'] .meter.m-q i, .d[data-state='before'] .meter.m-s i, .d[data-state='before'] .meter.m-g i { width: 0; }
.d[data-state='before'] .pop { opacity: 0; transform: scale(0.6); transition: none; }
.d[data-state='before'] .pop-s { opacity: 0; transform: translateY(8px); transition: none; }
.d[data-state='before'] .ladder li.on { border-color: var(--line); color: var(--muted); }
.d[data-state='before'] .ladder li.on img { opacity: 0.55; }
.d[data-state='before'] .ladder li:first-child { border-color: var(--r-rare); color: var(--text); }
.d[data-state='before'] .ladder li:first-child img { opacity: 1; }
.d[data-state='before'] .stat-a i, .d[data-state='before'] .stat-b i { width: 20%; transition: none; }
.d[data-state='after'] .pop { transition: opacity 260ms var(--ease), transform 420ms var(--spring); }
.d[data-state='after'] .pop-s { transition: opacity 260ms var(--ease), transform 380ms var(--ease); }
.d[data-state='after'] .pop-s:nth-child(2) { transition-delay: 80ms; }
.d[data-state='after'] .pop-s:nth-child(3) { transition-delay: 160ms; }
.d[data-state='after'] .pop-s:nth-child(4) { transition-delay: 240ms; }
.d[data-state='after'] .meter i { transition: width 800ms var(--ease); }
.d[data-state='after'] .stat-a i, .d[data-state='after'] .stat-b i { transition: width 800ms var(--ease) 200ms; }

.t-stats { grid-column: span 7; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.stats li { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-content: start; }
.stats .stats-note { display: block; align-self: center; color: var(--muted); font-size: 14px; }
.stats img { width: 36px; height: 36px; grid-row: 1 / 3; }
.stats b { font-weight: 600; font-size: 15px; }
.stats span { color: var(--muted); font-size: 14px; }
.t-gear { grid-column: span 5; }
.gear-slots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.gear-slots .sl { aspect-ratio: 1; }
.mats { display: flex; gap: 24px; flex-wrap: wrap; }
.mats span { display: grid; color: var(--muted); font-size: 14px; }
.mats b { font-size: 40px; line-height: 1; font-weight: 600; color: var(--text); }
.cap-s { color: var(--muted); font-size: 14px; }
.rbar { display: flex; height: 12px; border-radius: 2px; overflow: hidden; gap: 2px; }
.rleg { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.rleg li { display: inline-flex; align-items: center; gap: 6px; }
.rleg li::before { content: ''; width: 10px; height: 10px; border-radius: 1px; background: var(--c); }
.rleg b { color: var(--text); font-weight: 600; }

.b-st { grid-template-columns: repeat(3, 1fr); }
.t-flow { grid-column: span 2; grid-row: span 2; grid-template-rows: auto 1fr; }
.sub0 { color: var(--muted); font-size: 17px; max-width: 56ch; }
.flow { margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: f; align-items: stretch; }
.flow li { counter-increment: f; position: relative; background: var(--raised); border-radius: 4px; padding: 44px 12px 14px; font-weight: 600; }
.flow li::before { content: counter(f); position: absolute; left: 12px; top: 10px; font-size: 22px; color: var(--gold-text); }
.flow li:not(:last-child)::after { content: ''; position: absolute; right: -8px; top: 24px; width: 8px; height: 2px; background: var(--gold); }
.t-h { font-weight: 600; font-size: 17px; }
.t-proof { grid-column: 1 / -1; grid-template-columns: auto 1fr; column-gap: 32px; align-items: center; }
.t-proof h3 { grid-column: 1 / -1; }
.proof { display: flex; gap: 40px; flex-wrap: wrap; }
.proof div { display: grid; }
.proof dt { font-size: 56px; line-height: 1; font-weight: 600; color: var(--gold-text); }
.proof dd { margin: 4px 0 0; color: var(--muted); }
.fine-p { font-size: 14px; max-width: 44ch; }

/* contact, decks, limits */
.b-cta { grid-template-columns: 1.3fr 1fr; margin-top: 0; }
.t-form { gap: 16px; padding: 28px; }
.t-limits { grid-column: 1 / -1; }
.t-limits .ticks { grid-template-columns: 1fr 1fr; gap: 9px 28px; }
.form { display: grid; gap: 14px; }
.form .btn { justify-self: start; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.input { height: 48px; width: 100%; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); padding: 0 12px; font: 400 16px/1 var(--font); }
.sec-alt .input { background: var(--panel); }
.input:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 2px var(--accent-soft); }
.input[aria-invalid='true'] { border-color: var(--accent-text); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.seg label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; font-size: 15px; }
.seg input { accent-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.check a { color: var(--text); text-underline-offset: 3px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.formmsg { font-size: 14px; line-height: 1.5; color: var(--gold-text); }
.formmsg[data-state='error'] { color: var(--accent-text); }
.formmsg[data-state='ok'] { color: var(--ok); }
.deck { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.deck b { font-weight: 600; }
.deck span { color: var(--muted); font-size: 14px; }
.deck em { font-style: normal; color: var(--accent-text); font-weight: 500; font-size: 14px; }
.deck:hover b { text-decoration: underline; text-underline-offset: 3px; }
.deck-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.deck-links a { color: var(--accent-text); font-weight: 500; font-size: 14px; text-underline-offset: 3px; }
.t-decks h3 { margin-bottom: 2px; }

/* footer, legal pages, 404 */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.foot a { text-underline-offset: 3px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.foot-note { width: 100%; font-size: 13px; color: var(--faint); }
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.legal-date { margin-top: 10px; color: var(--faint); font-size: 14px; }
.legal section { margin-top: 32px; }
.legal h2 { font-size: 19px; line-height: 1.3; font-weight: 600; margin-bottom: 10px; }
.legal p { color: var(--muted); max-width: 68ch; }
.legal p + p { margin-top: 10px; }
.legal-back { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.legal-back a { text-underline-offset: 3px; }
.home-link { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 10px 4px; }
.home-link:hover { color: var(--text); }
.notfound { padding: 96px 0 120px; }
.notfound h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 600; }
.notfound p { margin-top: 12px; color: var(--muted); }
.notfound .btn { margin-top: 28px; }
.nf-sep { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* A2 cascade with a light spring (marketing page): once per group */
.js [data-cascade] > .tile { opacity: 0; transform: translateY(18px) scale(0.98); }
.js [data-cascade].in > .tile { opacity: 1; transform: none; transition: opacity 320ms var(--ease), transform 480ms var(--spring), border-color 180ms ease; }
.js [data-cascade].in > .tile:nth-child(2) { transition-delay: 50ms; }
.js [data-cascade].in > .tile:nth-child(3) { transition-delay: 100ms; }
.js [data-cascade].in > .tile:nth-child(4) { transition-delay: 150ms; }
.js [data-cascade].in > .tile:nth-child(5) { transition-delay: 200ms; }
.js [data-cascade].in > .tile:nth-child(n + 6) { transition-delay: 250ms; }
.js [data-cascade].in > .tile:hover { transform: translateY(-2px); transition-delay: 0ms; }

/* rarity classes .rbar .rar-N and .rleg .rar-N are generated by the build from the data of the page */

/* class: expanded and below (up to 1199 px) */
@media (max-width: 1199px) {
  .d, .d-forge, .d-auction, .d-mining, .d-enhance { grid-column: span 6; }
  .d-games { grid-column: span 12; }
  .d-games .media { min-height: 200px; }
  .t-stats { grid-column: span 12; }
  .t-gear { grid-column: span 12; }
}
/* class: medium and below (up to 839 px) */
@media (max-width: 839px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .b-st, .b-cta { grid-template-columns: 1fr; }
  .t-player, .t-studio { grid-column: 1 / -1; }
  .t-world { grid-template-columns: 1fr; }
  .t-world img { height: auto; aspect-ratio: 16 / 7; min-height: 0; }
  .t-limits .ticks { grid-template-columns: 1fr; }
  .b-how { grid-template-columns: 1fr 1fr; }
  .d, .d-forge, .d-auction, .d-mining, .d-enhance, .d-games, .t-stats, .t-gear { grid-column: span 1; }
  .d-forge, .d-auction, .d-games, .t-stats, .t-gear { grid-column: 1 / -1; }
  .t-flow { grid-column: auto; grid-row: auto; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(2)::after { display: none; }
  .t-proof { grid-template-columns: 1fr; }
}
/* class: compact (up to 599 px) */
@media (max-width: 599px) {
  .hdr-in { gap: 8px; }
  .hdr .hdr-cta, .hdr .pill:not(.hdr-lang-menu) { display: none; }
  .hdr-lang-menu { display: inline-flex; }
  .brand small { display: none; }
  .acts .btn { flex: 1 1 100%; }
  .slots { grid-template-columns: repeat(4, 1fr); }
  .path { grid-template-columns: 1fr; gap: 0; }
  .path li { display: flex; gap: 8px; border-top: 0; border-left: 2px solid var(--line); padding: 6px 10px; }
  .path li::before { margin: 0; }
  .card.s1 .path li:nth-child(-n + 1), .card.s2 .path li:nth-child(-n + 2), .card.s3 .path li:nth-child(-n + 3), .card.s4 .path li:nth-child(-n + 4), .card.s5 .path li { border-color: var(--accent); }
  .who { grid-template-columns: auto 1fr; }
  .rank { grid-column: 1 / -1; justify-items: start; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
  .bar { width: 100%; }
  .t-player { grid-template-columns: 1fr; }
  .t-bust { width: 150px; margin: 0 auto -22px; }
  .b-how { grid-template-columns: 1fr; }
  .d, .d-forge, .d-auction, .d-mining, .d-enhance, .d-games, .t-stats, .t-gear { grid-column: 1 / -1; }
  .media { padding: 34px 10px 10px; min-height: 220px; }
  .hud { padding: 10px; }
  .gear-slots { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow li::after { display: none; }
  .proof { gap: 24px; }
  .proof dt { font-size: 44px; }
  .tile { padding: 18px; }
  .d { padding: 0; }
  .t-form { padding: 18px; }
  .cap { padding: 14px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-cascade] > .tile { opacity: 1 !important; transform: none !important; }
  .tile:hover { transform: none; }
}

/* generated: rarity */
.rbar .rar-0 { width: 30.7692%; background: #4FAE6B; }
.rleg .rar-0 { --c: #4FAE6B; }
.rbar .rar-1 { width: 17.3077%; background: #5CBDE8; }
.rleg .rar-1 { --c: #5CBDE8; }
.rbar .rar-2 { width: 25.9615%; background: #9D72DC; }
.rleg .rar-2 { --c: #9D72DC; }
.rbar .rar-3 { width: 25.9615%; background: #E8893B; }
.rleg .rar-3 { --c: #E8893B; }
