:root {
  --bg: #0a0e0d;
  --bg-alt: #0e1412;
  --panel: rgba(22, 31, 28, 0.72);
  --panel-solid: #141c19;
  --panel-2: #1a2420;
  --line: rgba(200, 225, 214, 0.11);
  --line-strong: rgba(200, 225, 214, 0.22);
  --text: #e9eeeb;
  --muted: #94a39d;
  --accent: #e8ab3c;
  --accent-2: #ffcf76;
  --accent-ink: #1a1204;
  --water: #5fbcaf;
  --green: #6fd08c;
  --water-deep: #12322e;
  --warn: #d9784a;
  --radius: 4px;
  --cut: 14px;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3632; border: 2px solid var(--bg); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left)); position: relative; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); font: 600 14px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); }

/* film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.05; margin: 0; }
h2 {
  font-size: clamp(34px, 5.2vw, 64px); font-weight: 500;
  text-transform: uppercase; letter-spacing: .005em;
  /* запас сверху (Й, Ё) и снизу (Д, Щ, Q): градиент заливает только рамку элемента */
  padding: .12em 0 .14em; margin: -.12em 0 calc(24px - .14em);
  background: linear-gradient(180deg, #fff 30%, #a9b9b3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h3 { font-size: 20px; letter-spacing: .03em; }

.label {
  font: 500 12px/1 var(--mono);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.label::before {
  content: attr(data-num);
  color: var(--bg); background: var(--accent);
  padding: 4px 6px; letter-spacing: .08em;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 80% 100%, 0 100%);
}
.label::after { content: ""; width: 56px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.lead { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 0 44px; }

/* chamfered HUD frame (corner brackets) */
.frame { position: relative; }
.frame::before {
  content: ""; position: absolute; inset: -8px; pointer-events: none; z-index: 2;
  --c: var(--accent); --l: 18px; --w: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
}

/* interactive card: glass + glow following cursor + corner brackets on hover */
.card {
  position: relative; isolation: isolate;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: border-color .3s, background .3s, translate .4s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 171, 60, .13), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.card:hover { border-color: rgba(232, 171, 60, .45); }
.card:hover::after { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  --cut-b: 10px;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px;
  border: 0;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  clip-path: polygon(0 0, calc(100% - var(--cut-b)) 0, 100% var(--cut-b), 100% 100%, var(--cut-b) 100%, 0 calc(100% - var(--cut-b)));
  font: 500 15px/1 var(--head);
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background .25s, color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .09); }
.btn--primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink); box-shadow: none; font-weight: 600;
}
.btn--primary:hover { background: linear-gradient(180deg, #ffe0a0, var(--accent-2)); box-shadow: 0 0 40px rgba(232, 171, 60, .4); }
.btn--ghost { backdrop-filter: blur(8px); }
.btn--small { padding: 11px 18px; font-size: 13px; --cut-b: 7px; }
.btn .btn__brand { width: 18px; height: 18px; fill: currentColor; stroke: none; margin-right: 2px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid, .nav.is-open { background: rgba(10, 14, 13, .82); backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); }
.nav__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--water), var(--accent));
  transform-origin: left; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(232, 171, 60, .6);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  clip-path: polygon(0 0, 75% 0, 100% 25%, 100% 100%, 25% 100%, 0 75%);
  font: 700 14px/1 var(--head); color: var(--accent-ink); letter-spacing: .04em;
}
.logo__text { font: 600 18px/1 var(--head); text-transform: uppercase; letter-spacing: .18em; }
.nav__links { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.nav__links a {
  position: relative; text-decoration: none; color: var(--muted);
  font: 500 14px/1 var(--head); letter-spacing: .12em; text-transform: uppercase;
  transition: color .25s; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links .nav__cta { color: var(--accent); }
.lang { display: flex; border: 1px solid var(--line-strong); }
.lang button {
  background: none; border: 0; padding: 8px 11px;
  font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--muted);
  transition: color .2s, background .2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); transition: transform .25s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.nav.is-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px 0 84px;
  overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: -6% 0 -10% 0; z-index: -5;
  background: center 60% / cover no-repeat;
  background-image: url('../assets/img/steam_1.webp');
  animation: heroIn 2.4s var(--ease) both, drift 40s ease-in-out 2.4s infinite alternate;
  will-change: transform;
}
@keyframes heroIn { from { transform: scale(1.18); filter: brightness(.2) blur(6px); } to { transform: scale(1.04); filter: none; } }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateX(-1.5%); } }

