/* ============================================================
   Rust & Remedy — site styles
   Hand-built, no frameworks. Palette and type taken from the game.
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Bungee";
  src: url("/assets/fonts/bungee-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Bungee";
  src: url("/assets/fonts/bungee-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-latin-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}
@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-cyrillic.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}

/* ---------- tokens ---------- */
:root {
  --sand: #f1e0be;
  --sand-2: #e6cda2;
  --paper: #fbf4e4;
  --cream: #fff8ea;
  --ink: #23190f;
  --ink-2: #4a3527;
  --ink-soft: #6b5140;
  --rust: #b8542a;
  --rust-2: #de7a35;
  --rust-3: #8d3c1b;
  --teal: #3c8d88;
  --teal-2: #65bdb2;
  --teal-3: #235a57;
  --gel: #6ff0b0;
  --amber: #f5b64e;
  --night: #12161d;
  --night-2: #1b2430;

  --f-display: "Bungee", "Unbounded", system-ui, sans-serif;
  --f-head: "Unbounded", system-ui, sans-serif;
  --f-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --w-max: 1320px;
  --pad: clamp(18px, 4vw, 64px);
  --shadow-hard: 8px 8px 0 var(--ink);
  --shadow-soft: 0 24px 60px -30px rgba(35, 25, 15, .55);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
  --edge: 2px solid var(--ink);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-booting { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--rust-2); color: var(--cream); }

:focus-visible {
  outline: 3px solid var(--teal-3);
  outline-offset: 3px;
}

/* ---------- helpers ---------- */
.wrap {
  width: min(var(--w-max), 100% - var(--pad) * 2);
  margin-inline: auto;
  position: relative;
}
.wrap--narrow { width: min(880px, 100% - var(--pad) * 2); }
.wrap--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin: 0 0 1.1rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow__num {
  display: inline-grid;
  place-items: center;
  min-width: 2.1em;
  padding: .15em .4em;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: .95em;
  letter-spacing: .1em;
}
.eyebrow__dot {
  width: .6em; height: .6em;
  border-radius: 50%;
  background: var(--gel);
  box-shadow: 0 0 0 4px rgba(111, 240, 176, .22), 0 0 14px var(--gel);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.82); }
}

