/* LastFall — стили сайта */

/* Layout: sticky stone header, full-bleed pixel hero, then a 1120px column of sections.
   Minecraft slot bevels and notched pixel corners only on things you click or buy. */
:root {
  --night: #13111b;
  --night-2: #1a1724;
  --night-3: #242032;
  --stone: #8e89a6;
  --stone-d: #3d3851;
  --stone-l: #cbc6de;
  --ink: #efebf8;
  --muted: #a7a1bd;
  --gold: #f5c542;
  --gold-l: #f5d77f;
  --gold-d: #a8761f;
  --red: #c33a3a;
  --red-l: #e36a63;
  --purple: #9863e7;
  --purple-l: #b996f2;
  --ember: #ff8a3d;
  --ok: #6fd27f;

  --f-display: "LF Pixel", "Tiny5", "Courier New", monospace;
  --f-body: "LF Golos", "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "LF Mono", "JetBrains Mono", ui-monospace, Consolas, monospace;

  --s-1: 13px; --s-2: 15px; --s-3: 17px; --s-4: 20px;   /* текст; пиксельный шрифт — только 16 / 24 / 32 / 40 / 48 / 56 / 64 / 128 px, чтобы был чётким */
  --notch: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
  color-scheme: dark;
}

/* ---------- fonts (лежат рядом, чтобы сайт открывался без Google) ---------- */
@font-face { font-family: "LF Pixel"; src: url("fonts/tiny5-cyrillic-400-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "LF Pixel"; src: url("fonts/tiny5-latin-400-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "LF Pixel"; src: url("fonts/ruble-pixel.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+20BD; }
@font-face { font-family: "LF Golos"; src: url("fonts/golos-text-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "LF Golos"; src: url("fonts/golos-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "LF Golos"; src: url("fonts/golos-text-cyrillic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "LF Golos"; src: url("fonts/golos-text-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "LF Golos"; src: url("fonts/golos-text-cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "LF Golos"; src: url("fonts/golos-text-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "LF Golos"; src: url("fonts/ruble-text.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+20BD; }
@font-face { font-family: "LF Mono"; src: url("fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "LF Mono"; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 var(--s-3)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  overflow-x: hidden;
}
img { max-width: 100%; }
img[src$=".png"] { image-rendering: pixelated; }
a { color: inherit; }
b { font-weight: 600; }
code {
  font: 600 0.88em var(--f-mono);
  color: var(--gold-l);
  background: rgba(245, 197, 66, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  white-space: nowrap;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #241803; padding: 8px 14px; font-weight: 600; }
.skip:focus { left: 16px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 80px; }
.section--tight { padding-block: 40px 88px; }
.kicker {
  font: 600 var(--s-1)/1 var(--f-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 14px;
}
.h1 { font: 400 64px/1 var(--f-display); }
.h2 { font: 400 40px/1.1 var(--f-display); margin-bottom: 36px; max-width: 22ch; }
.lead { color: var(--muted); max-width: 68ch; margin: -16px 0 32px; }
.link { color: var(--gold-l); text-decoration: none; font-weight: 600; white-space: nowrap; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.t-red { color: var(--red-l); }
.t-purple { color: var(--purple-l); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 400 16px/1 var(--f-display);
  text-decoration: none; cursor: pointer;
  border: 3px solid #0a0910;
  clip-path: var(--notch);
  transition: transform 0.12s, filter 0.12s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: var(--gold); color: #2a1c04;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), inset 0 -4px 0 var(--gold-d);
}
.btn--ghost {
  background: rgba(19, 17, 27, 0.55); color: var(--ink);
  border-color: var(--stone-d);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.07), inset 0 -3px 0 rgba(0, 0, 0, 0.35);
}
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(19, 17, 27, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--stone-d);
}
.top__in {
  max-width: 1120px; margin-inline: auto; padding-inline: 20px;
  display: flex; align-items: center; gap: 28px; min-height: 68px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo img { width: 39px; height: auto; }
.logo span { font: 400 24px/1 var(--f-display); letter-spacing: 0.04em; color: var(--gold-l); }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav a {
  position: relative; padding: 10px 12px;
  font: 400 16px/1 var(--f-display);
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--gold);
}
.ipchip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 14px;
  font: 600 var(--s-2)/1 var(--f-mono); color: var(--ink);
  background: var(--night-3);
  border: 2px solid var(--stone-d);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.06), inset 0 -3px 0 rgba(0, 0, 0, 0.35);
  clip-path: var(--notch);
  cursor: pointer;
}
.ipchip:hover { border-color: var(--stone); }
.ipchip svg { width: 14px; height: 14px; color: var(--muted); }
.ipchip__dot { width: 8px; height: 8px; background: var(--stone); }
.ipchip__dot.is-on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--night) url("img/hero.jpg") center 30% / cover no-repeat;
  image-rendering: pixelated;
  padding-block: clamp(72px, 12vw, 136px) clamp(64px, 9vw, 104px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 17, 27, 0.94) 0%, rgba(19, 17, 27, 0.72) 42%, rgba(30, 20, 40, 0.35) 100%),
    linear-gradient(0deg, var(--night) 0%, rgba(19, 17, 27, 0) 45%),
    linear-gradient(180deg, rgba(80, 40, 30, 0.25), rgba(19, 17, 27, 0) 40%);
}
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__in { position: relative; image-rendering: auto; }
.eyebrow {
  font: 600 var(--s-1)/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--stone-l); margin-bottom: 18px;
}
.wordmark {
  font: 400 128px/0.9 var(--f-display);
  color: var(--ink);
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.45);
  margin-bottom: 26px;
  white-space: nowrap;
}
.wordmark__l {
  display: inline-block; color: var(--ember);
  transform-origin: 15% 100%;
  transform: rotate(14deg) translateY(0.04em);
  text-shadow: 0 0 24px rgba(255, 138, 61, 0.45), 0 6px 0 rgba(0, 0, 0, 0.45);
}
@media (prefers-reduced-motion: no-preference) {
  .wordmark__l { animation: fall 1.1s cubic-bezier(0.5, 0, 0.75, 0) 0.5s backwards; }
  @keyframes fall {
    0% { transform: rotate(0deg) translateY(-0.12em); color: var(--ink); text-shadow: 0 6px 0 rgba(0, 0, 0, 0.45); }
    70% { transform: rotate(17deg) translateY(0.05em); }
    85% { transform: rotate(12deg) translateY(0.03em); }
    100% { transform: rotate(14deg) translateY(0.04em); }
  }
}
.hero__lead { font-size: var(--s-4); line-height: 1.5; color: var(--stone-l); max-width: 34ch; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; }
.ipbtn {
  display: grid; grid-template-columns: auto; justify-items: start; gap: 6px;
  padding: 14px 22px 16px;
  text-align: left; cursor: pointer; color: #2a1c04;
  background: var(--gold);
  border: 3px solid #0a0910;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.42), inset 0 -6px 0 var(--gold-d), 0 10px 30px rgba(245, 197, 66, 0.18);
  clip-path: var(--notch);
  transition: transform 0.12s, filter 0.12s;
}
.ipbtn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.ipbtn:active { transform: translateY(1px); }
.ipbtn__label { font: 600 12px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.75; }
.ipbtn__ip { font: 400 32px/1 var(--f-display); text-transform: uppercase; }
.ipbtn__hint { font: 500 13px/1 var(--f-body); opacity: 0.75; }
.hero__cta .btn { align-self: center; }
.status { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: var(--s-2); color: var(--stone-l); }
.status__dot { width: 10px; height: 10px; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status.is-off .status__dot { background: var(--stone); box-shadow: none; }

/* ---------- join steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { position: relative; padding: 26px 24px 28px; background: var(--night-2); border-top: 3px solid var(--stone-d); }
.steps__n { display: block; font: 400 56px/1 var(--f-display); color: var(--gold); margin-bottom: 18px; }
.steps h3 { font: 400 24px/1.2 var(--f-display); margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: var(--s-2); }
.steps b { color: var(--ink); }
.inline-ip {
  font: 600 0.95em var(--f-mono); color: var(--gold-l); background: rgba(245, 197, 66, 0.1);
  border: 1px dashed rgba(245, 197, 66, 0.5); padding: 1px 8px; cursor: pointer;
}
.inline-ip:hover { background: rgba(245, 197, 66, 0.18); }

/* ---------- modes ---------- */
.section--modes { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.modes { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.mode {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px; background: var(--night-3); text-decoration: none; min-width: 0;
  border: 2px solid var(--stone-d);
}
.mode h3 { font: 400 32px/1.1 var(--f-display); }
.mode p { color: var(--muted); font-size: var(--s-2); }
.mode__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mode__tags span {
  font: 600 12px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--stone-l); border: 1px solid var(--stone-d); padding: 6px 8px;
}
.mode__tags code { font-size: 12px; padding: 5px 8px; }
.mode--castle {
  grid-row: span 2; justify-content: flex-end; min-height: 420px; overflow: hidden;
  background: var(--night-3) url("img/arena.jpg") center / cover no-repeat;
  image-rendering: pixelated;
  border-color: var(--stone);
  transition: border-color 0.15s;
}
.mode--castle::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(19, 17, 27, 0.97) 20%, rgba(19, 17, 27, 0.55) 60%, rgba(19, 17, 27, 0.25) 100%);
}
.mode--castle:hover { border-color: var(--gold); }
.mode__body { position: relative; display: flex; flex-direction: column; gap: 12px; image-rendering: auto; }
.mode--castle h3 { font-size: 48px; }
.mode--castle p { color: var(--stone-l); max-width: 44ch; }
.mode__more { color: var(--gold-l); font: 400 16px/1 var(--f-display); margin-top: 4px; }
.mode__banner { position: absolute; top: -6px; width: 56px; height: auto; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.4)); }
.mode__banner--l { left: 28px; }
.mode__banner--r { left: 100px; }

/* ---------- battle pass ---------- */
.section--pass { background: var(--night-2); border-block: 2px solid var(--stone-d); }
.pass { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 20px; align-items: start; }
.pass__intro p { color: var(--muted); }
.pass__intro .h2 { margin-bottom: 18px; }
.pass__left { margin-top: 18px; font: 400 24px/1.3 var(--f-display); color: var(--gold-l) !important; }
.track { padding: 26px 24px; background: var(--night); border: 2px solid var(--stone-d); min-width: 0; }
.track h3 { display: flex; align-items: center; gap: 10px; font: 400 24px/1.1 var(--f-display); }
.track h3 img { width: 30px; height: 30px; }
.track__sub { color: var(--muted); font-size: var(--s-2); margin: 6px 0 18px; }
.track--premium {
  border-color: var(--gold-d);
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.08), rgba(245, 197, 66, 0) 60%), var(--night);
  box-shadow: 0 0 0 1px rgba(245, 197, 66, 0.15), 0 18px 50px rgba(245, 197, 66, 0.07);
}
.track--premium h3 { color: var(--gold-l); }
.loot { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.loot li { display: flex; align-items: center; gap: 12px; font-size: var(--s-2); }
.loot img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.loot img.loot__vip { width: 34px; height: auto; }
.track--free .loot { margin-bottom: 0; }
.track .btn { width: 100%; }

/* ---------- news ---------- */
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.head-row .h2 { margin-bottom: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ncard {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  background: var(--night-2); border-top: 3px solid var(--purple); text-decoration: none; min-width: 0;
  transition: background 0.15s;
}
.ncard:hover { background: var(--night-3); }
.ncard:nth-child(3n + 2) { border-top-color: var(--red); }
.ncard:nth-child(3n + 3) { border-top-color: var(--gold-d); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--s-1); color: var(--muted); font-variant-numeric: tabular-nums; }
.tag { font: 600 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); background: var(--stone-d); padding: 5px 7px; }
.ncard h3 { font: 700 var(--s-4)/1.3 var(--f-body); }
.ncard__ex { color: var(--muted); font-size: var(--s-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.newslist { display: grid; gap: 0; max-width: 780px; }
.post { padding-block: 36px; border-bottom: 2px solid var(--stone-d); scroll-margin-top: 90px; }
.post:first-child { padding-top: 8px; }
.post h2 { font: 700 28px/1.25 var(--f-body); margin: 12px 0 16px; }
.post p { color: var(--stone-l); max-width: 66ch; }
.post p + p { margin-top: 14px; }

/* ---------- community ---------- */
.community { background: var(--night-2); border-top: 2px solid var(--stone-d); }
.community__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.community .h2 { margin-bottom: 0; }
.community__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- page heads ---------- */
.pagehead { position: relative; overflow: hidden; padding-block: 72px 40px; background: linear-gradient(180deg, var(--night-2), var(--night)); border-bottom: 2px solid var(--stone-d); }
.pagehead__lead { color: var(--stone-l); font-size: var(--s-4); margin-top: 16px; max-width: 46ch; }
.pagehead--castle {
  padding-block: 96px 56px;
  background: var(--night) url("img/arena.jpg") center 40% / cover no-repeat;
  image-rendering: pixelated;
}
.pagehead--castle::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--night) 0%, rgba(19, 17, 27, 0.78) 45%, rgba(19, 17, 27, 0.6) 100%);
}
.pagehead--castle .wrap { position: relative; image-rendering: auto; }
.pagehead__banner { position: absolute; top: -8px; width: 70px; height: auto; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.45)); }
.pagehead__banner--l { left: max(16px, calc(50% - 680px)); }
.pagehead__banner--r { right: max(16px, calc(50% - 680px)); }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.subnav button {
  font: 400 16px/1 var(--f-display); color: var(--ink); cursor: pointer;
  background: rgba(19, 17, 27, 0.7); border: 2px solid var(--stone-d); padding: 11px 16px;
  clip-path: var(--notch);
}
.subnav button:hover { border-color: var(--gold); color: var(--gold-l); }