.hero__fog {
  position: absolute; left: -50%; right: -50%; z-index: -4; pointer-events: none;
  background: radial-gradient(ellipse 40% 60% at 30% 50%, rgba(200, 215, 205, .14), transparent 70%),
              radial-gradient(ellipse 35% 50% at 75% 55%, rgba(190, 210, 200, .12), transparent 70%);
  filter: blur(20px);
}
.hero__fog--1 { top: 35%; height: 45%; animation: fog 38s linear infinite; }
.hero__fog--2 { top: 50%; height: 40%; opacity: .8; animation: fog 60s linear infinite reverse; }
@keyframes fog { from { transform: translateX(-12%); } to { transform: translateX(12%); } }

.hero__rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; pointer-events: none; }
.hero__vignette {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,14,13,.75) 0%, rgba(10,14,13,0) 28%, rgba(10,14,13,.15) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,14,13,.9) 0%, rgba(10,14,13,.35) 55%, rgba(10,14,13,.1) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 50%, rgba(0,0,0,.5));
}

/* compass strip (STALKER 2 HUD) */
.compass {
  position: absolute; top: 96px; left: 50%; transform: translateX(-50%);
  width: min(560px, 76vw); z-index: 3;
  animation: fadeDown 1.2s var(--ease) 1s both;
}
.compass__window {
  position: relative; height: 34px; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
          mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.compass__track { position: absolute; top: 0; left: 0; height: 100%; will-change: transform; }
.compass__tick, .compass__letter, .compass__boat { position: absolute; top: 0; transform: translateX(-50%); }
.compass__tick { width: 1px; height: 7px; top: 14px; background: rgba(233, 238, 235, .35); }
.compass__tick.is-mid { height: 11px; top: 12px; background: rgba(233, 238, 235, .55); }
.compass__letter { top: 9px; font: 500 12px/1 var(--mono); color: rgba(233, 238, 235, .7); letter-spacing: .04em; }
.compass__letter.is-main { font-size: 15px; top: 7px; color: #fff; font-weight: 500; }
.compass__boat { top: 3px; width: 18px; height: 18px; filter: drop-shadow(0 0 6px rgba(232, 171, 60, .8)); }
.compass__boat svg { width: 100%; height: 100%; fill: var(--accent); stroke: var(--accent); stroke-width: 1; stroke-linejoin: round; }
.compass__needle {
  position: absolute; left: 50%; top: -6px; transform: translateX(-50%);
  border: 6px solid transparent; border-top: 7px solid var(--accent);
}
.compass__deg {
  position: absolute; left: 50%; top: 38px; transform: translateX(-50%);
  font: 500 11px/1 var(--mono); color: var(--accent); letter-spacing: .1em;
}
@keyframes fadeDown { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* HUD corners + coords */
.hud { position: absolute; inset: 86px 24px 24px; pointer-events: none; z-index: 2; animation: fadeIn 1.5s ease 1.2s both; }
.hud__corner { position: absolute; width: 26px; height: 26px; border-color: rgba(233, 238, 235, .35); border-style: solid; border-width: 0; }
.hud__corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud__corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud__corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud__corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hud__coords, .hud__rec { position: absolute; font: 400 11px/1 var(--mono); letter-spacing: .16em; color: rgba(233, 238, 235, .55); }
.hud__coords { top: 10px; left: 38px; }
.hud__rec { top: 10px; right: 38px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; white-space: nowrap; }
.hud__rec i { width: 7px; height: 7px; border-radius: 50%; background: #e0493b; box-shadow: 0 0 8px #e0493b; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero__content > * { animation: rise 1.1s var(--ease) both; }
.hero__content > :nth-child(1) { animation-delay: .5s; }
.hero__content > :nth-child(3) { animation: fadeIn 2s ease 1.3s both; }
.hero__content > :nth-child(4) { animation-delay: 1.1s; }
.hero__content > :nth-child(5) { animation-delay: 1.25s; }
.hero__content > :nth-child(6) { animation-delay: 1.4s; }
.hero__content > :nth-child(7) { animation-delay: 1.55s; }
.hero__content > .hero__title { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.kicker {
  display: flex; align-items: center; gap: 12px;
  font: 500 12px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--water); margin: 0 0 22px;
}
.kicker__dot { width: 8px; height: 8px; background: var(--water); box-shadow: 0 0 12px var(--water); transform: rotate(45deg); flex-shrink: 0; }

.hero__title {
  font-size: clamp(64px, 11.5vw, 144px);
  font-weight: 600; line-height: .84;
  text-transform: uppercase; letter-spacing: .015em;
  display: flex; flex-direction: column;
}
/* запас под хвостики букв (Q) внутри маски анимации; отрицательный отступ сохраняет межстрочный интервал */
.hero__line { display: block; overflow: hidden; margin-bottom: -.18em; }
.hero__line > span {
  display: block; padding-bottom: .22em;
  background: linear-gradient(180deg, #ffffff 20%, #cfd9d5 60%, #8fa39c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 40px rgba(0, 0, 0, .5));
  animation: lineUp 1.3s var(--ease) both;
}
.hero__line:nth-child(1) > span { animation-delay: .55s; }
.hero__line:nth-child(2) > span { animation-delay: .72s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }

/* отражение «EXITUS» в воде: зеркальная копия строго ПОД заголовком.
   Внутренняя строка переворачивается вокруг своего центра, поэтому низ букв оказывается
   у верхнего края блока (у «линии воды»), а блок показывает только верхнюю часть отражения. */
.hero__reflection {
  font: 600 clamp(64px, 11.5vw, 144px)/.84 var(--head);
  text-transform: uppercase; letter-spacing: .015em;
  height: .34em; overflow: hidden;
  margin: .03em 0 -.1em;
  color: rgba(190, 215, 208, .5);
  -webkit-mask: linear-gradient(180deg, rgba(0,0,0,.6), transparent 90%);
          mask: linear-gradient(180deg, rgba(0,0,0,.6), transparent 90%);
  filter: url(#ripple) blur(.6px);
  user-select: none; pointer-events: none;
}
.hero__reflection > span { display: block; transform: scaleY(-1); }

.hero__tagline {
  font: 400 clamp(20px, 2.4vw, 28px)/1.2 var(--head);
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 16px;
  text-shadow: 0 0 30px rgba(232, 171, 60, .35);
}
.hero__lead { max-width: 540px; font-size: 18px; color: #cdd7d3; margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__meta {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start;
  gap: 0; margin: 0; padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  position: relative; max-width: 720px;
}
.hero__meta::before { content: ""; position: absolute; top: -1px; left: 0; width: 64px; height: 1px; background: var(--accent); }
.hero__meta div { padding-right: 36px; margin-right: 36px; border-right: 1px solid var(--line); }
.hero__meta div:last-child { border: 0; margin: 0; padding: 0; }
.hero__meta dt { font: 400 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hero__meta dd { margin: 0; font: 500 21px/1.2 var(--head); letter-spacing: .03em; }

/* PDA notification */
.pda {
  position: absolute; right: 96px; bottom: 150px; z-index: 4;
  width: 300px; padding: 14px 16px 16px;
  background: rgba(14, 20, 18, .78); backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-left: 2px solid var(--accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateX(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.pda.is-on { opacity: 1; transform: none; }
.pda__head { display: flex; align-items: center; gap: 8px; font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pda__icon { width: 20px; height: 20px; display: grid; place-items: center; background: var(--accent); }
.pda__icon svg { width: 14px; height: 14px; fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linejoin: round; }
.pda__time { margin-left: auto; }
.pda__title { margin: 0 0 2px; font: 500 18px/1.2 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.pda__title b { color: var(--accent); font-weight: 500; margin-left: 6px; }
.pda__text { margin: 0; color: var(--muted); font-size: 13px; }

.scroll-cue {
  position: absolute; right: max(40px, env(safe-area-inset-right)); bottom: 40px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  writing-mode: vertical-rl;
  font: 400 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  animation: fadeIn 1s ease 2.2s both;
}
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2s ease-in-out infinite; }
@keyframes cue { to { top: 110%; } }
.scroll-cue i { writing-mode: horizontal-tb; }

.hero__wave { position: absolute; left: 0; bottom: -1px; width: 200%; height: 36px; z-index: 1; fill: var(--bg); animation: wave 18s linear infinite; }
@keyframes wave { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 130px 0; position: relative; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(95, 188, 175, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 188, 175, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent);
          mask: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent);
}

/* about */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: center; }
.about__text p:not(.label) { color: #c6d0cc; font-size: 17px; margin: 0 0 18px; }
.about__media { margin: 0; }
.about__img { overflow: hidden; }
.about__img img { aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform 1.2s var(--ease); }
.about__media:hover .about__img img { transform: scale(1.04); }
.about__media figcaption { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.about__media figcaption .mono { font-size: 11px; letter-spacing: .14em; color: var(--accent); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.feature { padding: 36px 30px 38px; }
.feature:hover { translate: 0 -4px; }
.feature__num { position: absolute; top: 22px; right: 26px; font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: .1em; }
.feature svg {
  width: 46px; height: 46px; padding: 10px; margin-bottom: 26px;
  fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(232, 171, 60, .08); border: 1px solid rgba(232, 171, 60, .3);
  transition: background .3s, box-shadow .3s;
}
.feature:hover svg { background: rgba(232, 171, 60, .16); box-shadow: 0 0 24px rgba(232, 171, 60, .25); }
.feature h3 { margin-bottom: 12px; text-transform: uppercase; font-size: 21px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* trailer */
.section--trailer { padding-top: 110px; }
.trailer { position: relative; aspect-ratio: 16/9; margin-top: 28px; background: #000; isolation: isolate; }
.trailer__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; }
.trailer::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(5,8,7,.35), rgba(5,8,7,.85) 75%);
}
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer:not(.has-video) .trailer__poster { filter: blur(6px) saturate(.5) brightness(.45); transform: scale(1.06); }

.trailer__soon {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 14px;
}
.trailer__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--mono); letter-spacing: .24em; color: var(--accent);
  padding: 7px 12px; border: 1px solid rgba(232, 171, 60, .5); background: rgba(10, 14, 13, .6);
}
.trailer__tag i { width: 7px; height: 7px; border-radius: 50%; background: #e0493b; box-shadow: 0 0 8px #e0493b; animation: blink 1.4s steps(2) infinite; }
.trailer__soon-title { margin: 6px 0 0; font: 500 clamp(28px, 4.4vw, 54px)/1.05 var(--head); text-transform: uppercase; letter-spacing: .03em; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.trailer__soon-text { margin: 0 0 12px; max-width: 520px; color: #c6d0cc; font-size: 16px; }

.trailer__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: none; border: 0; color: var(--text);
  font: 500 15px/1 var(--head); letter-spacing: .16em; text-transform: uppercase;
}
.trailer__play-icon {
  width: 96px; height: 96px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 22% 100%, 0 78%);
  box-shadow: 0 0 60px rgba(232, 171, 60, .5);
  transition: transform .4s var(--ease);
}
.trailer__play-icon svg { width: 38px; height: 38px; fill: var(--accent-ink); margin-left: 5px; }
.trailer__play:hover .trailer__play-icon { transform: scale(1.08); }
.trailer__play[hidden], .trailer__soon[hidden] { display: none; }
.trailer.has-video:hover .trailer__poster { transform: scale(1.03); }
.trailer.has-video::after { background: linear-gradient(180deg, transparent 40%, rgba(5,8,7,.6)); }

/* gallery slider */
.slider { margin-top: 28px; outline: none; }
.slider:focus-visible::before { --c: var(--accent-2); }
.slider__stage { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; cursor: zoom-in; touch-action: pan-y; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide.is-active img { transform: scale(1); }
.slider__stage::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,8,7,.35), transparent 22%, transparent 70%, rgba(5,8,7,.8));
}
.slider__nav, .slider__full {
  position: absolute; z-index: 3; display: grid; place-items: center;
  background: rgba(10, 14, 13, .55); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); color: var(--text);
  transition: background .25s, border-color .25s, color .25s;
}
.slider__nav { top: 50%; width: 56px; height: 56px; margin-top: -28px; }
.slider__nav--prev { left: 20px; }
.slider__nav--next { right: 20px; }
.slider__full { top: 18px; right: 18px; width: 42px; height: 42px; }
.slider__nav svg, .slider__full svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.slider__full svg { width: 18px; height: 18px; }
.slider__nav:hover, .slider__full:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slider__bar { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 3; display: flex; align-items: center; gap: 18px; pointer-events: none; }
.slider__count { font: 500 13px/1 var(--mono); letter-spacing: .16em; color: var(--text); }
.slider__progress { flex: 1; height: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.slider__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--accent); }

.thumbs {
  display: flex; gap: 10px; margin-top: 18px; padding: 4px 2px 10px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #2a3632 transparent;
}
.thumbs::-webkit-scrollbar { height: 6px; }
.thumb {
  flex: 0 0 150px; aspect-ratio: 16/9; padding: 0; border: 0; background: #000;
  position: relative; overflow: hidden; scroll-snap-align: center;
  opacity: .45; transition: opacity .3s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb::after { content: ""; position: absolute; inset: 0; border: 1.5px solid transparent; transition: border-color .3s; }
.thumb:hover { opacity: .85; }
.thumb.is-active { opacity: 1; }
.thumb.is-active::after { border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); }

/* download */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.platform { display: flex; flex-direction: column; gap: 12px; padding: 30px 26px 26px; text-decoration: none; }
.platform:hover { translate: 0 -6px; }
.platform__idx { font: 400 11px/1 var(--mono); color: var(--muted); letter-spacing: .14em; }
.platform__idx::before { content: "SRC-"; }
.platform__name { font: 500 26px/1.05 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.platform__desc { color: var(--muted); font-size: 15px; flex: 1; }
.platform__go {
  display: flex; align-items: center; justify-content: space-between;
  font: 500 13px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  padding-top: 16px; margin-top: 10px; border-top: 1px solid var(--line);
}
.platform__go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.platform:hover .platform__go svg { transform: translateX(6px); }

.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.note { padding: 32px; background: rgba(255, 255, 255, .015); border: 1px solid var(--line); position: relative; }
.note::before { content: ""; position: absolute; left: -1px; top: -1px; width: 80px; height: 2px; background: var(--water); }
.note--warn::before { background: var(--warn); }
.note h3 { display: flex; align-items: center; gap: 12px; text-transform: uppercase; margin-bottom: 20px; }
.note__tag { font: 500 11px/1 var(--mono); padding: 5px 7px; background: rgba(95, 188, 175, .15); color: var(--water); letter-spacing: .08em; }
.note--warn .note__tag { background: rgba(217, 120, 74, .15); color: var(--warn); }
.note ul { margin: 0; padding: 0; list-style: none; }
.note li { position: relative; padding-left: 22px; color: #bfcac6; font-size: 15px; margin-bottom: 12px; }
.note li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border: 1px solid var(--muted); transform: rotate(45deg); }

/* roadmap */
.roadmap { overflow: hidden; isolation: isolate; padding: 150px 0; }
.roadmap__bg { position: absolute; inset: -15% 0; z-index: -2; background: url('../assets/img/steam_16.webp') center / cover no-repeat; opacity: .5; will-change: translate; }
.roadmap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 15%, rgba(10,14,13,.5)), linear-gradient(180deg, var(--bg), transparent 25%, transparent 75%, var(--bg)); }
/* карусель планов: пролистывается стрелками, колесом/тачпадом и свайпом */
.rm-nav { display: flex; justify-content: flex-end; gap: 10px; margin: -20px 0 14px; }
.rm-btn {
  width: 48px; height: 48px; display: grid; place-items: center; color: var(--text);
  background: rgba(10, 14, 13, .6); border: 1px solid var(--line-strong); backdrop-filter: blur(6px);
  transition: background .25s, border-color .25s, color .25s, opacity .25s;
}
.rm-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rm-btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rm-btn:disabled { opacity: .3; cursor: default; }
.roadmap__list {
  list-style: none; margin: 0; padding: 34px 2px 16px;
  display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: 2px; scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, #000 92%, transparent); mask: linear-gradient(90deg, #000 92%, transparent);
}
.roadmap__list::-webkit-scrollbar { display: none; }
.roadmap__list.at-end { -webkit-mask: none; mask: none; }
.rm-item {
  flex: 0 0 calc((100% - 3 * 18px) / 4); scroll-snap-align: start; position: relative;
  padding: 24px 22px 26px; min-height: 150px;
  background: rgba(10, 14, 13, .6); backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  font: 500 19px/1.25 var(--head); letter-spacing: .02em;
}
.rm-line { position: absolute; top: -28px; left: 0; right: -19px; height: 1px; background: rgba(232, 171, 60, .35); }
.rm-item:last-child .rm-line { right: 0; background: linear-gradient(90deg, rgba(232,171,60,.35), transparent); }
.rm-node { position: absolute; top: -34px; left: 22px; width: 11px; height: 11px; background: var(--bg); border: 1.5px solid var(--accent); transform: rotate(45deg); }
.rm-num { display: block; font: 400 12px/1 var(--mono); letter-spacing: .16em; color: var(--accent); margin-bottom: 14px; }
.rm-text { display: block; }
.rm-done {
  position: absolute; top: 18px; right: 16px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px 5px 7px; font: 500 12px/1 var(--mono); letter-spacing: .06em;
  color: var(--green); background: rgba(111, 208, 140, .12); border: 1px solid rgba(111, 208, 140, .45);
}
.rm-done svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rm-item.is-done { border-color: rgba(111, 208, 140, .3); }
.rm-item.is-done .rm-line { background: rgba(111, 208, 140, .6); }
.rm-item.is-done .rm-node { background: var(--green); border-color: var(--green); box-shadow: 0 0 12px rgba(111, 208, 140, .7); }
.rm-item.is-done .rm-num { color: var(--green); }

/* support */
.section--support { overflow: hidden; }
.section--support::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%; pointer-events: none;
  background: radial-gradient(circle, rgba(232, 171, 60, .08), transparent 60%);
}
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.support__free { color: var(--muted); font-size: 15px; border-left: 2px solid var(--water); padding-left: 18px; margin: 0; }
.support .lead { margin-bottom: 32px; }
.donate { display: flex; flex-direction: column; gap: 12px; }
.donate__card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 18px; row-gap: 14px; padding: 20px 22px; }
.donate__card:hover { translate: -4px 0; }
.donate__card.is-empty { opacity: .5; border-style: dashed; }
.donate__idx { font: 400 11px/1 var(--mono); color: var(--accent); letter-spacing: .1em; align-self: start; padding-top: 6px; }
.donate__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.donate__card:not(:has(.donate__qr)) .donate__info { grid-column: 2 / -1; }
.donate__name { font: 500 21px/1.15 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.donate__note { color: var(--muted); font-size: 14px; }
.donate__action { grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.donate__addr { flex: 1; }
.donate__addr { font: 12px var(--mono); background: var(--bg); padding: 9px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; border: 1px solid var(--line); }
.donate__placeholder { font: 11px/1.45 var(--mono); color: var(--muted); }

/* changelog: ссылка в первом экране и окно с прокруткой */
.cl-open {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; border: 0; background: none;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); cursor: pointer;
}
.cl-open svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.cl-open:hover { color: var(--accent-2); }
.cl-open:hover svg { transform: translateX(4px); }
.hero__meta dd + .cl-open { display: flex; }

.clbox {
  position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 20px;
  background: rgba(4, 6, 5, .9); backdrop-filter: blur(10px); animation: fadeIn .25s ease;
}
.clbox__card {
  position: relative; width: min(780px, 100%); max-height: min(86vh, 920px); display: flex; flex-direction: column;
  background: var(--panel-solid); border: 1px solid var(--line-strong); border-top: 2px solid var(--accent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.clbox__head { padding: 26px 70px 18px 32px; border-bottom: 1px solid var(--line); }
.clbox__kicker { margin: 0 0 8px; font: 500 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.clbox__title { margin: 0; font: 500 34px/1.05 var(--head); text-transform: uppercase; letter-spacing: .03em; color: var(--text); background: none; -webkit-background-clip: initial; background-clip: initial; padding: 0; }
.clbox__close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; background: none; border: 1px solid var(--line); font-size: 26px; line-height: 1; color: var(--text); }
.clbox__close:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.clbox__body { overflow-y: auto; overscroll-behavior: contain; padding: 6px 32px 30px; scrollbar-width: thin; scrollbar-color: #34433e transparent; outline: none; }
.cl-ver h3 { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; font: 500 24px/1 var(--head); letter-spacing: .03em; }
.cl-ver__label { font: 400 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cl-ver__new { padding: 5px 8px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green); background: rgba(111, 208, 140, .12); border: 1px solid rgba(111, 208, 140, .45); }
.cl-ver ul { margin: 0; padding: 0 0 6px; list-style: none; border-bottom: 1px solid var(--line); }
.cl-ver:last-child ul { border-bottom: 0; }
.cl-ver li { position: relative; padding-left: 22px; margin-bottom: 11px; color: #c3cdc9; font-size: 15px; line-height: 1.55; }
.cl-ver li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border: 1px solid var(--accent); transform: rotate(45deg); }
@media (max-width: 640px) {
  .clbox { padding: 10px; }
  .clbox__card { max-height: 92vh; }
  .clbox__head { padding: 22px 60px 14px 20px; }
  .clbox__title { font-size: 26px; }
  .clbox__body { padding: 4px 20px 24px; }
}

/* donation QR */
.donate__qr {
  grid-column: 3; grid-row: 1; padding: 4px; border: 0; background: #fff; line-height: 0;
  width: 64px; height: 64px; cursor: zoom-in;
  box-shadow: 0 0 0 1px var(--line-strong);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.donate__qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.donate__qr:hover { transform: scale(1.06); box-shadow: 0 0 0 2px var(--accent), 0 0 24px rgba(232,171,60,.35); }

.qrbox {
  position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 20px;
  background: rgba(4, 6, 5, .9); backdrop-filter: blur(10px); animation: fadeIn .25s ease;
}
.qrbox__card {
  position: relative; width: min(360px, 100%); padding: 30px 28px 24px; text-align: center;
  background: var(--panel-solid); border: 1px solid var(--line-strong); border-top: 2px solid var(--accent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.qrbox__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; background: none; border: 1px solid var(--line); font-size: 24px; line-height: 1; }
.qrbox__close:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.qrbox__name { margin: 0; font: 500 24px/1.1 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.qrbox__note { margin: 6px 0 18px; color: var(--muted); font-size: 14px; }
.qrbox__img { width: 100%; max-width: 264px; height: auto; margin: 0 auto; padding: 10px; background: #fff; image-rendering: pixelated; }
.qrbox__data { display: block; margin: 16px 0 6px; font: 12px/1.5 var(--mono); color: var(--text); word-break: break-all; }
.qrbox__hint { margin: 0; color: var(--muted); font: 11px/1.4 var(--mono); letter-spacing: .06em; }

.goal { margin: 0 0 30px; padding: 24px; }
.goal__head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.goal__label { font: 400 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.goal__title { font: 500 22px/1.2 var(--head); text-transform: uppercase; }
.goal__bar { height: 10px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); overflow: hidden; }
.goal__bar span {
  display: block; height: 100%;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, var(--accent-2) 8px 16px);
  box-shadow: 0 0 16px rgba(232, 171, 60, .5);
  animation: stripes 1.2s linear infinite; background-size: 22.6px 22.6px;
}
@keyframes stripes { to { background-position: 22.6px 0; } }
.goal__nums { margin: 12px 0 0; color: var(--muted); font: 13px var(--mono); }

/* community */
#community { padding: 110px 0; }
.community { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.community__item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 22px; align-items: center; padding: 30px 32px; text-decoration: none; color: var(--muted); }
.community__item:hover { translate: 0 -4px; }
.community__item svg { grid-row: span 2; width: 52px; height: 52px; fill: none; stroke: var(--water); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.community__name { font: 500 28px/1.1 var(--head); text-transform: uppercase; color: var(--text); letter-spacing: .04em; }

/* footer */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: 0 0 44px; background: #070a09; }
.footer__giant {
  font: 700 clamp(64px, 16vw, 250px)/.8 var(--head); text-transform: uppercase; letter-spacing: .02em;
  text-align: center; white-space: nowrap; margin: 40px 0 0; padding-bottom: .25em;
  color: transparent; -webkit-text-stroke: 1px rgba(233, 238, 235, .09);
  background: linear-gradient(180deg, rgba(232,171,60,.08), transparent 70%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
.footer__inner { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; }
.footer__legal { color: var(--muted); font-size: 13px; max-width: 560px; margin: 18px 0 0; }
.footer__made { margin: 0; font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.footer__made a { text-decoration: none; color: var(--muted); transition: color .2s; }
.footer__made a:hover { color: var(--accent); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(4, 6, 5, .94); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 64px 88px;
  animation: fadeIn .3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; }
.lightbox img { max-height: calc(100vh - 128px); max-width: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); opacity: 0; transform: scale(.98); transition: opacity .4s, transform .5s var(--ease); }
.lightbox img.is-loaded { opacity: 1; transform: none; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong);
  width: 52px; height: 52px; font-size: 26px; line-height: 1;
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav { top: 50%; margin-top: -26px; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--muted); font: 400 12px/1 var(--mono); letter-spacing: .18em; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { gap: 20px; }
  .rm-item { flex-basis: calc((100% - 2 * 18px) / 3); }
  .platforms { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  .burger { display: block; }
  .nav__inner { gap: 14px; }
  .lang { margin-left: auto; }
  .nav__links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 14, 13, .97); border-bottom: 1px solid var(--line);
    padding: 8px 28px 22px; display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__links a::after { display: none; }
}

@media (max-width: 960px) {
  .about, .support { grid-template-columns: 1fr; gap: 48px; }
  .features { grid-template-columns: 1fr 1fr; }
  .notes { grid-template-columns: 1fr; }
  .section { padding: 96px 0; }
  .hud__coords, .hud__rec { display: none; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .logo__text { display: none; }
  .hero { padding: 150px 0 72px; }
  .compass { top: 84px; width: 88vw; }
  .hud { inset: 76px 10px 12px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .hero__meta div, .hero__meta div:last-child { border: 0; margin: 0; padding: 0 12px 0 0; }
  .scroll-cue { display: none; }
  .features, .platforms, .community { grid-template-columns: 1fr; }
  .slider__nav { width: 42px; height: 42px; margin-top: -21px; }
  .trailer:not(.has-video) { aspect-ratio: 4/5; }
  .trailer__play-icon { width: 76px; height: 76px; }
  .slider__nav--prev { left: 10px; }
  .slider__nav--next { right: 10px; }
  .slider__bar { left: 14px; right: 14px; bottom: 12px; }
  .thumb { flex-basis: 104px; }
  .rm-item { flex-basis: 78%; }
  .rm-nav { margin-top: -6px; }
  .donate__card { padding: 18px; column-gap: 14px; }
  .donate__action { grid-column: 1 / -1; }
  .community__item { padding: 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .lightbox { padding: 64px 8px; }
  .lightbox__nav { top: auto; bottom: 10px; margin-top: 0; }
  .section { padding: 76px 0; }
}


/* ---------- screen-specific tuning ---------- */
/* small phones: hero background in lighter size */
@media (max-width: 800px) {
  .hero__bg { background-image: url('../assets/img/steam_1-960.webp'); }
  .roadmap__bg { background-image: url('../assets/img/steam_16-960.webp'); }
}
/* 2K / 4K monitors: sharper hero, wider layout */
@media (min-width: 1921px) {
  .hero__bg { background-image: url('../assets/img/steam_1-2560.webp'); }
}
@media (min-width: 1700px) {
  .wrap { max-width: 1440px; }
  .hero__title, .hero__reflection { font-size: 168px; }
  .hero__lead { max-width: 600px; font-size: 19px; }
}
/* PDA notification only where there is free room on the right */
@media (max-width: 1279px) { .pda { display: none; } }

/* laptops with short screens (1366x768, 1280x720, 1440x800) */
@media (min-width: 961px) and (max-height: 860px) {
  .hero { padding: 128px 0 56px; }
  .hero__title, .hero__reflection { font-size: clamp(64px, 16.5vh, 144px); }
  .kicker { margin-bottom: 16px; }
  .hero__tagline { margin-bottom: 10px; }
  .hero__lead { margin-bottom: 26px; }
  .hero__actions { margin-bottom: 30px; }
  .compass { top: 84px; }
  .pda { bottom: 110px; }
}

/* phones turned sideways */
@media (orientation: landscape) and (max-height: 520px) {
  .hero { min-height: auto; padding: 100px 0 48px; }
  .compass, .hud, .scroll-cue, .pda { display: none; }
  .hero__title, .hero__reflection { font-size: clamp(48px, 18vh, 88px); }
  .hero__lead { font-size: 16px; margin-bottom: 22px; }
  .hero__actions { margin-bottom: 26px; }
  .hero__actions .btn { flex: 0 1 auto; }
  .nav__inner { height: 58px; }
  .nav__links { top: 58px; max-height: calc(100vh - 58px); overflow-y: auto; }
}

/* touch screens: bigger tap targets, no sticky hover lifts, calmer effects */
@media (pointer: coarse) {
  .lang button { padding: 12px 12px; }
  .thumb { flex-basis: 120px; }
  .grain { animation: none; }
}
@media (hover: none) {
  .card:hover, .feature:hover, .platform:hover, .donate__card:hover, .community__item:hover { translate: none; }
  .card:hover::after { opacity: 0; }
  .btn:hover::after { left: -60%; }
}

/* very small phones (iPhone SE 1st gen, old Androids) */
@media (max-width: 360px) {
  .hero__title, .hero__reflection { font-size: 54px; }
  .hero__tagline { letter-spacing: .14em; font-size: 18px; }
  .lang button { padding-left: 9px; padding-right: 9px; }
  h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pda { display: none; }
}
