/* Gothic Mods — родственник gothic2.ru: та же тёмная палитра углей и золота, но раскладка каталога */
:root {
  --bg: #0c0a08;
  --bg2: #14110d;
  --card: #17130e;
  --card2: #1e1812;
  --line: rgba(217, 165, 74, .16);
  --line2: rgba(217, 165, 74, .36);
  --text: #e8dfcf;
  --muted: #9d8f78;
  --gold: #d9a54a;
  --gold2: #f0cf8a;
  --ember: #e2783c;
  --head: 'Cormorant SC', 'Cormorant Garamond', Georgia, serif;
  --disp: 'Cormorant Garamond', Georgia, serif;
  --body: 'Alegreya', Georgia, serif;
  --gold-grad: linear-gradient(180deg, #f3d595 0%, #d9a54a 55%, #a87428 100%);
  --r: 6px;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 40% at 50% -5%, rgba(226, 120, 60, .10), transparent 70%),
    radial-gradient(ellipse 50% 30% at 100% 30%, rgba(217, 165, 74, .05), transparent 70%),
    var(--bg);
  color: var(--text); font: 18px/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: var(--gold2); text-decoration-color: rgba(240, 207, 138, .4); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--disp); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; }
h1 em, h2 em { font-style: italic; color: var(--gold2); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
::selection { background: rgba(217, 165, 74, .35); }
svg { flex: none; }

.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 .9em;
  font: 600 .74rem var(--head); letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}
.eyebrow span { color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eyebrow::after { content: ''; flex: 0 1 120px; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { content: ''; flex: 0 1 120px; height: 1px; background: linear-gradient(270deg, var(--line2), transparent); }

.dust {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .45;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #e2783c 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #f0cf8a 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 62%, #c4473a 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 48%, #e2783c 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 82%, #f0cf8a 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60% 88%, #e2783c 50%, transparent 51%);
  background-size: 640px 640px;
}

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20; height: 64px;
  display: flex; align-items: center; gap: 18px; padding: 0 clamp(16px, 3vw, 36px);
  background: rgba(12, 10, 8, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold2); text-decoration: none; font: 600 1.4rem var(--disp); flex: none; }
.brand svg { width: 28px; height: 28px; color: var(--gold); }
.brand em { font-style: italic; color: var(--ember); }
#nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
#nav a {
  color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 4px;
  font: 600 .78rem var(--head); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transition: color .15s, background .15s;
}
#nav a:hover, #nav a.active { color: var(--gold2); }
#nav a.active { background: rgba(217, 165, 74, .08); }
#nav a.g2 { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: var(--ember); box-shadow: inset 0 0 0 1px rgba(226, 120, 60, .4); }
#nav a.g2:hover { background: rgba(226, 120, 60, .1); color: #f39a63; }
#nav a.g2 svg { width: 13px; height: 13px; }
.top-tools { display: flex; align-items: center; gap: 6px; }
.search-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer;
  background: rgba(255, 255, 255, .03); color: var(--muted); border: 1px solid var(--line); border-radius: 4px;
  font: 600 .74rem var(--head); letter-spacing: .14em; text-transform: uppercase;
}
.search-btn:hover { color: var(--gold2); border-color: var(--line2); }
.search-btn svg { width: 16px; height: 16px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--gold2); transition: .2s; }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 3vw, 36px) 40px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px;
  border: 0; border-radius: 4px; cursor: pointer; text-decoration: none;
  background: var(--gold-grad); color: #1c1206; font: 700 .8rem var(--head); letter-spacing: .18em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 22px rgba(217, 165, 74, .16); transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: #1c1206; }
.btn svg { width: 14px; height: 14px; }
.btn.ghost { background: rgba(12, 10, 8, .5); color: var(--gold2); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold2); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6em; }
.link-arrow { font: 600 .78rem var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--gold2); text-decoration: none; border-bottom: 1px solid var(--line2); padding-bottom: 3px; white-space: nowrap; }
.link-arrow:hover { border-color: var(--gold); }