/* ---------- rules ---------- */
.rules { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.phases { list-style: none; margin: 0; padding: 0; counter-reset: ph; }
.phases li { position: relative; counter-increment: ph; padding: 0 0 30px 64px; }
.phases li::before {
  content: counter(ph); position: absolute; left: 0; top: -4px;
  width: 40px; height: 40px; display: grid; place-items: center;
  font: 400 24px/1 var(--f-display); color: #2a1c04; background: var(--gold);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), inset 0 -4px 0 var(--gold-d);
  clip-path: var(--notch);
}
.phases li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 4px; background: var(--stone-d); }
.phases li:last-child { padding-bottom: 0; }
.phases li:last-child::after { display: none; }
.phases li:last-child::before { background: var(--ember); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), inset 0 -4px 0 #b4501c; }
.phases h3 { font: 400 24px/1.2 var(--f-display); margin-bottom: 6px; }
.phases p { color: var(--muted); font-size: var(--s-2); max-width: 60ch; }
.rules__side { display: grid; gap: 20px; position: sticky; top: 96px; }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--night-2); border-left: 4px solid var(--red); }
.note img { width: 28px; height: 28px; flex-shrink: 0; margin-top: 2px; }
.note p { font-size: var(--s-2); color: var(--stone-l); }
.note b { color: var(--ink); }
.xp { padding: 22px 22px 18px; background: var(--night-2); border-left: 4px solid var(--purple); }
.xp h3 { font: 400 16px/1.2 var(--f-display); margin-bottom: 12px; }
.xp table { width: 100%; border-collapse: collapse; font-size: var(--s-2); font-variant-numeric: tabular-nums; }
.xp td { padding: 7px 0; border-bottom: 1px solid var(--stone-d); color: var(--stone-l); }
.xp td:last-child { text-align: right; font: 600 var(--s-2) var(--f-mono); color: var(--gold-l); }
.xp tr:last-child td { border-bottom: 0; }
.xp__note { margin-top: 10px; font-size: var(--s-1); color: var(--muted); }

