/* Сайт Мидгарда (v0.239): ночная палитра RO, «окна» как в интерфейсе игры, светлая и тёмная тема.
   Тема: системная (prefers-color-scheme) или выбранная кнопкой — html[data-theme]. */
:root {
  --night: #141a33;
  --night-2: #1d2547;
  --night-line: #2e3866;
  --night-ink: #e7e9f6;
  --night-soft: #a9b0d6;
  --gold: #e8b64c;
  --gold-2: #f6d98a;
  --ro-blue: #4a7fc1;
  --ro-frame: #9cc3ea;
  --panel: #fbf8f0;
  --panel-2: #f1ead8;
  --ink: #2b2a33;
  --ink-soft: #6a6676;
  --line: #ddd3bb;
  --ok: #3f9d5a;
  --bad: #c64545;
  --page: #ece4cf;
  --link: #3a6fb0;
  --shadow: 0 10px 30px rgba(20, 26, 51, .18);
  /* Боковое меню (v0.261: меняется с темой; было всегда тёмным) */
  --side-bg: linear-gradient(180deg, #f8f2e2, #e8dcbc);
  --side-ink: #4a4558;
  --side-line: rgba(163, 106, 0, .28);
  --side-hover: rgba(43, 42, 51, .06);
  --side-active: rgba(232, 182, 76, .28);
  --side-active-ink: #8a5a00;
  --side-logo: #a36a00;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --panel: #232a4a; --panel-2: #1b2140; --ink: #ecebf4; --ink-soft: #a9a8c0; --link: #8fbbe8;
    --line: #36406b; --page: #11162b; --ro-frame: #3d5d93; --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --side-bg: linear-gradient(180deg, #0e1328, #182046); --side-ink: #cfd5f0; --side-line: rgba(232, 182, 76, .25);
    --side-hover: rgba(255, 255, 255, .06); --side-active: rgba(232, 182, 76, .16); --side-active-ink: #f6d98a;
    --side-logo: #e8b64c;
  }
}
:root[data-theme="dark"] {
  --panel: #232a4a; --panel-2: #1b2140; --ink: #ecebf4; --ink-soft: #a9a8c0; --link: #8fbbe8;
  --line: #36406b; --page: #11162b; --ro-frame: #3d5d93; --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --side-bg: linear-gradient(180deg, #0e1328, #182046); --side-ink: #cfd5f0; --side-line: rgba(232, 182, 76, .25);
  --side-hover: rgba(255, 255, 255, .06); --side-active: rgba(232, 182, 76, .16); --side-active-ink: #f6d98a;
  --side-logo: #e8b64c;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 Nunito, system-ui, sans-serif; color: var(--ink); background: var(--page); }
h1, h2, h3, .brand { font-family: Philosopher, Georgia, serif; }
a { color: var(--link); }
img.px { image-rendering: pixelated; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 50; background: var(--panel); padding: 8px 12px; border-radius: 8px; }

/* ---- боковая навигация ---- */
.side {
  position: fixed; inset: 0 auto 0 0; width: 92px; z-index: 20;
  background: var(--side-bg); color: var(--side-ink);
  display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 4px;
  border-right: 1px solid var(--side-line);
}
.side .logo { font: 700 13px/1.1 Philosopher, serif; color: var(--side-logo); text-align: center; text-decoration: none;
  margin-bottom: 14px; text-transform: uppercase; }
.side .logo img { display: block; margin: 0 auto 4px; width: 46px; }
.side .nav { width: 78px; padding: 9px 4px; border-radius: 12px; text-align: center; text-decoration: none;
  color: inherit; font-size: 12px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.side .nav svg { width: 22px; height: 22px; }
.side .nav:hover { background: var(--side-hover); }
.side .nav[aria-current="page"] { background: var(--side-active); color: var(--side-active-ink); }
.side .grow { flex: 1; }
.side .lang { display: flex; gap: 2px; margin-bottom: 6px; background: var(--side-hover); border-radius: 9px; padding: 2px; }
.side .lang a { padding: 4px 8px; font-size: 11px; font-weight: 800; border-radius: 7px; color: inherit; text-decoration: none; }
.side .lang a[aria-current="true"] { background: var(--side-active); color: var(--side-active-ink); }
.side .theme { background: none; border: 1px solid var(--side-line); color: inherit; border-radius: 10px;
  padding: 6px 8px; cursor: pointer; font: 11px Nunito, sans-serif; }
.side .more { display: none; }
main { margin-left: 92px; min-height: 100vh; display: flex; flex-direction: column; }
main > .content { flex: 1; }
main > .content.night { background: var(--night); }

/* ---- кнопки и статус ---- */
.topbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 28px;
  position: absolute; right: 0; top: 0; z-index: 5; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(14, 19, 40, .72); color: var(--night-ink);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #8a8fa8; flex: none; }
.status-pill.up .dot { background: #5ee08a; box-shadow: 0 0 8px #5ee08a; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 10px 18px;
  font: 800 14px Nunito, sans-serif; border: 0; cursor: pointer; text-decoration: none; }
.btn-gold { background: linear-gradient(180deg, #f8d77d, #d99a2b); color: #3a2304; box-shadow: 0 3px 0 #9b6614, 0 8px 20px rgba(217, 154, 43, .35); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-ro { background: linear-gradient(180deg, #7fb2e6, #4a7fc1); color: #fff; box-shadow: 0 2px 0 #305a91; }
.btn[aria-disabled="true"] { background: var(--panel-2); color: var(--ink-soft); box-shadow: none; cursor: default; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.full { width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---- окно в стиле RO ---- */
.ro-win { background: var(--panel); border: 1px solid var(--ro-frame); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.ro-win > .ro-title { background: linear-gradient(180deg, #8fbbe8, #5f93d0); color: #fff; padding: 7px 14px;
  font: 800 13px Nunito, sans-serif; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.ro-body { padding: 18px; }
.hint { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 84px 28px 60px; }

/* ---- главная ---- */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--night); }
.hero .bg { position: absolute; inset: 0; background: url(/art/loading05.jpg) center/cover; transform: scale(1.04); }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 19, 40, .92) 0%, rgba(14, 19, 40, .55) 45%, rgba(14, 19, 40, .15) 100%),
              linear-gradient(0deg, rgba(20, 26, 51, 1) 0%, rgba(20, 26, 51, 0) 40%); }
.hero .in { position: relative; z-index: 1; padding: 0 56px 70px; max-width: 720px; }
.hero .kicker { color: var(--gold-2); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.hero h1 { font-size: 64px; line-height: 1; margin: 10px 0 14px; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { font-size: 18px; color: #dfe3f5; margin: 0 0 26px; max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .poring { position: absolute; right: 9%; bottom: 60px; z-index: 1; width: 111px; animation: hop 1.1s ease-in-out infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media (prefers-reduced-motion: reduce) { .hero .poring { animation: none; } }
.strip { background: var(--night); color: var(--night-ink); }
.strip .wrap { padding-top: 34px; padding-bottom: 60px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 46px; }
.stat { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font: 700 26px Philosopher, serif; color: var(--gold-2); }
.stat span { font-size: 13px; color: var(--night-soft); }
.jobs { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; }
.jobs h2 { margin: 0 0 6px; font-size: 26px; }
.jobs .lead { color: var(--night-soft); margin: 0 0 14px; }
.job-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.job-list button { background: var(--night-2); border: 1px solid var(--night-line); color: #cfd5f0; border-radius: 12px; padding: 10px 4px;
  font: 700 13px Nunito, sans-serif; cursor: pointer; }
.job-list button[aria-selected="true"] { border-color: var(--gold); color: var(--gold-2); background: rgba(232, 182, 76, .1); }
.job-card { display: grid; grid-template-columns: 1fr 200px; gap: 20px; background: radial-gradient(ellipse at 80% 50%, #2e3a74, var(--night-2));
  border: 1px solid var(--night-line); border-radius: 18px; padding: 26px 28px; min-height: 280px; }
.job-card[hidden] { display: none; }
.job-card h3 { font-size: 30px; margin: 0 0 6px; color: var(--gold-2); }
.job-card .where { color: var(--night-soft); }
.job-card .tags { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; padding: 0; list-style: none; }
.job-card .tags li { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid #3f4b86; color: #cfd5f0; }
.job-card p { color: #dfe3f5; margin: 0; }
.job-card .art { display: flex; align-items: flex-end; justify-content: center; }
.job-card .art img { height: 240px; }
.foot { text-align: center; color: #7d84aa; font-size: 12px; padding: 26px; background: #0d1124; }
.foot a { color: inherit; }

/* ---- скачать ---- */
.dl-hero { background: linear-gradient(90deg, rgba(14, 19, 40, .92), rgba(14, 19, 40, .5)), url(/art/loading18.jpg) center 30%/cover;
  color: #fff; border-radius: 22px; padding: 38px 40px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.dl-hero h1 { margin: 0 0 6px; font-size: 38px; }
.dl-hero p { margin: 0; color: #dfe3f5; }
.os { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.os .mine { outline: 3px solid var(--gold); }
.os .ico { width: 54px; height: 54px; margin-bottom: 8px; }
.os h2 { margin: 0 0 4px; font-size: 24px; }
.os dl { font-size: 13px; color: var(--ink-soft); margin: 8px 0 14px; }
.os dl div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.os dt { margin: 0; } .os dd { margin: 0; font-weight: 800; color: var(--ink); text-align: right; word-break: break-all; }
.os .sha { font: 11px ui-monospace, monospace; word-break: break-all; color: var(--ink-soft); margin-top: 10px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; padding: 0; list-style: none; }
.steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #3a2304; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }

/* ---- 404 ---- */
.notfound { text-align: center; max-width: 520px; margin: 0 auto; }
.notfound > .ro-body > img { width: 120px; }
/* Подсказки «Возможно, вы искали» (v0.307) */
.nf-h { font-size: 17px; margin: 18px 0 8px; }
.nf-list { list-style: none; padding: 0; margin: 0 0 12px; text-align: left; }
.nf-list a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; text-decoration: none; }
.nf-list a:hover, .nf-list a:focus-visible { background: var(--panel-2); }
.nf-list img, .nf-noimg { width: 32px; height: 32px; object-fit: contain; flex: none; }
.nf-name { flex: 1; font-weight: 700; text-decoration: underline; }
.nf-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }

/* ---- формы и аккаунт (v0.240) ---- */
.wrap.narrow { max-width: 760px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { margin: 0 0 4px; font-size: 34px; }
.page-head p { margin: 0; color: var(--ink-soft); }
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-art { background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 50px; color: #fff; }
.auth-art h2 { font-size: 38px; margin: 0 0 6px; }
.auth-art p { margin: 0; color: #dfe3f5; max-width: 420px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form .ro-win { width: 100%; max-width: 420px; }
.tabs { display: flex; gap: 6px; background: var(--panel-2); padding: 4px; border-radius: 12px; margin-bottom: 16px; }
.tabs a { flex: 1; text-align: center; padding: 8px; border-radius: 9px; font-weight: 800; font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
label.f { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
label.f input { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink); font: 15px Nunito, sans-serif; }
label.f .hint { display: block; margin-top: 4px; }
.check { display: flex; gap: 8px; font-size: 13px; align-items: flex-start; margin: 4px 0 14px; }
.row-sb { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 14px; }
.row-sb .check { margin: 0; }
/* 2FA (v0.276): поле кода, QR, ключ и резервные коды */
input.otp { font: 600 22px/1.2 ui-monospace, monospace; letter-spacing: 6px; text-align: center; }
.qr { text-align: center; margin: 12px 0; }
.qr svg { display: block; margin: 0 auto; width: min(240px, 100%); height: auto; border-radius: 8px;
  shape-rendering: crispEdges; }
code.key { display: inline-block; margin-top: 4px; font-size: 14px; letter-spacing: 1px; }
ul.codes { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px;
  font: 600 16px ui-monospace, monospace; }
.twofa-act { margin: 4px 0 14px; }
form.inline { display: inline; margin-left: 8px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 12px; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { background: #fff; color: #333; border: 1px solid #d6d6d6; }
.btn-plain { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); }
.form-error { background: rgba(198, 69, 69, .12); color: var(--bad); border: 1px solid rgba(198, 69, 69, .35); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.notice { background: rgba(63, 157, 90, .12); color: var(--ok); border: 1px solid rgba(63, 157, 90, .35); border-radius: 12px;
  padding: 10px 14px; font-weight: 700; margin-bottom: 16px; }
.banner { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #fff4e0;
  border: 1px solid #f1c27d; color: #6b4410; margin-bottom: 20px; }
:root[data-theme="dark"] .banner { background: #3a2c14; color: #f6d9a8; border-color: #7a5a22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .banner { background: #3a2c14; color: #f6d9a8; border-color: #7a5a22; } }
.banner .grow { flex: 1; }
.banner-ico { font-size: 26px; }
.banner form { margin: 0; }
.kv { margin: 0 0 16px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-soft); } .kv dd { margin: 0; text-align: right; word-break: break-all; }
.badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.badge.ok { background: rgba(63, 157, 90, .15); color: var(--ok); }
.badge.warn { background: rgba(217, 130, 43, .15); color: #c26a12; }
.message { text-align: center; }
.message img { width: 96px; }
.message h1 { margin: 8px 0; font-size: 26px; }

/* ---- кабинет и безопасность (v0.243) ---- */
.crumbs { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.cab { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.sec-h { font-size: 22px; margin: 0 0 12px; }
.sec-h span { color: var(--ink-soft); font-size: 16px; }
.side-stack { display: grid; gap: 16px; }
.mt { margin-top: 10px; }
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.char { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; }
.char.main { border-color: var(--gold); }
.char .top { display: flex; gap: 12px; padding: 14px; align-items: center; }
.char .grow { flex: 1; min-width: 0; }
.char .ava { width: 72px; height: 88px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); flex: none;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.char .ava img { max-width: 64px; max-height: 84px; }
.char h3 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.char .job { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.lv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 12px; }
.lv > div { background: var(--panel-2); border-radius: 10px; padding: 6px 10px; font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.lv b { display: block; font-size: 18px; color: var(--ink); }
.bar { display: block; height: 5px; border-radius: 3px; background: var(--line); margin-top: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #7fb2e6, #4a7fc1); }
.loc { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; margin-top: auto; }
.loc img, .loc .nomap { width: 52px; height: 52px; border-radius: 8px; border: 1px solid var(--line); background: #000; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 24px; }
.loc b { display: block; font-size: 14px; }
.loc .hint { display: block; }
.loc .zeny { text-align: right; }
.make-main { padding: 0 14px 12px; margin: 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--link); font: 700 13px Nunito, sans-serif; cursor: pointer; text-decoration: underline; }
.char.empty { align-items: center; justify-content: center; text-align: center; border-style: dashed; box-shadow: none;
  padding: 20px; color: var(--ink-soft); min-height: 230px; gap: 4px; font-size: 13px; }
.char.empty img { width: 70px; opacity: .85; }
.char.empty b { color: var(--ink); font-size: 15px; }
.badge.pin { background: rgba(232, 182, 76, .2); color: #a36a00; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.switch:last-child { border-bottom: 0; }
.switch form { margin: 0; }
.tg { width: 44px; height: 24px; border-radius: 12px; border: 0; background: var(--ok); position: relative; flex: none; cursor: pointer; }
.tg::after { content: ""; position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.tg.off { background: var(--line); } .tg.off::after { right: auto; left: 3px; }
.ro-body.tight { padding: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--ink-soft); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }
.table form { margin: 0; }
/* Подарки за вход в админке (v0.320): строка с ошибкой, поля предмета и количества */
.gift-table td { padding: 5px 8px; }
.gift-table tr.bad td { background: rgba(198, 69, 69, .12); }
.gift-table .gift-item { width: min(320px, 100%); }
.gift-table .gift-qty { width: 90px; }
/* Поле даты выдачи скина в админке «Коды» (v0.339): как остальные поля, значок календаря — под тему */
.gift-table input[type="date"] { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink); font: 15px Nunito, sans-serif; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gift-table input[type="date"] { color-scheme: dark; } }
:root[data-theme="dark"] .gift-table input[type="date"] { color-scheme: dark; }
.pad { padding: 10px; margin: 0; }
.btn.sm { padding: 6px 12px; font-size: 13px; }

/* ---- новости и гайды (v0.254) ---- */
.sec-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }
.sec-title h2 { margin: 0; font-size: 26px; }
.sec-title a { color: var(--gold-2); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 46px; }
.news-grid .big { grid-column: span 2; }
.news-grid.home .big { grid-column: auto; }
.news-grid.home { grid-template-columns: 1.4fr 1fr 1fr; }
.news-card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 16px; overflow: hidden; color: var(--night-ink);
  text-decoration: none; display: flex; flex-direction: column; }
.news-card:hover { border-color: var(--gold); }
.news-card .img { height: 160px; background-size: cover; background-position: center; }
.news-card.big .img { height: 230px; }
.news-card .t { padding: 14px 16px 16px; }
.news-card h3 { margin: 8px 0 4px; font-size: 19px; color: #fff; }
.news-card p { margin: 0; font-size: 14px; color: var(--night-soft); }
.news-card .when, .article .when { font-size: 12px; color: var(--night-soft); margin-left: 8px; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 6px; background: rgba(232, 182, 76, .18); color: var(--gold-2); }
.tag.blue { background: rgba(111, 168, 220, .2); color: #a9cdf0; }
.page-head.light h1 { color: #fff; } .page-head.light p { color: var(--night-soft); }
.crumbs.light, .crumbs.light a { color: var(--night-soft); }
.pager { display: flex; gap: 6px; justify-content: center; }
.pager a { padding: 6px 12px; border-radius: 8px; background: var(--night-2); color: var(--night-ink); text-decoration: none; }
.pager a[aria-current="page"] { background: var(--gold); color: #3a2304; }
.empty-note { color: var(--night-soft); }
.article-hero { background-size: cover; background-position: center; color: #fff; padding: 90px 0 30px; }
.article-hero h1 { font-size: 40px; margin: 10px 0 4px; }
.article-hero .wrap { padding-top: 0; padding-bottom: 0; }
.article-body { padding-top: 24px; }
.prose { font-size: 16px; line-height: 1.65; }
.prose h2 { font-size: 22px; margin: 22px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; }
.prose table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.discuss { text-align: center; margin-top: 18px; }
.guide-link { display: inline-block; margin-top: 12px; color: var(--gold-2); font-weight: 800; }
/* Дерево профессий (v0.300): новичок, ствол, перекладина и ряд первых профессий */
.job-tree { --gap: 14px; --stem: 26px; }
.job-root { display: flex; align-items: center; gap: 22px; max-width: 560px; margin: 0 auto; padding: 16px 24px;
  background: radial-gradient(ellipse at 25% 50%, #3a4683, var(--night-2)); border: 1px solid var(--gold);
  border-radius: 18px; color: var(--night-ink); text-decoration: none; box-shadow: 0 0 0 4px rgba(232, 182, 76, .08); }
.job-root:hover { box-shadow: 0 0 0 4px rgba(232, 182, 76, .2); }
.job-root .pair img { height: 132px; }
.job-root .txt { display: flex; flex-direction: column; gap: 6px; }
.job-root b { font: 700 30px Philosopher, serif; color: var(--gold-2); }
.job-tree .pair { display: flex; align-items: flex-end; justify-content: center; }
.job-tree .pair img + img { margin-left: -14px; }
.job-tree .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.job-tree .chips span { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  border: 1px solid #3f4b86; color: #cfd5f0; }
.job-step { position: relative; margin: 0 auto; padding: calc(var(--stem) + 4px) 0 var(--stem); text-align: center;
  font-size: 13px; color: var(--night-soft); }
.job-step::before, .job-step::after { content: ""; position: absolute; left: 50%; width: 2px; height: var(--stem);
  background: var(--gold); opacity: .6; }
.job-step::before { top: 0; }
.job-step::after { bottom: 0; }
.job-row { position: relative; list-style: none; margin: 0; padding: var(--stem) 0 0; display: grid;
  grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.job-row::before { content: ""; position: absolute; top: 0; height: 2px; background: var(--gold); opacity: .6;
  left: calc((100% - 5 * var(--gap)) / 12); right: calc((100% - 5 * var(--gap)) / 12); }
.job-row li { position: relative; display: flex; }
.job-row li::before { content: ""; position: absolute; left: 50%; top: calc(-1 * var(--stem)); width: 2px;
  height: var(--stem); background: var(--gold); opacity: .6; }
.job-tile { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 10px 12px; text-align: center; color: var(--night-ink); text-decoration: none;
  background: radial-gradient(ellipse at 50% 22%, color-mix(in srgb, var(--accent) 28%, #2e3a74), var(--night-2) 70%);
  border: 1px solid var(--night-line); border-top: 3px solid var(--accent); border-radius: 16px;
  transition: transform .15s, border-color .15s; }
.job-tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.job-tile .pair img { height: 96px; }
.job-tile b { font: 700 20px Philosopher, serif; color: var(--accent); }
.job-tile .role { font-size: 12px; color: var(--night-soft); min-height: 3em; }
.job-tile .chips { justify-content: center; }
.job-tile .chips span { border-color: color-mix(in srgb, var(--accent) 45%, #3f4b86); }
.job-tile dl { width: 100%; margin: auto 0 0; display: grid; gap: 3px; font-size: 12px; }
.job-tile dl div { display: flex; justify-content: space-between; gap: 6px; padding: 3px 8px; border-radius: 8px;
  background: rgba(10, 14, 30, .35); }
.job-tile dt { color: var(--night-soft); }
.job-tile dd { margin: 0; font-weight: 800; color: #fff; }
.job-tile .next { min-height: 3.2em; padding-top: 2px; font-size: 11px; color: var(--night-soft); font-style: italic; }
[data-job] { --accent: var(--gold); }
[data-job="swordman"] { --accent: #ef7a5f; }
[data-job="mage"] { --accent: #a98bff; }
[data-job="archer"] { --accent: #7ccf72; }
[data-job="acolyte"] { --accent: #8fd3ff; }
[data-job="merchant"] { --accent: #f2a654; }
[data-job="thief"] { --accent: #e07ab8; }
@media (max-width: 1100px) {
  .job-row { grid-template-columns: repeat(3, 1fr); }
  .job-row::before, .job-row li::before { display: none; }
  .job-step { padding-bottom: 12px; }
  .job-step::after { display: none; }
  .job-row { padding-top: 0; }
}
@media (max-width: 640px) {
  .job-row { grid-template-columns: repeat(2, 1fr); }
  .job-root { flex-direction: column; text-align: center; }
  .job-root .chips { justify-content: center; }
}
.job-hero { background: radial-gradient(ellipse at 75% 60%, color-mix(in srgb, var(--accent) 30%, #2e3a74), var(--night) 70%);
  color: #fff; border-bottom: 3px solid var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 14, 30, .4); color: #fff; font-weight: 800;
  font-size: 13px; text-decoration: none; }
.back-link:hover { border-color: var(--accent); color: var(--accent); }
.job-hero .facts { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.job-hero .facts li { display: flex; gap: 8px; align-items: baseline; padding: 5px 12px; border-radius: 10px;
  background: rgba(10, 14, 30, .45); border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.job-hero .facts span { color: var(--night-soft); }
.job-hero .facts a { color: var(--accent); font-weight: 800; }
.job-hero .wrap { padding-bottom: 24px; }
.job-hero-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.job-hero h1 { font-size: 46px; margin: 6px 0; color: var(--accent); }
.job-hero p { color: #dfe3f5; max-width: 520px; }
.job-hero .pair { display: flex; gap: 18px; align-items: flex-end; }
.job-hero .pair img { height: 200px; }
.guide { display: grid; grid-template-columns: 1fr 260px; gap: 20px; align-items: start; margin-bottom: 20px; }
.other-jobs { display: flex; flex-wrap: wrap; gap: 8px; }
.other-jobs { flex-direction: column; flex-wrap: nowrap; gap: 4px; }
.other-jobs a { display: flex; align-items: center; gap: 10px; padding: 4px 10px; border-radius: 10px;
  border: 1px solid transparent; border-left: 3px solid var(--accent); text-decoration: none; font-weight: 700; font-size: 14px; }
.other-jobs a:hover { border-color: var(--accent); }
.other-jobs a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.other-jobs img { height: 34px; width: 30px; object-fit: contain; object-position: bottom; }
.job-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 22px; }
.job-nav a { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 800; }
.job-nav a[data-job] { border-left: 3px solid var(--accent); }
.job-nav a:last-child { text-align: right; border-left: 1px solid var(--line); border-right: 3px solid var(--accent); }
.job-nav a:hover { border-color: var(--accent); }
.job-nav .all { text-align: center; }
@media (max-width: 640px) { .job-nav { gap: 6px; } .job-nav a { padding: 8px 10px; font-size: 13px; } }
/* Дерево навыков (v0.300) */
.skill-tree-wrap { overflow-x: auto; padding-bottom: 6px; }
.skill-tree { position: relative; display: grid; grid-auto-columns: 190px; grid-auto-rows: 52px; column-gap: 54px;
  row-gap: 10px; width: max-content; padding: 4px; }
.skill-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.skill-lines path { fill: none; stroke: var(--ink-soft); stroke-opacity: .5; stroke-width: 2; }
.skill-lines path.chain { stroke-opacity: 1; stroke-width: 2.5; }
.skill-lines text { font: 800 11px Nunito, sans-serif; fill: var(--ink-soft); text-anchor: end; }
.skill-lines .chain { stroke: var(--accent, var(--gold)); }
.skill-lines text.chain { fill: var(--accent, var(--gold)); stroke: none; }
.skill-node { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: inherit;
  text-align: left; cursor: pointer; }
.skill-node img, .skill-node .noicon { width: 32px; height: 32px; flex: none; image-rendering: pixelated; }
.skill-node .nm { flex: 1; font-weight: 700; font-size: 13px; line-height: 1.2; }
.skill-node .lv { font-size: 11px; font-weight: 800; color: var(--ink-soft); padding: 1px 6px; border-radius: 999px;
  border: 1px solid var(--line); }
.skill-node.chain { border-color: var(--accent, var(--gold)); }
.skill-node.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--gold)) 35%, transparent); }
.skill-sub { margin: 16px 0 8px; font-size: 15px; }
.skill-quest { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.skill-info { margin: 14px 0 6px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line); min-height: 64px; }
.skill-info p { margin: 6px 0 0; }
.skill-list summary { cursor: pointer; font-weight: 800; margin: 10px 0; }
@media (max-width: 700px) {
  .skill-tree-wrap, .skill-sub, .skill-quest, .skill-info { display: none; }
}
.skills .ico { width: 40px; }
.skills .ico img { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .side { inset: auto 0 0 0; width: auto; height: 64px; flex-direction: row; justify-content: space-around; padding: 0 4px;
    border-right: 0; border-top: 1px solid var(--side-line); }
  .side .logo, .side .grow { display: none; }
  .side .nav { width: auto; padding: 6px; font-size: 10px; }
  .side .lang { margin: 0; }
  .side .theme { padding: 4px 6px; }
  main { margin-left: 0; padding-bottom: 64px; }
  .wrap { padding: 70px 16px 40px; }
  .hero { min-height: 560px; } .hero .in { padding: 0 20px 50px; } .hero h1 { font-size: 42px; } .hero .poring { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .jobs, .job-card, .os, .steps, .auth, .cab, .grid2, .news-grid, .news-grid.home, .guide { grid-template-columns: 1fr; }
  .news-grid .big { grid-column: auto; }
  .job-hero-in { flex-direction: column; align-items: flex-start; } .job-hero .pair img { height: 140px; }
  .side .nav svg { width: 18px; height: 18px; }
  .table .hide-m { display: none; }
  .auth-art { min-height: 200px; padding: 24px; }
  .banner { flex-wrap: wrap; }
  .job-card .art img { height: 180px; }
  .dl-hero { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .topbar { padding: 10px 16px; }
}

/* ---- телефон (v0.275): меню «Ещё», вкладки и таблицы прокручиваются, вход без пустоты, компактные ячейки ---- */
@media (max-width: 900px) {
  .side { justify-content: space-between; padding: 0 2px; }
  .side .nav { flex: 1 1 0; min-width: 0; padding: 6px 2px; line-height: 1.15; }
  .side .sec, .side > .lang, .side > .theme { display: none; }
  .side .more { display: flex; flex: 1 1 0; min-width: 0; }
  .side .more summary { list-style: none; cursor: pointer; width: 100%; }
  .side .more summary::-webkit-details-marker { display: none; }
  .side .more.here summary, .side .more[open] summary { background: var(--side-active); color: var(--side-active-ink); }
  .more-menu { position: fixed; right: 8px; bottom: 72px; min-width: 210px; display: grid; gap: 2px; padding: 8px;
    background: var(--side-bg); color: var(--side-ink); border: 1px solid var(--side-line); border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
  .more-menu > a { padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 14px; }
  .more-menu > a:hover, .more-menu > a[aria-current="page"] { background: var(--side-active); color: var(--side-active-ink); }
  .more-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 4px 2px;
    border-top: 1px solid var(--side-line); margin-top: 4px; }
  .more-row .lang { margin: 0; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs a { flex: none; white-space: nowrap; padding: 8px 12px; }
  .ro-body.tight { overflow-x: auto; }
  .auth { min-height: 0; }
  .auth-art { min-height: 220px; }
  .auth-form { padding: 20px 16px 32px; }
  .char.empty { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 0; padding: 12px 14px; text-align: left; }
  .char.empty img { width: 40px; }
  .char.empty span { display: none; }
}

/* ---- сообщить о баге (v0.255) ---- */
label.f textarea, label.f select { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: 15px Nunito, sans-serif; }
label.f textarea { resize: vertical; min-height: 90px; }
label.f input[type="file"] { padding: 8px; }
.bug-env { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 0 12px; }
.bug-list { list-style: none; margin: 0; padding: 0; }
.bug-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px;
  border-bottom: 1px solid var(--line); font-size: 14px; }
.bug-list li:last-child { border-bottom: 0; }
.bug-list a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bug-list a:hover { color: var(--gold-2); }
.badge.new { background: rgba(111, 168, 220, .18); color: #4a7fc1; }
.badge.confirmed { background: rgba(217, 130, 43, .15); color: #c26a12; }
.badge.fixed { background: rgba(63, 157, 90, .15); color: var(--ok); }
.badge.rejected { background: rgba(140, 140, 160, .18); color: var(--ink-soft); }
.tips { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 6px; }
.bug-h { font-size: 24px; margin: 0 0 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bug-sub { font-size: 16px; margin: 16px 0 6px; }
.pre { white-space: pre-wrap; word-break: break-word; margin: 0; }
.bug-shot { display: block; max-width: 100%; margin-top: 16px; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 640px) { .bug-env { grid-template-columns: 1fr 1fr; } .bug-env label:last-child { grid-column: span 2; } }

/* ---- админка (v0.256) ---- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat.panel { background: var(--panel); border-color: var(--line); }
.stat.panel b { color: var(--ink); display: flex; align-items: center; gap: 8px; }
.stat.panel span { color: var(--ink-soft); }
.dot.up { background: #3f9d5a; box-shadow: 0 0 8px #5ee08a; }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input { flex: 1; min-width: 200px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font: 15px Nunito, sans-serif; }
.mini-ch { height: 40px; image-rendering: pixelated; vertical-align: middle; }
.mini-ch.big { height: 80px; }
.badge.bad { background: rgba(198, 69, 69, .15); color: var(--bad); }
.mt-l { margin-top: 20px; }
.ro-win > .ro-title.split { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ro-win > .ro-title a { color: #fff; font-size: 13px; }
.admin-log { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.admin-log li { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.admin-log li:last-child { border-bottom: 0; }
.page-head h1 .badge { vertical-align: middle; font-family: Nunito, sans-serif; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }

/* ---- новости в админке (v0.258) ---- */
.admin-tabs { max-width: 480px; }
.toolbar-form { display: flex; gap: 10px; flex: 1; min-width: 260px; }
.news-editor textarea { font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace; min-height: 320px; }
.news-meta { display: grid; grid-template-columns: 2fr 1fr; gap: 0 14px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 900px) { .news-meta { grid-template-columns: 1fr; } }

/* ---- баги и сервер в админке (v0.259) ---- */
.admin-tabs { max-width: 720px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink-soft); font-size: 13px; font-weight: 700; text-decoration: none; }
.chips a[aria-current="page"] { border-color: var(--gold); color: var(--ink); }
a.stat.panel { text-decoration: none; }

/* ---- обложка новости: сетка миниатюр (v0.261) ---- */
.covers { border: 0; padding: 0; margin: 4px 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px; }
.covers legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.cover { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--panel-2); }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover input { position: absolute; opacity: 0; pointer-events: none; }
.cover:hover { border-color: var(--line); }
.cover:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(232, 182, 76, .35); }
.cover:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.cover.auto { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px;
  font-weight: 700; color: var(--ink-soft); padding: 6px; }

/* Защита от ботов (v0.263): поле-ловушка за экраном, виджет Turnstile над кнопкой */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 4px 0 14px; min-height: 65px; }
.game-captcha { display: flex; justify-content: center; }

/* Рейтинги и профиль персонажа (v0.270) */
.table .show-m { display: none; }
@media (max-width: 720px) { .table .show-m { display: block; } }
.rating .mini-ch { height: 36px; }
.rating .podium td:first-child b { color: var(--gold); font-size: 16px; }
.char-links { display: flex; gap: 14px; padding: 0 14px 8px; font-size: 13px; }
.char-links form { margin: 0; }
.profile .ro-body { padding: 0; }
.profile-top { display: flex; gap: 16px; padding: 18px; align-items: center; }
.profile-top .grow { flex: 1; min-width: 0; }
.profile-top h1 { margin: 0; font-size: 28px; overflow-wrap: anywhere; }
.profile-top .job { margin: 2px 0 0; color: var(--ink-soft); font-weight: 700; }
.profile .ava { width: 96px; height: 116px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line);
  flex: none; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.profile .ava img { max-width: 88px; max-height: 112px; }

/* Карта мира (v0.271): наш край карты RO, в областях — мини-карты локаций */
.world { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); gap: 18px; align-items: start; margin-bottom: 22px; }
.world-map { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0d1220; }
.world-map svg { display: block; width: 100%; height: auto; }
.world-map .dim { fill: rgba(10, 14, 30, .62); }
.world-map .path { stroke: rgba(243, 199, 90, .85); stroke-width: 1.4; stroke-dasharray: 3 2.5; stroke-linecap: round;
  stroke-linejoin: round; fill: none; }
.world-map .path.sea { stroke: #8fd3ff; }
.world-map .path.on { stroke: #fff; stroke-width: 2; }
.world-map .spot image { opacity: .92; }
.world-map .area { fill: transparent; stroke: rgba(243, 199, 90, .85); stroke-width: .8; }
.world-map .spot.dun .area { stroke: #e0724a; stroke-width: 1.2; }
.world-map .spot.inner .area { fill: rgba(201, 162, 255, .3); stroke: #c9a2ff; stroke-width: 1.2; }
.world-map .spot text { font: 800 11px Nunito, sans-serif; fill: #fff; text-anchor: middle; paint-order: stroke;
  stroke: rgba(0, 0, 0, .9); stroke-width: 3px; pointer-events: none; }
.world-map .spot:hover image, .world-map .spot:focus image, .world-map .spot.on image { opacity: 1; }
.world-map .spot:hover .area, .world-map .spot:focus .area, .world-map .spot.on .area { stroke: #fff; stroke-width: 2; }
.world-map .spot:focus { outline: none; }
.world-info { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
/* Где найти монстра (v0.300) */
.mob-finder { margin-bottom: 14px; }
.mob-finder label { display: block; font-weight: 800; margin-bottom: 6px; }
.mob-finder .row { display: flex; gap: 8px; max-width: 520px; }
.mob-finder input { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink); font: 15px Nunito, sans-serif; }
.mob-finder input { flex: 1; min-width: 0; }
.mob-finder .found p { margin: 8px 0 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mob-finder .found ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mob-finder .found li { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.mob-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left;
  text-decoration: underline dotted; text-underline-offset: 3px; }
.mob-link:hover { color: var(--gold); }
.mob-finder .chips .mob-link { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.world-map svg.searching .spot image { opacity: .25; }
.world-map svg.searching .spot:not(.found) .area { stroke-opacity: .35; }
.world-map svg.searching .spot.found image { opacity: 1; }
.world-map .spot.found .area { stroke: #7fe3ff; stroke-width: 2.4; }
.world-info .place { display: none; }
.world-info .job-here { margin: 4px 0 8px; padding: 6px 10px; border-radius: 10px; font-weight: 700;
  background: rgba(232, 182, 76, .12); border: 1px solid rgba(232, 182, 76, .35); }
.world-info .place:target { display: block; }
.world-info .ro-body:has(.place:target) .pick { display: none; }
.world-js .world-info .place:target { display: none; }
.world-js .world-info .place.on { display: block; }
.world-js .world-info .ro-body:has(.place.on) .pick { display: none; }
.place h2 { margin: 0; font-size: 22px; }
.place h3 { margin: 14px 0 6px; font-size: 13px; color: var(--ink-soft); text-transform: none; }
.place p { margin: 0 0 4px; font-size: 14px; }
.place ul { margin: 0; padding-left: 18px; }
.mobs { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.mobs li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.mobs img { width: 40px; height: 40px; object-fit: contain; }
.mobs .hint { margin-left: auto; }
.world-index ul { columns: 4 160px; padding-left: 18px; font-size: 14px; }
@media (max-width: 900px) { .world { grid-template-columns: 1fr; } .world-info { position: static; max-height: none; } }

/* График онлайна за сутки на главной (v0.272) */
.online-chart { margin: -26px 0 46px; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 14px; padding: 12px 16px 10px; }
.online-chart figcaption { font-size: 13px; color: var(--night-soft); margin-bottom: 6px; }
.online-chart svg { display: block; width: 100%; height: 120px; }
.online-chart .line { fill: none; stroke: var(--gold-2); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.online-chart .fill { fill: var(--gold-2); opacity: .15; }
.online-chart .axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--night-soft); margin-top: 4px; }

/* База знаний (v0.300) */
.kb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.kb-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 800; }
.kb-tabs a[aria-current="page"] { background: var(--gold); border-color: var(--gold); color: #3a2304; }
.kb-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.kb-filter input { flex: 1 1 260px; max-width: 420px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink); font: 15px Nunito, sans-serif; }
.kb-groups { display: flex; flex-wrap: wrap; gap: 4px; }
.kb-groups button { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: none; color: inherit;
  font: 700 13px Nunito, sans-serif; cursor: pointer; }
.kb-groups button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #3a2304; }
.kb-table td.ico img { max-height: 32px; }
.kb-table tr[hidden] { display: none; }
.kb-shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.kb-shop[hidden] { display: none; }
.kb-place { font-size: 20px; margin: 20px 0 10px; }
.kb-place:has(+ .kb-shops:not(:has(.kb-shop:not([hidden])))) { display: none; }
.kb-wares .noicon { width: 24px; height: 24px; flex: none; }
.kb-shop:target { outline: 3px solid var(--gold); outline-offset: 2px; }
.kb-wares { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.kb-wares li { display: flex; align-items: center; gap: 8px; }
.kb-wares a { flex: 1; }
.kb-wares img { width: 24px; height: 24px; }
.back-link.dark { color: var(--ink); background: var(--panel-2); border-color: var(--line); margin-bottom: 12px; }
.kb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 6px 0 18px; }
.kb-head > img { max-height: 180px; max-width: min(260px, 100%); object-fit: contain; object-position: left bottom; }
.kb-head > div { min-width: 0; flex: 1 1 200px; }
.kb-head h1 { margin: 0 0 6px; }
.kb-head img.item { width: 72px; height: 72px; image-rendering: pixelated; }
.kb-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.kb-badges .badge:not(.ok):not(.warn):not(.pin):not(.bad) { background: var(--panel-2); color: var(--ink-soft); }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
/* Иллюстрация карты (v0.346): слева картинка 300 × 400 в 240 px, справа «Свойства» и «Описание»; на телефоне — сверху */
.kb-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.kb-card .art { margin: 0; }
.kb-card .art a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .15s; }
.kb-card .art a:hover { transform: translateY(-2px); }
.kb-card .art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; }
.kb-card .art figcaption { margin-top: 6px; font-size: 12px; text-align: center; }
.kb-card .card-info { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 640px) {
  .kb-card { grid-template-columns: 1fr; }
  .kb-card .art { width: 100%; max-width: 240px; margin: 0 auto; }
}
.kb-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; margin: 0; }
.kb-stats div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 10px; border-radius: 8px; background: var(--panel-2); }
.kb-stats dt { color: var(--ink-soft); font-size: 13px; }
.kb-stats dd { margin: 0; font-weight: 800; white-space: nowrap; }
/* «Чем бить» (v0.340, B-88): % урона каждой стихии атаки; лучшие — зелёные, 0 % — красные, слабее — бледные */
.kb-elements-lead { margin: 0 0 10px; }
.kb-elements { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.kb-elements li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 10px; border-radius: 8px; background: var(--panel-2);
  font-size: 13px; border: 1px solid transparent; }
.kb-elements b { white-space: nowrap; }
.kb-elements li.best { background: rgba(63, 157, 90, .15); border-color: var(--ok); color: var(--ok); }
.kb-elements li.none { background: rgba(198, 69, 69, .12); color: var(--bad); }
.kb-elements li.weak { color: var(--ink-soft); }
.kb-elements-note { margin: 10px 0 0; }
.kb-where { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kb-where li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.kb-line { margin: 10px 0 0; }
.kb-desc { white-space: pre-line; margin: 0 0 8px; }
.kb-link { text-decoration: none; opacity: .7; margin-left: 2px; }
.kb-link:hover { opacity: 1; }

/* «Где качаться» (v0.304) */
.kb-hunt { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.kb-hunt label { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.kb-hunt input[type="number"] { width: 5.5em; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink); font: 15px Nunito, sans-serif; }
.kb-drops a { display: inline-block; margin-right: 4px; }
.kb-drops img { width: 24px; height: 24px; vertical-align: middle; }

/* Ссылки на базу знаний в новостях и гайдах — [[mob:id]], [[item:id]] (v0.304) */
.prose a[href*="/kb/"] { white-space: nowrap; }
.prose a[href*="/kb/"] img { display: inline; height: 1.6em; width: auto; max-width: 3em; margin: 0 4px 0 0; vertical-align: middle;
  image-rendering: pixelated; object-fit: contain; }
.kb-hunt-lead { margin: 0 0 12px; }
@media (max-width: 720px) { .kb-where-cell { overflow-wrap: break-word; } }
.kb-hunt-warn { margin-bottom: 14px; font-size: 14px; }
.kb-hunt-warn p { margin: 0; }

/* Коды наград (v0.335): выпуск и выдача — две колонки, на телефоне — одна */
.codes-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.codes-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.codes-mode { border: 0; padding: 0; margin: 0 0 12px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
label.f.bad input, label.f.bad select, .codes-mode.bad { outline: 2px solid var(--bad); outline-offset: 1px; }
.codes-links { font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre; }

/* Коллекция скинов часов в профиле персонажа (v0.338) */
.profile .skins { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.skin-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skin-list li { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 13px; }
