/* ============ Silicon Age — сайт ============ */
:root {
  --bg: #0a0912;
  --bg-2: #110f1c;
  --panel: #161327;
  --panel-2: #1d1934;
  --line: #2c2650;
  --line-2: #3d3570;
  --text: #e7e4f5;
  --muted: #9b95b8;
  --dim: #6d6790;
  --violet: #8b5cf6;
  --magenta: #d946ef;
  --cyan: #22d3ee;
  --gold: #f2c14e;
  --green: #4ade80;
  --red: #f87171;
  --glow: 0 0 24px rgba(139, 92, 246, .35);
  --grad: linear-gradient(100deg, var(--violet), var(--magenta) 55%, var(--cyan));
  --slot: #8b8b8b;
  --radius: 10px;
  --maxw: 1180px;
  --pixel: "Press Start 2P", monospace;
  --head: "Exo 2", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;

  /* цвета уровней напряжения */
  --t-lv: #9ca3af; --t-mv: #fb923c; --t-hv: #facc15; --t-ev: #4ade80;
  --t-iv: #38bdf8; --t-qv: #a78bfa; --t-xv: #e879f9; --t-sv: #f43f5e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  overflow-x: hidden;
}
/* фон: дорожки микросхемы */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139,92,246,.18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(34,211,238,.08), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23231e40' stroke-width='1.2'%3E%3Cpath d='M0 30h40l10 10h30M60 0v20l10 10v40M120 90H90l-10-10H50M30 120v-30l-10-10V60'/%3E%3C/g%3E%3Cg fill='%232e2754'%3E%3Ccircle cx='80' cy='40' r='2.5'/%3E%3Ccircle cx='70' cy='70' r='2.5'/%3E%3Ccircle cx='50' cy='80' r='2.5'/%3E%3Ccircle cx='20' cy='60' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }

h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* пиксельная метка */
.tag {
  display: inline-block;
  font: 9px/1 var(--pixel);
  letter-spacing: .5px;
  padding: 6px 8px;
  color: var(--cyan);
  background: rgba(34,211,238,.08);
  border: 2px solid rgba(34,211,238,.35);
  text-transform: uppercase;
}
.tag.gold { color: var(--gold); background: rgba(242,193,78,.08); border-color: rgba(242,193,78,.4); }
.tag.magenta { color: var(--magenta); background: rgba(217,70,239,.08); border-color: rgba(217,70,239,.4); }
.section-head { margin-bottom: 32px; }
.section-head .tag { margin-bottom: 14px; }
.section-head p { color: var(--muted); max-width: 720px; }