/* ---------- classes ---------- */
.section--classes { background: var(--night-2); border-block: 2px solid var(--stone-d); }
.classes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cls {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 8px; align-content: start;
  padding: 22px; background: var(--night); border: 2px solid var(--stone-d); min-width: 0;
}
.cls__n { grid-row: span 3; font: 400 40px/1 var(--f-display); color: var(--stone-d); min-width: 1.1em; }
.cls h3 { font: 400 24px/1.1 var(--f-display); }
.cls__role { font: 600 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.cls p { grid-column: 2; color: var(--stone-l); font-size: var(--s-2); }
.cls__access { grid-column: 2; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: var(--s-1); font-weight: 600; color: var(--muted); }
.cls__access img { width: 16px; height: 16px; }
.cls__access.is-free { color: var(--ok); }

/* ---------- updates ---------- */
.updates { display: grid; gap: 20px; max-width: 820px; }
.upd { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 26px; background: var(--night-2); border: 2px solid var(--stone-d); }
.upd__v { font: 400 40px/1 var(--f-display); color: var(--gold-l); }
.upd__d { display: block; font-size: var(--s-1); color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.upd ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.upd li { position: relative; padding-left: 22px; color: var(--stone-l); font-size: var(--s-2); }
.upd li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--purple); }

/* ---------- shop ---------- */
.nick { max-width: 520px; margin-bottom: 36px; }
.nick label { display: block; font: 400 16px/1.2 var(--f-display); margin-bottom: 12px; }
.nick__row { display: flex; align-items: center; gap: 12px; }
.nick input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px;
  font: 600 var(--s-4) var(--f-mono); color: var(--ink);
  background: #0c0b11; border: 3px solid var(--stone-d);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.5);
}
.nick input::placeholder { color: #5d5872; font-weight: 400; }
.nick input:focus { outline: none; border-color: var(--gold); }
.nick input.is-bad { border-color: var(--red-l); }
.nick__help { margin-top: 8px; font-size: var(--s-1); color: var(--muted); }
.nick__help.is-bad { color: var(--red-l); }
.nick__help.is-ok { color: var(--ok); }

.shop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.item {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 22px 20px 20px; background: var(--night-2);
  border: 3px solid #0a0910;
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.05), inset -3px -3px 0 rgba(0, 0, 0, 0.35), 0 0 0 2px var(--stone-d);
}
.item__tag {
  position: absolute; top: -12px; right: 14px;
  font: 400 16px/1 var(--f-display); color: #2a1c04; background: var(--gold); padding: 4px 8px;
}
.item__icons { height: 56px; display: flex; align-items: flex-end; }
.item__icons img { width: 40px; height: 40px; margin-right: -14px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5)); }
.item h3 { font: 400 32px/1 var(--f-display); }
.item h3 small { display: block; font: 600 var(--s-1)/1.3 var(--f-body); color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.item__bonus { font-size: var(--s-1); font-weight: 600; color: var(--ok); }
.item__price { font: 400 24px/1 var(--f-display); color: var(--gold-l); margin-top: auto; padding-top: 8px; }
.item .btn { width: 100%; }
.item--premium {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 28px; align-items: center;
  padding: 28px; margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(245, 197, 66, 0.12), rgba(245, 197, 66, 0) 55%), var(--night-2);
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.06), inset -3px -3px 0 rgba(0, 0, 0, 0.35), 0 0 0 2px var(--gold-d);
}
.item--premium > img { width: 84px; height: 84px; }
.item--premium ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; }
.item--premium li { position: relative; padding-left: 18px; font-size: var(--s-2); color: var(--stone-l); }
.item--premium li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; background: var(--gold); }
.item--premium h3 { font-size: 40px; color: var(--gold-l); }
.item__season { margin-bottom: 8px; }
.item__buy { display: grid; gap: 12px; justify-items: stretch; min-width: 200px; }
.item--premium .item__price { text-align: center; padding-top: 0; font-size: 40px; }
.shop__msg {
  margin-top: 20px; padding: 14px 18px; font-size: var(--s-2);
  background: rgba(245, 197, 66, 0.08); border-left: 4px solid var(--gold); color: var(--stone-l);
}