.h2 {
  margin: 0 0 .7em;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.h2 em {
  font-style: normal;
  color: var(--rust);
  position: relative;
}
.h2--big { font-size: clamp(2.4rem, 6vw, 5rem); }

.lead {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  color: var(--ink-2);
  text-wrap: pretty;
}

.ticks {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}
.ticks li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: .85em; height: .85em;
  border: 2px solid var(--rust);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--rust) 0 38%, transparent 42%);
}

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: 1em 1.5em;
  border: var(--edge);
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--b);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  will-change: transform;
}
.btn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--b); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--b); }
.btn--primary { background: var(--rust-2); color: #2a1409; }
.btn--primary:hover { background: #f08a3f; }
.btn--ghost { background: transparent; box-shadow: 5px 5px 0 rgba(35, 25, 15, .28); }

.chip, .mini {
  border: var(--edge);
  background: var(--cream);
  border-radius: 999px;
  padding: .5em 1em;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s, color .16s, transform .16s;
}
.chip:hover, .mini:hover { background: var(--ink); color: var(--cream); }
.chip.is-on { background: var(--ink); color: var(--cream); }
.mini { border-radius: 4px; padding: .55em 1.1em; }

/* ---------- grain / cursor / signal ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: .05;
  background-image: var(--noise);
  animation: grainShift 6s steps(6) infinite;
  mix-blend-mode: multiply;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -3%); }
  75% { transform: translate(-3%, 2%); }
  100% { transform: translate(0, 0); }
}

.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 70;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s, width .2s, height .2s, margin .2s, background .2s;
  mix-blend-mode: multiply;
}
.cursor::before,
.cursor::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.cursor::before { left: 50%; top: -6px; width: 1px; height: 8px; }
.cursor::after { left: 50%; bottom: -6px; width: 1px; height: 8px; }
.cursor span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--rust);
}
.cursor.is-on { opacity: 1; }
.cursor.is-hot { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(222, 122, 53, .18); }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

.signal {
  position: fixed;
  left: 0; top: 0;
  z-index: 65;
  width: 100%;
  height: 3px;
  background: rgba(35, 25, 15, .12);
}
.signal i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rust), var(--rust-2) 55%, var(--gel));
  box-shadow: 0 0 12px rgba(111, 240, 176, .5);
}

/* ---------- boot ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #0d1117;
  color: #cfe6d8;
  transition: opacity .7s ease, visibility .7s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__noise {
  position: absolute; inset: 0;
  background-image: var(--noise);
  opacity: .08;
  pointer-events: none;
}
.boot__inner {
  width: min(560px, 86vw);
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .06em;
}
.boot__brand {
  font-family: var(--f-display);
  font-size: 1.1rem;
  letter-spacing: .12em;
  color: #7fe6b4;
  margin-bottom: 1.4rem;
}
.boot__brand span { display: block; color: #63798a; font-size: .6em; letter-spacing: .3em; }
.boot__log {
  margin: 0 0 1rem;
  min-height: 7.5em;
  white-space: pre-wrap;
  color: #9db4a8;
  font-size: .78rem;
  line-height: 1.7;
}
.boot__log b { color: #cdeedd; font-weight: 400; }
.boot__bar {
  height: 2px;
  background: #1e2a35;
  overflow: hidden;
}
.boot__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #7fe6b4;
  transition: width .35s ease;
}
.boot__skip {
  margin-top: 1.2rem;
  background: none;
  border: 0;
  padding: 0;
  color: #52697a;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
}
.boot__skip:hover { color: #9db4a8; }

/* ---------- hud ---------- */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(16px, 3vw, 40px);
  transition: transform .4s ease, background .4s ease, backdrop-filter .4s;
}
.hud.is-solid {
  background: rgba(241, 224, 190, .86);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid rgba(35, 25, 15, .16);
}
.hud.is-hidden { transform: translateY(-104%); }

.hud__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}
.hud__mono {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: var(--edge);
  border-radius: 4px;
  background: var(--rust-2);
  font-family: var(--f-display);
  font-size: .85rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.hud__word {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .3em;
  opacity: .7;
}
.hud__nav {
  display: flex;
  gap: 1.6rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hud__nav a {
  text-decoration: none;
  padding-bottom: .2rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.hud__nav a:hover { border-color: var(--rust); color: var(--rust-3); }
.hud__tools { display: flex; align-items: center; gap: .8rem; }
.hud__lang {
  display: flex;
  border: var(--edge);
  border-radius: 999px;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
  padding: 0;
}
.hud__lang span {
  padding: .38em .7em;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  opacity: .5;
}
html[data-lang="en"] .hud__lang span[data-on="en"],
html[data-lang="ru"] .hud__lang span[data-on="ru"] { opacity: 1; background: var(--ink); color: var(--cream); }
.hud__sound {
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  border: var(--edge);
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
  padding: 0;
}
.hud__sound svg { width: 1.15rem; height: 1.15rem; fill: var(--ink); }
.hud__sound svg path:first-child { fill: var(--ink); }
.hud__sound svg .wave { fill: none; stroke: var(--ink); stroke-width: 1.6; opacity: .25; transition: opacity .2s; }
.hud__sound[aria-pressed="true"] svg .wave { opacity: 1; }
.hud__cta {
  padding: .55em 1.1em;
  border: var(--edge);
  border-radius: 4px;
  background: var(--rust-2);
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .16s, box-shadow .16s;
}
.hud__cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

@media (max-width: 980px) {
  .hud__nav { display: none; }
}
@media (max-width: 560px) {
  .hud__word { display: none; }
  .hud__cta { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 25%, rgba(30, 22, 16, .25), rgba(16, 12, 9, .9)),
    url("/assets/img/keyart.webp") center 22% / cover no-repeat,
    #1b1410;
  isolation: isolate;
}
.hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero__scene.is-live { opacity: 1; }
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(130% 95% at 50% 18%, rgba(24, 18, 12, 0) 30%, rgba(24, 18, 12, .18) 70%, rgba(24, 18, 12, .46) 100%),
    linear-gradient(180deg, rgba(20, 16, 12, .34) 0%, rgba(20, 16, 12, 0) 22%, rgba(20, 16, 12, 0) 80%, rgba(241, 224, 190, .62) 100%);
}
.hero__haze {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: var(--noise);
  opacity: .07;
  mix-blend-mode: overlay;
}
.hero__content {
  position: relative;
  z-index: 3;
  width: min(1180px, 100% - var(--pad) * 2);
  text-align: center;
  padding: clamp(66px, 9.5vh, 118px) 0 0;
}
.hero .eyebrow {
  justify-content: center;
  color: rgba(255, 244, 224, .82);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
}

/* wordmark */
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(.1rem, .6vw, .5rem);
  margin: 0 0 clamp(.8rem, 2vw, 1.6rem);
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 9.6vw, 8.6rem);
  line-height: .86;
  letter-spacing: -.01em;
  text-transform: uppercase;
  user-select: none;
}
.wordmark__line {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: .12em;
}
.wordmark__word {
  position: relative;
  display: block;
  color: transparent;
  background-image:
    radial-gradient(90% 60% at 30% 20%, rgba(255, 224, 180, .55), transparent 60%),
    repeating-linear-gradient(105deg, rgba(120, 52, 22, .28) 0 6px, transparent 6px 14px),
    linear-gradient(178deg, #e0873f 4%, #c2642c 42%, #8f3f1c 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: clamp(3px, .42vw, 7px) var(--ink);
  filter: drop-shadow(0 6px 0 rgba(35, 25, 15, .92)) drop-shadow(0 18px 30px rgba(20, 12, 6, .45));
  transform: rotate(-1.2deg);
}
.wordmark__word--teal {
  background-image:
    radial-gradient(90% 60% at 30% 20%, rgba(220, 255, 246, .5), transparent 60%),
    repeating-linear-gradient(105deg, rgba(20, 70, 66, .3) 0 6px, transparent 6px 14px),
    linear-gradient(178deg, #7fd3c7 4%, #4a9e97 44%, #22635f 88%);
  transform: rotate(1deg);
}
.wordmark__amp {
  font-family: var(--f-display);
  font-size: .52em;
  color: var(--amber);
  -webkit-text-stroke: clamp(2px, .3vw, 5px) var(--ink);
  filter: drop-shadow(0 4px 0 rgba(35, 25, 15, .9));
  transform: translateY(-.22em) rotate(8deg);
  line-height: 1;
}
.wordmark__tag {
  position: relative;
  display: grid;
  place-items: center;
  width: .62em; height: .62em;
  margin-left: .08em;
  margin-bottom: .12em;
  background: var(--cream);
  border: clamp(3px, .35vw, 6px) solid var(--ink);
  border-radius: .1em;
  transform-origin: 50% -30%;
  animation: swing 5.5s ease-in-out infinite;
  box-shadow: 0 4px 0 rgba(35, 25, 15, .85);
}
.wordmark__tag::before,
.wordmark__tag::after {
  content: "";
  position: absolute;
  top: -.34em;
  width: .045em;
  height: .34em;
  background: var(--ink);
}
.wordmark__tag::before { left: .26em; }
.wordmark__tag::after { right: .26em; }
.wordmark__tag i {
  font-style: normal;
  font-family: var(--f-body);
  font-weight: 800;
  font-size: .42em;
  line-height: 1;
  color: var(--rust);
  -webkit-text-stroke: 0;
}
@keyframes swing {
  0%, 100% { transform: rotate(-3.5deg); }
  50% { transform: rotate(3.5deg); }
}

.hero__kicker {
  margin: 0 0 .8rem;
  font-family: var(--f-mono);
  font-size: clamp(.78rem, 1.35vw, .95rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gel);
  text-shadow: 0 0 22px rgba(111, 240, 176, .55), 0 2px 10px rgba(0, 0, 0, .6);
}
.hero__sub {
  margin: 0 auto 2rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  color: rgba(255, 246, 232, .88);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero__cta .btn--ghost { color: var(--cream); border-color: var(--cream); box-shadow: 5px 5px 0 rgba(255, 246, 232, .3); }
.hero__cta .btn--ghost:hover { background: rgba(255, 246, 232, .12); }

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 246, 232, .75);
}
.hero__chips li {
  padding: .35em .8em;
  border: 1px solid rgba(255, 246, 232, .3);
  border-radius: 999px;
  background: rgba(18, 14, 10, .42);
  backdrop-filter: blur(6px);
  color: rgba(255, 246, 232, .9);
}

.hero__hud {
  position: absolute;
  left: clamp(16px, 3vw, 40px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 4;
  display: flex;
  gap: .5rem;
  font-family: var(--f-mono);
}
.hudplate {
  display: grid;
  gap: .1em;
  padding: .55em .8em;
  border: 1px solid rgba(255, 246, 232, .3);
  border-radius: 3px;
  background: rgba(16, 13, 10, .35);
  backdrop-filter: blur(6px);
  color: rgba(255, 246, 232, .9);
}
.hudplate__k { font-size: .55rem; letter-spacing: .22em; opacity: .6; }
.hudplate__v { font-size: .74rem; letter-spacing: .1em; }
.hudplate__v--warn { color: #ff9f6b; }

.hero__scroll {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 246, 232, .7);
  writing-mode: vertical-rl;
}
.hero__scroll span {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, rgba(255, 246, 232, .8));
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop {
  0%, 100% { transform: scaleY(.4); opacity: .4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

.hotspots { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 246, 232, .92);
  opacity: 0;
  transition: opacity .6s ease;
  white-space: nowrap;
}
.hotspot.is-in { opacity: 1; }
.hotspot i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gel);
  box-shadow: 0 0 0 4px rgba(111, 240, 176, .18), 0 0 12px var(--gel);
}
.hotspot b {
  font-weight: 400;
  padding: .25em .5em;
  background: rgba(12, 14, 18, .55);
  border: 1px solid rgba(111, 240, 176, .3);
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
@media (max-width: 820px) {
  .hotspots { display: none; }
  .hero__hud { position: static; justify-content: center; margin-top: 2rem; }
  .hero__scroll { display: none; }
  .hero { display: block; }
  .hero__content { margin-inline: auto; }
}

/* ---------- ticker ---------- */
.ticker {
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: .9rem 0;
  background: var(--ink);
  color: var(--sand);
  border-block: 2px solid var(--ink);
  transform: rotate(-.6deg) scale(1.02);
  margin: -1.3rem 0 0;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: max-content;
  font-family: var(--f-display);
  font-size: clamp(.8rem, 1.2vw, 1.05rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  animation: marquee 38s linear infinite;
}
.ticker__track b { color: var(--rust-2); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */
.section {
  position: relative;
  padding: clamp(70px, 9vw, 140px) 0;
  overflow: clip;
}
.section--sand {
  background:
    radial-gradient(80% 60% at 12% 0%, rgba(255, 248, 234, .8), transparent 60%),
    radial-gradient(70% 50% at 100% 100%, rgba(222, 122, 53, .12), transparent 60%),
    var(--sand);
}
.section--sand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: .16;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.section--paper { background: var(--paper); }
.section--ink {
  background: var(--ink);
  color: var(--cream);
}
.section--ink .lead,
.section--ink .ticks li { color: rgba(255, 246, 232, .75); }
.section--ink .eyebrow { color: rgba(255, 246, 232, .55); }
.section--ink .h2 em { color: var(--teal-2); }
.section--night {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(111, 240, 176, .16), transparent 65%),
    radial-gradient(80% 60% at 80% 100%, rgba(184, 84, 42, .25), transparent 60%),
    var(--night);
  color: var(--cream);
}
.section--night .lead, .section--night .eyebrow { color: rgba(255, 246, 232, .68); }
.section--comic {
  background: linear-gradient(180deg, var(--ink) 0%, #2a1d15 8%, #3b2718 100%);
  color: var(--cream);
}
.section--comic .lead, .section--comic .eyebrow { color: rgba(255, 246, 232, .66); }
.section--comic .h2 em { color: var(--amber); }

.section__head { max-width: 900px; margin-bottom: clamp(2.2rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }

/* ---------- loop ---------- */
.loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 30px);
}
.step {
  position: relative;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--cream);
  border: var(--edge);
  border-radius: 6px;
  box-shadow: var(--shadow-hard);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--ink); }
.step h3 {
  margin: 1.2rem 0 .5rem;
  font-family: var(--f-head);
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.step p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.step__meta {
  margin-top: 1.1rem !important;
  font-family: var(--f-mono);
  font-size: .68rem !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rust-3) !important;
}
.step__meta b { font-size: 1.1em; }
.step__ring { position: relative; width: 74px; height: 74px; }
.step__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: rgba(35, 25, 15, .14); stroke-width: 6; }
.ring__fg {
  fill: none;
  stroke: var(--rust);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.2s cubic-bezier(.22, 1, .36, 1);
}
.step:nth-child(1) .ring__fg { --to: 250; }
.step:nth-child(2) .ring__fg { --to: 190; }
.step:nth-child(3) .ring__fg { --to: 90; }
.is-ready .step__ring .ring__fg { stroke-dashoffset: calc(327 - var(--to)); }
.step__n {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 1rem;
  color: var(--ink);
}

