@font-face { font-family: "Tiny5"; src: url(fonts/tiny5-cyr.woff2) format("woff2"); font-weight: 400; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: "Tiny5"; src: url(fonts/tiny5-lat.woff2) format("woff2"); font-weight: 400; 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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url(fonts/ptsans-cyr.woff2) format("woff2"); font-weight: 400; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url(fonts/ptsans-lat.woff2) format("woff2"); font-weight: 400; 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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url(fonts/ptsans-bold-cyr.woff2) format("woff2"); font-weight: 700; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url(fonts/ptsans-bold-lat.woff2) format("woff2"); font-weight: 700; 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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }

:root {
  --bg: #0e0c1e;
  --bg-2: #0b0911;
  --panel: #17142a;
  --panel-2: #1f1b36;
  --line: #2e2850;
  --text: #e8dcc0;
  --muted: #a596be;
  --gold: #f2d27a;
  --fire: #f2a24a;
  --violet: #b9a2ff;
  --violet-2: #966edc;
  --good: #8cc070;
  --bad: #e07060;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 "PT Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { image-rendering: pixelated; }
a { color: var(--gold); }
code { background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; font-size: .92em; color: var(--gold); }
b { color: #fff4dc; }
.muted { color: var(--muted); }
h1, h2, h3, .logo, .tabs a, .ip, .label, .zone span, .badge, .chip { font-family: "Tiny5", "PT Sans", sans-serif; }
h1 { font-size: 34px; line-height: 1.15; margin: 34px 0 12px; color: var(--gold); font-weight: 400; letter-spacing: .5px; }
h2 { font-size: 26px; margin: 40px 0 12px; color: var(--violet); font-weight: 400; }
h3 { font-size: 19px; margin: 8px 0 6px; color: var(--gold); font-weight: 400; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---- шапка ---- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 20px;
  background: rgba(14, 12, 30, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 22px; font-weight: 400; letter-spacing: 2px;
  background: linear-gradient(90deg, #bec8ff, var(--violet-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo img { border-radius: 6px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 8px 14px; border-radius: 8px; text-decoration: none; white-space: nowrap;
  color: var(--muted); font-size: 17px;
}
.tabs a:hover { color: var(--text); background: var(--panel); }
.tabs a.active { color: var(--gold); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--fire); }

/* ---- главная ---- */
.hero { background: #0e0c1e; border-bottom: 1px solid var(--line); }
.hero-img { display: block; width: 100%; max-width: 1280px; margin: 0 auto; height: auto; }
.join {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  margin-top: -1px; padding: 20px 24px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
}
.label { display: block; font-size: 13px; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.join-ip { display: flex; flex-direction: column; position: relative; }
.ip {
  font-size: 28px; font-weight: 400; color: var(--gold); background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  text-shadow: 0 0 18px rgba(242, 162, 74, .45);
}
.ip:hover { color: #ffe39a; }
.copied { position: absolute; top: 100%; left: 0; font-size: 13px; color: var(--good); }
.join-facts { display: flex; flex-wrap: wrap; gap: 14px 28px; flex: 1; }
.join-facts b { font-weight: 700; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 700;
  background: var(--fire); color: #2a1606;
}
.btn:hover { background: #ffb35e; }
.btn.tg { background: #2f6fb0; color: #fff; }
.btn.tg:hover { background: #3a82cc; }
.intro { max-width: 760px; }
.intro p { font-size: 18px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; }
.pillar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pillar img { width: 40px; height: 40px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; }
.steps { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 12px 16px 12px 58px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 11px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--fire); color: #2a1606; font: 400 17px "Tiny5", sans-serif;
}
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.zone { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 15px; color: var(--muted); }
.zone b { display: block; color: var(--text); font-size: 16.5px; }
.zone span { float: right; color: var(--violet-2); font-size: 20px; line-height: 1; }
.npcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.npc { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.npc img { width: 64px; height: 64px; flex: none; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.npc p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.ranks { display: flex; flex-wrap: wrap; gap: 10px; }
.rank { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.rank img { height: 22px; }
.rank b { font-family: "Tiny5", sans-serif; font-size: 18px; }
.rank span { font-size: 14px; color: var(--muted); }

/* ---- механики ---- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.toc a { font-size: 14.5px; padding: 5px 11px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.toc a:hover { border-color: var(--fire); }
.mech { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px 14px; margin: 16px 0; scroll-margin-top: 80px; }
.mech h2 { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.mech h2 img { width: 32px; height: 32px; }
.mech ul { padding-left: 20px; }
.mech li { margin: 6px 0; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stages div { background: var(--panel-2); border-radius: 8px; padding: 10px 12px; font-size: 15px; color: var(--muted); }
.stages b { display: block; font: 400 20px "Tiny5", sans-serif; color: var(--bad); }
.tbl-wrap { overflow-x: auto; }
.tbl { border-collapse: collapse; width: 100%; font-size: 15.5px; margin: 8px 0; }
.tbl th, .tbl td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { color: var(--muted); font-weight: 400; font-size: 14px; }
.tbl td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .pos { color: var(--good); }
.tbl .neg { color: var(--bad); }
.it { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.it img { width: 24px; height: 24px; }

/* ---- крафты ---- */
.filters { position: sticky; top: 58px; z-index: 5; background: var(--bg); padding: 10px 0; display: grid; gap: 10px; }
.filters input {
  width: 100%; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit;
}
.filters input:focus { outline: none; border-color: var(--fire); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 15px;
}
.chip img { width: 20px; height: 20px; }
.chip.on { color: var(--gold); border-color: var(--fire); background: var(--panel-2); }
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 8px; }
.recipe { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.recipe-head { display: flex; gap: 12px; align-items: center; }
.recipe-head > img { width: 48px; height: 48px; flex: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.recipe-head h3 { margin: 0; font-size: 18px; }
.recipe-head .where { font-size: 13.5px; color: var(--muted); }
.recipe .lore { margin: 0; font-size: 14.5px; color: var(--muted); }
.ings { display: flex; flex-wrap: wrap; gap: 6px; }
.ing { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14.5px; cursor: pointer; }
.ing:hover { border-color: var(--fire); }
.ing img { width: 24px; height: 24px; }
.ing b { color: var(--gold); }
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge { display: inline-block; font-size: 12.5px; padding: 1px 7px; border-radius: 5px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.badge.bp { color: #8cd2ff; border-color: #2e5470; }
.badge.lvl { color: var(--fire); border-color: #6a4422; }
.badge.st { color: var(--good); border-color: #3e5a2e; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }

/* ---- станции ---- */
.stations { display: grid; gap: 14px; margin-top: 18px; }
.station { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; grid-template-columns: 96px 1fr; gap: 6px 20px; scroll-margin-top: 80px; }
.station > img { width: 96px; height: 96px; background: radial-gradient(circle at 50% 60%, rgba(242,162,74,.18), transparent 70%), var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.station h2 { margin: 0 0 4px; }
.station p { margin: 6px 0; }
.station .get { font-size: 15px; color: var(--muted); }
.station .makes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.station .makes a { text-decoration: none; color: var(--text); }
.station .facts { margin: 6px 0 0; padding-left: 18px; font-size: 15.5px; }

/* ---- еда ---- */
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.dish { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.dish .recipe-head > img { width: 40px; height: 40px; }
.dish p { margin: 6px 0; font-size: 14.5px; }
.dish .how { color: var(--gold); }

.foot { margin-top: 60px; padding: 24px 0; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 14.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .top { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 16px; }
  .logo { font-size: 19px; }
  .tabs { flex-wrap: wrap; }
  .tabs a { padding: 5px 9px; font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 27px; }
  h2 { font-size: 22px; }
  .ip { font-size: 24px; }
  .join { flex-direction: column; align-items: flex-start; padding: 16px; }
  .join-facts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .filters { top: 92px; }
  .station { grid-template-columns: 56px 1fr; padding: 14px; }
  .station > img { width: 56px; height: 56px; padding: 4px; }
  .stages { grid-template-columns: 1fr; }
  .mech { padding: 2px 14px 10px; }
  .recipes { grid-template-columns: 1fr; }
}
