/* Тёмно-синяя ночь, золото ламп и бирюза алмаза - те же цвета, что в игре и на картинках. */
:root {
  --bg: #0b0d11;
  --panel: #141a23;
  --panel-2: #1b2431;
  --line: #28313f;
  --line-soft: #1f2734;
  --text: #e2e6ee;
  --muted: #8b95a8;
  --gold: #f0b53f;
  --gold-deep: #8f6115;
  --teal: #49d3dd;
  --green: #58d072;
  --shadow: 0 14px 34px rgba(0, 0, 0, .45);
  --r: 12px;
  --inset: #0d1116;
  --veil: rgba(11, 13, 17, .78);
  --head-bg: rgba(13, 16, 22, .93);
  --foot-bg: rgba(11, 13, 17, .7);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* плитка даёт фактуру камня, тёмный слой поверх - чтобы она не спорила с содержимым */
  background: linear-gradient(var(--veil), var(--veil)), url("/img/tile.png") repeat;
  background-size: auto, 340px;
  color: var(--text);
  font: 15px/1.6 Manrope, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .btn {
  font-family: "Russo One", Manrope, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: .2px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffd071; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- шапка ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 24px;
  background: var(--head-bg);
  /* Шапка полупрозрачная, и прокрученный под неё текст читался сквозь меню («+130.1%» за «Вики»). */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; }
.brand img { width: 36px; height: 36px; }
.brand b { color: var(--gold); font-weight: 400; }
.brand:hover { color: var(--text); }

header nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
header nav a {
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
}
header nav a:hover { color: var(--text); background: var(--panel-2); }
header nav a.on { color: var(--gold); background: var(--panel-2); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.off { background: #6b3030; }

.account { display: flex; gap: 8px; align-items: center; }
.me { display: flex; align-items: center; gap: 7px; color: var(--text); font-size: 14px; }
.me .face { --s: 24px; }

/* Лицо со скина: слой головы, поверх - слой шапки. Работает и со старыми скинами 64x32. */
.face {
  --s: 26px;
  display: inline-block;
  flex: none;
  width: var(--s);
  height: var(--s);
  border-radius: calc(var(--s) / 5);
  background-color: var(--inset);
  background-image: var(--skin), var(--skin);
  background-repeat: no-repeat;
  background-size: calc(var(--s) * 8) calc(var(--s) * 8);
  background-position: calc(var(--s) * -5) calc(var(--s) * -1), calc(var(--s) * -1) calc(var(--s) * -1);
  image-rendering: pixelated;
}
.face.portrait {
  --s: 140px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line);
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition: transform .12s ease, filter .12s ease, border-color .12s ease;
}
.btn:hover { color: var(--text); border-color: var(--gold-deep); transform: translateY(-1px); }
.btn.gold {
  background: linear-gradient(180deg, #f8c860, var(--gold));
  border-color: #ffd98a;
  color: #2a1c02;
  box-shadow: 0 6px 18px rgba(240, 181, 63, .22);
}
.btn.gold:hover { filter: brightness(1.07); color: #2a1c02; }
.btn.big { padding: 13px 26px; font-size: 16px; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }

/* ---------- каркас ---------- */
main { width: 100%; max-width: 1140px; margin: 0 auto; padding: 26px 18px 70px; flex: 1; }

h1 { font-size: 30px; margin: 0 0 6px; }
h2 { font-size: 15px; margin: 0 0 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 1.2px; }
.sub { color: var(--muted); margin: 0 0 22px; }
.muted { color: var(--muted); }
.stats li span small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.card h3 { margin: 14px 0 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.page-head img { width: 52px; height: 52px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- баннер ---------- */
.hero {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 380px;
  display: flex;
  align-items: center;
  background: #0d1119 url("/img/hero.jpg") center right / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 10, 15, .95) 12%, rgba(8, 10, 15, .78) 42%, rgba(8, 10, 15, 0) 72%);
}
.hero-in { position: relative; padding: 44px 40px; max-width: 560px; }
.hero h1 { font-size: 46px; line-height: 1.1; margin: 0 0 12px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: #c3cbd9; margin: 0 0 22px; max-width: 440px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- полоса чисел ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 26px;
}
.figures div { background: var(--panel); padding: 16px 20px; }
.figures b {
  display: block;
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  font-size: 26px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.figures span { color: var(--muted); font-size: 13px; }

/* ---------- карточки и списки ---------- */
/* Карточки одного ряда тянутся до одной высоты: короткая рядом с длинной оставляла рваный низ
   (владелец, 17.09.2026: «тут не ровно» про Gold, «Заработать», «Играть» и профиль). */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: stretch; }
/* Столбик из двух карточек в сетке: последняя дотягивается до низа ряда. */
.stack { display: flex; flex-direction: column; }
.stack > .card:last-child { flex: 1; }
/* Главная: три коротких карточки в первом ряду, во втором - лента форума на две колонки и топ.
   Карточки одного ряда тянутся на одну высоту, чтобы низ ряда был ровным. */
.home-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.home-grid .card.wide { grid-column: span 2; }
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-grid .card.wide { grid-column: auto; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.card.rows { padding: 0; overflow: hidden; }

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
}
.row:last-child { border-bottom: 0; }
a.row:hover { background: var(--panel-2); color: var(--text); }
.row b { display: block; font-weight: 700; }
.row span { color: var(--muted); font-size: 13px; }
.row .head { display: flex; align-items: center; gap: 10px; min-width: 0; }

.num { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; flex: none; }

ul.list, ul.players, ul.stats { list-style: none; margin: 0; padding: 0; }
ul.list li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
ul.list li:last-child { border-bottom: 0; }
ul.list li span { display: block; color: var(--muted); font-size: 12px; }
ul.list.rank li { display: flex; align-items: baseline; gap: 9px; }
ul.list.rank i {
  font-style: normal;
  font-family: "Russo One", sans-serif;
  color: var(--muted);
  width: 22px;
  flex: none;
  font-variant-numeric: tabular-nums;
}
ul.list.rank li:nth-child(1) i { color: var(--gold); }
ul.list.rank li:nth-child(2) i, ul.list.rank li:nth-child(3) i { color: #c9ccd4; }
ul.list.rank em { font-style: normal; margin-left: auto; color: var(--muted); font-size: 13px; }

ul.players { display: flex; flex-direction: column; gap: 7px; }
ul.players li { display: flex; align-items: center; gap: 8px; }
ul.players .face { --s: 22px; }

ul.stats li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
ul.stats li:last-child { border-bottom: 0; }
ul.stats span { color: var(--muted); }
ul.stats b { font-variant-numeric: tabular-nums; }

/* ---------- разделы форума ---------- */
.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.section-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--text);
}
.section-card:hover { border-color: var(--gold-deep); background: var(--panel-2); color: var(--text); }
.section-card img { width: 46px; height: 46px; flex: none; }
.section-card b { display: block; font-family: "Russo One", sans-serif; font-weight: 400; font-size: 16px; }
.section-card span { color: var(--muted); font-size: 13px; }
.section-card .num { margin-left: auto; }

/* Строка темы: слева заголовок, справа счётчики и кто отвечал последним. */
.row.topic .last { text-align: right; min-width: 120px; flex: none; }
.row.topic .last b { font-weight: 600; font-size: 13px; }
.row.topic .last span { color: var(--muted); font-size: 12px; }
.row .head > div { min-width: 0; }
.snippet {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

/* Страница «не найдено». */
.lost { text-align: center; padding: 60px 20px; }
.lost img { width: 84px; height: 84px; opacity: .8; margin-bottom: 14px; }
.lost h1 { margin-bottom: 6px; }
.lost .row-btns { justify-content: center; margin-top: 18px; }
.row-btns.center { justify-content: center; }

/* ---------- сообщения форума ---------- */
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin-bottom: 12px; }
.post .who { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }

.post .who time { color: var(--muted); font-size: 12px; margin-left: auto; }
.tag { background: var(--gold-deep); color: #ffe6b0; font-size: 11px; padding: 2px 7px; border-radius: 5px; }
.post .text { word-wrap: break-word; overflow-wrap: anywhere; }

.crumbs { color: var(--muted); font-size: 13px; margin: 0 0 10px; }

/* Картинка в сообщении: скриншот показываем сразу, а не ссылкой. */
.post-img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin: 10px 0;
}

/* Полоска под сообщением: спасибо слева, правка и удаление справа. */
.under {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.under .tools { margin: 0; padding: 0; border: 0; margin-left: auto; }
.under form { display: inline; }
.thanks {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
button.thanks:hover { border-color: var(--gold-deep); color: var(--text); }
.thanks.on { border-color: var(--gold-deep); color: var(--gold); }
.pin.new { color: #8fd6ff; border-color: #2f5f7a; }

/* ---------- формы ---------- */
.form { display: flex; flex-direction: column; gap: 11px; }
.form input, .form textarea {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 13px;
  font: inherit;
  width: 100%;
}
.form input::placeholder, .form textarea::placeholder { color: #5f6878; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form textarea { resize: vertical; }
.form .btn { align-self: flex-start; }
.form input[type=file] { padding: 9px; color: var(--muted); }
/* Галочка в форме (напоминания в профиле): общее правило выше растянуло бы её на всю ширину. */
.form label.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form input[type=checkbox] { width: 18px; height: 18px; padding: 0; margin: 0; flex: none; accent-color: var(--gold); }

.narrow { max-width: 470px; margin: 0 auto; }

.notice { padding: 11px 15px; border-radius: 9px; margin-bottom: 14px; font-size: 14px; }
.notice.error { background: #2a1618; border: 1px solid #6b2b2b; color: #ffb4b4; }
.notice.ok { background: #14251a; border: 1px solid #2f6b39; color: #b6f0c0; }

/* ---------- вход и регистрация поверх картинки ---------- */
.auth-bg {
  margin: 0 0 8px;
  padding: 56px 18px 64px;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0b0d11 url("/img/auth.jpg") center / cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.auth-box {
  width: 100%;
  max-width: 430px;
  background: rgba(16, 20, 27, .94);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 28px 28px;
  box-shadow: var(--shadow);
}
.auth-box h1 { font-size: 25px; margin-bottom: 4px; }
.auth-box .sub { margin-bottom: 18px; font-size: 14px; }
.auth-box .foot { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- профиль ---------- */
.who-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.who-head h1 { margin: 0; }
.who-head p { margin: 2px 0 0; }
.who-tags { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.face.big { --s: 64px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* Строка профиля: подпись с пояснением слева, значение справа. */
ul.facts { list-style: none; margin: 0; padding: 0; }
ul.facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
ul.facts li:last-child { border-bottom: 0; }
ul.facts b { display: block; font-weight: 600; }
ul.facts span { display: block; color: var(--muted); font-size: 12px; }
ul.facts em {
  font-style: normal;
  color: var(--gold);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
ul.facts .dash { color: var(--muted); }
.live { color: var(--green); }
.tag.live { background: #1c4227; color: #b6f0c0; }

.about { margin: 0 0 12px; white-space: pre-wrap; }

/* Игрок в полный рост: части скина разложены по местам, второй слой поверх. */
.skin-card { text-align: center; }
.body-skin {
  --px: 7px;
  position: relative;
  width: calc(var(--px) * 16);
  height: calc(var(--px) * 32);
  margin: 4px auto 16px;
}
.body-skin i {
  position: absolute;
  background-image: var(--skin);
  background-repeat: no-repeat;
  background-size: calc(var(--px) * 64) calc(var(--px) * 64);
  image-rendering: pixelated;
}
/* Скин спереди и сзади: показывается одна сторона, кнопки под ней переключают. */
.skin-views .body-skin.back { display: none; }
.skin-views[data-side="back"] .body-skin.back { display: block; }
.skin-views[data-side="back"] .body-skin:not(.back) { display: none; }
.body-skin .cape { z-index: 3; }
.skin-turn .btn.on { border-color: var(--gold-deep); color: var(--gold); }
/* Метка профессии у автора и биржа на главной. */
.tag.prof { opacity: 0.8; }
.movers { list-style: none; margin: 0; padding: 0; }
.movers li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line-soft); }
.movers li:last-child { border-bottom: 0; }
.movers em { font-style: normal; font-variant-numeric: tabular-nums; }
.movers em.up { color: var(--green); }
.movers em.down { color: #e07c7c; }
.news-card p { margin: 4px 0; }
.news-lead { color: var(--text); }
.news-older { margin-top: 10px; border-top: 1px solid var(--line-soft); }
/* Заголовок карточки со ссылкой справа - как у афиши. */
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-head a { font-size: 13px; }
.body-skin .hat,
.body-skin .coat,
.body-skin .sleeve-r,
.body-skin .sleeve-l,
.body-skin .pant-r,
.body-skin .pant-l { z-index: 2; }
.skin-card .form { text-align: left; }

/* Плащ: задняя сторона из раскладки 64×32 (столбцы 1..11, строки 1..17), крупно. */
.cape-card { text-align: center; }
.cape-card .form { text-align: left; }
.cape-view {
  --px: 8px;
  width: calc(var(--px) * 10);
  height: calc(var(--px) * 16);
  margin: 4px auto 16px;
  background-image: var(--cape);
  background-repeat: no-repeat;
  background-size: calc(var(--px) * 64) calc(var(--px) * 32);
  background-position: calc(var(--px) * -1) calc(var(--px) * -1);
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px var(--line);
}
.cape-view.empty { background-image: none; box-shadow: none; border: 1px dashed var(--line); }

/* ---------- «как начать» и скриншоты ---------- */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 46px; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--gold-deep);
  color: var(--gold);
  font-family: "Russo One", sans-serif;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14px; }
/* Кнопка или итог внутри шага («Привязать Телеграм», 01.10.2026) - своей строкой под пояснением. */
.steps .step-do, .notice .step-do { display: block; margin: 10px 0; }
.steps .step-do.ok { color: #b6f0c0; }
.auth-steps { margin-top: 20px; }
.auth-steps li { padding-bottom: 14px; }

.banner {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 20px;
  display: block;
  box-shadow: var(--shadow);
}
.banner img {
  width: 100%;
  display: block;
  max-height: 300px;
  object-fit: cover;
  object-position: center 42%;
}

/* Ровно по три в ряд (08.10.2026): шесть снимков при auto-fit ложились четыре и два. */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; } }
.shots figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.shots img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.shots figcaption { padding: 9px 12px; font-size: 13px; color: var(--muted); }

.strip { margin: 30px 0 10px; }

/* ---------- поиск и заголовок с поиском ---------- */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.search { display: flex; gap: 8px; margin-bottom: 22px; }
.search.wide { margin: 0 0 18px; max-width: 520px; }
.search input {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 9px 13px;
  font: inherit;
  min-width: 220px;
}
.search input:focus { outline: none; border-color: var(--gold); }

/* ---------- страницы ---------- */
.pager { display: flex; gap: 6px; margin: 14px 0 18px; flex-wrap: wrap; align-items: center; }
.pager a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pager a:hover { color: var(--text); border-color: var(--gold-deep); }
.pager a.on { background: var(--panel-2); color: var(--gold); border-color: var(--gold-deep); }
.pager .gap { color: var(--muted); padding: 0 2px; }

/* ---------- метки тем ---------- */
.pin {
  font-family: Manrope, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--gold);
  border: 1px solid var(--gold-deep);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: 1px;
}
.pin.closed { color: var(--muted); border-color: var(--line); }
.tag.ban { background: #5a2222; color: #ffc9c9; }

/* ---------- кнопки под сообщением и панель админа ---------- */
.tools { display: flex; gap: 12px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line-soft); }
.tools a, .tools button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.tools a:hover, .tools button:hover { color: var(--gold); }
.tools form { display: inline; }

.modbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.modbar form { display: inline; }
.btn.danger { border-color: #6b2b2b; color: #ffb4b4; }
.btn.danger:hover { border-color: #a33; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- колокольчик ---------- */
.bell {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #2a1c02;
  font-size: 12px;
  font-weight: 800;
}
.bell:hover { color: #2a1c02; filter: brightness(1.08); }
a.row.fresh { border-left: 3px solid var(--gold); }

/* ---------- адрес сервера ---------- */
.ipbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--gold-deep);
  border-radius: var(--r);
  padding: 14px 20px;
  margin-bottom: 26px;
}
.ipbox span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.ipbox code {
  font-family: "Russo One", monospace;
  font-size: 21px;
  color: var(--gold);
  letter-spacing: .5px;
}

/* ---------- правила ---------- */
ul.rules { list-style: none; margin: 0; padding: 0; }
ul.rules li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
ul.rules li:last-child { border-bottom: 0; }
ul.rules b { display: block; margin-bottom: 3px; }
ul.rules span { color: var(--muted); }
/* Срок наказания — отдельной строкой под статьёй: его ищут глазами, а не читают в потоке. */
ul.rules i.punish {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 13px;
  color: var(--gold, #d8a13a);
}

/* Разделитель «или» между входом паролем и входом через Телеграм. */
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tg-login { display: flex; justify-content: center; min-height: 40px; }

.code-big {
  font-family: "Russo One", monospace;
  font-size: 30px;
  letter-spacing: 6px;
  color: var(--gold);
  background: var(--inset);
  border: 1px dashed var(--gold-deep);
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  margin: 6px 0 12px;
}

/* Поле-ловушка для ботов: человек его не видит и не заполняет. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- подвал ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--foot-bg);
  color: var(--muted);
  font-size: 13px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
footer .f-brand { display: flex; align-items: center; gap: 9px; }
footer .f-links { display: flex; gap: 16px; flex-wrap: wrap; }
footer .f-links a { color: var(--muted); }
footer .f-links a:hover { color: var(--gold); }
footer img { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .hero { min-height: 0; background-position: 72% center; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 10, 15, .82), rgba(8, 10, 15, .96)); }
  .hero-in { padding: 30px 22px; }
  .hero h1 { font-size: 33px; }
  header { gap: 12px; padding: 10px 14px; }
  header nav { order: 3; width: 100%; flex: none; }
  .status { order: 2; }
}

/* На телефоне шапка съедала пол-экрана: жмём её в три узкие строки. */
@media (max-width: 640px) {
  .row.topic .last { display: none; }
  header { padding: 8px 12px; gap: 8px; }
  .brand { font-size: 14px; gap: 7px; }
  .brand img { width: 28px; height: 28px; }
  .account { margin-left: auto; gap: 6px; }
  .account .btn { padding: 6px 11px; font-size: 13px; }
  .status { order: 4; font-size: 12px; padding: 4px 9px; }
  header nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 2px; }
  header nav a { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
  main { padding: 18px 14px 50px; }
  .hero h1 { font-size: 28px; }
  .hero-in { padding: 26px 18px; }
  h1 { font-size: 25px; }
  .page-head img { width: 42px; height: 42px; }
  footer { padding: 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* Вики: списки статей в две-три колонки, чтобы семь десятков строк не тянулись вниз лентой. */
.wiki-find { display: flex; gap: 8px; margin: 0 0 18px; }
.wiki-find input {
  flex: 1; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
}
.wiki-cols { columns: 3 220px; column-gap: 26px; list-style: none; margin: 0; padding: 0; }
.wiki-cols li { break-inside: avoid; margin: 0 0 7px; }
.wiki-cols a { color: var(--text); text-decoration: none; }
.wiki-cols a:hover { color: var(--gold); }
.wiki-list { list-style: none; margin: 0; padding: 0; }
.wiki-list li { margin: 0 0 12px; }
.wiki-list a { text-decoration: none; color: var(--text); display: block; }
.wiki-list a:hover b { color: var(--gold); }
.wiki-list span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.wiki-text p { margin: 0 0 12px; line-height: 1.6; }
.wiki-text p:last-child { margin-bottom: 0; }
.crumbs { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.crumbs a { color: var(--muted); }

/* ---------- карта ---------- */

/*
 * Живая карта стоит рамкой в страницу, а не отдельной вкладкой: шапка и меню остаются на
 * месте, и человек не теряет сайт. Высота от высоты окна, а не в пикселях, - на ноутбуке
 * карта не должна занимать три экрана, а на мониторе не должна быть щёлочкой. Нижний предел
 * нужен телефону: там 70vh это уже мало, чтобы что-то разглядеть.
 */
iframe.map-live {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #0e1420;
}

ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
ul.plain li:last-child { border-bottom: 0; }
ul.plain b { color: var(--gold); font-weight: 600; }

/* Цитата в сообщении: полоса слева и приглушённый текст - видно, что это чужие слова. */
blockquote {
  margin: 0 0 10px; padding: 6px 0 6px 12px;
  border-left: 3px solid var(--gold-deep); color: var(--muted);
}
blockquote:last-child { margin-bottom: 0; }
.under .quote {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 13px;
}
.under .quote:hover { color: var(--gold); }

/* Личные сообщения: список разговоров и сама переписка. */
.pm-row { display: flex; align-items: center; gap: 12px; }
.pm-main { flex: 1; min-width: 0; }
.pm-main b { display: block; }
.pm-last { display: block; color: var(--muted); font-size: 13px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.pm-row.fresh .pm-last { color: var(--text); }
.pm-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pm-count { background: var(--gold); color: #241a04; border-radius: 10px;
  padding: 1px 7px; font-size: 12px; font-weight: 700; }
.pm-talk { display: flex; flex-direction: column; gap: 10px; }
.pm { max-width: 78%; padding: 9px 13px; border-radius: 12px; background: var(--panel-2); }
.pm.out { align-self: flex-end; background: var(--gold-deep); }
.pm time { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.pm.out time { color: #e8d7ae; }
.pm-body { overflow-wrap: anywhere; }
.bell.mail { background: var(--teal); color: #06222a; }

/* Вики: полки, плитки предметов и сетки крафтов. Иконки 16x16, поэтому увеличиваем их
   без сглаживания - иначе пиксель-арт превращается в кашу. */
.shelves { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 26px; }
.shelf {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); text-decoration: none;
}
.shelf:hover { border-color: var(--gold-deep); background: var(--panel-2); }
.shelf img { width: 28px; height: 28px; image-rendering: pixelated; }
/* Название и пояснение в две строки: в одну «Инструменты 27» лепилось в тесноту, а голое
   число ничего не говорило. */
.shelf-text { display: flex; flex-direction: column; min-width: 0; }
.shelf-text b { line-height: 1.2; }
.shelf-text i { font-style: normal; color: var(--muted); font-size: 12px; }
h2.split { margin: 26px 0 12px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; }
.tile {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border: 1px solid var(--line-soft); border-radius: 10px; color: var(--text);
  text-decoration: none; font-size: 13px; background: var(--panel-2);
}
.tile:hover { border-color: var(--gold-deep); }
.tile img, .tile .noicon { width: 24px; height: 24px; flex-shrink: 0; image-rendering: pixelated; }
.tile .noicon, .item-icon.noicon { background: var(--line); border-radius: 5px; display: inline-block; }
/* Название в две строки, а не многоточием: «Бур третьей модели» обрезался до «Бур третьей...»
   и отличить его от четвёртой было нельзя. */
.tile span { line-height: 1.2; overflow-wrap: anywhere; }
/* Сколько цветов свёрнуто в карточку семейства. */
.tile .colors { margin-left: auto; font-size: 11px; opacity: 0.7; white-space: nowrap; }

.item-head { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; }
.item-icon { width: 56px; height: 56px; image-rendering: pixelated; }
.item-head h1 { margin: 0; }
.source { color: var(--green); }

.craft { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.craft:last-child { margin-bottom: 0; }
.craft-where { color: var(--muted); font-size: 12px; width: 72px; flex-shrink: 0; }
/* Клетка широкая не ради красоты: у ванильных вещей мы показываем название словом, а
   «Железный слиток» в 38 пикселей не влезает и наезжает на соседей. */
.grid3 { display: grid; grid-template-columns: repeat(3, 58px); gap: 4px; }
.parts { display: flex; gap: 4px; flex-wrap: wrap; }
.slot {
  width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px;
  overflow: hidden;
}
.slot img { width: 32px; height: 32px; image-rendering: pixelated; }
.slot.empty { background: transparent; border-color: var(--line-soft); }
.slot.text {
  padding: 3px; font-size: 9.5px; color: var(--muted); text-align: center;
  line-height: 1.15; overflow-wrap: anywhere;
}
.craft .arrow { color: var(--muted); font-size: 18px; }
.craft .count { color: var(--gold); font-weight: 700; }

/* Вики: профессии и подсказки. */
.prof-note { margin: 0 0 14px; }
.prof-note a {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px;
  background: var(--panel-2); border: 1px solid var(--gold-deep); border-radius: 999px;
  color: var(--gold); font-size: 13px; text-decoration: none;
}
.prof-note img { width: 18px; height: 18px; image-rendering: pixelated; }
.perks { margin: 10px 0; padding-left: 20px; }
.perks li { margin: 0 0 5px; }

/* Метки на карточке предмета: полка, профессия, цена - видно сразу, не читая описание. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 0; }
.chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  text-decoration: none;
}
a.chip:hover { border-color: var(--gold-deep); color: var(--text); }
.chip.gold { color: var(--gold); border-color: var(--gold-deep); }
.chip.green { color: var(--green); border-color: #2d5c39; }

/* Расы: что нужно на операцию - картинкой, числом и словом, чтобы не гадать. */
.needs { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0; }
.need { display: flex; align-items: center; gap: 8px; }
.need b { color: var(--gold); }
.need > span { color: var(--muted); font-size: 13px; }
.perks.minus li { color: var(--muted); }

/* Перечисления в статьях - строками. Сплошным абзацем список из пятнадцати достижений
   с числами читать невозможно. */
.wiki-rows { list-style: none; margin: 6px 0 12px; padding: 0; }
.wiki-rows li {
  padding: 7px 0 7px 14px; border-left: 2px solid var(--line);
  margin: 0 0 2px; line-height: 1.45;
}
.wiki-rows li:hover { border-left-color: var(--gold-deep); }

/* Заголовки внутри статьи: в моде это отдельные короткие строки. */
.wiki-text h3, .card h3 {
  margin: 18px 0 6px; font-size: 15px; color: var(--gold);
  text-transform: uppercase; letter-spacing: .04em;
}
.wiki-text h3:first-child, .card h3:first-child { margin-top: 0; }

/* Вики: поиск в шапке внутренней страницы и фильтр на полке. */
.crumb-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 6px; }
.crumb-line .crumbs { margin: 0; flex: 1; }
.wiki-find.small { margin: 0; max-width: 320px; flex: 1 1 220px; }
.wiki-find.small input { padding: 7px 10px; font-size: 13px; }
.tile-filter {
  width: 100%; padding: 9px 12px; margin: 0 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
}
.tile-filter:focus { outline: none; border-color: var(--gold-deep); }

/* Мобы: портреты рисуются из моделей, поэтому они крупнее иконок вещей. */
.mobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; margin: 0 0 26px; }
.mob-tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); text-decoration: none; font-size: 13px; text-align: center;
}
.mob-tile:hover { border-color: var(--gold-deep); background: var(--panel-2); }
.mob-tile img { width: 86px; height: 86px; }
.mob-big { width: 132px; height: 132px; }
.drops { list-style: none; margin: 0; padding: 0; }
.drops li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.drops .tile { width: 200px; flex-shrink: 0; }
.drop-note { color: var(--green); font-size: 13px; }

/* «Зачем свой лаунчер»: короткий список причин, а не стена текста. */
.why { list-style: none; margin: 10px 0; padding: 0; }
.why li { padding: 7px 0 7px 16px; border-left: 2px solid var(--gold-deep); margin: 0 0 6px; }
.why b { display: block; }

/* Страница цен биржи: таблица в четыре десятка строк, читается столбцами. */
.ex-head { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 16px; margin-bottom: 14px; color: #c3cbd9; font-size: 14px; }
.ex-head b { color: var(--text); }
.ex-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.ex { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--panel); }
table.ex th { text-align: left; padding: 10px 14px; background: var(--panel-2); color: var(--muted);
  font-weight: 600; white-space: nowrap; }
table.ex td { padding: 8px 14px; border-top: 1px solid var(--line-soft); white-space: nowrap; }
table.ex td.n, table.ex th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.ex td.t { width: 18px; padding-left: 0; padding-right: 0; }
/* «Лимит в день»: с чем лимит общий - мелкой строкой под числом. */
table.ex td small { display: block; color: var(--muted); font-size: 12px; }
table.ex tr:hover td { background: var(--panel-2); }
/* Игроки: таблица шире экрана телефона - прокрутка внутри карточки, а не всей страницы. */
.players-card { padding: 0; overflow-x: auto; }
table.players th a { color: inherit; text-decoration: none; }
table.forbes em { font-style: normal; font-variant-numeric: tabular-nums; }
table.forbes em.up { color: var(--green); }
table.forbes em.down { color: #e07c7c; }
table.players th.sorted a { color: var(--gold); }
table.players td .who { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
table.players td .who small { display: block; color: var(--muted); font-size: 12px; }
table.players td .who .dot { display: inline-block; vertical-align: middle; margin-right: 4px; }
table.ex .up { color: #6fcf7f; font-style: normal; }
table.ex .down { color: #e0645c; font-style: normal; }
table.ex td.d { width: 120px; padding-top: 4px; padding-bottom: 4px; }
table.ex .spark { width: 110px; height: 20px; display: block; }

/* Достижения в профиле: полоска, как во вкладке «Статистика» в игре (16.09.2026). */
.achs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .achs { grid-template-columns: 1fr; } }
.ach { padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); }
.ach.done { background: rgba(255, 215, 0, 0.08); }
.ach-head { display: flex; justify-content: space-between; gap: 8px; }
.ach.done .ach-head b { color: #ffd700; }
.ach-xp { color: #6fcf7f; font-size: 0.9em; white-space: nowrap; }
.ach:not(.done) .ach-xp { color: #8a8a90; }
.ach-desc { display: flex; justify-content: space-between; gap: 8px; color: #9a9aa2; font-size: 0.9em; }
.ach-label { white-space: nowrap; }
.ach-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); margin-top: 6px; overflow: hidden; }
.ach-bar i { display: block; height: 100%; background: #55cc55; }
.ach.done .ach-bar i { background: #ffd700; }

/* Корзины биржи. */
.baskets .chip { display: inline-block; margin: 0 6px 4px 0; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); }
.baskets .small { display: block; margin-top: 4px; font-size: 0.85em; }

/* Сумма файла лаунчера: длинное слово без пробелов должно переноситься, а не вылезать из карточки. */
.hash { word-break: break-all; }

/* Событие города на бирже. */
.ex-head.event { border-left: 3px solid #ffd700; padding-left: 10px; }

/* Биржа, 30.09.2026: деньги за сутки, итог закупки города, поиск и сортировка по доске. */
.ex-head .small { display: block; margin-top: 4px; font-size: 0.85em; }
.ex-head.event-last { border-left: 3px solid var(--gold-deep); padding-left: 10px; }
.ex-head a { color: var(--text); }
.ex-head a:hover { color: var(--gold); }
.ex-days { margin-top: 8px; }
.ex-days summary { cursor: pointer; color: var(--gold); }
.ex-days .ex-wrap { margin-top: 8px; }
.ex-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 12px; }
.ex-tools .tile-filter { margin: 0; max-width: 320px; flex: 1 1 200px; }
.ex-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #c3cbd9; cursor: pointer; }
.ex-json { margin-left: auto; font-size: 13px; }
table.ex button.ex-sort {
  background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; white-space: nowrap;
}
table.ex button.ex-sort:hover { color: var(--text); }
table.ex th[aria-sort] button.ex-sort { color: var(--gold); }
table.ex th[aria-sort="descending"] button.ex-sort::after { content: " ↓"; }
table.ex th[aria-sort="ascending"] button.ex-sort::after { content: " ↑"; }
.ex-head .up, .xchart .up { color: #6fcf7f; }
.ex-head .down, .xchart .down { color: #e0645c; }
.figures b.up { color: #6fcf7f; }
.figures b.down { color: #e0645c; }
table.ex a.lot { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
table.ex a.lot:hover { color: var(--gold); }
.ex-icon { width: 20px; height: 20px; flex-shrink: 0; image-rendering: pixelated; }
.ex-icon.noicon { display: inline-block; background: var(--line); border-radius: 4px; }
/* Аукцион: у ванильной вещи нет страницы вики, и лот без ссылки стоит в строке так же, как со ссылкой. */
table.ex span.lot { display: inline-flex; align-items: center; gap: 8px; }
table.ex .auction-left.down { color: #e0645c; }
p.muted.small { font-size: 0.85em; }

/* Лента сделок биржи (30.09.2026): две колонки строк, на телефоне одна. */
.ex-trades { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr)); font-variant-numeric: tabular-nums; }
/* На телефоне строке не хватает ширины: время уходит на вторую строку, а название не сжимается в точку. */
@media (max-width: 700px) {
  .ex-trades { grid-template-columns: minmax(0, 1fr); }
  .ex-trades li { flex-wrap: wrap; row-gap: 0; }
}
.ex-trades li { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.ex-trades a.lot { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.ex-trades a.lot span { overflow: hidden; text-overflow: ellipsis; }
.ex-trades .ex-icon { width: 16px; height: 16px; }

/* Графики лота. Цвета проверены на тёмных панелях всех стилей сайта: линия цены - своя, продано и
   куплено - бирюза и золото, различимые и при дальтонизме. */
:root { --ex-price: #8177ea; --ex-sold: #1a9fae; --ex-bought: #c2831a; }
.xchart { margin: 0 0 22px; }
.xchart figcaption { margin: 0 0 10px; font-size: 14px; }
.xc-plot { position: relative; height: 220px; margin: 0 72px 0 56px; outline-offset: 6px; touch-action: pan-y; }
.xc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xc-grid line { stroke: var(--line-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.xc-area { fill: var(--ex-price); opacity: 0.1; }
.xc-line { fill: none; stroke: var(--ex-price); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.xc-y { position: absolute; right: calc(100% + 8px); transform: translateY(-50%); font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.xc-end { position: absolute; left: calc(100% + 10px); transform: translateY(-50%); font-size: 13px; font-weight: 600;
  color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.xc-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--ex-price);
  box-shadow: 0 0 0 2px var(--panel); transform: translate(-50%, -50%); pointer-events: none; }
.xc-hair { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--muted); opacity: 0.5; pointer-events: none; }
.xc-tip { position: absolute; top: 6px; z-index: 2; padding: 8px 10px; border-radius: 8px; background: var(--panel-2);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; white-space: nowrap;
  pointer-events: none; font-variant-numeric: tabular-nums; }
.xc-tip b { color: var(--text); }
.xc-x { position: relative; height: 22px; margin: 6px 72px 0 56px; font-size: 12px; color: var(--muted); }
.xc-x span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.xc-keys { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font-size: 13px; color: #c3cbd9; }
.xc-keys span { display: inline-flex; align-items: center; gap: 6px; }
.xv-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.xv-key.sold, .xv-sold { background: var(--ex-sold); }
.xv-key.bought, .xv-bought { background: var(--ex-bought); }
.xv { margin: 0 0 18px; }
.xv-plot { position: relative; height: 170px; margin: 0 16px 0 56px; }
.xv-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-soft); }
.xv-bars { position: absolute; inset: 0; display: flex; align-items: stretch; }
.xv-day { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; outline-offset: -2px; }
.xv-day i { width: min(24px, 42%); border-radius: 4px 4px 0 0; }
.xv-day:hover i, .xv-day:focus i { filter: brightness(1.25); }
.xv-x { display: flex; margin: 6px 16px 0 56px; font-size: 12px; color: var(--muted); }
.xv-x span { flex: 1; text-align: center; white-space: nowrap; overflow: visible; }
@media (max-width: 600px) {
  .xc-plot, .xc-x { margin-left: 44px; margin-right: 60px; }
  .xv-plot, .xv-x { margin-left: 44px; margin-right: 4px; }
  .ex-json { margin-left: 0; }
  .xc-x span.wide, .xv-x span.wide { visibility: hidden; }
}

/* Пометка в админке: «ещё N учёток с этого адреса» и прочее, на что стоит посмотреть.
   Золотом, а не красным: это повод проверить, а не обвинение - за одним роутером живёт семья. */
.warn { color: var(--gold); font-weight: 600; }

/* Приход с шортсов и TikTok - весь мобильный, а игра ставится на компьютер. Человеку с телефона
   надо честно это сказать и дать сделать то, что с телефона можно: занять ник и прислать себе
   ссылку. На компьютере блок не нужен и не показывается. */
.phone-note { display: none; }
@media (max-width: 720px) {
  .phone-note {
    display: block;
    margin: 14px 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
  }
  .phone-note b { color: var(--gold); }
  .phone-note p { margin: 8px 0; color: var(--muted); }
  .phone-note .phone-link span { color: var(--text); }
  .phone-note .btn { width: 100%; text-align: center; }
}

/* Разметка в сообщениях (новости, 24.09.2026): заголовок золотом, пункты списка, жирное начало пункта. */
.post .text h3.post-h { color: var(--gold); font-size: 17px; margin: 14px 0 6px; }
.post .text h3.post-h:first-child { margin-top: 0; }
.post .text ul.post-list { margin: 4px 0 10px; padding-left: 22px; }
.post .text ul.post-list li { margin: 5px 0; }
.post .text ul.post-list li::marker { color: var(--gold); }
.post .text b { color: #ffe6b0; font-weight: 600; }

/* Подсказка после нажатия «Скачать лаунчер»: что покажет Windows и куда нажать (26.09.2026). */
.dl-help { position: fixed; inset: 0; z-index: 50; background: rgba(5, 8, 12, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.dl-help[hidden] { display: none; }
.dl-box { position: relative; max-width: 560px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.dl-box h2 { margin: 0 32px 12px 0; color: var(--gold); }
.dl-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted);
  font-size: 26px; line-height: 1; cursor: pointer; }
.dl-steps { margin: 0 0 12px; padding-left: 22px; }
.dl-steps li { margin: 0 0 12px; line-height: 1.5; }
.ss { margin: 10px 0; background: #0a5ea8; color: #fff; border-radius: 4px; padding: 16px 18px;
  font-family: "Segoe UI", system-ui, sans-serif; font-size: 13px; }
.ss-title { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.ss-text { opacity: 0.9; margin-bottom: 10px; }
.ss-link { text-decoration: underline; margin-bottom: 14px; }
.ss-buttons { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.ss-run, .ss-no { border: 1px solid rgba(255, 255, 255, 0.85); padding: 6px 12px; }
.ss-run { background: rgba(255, 255, 255, 0.15); }
.ss .mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: 50%; background: var(--gold); color: #1a1205; font-weight: 700; font-size: 12px;
  margin-right: 4px; text-decoration: none; }

/* Строка «Телеграм» в профиле: кнопка привязки и код прямо в «Информации» (27.09.2026). */
ul.facts li.tg-fact { flex-wrap: wrap; align-items: center; }
.tg-fact-do { flex: 1 1 220px; text-align: right; }
.tg-fact-do p { margin: 6px 0; }
.tg-fact-do .code-big { display: inline-block; margin: 4px 0; }
@media (max-width: 640px) { .tg-fact-do { text-align: left; flex-basis: 100%; } }

/* Баннер профиля и друзья (27.09.2026). */
.profile-banner {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 1;
  max-height: 280px;
  margin-bottom: 14px;
  background: var(--inset);
  box-shadow: 0 0 0 1px var(--line);
}
.profile-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who-tags form { margin: 0; }
.friends { display: flex; flex-wrap: wrap; gap: 8px; }
.friend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--inset);
  color: inherit;
  text-decoration: none;
}
.friend:hover { border-color: var(--gold-deep); }
.friend-list { list-style: none; margin: 0; padding: 0; }
.friend-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; flex-wrap: wrap; }
.friend-list li .friend { margin-right: auto; }
.friend-list form { margin: 0; }

/* Баннер правится на месте: кнопки в углу картинки, пустая рамка у своего профиля. */
.profile-banner { position: relative; }
.banner-tools { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.banner-tools form { margin: 0; }
.banner-tools label { cursor: pointer; }
.profile-banner.empty {
  aspect-ratio: auto;
  height: 130px;
  box-shadow: none;
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  padding: 0 18px;
}
.profile-banner.empty p { margin: 0; max-width: 55%; }
@media (max-width: 640px) {
  .profile-banner.empty { height: auto; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .profile-banner.empty p { max-width: none; }
  .profile-banner.empty .banner-tools { position: static; }
}

/* Кнопки баннера - строкой под ним, а не поверх картинки (владелец 27.09.2026). */
.profile-banner:not(.empty) { margin-bottom: 8px; }
.profile-banner + .banner-tools { position: static; justify-content: flex-end; margin: 0 0 14px; }

/* Кнопки баннера - в строке с ником; окно подгонки баннера (27.09.2026). */
.who-tags { align-items: center; }
.who-tags label.btn { cursor: pointer; margin: 0; }
.bn-edit {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5, 7, 10, 0.78);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.bn-edit[hidden] { display: none; }
.bn-box {
  width: min(900px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.bn-box h2 { margin-top: 0; }
.bn-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 1; border-radius: 12px;
  background: var(--inset); box-shadow: 0 0 0 2px var(--gold-deep);
  cursor: grab; touch-action: none; user-select: none;
}
.bn-frame:active { cursor: grabbing; }
.bn-frame img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.bn-zoom { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
.bn-zoom input { flex: 1; }
.bn-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Фон профиля (владелец 27.09.2026: «выбор заднего фона, каждого цвета один»). Страница профиля
   кладёт метку <i id="pbg-цвет">, и body:has() перекрашивает всю страницу; те же правила рисуют
   образцы в окне выбора (.pbg-swatch.pbg-цвет). Узоры - CSS и SVG строкой, картинок не качаем. */
body:has(#pbg-black), .pbg-swatch.pbg-black {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 15v14M15 22h14' stroke='%23ffffff' stroke-opacity='.13' stroke-width='2'/%3E%3C/svg%3E") #07080a;
}
body:has(#pbg-white), .pbg-swatch.pbg-white {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M18 4L32 18L18 32L4 18Z' fill='none' stroke='%23000000' stroke-opacity='.08' stroke-width='1.5'/%3E%3C/svg%3E") #e9ecf1;
}
body:has(#pbg-red), .pbg-swatch.pbg-red {
  background: repeating-linear-gradient(45deg, rgba(255, 70, 70, .09) 0 3px, transparent 3px 24px), #1b0608;
}
body:has(#pbg-orange), .pbg-swatch.pbg-orange {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cpath d='M0 15L10 5L20 15L30 5L40 15' fill='none' stroke='%23ff9a3c' stroke-opacity='.16' stroke-width='2'/%3E%3C/svg%3E") #1b0d03;
}
body:has(#pbg-yellow), .pbg-swatch.pbg-yellow {
  background:
    linear-gradient(rgba(255, 210, 70, .10) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 210, 70, .10) 1px, transparent 1px) 0 0 / 32px 32px,
    #171304;
}
body:has(#pbg-green), .pbg-swatch.pbg-green {
  background: conic-gradient(rgba(70, 220, 130, .08) 25%, transparent 0 50%, rgba(70, 220, 130, .08) 0 75%, transparent 0) 0 0 / 44px 44px, #04130a;
}
body:has(#pbg-blue), .pbg-swatch.pbg-blue {
  background:
    radial-gradient(rgba(255, 255, 255, .45) 1px, transparent 1.6px) 0 0 / 56px 56px,
    radial-gradient(rgba(160, 200, 255, .25) 1px, transparent 1.6px) 28px 28px / 56px 56px,
    linear-gradient(#050a1c, #0b1433);
}
body:has(#pbg-purple), .pbg-swatch.pbg-purple {
  background: radial-gradient(rgba(190, 120, 255, .16) 2.5px, transparent 3px) 0 0 / 26px 26px, #11061e;
}
body:has(#pbg-blue), body:has(#pbg-purple) { background-attachment: fixed; }

/* На белом фоне то, что лежит прямо на странице, а не в карточках, - тёмным. */
body:has(#pbg-white) .who-head h1 { color: #11151b; }
body:has(#pbg-white) .who-head p,
body:has(#pbg-white) footer,
body:has(#pbg-white) footer a { color: #48505c; }
body:has(#pbg-white) footer { background: rgba(255, 255, 255, .6); }

.pbg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.pbg-grid form { margin: 0; }
.pbg-swatch {
  width: 100%;
  height: 74px;
  border-radius: 10px;
  border: 2px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 6px 8px;
  font: inherit;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}
.pbg-swatch.pbg-white { color: #11151b; text-shadow: none; }
.pbg-swatch.pbg-stone {
  background: linear-gradient(var(--veil), var(--veil)), url("/img/tile.png") repeat;
  background-size: auto, 170px;
}
.pbg-swatch.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-deep); }
.pbg-swatch:hover { border-color: var(--gold-deep); }

/* Размер баннера: подсказка под ником и живой счётчик в окне подгонки. */
.banner-hint { font-size: 12px; }
.bn-info { margin: 4px 0 8px; font-size: 13px; }
.bn-info.ok { color: var(--green); }
.bn-info.warn { color: #ffb347; }
body:has(#pbg-white) .who-head p.banner-hint { color: #48505c; }

/* Своя ава поверх головы скина; своя голова в профиле - кнопка смены (27.09.2026). */
.face { position: relative; overflow: hidden; vertical-align: middle; }
.face .ava { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; border-radius: inherit; }
.face-edit { position: relative; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 10px; line-height: 0; }
.face-edit .fe-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  font: 600 11px/1.8 inherit; color: #fff; background: rgba(0, 0, 0, .65);
  border-radius: 0 0 10px 10px; opacity: 0; transition: opacity .15s;
}
.face-edit:hover .fe-label, .face-edit:focus-visible .fe-label { opacity: 1; }
.bn-frame.square { aspect-ratio: 1 / 1; width: min(360px, 100%); margin: 0 auto; }

/* ---------- профиль как страница игрока (27.09.2026) ---------- */
.p-hero {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 18px;
  margin-bottom: 14px;
}
.p-cover { aspect-ratio: 4 / 1; max-height: 300px; background: var(--inset); }
.p-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Без баннера - короткая полоса в золоте, чтобы ава всё равно было на чём «сидеть». */
.p-hero.no-cover .p-cover {
  aspect-ratio: auto;
  height: 90px;
  background: linear-gradient(120deg, #2a1d06, var(--inset) 55%, #1b2431);
}
.p-ava { margin-top: -56px; position: relative; z-index: 1; display: flex; justify-content: center; }
.face.p-face { --s: 104px; border-radius: 16px; box-shadow: 0 0 0 4px var(--panel), 0 6px 18px rgba(0, 0, 0, .5); }
.p-ava .face-edit, .p-ava .face-edit .fe-label { border-radius: 16px; }
.p-ava .face-edit .fe-label { border-radius: 0 0 16px 16px; }
.p-nick { margin: 12px 0 6px; font-size: 30px; }
.p-clan { color: var(--gold); }
.p-tags { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; min-height: 4px; }
.tag.g-vip { background: #1c4227; color: #b6f0c0; }
.tag.g-premium { background: #4a360b; color: #ffd873; }
.p-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding: 0 12px; }
.p-actions form { margin: 0; }
.p-actions label.btn { cursor: pointer; margin: 0; }

.p-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 14px;
}
.p-tabs button {
  flex: none;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
}
.p-tabs button:hover { color: var(--text); background: var(--panel-2); }
.p-tabs button.on { color: var(--gold); background: rgba(240, 180, 60, .12); }
.p-tabs small { color: var(--muted); font-weight: 400; margin-left: 4px; }

.p-body { display: grid; grid-template-columns: 330px 1fr; gap: 16px; align-items: start; }
.p-side .card + .card { margin-top: 16px; }
.p-main > .p-pane > .card + .card, .p-main > .p-pane > .grid { margin-top: 0; }

.lvl-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #1a1206;
  margin-bottom: 12px;
}
.lvl-plate b { font-family: "Russo One", sans-serif; font-size: 40px; line-height: 1; }
.lvl-plate span { font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 12px; margin-top: 4px; }
.p-bar { margin: 10px 0; }
.p-bar-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.p-bar-head span { color: var(--muted); }
.p-bar-track { height: 8px; border-radius: 6px; background: var(--inset); overflow: hidden; }
.p-bar-track i { display: block; height: 100%; background: var(--gold); border-radius: 6px; }
.p-bar-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 3px; }

.p-facts { list-style: none; margin: 12px 0 0; padding: 0; background: var(--inset); border-radius: 12px; }
.p-facts li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.p-facts li:last-child { border-bottom: 0; }
.p-facts b { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.p-facts em { margin-left: auto; font-style: normal; font-weight: 700; text-align: right; }
.p-ico { display: inline-flex; color: var(--muted); }

.p-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.p-stats > .muted { grid-column: 1 / -1; }
.p-stat { margin: 0; }
.p-stat h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 17px;
}
.p-kd { font-size: 12px; color: var(--muted); font-weight: 600; }
.p-stat ul { list-style: none; margin: 0; padding: 0; }
.p-stat li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; }
.p-stat li span { color: var(--muted); }
.p-stat li b { text-align: right; }

@media (max-width: 860px) {
  .p-body { grid-template-columns: 1fr; }
  .p-nick { font-size: 24px; }
  .face.p-face { --s: 84px; }
  .p-ava { margin-top: -44px; }
}

/* «О себе» в шапке профиля, под ником. */
.p-about { max-width: 640px; margin: 10px auto 0; padding: 0 16px; overflow-wrap: anywhere; }
.p-about-edit { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline; }
.p-about-form { margin-top: 10px; text-align: left; }
.p-about-form[hidden] { display: none; }

/* Скин с плащом в колонке игрока: спереди и сзади, чуть покачиваются. */
.p-skin { padding-top: 18px; padding-bottom: 4px; background: radial-gradient(circle at 50% 40%, rgba(240, 180, 60, .10), transparent 70%), var(--panel); }
.p-skin-views { display: flex; justify-content: center; gap: 22px; }
.p-skin-views .body-skin { margin: 0 0 12px; animation: p-float 4s ease-in-out infinite; }
.p-skin-views .body-skin + .body-skin { animation-delay: -2s; }
@keyframes p-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .p-skin-views .body-skin { animation: none; } }

/* Шапка одной полосой: ава слева на краю баннера, ник и «о себе» рядом, кнопки справа. */
.p-hero { text-align: left; padding-bottom: 14px; }
.p-row { display: flex; align-items: flex-end; gap: 16px; padding: 0 20px; margin-top: -46px; position: relative; z-index: 1; flex-wrap: wrap; }
.p-row .p-ava { margin-top: 0; flex: none; }
.p-id { flex: 1 1 260px; min-width: 0; padding-bottom: 2px; }
.p-nameline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-row .p-nick { margin: 0; font-size: 26px; }
.p-row .p-tags { justify-content: flex-start; min-height: 0; }
.p-row .p-about { margin: 4px 0 0; padding: 0; max-width: none; font-size: 14px; color: var(--muted); }
.p-row .p-actions { margin: 0; padding: 0; justify-content: flex-end; }
.p-row .p-actions .btn { padding: 7px 12px; font-size: 13px; }
.face.p-face { --s: 92px; }
@media (max-width: 860px) {
  .p-row { margin-top: -38px; gap: 10px; }
  .face.p-face { --s: 76px; }
  .p-row .p-actions { justify-content: flex-start; width: 100%; }
}

/* Ник и кнопки всегда ниже края баннера, сколько бы строк ни было под ником. */
.p-row { align-items: flex-start; }
.p-id { padding-top: 54px; }
.p-row .p-actions { padding-top: 54px; }
@media (max-width: 860px) {
  .p-id { padding-top: 44px; }
  .p-row .p-actions { padding-top: 0; }
}

/* Ава ниже: на баннер заходит треть, ник и кнопки - на той же высоте под краем. */
.p-row { margin-top: -34px; }
.p-id, .p-row .p-actions { padding-top: 42px; }
@media (max-width: 860px) {
  .p-row { margin-top: -30px; }
  .p-id { padding-top: 38px; }
  .p-row .p-actions { padding-top: 0; }
}

/* Ава целиком под баннером (владелец 27.09.2026), ник и кнопки - по её середине. */
.p-row { margin-top: 14px; align-items: center; }
.p-id, .p-row .p-actions { padding-top: 0; }
.face.p-face { --s: 76px; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 860px) {
  .p-row { margin-top: 12px; }
  .p-id { padding-top: 0; }
  .face.p-face { --s: 64px; }
}

/* Упоминания @ник: ссылка на профиль цветом привилегии. */
.mention { color: var(--text); font-weight: 700; text-decoration: none; }
.mention:hover { text-decoration: underline; }
.mention.g-premium { color: #ffd873; }
.mention.g-vip { color: #7ee08d; }

/* Главная: кто в игре - фигурками скинов, витрина оформленных профилей (27.09.2026). */
.standing { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.stand { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; }
.stand .body-skin { --px: 4px; margin: 0 0 6px; animation: p-float 4s ease-in-out infinite; }
.stand:nth-child(2n) .body-skin { animation-delay: -2s; }
.stand b { font-size: 13px; }
.stand-prof { font-size: 11px; color: var(--muted, #9a93b0); margin-top: 2px; }
.stand:hover b { text-decoration: underline; }
.showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.show { display: block; border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.show:hover { border-color: var(--gold-deep); }
.show-cover { display: block; aspect-ratio: 4 / 1; background: var(--inset); }
.show-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-who { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.show-who .face { --s: 28px; }
.list.rank .face { --s: 20px; }
.home-grid .online-card { grid-column: 1 / -1; }

/* Страница клана и список кланов (27.09.2026). */
.p-facts em a, .p-stat b a { color: var(--gold); text-decoration: none; }
.p-facts em a:hover, .p-stat b a:hover { text-decoration: underline; }
a.p-clan { color: var(--gold); text-decoration: none; }
a.p-clan:hover { text-decoration: underline; }
.clan-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.clan-hero h1 { margin: 0; }
.clan-hero p { margin: 4px 0 0; }
.clan-hero .btn { margin-left: auto; }
.clan-tag { font-family: "Russo One", sans-serif; font-size: 30px; color: var(--gold); background: rgba(240, 180, 60, .10); border: 1px solid var(--gold-deep); border-radius: 14px; padding: 12px 16px; }
.clan-tag.small { font-size: 15px; padding: 4px 8px; border-radius: 8px; }
.clan-stats { margin: 14px 0; }
.clan-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin-bottom: 10px; }
.clan-member { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--inset); border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.clan-member:hover { border-color: var(--gold-deep); }
.clan-member .face { --s: 34px; }
.cm-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cm-name small, .cm-num small { color: var(--muted); font-size: 11px; }
.cm-num { display: flex; flex-direction: column; align-items: flex-end; min-width: 48px; }
.clan-list { padding: 6px; }
/* Строка списка: ссылка названия растянута на всю строку, ник главы - поверх неё своей ссылкой. */
.clan-row { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px; border-radius: 10px; }
.clan-row:hover { background: var(--panel-2); }
.clan-row > .clan-tag { min-width: 76px; text-align: center; }
.clan-row-id { display: flex; flex-direction: column; flex: 1 1 180px; min-width: 0; }
.clan-row-link { font-weight: 700; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.clan-row-link::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.clan-row:hover .clan-row-link { color: var(--gold); }
.clan-row-id small { font-size: 12px; }
.clan-row-id small a { position: relative; z-index: 1; }
.clan-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.clan-badge { font-size: 12px; color: var(--muted); background: var(--inset); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.clan-badge.ally { color: var(--green); border-color: rgba(88, 208, 114, .35); }
.clan-badge.war { color: #e07c7c; border-color: rgba(224, 124, 124, .4); }
.clan-rich { display: flex; flex-direction: column; align-items: flex-end; min-width: 110px; margin-left: auto; white-space: nowrap; }
.clan-rich small { color: var(--muted); font-size: 11px; }
/* Тег в цвете клана из игры: --cc - «r, g, b», тёмные цвета сайт уже осветлил. */
.clan-tag.tinted { color: rgb(var(--cc)); background: rgba(var(--cc), .10); border-color: rgba(var(--cc), .55); }
.clan-wealth b { color: var(--gold); }

/* Дипломатия клана (30.09.2026): союзники плашками, войны строками со счётом. */
.clan-diplo h3:first-of-type { margin-top: 6px; }
.clan-allies { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.clan-rel { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; background: var(--inset); border: 1px solid var(--line); border-radius: 10px; }
.clan-chip { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
a.clan-chip:hover b { color: var(--gold); text-decoration: underline; }
.clan-rel small, .clan-war small { font-size: 12px; white-space: nowrap; }
.clan-wars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.clan-war { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 6px 10px 6px 4px; background: var(--inset); border: 1px solid var(--line); border-radius: 10px; }
.clan-war .clan-chip { flex: 1 1 180px; }
.cw-score { white-space: nowrap; }
.cw-score b { color: var(--text); }
.cw-who { font-size: 12px; color: #e07c7c; white-space: nowrap; }
.cw-who.us { color: var(--gold); }

/* Баннер и описание клана. */
.clan-hero-wrap { padding: 0; overflow: hidden; }
.clan-hero-wrap .p-cover { aspect-ratio: 4 / 1; max-height: 300px; background: var(--inset); }
.clan-hero-wrap .p-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clan-hero-wrap .clan-hero { padding: 18px 20px; }
.clan-id { flex: 1; min-width: 0; }
.clan-about { margin-top: 8px; overflow-wrap: anywhere; }
.clan-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding: 0 20px 16px; }
.clan-tools form { margin: 0; }
.clan-tools label.btn { cursor: pointer; margin: 0; }
.clan-thumb { width: 120px; aspect-ratio: 4 / 1; object-fit: cover; border-radius: 6px; flex: none; }

/* ---------- оформление сайта на выбор (владелец 27.09.2026: «цветогамму для себя по шаблонам»,
   «чтоб всюду сочеталось с золотым») ----------
   Золото - фирменный акцент и не меняется; стиль перекрашивает фон, панели, линии и приглушённый
   текст. Выбор лежит в браузере (localStorage), атрибут ставится в <head> до отрисовки. */
html[data-theme="moon"] {
  --bg: #0c0f18; --panel: #161c2c; --panel-2: #1e2638; --line: #2b3550; --line-soft: #222a40;
  --muted: #97a3bf; --inset: #0e1220;
  --veil: rgba(12, 15, 24, .80); --head-bg: rgba(14, 18, 30, .93); --foot-bg: rgba(12, 15, 24, .72);
}
html[data-theme="amethyst"] {
  --bg: #0e0a16; --panel: #1a1226; --panel-2: #231935; --line: #35274a; --line-soft: #291e3a;
  --muted: #a293b8; --inset: #120c1c;
  --veil: rgba(14, 10, 22, .80); --head-bg: rgba(18, 12, 28, .93); --foot-bg: rgba(14, 10, 22, .72);
}
html[data-theme="emerald"] {
  --bg: #07110d; --panel: #0f1d17; --panel-2: #15281f; --line: #22392e; --line-soft: #1a2d24;
  --muted: #8aa89a; --inset: #0a1510;
  --veil: rgba(7, 17, 13, .80); --head-bg: rgba(9, 20, 15, .93); --foot-bg: rgba(7, 17, 13, .72);
}
html[data-theme="ruby"] {
  --bg: #120809; --panel: #1e1013; --panel-2: #2a161b; --line: #3d2229; --line-soft: #301a20;
  --muted: #b08f95; --inset: #16090c;
  --veil: rgba(18, 8, 9, .80); --head-bg: rgba(22, 10, 12, .93); --foot-bg: rgba(18, 8, 9, .72);
}
html[data-theme="ocean"] {
  --bg: #06111a; --panel: #0d1c28; --panel-2: #132736; --line: #1f3a4d; --line-soft: #183041;
  --muted: #88a6b8; --inset: #081620;
  --veil: rgba(6, 17, 26, .80); --head-bg: rgba(8, 20, 30, .93); --foot-bg: rgba(6, 17, 26, .72);
}
html[data-theme="graphite"] {
  --bg: #0e0e0f; --panel: #18181a; --panel-2: #222225; --line: #313135; --line-soft: #26262a;
  --muted: #9a9aa2; --inset: #111113;
  --veil: rgba(14, 14, 15, .80); --head-bg: rgba(18, 18, 20, .93); --foot-bg: rgba(14, 14, 15, .72);
}
html[data-theme="choco"] {
  --bg: #120c08; --panel: #1e1510; --panel-2: #291d16; --line: #3b2b20; --line-soft: #2f2219;
  --muted: #b09c8a; --inset: #160f0a;
  --veil: rgba(18, 12, 8, .80); --head-bg: rgba(22, 15, 10, .93); --foot-bg: rgba(18, 12, 8, .72);
}

.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--gold); cursor: pointer;
}
.theme-btn:hover { border-color: var(--gold-deep); }
.theme-wrap { position: relative; }
.theme-pick {
  position: absolute; right: 0; top: 44px; z-index: 40; width: 280px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px;
}
.theme-pick[hidden] { display: none; }
.theme-pick p { margin: 2px 4px 8px; font-size: 13px; color: var(--muted); }
.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.theme-grid button {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px;
  background: none; border: 1px solid var(--line-soft); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-align: left;
}
.theme-grid button:hover { border-color: var(--gold-deep); }
.theme-grid button.on { border-color: var(--gold); }
.theme-grid i {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: linear-gradient(135deg, var(--sw-a) 0 55%, var(--sw-b) 55% 80%, #f0b53f 80%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}

/* Афиша (01.10.2026): полоса «Скоро на сервере» на главной и страница /events. Идущее сейчас -
   зелёной чертой слева, как «свежее» во вкладке «События» в игре. */
.soon-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.soon-head h2 { margin-bottom: 10px; }
.soon-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.soon-tile {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 10px 12px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line-soft);
}
.soon-tile b { font-size: 14px; line-height: 1.3; }
.soon-tile span { font-size: 13px; }
.soon-tile.live, .ev-card.live { border-left: 3px solid var(--green); }
.ev-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.ev-top b { font-size: 16px; }
.ev-when { color: var(--muted); font-size: 14px; }
.ev-rel { color: var(--text); }
.ev-card.live .ev-rel { color: var(--green); }
.ev-where { margin: 6px 0 0; font-size: 14px; }
.ev-card p.muted { margin: 6px 0 0; font-size: 14px; }
.remind-form { margin: 10px 0; }
.remind-form label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.remind-form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); }

/* Коллекционные теги (владелец 01.10.2026): карточка тега «как NFT» - тёмная плитка, крупно @tag,
   мелко номер выпуска, золотая плашка цены. В профиле - вкладка «Коллекция», и страница /tags. */
.tags-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tags-head a { font-size: 14px; }
.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 12px;
  margin-bottom: 4px;
}
.tag-nft {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid #2a2f45;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(240, 181, 63, .10), transparent 55%),
    radial-gradient(120% 90% at 0% 100%, rgba(129, 119, 234, .16), transparent 60%),
    linear-gradient(160deg, #11141d, #0a0c12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
}
.tag-nft.on-sale { border-color: rgba(240, 181, 63, .45); }
.tag-nft-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.tag-nft-n {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #c9b48a;
  background: rgba(240, 181, 63, .10);
  border: 1px solid rgba(240, 181, 63, .25);
  border-radius: 6px;
  padding: 1px 7px;
}
.tag-nft-since { color: var(--muted); }
.tag-nft-name {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  padding: 10px 0 6px;
  overflow-wrap: anywhere;
  background: linear-gradient(180deg, #fff3d6, #f0b53f 70%, #c98a1c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tag-nft-name span { opacity: .55; margin-right: 1px; }
.tag-nft-owner { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; min-width: 0; }
.tag-nft-owner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-nft-owner .face { --s: 20px; }
.tag-nft-price {
  align-self: flex-start;
  font-size: 13px;
  color: #2a1c02;
  background: linear-gradient(180deg, #f8c860, var(--gold));
  border: 1px solid #ffd98a;
  border-radius: 999px;
  padding: 3px 11px;
  box-shadow: 0 4px 12px rgba(240, 181, 63, .22);
}
.tag-nft-price b { color: inherit; }
.tag-nft-note { margin: 0; font-size: 13px; color: var(--muted); }
.tag-act { display: flex; gap: 6px; margin: 0; }
.tag-act input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--inset);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.tag-act input:focus { outline: none; border-color: var(--gold); }
.tag-act .btn { flex: none; padding: 7px 12px; font-size: 13px; }
.tag-act .btn.gold { flex: 1; }
.tag-wait {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(240, 181, 63, .08);
  border: 1px solid rgba(240, 181, 63, .3);
}
.tag-wait p { margin: 0 0 8px; }
.tag-wait form { margin: 0; }
p.tag-wait { margin-top: 10px; }
.tag-mint { margin-top: 16px; }
.tag-mint h3 { margin: 0; }
.tag-mint-row { display: flex; align-items: stretch; gap: 8px; }
.tag-mint-row .tag-at {
  display: flex; align-items: center; padding: 0 2px 0 4px;
  font-size: 20px; font-weight: 800; color: var(--gold);
}
.tag-mint-row input { flex: 1; min-width: 0; }
.form .tag-mint-row .btn { align-self: stretch; }
@media (max-width: 640px) {
  .tag-nft-name { font-size: 23px; }
  .tag-mint-row { flex-wrap: wrap; }
  .tag-mint-row input { flex-basis: calc(100% - 40px); }
  .tag-mint-row .btn { flex: 1 1 100%; }
}

/* ---------- форум, 07.10.2026 ---------- */
/* Сетка разделов не вылезает за край узкого телефона (320 точек). */
.sections { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.fresh-count { color: #8fd6ff; font-size: 12px; }
.forum-me { margin: 0 0 14px; }
.forum-me form { margin: 0; }
.page-head .new-topic { margin-left: auto; flex: none; }

/* Строка автора: на телефоне переносится, а не ломает плашки в столбик. */
.post { scroll-margin-top: 90px; }
.post:target { border-color: var(--gold-deep); box-shadow: inset 0 0 0 1px var(--gold-deep); }
.post .who { flex-wrap: wrap; row-gap: 6px; }
.post .who .when { margin-left: auto; display: inline-flex; gap: 8px; align-items: baseline; color: var(--muted); font-size: 12px; }
.post .who .when time { margin-left: 0; }
.post .who .num { color: var(--muted); }
.post .who .num:hover { color: var(--gold); }
.post .who-nick { color: var(--text); font-weight: 700; }
.post .who-nick.g-premium { color: #ffd873; }
.post .who-nick.g-vip { color: #7ee08d; }
.who-clan { line-height: 1; }
.clan-tag.tiny { font-size: 12px; padding: 2px 6px; border-radius: 6px; }

/* Статусы тем: в работе - янтарный, сделано - зелёный, отказ - приглушённый красный. */
.pin.st-work { color: #f5c26b; border-color: #7a5a1f; }
.pin.st-ok { color: #7ee08d; border-color: #2e6b3a; }
.pin.st-no { color: #ff9c9c; border-color: #6b2b2b; }
h1 .pin { font-size: 12px; vertical-align: 5px; }

/* Поле ввода: кнопка скриншота и подсказка по разметке. */
.composer { display: flex; flex-direction: column; gap: 8px; }
.composer-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.hint { color: var(--muted); font-size: 12px; margin: 0; line-height: 1.5; }
.hint b { color: var(--muted); }
button.busy { opacity: .6; pointer-events: none; }

/* Под сообщением: всё переносится; молчанка - для админа. */
.under { flex-wrap: wrap; }
.under form.mute { display: inline-flex; gap: 6px; align-items: center; }
.under form.mute select, .inline-select select, .modmore select {
  background: var(--inset); color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; font: inherit; font-size: 13px;
}
.under form.mute button { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.under form.mute button:hover { color: var(--gold); }
.history { margin-top: 10px; font-size: 13px; }
.history summary { color: var(--muted); cursor: pointer; }
.history .old { border-left: 2px solid var(--line); padding-left: 10px; margin-top: 8px; }

/* Панель админа над темой: редкое спрятано под «Ещё». */
.inline-select { display: inline-flex; gap: 6px; align-items: center; }
.modmore summary { list-style: none; }
.modmore summary::-webkit-details-marker { display: none; }
.modmore[open] > .card { margin-top: 8px; }
.modmore label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

/* Поиск: выдержка с найденным словом. */
.snippet.wrap { white-space: normal; }
mark { background: rgba(240, 180, 60, .28); color: inherit; border-radius: 3px; padding: 0 2px; }

form.logout { display: inline; margin: 0; }

/* На телефоне шапка не липнет: она занимала четверть экрана на каждой странице. */
@media (max-width: 640px) {
  header { position: static; }
  .post { scroll-margin-top: 10px; padding: 14px; }
  .page-head .new-topic { padding: 6px 11px; font-size: 13px; }
}
