/*
 * Eskhata x1200 — стиль сайта l2eskhata.com.
 * Цвета: фон #14100c, золото #d4af37 / #e8c872, текст #f0e6d2. Шрифты: Cormorant SC (заголовки), Montserrat (текст) — OFL, лежат локально.
 * Раскладка и идея оформления — по мотивам L2JNEXORA_WEB (L2HwidWeb, GPL-3.0), переписано для Eskhata.
 */

/* ------------------------------------------------------------------ шрифты */
@font-face { font-family: 'Cormorant SC'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/cormorantsc-600-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant SC'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/cormorantsc-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant SC'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/cormorantsc-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant SC'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/cormorantsc-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/montserrat-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------------ основа */
:root {
  --bg: #14100c;
  --bg-2: #1b150f;
  --panel: rgba(31, 24, 17, .9);
  --panel-2: #241c14;
  --panel-3: rgba(255, 240, 210, .04);
  --line: rgba(212, 175, 55, .18);
  --line-strong: rgba(212, 175, 55, .42);
  --gold: #d4af37;
  --gold-2: #e8c872;
  --gold-3: #f6e3a6;
  --text: #f0e6d2;
  --muted: #b9ab93;
  --soft: #8c7f69;
  --ok: #7fd18b;
  --err: #f08070;
  --warn: #f2c464;
  --info: #9cc3ee;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --font-head: 'Cormorant SC', 'Georgia', serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(212, 175, 55, .10), transparent 55%),
    radial-gradient(ellipse at 100% 40%, rgba(120, 70, 20, .10), transparent 50%),
    var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold-3); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: .02em; color: var(--gold-2); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
code, kbd { font-family: ui-monospace, 'DejaVu Sans Mono', Consolas, monospace; font-size: .92em; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--gold-3); }
::selection { background: rgba(212, 175, 55, .35); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(212,175,55,.45) rgba(255,255,255,.04); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: 34px 0; }
.section-sm { padding: 18px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #1a130a; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 12px; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.gold { color: var(--gold-2); }
.ok-text { color: var(--ok); }
.err-text { color: var(--err); }
.warn-text { color: var(--warn); }
.mt { margin-top: 16px; } .mt-lg { margin-top: 28px; } .mb { margin-bottom: 16px; } .mb0 { margin-bottom: 0; }
.hidden, [hidden] { display: none !important; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions.center { justify-content: center; }
.inline-form { display: inline; margin: 0; }
.stack > * + * { margin-top: 12px; }

/* ------------------------------------------------------------------ кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: rgba(212, 175, 55, .08);
  color: var(--gold-2); font: 600 14px/1.2 var(--font-body); letter-spacing: .02em;
  cursor: pointer; text-decoration: none; transition: filter .15s, background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: rgba(212, 175, 55, .16); border-color: var(--gold); color: var(--gold-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.btn-gold { background: linear-gradient(180deg, #f0d27e, #c89b2c); border-color: #f0d27e; color: #1b1308; text-shadow: 0 1px 0 rgba(255,255,255,.25); }
.btn-gold:hover { filter: brightness(1.08); color: #120c04; background: linear-gradient(180deg, #f6dc92, #d2a636); }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.btn-lg { min-height: 50px; padding: 12px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { border-color: rgba(240, 128, 112, .55); color: #ffb4a8; background: rgba(240, 128, 112, .08); }
.btn-danger:hover { border-color: var(--err); color: #ffd0c8; background: rgba(240, 128, 112, .16); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

/* ------------------------------------------------------------------ шапка */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(16, 12, 9, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { position: relative; display: flex; align-items: center; min-height: 84px; max-width: none; padding: 0 20px; }
.site-brand { position: absolute; left: 18px; top: 50%; z-index: 2; display: flex; align-items: center; width: 270px; height: 82px; transform: translateY(-50%); }
.site-brand img { display: block; width: 100%; height: auto; max-height: 80px; object-fit: contain; }
.site-brand:hover { text-decoration: none; }
/* Один ряд: меню ровно по центру экрана, вход и язык — справа. Не влезает (узкое окно, крупный шрифт, длинные
   английские слова) — app.js ставит .is-collapsed и меню уходит под кнопку, как на телефоне. */
.mainnav { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 16px; }
.mainnav-links { grid-column: 2; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.mainnav-links > a { color: var(--muted); padding: 8px 11px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.mainnav-links > a:hover { color: var(--gold-3); background: rgba(212,175,55,.08); text-decoration: none; }
.mainnav-links > a.is-active { color: var(--gold-2); background: rgba(212,175,55,.12); }
.mainnav-account { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.balance-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(0,0,0,.3); color: var(--gold-3); font-weight: 600; font-size: 13px; white-space: nowrap; }
.balance-chip:hover { text-decoration: none; border-color: var(--gold); }
/* язык: глобус, по нажатию — флаги */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; display: grid; place-items: center; width: 40px; height: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--gold-2); cursor: pointer; transition: border-color .15s, background .15s; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover, .lang-menu[open] > summary { border-color: var(--line-strong); background: rgba(212,175,55,.1); color: var(--gold-3); }
.lang-menu > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 176px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(20,16,12,.98); box-shadow: var(--shadow); }
.lang-pop a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; color: var(--text); font-size: 14px; font-weight: 500; }
.lang-pop a img { width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.45); }
.lang-pop a:hover { background: rgba(212,175,55,.1); color: var(--gold-3); text-decoration: none; }
.lang-pop a.is-active { background: rgba(212,175,55,.14); color: var(--gold-2); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--gold-2); position: relative; content: ''; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }
/* меню под кнопкой (шапка не влезла в один ряд) — то же, что на телефоне (≤ 980, ниже) */
.topbar.is-collapsed .nav-toggle { display: block; }
.topbar.is-collapsed .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 16px; background: rgba(16,12,9,.98); border-bottom: 1px solid var(--line); }
.topbar.is-collapsed .mainnav.is-open { display: flex; }
.topbar.is-collapsed .mainnav-links { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
.topbar.is-collapsed .mainnav-links > a { padding: 11px 8px; font-size: 15px; border-bottom: 1px solid rgba(212,175,55,.08); }
.topbar.is-collapsed .mainnav-account { margin: 12px 0 0; flex-wrap: wrap; }
.topbar.is-collapsed .lang-pop { left: 0; right: auto; }

/* На средних экранах логотип снова участвует в строке, а навигация открывается кнопкой. */
@media (max-width: 1280px) {
  .topbar-inner { min-height: 70px; }
  .site-brand { position: static; width: 200px; height: 68px; transform: none; }
  .nav-toggle { display: block; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 16px; background: rgba(16,12,9,.98); border-bottom: 1px solid var(--line); }
  .mainnav.is-open { display: flex; }
  .mainnav-links { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
  .mainnav-links > a { padding: 11px 8px; font-size: 15px; border-bottom: 1px solid rgba(212,175,55,.08); }
  .mainnav-account { margin: 12px 0 0; flex-wrap: wrap; }
  .lang-pop { left: 0; right: auto; }
}

/* 08.11.2026 Серега: owner «убрать в шапке меню справочник, поддержка и правила так как они уже есть в подвале и занимают
   место на верху», на телефоне — «оставить». Пункты .nav-in-footer (includes/layout.php) не показываются, пока меню стоит в один
   ряд; в меню под кнопкой ☰ (≤ 1280 px или .is-collapsed) они на месте. В подвале эти ссылки есть всегда. */
@media (min-width: 1281px) {
  .topbar:not(.is-collapsed) .mainnav-links > a.nav-in-footer { display: none; }
}

.flash-wrap { padding-top: 14px; }

/* ------------------------------------------------------------------ баннеры */
.hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; background: #0d0a07 center 30% / cover no-repeat; overflow: hidden; }
/* главная: баннер целиком (логотип ESKHATA уже на картинке), текст и кнопки — под ним */
.hero-banner { background-image: url('../img/banner-1920.webp'); background-size: 100% auto; background-position: center top; background-color: var(--bg); min-height: 0; }
/* низ баннера плавно уходит в фон и полностью закрыт ЗА 14 px до края картинки (иначе виден край; 100vw с полосой прокрутки чуть больше ширины) */
.hero-banner .hero-shade { background: linear-gradient(180deg, rgba(20,16,12,0) 0, rgba(20,16,12,0) calc(min(100vw, 2400px) / 3 - 210px), rgba(20,16,12,.55) calc(min(100vw, 2400px) / 3 - 90px), var(--bg) calc(min(100vw, 2400px) / 3 - 14px)); }
.hero-banner .hero-content { padding-top: calc(min(100vw, 2400px) / 3 - 30px); padding-bottom: 26px; }
.hero-banner .hero-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-splash { background-image: url('../img/splash-1600.webp'); }
.hero-login { background-image: url('../img/login-1600.webp'); background-position: center 40%; }
.hero-small { min-height: 300px; }
/* внутренние страницы: пейзаж без надписи ESKHATA (на баннере и заставке логотип посередине — в узкой полосе резался пополам) */
.hero-small, .hero-small.hero-splash, .hero-small.hero-login { background-image: url('../img/inner-1200.webp'); background-position: center 60%; }
.hero-small .hero-shade { background: linear-gradient(180deg, rgba(20,16,12,.62) 0%, rgba(20,16,12,.74) 60%, var(--bg) 100%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.15) 0%, rgba(20,16,12,.55) 55%, var(--bg) 100%); }
.hero-content { position: relative; padding-top: 60px; padding-bottom: 34px; text-align: center; }
.hero-kicker { display: inline-block; margin-bottom: 8px; padding: 4px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(0,0,0,.45); color: var(--gold-2); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero-title { margin: 6px 0 8px; font-size: clamp(38px, 6vw, 68px); color: var(--gold-2);
  background: linear-gradient(180deg, #fff3c9, #e8c872 45%, #b88d26); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 18px rgba(0,0,0,.35); filter: drop-shadow(0 3px 12px rgba(0,0,0,.6)); }
.hero-text { max-width: 720px; margin: 0 auto 18px; color: var(--text); font-size: 16px; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------ заголовки разделов */
.section-head { text-align: center; margin-bottom: 22px; }
.section-head h2 { display: inline-flex; align-items: center; gap: 14px; margin: 0; font-size: 30px; }
.section-head h2::before, .section-head h2::after { content: ''; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.section-head h2::after { background: linear-gradient(90deg, var(--gold), transparent); }
.section-head p { margin: 8px auto 0; max-width: 680px; color: var(--muted); }

/* ------------------------------------------------------------------ карточки и сетки */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.card { position: relative; background: linear-gradient(180deg, rgba(40,31,21,.92), rgba(26,20,14,.94)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,236,190,.06); }
.card.center { text-align: center; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 14px; }
.card-title img { width: 36px; height: 36px; flex: 0 0 auto; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head .card-title { margin: 0; }
.card-foot { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.card-sub { color: var(--muted); font-size: 14px; margin-top: -6px; margin-bottom: 14px; }
.card-plain { box-shadow: none; }
.card-accent { border-color: var(--line-strong); }

/* плитки рейтов/цифр */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0,0,0,.28); }
.tile img { width: 42px; height: 42px; flex: 0 0 auto; }
.tile-label { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tile-value { display: block; color: var(--gold-2); font: 700 24px/1.1 var(--font-head); }
.tile.is-hot { border-color: var(--line-strong); background: rgba(212,175,55,.08); }

/* списки фактов */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(212,175,55,.12); }
.facts li:last-child { border-bottom: 0; }
.facts li span:first-child { color: var(--muted); }
.facts li b, .facts li strong { color: var(--text); font-weight: 600; text-align: right; }
.bullets { margin: 0; padding-left: 20px; }
.bullets li { margin: 6px 0; }
.bullets li::marker { color: var(--gold); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 12px 14px 12px 56px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0,0,0,.22); }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #f0d27e, #c89b2c); color: #1b1308; font-weight: 700; }

/* ------------------------------------------------------------------ сообщения */
.msg { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; margin: 0 0 12px; }
.msg-ok { border-color: rgba(127,209,139,.45); background: rgba(127,209,139,.08); color: #c9f3cf; }
.msg-error { border-color: rgba(240,128,112,.5); background: rgba(240,128,112,.08); color: #ffd0c8; }
.msg-info { border-color: rgba(156,195,238,.4); background: rgba(156,195,238,.07); color: #d6e6f8; }
.msg-warn { border-color: rgba(242,196,100,.45); background: rgba(242,196,100,.07); color: #f8e3b5; }

/* статусы */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .03em; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok { color: var(--ok); border-color: rgba(127,209,139,.35); background: rgba(127,209,139,.08); }
.pill-bad { color: var(--err); border-color: rgba(240,128,112,.35); background: rgba(240,128,112,.08); }
.pill-warn { color: var(--warn); border-color: rgba(242,196,100,.35); background: rgba(242,196,100,.08); }
.pill-info { color: var(--info); border-color: rgba(156,195,238,.35); background: rgba(156,195,238,.07); }
.pill-plain::before { display: none; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--gold-2); background: rgba(212,175,55,.08); }

/* ------------------------------------------------------------------ формы */
.form { display: grid; gap: 14px; }
.form label, .field-label { display: block; font-weight: 600; font-size: 13px; color: var(--gold-3); margin-bottom: 6px; letter-spacing: .02em; }
input[type=text], input[type=password], input[type=number], input[type=email], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid rgba(212,175,55,.25); background: rgba(8,6,4,.6); color: var(--text); font: 15px/1.4 var(--font-body);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); background: rgba(8,6,4,.8); outline: none; }
select option { background: #1b150f; color: var(--text); }
input[type=range] { width: 100%; accent-color: var(--gold); }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); width: 17px; height: 17px; vertical-align: -3px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); font-weight: 400; }
.hint { display: block; color: var(--soft); font-size: 12px; margin-top: 5px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.captcha-img { border-radius: 8px; border: 1px solid var(--line-strong); cursor: pointer; background: #14100c; }
.captcha-input { max-width: 150px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.input-group { display: flex; gap: 8px; }
.input-group > input { flex: 1; }
.pw-wrap { position: relative; }

/* ------------------------------------------------------------------ таблицы */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(212,175,55,.1); vertical-align: middle; }
.table th { color: var(--gold-3); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: rgba(0,0,0,.35); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(212,175,55,.04); }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table .empty { text-align: center; color: var(--soft); padding: 22px; }

/* ------------------------------------------------------------------ новости */
.news-list { display: grid; gap: 14px; }
.news-item { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0,0,0,.22); color: var(--text); transition: border-color .15s, transform .15s; }
.news-item:hover { border-color: var(--line-strong); transform: translateY(-1px); text-decoration: none; color: var(--text); }
.news-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--soft); margin-bottom: 6px; }
.news-title { font: 700 21px/1.25 var(--font-head); color: var(--gold-2); margin: 0 0 6px; }
.news-summary { color: var(--muted); margin: 0; }
.news-pin { color: var(--gold-2); }
.article { font-size: 16px; line-height: 1.75; }
.article p { margin: 0 0 1em; }
.compact-news { display: grid; gap: 10px; }
.compact-news a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(0,0,0,.22); border: 1px solid transparent; color: var(--text); }
.compact-news a:hover { border-color: var(--line); text-decoration: none; }
.compact-news .date { color: var(--soft); font-size: 12px; white-space: nowrap; }

/* ------------------------------------------------------------------ рейтинг */
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius-sm); background: rgba(0,0,0,.24); border: 1px solid rgba(212,175,55,.06); }
.rank-pos { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: rgba(255,255,255,.06); color: var(--muted); }
.rank-pos.p1 { background: linear-gradient(180deg, #ffe38a, #c89b2c); color: #1b1308; }
.rank-pos.p2 { background: linear-gradient(180deg, #eef1f5, #9aa3ad); color: #16181b; }
.rank-pos.p3 { background: linear-gradient(180deg, #f1b27a, #a2602c); color: #1b0f06; }
.rank-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rank-name small { display: block; color: var(--soft); font-weight: 400; font-size: 12px; }
.rank-val { color: var(--gold-2); font-weight: 700; white-space: nowrap; }
.rank-empty { padding: 16px; text-align: center; color: var(--soft); background: rgba(0,0,0,.2); border-radius: var(--radius-sm); }

/* ------------------------------------------------------------------ боссы */
.boss-tools { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.boss-tools input { max-width: 320px; }
.boss-list { display: grid; gap: 8px; }
.boss-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(0,0,0,.24); border: 1px solid rgba(212,175,55,.07); }
.boss-lvl { font: 700 18px/1 var(--font-head); color: var(--gold-2); text-align: center; }
.boss-lvl small { display: block; font: 600 10px/1.3 var(--font-body); color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.boss-name { font-weight: 600; }
.boss-when { display: block; color: var(--soft); font-size: 12px; }

/* ------------------------------------------------------------------ осады */
.castle { display: grid; gap: 10px; }
.castle-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.castle-name { font: 700 24px/1 var(--font-head); color: var(--gold-2); margin: 0; }
.clan-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.clan-tag { padding: 3px 9px; border-radius: 6px; font-size: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.clan-tag.att { border-color: rgba(240,128,112,.35); color: #ffc3b9; }
.clan-tag.def { border-color: rgba(127,209,139,.35); color: #c9f3cf; }
.clan-tag.wait { border-color: rgba(242,196,100,.35); color: #f8e3b5; }

/* ------------------------------------------------------------------ кабинет */
.panel-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: start; }
.panel-side { position: sticky; top: 84px; display: grid; gap: 16px; }
.profile { text-align: center; }
.profile-emblem { width: 88px; height: 88px; border-radius: 50%; border: 2px solid var(--line-strong); object-fit: cover; }
.profile-login { font: 700 24px/1.1 var(--font-head); color: var(--gold-2); margin: 8px 0 2px; word-break: break-all; }
/* аватар в кабинете: нажать — 20 готовых портретов, эмблема или своё фото (includes/panel/avatar.php) */
.avatar-pick > summary { list-style: none; cursor: pointer; display: grid; justify-items: center; gap: 6px; }
.avatar-pick > summary::-webkit-details-marker { display: none; }
.avatar-pick > summary:focus-visible { outline: none; }
.avatar-pick > summary:focus-visible .profile-emblem { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.avatar-frame { position: relative; display: inline-block; line-height: 0; }
.avatar-pick .profile-emblem { transition: border-color .15s, box-shadow .15s; }
.avatar-pick > summary:hover .profile-emblem, .avatar-pick[open] .profile-emblem { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, .16); }
.avatar-badge { position: absolute; right: -2px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #f0d27e, #c89b2c); color: #1b1308; border: 2px solid #1f1810; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.avatar-change { font-size: 12px; color: var(--gold-2); opacity: .8; transition: opacity .15s; }
.avatar-pick > summary:hover .avatar-change, .avatar-pick[open] .avatar-change { opacity: 1; }
.avatar-panel { margin: 12px 0 4px; padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 0, 0, .24); text-align: left; display: grid; gap: 16px; }
.avatar-head { font-size: 13px; font-weight: 600; color: var(--gold-3); margin-bottom: 8px; }
.avatar-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.avatar-opt { padding: 0; aspect-ratio: 1; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; line-height: 0; transition: border-color .15s, transform .15s; }
.avatar-opt img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-opt:hover { border-color: var(--line-strong); transform: scale(1.07); }
.avatar-opt.is-current { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .22); }
.avatar-emblem { margin-top: 10px; gap: 8px; }
.avatar-emblem img { width: 24px; height: 24px; border-radius: 50%; }
.avatar-emblem.is-current { border-color: var(--gold); color: var(--gold-3); }
.avatar-upload-row { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-file { position: relative; overflow: hidden; cursor: pointer; }
.avatar-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.avatar-upload.is-auto .avatar-send { display: none; }
.avatar-upload.is-busy { opacity: .55; pointer-events: none; }
.avatar-hint { margin: 8px 0 0; }
.wallet { display: grid; gap: 8px; margin: 14px 0 6px; text-align: left; }
.wallet-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: rgba(0,0,0,.28); }
.wallet-row span { color: var(--muted); font-size: 13px; }
.wallet-row b { color: var(--gold-2); white-space: nowrap; }
.wallet-total b { font-size: 18px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { padding: 8px 10px; border-radius: 6px; color: var(--muted); font-size: 14px; }
.side-nav a:hover { color: var(--gold-3); background: rgba(212,175,55,.08); text-decoration: none; }
.panel-main { display: grid; gap: 22px; min-width: 0; }
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.char { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.char img { width: 60px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-strong); }
.char-name { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.char-sub { color: var(--muted); font-size: 13px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #6b6050; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* ------------------------------------------------------------------ калькулятор, магазин, донат */
.calc { display: grid; gap: 16px; }
.goods-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.goods-tab { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); cursor: pointer; font: 600 12px/1.25 var(--font-body); text-align: center; }
.goods-tab img { width: 44px; height: 44px; }
.goods-tab:hover { border-color: var(--line-strong); }
.goods-tab input { position: absolute; opacity: 0; pointer-events: none; }
.goods-tab.is-active, .goods-tab:has(input:checked) { border-color: var(--gold); background: rgba(212,175,55,.12); box-shadow: 0 0 0 1px rgba(212,175,55,.35) inset; }
.calc-headline { padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(212,175,55,.08); border: 1px solid var(--line); color: var(--gold-3); font-weight: 600; }
.qty-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; align-items: center; }
.qty-row .qty-unit { color: var(--soft); font-size: 12px; }
.price-big { font: 700 30px/1.1 var(--font-head); color: var(--gold-2); }
.price-table td, .price-table th { padding: 8px 12px; }
.price-table tr.is-selected td { background: rgba(212,175,55,.10); }
.cur-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cur-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(0,0,0,.25); cursor: pointer; }
.cur-card input { position: absolute; opacity: 0; pointer-events: none; }
.cur-card:has(input:checked), .cur-card.is-active { border-color: var(--gold); background: rgba(212,175,55,.12); }
.cur-card .flag { width: 36px; height: 24px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.cur-card b { color: var(--text); }
.cur-card small { color: var(--muted); }
.methods { display: grid; gap: 8px; }
.method { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(0,0,0,.25); cursor: pointer; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method img { width: 40px; height: 40px; }
.method:has(input:checked), .method.is-active { border-color: var(--gold); background: rgba(212,175,55,.12); }
.method b { display: block; color: var(--text); }
.method small { color: var(--muted); }
.method.is-off { display: none; }
.bonus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bonus-list li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: var(--radius-sm); background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.bonus-list li b { color: var(--ok); }
.req-box { padding: 16px; border-radius: var(--radius); border: 1px dashed var(--line-strong); background: rgba(0,0,0,.3); }
.req-code { font: 700 26px/1.1 ui-monospace, 'DejaVu Sans Mono', monospace; letter-spacing: .12em; color: var(--gold-2); }
.req-text { white-space: pre-wrap; font-family: ui-monospace, 'DejaVu Sans Mono', monospace; font-size: 15px; color: var(--text); word-break: break-all; }
.copy-btn { margin-left: 8px; }
details.fold { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0,0,0,.22); }
details.fold > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--gold-3); list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: '▾'; float: right; color: var(--gold); }
details.fold[open] > summary::after { content: '▴'; }
details.fold > .fold-body { padding: 0 16px 14px; }

/* ------------------------------------------------------------------ рынок */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.lot { display: grid; gap: 10px; }
.lot-top { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.lot-top img { width: 64px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-strong); }
.lot-name { font: 700 22px/1.1 var(--font-head); color: var(--gold-2); }
.lot-price { font: 700 24px/1 var(--font-head); color: var(--gold-3); }
.items-list { display: grid; gap: 4px; max-height: 480px; overflow: auto; padding-right: 4px; }
.items-list .it { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 5px 8px; border-radius: 6px; background: rgba(0,0,0,.22); font-size: 13px; }
.items-list .it .ench { color: var(--gold-2); font-weight: 700; }
.diff-list { margin: 0; padding-left: 20px; color: #ffd0c8; }

/* ------------------------------------------------------------------ страницы входа */
.auth-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.auth-card { max-width: 520px; width: 100%; justify-self: center; }
.account-receipt { display: grid; gap: 10px; margin: 16px 0; }
.receipt-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,.25); }
.receipt-row code { color: var(--gold-2); font-size: 15px; word-break: break-all; }
.receipt-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); }
.receipt-modal-card { width: min(520px, 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }

/* ------------------------------------------------------------------ сообщество */
.social { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(0,0,0,.3); color: var(--gold-2); font-weight: 600; }
.social a:hover { background: rgba(212,175,55,.12); text-decoration: none; }
.social svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------------ постраничка */
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.pager a, .pager strong, .pager span { min-width: 38px; padding: 7px 11px; border-radius: 6px; border: 1px solid var(--line); text-align: center; font-size: 14px; }
.pager strong { background: rgba(212,175,55,.15); border-color: var(--gold); color: var(--gold-2); }
.pager .disabled { opacity: .4; }
.pager .ellipsis { border: 0; }

/* ------------------------------------------------------------------ админка */
.admin-bar { background: rgba(0,0,0,.35); border-bottom: 1px solid var(--line); }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 0; }
.admin-nav a { padding: 7px 12px; border-radius: 6px; font-size: 13px; color: var(--muted); border: 1px solid transparent; }
.admin-nav a.is-active { color: var(--gold-2); border-color: var(--line-strong); background: rgba(212,175,55,.1); }
.admin-nav a .count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: var(--err); color: #fff; font-size: 11px; text-align: center; }
.kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.receipt-img { max-width: 100%; max-height: 520px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters > * { flex: 0 1 auto; }
.filters input, .filters select { min-width: 160px; width: auto; }

/* ------------------------------------------------------------------ подвал */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: rgba(0,0,0,.35); padding: 28px 0 18px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand strong { font: 700 20px/1 var(--font-head); color: var(--gold-2); }
.footer-brand p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 14px; }
.footer-meta { color: var(--soft); font-size: 13px; text-align: right; }
.footer-meta p { margin: 0 0 4px; }
.footer-legal { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(212,175,55,.1); color: var(--soft); font-size: 12px; text-align: center; }
.footer-legal p { margin: 0 0 4px; }
.to-top { position: fixed; right: 74px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(20,16,12,.9); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.to-top::before { content: ''; position: absolute; left: 50%; top: 55%; width: 12px; height: 12px; border-left: 2px solid var(--gold-2); border-top: 2px solid var(--gold-2); transform: translate(-50%, -50%) rotate(45deg); }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.music-toggle { position: fixed; right: 18px; bottom: 18px; z-index: 41; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(20,16,12,.9); color: var(--gold-2); cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.45); transition: transform .15s, border-color .15s; }
.music-toggle:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold-3); }
.music-toggle .ico-sound-off { display: none; }
.music-toggle.is-muted { color: var(--soft); }
.music-toggle.is-muted .ico-sound-on { display: none; }
.music-toggle.is-muted .ico-sound-off { display: block; }

/* ------------------------------------------------------------------ адаптив */
@media (max-width: 980px) {
  .site-brand { width: 170px; height: 62px; }
  .nav-toggle { display: block; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 16px; background: rgba(16,12,9,.98); border-bottom: 1px solid var(--line); }
  .mainnav.is-open { display: flex; }
  .mainnav-links { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
  .mainnav-links > a { padding: 11px 8px; font-size: 15px; border-bottom: 1px solid rgba(212,175,55,.08); }
  .mainnav-account { margin: 12px 0 0; flex-wrap: wrap; }
  .lang-pop { left: 0; right: auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-layout { grid-template-columns: 1fr; }
  .panel-side { position: static; }
  .auth-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}
@media (max-width: 720px) {
  .site-brand { width: 150px; height: 56px; }
  body { font-size: 14px; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .hero { min-height: 340px; }
  .hero-banner { background-image: url('../img/banner-960.webp'); background-size: 100% auto; }
  .hero-banner .hero-content { padding-top: calc(100vw / 3 - 30px); }
  .hero-splash { background-image: url('../img/splash-800.webp'); }
  .hero-login { background-image: url('../img/login-800.webp'); }
  .hero-small, .hero-small.hero-splash, .hero-small.hero-login { background-image: url('../img/inner-800.webp'); }
  .card { padding: 16px; }
  .section { padding: 24px 0; }
  .qty-row { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
  .table.responsive thead { display: none; }
  .table.responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .table.responsive td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 5px 12px; text-align: right; }
  .table.responsive td::before { content: attr(data-label); color: var(--soft); text-align: left; font-size: 12px; }
  .boss-row { grid-template-columns: 44px minmax(0, 1fr); }
  .boss-row > :last-child { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ------------------------------------------------------------------ переход между страницами без перезагрузки (app.js) */
html.is-loading::before { content: ''; position: fixed; left: 0; top: 0; z-index: 100; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent); background-size: 50% 100%; background-repeat: no-repeat;
  animation: esk-loading 1s linear infinite; }
@keyframes esk-loading { from { background-position: -50% 0; } to { background-position: 150% 0; } }
main h1[tabindex="-1"]:focus { outline: none; }
/* поддержка: частые вопросы с иконками */
.faq-q { display: flex; align-items: center; gap: 10px; }
.faq-q img { width: 32px; height: 32px; flex: 0 0 auto; }

/* ------------------------------------------------------------------ справочник (guide.php): оглавление, таблицы, монеты, боссы */
/* Широкий экран: оглавление слева и едет вместе со страницей (sticky); ≤ 980 px — оглавление сверху кнопками.
   Таблицы прокручиваются внутри своей рамки (.table-wrap), страница вбок не едет. */
.guide { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 22px; align-items: start; }
.guide-toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 0, 0, .28); }
.guide-toc-title { margin: 0 0 8px; padding: 0 8px; color: var(--soft); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.guide-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.guide-toc a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.3; }
.guide-toc a:hover { color: var(--gold-3); background: rgba(212, 175, 55, .08); text-decoration: none; }
.guide-toc img { width: 24px; height: 24px; flex: 0 0 auto; }
.guide-body { display: grid; gap: 22px; min-width: 0; }
.guide-sec { min-width: 0; scroll-margin-top: 84px; }
.guide-sec > .card-title { font-size: 28px; }
.guide-sec > p:last-child, .guide-coin > p:last-child { margin-bottom: 0; }
.guide-intro { padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(212, 175, 55, .07); }
.guide-intro p { margin: 0; }
.guide-intro b, .guide-rate b { color: var(--gold-2); }
.guide-note { color: var(--muted); font-size: 14px; }
.guide-rate { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, .28); font-size: 16px; }
.guide-list { margin-bottom: 14px; }
.guide-coin { min-width: 0; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.guide-sec > .card-title + .guide-coin { margin-top: 0; padding-top: 0; border-top: 0; }
.guide-coin h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; font-size: 22px; }
.guide-coin h3 img { width: 32px; height: 32px; flex: 0 0 auto; }
.guide-sub { color: var(--muted); font: 400 13px/1.3 var(--font-body); letter-spacing: 0; }
.guide-pill { font-family: var(--font-body); }
.guide-badge { margin-left: 6px; background: var(--gold); border-color: var(--gold); color: #1b1308; }
.guide-table { margin: 0 0 12px; background: rgba(0, 0, 0, .2); }
.guide-table .table th { white-space: normal; }
.guide-table .table td { vertical-align: top; }
.guide-table .table .num { text-align: right; white-space: nowrap; }
.guide-table .table .nowrap { white-space: nowrap; }
.guide-table .table .day { width: 3.5em; color: var(--gold-2); font-weight: 700; }
.guide-table .table th.num, .guide-table .table th.nowrap { white-space: normal; }
.guide-table .table tr.is-key td { background: rgba(212, 175, 55, .08); }
.guide-bosses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; margin: 14px 0; }
.guide-boss { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, .24); }
.guide-boss-count { color: var(--gold-2); font: 700 24px/1.1 var(--font-head); }
.guide-boss-sub { margin: 2px 0 8px; color: var(--soft); font-size: 12px; }
.guide-boss ul { margin: 0; padding-left: 18px; columns: 2 180px; column-gap: 22px; font-size: 13px; }
.guide-boss li { margin: 0 0 3px; break-inside: avoid; }
.guide-boss li::marker { color: var(--gold); }
@media (max-width: 980px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide-toc { position: static; max-height: none; overflow: visible; }
  .guide-toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .guide-toc a { padding: 6px 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); font-size: 13px; }
  .guide-toc img { width: 20px; height: 20px; }
}
@media (max-width: 720px) {
  .guide-sec > .card-title { font-size: 24px; }
  .guide-coin h3 { font-size: 20px; }
  .guide-bosses { grid-template-columns: minmax(0, 1fr); }
  .guide-table .table { font-size: 13px; }
  .guide-table .table th, .guide-table .table td { padding: 8px 9px; }
  .guide-rate { font-size: 15px; }
}

/* иконки вещей как в игре (includes/game.php item_icon, 30.09.2026) */
.item-icon { width: 24px; height: 24px; vertical-align: middle; margin-right: 8px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(212, 175, 55, .25); background: #0e0b08; }

/* Main launch and open beta announcement, 30 October 2026. */
.home-launch { max-width: 800px; margin: 0 auto 22px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(13,10,7,.88); text-align: center; }
.home-beta { margin: 0 0 10px; color: var(--gold-2); font-size: clamp(16px, 2.4vw, 22px); font-weight: 700; }
.home-launch-date { margin: 0 0 8px; font-size: clamp(18px, 2.5vw, 25px); font-weight: 700; }
.home-launch-date time { display: inline-block; }
.home-launch-time { margin: 0; font-size: 14px; line-height: 1.7; }
.home-rating { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; }
.home-rating a { display: inline-flex; min-width: 108px; min-height: 66px; padding: 8px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: rgba(13,10,7,.65); transition: border-color .15s, transform .15s; }
.home-rating a:hover, .home-rating a:focus-visible { border-color: var(--gold); transform: translateY(-2px); }
.home-rating img { display: block; max-width: 90px; max-height: 50px; object-fit: contain; }
.home-rating .rating-directory { color: var(--gold-2); font: 700 15px/1.1 var(--font-head); text-align: center; }

.home-rating .rating-l2anons { width: 88px; height: auto; }

.home-rating .rating-l2anons-link { flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; line-height: 1; }