.notice {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  margin-top: clamp(24px, 3vw, 40px);
  padding: 1.1rem 1.4rem;
  background: #fff3cf;
  border: var(--edge);
  border-radius: 4px;
  box-shadow: 6px 6px 0 rgba(35, 25, 15, .8);
  transform: rotate(-.35deg);
}
.notice.is-gone { display: none; }
.notice__badge {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  padding: .45em .7em;
  background: var(--ink);
  color: var(--amber);
  border-radius: 2px;
  white-space: nowrap;
}
.notice p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.notice__close {
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: .6;
  padding: 0;
}
.notice__close:hover { opacity: 1; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: clamp(30px, 4vw, 56px) 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px dashed rgba(35, 25, 15, .28);
  list-style: none;
}
.stats li { display: grid; gap: .2rem; }
.stats b {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1;
  color: var(--rust-3);
}
.stats span {
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- stack game ---------- */
.stack__copy { max-width: 560px; }
.stack__hint {
  margin-top: 1.8rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-2);
}
.stack__game {
  display: grid;
  gap: 1.2rem;
  padding: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(180deg, rgba(255, 248, 234, .07), rgba(255, 248, 234, .02));
  border: 1px solid rgba(255, 246, 232, .22);
  border-radius: 8px;
}
.cube {
  position: relative;
  padding: 1rem 1rem 1.2rem;
  background: linear-gradient(180deg, #e08a3c, #b8542a 70%, #8d3c1b);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: inset 0 2px 0 rgba(255, 235, 200, .5), 10px 12px 0 rgba(0, 0, 0, .35);
}
.cube.is-heavy { animation: shudder .3s linear; }
@keyframes shudder {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px) rotate(-.3deg); }
  75% { transform: translate(2px, -1px) rotate(.3deg); }
}
.cube__lid {
  position: absolute;
  left: 8%; right: 8%; top: -.65rem;
  height: 1.3rem;
  background: #f0b168;
  border: 2px solid var(--ink);
  border-radius: 4px 4px 2px 2px;
  transform: perspective(120px) rotateX(28deg);
}
.cube__slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  min-height: 128px;
}
.slot {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px dashed rgba(35, 25, 15, .3);
  border-radius: 4px;
  background: rgba(35, 25, 15, .1);
  font-family: var(--f-mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(35, 25, 15, .62);
  text-align: center;
  padding: 2px;
  transition: background .2s, border-color .2s, transform .2s;
}
.slot.is-filled {
  border-style: solid;
  border-color: var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-2px);
  animation: pop .28s ease;
}
@keyframes pop {
  0% { transform: scale(.82) translateY(4px); }
  60% { transform: scale(1.06) translateY(-3px); }
  100% { transform: scale(1) translateY(-2px); }
}
.cube__meter {
  height: 8px;
  margin-top: .9rem;
  background: rgba(35, 25, 15, .3);
  border-radius: 999px;
  overflow: hidden;
}
.cube__meter i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gel), var(--amber) 60%, #ff6b4a);
  transition: width .3s ease;
}
.cube__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .6rem;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(35, 25, 15, .8);
}
.shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .55rem;
}
.item {
  display: grid;
  gap: .15rem;
  place-items: center;
  padding: .6rem .3rem;
  background: rgba(255, 248, 234, .94);
  border: 2px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .4);
  transition: transform .14s, box-shadow .14s, opacity .2s;
}
.item:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(0, 0, 0, .45); }
.item:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .4); }
.item.is-used { opacity: .3; pointer-events: none; }
.item b { font-size: .9rem; }
.item small { font-size: .5rem; opacity: .6; letter-spacing: .1em; }
.stack__status {
  min-height: 3.2em;
  padding: .8rem 1rem;
  border-left: 3px solid var(--gel);
  background: rgba(111, 240, 176, .07);
  font-size: .88rem;
  color: rgba(255, 246, 232, .85);
}
.stack__status.is-bad { border-color: #ff6b4a; background: rgba(255, 107, 74, .1); }
.stack__game .mini { justify-self: start; background: transparent; color: var(--cream); border-color: rgba(255, 246, 232, .5); }
.stack__game .mini:hover { background: var(--cream); color: var(--ink); }

/* ---------- siege ---------- */
.siege__glow {
  position: absolute;
  left: 50%; top: 8%;
  width: min(900px, 120%);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(111, 240, 176, .28), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}
.siege {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
}
.siege__panel, .siege__calc {
  padding: clamp(18px, 2.4vw, 30px);
  border: 2px solid rgba(255, 246, 232, .24);
  border-radius: 6px;
  background: rgba(12, 16, 20, .55);
  backdrop-filter: blur(6px);
}
.siege__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 246, 232, .7);
}
.siege__wave b { color: var(--gel); font-size: 1.2em; }
.siege__state {
  padding: .3em .7em;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: rgba(255, 246, 232, .8);
}
.siege__state.is-live { color: #ff9068; animation: blink 1s steps(2) infinite; }
.siege__state.is-win { color: var(--gel); }
@keyframes blink { 50% { opacity: .35; } }

.siege__lanes {
  display: grid;
  gap: .5rem;
  margin: 1.4rem 0;
}
.lane {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 246, 232, .55);
}
.lane__bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 246, 232, .12);
  overflow: hidden;
}
.lane__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff9068, #ff5f3d);
  transition: width .5s ease;
}
.siege__actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.btn--alarm {
  background: #ff5f3d;
  color: #240a03;
  border-color: #240a03;
  box-shadow: 6px 6px 0 #240a03;
  animation: alarm 2.6s ease-in-out infinite;
}
.btn--alarm:hover { background: #ff7a52; }
@keyframes alarm {
  0%, 92%, 100% { transform: rotate(0); }
  94% { transform: rotate(-1.2deg); }
  96% { transform: rotate(1.2deg); }
  98% { transform: rotate(-.6deg); }
}
.siege__panel .mini { background: transparent; color: var(--cream); border-color: rgba(255, 246, 232, .5); }

.siege__calcTitle {
  margin: 0 0 1rem;
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 246, 232, .6);
}
.bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .4rem .8rem;
  margin-bottom: .8rem;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 246, 232, .65);
}
.bar b { color: var(--cream); }
.bar i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 246, 232, .12);
  position: relative;
  overflow: hidden;
}
.bar i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  background: repeating-linear-gradient(90deg, var(--gel) 0 8px, rgba(111, 240, 176, .55) 8px 10px);
  transition: width .5s ease;
}
.siege__power {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin: 1.2rem 0 .6rem;
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 246, 232, .6);
}
.siege__power b {
  font-family: var(--f-display);
  font-size: 2.2rem;
  letter-spacing: 0;
  color: var(--gel);
  text-shadow: 0 0 24px rgba(111, 240, 176, .5);
}
.siege__verdict {
  padding: .8rem 1rem;
  border-left: 3px solid var(--gel);
  font-size: .9rem;
  color: rgba(255, 246, 232, .85);
  background: rgba(111, 240, 176, .06);
}
.siege__verdict.is-bad { border-color: #ff6b4a; background: rgba(255, 107, 74, .08); }
.siege__toggle { display: flex; gap: .6rem; margin-top: 1.1rem; }
.siege__toggle .chip { background: transparent; color: var(--cream); border-color: rgba(255, 246, 232, .4); }
.siege__toggle .chip.is-on { background: var(--cream); color: var(--ink); }
.siege__note {
  max-width: 70ch;
  margin: clamp(28px, 4vw, 48px) auto 0;
  text-align: center;
  font-size: .92rem;
  color: rgba(255, 246, 232, .6);
}

/* ---------- gallery ---------- */
.gallery {
  display: flex;
  gap: clamp(14px, 2vw, 26px);
  padding: 0 var(--pad) 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  perspective: 1400px;
}
.gallery::-webkit-scrollbar { display: none; }
.shot {
  position: relative;
  flex: 0 0 auto;
  width: clamp(210px, 22vw, 300px);
  margin: 0;
  padding: 10px 10px 0;
  background: var(--cream);
  border: var(--edge);
  border-radius: 22px;
  box-shadow: 10px 14px 0 rgba(35, 25, 15, .18);
  scroll-snap-align: center;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s;
}
.shot:nth-child(odd) { --tilt: -1.6deg; }
.shot:nth-child(even) { --tilt: 1.4deg; }
.shot:hover { transform: rotate(0) translateY(-10px) scale(1.02); box-shadow: 14px 22px 0 rgba(35, 25, 15, .22); }
.shot img {
  border-radius: 14px;
  border: 1px solid rgba(35, 25, 15, .3);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  width: 100%;
}
.shot figcaption {
  padding: .8rem .3rem .9rem;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.shot figcaption b { color: var(--ink); font-size: .7rem; letter-spacing: .16em; }

/* ---------- faces ---------- */
.faces {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  padding: 0 var(--pad) 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.faces::-webkit-scrollbar { display: none; }
.face {
  position: relative;
  flex: 0 0 auto;
  width: clamp(230px, 24vw, 320px);
  padding-bottom: 0;
  background: var(--cream);
  border: var(--edge);
  border-radius: 6px;
  overflow: hidden;
  scroll-snap-align: center;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s;
  box-shadow: var(--shadow-soft);
}
.face:hover, .face:focus-visible { transform: translateY(-8px); box-shadow: 12px 16px 0 rgba(35, 25, 15, .9); }
.face__art {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(255, 248, 234, .9), transparent 70%),
    linear-gradient(160deg, #f7e6c6, #e3c498);
  display: grid;
  place-items: end center;
  overflow: hidden;
}
.face__art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(35, 25, 15, .22));
}
.face__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 18px rgba(35, 25, 15, .28));
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.face:hover .face__art img { transform: scale(1.05) translateY(-6px); }
.face__meta { padding: 1.1rem 1.2rem 1.4rem; border-top: var(--edge); background: var(--cream); }
.face__role {
  margin: 0 0 .3rem;
  font-family: var(--f-mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rust-3);
}
.face h3 {
  margin: 0 0 .6rem;
  font-family: var(--f-head);
  font-size: 1.2rem;
  letter-spacing: -.02em;
}
.face blockquote {
  margin: 0;
  font-size: .88rem;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}
