/* BADLAND - сайт проекта. Стиль «Пустошь HUD» из лаунчера: тёмное стекло, кислотно-зелёный акцент, сканлайны. */
:root {
  --acid: #a3d16c;
  --acid-2: #6fb752;
  --amber: #ffb02e;
  --ink: #f1f5ea;
  --muted: #9aa594;
  --play-glow: rgba(120,190,90,.38);
  --line: rgba(214,255,170,.13);
  --line-strong: rgba(214,255,170,.3);
  --fill: rgba(9,12,8,.62);
  --fill-hover: rgba(22,30,17,.82);
  --panel: rgba(8,11,8,.84);
  --danger: #e5484d;
  --tg: #29b6f6; --yt: #ff3b3b; --dc: #5865f2;
  --r: 3px; --r-lg: 6px;
  --shadow: 0 30px 80px rgba(0,0,0,.62), 0 0 0 1px rgba(0,0,0,.5);
  --font: "Fira SC", "Bahnschrift", "Segoe UI", sans-serif;
  --title: "Russo One", "Fira SC", sans-serif;
  --top-h: 72px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  font: 500 16px/1.5 var(--font); color: var(--ink);
  background: #060806;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--acid); color: #0c1a05; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #060806; }
::-webkit-scrollbar-thumb { background: rgba(159,207,107,.28); border-radius: 2px; border: 2px solid #060806; }
::-webkit-scrollbar-thumb:hover { background: rgba(159,207,107,.55); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }

/* ---------- фон: слайды с медленным приближением, затемнение и сканлайны ---------- */
.bg {
  position: fixed; inset: 0; z-index: -3;
  background: #060806 center / cover no-repeat;
  opacity: 0; transition: opacity 2.6s ease;
  will-change: opacity, transform;
}
.bg.on { opacity: 1; }
.bg.zoom { animation: bgZoom 19s linear forwards; }
@keyframes bgZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.vignette {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.92) 0, rgba(0,0,0,.7) 90px, rgba(0,0,0,.35) 200px, rgba(0,0,0,.25) 50%, rgba(0,0,0,.78) 100%),
    radial-gradient(120% 80% at 20% 40%, transparent 0, rgba(0,0,0,.35) 70%);
}
.vignette::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
  opacity: .55;
}

/* ---------- базовые элементы HUD ---------- */
.btn, .ico, .field, .icon-x, .tab {
  --bgfill: var(--fill);
  --edge: rgba(190,225,160,.035);
  background:
    linear-gradient(180deg, var(--edge), transparent 30%, transparent 70%, var(--edge)),
    linear-gradient(90deg, var(--edge), transparent 12%, transparent 88%, var(--edge)),
    var(--bgfill);
  border: 1px solid rgba(215,235,200,.11);
  border-radius: var(--r);
  box-shadow: inset 0 0 8px rgba(190,225,160,.025);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .2s, color .2s, box-shadow .2s, transform .1s, background .2s;
}
.btn {
  height: 44px; padding: 0 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
}
.btn:hover, .ico:hover, .tab:hover, .field:hover {
  --bgfill: var(--fill-hover); --edge: rgba(190,225,160,.07);
  border-color: rgba(200,230,175,.26); color: #fff;
  box-shadow: inset 0 0 12px rgba(170,215,130,.05), 0 0 16px rgba(120,190,90,.08);
}
.btn:active, .tab:active { transform: translateY(1px); }

.ico { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 40px; }
.ico img { width: 18px; height: 18px; }
.ico.tg:hover { background: var(--tg); border-color: var(--tg); box-shadow: 0 6px 18px rgba(41,182,246,.35); }
.ico.yt:hover { background: var(--yt); border-color: var(--yt); box-shadow: 0 6px 18px rgba(255,59,59,.35); }
.ico.dc:hover { background: var(--dc); border-color: var(--dc); box-shadow: 0 6px 18px rgba(88,101,242,.35); }

