/* ==========================================================================
   StateMine — стилі
   Мова дизайну: темне полотно, тонкі лінії, інтерфейс як продукт.
   Акцент — аметист. Всі кольори та розміри — токени нижче.
   ========================================================================== */

@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-400.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-500.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-600.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('/assets/fonts/inter-display-600.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('/assets/fonts/inter-display-700.woff') format('woff'); font-weight: 700; font-display: swap; }

[hidden] { display: none !important; }

:root {
  color-scheme: dark;
  /* поверхні */
  --canvas: #07080a;
  --surface: #0c0d0f;
  --surface-2: #111214;
  --surface-3: #161719;
  --surface-4: #1b1c1e;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.09);
  --line-3: rgba(255, 255, 255, 0.2);
  /* текст */
  --ink: #ffffff;
  --body: #a3a3a5;
  --mute: #858688;
  --ash: #6a6b6c;
  --dormant: #434345;
  /* аметист */
  --am-50: #f1e8ff;
  --am-200: #d9c2ff;
  --am-300: #c4a0ff;
  --am-400: #a97af5;
  --am-500: #8a5ce0;
  --am-700: #5b33a8;
  --am-900: #26164a;
  --accent: var(--am-300);
  --accent-soft: rgba(169, 122, 245, 0.14);
  /* режими */
  --c-industry: #ff9f5a;
  --c-magic: #c4a0ff;
  --c-technomagic: #5cc8ff;
  --c-zone: #c8e35a;
  --ok: #59d499;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter Display', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --feat: 'calt', 'kern', 'liga', 'ss03', 'cv11';

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  --gutter: clamp(20px, 3vw, 32px);
  --maxw: 1200px;
  --section: clamp(96px, 12vw, 168px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font: 400 16px/1.6 var(--font);
  font-feature-settings: var(--feat);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
kbd {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  font: 500 11px/1 var(--font);
  color: var(--mute);
  background: var(--surface-4);
  border-radius: 5px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--line);
}
::selection { background: var(--am-500); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; background: #fff; color: #000; border-radius: var(--r-md); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- типографіка ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(44px, 8.4vw, 90px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display--md { font-size: clamp(40px, 6vw, 84px); }
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section__lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--body); max-width: 56ch; text-wrap: pretty; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  font: 500 14px/1 var(--font); letter-spacing: 0.01em;
  border-radius: var(--r-md);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--primary { background: #fff; color: #0a0a0c; }
.btn--primary:hover { background: var(--am-50); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }

.ip {
  display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 6px 0 16px;
  border-radius: var(--r-md);
  background: rgba(17, 18, 22, 0.7);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.ip:hover { box-shadow: inset 0 0 0 1px var(--am-400); background: rgba(38, 22, 74, 0.45); }
.ip__addr { font: 500 15px/1 var(--font); color: var(--ink); font-feature-settings: var(--feat), 'tnum'; }
.ip__act {
  display: inline-grid; place-items: center; height: 36px; padding: 0 12px;
  border-radius: 6px; background: var(--surface-4); color: var(--body);
  font: 500 13px/1 var(--font);
  transition: background-color 0.2s, color 0.2s;
}
.ip:hover .ip__act { background: var(--am-700); color: #fff; }
.ip.is-copied .ip__act { background: var(--ok); color: #05210f; }

.link-arrow { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-weight: 500; }
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- навігація ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(7, 8, 10, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.brand__mark { width: 24px; height: 24px; transition: transform 0.5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.08); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--mute); transition: color 0.2s, background-color 0.2s; }
.nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.kbd-hint { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px 0 12px; border-radius: var(--r-md); color: var(--mute); font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); transition: color 0.2s, box-shadow 0.2s; }
.kbd-hint span { margin-right: 6px; }
.kbd-hint:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.nav .btn { height: 36px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; padding: 64px 0 40px; overflow: hidden; isolation: isolate; }
.hero__stage { position: absolute; inset: 0; z-index: -1; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__canvas.is-ready { opacity: 1; }
.hero__canvas.is-grabbing { cursor: grabbing; }
.hero__hint { position: absolute; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); top: 28px; display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: 13px; color: var(--mute); white-space: nowrap; pointer-events: none; opacity: 0; animation: hint-in 0.8s var(--ease) 2.6s forwards; transition: opacity 0.4s; }
.hero__hint svg { width: 16px; height: 16px; animation: hint-nudge 2.4s ease-in-out 3.4s infinite; }
.hero__hint.is-gone { opacity: 0 !important; animation: none; }
@keyframes hint-in { to { opacity: 1; } }
@keyframes hint-nudge { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-3px); } 60% { transform: translateX(3px); } }
@media (max-width: 820px) { .hero__hint { top: auto; bottom: 16px; right: 50%; transform: translateX(50%); z-index: 1; } }
.hero__fallback { display: none; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: min(60vw, 900px); height: auto; opacity: 0.9; }
.no-webgl .hero__fallback { display: block; }
.no-webgl .hero__hint { display: none; }
@media (max-width: 820px) { .hero__fallback { right: 50%; top: 0; transform: translateX(50%); width: min(100vw, 560px); opacity: 1; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); } }
.hero__aura {
  position: absolute; width: 72vmin; height: 72vmin; right: 4%; top: 46%;
  transform: translate(0, -50%);
  background: radial-gradient(closest-side, rgba(138, 92, 224, 0.32), rgba(138, 92, 224, 0.08) 55%, transparent);
  pointer-events: none;
}
.hero::after { /* притемнення під текстом */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 8, 10, 0.9) 0%, rgba(7, 8, 10, 0.5) 32%, rgba(7, 8, 10, 0) 52%);
}
.hero__in { position: relative; pointer-events: none; }
.hero__copy { max-width: 700px; pointer-events: auto; }
.hero__copy .hero__lead { max-width: 42ch; }
.hero__lead { margin-top: 32px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--body); max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__meta { margin-top: 16px; font-size: 14px; color: var(--mute); }

.status {
  position: relative; margin-top: clamp(56px, 9vh, 112px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r-lg);
  background: rgba(12, 13, 16, 0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.status li { padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; }
.status li + li { box-shadow: inset 1px 0 0 var(--line); }
.status__dot { grid-row: span 2; width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.status__name { color: var(--ink); font-weight: 500; }
.status__ver { justify-self: end; font-size: 13px; color: var(--mute); font-feature-settings: var(--feat), 'tnum'; }
.status__state { grid-column: 2 / 4; font-size: 13px; color: var(--mute); display: flex; align-items: center; gap: 6px; }
.status__state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ash); }
.status__state[data-state='online']::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(89, 212, 153, 0.18); }
.status__state[data-state='online'] { color: var(--body); }
.status__state[data-state='offline']::before { background: #f0b45a; }
/* «скоро» — те, що робимо зараз, але в грі ще немає */
.soon { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-left: 6px; vertical-align: 3px; border-radius: 999px;
  font: 500 12px/1 var(--font); letter-spacing: 0; color: var(--am-200); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(169, 122, 245, 0.28); white-space: nowrap; }

/* ---------- секції ---------- */
.section { padding: var(--section) 0; position: relative; }
.section--tint { background: var(--surface); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }

/* вікно-інтерфейс */
.win {
  border-radius: var(--r-xl);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.win__bar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; color: var(--mute); box-shadow: inset 0 -1px 0 var(--line); font-size: 15px; }
.win__bar svg { width: 18px; height: 18px; }
.win__bar-end { margin-left: auto; font-size: 13px; }
.win__foot { display: flex; justify-content: space-between; gap: 16px; align-items: center; height: 44px; padding: 0 16px; font-size: 12px; color: var(--mute); background: var(--surface-3); box-shadow: inset 0 1px 0 var(--line); }
.win__foot span { display: inline-flex; align-items: center; gap: 4px; }
.win__foot kbd { margin-right: 2px; }

/* ---------- режими ---------- */
.modes__body { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; min-height: 460px; }
.modes__list { padding: 8px; box-shadow: inset -1px 0 0 var(--line); display: flex; flex-direction: column; gap: 2px; }
.mode-row {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px;
  width: 100%; padding: 10px 12px; border-radius: var(--r-md); text-align: left;
  transition: background-color 0.15s;
}
.mode-row:hover { background: rgba(255, 255, 255, 0.04); }
.mode-row[aria-selected='true'] { background: rgba(255, 255, 255, 0.08); }
.mode-row__icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); }
.mode-row__icon svg { width: 22px; height: 22px; image-rendering: pixelated; }
.mode-row__name { color: var(--ink); font-weight: 500; line-height: 1.3; }
.mode-row__sub { display: block; font-size: 13px; color: var(--mute); font-weight: 400; }
.mode-row__ver { font-size: 12px; color: var(--mute); padding: 3px 7px; border-radius: 5px; background: var(--surface-4); font-feature-settings: var(--feat), 'tnum'; }

.modes__detail { padding: clamp(24px, 3.4vw, 44px); display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-content: start; position: relative; overflow: hidden; }
.modes__detail::before { /* підсвітка кольором режиму */
  content: ''; position: absolute; right: -10%; top: -30%; width: 70%; height: 90%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 18%, transparent), transparent);
  pointer-events: none; transition: background 0.4s;
}
.md__title { font: 600 clamp(36px, 4vw, 56px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.md__tag { margin-top: 12px; font-size: 19px; color: var(--c); font-weight: 500; }
.md__text { margin-top: 20px; max-width: 54ch; color: var(--body); font-size: 17px; }
.md__emblem { width: clamp(88px, 10vw, 128px); height: auto; image-rendering: pixelated; position: relative; }
.md__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.md__facts div { padding: 14px 16px; }
.md__facts div + div { box-shadow: inset 1px 0 0 var(--line); }
.md__facts dt { font-size: 13px; color: var(--mute); }
.md__facts dd { margin-top: 2px; color: var(--ink); font-weight: 500; font-feature-settings: var(--feat), 'tnum'; }
.md__mods { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--r-sm); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--body); }
.chip i { width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--accent)); }
.md__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; position: relative; }
.md__addr { font-size: 14px; color: var(--mute); }
.md__addr b { color: var(--ink); font-weight: 500; }

.md-anim > * { animation: md-in 0.45s var(--ease) both; }
.md-anim > *:nth-child(2) { animation-delay: 0.04s; }
.md-anim > *:nth-child(3) { animation-delay: 0.08s; }
.md-anim > *:nth-child(4) { animation-delay: 0.12s; }
.md-anim > *:nth-child(5) { animation-delay: 0.16s; }
@keyframes md-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- моди / палітра ---------- */
.mods-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.mods-grid__copy .section__lead { margin-top: 24px; }
.mods-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; margin: 40px 0; }
.mods-stats b { display: block; font: 600 clamp(40px, 4vw, 56px)/1 var(--font-display); color: var(--ink); letter-spacing: -0.03em; font-feature-settings: var(--feat), 'tnum'; }
.mods-stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--mute); }