.face--sunny .face__art { background: radial-gradient(60% 60% at 50% 35%, #fff7d8, #f0cd86 70%, #d8a764); }
.face--cal .face__art { background: radial-gradient(60% 60% at 50% 30%, #eef4f0, #cfdedb 65%, #9fb8b3); }
.face--mags .face__art { background: radial-gradient(60% 60% at 50% 30%, #e8f2ef, #bcd6d0 65%, #8bb3ac); }

/* ---------- road ---------- */
.road {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.stop {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: var(--edge);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 7px 7px 0 rgba(35, 25, 15, .9);
  transition: transform .3s ease, box-shadow .3s;
}
.stop:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 rgba(35, 25, 15, .9); }
.stop__art { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.stop__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(35, 25, 15, .45));
}
.stop__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.stop:hover .stop__art img { transform: scale(1.06); }
.stop__body { padding: 1.1rem 1.3rem 1.4rem; flex: 1 1 auto; display: flex; flex-direction: column; }
.stop__body p { margin-top: auto; }
.stop__tier {
  margin: 0 0 .35rem;
  font-family: var(--f-mono);
  font-size: .54rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--teal-3);
}
.stop h3 { margin: 0 0 .5rem; font-family: var(--f-head); font-size: 1.3rem; letter-spacing: -.02em; }
.stop p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.road__line {
  margin: clamp(24px, 4vw, 40px) 0 0;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.road__line b { color: var(--rust-3); }

/* ---------- comic ---------- */
.comic {
  display: flex;
  gap: clamp(12px, 1.6vw, 22px);
  padding: 0 var(--pad) 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.comic::-webkit-scrollbar { display: none; }
.panel {
  position: relative;
  flex: 0 0 auto;
  width: clamp(210px, 21vw, 290px);
  margin: 0;
  scroll-snap-align: center;
  border: 2px solid rgba(255, 246, 232, .2);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color .3s, transform .4s cubic-bezier(.22, 1, .36, 1);
}
.panel:hover { border-color: rgba(245, 182, 78, .8); transform: translateY(-6px); }
.panel img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.panel figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.6rem .9rem .9rem;
  font-size: .78rem;
  line-height: 1.35;
  color: rgba(255, 246, 232, .92);
  background: linear-gradient(180deg, transparent, rgba(10, 8, 6, .9) 55%);
}
.panel figcaption b {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--amber);
}
.comic__hint {
  margin: 1rem 0 0;
  padding: 0 var(--pad);
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 246, 232, .4);
}

/* ---------- reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.review {
  padding: 1.4rem;
  background: var(--cream);
  border: var(--edge);
  border-radius: 4px;
  box-shadow: 6px 6px 0 rgba(35, 25, 15, .85);
  transform: rotate(var(--r, 0deg));
}
.review:nth-child(1) { --r: -.8deg; }
.review:nth-child(2) { --r: .7deg; }
.review:nth-child(3) { --r: -.4deg; }
.review:nth-child(4) { --r: .9deg; }
.review__stars {
  margin: 0 0 .7rem;
  font-size: 1rem;
  letter-spacing: .18em;
  color: var(--rust);
}
.review__stars--low { color: var(--ink-soft); }
.review__text { margin: 0 0 1rem; font-size: .98rem; line-height: 1.45; }
.review__by {
  margin: 0;
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- enlist ---------- */
.section--enlist {
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(222, 122, 53, .35), transparent 65%),
    linear-gradient(180deg, #241a12, #170f0a);
  color: var(--cream);
  text-align: center;
}
.enlist { padding: clamp(20px, 4vw, 50px) 0; }
.enlist .eyebrow { justify-content: center; color: rgba(255, 246, 232, .6); }
.enlist .h2 em { color: var(--amber); }
.enlist .lead { margin-inline: auto; color: rgba(255, 246, 232, .78); }
.enlist__cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: 2.2rem 0 1.4rem; }
.enlist .btn--ghost { color: var(--cream); border-color: rgba(255, 246, 232, .7); box-shadow: 5px 5px 0 rgba(255, 246, 232, .25); }
.enlist__fine {
  margin: 0;
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 246, 232, .42);
}

/* ---------- faq ---------- */
.faq { display: grid; gap: .7rem; }
.faq details {
  border: var(--edge);
  border-radius: 4px;
  background: var(--cream);
  box-shadow: 5px 5px 0 rgba(35, 25, 15, .8);
  overflow: hidden;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-family: var(--f-head);
  font-size: .98rem;
  letter-spacing: -.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-size: 1.2rem;
  color: var(--rust);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0;
  padding: 0 1.2rem 1.2rem;
  font-size: .94rem;
  color: var(--ink-2);
}

/* ---------- footer ---------- */
.foot {
  padding: clamp(40px, 6vw, 70px) 0 clamp(30px, 4vw, 50px);
  background: var(--ink);
  color: rgba(255, 246, 232, .72);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
.foot__mono {
  margin: 0 0 .4rem;
  font-family: var(--f-display);
  font-size: 1rem;
  letter-spacing: .05em;
  color: var(--cream);
}
.foot__tag { margin: 0; font-size: .86rem; }
.foot__links { display: grid; gap: .5rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.foot__links a { text-decoration: none; border-bottom: 1px solid transparent; width: fit-content; }
.foot__links a:hover { border-color: var(--rust-2); color: var(--cream); }
.foot__legal { font-size: .76rem; line-height: 1.6; }
.foot__legal p { margin: 0 0 .6rem; }
.foot__tech { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 246, 232, .35); }

.toTop {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 45;
  display: grid;
  place-items: center;
  width: 2.9rem; height: 2.9rem;
  border: var(--edge);
  border-radius: 50%;
  background: var(--cream);
  text-decoration: none;
  font-family: var(--f-mono);
  box-shadow: 4px 4px 0 var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s;
}
.toTop.is-on { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
}
[data-reveal].is-ready { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .wrap--split { grid-template-columns: 1fr; }
  .siege { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .loop { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .notice { grid-template-columns: 1fr auto; }
  .notice__badge { grid-column: 1 / -1; justify-self: start; }
  .wordmark__amp { font-size: .42em; }
  .foot__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .hero__content { padding: 86px 0 0; }
  .hero { min-height: 100svh; }
  .wordmark { font-size: clamp(2.9rem, 15vw, 5.2rem); gap: .1rem; }
  .wordmark__line--amp { flex-wrap: nowrap; }
  .hero__kicker { font-size: .68rem; letter-spacing: .12em; }
  .hero__sub { font-size: .96rem; margin-bottom: 1.4rem; }
  .hero__cta { gap: .6rem; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__chips { display: none; }
  .hero__hud { display: none; }
  .hero__chips { font-size: .58rem; }
  .cube__slots { grid-template-columns: repeat(4, 1fr); gap: .35rem; }
  .shelf { grid-template-columns: repeat(3, 1fr); }
  .shot { width: 68vw; }
  .face { width: 78vw; }
  .panel { width: 74vw; }
  .stats { gap: .8rem; }
}

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

/* ---------- russian typography ---------- */
html[data-lang="ru"] .h2 { font-size: clamp(1.7rem, 3.2vw, 3.1rem); letter-spacing: -.02em; }
html[data-lang="ru"] .wordmark { font-size: clamp(2.4rem, 10vw, 9rem); }
html[data-lang="ru"] .lead { line-height: 1.55; }

/* ---------- anchors, dragging, no-webgl fallback ---------- */
[id] { scroll-margin-top: 84px; }

.gallery, .faces, .comic { cursor: grab; }
.gallery.is-dragging, .faces.is-dragging, .comic.is-dragging { cursor: grabbing; user-select: none; }
.gallery.is-dragging *, .faces.is-dragging *, .comic.is-dragging * { pointer-events: none; }

.hero.is-fallback .hero__scene { display: none; }
.hero.is-fallback {
  background:
    linear-gradient(180deg, rgba(18, 14, 10, .55), rgba(18, 14, 10, .2) 40%, rgba(18, 14, 10, .75)),
    url("/assets/img/keyart.webp") center 30% / cover no-repeat,
    #1b1410;
}
/* ---------- skip link + slot colours ---------- */
.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 120;
  padding: .7em 1.1em;
  background: var(--cream);
  border: var(--edge);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top .2s;
}
.skip:focus-visible { top: 12px; }

.slot[data-id="medkit"], .slot[data-id="ampoule"], .slot[data-id="herb"], .slot[data-id="coolant"] { background: #dcefe6; }
.slot[data-id="scrap"], .slot[data-id="fuel"] { background: #f6dcc0; }
.slot[data-id="ammo"] { background: #f6e6b6; }
.slot[data-id="rations"] { background: #e9e3cf; }
@media (max-width: 560px) {
  .toTop { display: none; }
  .notice { grid-template-columns: 1fr; gap: .8rem; }
  .notice__close { justify-self: start; }
}