/* большая зелёная кнопка - как «Играть» в лаунчере */
.play {
  position: relative; overflow: hidden; cursor: pointer; border: 0;
  height: 54px; padding: 0 34px; border-radius: var(--r);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  color: #0c1a05;
  background: linear-gradient(135deg, #b9e384, #76bd55 46%, #3f8f3d);
  box-shadow: 0 0 0 1px rgba(159,207,107,.6), 0 10px 34px rgba(120,190,90,.36), inset 0 1px 0 rgba(255,255,255,.5), inset 0 -10px 18px rgba(0,60,0,.22);
  animation: playBreath 2.8s ease-in-out infinite;
  transition: transform .14s, filter .2s;
}
.play::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 46%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.play:hover { background: linear-gradient(135deg, #c8ec98, #88cc66 46%, #4a9f47); transform: translateY(-1px) scale(1.012); }
.play:hover::after { animation: playSheen .7s ease-out; }
.play:active { transform: scale(.985); }
.play:disabled { animation: none; cursor: default; background: rgba(159,207,107,.12); color: rgba(255,255,255,.4); box-shadow: inset 0 0 0 1px rgba(159,207,107,.2); }
@keyframes playBreath {
  50% { box-shadow: 0 0 0 1px rgba(190,225,150,.95), 0 10px 46px rgba(120,190,90,.62), 0 0 0 4px rgba(159,207,107,.14), inset 0 1px 0 rgba(255,255,255,.5), inset 0 -10px 18px rgba(0,60,0,.22); }
}
@keyframes playSheen { from { left: -70%; } to { left: 130%; } }

/* золотая «Скачать» - как «Установить» в лаунчере */
.btn.install-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #e0a93f, #b57d22 55%, #8a5a14);
  color: #fff; font-weight: 700; border-color: rgba(255,214,140,.35);
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
  box-shadow: 0 8px 24px rgba(214,150,40,.32), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn.install-cta > span { position: relative; z-index: 1; }
.btn.install-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-18deg); animation: installShine 3.2s ease-in-out infinite;
}
.btn.install-cta:hover { background: linear-gradient(135deg, #f0bb52, #c78b2a 55%, #9a6619); border-color: rgba(255,224,160,.55); color: #fff; }
@keyframes installShine { 0%, 45% { left: -60%; } 80%, 100% { left: 125%; } }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  height: var(--top-h);
  display: flex; align-items: center; gap: 22px;
  padding: 0 max(22px, calc((100vw - 1440px) / 2));
  animation: hudDrop .65s cubic-bezier(.2,.8,.2,1) both;
}
.top::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4,6,4,.9), rgba(4,6,4,.55));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(159,207,107,.1);
  opacity: 0; transition: opacity .3s;
}
.top.scrolled::before { opacity: 1; }
.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(159,207,107,.5) 20%, rgba(159,207,107,.12) 50%, rgba(159,207,107,.5) 80%, transparent);
  opacity: 0; transition: opacity .3s;
}
.top.scrolled::after { opacity: 1; }

.logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.logo-img {
  width: 48px; height: 48px; flex: 0 0 48px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)) drop-shadow(0 0 10px rgba(200,40,30,.25));
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.logo:hover .logo-img { transform: rotate(-6deg) scale(1.06); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-mark {
  font: 400 25px/1 var(--title); letter-spacing: .14em;
  background: linear-gradient(90deg, #fff 10%, var(--acid) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(159,207,107,.25));
}
.logo-sub { margin-top: 5px; font-size: 11px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }

.tabs { display: flex; gap: 6px; margin: 0 auto; }
.tab {
  height: 42px; padding: 0 14px; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  position: relative;
}
.tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
/* открытый раздел - зелёная рамка, как «Новости» во включённом состоянии в лаунчере */
.tab.active { border-color: rgba(159,207,107,.75); color: var(--acid); box-shadow: 0 0 0 3px rgba(159,207,107,.12), inset 0 0 18px rgba(159,207,107,.1); }
/* «Магазин» подсвечен всегда */
.tab.tab-shop, .tab.tab-shop:hover {
  background: linear-gradient(135deg, #b9e384, #76bd55 48%, #3f8f3d);
  color: #0c1a05; font-weight: 700; border-color: transparent;
  box-shadow: 0 0 0 1px rgba(159,207,107,.5), 0 8px 26px var(--play-glow), inset 0 1px 0 rgba(255,255,255,.45);
  animation: shopGlow 2.4s ease-in-out infinite;
}
.tab.tab-shop:hover { background: linear-gradient(135deg, #c8ec98, #88cc66 48%, #4a9f47); }
.tab.tab-shop.active { box-shadow: 0 0 0 1px rgba(190,225,150,.9), 0 0 0 4px rgba(159,207,107,.25), 0 8px 30px rgba(120,190,90,.6), inset 0 1px 0 rgba(255,255,255,.5); }
.tab.tab-shop svg { opacity: 1; stroke-width: 2; }
@keyframes shopGlow {
  50% { box-shadow: 0 0 0 1px rgba(190,225,150,.9), 0 8px 38px rgba(120,190,90,.72), 0 0 0 4px rgba(159,207,107,.18), inset 0 1px 0 rgba(255,255,255,.45); }
}

.top-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.dl-top { margin-left: 6px; height: 40px; }

@keyframes hudDrop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ---------- страницы ---------- */
main { flex: 1; width: 100%; max-width: calc(var(--wrap) + 44px); margin: 0 auto; padding: 18px 22px 60px; }
.page { display: none; }
.page.on { display: block; animation: pageIn .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.page-title {
  margin: 18px 0 6px; font: 400 clamp(30px, 4.4vw, 46px)/1.1 var(--title); letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(90deg, #fff 30%, var(--acid)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-sub { margin: 0; color: var(--muted); font-size: 16px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.sec-head h2, .feat h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.sec-head h2::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 12px;
  background: var(--acid); transform: rotate(45deg) translateY(-2px); box-shadow: 0 0 12px var(--acid);
}
.more { color: var(--acid); font-size: 14px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.more:hover { color: #fff; }

/* панель-стекло (окна, карточки) */
.panel, .news-card, .rt-section, .modal, .feat, .step, .shop-info, .card {
  background:
    linear-gradient(90deg, var(--acid), rgba(159,207,107,.12) 55%, transparent) left top / 100% 2px no-repeat,
    repeating-linear-gradient(0deg, rgba(255,255,255,.017) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(17,23,14,.88), rgba(6,9,6,.92));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 50px rgba(0,0,0,.45), inset 0 0 70px rgba(120,190,90,.035);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

/* ---------- главная ---------- */
.hero { min-height: min(62vh, 560px); display: flex; flex-direction: column; justify-content: center; padding: 40px 0 36px; max-width: 700px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 6px 12px; border-radius: 2px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--acid);
  background: rgba(159,207,107,.1); border: 1px solid rgba(159,207,107,.4);
  animation: rise .6s .05s both;
}
.hero-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 rgba(163,209,108,.7); animation: ping 1.6s ease-out infinite; }
.hero-title {
  margin: 18px 0 8px;
  font: 400 clamp(56px, 11vw, 132px)/.95 var(--title); letter-spacing: .06em;
  background: linear-gradient(95deg, #fff 15%, #d9f2b8 45%, var(--acid) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 40px rgba(159,207,107,.28));
  animation: rise .7s .1s both, flicker 6s steps(1) 1.2s infinite;
}
.hero-sub { margin: 0 0 30px; max-width: 560px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: #dfe6d6; text-shadow: 0 2px 12px rgba(0,0,0,.6); animation: rise .7s .18s both; }
.hero-actions { position: relative; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px; animation: rise .7s .26s both; }
.hero-actions .btn { height: 54px; padding: 0 28px; }

/* «Скачать лаунчер» + выбор, откуда качать (GitHub по умолчанию / Яндекс) */
.dl-group { display: flex; gap: 6px; }
.dl-src { position: relative; }
.src-btn {
  height: 54px; padding: 0 10px 0 14px; display: flex; align-items: center; gap: 6px; cursor: pointer;
  border-radius: var(--r); border: 1px solid rgba(215,235,200,.14); background: var(--fill); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.src-btn:hover, .src-btn.open { background: var(--fill-hover); border-color: rgba(159,207,107,.6); box-shadow: 0 0 0 3px rgba(159,207,107,.12); }
.src-cur svg { width: 26px; height: 26px; }
.src-caret { width: 12px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s, stroke .2s; }
.src-btn.open .src-caret { transform: rotate(180deg); stroke: var(--acid); }
svg.gh { fill: currentColor; }
svg.ya circle { fill: #fc3f1d; }
svg.ya path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.src-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 15; width: 260px; padding: 6px;
  border-radius: var(--r-lg); border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, var(--acid), rgba(159,207,107,.12) 55%, transparent) left top / 100% 2px no-repeat,
    linear-gradient(180deg, rgba(17,23,14,.97), rgba(6,9,6,.98));
  box-shadow: var(--shadow), 0 0 0 3px rgba(159,207,107,.08);
  animation: menuIn .2s cubic-bezier(.2,.8,.2,1) both; transform-origin: top left;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.src-head { padding: 6px 10px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.src {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; cursor: pointer; text-align: left;
  border: 1px solid transparent; border-radius: var(--r); background: none; color: var(--ink);
  transition: background .15s, border-color .15s;
}
.src + .src { margin-top: 2px; }
.src:hover { background: rgba(159,207,107,.08); border-color: rgba(159,207,107,.2); }
.src > svg:first-child { flex: 0 0 26px; width: 26px; height: 26px; }
.src span { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.src b { font-size: 15.5px; font-weight: 700; letter-spacing: .03em; }
.src em { font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.src .tick { flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: var(--acid); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.src.on { background: rgba(159,207,107,.1); border-color: rgba(159,207,107,.35); }
.src.on .tick { opacity: 1; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: 13.5px; letter-spacing: .06em; animation: rise .7s .32s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(163,209,108,.7); } 80%, 100% { box-shadow: 0 0 0 9px rgba(163,209,108,0); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 91% { opacity: 1; } 91.5% { opacity: .55; } 92% { opacity: 1; } 95% { opacity: .8; } 95.4% { opacity: 1; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 14px; }
.step { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.step b { font: 400 26px/1 var(--title); color: var(--acid); text-shadow: 0 0 18px rgba(159,207,107,.4); }
.step span { font-size: 15px; color: #dfe6d6; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 42px; }
.feat { padding: 20px 20px 22px; transition: border-color .25s, transform .25s; }
.feat:hover { border-color: rgba(159,207,107,.38); transform: translateY(-3px); }
.feat svg { width: 30px; height: 30px; margin-bottom: 14px; fill: none; stroke: var(--acid); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(159,207,107,.45)); }
.feat h3 { margin-bottom: 8px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- новости ---------- */
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
.news-full { grid-template-columns: 1fr; max-width: 860px; margin-top: 22px; }
.news-card { padding: 18px 22px 20px; animation: rise .5s both; transition: border-color .2s; }
.news-card:hover { border-color: rgba(159,207,107,.35); }
.news-date {
  display: inline-flex; padding: 3px 10px; margin-bottom: 12px; border-radius: 2px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  background: var(--acid); color: #0c1a05; box-shadow: 0 0 16px rgba(159,207,107,.35);
}
.news-text { font-size: 16px; line-height: 1.6; color: #e9e6df; overflow-wrap: anywhere; }
.home-news .news-card .news-text { display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.skeleton { height: 150px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(159,207,107,.06), rgba(255,255,255,.02)) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }
.load-err { color: var(--muted); padding: 18px 0; }

/* ---------- разметка текста (как RichText в лаунчере) ---------- */
.rt-p { margin: 0 0 9px; }
.rt-p:last-child, .rt-li:last-child, .rt-note:last-child { margin-bottom: 0; }
.rt-h1 { margin: 6px 0 10px; font-size: 21px; font-weight: 800; letter-spacing: .02em; color: #fff; }
.rt-h2 { margin: 14px 0 6px; font-size: 17px; font-weight: 700; color: var(--acid); letter-spacing: .03em; }
.rt-li { position: relative; padding-left: 22px; margin: 0 0 5px; }
.rt-li::before { content: ""; position: absolute; left: 5px; top: .62em; width: 6px; height: 6px; border-radius: 1px; background: var(--acid); transform: rotate(45deg); box-shadow: 0 0 8px var(--play-glow); }
.rt-note { margin: 4px 0 10px; padding: 10px 14px; border-radius: var(--r); background: rgba(242,193,78,.08); border: 1px solid rgba(242,193,78,.28); color: #f1e6c8; }
.rt-hr { border: 0; height: 1px; margin: 12px 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.rt-b { font-weight: 700; color: #fff; }
.rt-i { font-style: italic; }
.rt-link { color: #7ec8ff; border-bottom: 1px solid rgba(126,200,255,.45); }
.rt-link:hover { color: #b5e0ff; border-bottom-color: #b5e0ff; }

/* ---------- правила: сегменты + спойлеры ---------- */
.seg {
  --n: 3;
  position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr);
  max-width: 860px; margin: 22px 0 18px; padding: 4px; border-radius: 4px;
  background: rgba(0,0,0,.45); border: 1px solid var(--line); box-shadow: inset 0 1px 8px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.seg-glow {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: var(--r);
  background: linear-gradient(135deg, #b9e384, #76bd55 48%, #3f8f3d);
  box-shadow: 0 6px 22px var(--play-glow), inset 0 1px 0 rgba(255,255,255,.45);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .38s cubic-bezier(.2,.9,.25,1);
}
.seg button {
  position: relative; z-index: 1; height: 40px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; padding: 0 8px;
  transition: color .25s;
}
.seg button:hover { color: var(--ink); }
.seg button.on { color: #0c1a05; }
.doc { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.doc-first, .lore { margin-top: 22px; }
.lore { gap: 14px; }
.lore .rt-card { padding: 22px 26px 22px 28px; font-size: 16.5px; line-height: 1.65; }
.lore .rt-card::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--acid), var(--acid-2)); box-shadow: 0 0 12px var(--play-glow);
}
.lore .rt-card > .rt-h1:first-child { margin-top: 0; font: 400 22px/1.2 var(--title); letter-spacing: .05em; text-transform: uppercase; }
.lore .rt-h2 { margin-top: 18px; font-size: 18px; }
.lore .rt-intro { font-size: 17.5px; line-height: 1.6; }
.lore .rt-note { font-family: Consolas, "Courier New", monospace; font-size: 15px; letter-spacing: .02em; background: rgba(163,209,108,.06); border-color: rgba(163,209,108,.3); }
.lore .rt-i { color: #cfd6c4; }
.rt-section { position: relative; padding: 18px 22px 18px 24px; font-size: 16px; line-height: 1.55; color: #ddd8cf; animation: rise .45s both; }
.rt-spoiler { padding: 0; transition: border-color .25s; }
.rt-spoiler:hover { border-color: var(--line-strong); }
.rt-spoiler.open { border-color: rgba(163,209,108,.35); }
.rt-spoiler-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px 15px 24px; border: 0; background: none; cursor: pointer; text-align: left; }
.rt-spoiler-head .rt-h1 { margin: 0; font-size: 18px; transition: color .2s; }
.rt-spoiler-head:hover .rt-h1, .rt-spoiler.open .rt-h1 { color: var(--acid); }
.rt-chevron { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 2px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.05); position: relative; transition: transform .35s cubic-bezier(.2,.9,.25,1), background .2s; }
.rt-chevron::before { content: ""; position: absolute; left: 50%; top: 45%; width: 7px; height: 7px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
.rt-spoiler.open .rt-chevron { transform: rotate(180deg); background: var(--acid); border-color: var(--acid); }
.rt-spoiler.open .rt-chevron::before { border-color: #0c1a05; }
.rt-spoiler-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.9,.25,1); }
.rt-spoiler.open .rt-spoiler-body { grid-template-rows: 1fr; }
.rt-spoiler-inner { min-height: 0; overflow: hidden; padding: 0 22px 0 24px; opacity: 0; transition: opacity .25s, padding .35s; }
.rt-spoiler.open .rt-spoiler-inner { opacity: 1; padding-bottom: 18px; }

/* ---------- магазин ---------- */
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-bottom: 22px; }
.shop-info { padding: 14px 18px; font-size: 14.5px; line-height: 1.5; color: #d9dfd2; max-width: 470px; }
.shop-info b { color: #fff; }
.shop-info div + div { margin-top: 4px; }

.cats { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto; height: 40px; padding: 0 16px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--r); border: 1px solid rgba(215,235,200,.11); background: var(--fill); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
}
.cat:hover { border-color: rgba(200,230,175,.26); background: var(--fill-hover); }
.cat em { font-style: normal; font-size: 12px; color: var(--muted); padding: 1px 7px; border-radius: 2px; background: rgba(255,255,255,.06); }
.cat.on { border-color: rgba(159,207,107,.75); color: var(--acid); box-shadow: 0 0 0 3px rgba(159,207,107,.12), inset 0 0 18px rgba(159,207,107,.1); }
.cat.on em { color: #0c1a05; background: var(--acid); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; animation: rise .45s both; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(159,207,107,.45); box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(159,207,107,.2), inset 0 0 70px rgba(120,190,90,.06); }
.art {
  --c: var(--acid);
  position: relative; height: 150px; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(60% 70% at 50% 55%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.45));
  border-bottom: 1px solid var(--line);
}
.art svg { width: 66px; height: 66px; fill: none; stroke: var(--c); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 14px var(--c)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.art img { max-width: 74%; max-height: 82%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.card:hover .art svg, .card:hover .art img { transform: scale(1.08) rotate(-3deg); }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 3px 9px; border-radius: 2px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--amber); color: #2a1800; box-shadow: 0 0 14px rgba(255,176,46,.45);
}
.badge.sale { background: #ff5a4f; color: #fff; box-shadow: 0 0 14px rgba(255,90,79,.45); }
.badge.hit { background: var(--acid); color: #0c1a05; box-shadow: 0 0 14px rgba(163,209,108,.45); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 14px 16px 16px; }
.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: .03em; }
.card p { margin: 0 0 16px; flex: 1; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: flex; flex-direction: column; line-height: 1.05; }
.price b { font: 400 23px/1 var(--title); letter-spacing: .02em; color: #fff; }
.price s { font-size: 13.5px; color: var(--muted); margin-bottom: 3px; }
.buy-btn {
  height: 40px; padding: 0 18px; border: 0; border-radius: var(--r); cursor: pointer;
  font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0c1a05;
  background: linear-gradient(135deg, #b9e384, #76bd55 48%, #3f8f3d);
  box-shadow: 0 0 0 1px rgba(159,207,107,.5), 0 6px 18px var(--play-glow), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.buy-btn:hover { filter: brightness(1.1); box-shadow: 0 0 0 1px rgba(190,225,150,.85), 0 8px 28px rgba(120,190,90,.6), inset 0 1px 0 rgba(255,255,255,.5); }
.buy-btn:active { transform: scale(.97); }
.shop-empty { color: var(--muted); text-align: center; padding: 30px 0; }

/* ---------- окно покупки ---------- */
.veil {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center; padding: 20px 14px;
  background: rgba(4,6,4,.78); -webkit-backdrop-filter: blur(5px) saturate(80%); backdrop-filter: blur(5px) saturate(80%);
  overflow-y: auto; animation: fade .2s both;
}
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; width: min(460px, 100%); padding: 24px; box-shadow: var(--shadow), inset 0 0 70px rgba(120,190,90,.035); animation: panelIn .32s cubic-bezier(.2,.8,.2,1) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.icon-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; font-size: 22px; line-height: 1; cursor: pointer; }
.icon-x:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.buy-top { display: flex; gap: 16px; align-items: center; margin: 0 40px 20px 0; }
.art.buy-art { flex: 0 0 76px; height: 76px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.art.buy-art svg { width: 40px; height: 40px; }
.art.buy-art img { max-width: 80%; }
.buy-cat { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--acid); }
.buy h3 { margin: 2px 0 4px; font-size: 21px; letter-spacing: .03em; }
.buy-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.lbl { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field { width: 100%; height: 48px; padding: 0 14px; outline: none; font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.field:focus { border-color: rgba(159,207,107,.6); box-shadow: 0 0 0 3px rgba(159,207,107,.12); }
.field.bad { border-color: rgba(229,72,77,.7); box-shadow: 0 0 0 3px rgba(229,72,77,.14); }
.err { min-height: 20px; margin: 5px 0 6px; font-size: 13.5px; color: #ff8f8f; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.qty-row .lbl { margin: 0; }
.qty { display: flex; height: 44px; border: 1px solid rgba(215,235,200,.14); border-radius: var(--r); background: var(--fill); overflow: hidden; }
.qty button { width: 44px; border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--acid); transition: background .15s; }
.qty button:hover { background: rgba(159,207,107,.12); }
.qty input { width: 64px; border: 0; border-inline: 1px solid rgba(215,235,200,.1); background: none; text-align: center; font-size: 17px; font-weight: 700; outline: none; }
.check { display: flex; align-items: center; gap: 10px; margin: 2px 0 18px; cursor: pointer; font-size: 15px; color: var(--muted); user-select: none; }
.check:hover { color: var(--ink); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 2px; display: grid; place-items: center; background: var(--fill); border: 1px solid var(--line-strong); transition: background .18s, border-color .18s, box-shadow .18s; }
.check .box svg { width: 13px; height: 13px; fill: none; stroke: #0c1a05; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .22s .04s; }
.check input:checked + .box { background: linear-gradient(135deg, #b9e384, #76bd55 48%, #3f8f3d); border-color: var(--acid); box-shadow: 0 0 0 3px rgba(159,207,107,.18), 0 4px 12px var(--play-glow); }
.check input:checked + .box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .box { outline: 2px solid var(--acid); outline-offset: 2px; }
.check.bad .box { border-color: rgba(229,72,77,.8); box-shadow: 0 0 0 3px rgba(229,72,77,.15); }
.check a { color: var(--acid); border-bottom: 1px solid rgba(163,209,108,.4); }
.buy-total { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; margin-bottom: 14px; border-top: 1px solid var(--line); }
.buy-total span { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.buy-total b { font: 400 30px/1 var(--title); color: #fff; text-shadow: 0 0 22px rgba(159,207,107,.35); }
.buy-pay { width: 100%; }
.buy-safe { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.4; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 40; transform: translateX(-50%);
  max-width: calc(100vw - 28px); padding: 12px 18px; border-radius: var(--r-lg);
  background: rgba(8,11,8,.94); border: 1px solid rgba(159,207,107,.45); box-shadow: var(--shadow), 0 0 0 3px rgba(159,207,107,.1);
  font-size: 15px; animation: toastIn .3s both;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- 404 ---------- */
.lost { min-height: 50vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; }
.lost-code { font: 400 clamp(90px, 20vw, 170px)/1 var(--title); color: transparent; -webkit-text-stroke: 2px var(--acid); filter: drop-shadow(0 0 22px rgba(159,207,107,.35)); animation: flicker 4s steps(1) infinite; }
.lost p { margin: 0 0 6px; color: var(--muted); font-size: 18px; }

/* ---------- подвал ---------- */
.foot { position: relative; padding: 22px max(22px, calc((100vw - var(--wrap)) / 2)) 26px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75) 40%); }
.foot::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(159,207,107,.35) 20%, rgba(159,207,107,.1) 50%, rgba(159,207,107,.35) 80%, transparent); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font: 400 16px/1 var(--title); letter-spacing: .16em; color: var(--acid); }
.foot-brand img { width: 28px; height: 28px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.foot-links a:hover { color: var(--ink); }
.foot-legal { margin: 12px 0 0; font-size: 12.5px; color: rgba(154,165,148,.7); }

/* =================== адаптив =================== */
@media (max-width: 1500px) {
  .tab svg { display: none; }
  .tab { letter-spacing: .07em; }
}
@media (max-width: 1100px) {
  .tab { padding: 0 11px; font-size: 14px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
  .top .ico { display: none; }
}

/* телефоны и планшеты: разделы - нижняя панель, как в приложении */
@media (max-width: 980px) {
  :root { --top-h: 60px; }
  .tab svg { display: block; }
  /* без анимации у шапки: иначе нижняя панель разделов (position: fixed) крепится к шапке, а не к экрану */
  .top { gap: 10px; padding: 0 16px; animation: none; }
  .top::before { opacity: 1; }
  .logo { gap: 9px; }
  .logo-img { width: 40px; height: 40px; flex-basis: 40px; }
  .logo-mark { font-size: 21px; }
  .logo-sub { font-size: 9.5px; letter-spacing: .26em; }
  .top .ico { display: grid; width: 36px; height: 36px; flex-basis: 36px; }
  .top-right { margin-left: auto; gap: 6px; }
  .dl-top { display: none; }

  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0;
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(6,9,6,.86), rgba(4,6,4,.97));
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(159,207,107,.18);
  }
  /* 6 кнопок в ряд на любом телефоне: шрифт от ширины экрана, длинная подпись переносится, а не вылезает */
  .tab {
    height: 56px; min-width: 0; padding: 0 2px; flex-direction: column; gap: 4px;
    font-size: clamp(8.5px, 2.75vw, 11px); letter-spacing: .03em; line-height: 1.05;
    white-space: normal; text-align: center; overflow: hidden;
  }
  .tab span { max-width: 100%; overflow-wrap: anywhere; }
  .tab svg { flex: 0 0 auto; width: 21px; height: 21px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  main { padding: 6px 16px 40px; }
  .hero { min-height: 0; padding: 34px 0 30px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .dl-group { width: 100%; }
  .src-menu { left: auto; right: 0; transform-origin: top right; }
  .dl-group .play { flex: 1; min-width: 0; padding: 0 16px; font-size: 16px; letter-spacing: .12em; }
  .lore .rt-card { padding: 18px 16px 18px 20px; font-size: 16px; }
  .steps, .features, .news-list { grid-template-columns: 1fr; }
  .features { margin-bottom: 30px; }
  .step { padding: 13px 16px; }
  .shop-head { margin-bottom: 16px; }
  .cats { flex-wrap: wrap; overflow: visible; gap: 6px; }
  .cat { height: 36px; padding: 0 12px; font-size: 13px; }
  .shop-info { max-width: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .art { height: 112px; }
  .art svg { width: 50px; height: 50px; }
  .card-body { padding: 11px 12px 12px; }
  .card h3 { font-size: 16px; }
  .card p { font-size: 13.5px; margin-bottom: 12px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .price b { font-size: 20px; }
  .buy-btn { width: 100%; }
  .seg { gap: 4px; }
  .seg-glow { display: none; }
  .seg button { height: auto; min-height: 44px; padding: 6px 4px; font-size: clamp(11px, 3.2vw, 13px); line-height: 1.15; white-space: normal; border-radius: var(--r); }
  .seg button.on { background: linear-gradient(135deg, #b9e384, #76bd55 48%, #3f8f3d); box-shadow: 0 4px 14px var(--play-glow); }
  .rt-section { padding: 15px 16px 15px 18px; font-size: 15.5px; }
  .rt-spoiler { padding: 0; }
  .rt-spoiler-head { padding: 13px 14px 13px 18px; }
  .rt-spoiler-inner { padding: 0 16px 0 18px; }
  .veil { place-items: end center; padding: 0; }
  .modal.buy { width: 100%; border-radius: 12px 12px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 94dvh; overflow-y: auto; animation: sheetUp .35s cubic-bezier(.2,.8,.2,1) both; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: 22px; }
  /* размытие за стеклом дорого на слабых телефонах - оставляем только у шапки и панели */
  .panel, .news-card, .rt-section, .feat, .step, .shop-info, .card, .btn, .cat { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (min-width: 561px) and (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn, .dl-group { width: auto; }
  .veil { place-items: center; padding: 20px; }
  .modal.buy { width: min(460px, 100%); border-radius: var(--r-lg); padding: 24px; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 360px) {
  .tabs { gap: 3px; padding-inline: 4px; }
  .tab { letter-spacing: 0; }
  .tab svg { width: 19px; height: 19px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
  .top .ico.yt { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bg.on { opacity: 1; }
}