/* ---------- главная ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(40px, 8vw, 100px) 0 30px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); line-height: .95; color: var(--gold2); margin-bottom: .3em; text-shadow: 0 0 40px rgba(226, 120, 60, .3); }
.hero h1 em { color: var(--ember); }
.hero .sub { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 580px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 2.2em 0 0; border-block: 1px solid var(--line); max-width: 600px; }
.facts div { padding: 16px 8px; text-align: center; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font: 500 2.1rem/1 var(--disp); color: var(--gold2); }
.facts dd { margin: 6px 0 0; font: 600 .68rem var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero-art { position: relative; }
.hero-art::before { content: ''; position: absolute; inset: -60px; z-index: -1; background: radial-gradient(circle, rgba(226, 120, 60, .22), transparent 62%); }
.stack { position: relative; aspect-ratio: 4 / 3.4; }
.stack img {
  position: absolute; width: 74%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r);
  border: 1px solid var(--line2); box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
}
.stack img:nth-child(1) { right: 0; top: 0; transform: rotate(3deg); }
.stack img:nth-child(2) { left: 0; top: 22%; transform: rotate(-4deg); }
.stack img:nth-child(3) { right: 8%; bottom: 0; transform: rotate(1.5deg); }

.block { padding: clamp(48px, 7vw, 90px) 0 0; }
.block-head { margin-bottom: 1.6em; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.row-head h2 { margin: 0; }
.intro { color: var(--muted); max-width: 720px; font-size: 1.05rem; }

.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.game {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 190px; padding: 24px; overflow: hidden;
  text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(160deg, var(--card2), var(--bg2)); transition: border-color .2s, transform .2s;
}
.game:hover { border-color: var(--line2); transform: translateY(-3px); }
.game .roman { position: absolute; right: 14px; top: -6px; font: 600 5.6rem/1 var(--disp); color: rgba(217, 165, 74, .09); }
.game b { font: 500 1.6rem/1.1 var(--disp); color: var(--gold2); margin-top: auto; }
.game i { color: var(--muted); font-size: .9rem; }
.game .n { margin-top: 10px; font: 600 .72rem var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--ember); }

.g2promo {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  margin-top: clamp(48px, 7vw, 90px); padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(226, 120, 60, .3); border-radius: var(--r);
  background: radial-gradient(circle at 0% 0%, rgba(226, 120, 60, .14), transparent 55%), linear-gradient(160deg, var(--card2), var(--bg2));
}
.g2promo h2 em { color: var(--ember); }
.g2list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.g2list a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; background: rgba(12, 10, 8, .4); transition: border-color .2s; }
.g2list a:hover { border-color: rgba(226, 120, 60, .5); }
.g2list b { display: block; font: 500 1.25rem var(--disp); color: var(--gold2); }
.g2list span { color: var(--muted); font-size: .9rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }

/* ---------- заголовок страницы ---------- */
.phead { padding: clamp(24px, 4vw, 44px) 0 clamp(18px, 3vw, 28px); }
.phead h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); color: var(--text); max-width: 980px; overflow-wrap: anywhere; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 1.4em; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold2); }
.crumbs i { font-style: normal; opacity: .4; }
.crumbs span { color: var(--text); opacity: .7; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .9rem; }
.meta span + span::before { content: '·'; margin-right: 18px; opacity: .5; }