/* ===== шапка ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,9,18,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.1rem var(--head); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 6px; }
.brand small { font: 8px var(--pixel); color: var(--violet); display: block; margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem;
}
.nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav a.active { color: var(--text); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--violet); }
.nav .btn { margin-left: 8px; }
/* переключатель языка */
.lang-switch { display: flex; flex: none; border: 2px solid var(--line-2); }
.lang-switch button {
  font: 9px/1 var(--pixel); padding: 9px 9px; background: none; border: none;
  color: var(--dim); cursor: pointer;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.on { background: var(--violet); color: #fff; cursor: default; }
.menu-toggle {
  display: none; background: none; border: 2px solid var(--line-2);
  color: var(--text); width: 42px; height: 42px; border-radius: 8px; font-size: 20px; cursor: pointer;
}

/* ===== кнопки (пиксельные края) ===== */
.btn {
  --c: var(--violet);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font: 700 .95rem var(--head);
  color: #fff;
  background: var(--c);
  border: none; cursor: pointer;
  clip-path: 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));
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.3), inset 0 4px 0 rgba(255,255,255,.15);
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.15); text-decoration: none; transform: translateY(-1px); }
.btn.small { padding: 8px 14px; font-size: .85rem; }
.btn.discord { --c: #5865f2; }
.btn.ghost { --c: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 2px var(--line-2); clip-path: none; border-radius: 4px; }
.btn.grad { background: var(--grad); }
.btn[aria-disabled="true"] { filter: grayscale(.6) brightness(.8); cursor: default; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ===== герой ===== */
.hero { padding: 88px 0 56px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-art .chip {
  width: 72%; border-radius: 22px;
  filter: drop-shadow(0 0 40px rgba(139,92,246,.55));
  animation: float 6s ease-in-out infinite;
}
.hero-art .ring {
  position: absolute; inset: 4%; border-radius: 50%;
  border: 2px dashed rgba(139,92,246,.35);
  animation: spin 40s linear infinite;
}
.hero-art .ring.r2 { inset: 14%; border-color: rgba(34,211,238,.25); border-style: dotted; animation-direction: reverse; animation-duration: 28s; }
.orbit-icon { position: absolute; width: 44px; height: 44px; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== статы ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.stat b { display: block; font: 800 2.2rem var(--head); }
.stat span { color: var(--muted); font-size: .92rem; }

/* ===== карточки ===== */
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--glow); transform: translateY(-2px); }
.card .shot { aspect-ratio: 16/9; background: #000; overflow: hidden; cursor: zoom-in; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .shot img { transform: scale(1.04); }
.card .body { padding: 20px; flex: 1; }
.card .body p { color: var(--muted); margin: 0; }
.card h3 { display: flex; align-items: center; gap: 10px; }

/* слот инвентаря Minecraft */
.slot {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: #373737;
  box-shadow: inset 2px 2px 0 #1b1b1b, inset -2px -2px 0 #5a5a5a;
}
.slot img { width: 32px; height: 32px; image-rendering: pixelated; }
.slot.lg { width: 60px; height: 60px; }
.slot.lg img { width: 44px; height: 44px; }

/* ===== лестница напряжений ===== */
.tiers { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; }
.tier { text-align: center; }
.tier .bar {
  background: linear-gradient(to top, color-mix(in srgb, var(--c) 30%, transparent), var(--c));
  border-radius: 4px 4px 0 0; margin-bottom: 8px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 40%, transparent);
}
.tier b { font: 11px var(--pixel); color: var(--c); display: block; margin-bottom: 4px; }
.tier span { font-size: .78rem; color: var(--muted); }

/* бейдж уровня */
.tb { font: 8px/1 var(--pixel); padding: 4px 5px; border: 1.5px solid currentColor; color: var(--c, var(--muted)); white-space: nowrap; }
.tb.LV{--c:var(--t-lv)}.tb.MV{--c:var(--t-mv)}.tb.HV{--c:var(--t-hv)}.tb.EV{--c:var(--t-ev)}
.tb.IV{--c:var(--t-iv)}.tb.QV{--c:var(--t-qv)}.tb.XV{--c:var(--t-xv)}.tb.SV{--c:var(--t-sv)}

/* ===== цепочка кремния ===== */
.chain { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chain .step { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; text-align: center; font-size: .75rem; color: var(--muted); }
.chain .arrow { color: var(--violet); font: 10px var(--pixel); margin-top: -20px; }

/* ===== аддон-баннер ===== */
.addon-banner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.addon-banner .txt { padding: 40px; }
.addon-banner .img { background: #000 center/cover; min-height: 320px; cursor: zoom-in; }

/* ===== Discord ===== */
.discord-box {
  text-align: center; padding: 56px 24px; border-radius: 18px;
  background:
    radial-gradient(ellipse at top, rgba(88,101,242,.35), transparent 70%),
    var(--panel);
  border: 1px solid rgba(88,101,242,.45);
}
.discord-box .ico { width: 64px; height: 64px; margin: 0 auto 16px; color: #8891f7; }
.discord-box p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }
.channels { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.channels span { background: var(--bg-2); border: 1px solid var(--line); padding: 6px 12px; border-radius: 6px; font-size: .88rem; color: var(--muted); }
.channels span::before { content: "# "; color: #8891f7; font-weight: 700; }
.soon-note { font-size: .85rem; color: var(--dim); margin-top: 14px; }

/* ===== таблицы ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--panel-2); font-family: var(--head); font-weight: 600; color: var(--muted); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(139,92,246,.05); }
kbd {
  font: 10px var(--pixel); padding: 5px 7px; background: #373737; color: #fff;
  box-shadow: inset -2px -2px 0 #1b1b1b, inset 2px 2px 0 #6b6b6b;
}

/* ===== подзаголовок страницы ===== */
.page-head { padding-top: 64px; padding-bottom: 24px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-head p { color: var(--muted); max-width: 720px; font-size: 1.08rem; }

.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.subnav a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: .9rem; }
.subnav a:hover { color: var(--text); border-color: var(--violet); text-decoration: none; }

/* списки-фичи */
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feat-list li { padding-left: 22px; position: relative; color: var(--muted); }
.feat-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.feat-list li b { color: var(--text); }

/* галерея */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; background: #000; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; position: relative; }
.gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 12px 8px; font-size: .82rem; background: linear-gradient(transparent, rgba(0,0,0,.85)); }

/* статус-точки */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.status.done { --c: var(--green); }
.status.wip { --c: var(--gold); }
.status.plan { --c: var(--dim); }

/* ===== загрузки ===== */
.dl-card { padding: 28px; display: flex; gap: 22px; align-items: flex-start; }
.dl-card .slot { margin-top: 4px; }
.dl-card h3 { margin-bottom: 4px; }
.dl-card .ver { font: 10px var(--pixel); color: var(--gold); margin-bottom: 14px; display: block; }
.dl-card ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.steps li::before {
  content: counter(s); flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  font: 11px var(--pixel); color: #fff; background: var(--violet);
}
.steps li b { color: var(--text); }

/* changelog */
.changelog details {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.changelog summary {
  cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 14px; list-style: none;
  font: 600 1.05rem var(--head);
}
.changelog summary::-webkit-details-marker { display: none; }
.changelog summary::after { content: "+"; margin-left: auto; font: 14px var(--pixel); color: var(--violet); }
.changelog details[open] summary::after { content: "−"; }
.changelog summary .date { font: 400 .85rem var(--body); color: var(--dim); }
.changelog .cl-body { padding: 0 20px 18px 20px; }
.changelog ul { margin: 0; padding-left: 20px; color: var(--muted); }
.changelog li { margin-bottom: 4px; }
.changelog li b { color: var(--text); }

/* ===== вики ===== */
.wiki-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.search {
  flex: 1; min-width: 240px; position: relative;
}
.search input {
  width: 100%; padding: 13px 16px 13px 44px; font: 1rem var(--body); color: var(--text);
  background: var(--panel); border: 2px solid var(--line-2); border-radius: 8px; outline: none;
}
.search input:focus { border-color: var(--violet); box-shadow: var(--glow); }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip-btn {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel);
  color: var(--muted); font: 500 .88rem var(--body); cursor: pointer;
}
.chip-btn:hover { color: var(--text); }
.chip-btn.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.chip-btn .n { opacity: .6; margin-left: 4px; font-size: .8em; }
.wiki-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.item {
  display: flex; gap: 14px; padding: 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; transition: border-color .15s;
}
.item:hover { border-color: var(--violet); }
.item h4 { font-size: 1rem; margin: 0 0 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item .en { font-size: .78rem; color: var(--dim); margin-bottom: 6px; }
.item p { font-size: .88rem; color: var(--muted); margin: 0; }
.item .new { font: 7px var(--pixel); color: var(--magenta); border: 1.5px solid var(--magenta); padding: 3px 4px; }
.empty { text-align: center; color: var(--dim); padding: 48px 0; }
.wiki-count { color: var(--dim); font-size: .9rem; margin-left: auto; }

/* ===== лайтбокс ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5,4,10,.92);
  display: none; place-items: center; padding: 24px; cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 8px; box-shadow: 0 0 60px rgba(139,92,246,.4); }
.lightbox .cap { color: var(--muted); text-align: center; margin-top: 12px; }

/* ===== подвал ===== */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 40px; color: var(--dim); font-size: .88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer .links { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }

/* ===== адаптив ===== */
@media (max-width: 920px) {
  .hero .wrap, .addon-banner { grid-template-columns: 1fr; }
  .hero-art { max-width: 260px; margin: 8px auto 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.c3, .gallery { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
  .menu-toggle { display: block; }
  .lang-switch { margin-left: auto; }
  .site-header .wrap { gap: 12px; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px 16px;
  }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 600px) {
  section { padding: 44px 0; }
  .hero { padding-top: 40px; }
  .grid.c2, .grid.c3, .gallery { grid-template-columns: 1fr; }
  .addon-banner .txt { padding: 24px; }
  .dl-card { flex-direction: column; }
  .wiki-grid { grid-template-columns: 1fr; }
  .chain .step { width: 74px; }
}

/* ===================== Справочник 2.0 ===================== */
/* анимированные текстуры: вертикальная полоса кадров */
.spr {
  display: block; width: var(--s); height: var(--s);
  background-size: var(--s) auto; background-repeat: no-repeat;
  image-rendering: pixelated; image-rendering: crisp-edges;
  animation: spr var(--t) steps(var(--n)) infinite;
}
@keyframes spr { from { background-position: 0 0; } to { background-position: 0 calc(var(--s) * var(--n) * -1); } }
.slot .on { display: none; }
.item:hover .slot .base, .m-head .slot .base, .rs:hover .base { display: none; }
.item:hover .slot .on, .m-head .slot .on, .rs:hover .on { display: block; }
.slot.lg .spr { --s: 44px; }
.noicon { font: 10px var(--pixel); color: var(--dim); }
.slot.xl { width: 84px; height: 84px; }
.slot.xl img, .slot.xl .spr { width: 64px; height: 64px; --s: 64px; image-rendering: pixelated; }

/* карточки-ссылки */
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item .new.fresh { color: var(--green); border-color: var(--green); }

/* фильтры */
.sel {
  padding: 12px 14px; font: 500 .95rem var(--body); color: var(--text);
  background: var(--panel); border: 2px solid var(--line-2); border-radius: 8px; outline: none; cursor: pointer;
}
.sel:focus { border-color: var(--violet); }
.tiers-f { align-items: center; margin-top: -12px; }
.f-label { color: var(--dim); font-size: .88rem; margin-right: 4px; }
.tierchip { font: 9px var(--pixel); color: var(--c); padding: 8px 10px; }
.tierchip.on { background: var(--c); border-color: var(--c); color: #0a0912; }

/* окно предмета */
.no-scroll { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 90; background: rgba(5,4,10,.82); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 16px;
}
.modal[hidden] { display: none; }
.modal-box {
  position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 28px;
  box-shadow: 0 0 60px rgba(139,92,246,.25);
}
.modal-x {
  position: sticky; top: 0; float: right; margin: -12px -12px 0 0; width: 40px; height: 40px; border: none;
  border-radius: 8px; background: var(--panel-2); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer;
}
.modal-x:hover { background: var(--violet); }
.m-head { display: flex; gap: 20px; align-items: center; margin-bottom: 16px; }
.m-head h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.m-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.m-desc { color: var(--text); opacity: .9; }
.m-stats { width: auto; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.m-stats td { padding: 8px 14px; font-size: .92rem; }
.m-stats td:first-child { color: var(--muted); }
.m-h { margin: 26px 0 12px; font-size: 1.1rem; }
.more { margin-top: 12px; }

/* рецепты */
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.recipe { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.r-label { font-size: .82rem; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.r-label a { color: var(--text); font-weight: 600; }
.r-body { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.r-col { display: flex; flex-wrap: wrap; gap: 4px; max-width: 132px; }
.r-arrow { color: var(--dim); width: 22px; flex: none; }
.r-info { margin-top: 10px; font-size: .8rem; color: var(--dim); }
.grid3 { display: grid; grid-template-columns: repeat(3, 40px); gap: 2px; }
.slot.rs { width: 40px; height: 40px; position: relative; text-decoration: none; }
.slot.rs img, .slot.rs .spr { width: 32px; height: 32px; --s: 32px; }
.slot.rs.lg { width: 52px; height: 52px; }
.slot.rs.empty { opacity: .55; }
.slot.rs.link:hover { box-shadow: inset 2px 2px 0 #1b1b1b, inset -2px -2px 0 #5a5a5a, 0 0 0 2px var(--violet); }
.slot.rs.ore::after { content: ""; position: absolute; left: 3px; top: 3px; width: 5px; height: 5px; background: var(--cyan); }
.slot.rs.machine { background: #2a2540; }
.slot .cnt, .slot .pct {
  position: absolute; right: 2px; bottom: 1px; font: 9px/1 var(--pixel); color: #fff;
  text-shadow: 1px 1px 0 #3f3f3f; pointer-events: none;
}
.slot .pct { top: 2px; bottom: auto; left: 2px; right: auto; color: var(--gold); font-size: 7px; }

/* подсказка в стиле Minecraft */
.mc-tip {
  position: fixed; left: 0; top: 0; z-index: 200; display: none; pointer-events: none; max-width: 300px;
  padding: 6px 9px; background: rgba(16,0,16,.94); border: 2px solid #28007f; outline: 1px solid rgba(16,0,16,.94);
  font-size: .85rem; line-height: 1.35; color: #aaa;
}
.mc-tip b { display: block; color: #fff; font-weight: 600; }
.mc-tip span { display: block; }

/* ===================== Первые шаги ===================== */
.g-para { color: var(--muted); max-width: 820px; }
.checklist { display: grid; gap: 10px; counter-reset: st; }
.check {
  display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; counter-increment: st;
}
.check input { width: 20px; height: 20px; accent-color: var(--violet); flex: none; cursor: pointer; }
.check .txt { flex: 1; }
.check .txt::before { content: counter(st) ". "; color: var(--violet); font-weight: 700; }
.check.done { opacity: .6; }
.check.done .txt { text-decoration: line-through; }
.progress { height: 8px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin: 6px 0 18px; }
.progress i { display: block; height: 100%; background: var(--grad); transition: width .3s; }
.tier-card {
  display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 18px; background: var(--panel);
  border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 10px; margin-bottom: 12px;
}
.tier-card .tn b { font: 14px var(--pixel); color: var(--c); display: block; margin-bottom: 6px; }
.tier-card .tn span { font-size: .8rem; color: var(--dim); }
.tier-card p { margin: 0 0 10px; color: var(--muted); }
.icon-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; }
.icon-row .lbl { font-size: .8rem; color: var(--dim); margin-right: 6px; min-width: 86px; }
.g-list { display: grid; gap: 10px; }
.g-row { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.g-row p { margin: 0; color: var(--muted); }
.g-row h4 { margin: 0 0 2px; }
@media (max-width: 600px) {
  .modal-box { padding: 18px; }
  .m-head { gap: 12px; }
  .slot.xl { width: 64px; height: 64px; }
  .slot.xl img, .slot.xl .spr { width: 48px; height: 48px; --s: 48px; }
  .tier-card { grid-template-columns: 1fr; gap: 8px; }
  .recipes { grid-template-columns: 1fr; }
  .sel { flex: 1; }
}

/* ===================== Адаптивность: узкие экраны и сенсорные устройства ===================== */
/* колонки сетки не раздуваются длинным содержимым (таблицы, длинные слова) */
.grid > *, .wiki-grid > *, .item > div, .g-row > div, .tier-card > div, .addon-banner > * { min-width: 0; }
.wiki-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
h1, h2, h3, h4, p, li, td { overflow-wrap: anywhere; }
img, svg, video { max-width: 100%; height: auto; }
.slot img, .slot svg { height: auto; }
/* на сенсорных экранах — цели нажатия не меньше 40 px */
@media (pointer: coarse) {
  .lang-switch button { min-height: 40px; min-width: 40px; }
  .tierchip, .chip-btn { min-height: 40px; }
  .site-footer .links a { display: inline-block; padding: 10px 4px; }
  .subnav a { padding: 10px 14px; }
  .check input { width: 24px; height: 24px; }
}
@media (max-width: 360px) {
  .brand small { display: none; }
  .brand { font-size: 1rem; }
  .hero h1 { font-size: 2.3rem; }
  .btn { padding: 11px 14px; }
  .stats { grid-template-columns: 1fr; }
  .chain .step { width: 64px; font-size: .7rem; }
  .grid3 { grid-template-columns: repeat(3, 36px); }
  .slot.rs { width: 36px; height: 36px; }
}
/* большие мониторы: чуть шире контент и крупнее текст */
@media (min-width: 1680px) {
  :root { --maxw: 1320px; }
  body { font-size: 17px; }
}
/* пользователи, отключившие анимацию в системе */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 440px) {
  .brand small { display: none; }
  .page-head { padding-top: 40px; }
}