.palette { display: flex; flex-direction: column; height: 560px; }
.palette__search { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px 0 20px; color: var(--mute); box-shadow: inset 0 -1px 0 var(--line); cursor: text; }
.palette__search svg { width: 18px; height: 18px; flex: none; }
.palette__search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; color: var(--ink); font: 400 17px/1 var(--font); }
.palette__search input::placeholder { color: var(--ash); }
.palette__search input::-webkit-search-cancel-button { display: none; }
.palette__keys { display: flex; gap: 4px; }
.palette__filters { display: flex; gap: 6px; padding: 10px 12px; box-shadow: inset 0 -1px 0 var(--line); }
.palette__filters button { height: 28px; padding: 0 10px; border-radius: 6px; font-size: 13px; color: var(--mute); transition: background-color 0.15s, color 0.15s; }
.palette__filters button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.palette__filters button[aria-pressed='true'] { color: var(--ink); background: var(--surface-4); box-shadow: inset 0 0 0 1px var(--line-2); }
.palette__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.palette__list { overflow-y: auto; padding: 6px 8px 12px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--surface-4) transparent; box-shadow: inset -1px 0 0 var(--line); }
.palette__group { padding: 12px 10px 6px; font-size: 12px; font-weight: 500; color: var(--ash); }
.mod-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-md); cursor: pointer; }
.mod-row:hover { background: rgba(255, 255, 255, 0.04); }
.mod-row[aria-selected='true'] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(169, 122, 245, 0.28); }
.mod-row__name { color: var(--ink); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod-row__ver { font-size: 12px; color: var(--mute); font-feature-settings: var(--feat), 'tnum'; }
.mod-row mark { background: none; color: var(--am-200); font-weight: 600; }
.mod-icon { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; flex: none; }
.palette__detail { padding: 24px; overflow-y: auto; }
.pd__head { display: flex; align-items: center; gap: 14px; }
.pd__head .mod-icon { width: 48px; height: 48px; border-radius: 10px; }
.pd__name { font: 600 22px/1.2 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.pd__cat { font-size: 14px; color: var(--mute); }
.pd__text { margin-top: 18px; color: var(--body); font-size: 15px; }
.pd__meta { margin-top: 20px; display: grid; gap: 1px; border-radius: var(--r-md); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.pd__meta div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; font-size: 14px; }
.pd__meta div + div { box-shadow: inset 0 1px 0 var(--line); }
.pd__meta dt { color: var(--mute); }
.pd__meta dd { color: var(--ink); text-align: right; }
.pd__modes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--body); }
.tag i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.pd__link { display: inline-flex; margin-top: 20px; color: var(--accent); font-size: 14px; font-weight: 500; }
.pd__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.palette__empty { padding: 32px 16px; color: var(--mute); font-size: 15px; }

/* ---------- сервер ---------- */
.server { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px 80px; align-items: start; }
.server__copy .section__lead { margin-top: 24px; }
.chat {
  margin-top: 48px; padding: 20px 22px; border-radius: var(--r-lg);
  min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end;
  background: url('/assets/island-poster.jpg') 60% 35% / 150% auto no-repeat, var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 15px; line-height: 1.55; color: #e9e9ee;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}
.chat p { padding: 3px 8px; background: rgba(0, 0, 0, 0.55); max-width: 92%; }
.chat p + p { margin-top: 2px; }
.chat b { font-weight: 600; }
.chat i { font-style: normal; color: #fff; }
.c-gold { color: #ffcf4a; } .c-aqua { color: #5ff0ef; } .c-green { color: #6fe36f; } .c-purple { color: var(--am-300); } .c-gray { color: #bdbdc6; }
.chat__input { margin-top: 12px !important; display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, 0.6) !important; color: var(--mute); }
.chat__caret { width: 9px; height: 2px; background: #fff; align-self: flex-end; margin-bottom: 7px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; padding-top: 8px; }
.features li { padding-top: 20px; box-shadow: inset 0 1px 0 var(--line-2); }
.features h3 { font: 600 19px/1.3 var(--font); color: var(--ink); letter-spacing: -0.005em; }
.features p { margin-top: 10px; font-size: 16px; color: var(--body); }

/* ---------- кадри з гри ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.shot { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; font-size: 13.5px; line-height: 1.35; color: var(--ink); background: linear-gradient(0deg, rgba(7, 8, 10, 0.88), rgba(7, 8, 10, 0)); }
.shot figcaption b { display: block; font-size: 12px; font-weight: 600; color: var(--am-200); }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shots { grid-template-columns: minmax(0, 1fr); } }

/* ---------- як почати ---------- */
.start { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.start--guide { align-items: start; }
.steps { margin-top: 48px; counter-reset: s; display: grid; gap: 28px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; }
.steps li::before {
  content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; font: 600 15px/1 var(--font); color: var(--am-200);
  background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(169, 122, 245, 0.3);
}
.steps h3 { font: 600 19px/1.35 var(--font); color: var(--ink); }
.steps p { color: var(--body); }
.steps li > * { grid-column: 2; }
.steps li > .btn { justify-self: start; margin-top: 8px; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }


/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq__head .section__lead { margin-top: 24px; }
.faq__list details { box-shadow: inset 0 -1px 0 var(--line-2); }
.faq__list details:first-child { box-shadow: inset 0 1px 0 var(--line-2), inset 0 -1px 0 var(--line-2); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font: 500 clamp(18px, 1.6vw, 21px)/1.35 var(--font); color: var(--ink); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.3s var(--ease), border-color 0.2s; }
.faq__list details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); border-color: var(--accent); }
.faq__list summary:hover::after { border-color: var(--ink); }
.faq__list details p { padding: 0 48px 28px 0; color: var(--body); font-size: 17px; max-width: 62ch; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(120px, 14vw, 200px) 0; overflow: hidden; isolation: isolate; text-align: left; background: var(--am-900); }
.cta__stripes { position: absolute; inset: 0; z-index: -1; opacity: 0.9;
  background:
    linear-gradient(115deg, transparent 0 52%, #3d2178 52% 60%, transparent 60% 63%, #4e2b98 63% 71%, transparent 71% 74%, #6a3ec4 74% 82%, transparent 82%);
}
.cta__in .section__lead { margin-top: 24px; color: var(--am-50); }
.cta .ip { background: rgba(7, 8, 10, 0.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }

/* ---------- футер ---------- */
.footer { padding: 96px 0 32px; background: var(--canvas); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__cols > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__h { font: 500 14px/1.4 var(--font); color: var(--mute); margin-bottom: 6px; }
.footer__cols a, .footer__ip { color: var(--body); font-size: 15px; transition: color 0.2s; }
.footer__cols a:hover, .footer__ip:hover { color: var(--accent); }
.footer__note { font-size: 14px; color: var(--mute); }
.footer__word {
  margin: 80px 0 24px;
  font: 700 clamp(64px, 19.5vw, 280px)/0.8 var(--font-display); letter-spacing: -0.055em;
  color: var(--surface-3);
  white-space: nowrap; user-select: none;
  transition: color 0.6s var(--ease);
}
.footer:hover .footer__word { color: #1d1530; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--line); font-size: 13px; color: var(--ash); }

/* ---------- тост ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: var(--r-md); background: var(--surface-4); color: var(--ink); font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- поява при скролі ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- сторінка каталогу ---------- */
.page-head { padding: clamp(72px, 9vw, 120px) 0 40px; }
.page-head .section__lead { margin-top: 24px; }
.catalog__bar { position: sticky; top: var(--nav-h); z-index: 20; padding: 16px 0; background: rgba(7, 8, 10, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.catalog__controls { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 12px 16px; align-items: center; }
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--mute); transition: box-shadow 0.2s; }
.search:focus-within { box-shadow: inset 0 0 0 1px var(--am-400), 0 0 0 4px var(--accent-soft); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: 400 16px/1 var(--font); }
.catalog__controls > * { min-width: 0; }
.nav__links a[aria-current='page'] { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.seg { display: inline-flex; max-width: 100%; padding: 4px; gap: 2px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { height: 38px; padding: 0 14px; border-radius: 6px; font-size: 14px; color: var(--mute); white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed='true'] { background: var(--surface-4); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.filters-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); transition: color 0.15s, background-color 0.15s, box-shadow 0.15s; }
.filter i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.filter:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.filter[aria-pressed='true'] { color: var(--ink); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.catalog { padding: 32px 0 var(--section); }
.catalog__summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.catalog__count { color: var(--mute); font-size: 14px; }
.catalog__reset { min-height: 44px; color: var(--ink); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.catalog__reset:hover { color: var(--accent); }
.catalog__controls .seg { flex-wrap: wrap; }
.catalog__controls .seg button, .catalog__controls .filter { min-height: 44px; height: auto; padding-top: 10px; padding-bottom: 10px; }
.catalog__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.cat-item { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 22px 0; box-shadow: inset 0 -1px 0 var(--line); }
.cat-item .mod-icon { width: 48px; height: 48px; border-radius: 10px; grid-row: span 3; }
.cat-item h2 { font: 600 18px/1.3 var(--font); color: var(--ink); }
.cat-item p { color: var(--body); font-size: 15px; }
.cat-item__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--mute); }
.catalog__empty { padding: 64px 0; color: var(--mute); font-size: 17px; }
.cat-item mark { background: none; color: var(--am-200); font-weight: 600; }

/* ==========================================================================
   v2: до відкриття, стрічка, банер режиму, дорожня карта, ефекти
   ========================================================================== */
.is-live .only-pre { display: none !important; }
html:not(.is-live) .only-live { display: none !important; }

/* заголовок по словах */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split .w > span { display: inline-block; transform: translateY(110%); animation: word-in 1s var(--ease) forwards; animation-delay: calc(var(--wi) * 80ms + 120ms); }
@keyframes word-in { to { transform: none; } }
.nav .btn svg { width: 18px; height: 18px; }

/* прогрес у hero */
.hero__progress { margin-top: 36px; max-width: 460px; }
.hp__row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--mute); }
.hp__row b { color: var(--ink); font-weight: 500; }
.hp__bar, .status__bar, .md__stage-bar { position: relative; display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.hp__bar { margin-top: 12px; }
.hp__bar i, .status__bar i, .md__stage-bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p)); background: var(--c, var(--am-400)); border-radius: inherit; animation: bar-in 1.6s var(--ease) both 0.6s; }
@keyframes bar-in { from { transform: scaleX(0); } }

/* статус-рядок до відкриття */
.status__stage { grid-column: 2 / 4; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--mute); }
.status__stage b { color: var(--ink); font-weight: 500; font-feature-settings: var(--feat), 'tnum'; }
.status__bar { grid-column: 1 / -1; margin-top: 8px; height: 3px; }

/* стрічка модів */
.ticker { position: relative; overflow: hidden; padding: 22px 0; box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 90s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__row { display: flex; gap: 44px; padding-right: 44px; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--mute); }
.ticker__item .mod-icon { width: 22px; height: 22px; border-radius: 5px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* деталі режиму з банером */
.modes__detail { display: block; padding: 0; }
.modes__detail::before { display: none; }
.md__banner { position: relative; height: clamp(180px, 22vw, 250px); overflow: hidden; background: #0a0b0e; }
.md__banner canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.md__banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 18, 22, 0) 35%, rgba(17, 18, 22, 0.92) 100%); pointer-events: none; }
.md__banner-in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: flex-end; gap: 20px; padding: 0 clamp(20px, 3vw, 36px) 22px; }
.md__banner .md__emblem { width: 64px; height: 64px; padding: 10px; flex: none; border-radius: 12px; background: rgba(7, 8, 10, 0.72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.md__banner .md__title { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.md__banner .md__tag { margin-top: 8px; font-size: 17px; }
.md__content { padding: 24px clamp(20px, 3vw, 36px) clamp(24px, 3vw, 36px); display: grid; gap: 24px; }
.md__content .md__text { margin-top: 0; }
.md__stage { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--mute); }
.md__stage-bar { width: 96px; }

/* дорожня карта */
.roadmap__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 72px; }
.roadmap__head .section__lead { margin-top: 24px; }
.roadmap__total { text-align: right; flex: none; }
.roadmap__total b { display: block; font: 600 clamp(64px, 8.5vw, 128px)/0.9 var(--font-display); letter-spacing: -0.04em; color: var(--ink); font-feature-settings: var(--feat), 'tnum'; }
.roadmap__total span { display: block; margin-top: 12px; color: var(--mute); font-size: 15px; }
.roadmap { position: relative; display: grid; grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr)); gap: 0 24px; }
.roadmap::before, .roadmap::after { content: ''; position: absolute; left: 0; top: 7px; height: 2px; border-radius: 1px; }
.roadmap::before { right: 0; background: var(--line-2); }
.roadmap::after { width: calc(var(--fill, 0) * 100%); background: var(--am-400); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease) 0.2s; }
.roadmap.is-drawn::after { transform: none; }
.rm { position: relative; padding-top: 40px; }
.rm__dot { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 3px; background: var(--surface-4); box-shadow: inset 0 0 0 1px var(--line-3); z-index: 1; }
.rm--done .rm__dot { background: var(--am-400); box-shadow: none; }
.rm--done .rm__dot::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #160b2c; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rm--now .rm__dot { background: var(--canvas); box-shadow: inset 0 0 0 2px var(--am-300); }
.rm--now .rm__dot::before { content: ''; position: absolute; inset: 4px; border-radius: 1px; background: var(--am-300); }
.rm--now .rm__dot::after { content: ''; position: absolute; inset: -6px; border-radius: 6px; box-shadow: 0 0 0 2px var(--am-400); opacity: 0; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { opacity: 0.7; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.4); } }
.rm__status { font-size: 13px; font-weight: 500; color: var(--ash); }
.rm--done .rm__status { color: var(--ok); }
.rm--now .rm__status { color: var(--am-300); }
.rm h3 { margin-top: 6px; font: 600 18px/1.3 var(--font); color: var(--ink); }
.rm p { margin-top: 8px; font-size: 15px; color: var(--body); }
.rm--next h3 { color: var(--body); }
.rm--next p { color: var(--mute); }