.tabs, .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tabs a, .chips a {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted);
  font-size: .92rem; background: rgba(255, 255, 255, .02); transition: .15s;
}
.tabs a:hover, .chips a:hover { color: var(--gold2); border-color: var(--line2); }
.tabs a.on { color: #1c1206; background: var(--gold-grad); border-color: transparent; font-weight: 700; }
.chips small { color: var(--gold); margin-left: 4px; }

/* ---------- карточки модов ---------- */
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mcard {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.mcard:hover { border-color: var(--line2); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0f0c09; border-bottom: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.mcard:hover .thumb img { transform: scale(1.04); }
.thumb.noimg { display: grid; place-items: center; color: rgba(217, 165, 74, .25); background: radial-gradient(circle, var(--card2), #0f0c09); }
.thumb.noimg svg { width: 56px; height: 56px; }
.mbody { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.mbody i { font: 600 .66rem var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-style: normal; }
.mbody b { font: 500 1.35rem/1.15 var(--disp); color: var(--gold2); }
.mbody .lead { color: var(--muted); font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mbody .sub { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: .8rem; opacity: .8; }

.rows { display: grid; gap: 12px; }
.row {
  display: grid; grid-template-columns: 1fr; gap: 18px; padding: 18px 20px; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: border-color .2s;
}
.row.has-img { grid-template-columns: 150px 1fr; }
.row:hover { border-color: var(--line2); }
.rthumb { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #0f0c09; }
.rthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row small { display: block; color: var(--gold); font: 600 .68rem var(--head); letter-spacing: .16em; text-transform: uppercase; }
.row b { display: block; font: 500 1.4rem/1.2 var(--disp); color: var(--gold2); margin: 4px 0; }
.row .lead { color: var(--muted); font-size: .92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 34px 0 10px; }
.pager a, .pager b, .pager .dots { min-width: 42px; padding: 9px 14px; text-align: center; border-radius: 4px; text-decoration: none; font-size: .95rem; }
.pager a { border: 1px solid var(--line); color: var(--text); }
.pager a:hover { border-color: var(--line2); color: var(--gold2); }
.pager b { background: var(--gold-grad); color: #1c1206; }
.pager .dots { color: var(--muted); }

/* ---------- страница мода / статьи ---------- */
.entry-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 52px); align-items: start; }
.side { position: sticky; top: 84px; display: grid; gap: 16px; }
.cover { display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line2); }
.cover img { display: block; width: 100%; }
.info { margin: 0; padding: 6px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); display: grid; grid-template-columns: auto 1fr; }
.info dt, .info dd { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.info dt { color: var(--muted); padding-right: 14px; }
.info dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.info dt:last-of-type, .info dd:last-of-type { border-bottom: 0; }
.dlbox { padding: 18px; border: 1px solid var(--line2); border-radius: var(--r); background: linear-gradient(160deg, rgba(217, 165, 74, .08), var(--card)); }
.dlbox h3 { font-size: 1.5rem; color: var(--gold2); margin-bottom: .6em; }
.dl {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding: 12px 16px;
  border-radius: 4px; background: var(--gold-grad); color: #1c1206; text-decoration: none; font-weight: 700; transition: filter .15s;
}
.dl:hover { filter: brightness(1.08); color: #1c1206; }
.dl b { font-size: .95rem; }
.dl small { opacity: .75; white-space: nowrap; }
.dl ~ .dl { background: rgba(217, 165, 74, .1); color: var(--gold2); box-shadow: inset 0 0 0 1px var(--line2); }
.dlbox p { margin: 10px 0 0; }
.g2card {
  display: block; padding: 16px 18px; border: 1px solid rgba(226, 120, 60, .35); border-radius: var(--r); text-decoration: none;
  background: radial-gradient(circle at 100% 0%, rgba(226, 120, 60, .14), transparent 60%), var(--card); transition: border-color .2s;
}
.g2card:hover { border-color: var(--ember); }
.g2card i { display: block; font: 600 .66rem var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--ember); font-style: normal; }
.g2card b { display: block; font: 500 1.22rem/1.2 var(--disp); color: var(--gold2); margin: 4px 0; }
.g2card span { color: var(--muted); font-size: .88rem; }

.prose { max-width: 780px; overflow-wrap: anywhere; }
.prose.wide { max-width: 900px; }
.prose p { margin: 0 0 1em; }
.prose img { height: auto; border-radius: 4px; vertical-align: middle; }
.prose a > img, .prose p > img:only-child { display: block; margin: 14px 0; border: 1px solid var(--line); }
.prose img.smile { display: inline; border: 0; margin: 0 2px; }
.prose h2 { font-size: 1.9rem; margin-top: 1.4em; color: var(--gold2); }
.prose h3, .prose h4 { font-size: 1.4rem; margin: 1.3em 0 .5em; color: var(--gold2); font-family: var(--disp); font-weight: 500; }
.prose strong { color: #f3e7cf; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 20px; border-left: 2px solid var(--gold); background: rgba(217, 165, 74, .05); color: var(--text); }
.prose iframe { display: block; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; height: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--r); background: #000; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1em 0; }
.prose td, .prose th { padding: 6px 10px; border: 1px solid var(--line); vertical-align: top; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 1.6em 0; }
.prose pre { overflow-x: auto; padding: 14px; background: #0f0c09; border: 1px solid var(--line); border-radius: 4px; font-size: .85rem; }
.prose .fastLink, .prose div { margin: 0; }

.comments { margin-top: clamp(40px, 6vw, 64px); max-width: 860px; }
.comments h2 small { font-size: .55em; color: var(--muted); font-family: var(--body); margin-left: 6px; }
.c { padding: 16px 20px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.c header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.c header b { color: var(--gold2); }
.c header time { color: var(--muted); font-size: .82rem; }
.c-text { font-size: .96rem; overflow-wrap: anywhere; }
.c-text img { max-height: 24px; vertical-align: middle; }
.c-answer { margin-top: 10px; padding: 8px 14px; border-left: 2px solid var(--ember); background: rgba(226, 120, 60, .06); font-size: .92rem; }
.related { margin-top: clamp(40px, 6vw, 64px); }

/* ---------- галерея ---------- */
.phgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.phgrid.sm { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ph { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: #0f0c09; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ph:hover img { transform: scale(1.05); }
.ph span {
  position: absolute; inset: auto 0 0; padding: 26px 12px 9px; color: var(--text); font-size: .86rem; line-height: 1.3;
  background: linear-gradient(transparent, rgba(8, 6, 4, .9)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.photo { margin: 0; display: grid; gap: 14px; justify-items: start; }
.photo > a { display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line2); max-width: 100%; }
.photo img { display: block; max-height: 78vh; width: auto; max-width: 100%; }
.photo figcaption { display: grid; gap: 8px; color: var(--muted); }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: clamp(60px, 12vw, 140px) 0; }
.nf h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.nf .intro { margin: 0 auto; }
.nf .cta { justify-content: center; }

/* ---------- подвал ---------- */
.foot { margin-top: clamp(64px, 9vw, 110px); border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg2), #080706); }
.foot-g2 {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(32px, 5vw, 56px) clamp(16px, 3vw, 36px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; border-bottom: 1px solid var(--line);
}
.foot-g2 h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.foot-g2 h2 a { color: var(--ember); text-decoration: none; }
.foot-g2-links { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-g2-links a { padding: 8px 14px; border: 1px solid rgba(226, 120, 60, .35); border-radius: 999px; text-decoration: none; color: var(--text); font-size: .92rem; }
.foot-g2-links a:hover { border-color: var(--ember); color: var(--gold2); }
.foot-cols { max-width: var(--wrap); margin: 0 auto; padding: 36px clamp(16px, 3vw, 36px) 10px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-cols h4 { margin: 0 0 10px; font: 600 .74rem var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.foot-cols a:not(.brand) { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; font-size: .95rem; }
.foot-cols a:not(.brand):hover { color: var(--gold2); }
.foot-copy { max-width: var(--wrap); margin: 0 auto; padding: 18px clamp(16px, 3vw, 36px) 28px; color: var(--muted); font-size: .85rem; }
.foot-copy a { color: var(--muted); }

/* ---------- поиск и просмотр картинок ---------- */
.search { position: fixed; inset: 0; z-index: 50; display: grid; justify-items: center; align-items: start; padding: 10vh 16px 16px; background: rgba(6, 5, 4, .82); backdrop-filter: blur(6px); }
.search[hidden] { display: none; }
.search-box { position: relative; width: min(680px, 100%); }
.search input {
  width: 100%; padding: 16px 52px 16px 20px; font: 1.15rem var(--body); color: var(--text);
  background: var(--card2); border: 1px solid var(--line2); border-radius: var(--r); outline: none;
}
.search input:focus { border-color: var(--gold); }
.search-close { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; background: none; border: 0; color: var(--muted); font-size: 1.8rem; cursor: pointer; }
.search-res { margin-top: 10px; max-height: 64vh; overflow-y: auto; border-radius: var(--r); }
.search-res a { display: flex; justify-content: space-between; gap: 14px; padding: 12px 18px; text-decoration: none; color: var(--text); background: var(--card); border-bottom: 1px solid var(--line); }
.search-res a:hover, .search-res a.sel { background: var(--card2); color: var(--gold2); }
.search-res small { color: var(--gold); font: 600 .66rem var(--head); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.search-res p { padding: 14px 18px; margin: 0; color: var(--muted); background: var(--card); }
.lb { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(6, 5, 4, .92); cursor: zoom-out; }
.lb img { max-width: 100%; max-height: 92vh; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  #nav a { padding: 8px 7px; letter-spacing: .1em; }
  .search-btn span { display: none; }
}
@media (max-width: 1040px) {
  .burger { display: block; }
  .top-tools { margin-left: auto; }
  #nav {
    position: fixed; top: 64px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 10px 16px 18px; background: rgba(12, 10, 8, .98); border-bottom: 1px solid var(--line);
  }
  #nav.open { display: flex; }
  #nav a { padding: 13px 6px; font-size: .86rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  #nav a.g2 { margin: 12px 0 0; justify-content: center; border-radius: 4px; }
  .mgrid { grid-template-columns: repeat(3, 1fr); }
  .games { grid-template-columns: repeat(2, 1fr); }
  .entry-grid { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); order: -1; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero, .g2promo, .two-col, .foot-g2 { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .mgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .mgrid { grid-template-columns: 1fr; gap: 14px; }
  .games { grid-template-columns: 1fr; }
  .game { min-height: 140px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .row.has-img { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; }
  .row b { font-size: 1.2rem; }
  .row-head { flex-direction: column; align-items: flex-start; }
  .phgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .foot-cols { grid-template-columns: 1fr; }
  .brand { font-size: 1.25rem; }
  .crumbs span { max-width: 26ch; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 900px; }
.qa { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.qa[open] { border-color: var(--line2); }
.qa summary { cursor: pointer; padding: 16px 48px 16px 20px; font: 500 1.3rem/1.25 var(--disp); color: var(--gold2); list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 20px; top: 12px; font: 400 1.6rem var(--body); color: var(--gold); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa .prose { padding: 0 20px 16px; }

/* генерируемая обложка мода (на uCoz у модов почти не было скриншотов) */
.thumb.gen {
  position: relative; display: grid; place-items: center; color: var(--gold2);
  background:
    radial-gradient(circle at var(--x) var(--y), hsla(calc(18 + var(--h) / 12), 75%, 50%, .32), transparent 55%),
    radial-gradient(circle at calc(100% - var(--x)) 100%, hsla(calc(36 + var(--h) / 18), 60%, 45%, .16), transparent 60%),
    repeating-linear-gradient(135deg, rgba(217, 165, 74, .03) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #1f1810, #0e0b08);
}
.thumb.gen::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(217, 165, 74, .18); border-radius: 3px; }
.thumb.gen b { font: 500 clamp(3.4rem, 7vw, 4.6rem)/1 var(--disp); font-style: italic; color: transparent; -webkit-text-stroke: 1px rgba(240, 207, 138, .75); text-shadow: 0 0 30px rgba(226, 120, 60, .35); }
.thumb.gen i { position: absolute; right: 18px; bottom: 12px; font: 600 .78rem var(--head); letter-spacing: .2em; font-style: normal; color: rgba(217, 165, 74, .55); }
.mcard:hover .thumb.gen b { -webkit-text-stroke-color: var(--gold2); }