.shop-info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.shop-info > div { padding: 24px; background: var(--night-2); border-top: 3px solid var(--stone-d); min-width: 0; }
.shop-info h3 { font: 400 24px/1.2 var(--f-display); margin-bottom: 14px; }
.pay ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pay li { position: relative; padding-left: 20px; font-size: var(--s-2); color: var(--stone-l); }
.pay li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--ok); }
.pay li[data-abroad]::before { background: var(--stone); }
.pay li[data-abroad] { color: var(--muted); }
.spend ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.spend li { display: flex; align-items: center; gap: 12px; font-size: var(--s-2); color: var(--stone-l); }
.spend li img { width: 24px; height: 24px; }
.spend li span { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 var(--s-2) var(--f-mono); color: var(--purple-l); }
.spend li span img { width: 14px; height: 14px; }
.spend__note { margin-top: 14px; font-size: var(--s-1); color: var(--muted); }

.faq { margin-top: 48px; max-width: 780px; display: grid; gap: 10px; }
.faq details { background: var(--night-2); border: 2px solid var(--stone-d); }
.faq summary { cursor: pointer; padding: 16px 20px; font: 600 var(--s-3)/1.3 var(--f-body); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--stone-l); font-size: var(--s-2); max-width: 66ch; }

/* ---------- ideas & bugs ---------- */
.fb { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.fb__form, .fb__done { display: grid; gap: 22px; padding: 28px; background: var(--night-2); border: 2px solid var(--stone-d); min-width: 0; }
.fb__types { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fb__types legend { font: 400 16px/1.2 var(--f-display); margin-bottom: 12px; padding: 0; }
.fb__types label { position: relative; cursor: pointer; }
.fb__types input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb__types span {
  display: inline-block; padding: 12px 18px; font: 400 16px/1 var(--f-display); color: var(--muted);
  background: var(--night); border: 2px solid var(--stone-d); clip-path: var(--notch);
}
.fb__types label:hover span { color: var(--ink); border-color: var(--stone); }
.fb__types input:checked + span { color: #2a1c04; background: var(--gold); border-color: #0a0910; box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), inset 0 -4px 0 var(--gold-d); }
.fb__types input[value="bug"]:checked + span { color: #fff; background: var(--red); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.25), inset 0 -4px 0 #8a2424; }
.fb__types input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.fb__field { display: grid; gap: 10px; min-width: 0; }
.fb__field label { font: 400 16px/1.2 var(--f-display); }
.fb__field label span { font: 400 var(--s-1)/1 var(--f-body); color: var(--muted); }
.fb__field input, .fb__field textarea {
  width: 100%; min-width: 0; padding: 12px 14px;
  font: 400 var(--s-3)/1.5 var(--f-body); color: var(--ink);
  background: #0c0b11; border: 3px solid var(--stone-d); box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.5);
  resize: vertical;
}
.fb__field input::placeholder, .fb__field textarea::placeholder { color: #5d5872; }
.fb__field input:focus, .fb__field textarea:focus { outline: none; border-color: var(--gold); }
.fb__field .is-bad { border-color: var(--red-l); }
.fb__hint { font-size: var(--s-1); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.fb__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.fb__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fb__send { justify-self: start; min-width: 200px; }
.fb__status { padding: 12px 16px; font-size: var(--s-2); background: rgba(227, 106, 99, 0.1); border-left: 4px solid var(--red-l); color: var(--stone-l); }
.fb__done { justify-items: start; border-color: var(--gold-d); }
.fb__done img { width: 52px; height: auto; }
.fb__done h2 { font: 400 40px/1 var(--f-display); color: var(--gold-l); }
.fb__done p { color: var(--stone-l); max-width: 50ch; }
.fb__side { display: grid; gap: 20px; position: sticky; top: 96px; }
.fb__side h3 { font: 400 16px/1.2 var(--f-display); margin-bottom: 10px; color: var(--ink); }
.fb__side ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--s-2); color: var(--stone-l); }
.note--purple { border-left-color: var(--purple); }
.foot__help { grid-column: 1 / -1; font-size: var(--s-2); color: var(--stone-l); }
.foot__help a { color: var(--gold-l); font-weight: 600; }
.faq a { color: var(--gold-l); }

/* ---------- promo bar ---------- */
.promobar { background: linear-gradient(90deg, #6a2f14, #a8461c 45%, #6a2f14); border-bottom: 2px solid #0a0910; }
.promobar__in {
  max-width: 1120px; margin-inline: auto; padding: 10px 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px;
  color: #fff3dc; text-decoration: none; font-size: var(--s-2); font-weight: 600; text-align: center;
}
.promobar__code { font: 600 0.95em var(--f-mono); color: #2a1c04; background: var(--gold); padding: 2px 8px; margin-inline: 2px; }
.promobar__btn { font: 400 16px/1 var(--f-display); color: var(--gold-l); white-space: nowrap; }
.promobar__in:hover .promobar__btn { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- shop extras ---------- */
.buyer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; margin-bottom: 36px; max-width: 900px; }
.buyer .nick { max-width: none; margin-bottom: 0; min-width: 0; }
.nick input { width: 100%; }
.promo .btn { min-height: 52px; }
.shop__group { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 18px; }
.shop__group h3 { font: 400 24px/1 var(--f-display); }
.shop__group p { font-size: var(--s-2); color: var(--muted); }
.item__price s { display: block; font: 400 var(--s-2)/1 var(--f-body); color: var(--muted); margin-bottom: 6px; }
.item--premium .item__price s { font-size: var(--s-3); }
.shop__empty { grid-column: 1 / -1; color: var(--muted); padding: 20px 0; }
.shop__legal { margin-top: 18px; font-size: var(--s-1); color: var(--muted); }
.shop__legal a, .foot__seller a, .foot__legal a { color: var(--gold-l); }

/* ---------- after payment ---------- */
.paid { max-width: 640px; margin-inline: auto; display: grid; justify-items: center; gap: 16px; text-align: center; padding: 40px 24px; background: var(--night-2); border: 2px solid var(--stone-d); }
.paid img { width: 80px; height: 80px; }
.paid .h1 { font-size: 48px; }
.paid__item { font: 400 16px/1.3 var(--f-display); color: var(--gold-l); }
.paid__text { color: var(--stone-l); max-width: 46ch; }
.paid__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.paid[data-state="delivered"] { border-color: var(--gold-d); }
.paid[data-state="canceled"], .paid[data-state="not_found"] { border-color: var(--red); }

/* ---------- server rules ---------- */
.srules { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.srules__main { display: grid; gap: 36px; }
.srules__sec h2 { display: flex; align-items: center; gap: 14px; font: 400 32px/1.1 var(--f-display); margin-bottom: 14px; }
.srules__sec h2 span { display: grid; place-items: center; width: 40px; height: 40px; font: 400 24px/1 var(--f-display); color: #2a1c04; background: var(--gold); flex-shrink: 0; }
.srules__sec ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.srules__sec li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px 14px; align-items: baseline; padding: 14px 16px; background: var(--night-2); }
.srules__n { font: 600 var(--s-2)/1.6 var(--f-mono); color: var(--gold-l); font-variant-numeric: tabular-nums; }
.srules__sec li p { color: var(--stone-l); font-size: var(--s-2); }
.srules__sec a { color: var(--gold-l); }
.srules__p { justify-self: end; white-space: nowrap; font: 600 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); background: #5a2626; padding: 5px 7px; }
.srules__upd { font-size: var(--s-1); color: var(--muted); }
.srules__side { display: grid; gap: 20px; position: sticky; top: 96px; }
.ladder { padding: 20px; background: var(--night-2); border-top: 4px solid var(--gold); }
.ladder h3 { font: 400 24px/1.1 var(--f-display); margin-bottom: 14px; }
.ladder ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: lad; }
.ladder li { counter-increment: lad; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 12px; }
.ladder li::before { content: counter(lad); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; font: 400 16px/1 var(--f-display); color: var(--ink); background: var(--stone-d); }
.ladder li:last-child::before { background: #7a2b2b; }
.ladder b { font-size: var(--s-2); }
.ladder span { font-size: var(--s-2); color: var(--stone-l); }
.note--gold { border-left-color: var(--gold); }
.note a { color: var(--gold-l); }
.note code { white-space: nowrap; }

/* ---------- offer ---------- */
.offer > * { max-width: 760px; }
.offer h2 { font: 400 24px/1.2 var(--f-display); margin: 32px 0 12px; }
.offer h2:first-child { margin-top: 0; }
.offer p { color: var(--stone-l); }
.offer p + p { margin-top: 10px; }
.offer a { color: var(--gold-l); }
.foot__seller { grid-column: 1 / -1; font-size: var(--s-1); color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 2px solid var(--stone-d); background: #0f0d15; padding-block: 40px 48px; }
.foot__in { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 10px; font: 400 24px/1 var(--f-display); color: var(--gold-l); letter-spacing: 0.04em; }
.foot__brand img { width: 30px; height: auto; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-self: end; }
.foot__nav a { color: var(--muted); text-decoration: none; font-size: var(--s-2); }
.foot__nav a:hover { color: var(--ink); }
.foot__legal { grid-column: 1 / -1; font-size: var(--s-1); color: #6f6987; max-width: 80ch; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); width: max-content;
  padding: 14px 20px; font-size: var(--s-2); color: var(--ink);
  background: var(--night-3); border: 2px solid var(--gold-d);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s, transform 0.2s;
}
.toast b { color: var(--gold-l); font-family: var(--f-mono); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .wordmark { font-size: 96px; }
  .pass { grid-template-columns: 1fr 1fr; }
  .pass__intro { grid-column: 1 / -1; }
  .shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item--premium { grid-template-columns: auto minmax(0, 1fr); }
  .item__buy { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; min-width: 0; }
  .rules, .fb, .srules { grid-template-columns: 1fr; }
  .srules__side { position: static; }
  .fb__side { position: static; grid-template-columns: 1fr 1fr; }
  .rules__side { position: static; grid-template-columns: 1fr 1fr; }
  .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .top__in { flex-wrap: wrap; gap: 0 16px; padding-top: 10px; }
  .logo { flex: 1; }
  .nav { order: 3; flex: 1 0 100%; overflow-x: auto; margin-inline: -8px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .steps, .news-grid { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .mode--castle { grid-row: auto; min-height: 380px; }
  .pagehead__banner { width: 48px; }
}
@media (max-width: 620px) {
  .section { padding-block: 60px; }
  .wordmark { font-size: 64px; }
  .h1 { font-size: 48px; }
  .h2 { font-size: 32px; }
  .ipbtn__ip { font-size: 24px; }
  .mode--castle h3, .item--premium h3, .item--premium .item__price, .upd__v { font-size: 32px; }
  .mode h3 { font-size: 24px; }
  .pass { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr 1fr; gap: 12px; }
  .item { padding: 18px 14px 14px; }
  .item h3 { font-size: 24px; }
  .item--premium { grid-template-columns: 1fr; padding: 22px 18px; }
  .item--premium > img { width: 60px; height: 60px; }
  .item--premium ul { grid-template-columns: 1fr; }
  .item__buy { grid-template-columns: 1fr; }
  .shop-info, .rules__side, .fb__side, .fb__row { grid-template-columns: 1fr; }
  .srules__sec li { grid-template-columns: 36px minmax(0, 1fr); }
  .srules__p { grid-column: 2; justify-self: start; }
  .buyer { grid-template-columns: minmax(0, 1fr); }
  .paid .h1 { font-size: 32px; }
  .promobar__in { font-size: var(--s-1); }
  .fb__form, .fb__done { padding: 22px 18px; }
  .fb__send { justify-self: stretch; }
  .nav a[data-go="home"], .nav__more { display: none; }
  .classes { grid-template-columns: 1fr; }
  .upd { grid-template-columns: 1fr; gap: 14px; padding: 22px 18px; }
  .foot__in { grid-template-columns: 1fr; }
  .foot__nav { justify-self: start; }
  .head-row { flex-wrap: wrap; }
  .pagehead__banner { display: none; }
  .ipchip { padding: 0 10px; font-size: var(--s-1); }
  .nav { justify-content: space-between; margin-inline: -6px; }
  .nav a { padding: 10px 6px; }
  .nav a[aria-current="page"]::after { left: 6px; right: 6px; }
  .mode--castle { min-height: 440px; }
  .mode__banner { width: 40px; }
  .mode__banner--l { left: 22px; }
  .mode__banner--r { left: 74px; }
  .ipchip svg { display: none; }
}
@media (max-width: 380px) {
  .shop { grid-template-columns: 1fr; }
  .wordmark { font-size: 56px; }
  .h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