/* лаунчер */
.launcher-fig { margin: 0; }
.launcher-fig figcaption { margin-top: 14px; font-size: 13px; color: var(--mute); }
.launcher-shot {
  display: block; width: 100%; height: auto; aspect-ratio: 27 / 17;
  border-radius: var(--r-xl); background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.downloads { align-items: center; }
.downloads__note { font-size: 14px; color: var(--mute); max-width: 32ch; }
.downloads__hint { margin-top: 14px; font-size: 14px; color: var(--mute); max-width: 52ch; text-wrap: pretty; }
.downloads__hint a { color: var(--body); text-underline-offset: 3px; }
main p a:not(.btn):not(.link-arrow), main li a:not(.btn):not(.link-arrow) { text-decoration: underline; text-underline-offset: 3px; }
.downloads__hint a:hover { color: var(--ink); }
.downloads__hint--mac { font-size: 13px; }
.downloads__share { margin-top: 12px; }
.downloads .btn[hidden] { display: none; }
.has-launcher .no-launcher { display: none !important; }
html:not(.has-launcher) .only-launcher { display: none !important; }

/* підсвітка під курсором */
.spot { position: relative; }
.spot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity 0.4s var(--ease);
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(196, 160, 255, 0.07), transparent 45%); }
.spot:hover::after { opacity: 1; }

/* ---------- адаптив ---------- */
/* кнопка меню — лише там, де посилання шапки не вміщаються */
.nav__burger { display: none; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--r-md); color: var(--body); font: 500 14px/1 var(--font); box-shadow: inset 0 0 0 1px var(--line-2); transition: color 0.2s, box-shadow 0.2s; }
.nav__burger svg { width: 18px; height: 18px; }
.nav__burger:hover, .nav.is-open .nav__burger { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.is-open .nav__links {
    display: grid; gap: 2px; position: absolute; top: var(--nav-h); left: 0; right: 0;
    padding: 12px var(--gutter) 20px; background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 24px 48px rgba(0, 0, 0, 0.5);
  }
  .nav.is-open .nav__links a { padding: 12px; font-size: 16px; }
  .kbd-hint { display: none; }
  .mods-grid, .start, .faq, .server { grid-template-columns: 1fr; gap: 56px; }
  .faq__head { position: static; }
  .section__head { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(90deg, rgba(7, 8, 10, 0.9) 0%, rgba(7, 8, 10, 0.55) 50%, rgba(7, 8, 10, 0.1) 80%); }
}
@media (max-width: 820px) {
  :root { --nav-h: 56px; }
  .hero { min-height: auto; padding: 0 0 32px; justify-content: flex-start; }
  .hero__stage { position: relative; height: 62vw; min-height: 300px; max-height: 480px; inset: auto; }
  .hero__aura { right: 50%; top: 50%; transform: translate(50%, -50%); width: 90vw; height: 90vw; }
  .hero::after { display: none; }
  .hero__stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, var(--canvas)); }
  .hero__lead { margin-top: 20px; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .btn, .hero__actions .ip { width: 100%; }
  .ip { justify-content: space-between; }
  .status { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .status li { padding: 14px; grid-template-columns: auto minmax(0, 1fr); }
  .status__ver { display: none; }
  .status__state { grid-column: 2; }
  .chat { min-height: 360px; background-size: 260% auto; }
  .status li:nth-child(3) { box-shadow: inset 0 1px 0 var(--line); }
  .status li:nth-child(4) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
  .modes__body { grid-template-columns: 1fr; }
  .modes__list { flex-direction: row; overflow-x: auto; box-shadow: inset 0 -1px 0 var(--line); scrollbar-width: none; }
  .mode-row { grid-template-columns: 28px auto; width: auto; flex: none; padding: 8px 12px 8px 8px; }
  .mode-row__icon { width: 28px; height: 28px; }
  .mode-row__icon svg { width: 18px; height: 18px; }
  .mode-row__sub, .mode-row__ver { display: none; }
  .modes__detail { grid-template-columns: 1fr auto; }
  .md__facts { grid-template-columns: 1fr 1fr; }
  .md__facts div:nth-child(3) { box-shadow: inset 0 1px 0 var(--line); }
  .md__facts div:nth-child(4) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
  .win__foot { display: none; }
  .palette { height: auto; }
  .palette__body { grid-template-columns: 1fr; }
  .palette__list { max-height: 340px; box-shadow: inset 0 -1px 0 var(--line); }
  .palette__keys { display: none; }
  .features { grid-template-columns: 1fr; gap: 32px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .catalog__controls { grid-template-columns: 1fr; }
  .catalog__bar { position: static; }
  .search kbd { display: none; }
  .seg { overflow-x: auto; }
  .catalog__list { grid-template-columns: 1fr; }
  .nav__discord { display: none; }
}
@media (max-width: 420px) {
  .nav__burger { padding: 0 9px; }
  .nav__burger span { display: none; }
  .md__emblem { display: none; }
  .modes__detail { grid-template-columns: 1fr; }
  .mods-stats { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .roadmap__head { flex-direction: column; align-items: flex-start; }
  .roadmap__total { text-align: left; }
  .roadmap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
  .roadmap::before, .roadmap::after { display: none; }
}
@media (max-width: 820px) {
  .hero__progress { margin-top: 28px; max-width: none; }
  .status__stage span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .roadmap { grid-template-columns: 1fr; gap: 0; }
  .roadmap::before, .roadmap::after { display: block; left: 7px; top: 8px; bottom: 8px; width: 2px; height: auto; right: auto; }
  .roadmap::after { height: calc(var(--fill, 0) * 100%); bottom: auto; transform-origin: top; transform: scaleY(0); }
  .rm { padding: 0 0 32px 40px; }
  .rm__dot { top: 2px; }
  .md__banner { height: auto; padding-top: 132px; }
  .md__banner canvas { height: 150px; bottom: auto; }
  .md__banner::after { bottom: auto; height: 150px; }
  .md__banner-in { position: relative; padding: 0 20px 4px; }
  .md__banner .md__emblem { display: none !important; }
  .md__banner .md__tag { font-size: 15px; }
  .ticker { padding: 16px 0; }
}
@media (max-width: 420px) { .md__banner .md__emblem { display: block; } }
@media (prefers-reduced-motion: reduce) {
  .split .w > span { transform: none; animation: none; }
  .ticker__track { animation: none; }
  .roadmap::after { transform: none !important; transition: none; }
}

/* ==========================================================================
   Акаунт: реєстрація, кабінет, магазин
   ========================================================================== */
.page-narrow { max-width: 520px; }
.card {
  background: var(--surface-2); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line); padding: clamp(20px, 3vw, 32px);
}
.form { display: grid; gap: 18px; }
.field-in { display: grid; gap: 8px; }
.field-in > span { font-size: 13px; color: var(--mute); }
.field-in input, .field-in select, .field-in textarea {
  height: 46px; padding: 0 14px; border: 0; border-radius: var(--r-md); font: inherit; font-size: 15px;
  color: var(--ink); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.15s, background-color 0.15s; caret-color: var(--am-300);
}
.field-in textarea { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field-in input:hover, .field-in textarea:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.field-in input:focus, .field-in textarea:focus { outline: none; background: var(--surface-4); box-shadow: inset 0 0 0 1px var(--am-400), 0 0 0 3px rgba(169, 122, 245, 0.18); }
.field-in input[aria-invalid='true'], .field-in textarea[aria-invalid='true'] { box-shadow: inset 0 0 0 1px #ff8a96; }
.field-in small { font-size: 12.5px; color: var(--ash); }
.form__error { color: #ff8a96; font-size: 14px; line-height: 1.45; }
.form__error[hidden], .form__ok[hidden] { display: none; }
.form__ok { color: var(--ok); font-size: 14px; }
.form__alt { font-size: 14px; color: var(--mute); }
.form__alt a { color: var(--am-200); text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn.is-busy { opacity: 0.7; pointer-events: none; }

/* кабінет */
.acc-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.acc-avatar { width: 64px; height: 64px; border-radius: var(--r-md); overflow: hidden; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; font: 600 26px/1 var(--font-display); color: var(--am-200); }
.acc-avatar img { width: 100%; height: 100%; image-rendering: pixelated; }
.acc-name { font: 600 clamp(28px, 4vw, 40px)/1.05 var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.acc-sub { color: var(--mute); font-size: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--am-200); background: var(--accent-soft); }
.pill--gold { color: #2a1a00; background: #ffc46b; }
.pill--green { color: #062012; background: var(--ok); }
.acc-tabs { display: flex; gap: 4px; margin: 28px 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.acc-tabs button { height: 44px; padding: 0 14px; font: inherit; font-size: 14px; color: var(--mute); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.acc-tabs button:hover { color: var(--ink); }
.acc-tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--am-400); }
.acc-pane[hidden] { display: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat { padding: 16px; border-radius: var(--r-md); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.stat b { display: block; font: 600 26px/1.1 var(--font-display); color: var(--ink); font-feature-settings: var(--feat), 'tnum'; }
.stat span { font-size: 12.5px; color: var(--mute); }
.stats-server { margin: 22px 0 10px; font-size: 14px; font-weight: 600; color: var(--ink); display: flex; gap: 10px; align-items: baseline; }
.stats-server small { font-weight: 400; color: var(--ash); }
.empty-note { color: var(--mute); font-size: 15px; max-width: 52ch; }
.top-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.top-tabs button { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--body); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.top-tabs button:hover:not([aria-pressed='true']) { background: var(--surface-4); color: var(--ink); }
.top-tabs button[aria-pressed='true'] { background: var(--am-700); color: #fff; box-shadow: inset 0 0 0 1px var(--am-500); }
.top-online { margin-top: 16px; color: var(--mute); font-size: 14px; }
.top-title { margin: 32px 0 12px; font: 600 clamp(20px, 2.4vw, 24px)/1.2 var(--font-display); color: var(--ink); }
.top-wrap { overflow-x: auto; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.top-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; font-feature-settings: var(--feat), 'tnum'; }
.top-table th, .top-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.top-table tr:last-child td { border-bottom: 0; }
.top-table th { font-size: 12.5px; font-weight: 500; color: var(--mute); }
.top-table .num { text-align: right; color: var(--body); }
.top-name { color: var(--ink); font-weight: 600; }
.top-place { width: 44px; color: var(--ash); }
.top-empty { margin-top: 28px; display: grid; gap: 16px; justify-items: start; }
.acc-next { max-width: 640px; }
.acc-next__title { font: 600 clamp(22px, 3vw, 28px)/1.15 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.acc-next .steps { margin-top: 22px; gap: 22px; }
.fb-stats { margin-bottom: 18px; }
.fb-item { padding: 16px; border-radius: var(--r-md); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; }
.fb-item + .fb-item { margin-top: 10px; }
.fb-item.is-done { opacity: 0.6; }
.fb-item__head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; font-size: 13px; color: var(--mute); }
.fb-item__head b { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.fb-item__text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--body); font-size: 15px; }
.fb-item .btn { justify-self: start; }
.skin-grid { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 28px; align-items: start; }
.skin-stage { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(60% 50% at 50% 62%, rgba(169, 122, 245, 0.16), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.skin-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.skin-stage.is-over { box-shadow: inset 0 0 0 2px var(--am-400); }
.skin-stage__hint { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: var(--ash); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.radio { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--body); cursor: pointer; }
.radio input { accent-color: var(--am-400); width: 16px; height: 16px; }
.orders { display: grid; gap: 10px; }
.order { padding: 16px 18px; border-radius: var(--r-md); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; }
.order__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink); }
.order__meta { font-size: 13px; color: var(--mute); }
.order__won { font-size: 13px; color: var(--am-200); }

/* магазин: див. shop.css; тут лише спільне */
.cart__note { font-size: 12.5px; color: var(--mute); }
dialog.modal { max-width: min(560px, calc(100vw - 32px)); width: 100%; border: 0; border-radius: var(--r-lg); padding: 24px; color: var(--body); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 64px rgba(0, 0, 0, 0.7); }
dialog.modal::backdrop { background: rgba(5, 6, 8, 0.7); }
dialog.modal h2 { font: 600 24px/1.1 var(--font-display); color: var(--ink); margin-bottom: 14px; }
.nav__account { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 4px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; font-size: 14px; }
.nav__account:hover { background: rgba(255, 255, 255, 0.06); }
.nav__account img, .nav__account i { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; background: var(--surface-3); display: grid; place-items: center; font-style: normal; font-weight: 600; color: var(--am-200); }
@media (max-width: 900px) {
  .shop-layout, .skin-grid { grid-template-columns: 1fr; }
  .cart { position: static; }
}
@media (prefers-reduced-motion: reduce) { .reel__track { transition: none !important; } }
.section--tight { padding: 8px 0 clamp(72px, 9vw, 120px); }
.h3 { font: 600 19px/1.2 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.pill[hidden] { display: none; }

/* ---------- новини ---------- */
.page-narrow--read { max-width: 720px; }
.news-head { grid-template-columns: 1fr auto; margin-bottom: 40px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.news-grid .news-item { padding: 28px 28px 28px 0; }
.news-grid .news-item + .news-item { padding-left: 28px; box-shadow: inset 1px 0 0 var(--line); }
.news-list .news-item { padding: 32px 0; border-top: 1px solid var(--line-2); scroll-margin-top: 88px; }
.news-list .news-item:target .news-item__title { color: var(--am-200); }
.news-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--mute); }
.news-item__meta time { font-variant-numeric: tabular-nums; }
.news-item__title { margin-top: 12px; font: 600 clamp(19px, 1.6vw, 22px)/1.3 var(--font-display); color: var(--ink); text-wrap: balance; }
.news-item p { margin-top: 10px; color: var(--body); max-width: 65ch; text-wrap: pretty; }
.news-item .link-arrow { margin-top: 14px; font-size: 15px; }
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-grid .news-item, .news-grid .news-item + .news-item { padding: 24px 0; box-shadow: inset 0 1px 0 var(--line); }
  .news-grid .news-item:first-child { box-shadow: none; }
  .news-head { grid-template-columns: 1fr; }
}

/* ---------- вікі ---------- */
.wiki { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.wiki__toc { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 2px; font-size: 15px; max-height: calc(100dvh - var(--nav-h) - 56px); overflow-y: auto; padding: 0 12px 8px; margin-left: -12px; scrollbar-width: thin; }
.wiki__toc-h { margin: 18px 0 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.wiki__toc-h:first-child { margin-top: 0; }
.wiki__toc a { padding: 6px 12px; margin-left: -12px; border-radius: var(--r-sm); color: var(--mute); transition: color 0.2s, background 0.2s; }
.wiki__toc a:hover { color: var(--ink); background: var(--surface-3); }
.wiki__toc a[aria-current] { color: var(--ink); background: var(--accent-soft); }
.wiki__body { max-width: 72ch; }
.wiki__article { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 24px); }
.wiki__article:last-child { border-bottom: 0; margin-bottom: 0; }
.wiki__article h2 { font: 600 clamp(26px, 2.6vw, 34px)/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.wiki__article h3 { margin-top: 32px; font: 600 19px/1.35 var(--font); color: var(--ink); }
.wiki__article p, .wiki__article li { color: var(--body); font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.wiki__article p { margin-top: 16px; }
.wiki__article h3 + p { margin-top: 8px; }
.wiki__article ol, .wiki__article ul { margin-top: 16px; padding-left: 22px; display: grid; gap: 10px; }
.wiki__article ol { list-style: decimal; }
.wiki__article ul { list-style: disc; }
.wiki__article li::marker { color: var(--am-400); }
.wiki__article b { color: var(--ink); font-weight: 600; }
.wiki__article a, .news-list a:not(.link-arrow), .section__lead a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(196, 160, 255, 0.4); text-underline-offset: 3px; }
.wiki__article a:hover { text-decoration-color: currentColor; }
.wiki__article code { padding: 2px 6px; border-radius: 5px; font: 500 0.88em/1 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--am-200); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.wiki__table { margin-top: 20px; overflow-x: auto; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line-2); }
.wiki__table table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.wiki__table th, .wiki__table td { padding: 12px 16px; text-align: left; border-top: 1px solid var(--line); }
.wiki__table thead th { border-top: 0; font-weight: 500; color: var(--mute); background: var(--surface-2); }
.wiki__table tbody th { color: var(--ink); font-weight: 600; }
.wiki__table td { color: var(--body); }
@media (max-width: 900px) {
  .wiki { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .wiki__toc { position: static; max-height: none; overflow: visible; margin-left: 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .wiki__toc-h { grid-column: 1 / -1; }
}

/* ==========================================================================
   Експеримент «Raycast × StateMine»: світлова сцена, скло, клавіші.
   Чорне тло тримає всі розділи разом; колір живе лише у світлі й медіа.
   Світло — аметист; ?light=red на будь-якій сторінці вмикає червоний варіант.
   ========================================================================== */
:root {
  --light-rgb: 138, 92, 224;
  --signal: #b48cff;
  --hero-art: url('/assets/light/hero-amethyst.svg'), url('/assets/light/hero-glow-amethyst.webp');
  --peaks-art: url('/assets/light/peaks-amethyst.svg'), url('/assets/light/peaks-glow-amethyst.webp');
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Roboto Mono', monospace;
  --glass: linear-gradient(137deg, rgba(17, 18, 20, 0.75) 4.87%, rgba(12, 13, 15, 0.9) 75.88%);
  --glass-edge: rgba(255, 255, 255, 0.06);
  --shell: linear-gradient(45deg, #0c0d0f 0%, #07080a 100.67%);
  --rule: #1b1c1e;
  --key-face: #e6e6e6;
  --key-bevel: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 14px rgba(255, 255, 255, 0.19), inset 0 -1px 0.4px rgba(0, 0, 0, 0.2), inset 0 1px 0.4px #fff;
  --stage: 1204px;
  --chapter: clamp(120px, 15vw, 224px);
  --nav-h: 80px;
  --section: var(--chapter);
}
html[data-light='red'] {
  --light-rgb: 224, 38, 47;
  --signal: #ff6363;
  --hero-art: url('/assets/light/hero-red.svg'), url('/assets/light/hero-glow-red.webp');
  --peaks-art: url('/assets/light/peaks-red.svg'), url('/assets/light/peaks-glow-red.webp');
  --am-50: #ffecea; --am-200: #ffc2bd; --am-300: #ff8f8a; --am-400: #ff6363; --am-500: #e0262f; --am-700: #8f0f1a; --am-900: #2b0408;
  --accent-soft: rgba(255, 99, 99, 0.14);
}
body { font-size: 15px; }
::selection { background: rgba(var(--light-rgb), 0.55); }
kbd {
  font: 500 11px/1 var(--mono); color: var(--body);
  background: linear-gradient(#1d1e21, #141518);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(0, 0, 0, 0.6);
}

/* ---------- типографіка ---------- */
.display {
  font-family: var(--font); font-weight: 600;
  font-size: clamp(40px, 5.3vw, 64px); line-height: 1.1; letter-spacing: -0.012em;
  font-feature-settings: 'calt', 'kern', 'liga' 0, 'ss02', 'ss08';
}
.display--md { font-size: clamp(36px, 4.4vw, 52px); }
.h2 { font-family: var(--font); font-weight: 500; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.025em; }
.section__lead { font-size: 16px; color: var(--body); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font: 500 12px/16px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal);
}
.pair { font: 500 20px/1.45 var(--font); letter-spacing: 0.004em; color: var(--ink); text-wrap: balance; }
.pair--sub { color: var(--body); }
.pair--sub a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 4px; }
.pair--sub a:hover { color: var(--ink); }
.chapter-head { max-width: 620px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.chapter-head--lg { max-width: 680px; }
.chapter-head--lg .pair:not(.pair--sub) { font-size: clamp(26px, 2.9vw, 32px); line-height: 1.2; letter-spacing: -0.025em; }
.chapter-head--lg .pair--sub { margin-top: 12px; font-size: 17px; line-height: 1.6; font-weight: 400; }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 40px; }
.utility { font: 400 12px/1.6 var(--mono); letter-spacing: 0.017em; color: var(--mute); }
.link-arrow { color: var(--ink); font-size: 14px; }
.link-arrow span { color: var(--mute); }

/* ---------- кнопки-клавіші ---------- */
.btn {
  height: 36px; padding: 0 12px; gap: 8px;
  font: 500 14px/16px var(--font); letter-spacing: 0.014em;
  border-radius: 8px;
  transition: background-color 0.2s, background-image 0.2s, box-shadow 0.2s ease-in-out, transform 0.1s ease-in-out, color 0.2s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--key-face); color: #2f3031; box-shadow: var(--key-bevel); }
.btn--primary:hover { background: #fff; }
.btn--primary:active { background: #cdcece; }
.btn--ghost {
  color: var(--ink);
  background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.btn--ghost:hover { background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.1)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.2); }
.btn--ghost:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.2); }
.btn--lg { height: 40px; padding: 0 16px; font-size: 14px; }
.ip {
  height: 40px; padding: 0 4px 0 14px; gap: 12px; border-radius: 8px;
  background: linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.06));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.ip:hover { background: linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08)); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); }
.ip__addr { font: 500 13px/1 var(--mono); letter-spacing: 0.02em; }
.ip__act { height: 30px; padding: 0 10px; border-radius: 6px; font: 500 12px/1 var(--font); background: rgba(255, 255, 255, 0.06); color: var(--body); }
.ip:hover .ip__act { background: rgba(255, 255, 255, 0.12); color: var(--ink); }

/* ---------- навігація: скляний острівець ---------- */
.nav {
  height: auto; padding: 16px var(--gutter) 0; pointer-events: none;
  background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.nav__in {
  pointer-events: auto; position: relative;
  max-width: var(--stage); height: 64px; padding: 0 12px 0 22px; gap: 20px;
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 16px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.brand { font: 600 16px/1 var(--font); letter-spacing: -0.005em; }
.nav__links { margin-left: auto; gap: 2px; }
.nav__links a { padding: 8px 12px; font-size: 14px; letter-spacing: 0.014em; color: var(--body); border-radius: 8px; transition: color 0.2s ease-in-out; }
.nav__links a:hover, .nav__links a[aria-current='page'] { color: var(--ink); background: none; }
.nav__cta { margin-left: auto; }
.kbd-hint { height: 36px; color: var(--body); box-shadow: none; padding: 0 6px 0 10px; }
.kbd-hint:hover { color: var(--ink); box-shadow: none; }
.nav__burger { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
@media (max-width: 1080px) {
  .nav.is-open .nav__links {
    top: calc(100% + 8px); left: 0; right: 0; padding: 8px;
    border-radius: 16px; background: rgba(12, 13, 15, 0.97); border: 1px solid var(--glass-edge);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 24px 48px rgba(0, 0, 0, 0.6);
  }
}
@media (max-width: 820px) {
  :root { --nav-h: 66px; }
  .nav { padding-top: 10px; }
  .nav__in { height: 56px; padding: 0 8px 0 14px; border-radius: 14px; }
}

/* ---------- перший екран: світлова скульптура ---------- */
.hero {
  margin-top: calc(-1 * var(--nav-h));
  min-height: max(1080px, 100svh);
  padding: calc(var(--nav-h) + clamp(40px, 6vh, 80px)) 0 40px;
  justify-content: flex-start; text-align: center;
}
.hero::after { display: none; }
.hero__light {
  position: absolute; z-index: -2; left: 50%; top: 52%;
  width: clamp(1000px, 118vw, 1800px); aspect-ratio: 16 / 10;
  transform: translate(-50%, -50%);
  background-image: var(--hero-art); background-position: center; background-size: contain; background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(#000 66%, transparent 93%); mask-image: linear-gradient(#000 66%, transparent 93%);
  pointer-events: none;
  animation: light-in 1.6s var(--ease) both;
}
@keyframes light-in { from { opacity: 0; transform: translate(-50%, -48%) scale(1.03); } }
.hero__stage { z-index: -1; inset: auto 0 0 0; height: 640px; } /* лише нижня частина першого екрана: менше пікселів щокадру */
.hero__fallback { right: 50%; top: auto; bottom: 96px; transform: translateX(50%); width: min(58vw, 640px); opacity: 1; -webkit-mask-image: none; mask-image: none; } /* кадр острова з прозорим тлом */
.hero__in { position: relative; z-index: 1; }
.hero__copy { position: relative; max-width: 660px; margin: 0 auto; }
.hero__copy::before { /* темна «криниця» під текстом, щоб світло не забивало літери */
  content: ''; position: absolute; z-index: -1; inset: -90px -180px -60px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 8, 10, 0.82), rgba(7, 8, 10, 0.5) 55%, rgba(7, 8, 10, 0));
}
.hero .display { max-width: 560px; margin: 0 auto; }
.hero__copy .hero__lead { max-width: 560px; margin: 28px auto 0; font-size: 17px; color: var(--body); text-wrap: pretty; }
.hero__actions { justify-content: center; margin-top: 36px; gap: 14px; }
.hero__meta { margin-top: 18px; font: 400 12px/1.6 var(--mono); letter-spacing: 0.017em; color: var(--body); text-shadow: 0 1px 14px rgba(7, 8, 10, 0.95), 0 0 3px rgba(7, 8, 10, 0.85); }
.hero__hint { top: auto; bottom: 168px; font: 400 12px/1 var(--mono); letter-spacing: 0.02em; }
.status {
  margin-top: auto; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
  text-align: left;
  -webkit-backdrop-filter: none; backdrop-filter: none; /* під панеллю безперервно рухається острів: розмиття перераховувалось би щокадру */
}
.status li + li { box-shadow: inset 1px 0 0 var(--glass-edge); }
.status__ver, .status__state, .status__stage { font-family: var(--mono); font-size: 12px; letter-spacing: 0.01em; }
.hero > .wrap:last-child { margin-top: auto; padding-top: clamp(260px, 36vh, 380px); }

/* ---------- стрічка модів ---------- */
.ticker { box-shadow: none; padding: 28px 0; }
.ticker__item { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
.ticker__item .mod-icon { opacity: 0.75; }

/* ---------- розділи ---------- */
.section { padding: calc(var(--chapter) / 2) 0; }
.section--tint { background: none; }
.section--tight { padding: calc(var(--chapter) / 2) 0; }

/* скляна рамка навколо головних «вікон» */
.frame {
  position: relative; padding: 8px; border-radius: 19px;
  background:
    radial-gradient(85.77% 49.97% at 51% 5.12%, rgba(var(--light-rgb), 0.13) 0%, rgba(222, 226, 255, 0.07) 45.83%, rgba(241, 242, 255, 0.02) 100%),
    rgba(0, 0, 0, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 40px 20px rgba(255, 255, 255, 0.03), inset 0 0.5px 0 rgba(255, 255, 255, 0.3);
}
.frame::before { /* кольорове світло під рамкою */
  content: ''; position: absolute; z-index: -1; left: 8%; right: 8%; top: 12%; bottom: -8%;
  background: radial-gradient(closest-side, rgba(var(--light-rgb), 0.34), rgba(var(--light-rgb), 0.08) 60%, transparent);
  filter: blur(36px); pointer-events: none;
}
.frame > .win, .frame > img { border-radius: 12px; }
.win {
  background: linear-gradient(180deg, #101113, #0b0c0e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.win__bar { font-size: 14px; }
.win__foot { background: rgba(255, 255, 255, 0.02); font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; }
.mode-row[aria-selected='true'] { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.mode-row__ver, .mod-row__ver { font-family: var(--mono); font-size: 11px; }
.md__title { font: 600 clamp(30px, 3.2vw, 40px)/1.05 var(--font); letter-spacing: -0.02em; }
.md__tag { font-size: 15px; }
.md__text { font-size: 15px; }
.md__facts { box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; }
.md__facts dt { font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.chip { height: 28px; border-radius: 6px; font-size: 13px; background: rgba(255, 255, 255, 0.03); }

/* кадри з гри — картки з підписом під кадром */
.shots { gap: 16px; margin-top: 0; }
.shot { border-radius: 12px; background: var(--shell); border: 1px solid rgba(255, 255, 255, 0.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.shot img { -webkit-mask-image: linear-gradient(#000 70%, rgba(0, 0, 0, 0.55)); mask-image: linear-gradient(#000 70%, rgba(0, 0, 0, 0.55)); }
.shot figcaption { position: static; padding: 14px 18px 18px; background: none; font: 500 14px/1.55 var(--font); color: var(--body); letter-spacing: 0.01em; }
.shot figcaption b { margin-bottom: 6px; font: 500 11px/16px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); }

/* моди: «стіна» назв + пошук */
.mods-grid { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px; align-items: start; max-width: calc(var(--stage) + var(--gutter) * 2); }
.wall { font: 500 24px/1.6 var(--font); letter-spacing: 0.008em; color: var(--dormant); }
.wall button { font: inherit; color: inherit; transition: color 0.2s; text-align: left; }
.wall button:hover { color: var(--body); }
.wall button[aria-pressed='true'] { color: var(--ink); }
.wall__cap { margin-top: 40px; font: 400 13px/1.6 var(--mono); color: var(--mute); max-width: 36ch; }
.mods-stats { gap: 32px; margin: 32px 0; }
.mods-stats b { font: 500 24px/1 var(--font); letter-spacing: -0.01em; }
.mods-stats span { margin-top: 8px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
.palette__filters button { font-family: var(--mono); font-size: 12px; }
.mod-row[aria-selected='true'] { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.mod-row mark { color: var(--ink); }

/* новини — скляні картки */
.news-grid { gap: 16px; border-top: 0; }
.news-grid .news-item, .news-grid .news-item + .news-item {
  padding: 24px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}
.news-item__meta { font: 400 12px/1.6 var(--mono); letter-spacing: 0.017em; }
.news-item__title { font: 500 17px/1.4 var(--font); letter-spacing: 0; }
.news-item p { font-size: 14px; line-height: 1.6; }
.news-item .link-arrow { font-size: 14px; }

/* дорожня карта — технічна «плита» з крапковим полем */
.roadmap__head { margin-bottom: 48px; align-items: flex-end; }
.roadmap__head .pair--sub { margin-top: 0; }
.roadmap__total b { font: 500 32px/1 var(--font); letter-spacing: -0.02em; }
.roadmap__total span { margin-top: 8px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
.roadmap { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: fig; box-shadow: 0 0 0 1px var(--rule); }
.roadmap::before, .roadmap::after { display: none !important; }
.rm {
  counter-increment: fig; padding: 56px 32px 36px; min-height: 230px;
  background-image: radial-gradient(#2f3031 0.6px, transparent 0); background-size: 17px 17px; background-position: -8.5px -8.5px;
  box-shadow: 0 0 0 1px var(--rule), inset 0 0 0 1px var(--canvas);
}
.rm::before { content: 'ЕТАП ' counter(fig, decimal-leading-zero); position: absolute; left: 14px; top: 14px; font: 500 10px/1 var(--mono); letter-spacing: 0.14em; color: var(--ash); }
.rm__dot { left: auto; right: 14px; top: 12px; width: 12px; height: 12px; border-radius: 2px; }
.rm--done .rm__dot { background: var(--ok); }
.rm--done .rm__dot::after { left: 4px; top: 1px; width: 3px; height: 7px; border-color: #052012; }
.rm--now { background-image: radial-gradient(rgba(var(--light-rgb), 0.5) 0.6px, transparent 0), radial-gradient(120% 90% at 50% 0%, rgba(var(--light-rgb), 0.16), transparent 70%); background-size: 17px 17px, 100% 100%; background-position: -8.5px -8.5px, 0 0; background-repeat: repeat, no-repeat; box-shadow: 0 0 0 1px var(--rule), inset 0 2px 0 rgba(var(--light-rgb), 0.9); }
.rm__status { font: 500 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.rm h3 { margin-top: 10px; font: 500 18px/1.3 var(--font); }
.rm p { margin-top: 10px; font: 400 13px/1.65 var(--mono); color: var(--mute); }
.rm--next p { color: var(--ash); }

/* сервер: широка картка з чатом + картки можливостей */
.card {
  background: var(--shell); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.server { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.chat-card { margin: 0; padding: 8px; overflow: hidden; }
.chat-card .chat { margin: 0; min-height: 360px; border-radius: 8px; background-size: cover; background-position: 50% 40%; box-shadow: none; }
.chat-card figcaption { padding: 14px 10px 6px; font: 500 14px/1.55 var(--font); color: var(--body); }
.chat-card figcaption b { display: block; margin-bottom: 4px; font: 500 11px/16px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); }
.features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; }
.features li {
  padding: 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: var(--shell); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px;
}
.features h3 { font: 500 15px/1.4 var(--font); letter-spacing: 0.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.features p { margin-top: 10px; font-size: 14px; line-height: 1.6; }
.soon { height: 20px; margin: 0; padding: 0 7px; border-radius: 5px; font: 500 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); background: rgba(var(--light-rgb), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--light-rgb), 0.25); vertical-align: 2px; }

/* лаунчер: світний кадр, три кроки рядком, клавіші */
.launcher-fig { max-width: 1080px; margin: 0 auto; }
.frame--theatre { padding: 8px; }
.launcher-shot { border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.launcher-fig figcaption { margin-top: 16px; text-align: center; font: 400 12px/1.6 var(--mono); color: var(--mute); }
.start--home { display: block; max-width: 960px; margin: 72px auto 0; text-align: center; }
.steps--row { margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; text-align: left; }
.steps--row li { grid-template-columns: 1fr; gap: 6px; }
.steps--row li::before {
  content: counter(s, decimal-leading-zero); grid-row: auto; width: auto; height: auto; place-items: start;
  background: none; box-shadow: none; margin-bottom: 8px;
  font: 500 12px/16px var(--mono); letter-spacing: 0.12em; color: var(--signal);
}
.steps--row li > * { grid-column: 1; }
.steps--row h3 { font: 500 15px/1.4 var(--font); }
.steps--row p { font-size: 14px; line-height: 1.6; }
.start--home .downloads { justify-content: center; margin-top: 56px; }
.start--home .downloads__hint { margin-left: auto; margin-right: auto; font-family: var(--mono); font-size: 12px; line-height: 1.6; }

/* FAQ — вузький центрований список */
.faq { display: block; max-width: 700px; margin: 0 auto; }
.faq__list details, .faq__list details:first-child { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05); }
.faq__list summary { padding: 30px 0; font: 600 16px/1.5 var(--font); }
.faq__list summary::after { width: 7px; height: 7px; border-width: 0 1.5px 1.5px 0; border-color: var(--ash); }
.faq__list details[open] summary::after { border-color: var(--ink); }
.faq__list details p { padding: 0 40px 30px 0; font-size: 15px; }

/* фінал: поле слотів інвентаря, підсвічене знизу */
.closing { position: relative; overflow: hidden; isolation: isolate; padding: 24px 0 var(--chapter); text-align: center; }
.slots {
  --slot: 64px;
  position: relative; left: 50%; width: max-content;
  display: grid; grid-template-columns: repeat(var(--cols, 26), var(--slot)); gap: 8px;
  transform: translateX(-50%) perspective(1000px) rotateX(32deg); transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse 34% 80% at 50% 70%, #000 0%, rgba(0, 0, 0, 0.55) 40%, transparent 76%);
  mask-image: radial-gradient(ellipse 34% 80% at 50% 70%, #000 0%, rgba(0, 0, 0, 0.55) 40%, transparent 76%);
}
.slots i {
  width: var(--slot); height: var(--slot); border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(180deg, #141518, #0b0c0e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -2px 0 rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.8), 0 2px 0 rgba(0, 0, 0, 0.6);
}
.slots i.is-lit {
  background: linear-gradient(180deg, rgba(var(--light-rgb), 0.38), rgba(var(--light-rgb), 0.12) 70%), #0b0c0e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.7), 0 0 28px rgba(var(--light-rgb), 0.5);
}
.slots i.is-warm { background: linear-gradient(180deg, rgba(var(--light-rgb), 0.16), rgba(var(--light-rgb), 0.04)), #0b0c0e; }
.slots img { width: 32px; height: 32px; image-rendering: pixelated; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.closing__in { position: relative; margin-top: 40px; }
.closing .pair--sub { margin-top: 2px; }
.closing__btn { margin-top: 56px; }
.closing .utility { margin-top: 16px; }
.utility-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 8px; font: 400 12px/1.6 var(--mono); letter-spacing: 0.017em; }
.utility-links a { color: var(--body); border-radius: 4px; transition: color 0.2s; }
.utility-links a:hover { color: var(--ink); }

/* ---------- футер: верхівки світла над темною завісою ---------- */
.footer {
  --veil-top: clamp(140px, 15vw, 210px);
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--veil-top) + 88px) 0 32px; background: none;
}
.footer::before {
  content: ''; position: absolute; z-index: -2; left: 50%; top: 0;
  width: max(1600px, 110vw); aspect-ratio: 1600 / 420; transform: translateX(-50%);
  background-image: var(--peaks-art); background-position: center top; background-size: 100% auto; background-repeat: no-repeat;
  opacity: 0.8;
}
.footer::after {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: var(--veil-top); bottom: 0;
  background: linear-gradient(rgba(7, 8, 10, 0.8) 0.1%, #07080a 32.45%), radial-gradient(49.41% 64.58% at 49.4% 0, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border-top: 1px solid var(--rule);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.11);
}
.footer > .wrap { max-width: calc(1064px + var(--gutter) * 2); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.footer__cols > div { flex: 0 0 168px; }
.footer__cols > .footer__brand { flex: 1 1 280px; }
.footer__cols > div { gap: 12px; }
.footer__brand .brand { margin-bottom: 8px; }
.footer__brand .footer__note { max-width: 30ch; line-height: 1.6; }
.footer__h { margin-bottom: 20px; font: 500 14px/1.4 var(--font); color: var(--ink); }
.footer__cols a, .footer__ip { font-size: 14px; color: var(--body); transition: color 0.3s; }
.footer__cols a:hover, .footer__ip:hover { color: var(--ink); }
.footer__ip { font-family: var(--mono); font-size: 13px; }
.footer__note { font-size: 13px; color: var(--mute); }
.footer__word { display: none; }
.footer__legal { margin-top: 96px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--rule); font: 400 12px/1.6 var(--mono); letter-spacing: 0.017em; color: var(--ash); }

/* ---------- інші сторінки: той самий матеріал ---------- */
.card { background: var(--shell); }
.seg, .search { background: rgba(255, 255, 255, 0.03); }
.seg button[aria-pressed='true'] { background: rgba(255, 255, 255, 0.08); }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .mods-grid { grid-template-columns: 1fr; gap: 40px; }
  .mods-grid__copy { max-width: 560px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .footer__brand { flex-basis: 100% !important; }
}
@media (max-width: 820px) {
  .hero { min-height: auto; margin-top: calc(-1 * var(--nav-h)); padding: calc(var(--nav-h) + 48px) 0 32px; }
  .hero__light { top: 360px; width: 1100px; }
  .hero__in { order: 1; }
  .hero__stage { order: 2; position: relative; inset: auto; height: 72vw; min-height: 280px; max-height: 440px; margin-top: 8px; }
  .hero__stage::after { display: none; }
  .hero > .wrap:last-child { order: 3; padding-top: 0; margin-top: 8px; }
  .hero__fallback { top: 50%; right: 50%; transform: translate(50%, -50%); width: min(104vw, 540px); -webkit-mask-image: none; mask-image: none; }
  .hero__copy::before { inset: -60px -40px -40px; }
  .hero__lead { font-size: 16px; }
  .hero__actions { margin-top: 28px; gap: 10px; }
  .hero__actions .btn, .hero__actions .ip { height: 44px; }
  .hero__hint { bottom: 8px; }
  .chapter-head { text-align: left; margin-left: 0; }
  .chapter-head--lg .pair--sub { font-size: 16px; }
  .row-head { margin-bottom: 28px; }
  .wall { font-size: 20px; }
  .features { grid-template-columns: 1fr; }
  .chat-card .chat { min-height: 340px; background-size: cover; }
  .roadmap { grid-template-columns: 1fr; }
  .rm { padding: 48px 20px 28px 20px; min-height: 0; }
  .rm__dot { top: 12px; left: auto; }
  .steps--row { grid-template-columns: 1fr; gap: 28px; }
  .start--home { margin-top: 48px; text-align: left; }
  .start--home .downloads { justify-content: flex-start; }
  .start--home .downloads .btn { height: 44px; }
  .start--home .downloads__hint { margin-left: 0; }
  .slots { --slot: 48px; gap: 6px; }
  .slots img { width: 32px; height: 32px; }
  .closing { padding-bottom: 120px; }
  .footer__cols { column-gap: 32px; }
  .footer__cols > div { flex-basis: calc(50% - 17px); }
  .footer__legal { margin-top: 64px; }
  .launcher-fig { margin: 0 calc(-1 * var(--gutter) + 8px); }
}
@media (prefers-reduced-motion: reduce) { .hero__light, main > .page-head::before { animation: none; } }

/* ==========================================================================
   Експеримент: підсторінки в тій самій світловій сцені.
   Шапка з фрагментом світла, скляні форми, технічні таблиці, крок-клавіші.
   ========================================================================== */

/* анонс останньої новини над заголовком головної */
.announce {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  height: 32px; padding: 0 14px 0 4px; margin-bottom: 28px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
  font: 500 13px/1 var(--font); color: var(--body); text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.announce:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.16); }
.announce[hidden] { display: none; }
.announce__tag {
  display: inline-grid; place-items: center; flex: none; height: 24px; padding: 0 9px; border-radius: 999px;
  font: 500 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--signal); background: rgba(var(--light-rgb), 0.14); box-shadow: inset 0 0 0 1px rgba(var(--light-rgb), 0.3);
}
.announce__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce__go { flex: none; color: var(--mute); transition: transform 0.25s var(--ease), color 0.2s; }
.announce:hover .announce__go { transform: translateX(3px); color: var(--ink); }

/* ---------- шапка підсторінки: заголовок по центру під фрагментом світла ---------- */
main > .page-head {
  position: relative; text-align: center;
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + clamp(64px, 9vw, 120px)) 0 clamp(40px, 5vw, 64px);
}
main > .page-head::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 0;
  width: clamp(1100px, 118vw, 1700px); aspect-ratio: 16 / 10;
  transform: translate(-50%, -37%);
  background-image: var(--hero-art); background-position: center; background-size: contain; background-repeat: no-repeat;
  opacity: 0.72; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 48%, transparent 78%); mask-image: linear-gradient(#000 48%, transparent 78%);
  animation: head-light-in 1.4s var(--ease) both;
}
@keyframes head-light-in { from { opacity: 0; } }
main > .page-head .eyebrow { margin-bottom: 18px; }
main > .page-head .display { margin: 0 auto; max-width: 860px; text-shadow: 0 2px 30px rgba(7, 8, 10, 0.7); }
main > .page-head .display--md { font-size: clamp(40px, 5.2vw, 64px); }
main > .page-head > .wrap > .section__lead,
main > .page-head > .wrap > div > .section__lead { margin: 22px auto 0; max-width: 600px; font-size: 17px; text-shadow: 0 1px 16px rgba(7, 8, 10, 0.9); }
main > .page-head .form.card { margin-left: auto; margin-right: auto; text-align: left; }
main > .page-head .section__lead a { color: var(--ink); }

/* ---------- форми: темне скло над світлом ---------- */
.form.card {
  max-width: 480px; margin-left: auto; margin-right: auto;
  padding: clamp(22px, 3vw, 32px);
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 16px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 30px 60px -30px rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.page-narrow { max-width: calc(520px + var(--gutter) * 2); }
.field-in > span { font-size: 13px; font-weight: 500; color: var(--body); }
.field-in input, .field-in select, .field-in textarea {
  height: 42px; padding: 0 12px; border-radius: 8px; font-size: 14px;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  caret-color: var(--signal);
}
.field-in textarea { padding: 10px 12px; }
.field-in input:hover, .field-in textarea:hover, .field-in select:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.field-in input:focus, .field-in textarea:focus, .field-in select:focus {
  outline: none; background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 0 3px rgba(var(--light-rgb), 0.22);
}
.field-in small { font-size: 12px; color: var(--mute); line-height: 1.5; }
.form > .btn--lg, .form > .btn[type='submit'] { width: 100%; }
.form__alt { font-size: 13px; text-align: center; }
.form__alt a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.form__error { padding: 10px 12px; border-radius: 8px; background: rgba(255, 99, 99, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 99, 99, 0.22); }
.form__error[hidden] { display: none; }

/* ---------- тексти на підсторінках ---------- */
main code {
  padding: 2px 6px; border-radius: 5px; white-space: nowrap;
  font: 500 0.86em/1 var(--mono); color: var(--ink);
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
main p a:not(.btn):not(.link-arrow):not(.announce), main li a:not(.btn):not(.link-arrow) { color: var(--ink); text-decoration-color: rgba(255, 255, 255, 0.3); }
main p a:not(.btn):not(.link-arrow):not(.announce):hover, main li a:not(.btn):not(.link-arrow):hover { text-decoration-color: currentColor; }

/* кроки: номер на маленькій клавіші */
.steps:not(.steps--row) { gap: 0; }
.steps:not(.steps--row) li { grid-template-columns: 44px 1fr; gap: 6px 14px; padding: 22px 0; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05); }
.steps:not(.steps--row) li:first-child { padding-top: 4px; }
.steps:not(.steps--row) li:last-child { box-shadow: none; }
.steps:not(.steps--row) li::before {
  width: 30px; height: 30px; border-radius: 8px;
  font: 500 12px/1 var(--mono); color: var(--ink);
  background: linear-gradient(#202125, #141518);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.75), 0 2px 0 rgba(0, 0, 0, 0.6);
}
.steps:not(.steps--row) h3 { font: 500 16px/1.45 var(--font); }
.steps:not(.steps--row) p { font-size: 15px; line-height: 1.65; }
.steps:not(.steps--row) p + p { margin-top: 10px; }
.steps:not(.steps--row) b { color: var(--ink); font-weight: 500; }

/* «Як почати»: заголовок розділу ліворуч тримається, поки гортаєш кроки */
.start--guide { gap: 40px 80px; max-width: calc(1064px + var(--gutter) * 2); }
.start--guide > div:first-child { position: sticky; top: calc(var(--nav-h) + 40px); }
.start--guide .section__lead { font-size: 16px; }
.faq__head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.faq__head .section__lead { margin: 16px auto 0; font-size: 16px; }

/* ---------- вікі: скляний зміст і розділи з номерами ---------- */
.wiki { grid-template-columns: 232px minmax(0, 1fr); gap: 72px; max-width: calc(1120px + var(--gutter) * 2); }
.wiki__toc {
  margin-left: 0; padding: 14px 10px; gap: 1px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.wiki__toc-h { margin: 16px 10px 6px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; color: var(--ash); }
.wiki__toc-h:first-child { margin-top: 4px; }
.wiki__toc a { margin-left: 0; padding: 7px 10px; border-radius: 7px; font-size: 14px; color: var(--body); }
.wiki__toc a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.wiki__toc a[aria-current] { color: var(--ink); background: rgba(255, 255, 255, 0.07); box-shadow: inset 2px 0 0 var(--signal); }
.wiki__body { counter-reset: art; max-width: 72ch; }
.wiki__article { counter-increment: art; border-bottom-color: var(--rule); }
.wiki__article h2 { font: 500 clamp(24px, 2.4vw, 30px)/1.2 var(--font); letter-spacing: -0.02em; }
.wiki__article h2::before {
  content: '§ ' counter(art, decimal-leading-zero); display: block; margin-bottom: 14px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.14em; color: var(--signal);
}
.wiki__article h3 { font: 500 17px/1.4 var(--font); }
.wiki__article p, .wiki__article li { font-size: 16px; line-height: 1.75; }
.wiki__article b { font-weight: 500; }
.wiki__article a, .news-list a:not(.link-arrow) { color: var(--ink); text-decoration-color: rgba(255, 255, 255, 0.3); }
.wiki__article code { color: var(--ink); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); font-family: var(--mono); }
.wiki__table { border-radius: 0; box-shadow: 0 0 0 1px var(--rule); }
.wiki__table thead th { background: rgba(255, 255, 255, 0.025); font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
.wiki__table th, .wiki__table td { border-top-color: var(--rule); }
.wiki__table td { font: 400 13px/1.5 var(--mono); }
.wiki__table tbody th { font-weight: 500; }

/* ---------- новини: журнал з датою ліворуч ---------- */
.page-narrow--read { max-width: calc(880px + var(--gutter) * 2); }
.news-list .news-item {
  display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 2px 40px;
  padding: 40px 0; border-top: 1px solid var(--rule);
}
.news-list .news-item > * { grid-column: 2; }
.news-list .news-item__meta { grid-column: 1; grid-row: 1 / span 4; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 5px; }
.news-list .news-item__title { margin-top: 0; font: 500 20px/1.35 var(--font); letter-spacing: -0.005em; }
.news-list .news-item p { margin-top: 12px; font-size: 15px; line-height: 1.7; }
.news-list .news-item:target { background: radial-gradient(60% 100% at 0 0, rgba(var(--light-rgb), 0.1), transparent 70%); }
.news-list .news-item:target .news-item__title { color: var(--ink); }
.news-item__meta .tag { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; color: var(--body); }

/* ---------- каталог модів: плаваюча скляна панель і картки ---------- */
.catalog__bar { padding: 12px 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; top: calc(var(--nav-h) - 4px); }
.catalog__controls.wrap {
  width: auto; max-width: var(--stage); padding: 12px;
  margin: 0 max(var(--gutter), calc((100% - var(--stage)) / 2));
  border-radius: 14px; background: rgba(12, 13, 15, 0.88); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 24px 48px -28px rgba(0, 0, 0, 0.9);
}
.search { height: 44px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.search:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 0 3px rgba(var(--light-rgb), 0.2); }
.seg { padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.seg button { border-radius: 999px; font-size: 13.5px; }
.seg button[aria-pressed='true'] { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.filter { border-radius: 999px; font-size: 13px; }
.catalog__controls .seg button, .catalog__controls .filter { min-height: 38px; padding-top: 8px; padding-bottom: 8px; }
.catalog__list { gap: 12px; }
.cat-item {
  padding: 20px; border-radius: 12px; background: var(--shell);
  border: 1px solid rgba(255, 255, 255, 0.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.cat-item h2 { font: 500 16px/1.35 var(--font); }
.cat-item p { font-size: 14px; line-height: 1.6; }
.cat-item__meta { font: 400 12px/1.5 var(--mono); color: var(--mute); }
.catalog__count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }

/* ---------- рейтинг: перемикач-пігулка й таблиці ---------- */
.section .wrap:has(> [data-top-tabs]) { max-width: calc(960px + var(--gutter) * 2); }
.top-tabs { width: fit-content; max-width: 100%; margin: 0 auto; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.top-tabs button { height: 36px; padding: 0 18px; font-size: 14px; color: var(--body); background: none; box-shadow: none; }
.top-tabs button:hover:not([aria-pressed='true']) { background: none; color: var(--ink); }
.top-tabs button[aria-pressed='true'] { background: var(--key-face); color: #2f3031; box-shadow: 0 0 14px rgba(255, 255, 255, 0.16), inset 0 1px 0.4px #fff; }
.top-online { text-align: center; font: 400 12px/1.6 var(--mono); }
.top-title { margin: 48px 0 14px; font: 500 20px/1.3 var(--font); letter-spacing: 0; }
.top-wrap { border-radius: 14px; background: var(--shell); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.top-table th { padding: 14px 18px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
.top-table td { padding: 13px 18px; border-bottom-color: rgba(255, 255, 255, 0.05); }
.top-table th, .top-table td { border-bottom-color: rgba(255, 255, 255, 0.05); }
.top-table .num, .top-place { font: 400 13px/1.4 var(--mono); }
.top-table tbody tr:nth-child(-n + 3) .top-place { color: var(--signal); }
.top-name { font-weight: 500; }
.top-empty { justify-items: center; text-align: center; }

/* ---------- кабінет ---------- */
main > .page-head[data-account-view] { text-align: left; }
main > .page-head[data-account-view]::before { opacity: 0.4; }
.acc-avatar {
  width: 72px; height: 72px; border-radius: 14px; padding: 6px;
  background: linear-gradient(#1d1e21, #121316);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.75), 0 0 32px rgba(var(--light-rgb), 0.35);
}
.acc-avatar img { border-radius: 6px; }
.acc-name { font: 600 clamp(30px, 4vw, 44px)/1.05 var(--font); letter-spacing: -0.015em; }
.acc-sub { font: 400 12px/1.6 var(--mono); }
.pill { height: 22px; padding: 0 8px; border-radius: 6px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.acc-tabs {
  display: flex; width: fit-content; max-width: 100%; gap: 2px; padding: 4px; margin: 32px 0 32px;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.acc-tabs button { height: 36px; padding: 0 16px; border-bottom: 0; border-radius: 999px; color: var(--body); }
.acc-tabs button[aria-selected='true'] { color: var(--ink); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.stats { gap: 0; box-shadow: 0 0 0 1px var(--rule); }
.stat {
  padding: 22px 20px; border-radius: 0;
  background: radial-gradient(#2f3031 0.6px, transparent 0) -8.5px -8.5px / 17px 17px;
  box-shadow: 0 0 0 1px var(--rule), inset 0 0 0 1px var(--canvas);
}
.stat b { font: 500 26px/1.1 var(--font); letter-spacing: -0.01em; }
.stat span { display: block; margin-top: 8px; font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
.stats-server { margin: 32px 0 14px; font: 500 18px/1.3 var(--font); }
.stats-server small { font: 400 12px var(--mono); }
.skin-stage {
  border-radius: 19px; padding: 8px;
  background:
    radial-gradient(60% 50% at 50% 62%, rgba(var(--light-rgb), 0.22), transparent 70%),
    radial-gradient(85.77% 49.97% at 51% 5.12%, rgba(var(--light-rgb), 0.1), rgba(222, 226, 255, 0.05) 46%, transparent),
    rgba(0, 0, 0, 0.44);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0.5px 0 rgba(255, 255, 255, 0.3), 0 0 40px 20px rgba(255, 255, 255, 0.02);
}
.skin-stage__hint { font: 400 11px/1 var(--mono); }
.order, .fb-item { border-radius: 12px; background: var(--shell); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.order__meta { font: 400 12px/1.5 var(--mono); }
.acc-next__title { font: 500 clamp(22px, 2.6vw, 26px)/1.2 var(--font); letter-spacing: -0.015em; }
.h3 { font: 500 18px/1.3 var(--font); letter-spacing: -0.005em; }
.empty-note { color: var(--body); }

/* діалоги — темне скло */
dialog.modal {
  border-radius: 16px; background: rgba(15, 16, 18, 0.97); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 40px 80px -20px rgba(0, 0, 0, 0.9);
}
dialog.modal h2 { font: 600 22px/1.2 var(--font); letter-spacing: -0.01em; }
dialog.modal::backdrop { background: rgba(5, 6, 8, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------- підсторінки на вужчих екранах ---------- */
@media (max-width: 1080px) {
  .start--guide > div:first-child { position: static; }
}
@media (max-width: 900px) {
  .wiki__toc { position: static; }
}
@media (max-width: 820px) {
  main > .page-head { padding: calc(var(--nav-h) + 56px) 0 32px; text-align: left; }
  main > .page-head::before { width: 1000px; transform: translate(-56%, -40%); opacity: 0.55; }
  main > .page-head .display { margin: 0; }
  main > .page-head > .wrap > .section__lead, main > .page-head > .wrap > div > .section__lead { margin: 16px 0 0; font-size: 16px; }
  main > .page-head .form.card { margin-top: 28px !important; }
  .news-list .news-item { grid-template-columns: 1fr; padding: 28px 0; }
  .news-list .news-item__meta { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; padding: 0; margin-bottom: 10px; }
  .news-list .news-item > * { grid-column: 1; }
  .catalog__controls.wrap { margin: 0 var(--gutter); }
  .catalog__bar { position: static; }
  .top-tabs { margin: 0; }
  .top-online { text-align: left; }
  .acc-tabs { border-radius: 14px; }
  .faq__head { text-align: left; margin-left: 0; }
  .faq__head .section__lead { margin-left: 0; }
}
main > .page-head + .section--tight { padding-top: 8px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer::before { opacity: 0.6; }
main > .page-head > .page-narrow { max-width: calc(760px + var(--gutter) * 2); }
main > .page-head > .page-narrow > .section__lead { max-width: 520px; }
main { overflow-x: clip; }

/* карта шляху Техномагії (start.html, розділ генерує tools/site_path.py) */
.way { margin-top: clamp(64px, 8vw, 112px); }
.way__title { margin: 0; font: 600 clamp(22px, 2.4vw, 30px)/1.25 var(--font-display); color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
.way__lead { margin-top: 14px; max-width: 62ch; color: var(--body); }
.way__legend { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--mute); }
.way__dot { width: 10px; height: 10px; border-radius: 3px; margin-left: 12px; }
.way__dot:first-child { margin-left: 0; }
.way__dot--t { background: var(--c-technomagic); }
.way__dot--m { background: var(--am-300); }
.way__dot--b { background: var(--mute); }
.way__stages { margin-top: 32px; counter-reset: way; display: grid; }
.way__stage { counter-increment: way; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px 40px; padding: 28px 0; box-shadow: inset 0 1px 0 var(--line-2); }
.way__head { position: relative; padding-left: 40px; }
.way__head::before { content: counter(way); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; font: 600 13px/1 var(--mono); color: var(--accent); background: var(--accent-soft); }
.way__head h4 { margin: 0; font: 600 18px/1.35 var(--font); color: var(--ink); }
.way__head p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--mute); }
.way__mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; align-items: start; }
.way__mod { background: var(--surface-2); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.way__mod[open] { grid-column: 1 / -1; box-shadow: inset 0 0 0 1px var(--line-3); }
.way__mod summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 44px; padding: 11px 14px 11px 16px; font: 500 15px/1.45 var(--font); color: var(--ink); border-radius: var(--r-md); position: relative; }
.way__mod summary::-webkit-details-marker { display: none; }
.way__mod summary::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mute); }
.way__mod--t summary::before { background: var(--c-technomagic); }
.way__mod--m summary::before { background: var(--am-300); }
.way__mod summary span { font: 500 13px/1 var(--mono); color: var(--mute); font-variant-numeric: tabular-nums; }
.way__mod summary:hover { background: var(--surface-3); }
.way__mod ol { list-style: none; margin: 0; padding: 2px 16px 16px; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px 28px; }
.way__mod li { counter-increment: step; position: relative; padding-left: 28px; font-size: 15px; line-height: 1.45; color: var(--body); }
.way__mod li::before { content: counter(step); position: absolute; left: 0; top: 2px; font: 500 12px/1.5 var(--mono); color: var(--ash); }
.way__mod li small { display: block; font-size: 13px; line-height: 1.45; color: var(--mute); }
.way__gate { grid-column: 2; margin: 0; font-size: 15px; color: var(--mute); }
.way__gate b { font-weight: 500; color: var(--accent); }
.way__side { padding-top: 24px; box-shadow: inset 0 1px 0 var(--line-2); font-size: 15px; line-height: 1.7; color: var(--mute); }
.way__side b { font-weight: 500; color: var(--body); }
@media (max-width: 900px) {
  .way__stage { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 0; }
  .way__gate { grid-column: 1; }
}
