/* =====================================================================
   Realm MU — шаблон 2026 «Обсидиан и золото»
   Подключается ПОСЛЕДНИМ и перекрывает старые стили модулей.
   ===================================================================== */

:root {
  --rm-bg: #0A0C11;
  --rm-bg-deep: #07080C;
  --rm-panel: #11141B;
  --rm-panel-2: #161A23;
  --rm-field: #0B0E14;
  --rm-line: #232836;
  --rm-line-2: #2E3546;
  --rm-text: #E8E4DA;
  --rm-text-hi: #F5F1E6;
  --rm-muted: #9A9FAD;
  --rm-soft: #A9AEBB;
  --rm-gold: #D9A949;
  --rm-gold-hi: #F0C566;
  --rm-gold-line: #5C4A24;
  --rm-gold-bg: #16140E;
  --rm-green: #5BD18B;
  --rm-red: #E5604D;
  --rm-blue: #7CC9DE;
  --rm-radius: 10px;
  --rm-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rm-display: 'Cormorant SC', Georgia, serif;
}

/* ---------- База ---------- */
html { scroll-behavior: smooth; }
body.rm {
  background: var(--rm-bg) !important;
  color: var(--rm-text);
  font-family: var(--rm-font) !important;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.rm a { color: var(--rm-gold); text-decoration: none; transition: color .15s; }
body.rm a:hover { color: var(--rm-gold-hi); }
body.rm ::selection { background: rgba(217, 169, 73, .35); color: #fff; }
body.rm :focus-visible { outline: 2px solid var(--rm-gold); outline-offset: 2px; }

.rm-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 28px; box-sizing: border-box; }
.rm-muted { color: var(--rm-muted); }
.rm-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--rm-gold); }
.rm-h2 { margin: 0; font-family: var(--rm-display); font-weight: 700; font-size: 32px; line-height: 1.1; color: var(--rm-text-hi); letter-spacing: .01em; }

/* ---------- Кнопки ---------- */
.rm-btn,
body.rm .rm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 6px; box-sizing: border-box;
  font: 800 13px/1 var(--rm-font); letter-spacing: .07em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.rm-btn--gold, body.rm a.rm-btn--gold { background: var(--rm-gold); border-color: var(--rm-gold); color: #17120A; }
.rm-btn--gold:hover, body.rm a.rm-btn--gold:hover { background: var(--rm-gold-hi); border-color: var(--rm-gold-hi); color: #17120A; }
.rm-btn--ghost, body.rm a.rm-btn--ghost { background: transparent; border-color: var(--rm-line-2); color: var(--rm-text); }
.rm-btn--ghost:hover, body.rm a.rm-btn--ghost:hover, .rm-btn--ghost.is-active { border-color: var(--rm-gold); color: var(--rm-gold-hi); }
.rm-btn--glass { background: rgba(10, 12, 17, .55); backdrop-filter: blur(4px); }
.rm-btn--lg { min-height: 54px; padding: 0 30px; font-size: 14px; }
.rm-btn--block { width: 100%; }
.rm-btn--icon { width: 44px; padding: 0; font-size: 18px; }
.rm-inline-form { display: inline-flex; margin: 0; }

/* ---------- Верхняя полоса ---------- */
.rm-topbar { background: var(--rm-bg-deep); border-bottom: 1px solid #1B1F2A; font-size: 13px; color: var(--rm-muted); position: relative; z-index: 60; }
.rm-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 40px; flex-wrap: wrap; }
.rm-topbar__left, .rm-topbar__right { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; }
.rm-topbar b { color: var(--rm-text); font-weight: 700; }
.rm-status { display: inline-flex; align-items: center; gap: 8px; }
.rm-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--rm-red); box-shadow: 0 0 0 3px rgba(229, 96, 77, .18); }
.rm-status.is-on i { background: var(--rm-green); box-shadow: 0 0 0 3px rgba(91, 209, 139, .18); }
.rm-status.is-on b { color: var(--rm-green); }
.rm-status.is-off b { color: var(--rm-red); }
body.rm a.rm-topbar__link { color: var(--rm-muted); display: inline-flex; align-items: center; gap: 6px; }
body.rm a.rm-topbar__link:hover { color: var(--rm-gold-hi); }

.rm-lang { position: relative; }
.rm-lang__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: 6px; color: var(--rm-text); font: 600 12px var(--rm-font); cursor: pointer; }
.rm-lang__btn:hover { border-color: var(--rm-gold-line); }
.rm-lang__btn img, .rm-lang__list img { border-radius: 2px; }
.rm-lang__list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; margin: 0; padding: 6px; list-style: none; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); display: none; z-index: 100; }
.rm-lang.is-open .rm-lang__list { display: block; }
body.rm .rm-lang__list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; color: var(--rm-text); cursor: pointer; font-size: 13px; }
body.rm .rm-lang__list a:hover, body.rm .rm-lang__list a.active { background: var(--rm-panel-2); color: var(--rm-gold-hi); }

/* ---------- Шапка ---------- */
body.rm .rm-header.navbar,
body.rm .rm-header.navbar.navbar-fixed {
  display: block; padding: 0; margin: 0; position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 17, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid #1B1F2A; box-shadow: none; animation: none; width: auto;
}
body.rm header.rm-header { height: auto; min-height: 0; }
body.rm header.rm-header::before, body.rm header.rm-header::after { content: none; display: none; }
.rm-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
.rm-header__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
body.rm .rm-logo { font-family: var(--rm-display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: .05em; color: var(--rm-text-hi); white-space: nowrap; }
body.rm .rm-logo span { color: var(--rm-gold); }
body.rm .rm-logo:hover { color: #fff; }

.rm-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: 1; }
.rm-nav__list { display: flex; align-items: center; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.rm-nav__list > li { position: relative; }
body.rm .rm-nav__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  background: none; border: 0; border-radius: 6px; cursor: pointer;
  font: 600 14px var(--rm-font); color: #C9C5BB; position: relative;
}
body.rm .rm-nav__link:hover { color: var(--rm-gold-hi); }
body.rm .rm-nav__link.is-active { color: var(--rm-gold-hi); }
body.rm .rm-nav__link.is-active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--rm-gold); border-radius: 2px; }
.rm-nav__link .bi { font-size: 11px; transition: transform .15s; }
.rm-nav__dd.is-open .rm-nav__link .bi { transform: rotate(180deg); }
.rm-nav__menu { position: absolute; left: 0; top: calc(100% + 8px); min-width: 230px; margin: 0; padding: 8px; list-style: none; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); display: none; z-index: 70; }
.rm-nav__dd.is-open .rm-nav__menu { display: block; }
body.rm .rm-nav__menu a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--rm-text); font-size: 14px; font-weight: 600; }
body.rm .rm-nav__menu a:hover { background: var(--rm-panel-2); color: var(--rm-gold-hi); }
.rm-nav__actions { display: flex; align-items: center; gap: 10px; }

.rm-burger { display: none; margin-left: auto; width: 46px; height: 46px; padding: 12px 11px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: 8px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.rm-burger span { display: block; height: 2px; background: var(--rm-text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.rm-nav-open .rm-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.rm-nav-open .rm-burger span:nth-child(2) { opacity: 0; }
.rm-nav-open .rm-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Баннер главной ---------- */
.rm-hero { position: relative; overflow: hidden; background: var(--rm-bg); }
.rm-hero__bg { position: absolute; inset: 0; background: url(../images/background.png) center top / max(1920px, 100%) auto no-repeat; }
.rm-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,17,0) 30%, rgba(10,12,17,.82) 64%, var(--rm-bg) 100%); }
.rm-hero__in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-top: 470px; padding-bottom: 56px; }
.rm-hero__title { margin: 0; font-family: var(--rm-display); font-weight: 700; font-size: clamp(38px, 6vw, 74px); line-height: 1.02; color: var(--rm-text-hi); text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.rm-hero__text { margin: 0; max-width: 620px; font-size: 18px; color: #C2C6D0; }
.rm-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

.rm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); overflow: hidden; position: relative; }
.rm-fact { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-right: 1px solid #1E2330; border-bottom: 1px solid #1E2330; margin: 0 -1px -1px 0; }
.rm-fact span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rm-muted); }
.rm-fact b { font-size: 18px; font-weight: 800; color: var(--rm-text-hi); line-height: 1.25; }

/* ---------- Заголовок внутренних страниц ---------- */
.rm-pagehead { position: relative; overflow: hidden; border-bottom: 1px solid #1B1F2A; }
.rm-pagehead__bg { position: absolute; inset: 0; background: url(../images/background.png) center 18% / cover no-repeat; opacity: .28; }
.rm-pagehead__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--rm-bg) 0%, rgba(10,12,17,.75) 50%, rgba(10,12,17,.55) 100%), linear-gradient(0deg, var(--rm-bg) 0%, rgba(10,12,17,0) 60%); }
.rm-pagehead__in { position: relative; padding-top: 44px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 10px; }
.rm-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--rm-muted); }
body.rm .rm-crumbs a { color: var(--rm-muted); }
body.rm .rm-crumbs a:hover { color: var(--rm-gold-hi); }
.rm-crumbs .bi { font-size: 10px; opacity: .6; }
.rm-pagehead__title { margin: 0; font-family: var(--rm-display); font-weight: 700; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; color: var(--rm-text-hi); }

/* ---------- Сетка: контент + боковая колонка ---------- */
.rm-main { padding: 36px 0 72px; }
.rm-home .rm-main { padding-top: 32px; }
.rm-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
.rm-content { flex: 999 1 600px; min-width: 0; }
.rm-layout--full .rm-content { flex-basis: 100%; }
.rm-aside { flex: 1 1 300px; max-width: 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
body.rm .rm-content.contents { width: auto; max-width: none; }
body.rm .rm-row { display: block; margin: 0; padding: 0; --bs-gutter-x: 0; }
body.rm .rm-row > * { max-width: 100%; }

/* ---------- Боковая колонка ---------- */
.rm-box, body.rm .rm-aside .aside_block { background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); padding: 20px; margin: 0; }
.rm-box__head, body.rm .rm-aside .aside_title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 0; border: 0; background: none; }
.rm-box__head h3, body.rm .rm-aside .aside_title h3 { margin: 0; font-family: var(--rm-display); font-size: 22px; font-weight: 700; color: var(--rm-text-hi); }
.rm-box__sub { font-size: 13px; color: var(--rm-gold); font-weight: 700; }
body.rm .rm-box__more { font-size: 13px; font-weight: 700; }
.rm-box__links { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.rm-box__foot { margin: 14px 0 0; }

.rm-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.rm-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--rm-soft); }
body.rm .rm-field input, body.rm .rm-field select, body.rm form .rm-field input[type="text"], body.rm form .rm-field input[type="password"] {
  min-height: 44px; padding: 0 12px; width: 100%; box-sizing: border-box;
  background: var(--rm-field); border: 1px solid var(--rm-line-2); border-radius: 6px;
  color: var(--rm-text); font: 500 15px var(--rm-font); text-indent: 0;
}
.rm-field input:focus, .rm-field select:focus { outline: none; border-color: var(--rm-gold); box-shadow: 0 0 0 3px rgba(217,169,73,.18); }

.rm-menu { margin: 0 -8px; padding: 0; list-style: none; }
body.rm .rm-menu a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 10px; border-radius: 6px; color: var(--rm-soft); font-size: 14px; font-weight: 600; }
body.rm .rm-menu a .bi { width: 18px; color: var(--rm-muted); font-size: 15px; }
body.rm .rm-menu a:hover, body.rm .rm-menu a.is-active { background: var(--rm-panel-2); color: var(--rm-gold-hi); }
body.rm .rm-menu a:hover .bi, body.rm .rm-menu a.is-active .bi { color: var(--rm-gold); }
.rm-menu__sep { margin: 10px 10px 4px; padding-top: 10px; border-top: 1px solid var(--rm-line); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rm-muted); }
body.rm .rm-menu a.rm-menu__admin { color: #8FE0B0; }

body.rm .rm-promo { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 18px 0 0 20px; background: var(--rm-gold-bg); border: 1px solid #3B3220; border-radius: var(--rm-radius); color: var(--rm-text); overflow: hidden; }
body.rm .rm-promo:hover { border-color: var(--rm-gold-line); color: var(--rm-text); }
.rm-promo__text { display: flex; flex-direction: column; gap: 4px; padding-bottom: 18px; }
.rm-promo__text b { font-family: var(--rm-display); font-size: 22px; color: var(--rm-text-hi); line-height: 1.1; }
.rm-promo__text > span { font-size: 13px; color: #B8B2A3; }
.rm-promo__text .rm-promo__cta { margin-top: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rm-gold); }
.rm-promo img { width: 130px; height: auto; align-self: flex-end; flex: none; }

.rm-kv { margin: 0; padding: 0; list-style: none; }
.rm-kv li, body.rm .rm-aside .list-style-1 li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #1E2330; font-size: 14px; }
.rm-kv li:first-child, body.rm .rm-aside .list-style-1 li:first-child { border-top: 0; }
.rm-kv span, body.rm .rm-aside .list-style-1 li > span:first-child { color: var(--rm-muted); }
.rm-kv b, body.rm .rm-aside .list-style-1 li > span:last-child { color: var(--rm-text); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
body.rm .rm-aside .aside_content { padding: 0; background: none; }
body.rm .rm-aside .list-style-1 { margin: 0; padding: 0; }

body.rm .rm-discord { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); color: var(--rm-text); }
body.rm .rm-discord:hover { border-color: #4B57A8; color: var(--rm-text); }
.rm-discord > .bi { font-size: 30px; color: #8EA2F5; }
.rm-discord > span { display: flex; flex-direction: column; font-size: 13px; color: var(--rm-muted); line-height: 1.4; }
.rm-discord b { font-size: 15px; color: var(--rm-text-hi); }

/* ---------- Главная: блоки ---------- */
.rm-home-blocks { display: flex; flex-direction: column; gap: 22px; }
.rm-card { background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); padding: 24px; }
.rm-block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.rm-block__head .rm-eyebrow { margin-bottom: 6px; }
body.rm .rm-link-more { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }

.rm-timer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--rm-gold-bg); border-color: #3B3220; }
.rm-timer__text { display: flex; flex-direction: column; gap: 6px; }
.rm-timer__text p { margin: 0; color: #B8B2A3; }
body.rm .rm-timer .post_date { position: static; width: auto; height: auto; margin: 0; padding: 14px 20px; background: rgba(0,0,0,.25); border: 1px solid #3B3220; border-radius: 8px; text-align: center; }
body.rm .rm-timer .side-block-time { color: var(--rm-gold) !important; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
body.rm .rm-timer .side-block-body ul { margin: 0; padding: 0; }
body.rm .rm-timer .timer .countdown { font: 800 30px var(--rm-font); letter-spacing: .06em; color: var(--rm-text-hi) !important; font-variant-numeric: tabular-nums; }
body.rm .rm-timer .timer .labels { color: var(--rm-muted); margin-top: 2px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.rm-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
body.rm .rm-feature { display: flex; flex-direction: column; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); overflow: hidden; color: var(--rm-text); transition: border-color .15s, transform .15s; }
body.rm .rm-feature:hover { border-color: var(--rm-gold-line); color: var(--rm-text); transform: translateY(-2px); }
.rm-feature__img { display: block; height: 74px; overflow: hidden; background: #0D0F14; border-bottom: 1px solid var(--rm-line); }
.rm-feature__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .85; }
.rm-feature__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.rm-feature__body b { font-size: 16px; color: var(--rm-text-hi); }
.rm-feature__body span { font-size: 14px; color: var(--rm-soft); line-height: 1.55; }

.rm-rank { margin: 0; padding: 0; list-style: none; }
.rm-rank__row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #1E2330; }
.rm-rank__row:first-child { border-top: 0; }
.rm-rank__pos { font-family: var(--rm-display); font-weight: 700; font-size: 24px; text-align: center; color: #7E8494; }
.rm-rank__row--1 .rm-rank__pos { color: var(--rm-gold-hi); }
.rm-rank__row--2 .rm-rank__pos { color: #C9CED8; }
.rm-rank__row--3 .rm-rank__pos { color: #C98A55; }
.rm-rank__name { display: flex; flex-direction: column; min-width: 0; }
body.rm .rm-rank__name a { color: var(--rm-text-hi); font-weight: 700; font-size: 15px; }
body.rm .rm-rank__name a:hover { color: var(--rm-gold-hi); }
.rm-rank__name small { color: var(--rm-muted); font-size: 12px; }
.rm-rank__val { font-size: 13px; color: var(--rm-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rm-rank__val b { color: var(--rm-text); font-size: 15px; }

.rm-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; padding: 30px; border-radius: var(--rm-radius); background: var(--rm-gold-bg); border: 1px solid #3B3220; }
.rm-cta p { margin: 6px 0 0; color: #B8B2A3; }
.rm-cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Подвал ---------- */
.rm-footer { background: var(--rm-bg-deep); border-top: 1px solid #1B1F2A; padding-top: 52px; color: var(--rm-muted); font-size: 14px; }
.rm-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
.rm-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.rm-footer__brand p { margin: 0; max-width: 300px; }
.rm-footer__col { display: flex; flex-direction: column; gap: 10px; }
.rm-footer__col h4 { margin: 0 0 4px; font: 800 12px var(--rm-font); letter-spacing: .16em; text-transform: uppercase; color: var(--rm-text); }
body.rm .rm-footer__col a { color: var(--rm-muted); }
body.rm .rm-footer__col a:hover { color: var(--rm-gold-hi); }
.rm-footer__bottom { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid #1B1F2A; font-size: 12px; color: #7E8494; }

/* ---------- Окно входа ---------- */
body.rm .gmodal.rm-modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 20px; background: none; }
body.rm .gmodal.rm-modal.open { display: flex !important; }
body.rm .rm-modal .modal_content { position: relative; width: 100%; max-width: 420px; padding: 32px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); z-index: 1001; }
body.rm .rm-modal h2 { margin: 0 0 20px; font-family: var(--rm-display); font-size: 30px; color: var(--rm-text-hi); }
body.rm .rm-modal__close { position: absolute; top: 12px; right: 12px; }
body.rm .rm-modal__close .bi-x { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 26px; color: var(--rm-muted); cursor: pointer; border-radius: 6px; }
body.rm .rm-modal__close .bi-x:hover { background: var(--rm-panel-2); color: var(--rm-text); }
body.rm .modal_overlay { position: fixed; inset: 0; background: rgba(4, 5, 8, .75); backdrop-filter: blur(3px); z-index: 999; }

/* =====================================================================
   МОДУЛИ: общий вид содержимого старых страниц
   ===================================================================== */
body.rm .rm-content { color: var(--rm-text); }
body.rm .rm-content h1, body.rm .rm-content h2, body.rm .rm-content h3,
body.rm .rm-content .title_1, body.rm .rm-content .section-title {
  font-family: var(--rm-display); font-weight: 700; color: var(--rm-text-hi); line-height: 1.15; letter-spacing: .01em;
}
body.rm .rm-content h2 { font-size: 30px; margin: 0 0 14px; }
body.rm .rm-content h3 { font-size: 24px; margin: 0 0 12px; }
body.rm .rm-content h4, body.rm .rm-content h5 { font-family: var(--rm-font); font-weight: 800; color: var(--rm-text-hi); }
body.rm .rm-content p { color: #C2C6D0; }
body.rm .rm-content hr { border-color: var(--rm-line); opacity: 1; }
body.rm .rm-content strong, body.rm .rm-content b { color: var(--rm-text-hi); }

/* Карточки-секции */
body.rm .rm-content .section,
body.rm .rm-content .contents .row .section,
body.rm .rm-content .content-box.section {
  background: var(--rm-panel) !important; border: 1px solid var(--rm-line); border-radius: var(--rm-radius);
  padding: 24px !important; margin: 0 0 22px; width: 100%; box-sizing: border-box; box-shadow: none;
}
body.rm .rm-content .section .section { background: var(--rm-panel-2) !important; }

/* Панели старых страниц (#242428 + бронзовая рамка) */
body.rm .rm-content .download-section,
body.rm .rm-content .system-info,
body.rm .rm-content .warning-section,
body.rm .rm-content .info-block,
body.rm .rm-content .refund-block,
body.rm .rm-content .filter-box,
body.rm .rm-content .content-box,
body.rm .rm-content .faq-item,
body.rm .rm-content .collapsible-section,
body.rm .rm-content .pricing-table,
body.rm .rm-content .ticket-info,
body.rm .rm-content .tickets-table-wrapper {
  background: var(--rm-panel-2) !important; border: 1px solid var(--rm-line) !important; border-radius: var(--rm-radius) !important; box-shadow: none !important; color: var(--rm-text);
}
body.rm .rm-content .content-box { background: transparent !important; border: 0 !important; padding: 0; }
body.rm .rm-content .security-note { background: #0D1A1F !important; border: 1px solid #1D3A44 !important; border-radius: 8px !important; padding: 12px 14px !important; }
body.rm .rm-content .system-text, body.rm .rm-content .warning-text, body.rm .rm-content .security-text { color: #C2C6D0 !important; }

/* Таблицы */
.rm-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.rm .rm-content table { width: 100%; border-collapse: collapse; color: var(--rm-text); font-size: 14px; background: transparent; }
body.rm .rm-content table th,
body.rm .rm-content .topchars th,
body.rm .rm-content table thead td,
body.rm .rm-content .td_h_alt {
  background: var(--rm-panel-2) !important; color: var(--rm-muted) !important; border: 0 !important; border-bottom: 1px solid var(--rm-line) !important;
  font: 800 11px var(--rm-font) !important; letter-spacing: .1em; text-transform: uppercase; padding: 13px 12px !important; white-space: nowrap;
}
body.rm .rm-content table td { border-color: #1A1E28 !important; padding: 11px 12px; vertical-align: middle; color: var(--rm-text); }
body.rm .rm-content .topchars td { border-bottom: 1px solid #1A1E28; height: auto; }
body.rm .rm-content .topchars tr:nth-child(2n),
body.rm .rm-content .custom-table-2-striped tbody tr:nth-of-type(odd),
body.rm .rm-content .table-striped > tbody > tr:nth-of-type(odd) > * { background: rgba(255,255,255,.018) !important; --bs-table-accent-bg: transparent; }
body.rm .rm-content table tbody tr:hover > td { background: rgba(217,169,73,.05); }
body.rm .rm-content .table { --bs-table-bg: transparent; --bs-table-color: var(--rm-text); color: var(--rm-text); border-color: var(--rm-line); }
body.rm .rm-content table a { color: var(--rm-text-hi); font-weight: 700; }
body.rm .rm-content table a:hover { color: var(--rm-gold-hi); }

/* Фильтры (топ, статистика) */
body.rm .rm-content .stat-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 16px; }
body.rm .rm-content .stat-filter a {
  display: inline-flex; align-items: center; min-height: 36px; margin: 0; padding: 0 14px; border-radius: 999px;
  background: transparent; border: 1px solid var(--rm-line-2); color: var(--rm-soft); font-weight: 700; font-size: 13px;
}
body.rm .rm-content .stat-filter a:hover { border-color: var(--rm-gold-line); color: var(--rm-gold-hi); background: transparent; }
body.rm .rm-content .stat-filter a.active { background: var(--rm-gold); border-color: var(--rm-gold); color: #17120A; }

/* Поля ввода */
body.rm .rm-content input[type="text"],
body.rm .rm-content input[type="password"],
body.rm .rm-content input[type="email"],
body.rm .rm-content input[type="number"],
body.rm .rm-content input[type="search"],
body.rm .rm-content input[type="tel"],
body.rm .rm-content input[type="url"],
body.rm .rm-content input:not([type]),
body.rm .rm-content select,
body.rm .rm-content textarea,
body.rm .rm-content .form-control,
body.rm .rm-content .login-input,
body.rm .rm-content .input-bg {
  min-height: 44px; padding: 8px 12px; box-sizing: border-box; max-width: 100%;
  background: var(--rm-field) !important; color: var(--rm-text) !important;
  border: 1px solid var(--rm-line-2) !important; border-radius: 6px !important;
  font: 500 15px var(--rm-font) !important; text-indent: 0 !important; box-shadow: none !important;
}
body.rm .rm-content textarea { min-height: 120px; }
body.rm .rm-content input:focus, body.rm .rm-content select:focus, body.rm .rm-content textarea:focus, body.rm .rm-content .form-control:focus {
  outline: none; border-color: var(--rm-gold) !important; box-shadow: 0 0 0 3px rgba(217,169,73,.18) !important;
}
body.rm .rm-content input::placeholder, body.rm .rm-content textarea::placeholder { color: #6E7484; }
body.rm .rm-content input[type="checkbox"], body.rm .rm-content input[type="radio"] { accent-color: var(--rm-gold); width: 18px; height: 18px; vertical-align: middle; }
body.rm .rm-content label { color: var(--rm-soft); }

/* Строки форм регистрации / восстановления / кабинета */
body.rm .rm-content .reg-line { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
body.rm .rm-content .reg-line label { font-size: 13px; font-weight: 700; color: var(--rm-soft); margin: 0; float: none; width: auto; text-align: left; }
body.rm .rm-content .reg-line input, body.rm .rm-content .reg-line select { width: 100%; max-width: 460px; }
body.rm .rm-content .register-form, body.rm .rm-content .recover-form { max-width: 560px; }

/* Кнопки старых модулей */
body.rm .rm-content .submit_button,
body.rm .rm-content input[type="submit"],
body.rm .rm-content button[type="submit"],
body.rm .rm-content .submitBtn,
body.rm .rm-content .button,
body.rm .rm-content .small-button,
body.rm .rm-content .btn-pay,
body.rm .rm-content .button-register,
body.rm .rm-content .mvc-buttons-style,
body.rm .rm-content .download-btn,
body.rm .rm-content .plan-action a,
body.rm .rm-content .plan-action button,
body.rm .rm-content .btn-primary,
body.rm .rm-content .btn-warning {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; width: auto; box-sizing: border-box;
  background: var(--rm-gold) !important; background-image: none !important; color: #17120A !important;
  border: 1px solid var(--rm-gold) !important; border-radius: 6px !important; box-shadow: none !important;
  font: 800 13px var(--rm-font) !important; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s; text-shadow: none !important; height: auto; line-height: 1.2;
}
body.rm .rm-content .submit_button:hover,
body.rm .rm-content input[type="submit"]:hover,
body.rm .rm-content button[type="submit"]:hover,
body.rm .rm-content .submitBtn:hover,
body.rm .rm-content .button:hover,
body.rm .rm-content .small-button:hover,
body.rm .rm-content .btn-pay:hover,
body.rm .rm-content .button-register:hover,
body.rm .rm-content .mvc-buttons-style:hover,
body.rm .rm-content .download-btn:hover,
body.rm .rm-content .plan-action a:hover,
body.rm .rm-content .btn-primary:hover,
body.rm .rm-content .btn-warning:hover { background: var(--rm-gold-hi) !important; border-color: var(--rm-gold-hi) !important; color: #17120A !important; }
body.rm .rm-content .download-btn.mega { background: transparent !important; color: var(--rm-text) !important; border-color: var(--rm-line-2) !important; }
body.rm .rm-content .download-btn.mega:hover { border-color: var(--rm-gold) !important; color: var(--rm-gold-hi) !important; }
body.rm .rm-content .btn-secondary, body.rm .rm-content .btn-dark, body.rm .rm-content .btn-outline-secondary {
  background: transparent !important; color: var(--rm-text) !important; border: 1px solid var(--rm-line-2) !important; border-radius: 6px !important;
}
body.rm .rm-content .btn-danger { background: #3A1A17 !important; border-color: #6B2B24 !important; color: #F2A093 !important; border-radius: 6px !important; }

/* Вкладки (Об игре, тикеты и др.) */
body.rm .rm-content .tablink {
  background: transparent !important; color: var(--rm-muted) !important; border: 0 !important; border-bottom: 2px solid transparent !important;
  font: 800 12px var(--rm-font) !important; letter-spacing: .06em; text-transform: uppercase; padding: 12px 14px !important; min-height: 44px;
  float: none; width: auto; cursor: pointer; border-radius: 0 !important;
}
body.rm .rm-content .tablink:hover { color: var(--rm-text) !important; background: transparent !important; }
body.rm .rm-content .tablink.active { color: var(--rm-gold-hi) !important; border-bottom-color: var(--rm-gold) !important; background: transparent !important; }
body.rm .rm-content .tabcontent, body.rm .rm-content .tabcontent1 { background: transparent !important; color: var(--rm-text); padding: 18px 0 0; }

/* FAQ / раскрывающиеся блоки */
body.rm .rm-content .faq-item { margin: 0 0 10px; overflow: hidden; }
body.rm .rm-content .faq-question, body.rm .rm-content .collapsible-header {
  background: transparent !important; color: var(--rm-text-hi) !important; padding: 16px 20px !important; font-weight: 700; cursor: pointer; border: 0 !important;
}
body.rm .rm-content .faq-question:hover, body.rm .rm-content .collapsible-header:hover { color: var(--rm-gold-hi) !important; }
body.rm .rm-content .faq-answer, body.rm .rm-content .collapsible-content { background: transparent !important; color: #C2C6D0 !important; }

/* Тарифы / пакеты */
body.rm .rm-content .pricing-table { padding: 22px !important; text-align: center; margin-bottom: 16px; transition: border-color .15s; }
body.rm .rm-content .pricing-table:hover { border-color: var(--rm-gold-line) !important; }
body.rm .rm-content .plan-name { font-family: var(--rm-display); font-size: 26px; font-weight: 700; color: var(--rm-text-hi) !important; background: none !important; }
body.rm .rm-content .plan-price, body.rm .rm-content .price { color: var(--rm-gold-hi) !important; font-weight: 800; background: none !important; }

/* Прогресс-бары (статистика) */
body.rm .rm-content .progress-container, body.rm .rm-content .progress { background: #1A1E28 !important; border-radius: 99px !important; overflow: hidden; border: 0 !important; }
body.rm .rm-content .progress-bar { background: var(--rm-gold) !important; }

/* Сообщения движка ($Engine->Message) */
body.rm .rm-content .box-style1 { margin: 0 0 18px; }
body.rm .rm-content .box-style1 .entry { padding: 0; background: none; }
body.rm .rm-content .success-message, body.rm .rm-content .error-message {
  padding: 14px 18px 14px 46px; border-radius: 8px; position: relative; font-weight: 600; font-size: 15px;
}
body.rm .rm-content .success-message ul, body.rm .rm-content .error-message ul { margin: 0; padding: 0; list-style: none; }
body.rm .rm-content .success-message { background: #0F2318; border: 1px solid #1F5236; color: #A6E9C2; }
body.rm .rm-content .error-message { background: #2A1412; border: 1px solid #6B2B24; color: #F5B2A7; }
body.rm .rm-content .success-message::before, body.rm .rm-content .error-message::before {
  font-family: 'bootstrap-icons'; position: absolute; left: 16px; top: 13px; font-size: 18px;
}
body.rm .rm-content .success-message::before { content: '\F26B'; color: var(--rm-green); }
body.rm .rm-content .error-message::before { content: '\F33A'; color: var(--rm-red); }
body.rm .rm-content .alert { border-radius: 8px; }
body.rm .rm-content .alert-danger { background: #2A1412 !important; border-color: #6B2B24 !important; color: #F5B2A7 !important; }
body.rm .rm-content .alert-success { background: #0F2318 !important; border-color: #1F5236 !important; color: #A6E9C2 !important; }
body.rm .rm-content .alert-info, body.rm .rm-content .alert-warning { background: var(--rm-gold-bg) !important; border-color: #3B3220 !important; color: #E8D9B0 !important; }

/* Бейджи и мелочи */
body.rm .rm-content .badge { border-radius: 99px; font-weight: 700; }
body.rm .rm-content .post_title a { font-family: var(--rm-display); font-size: 26px; color: var(--rm-text-hi); }
body.rm .rm-content img { max-width: 100%; height: auto; }
body.rm .rm-content .rm-scroll img, body.rm .rm-content table img { max-width: none; }
body.rm .rm-content .clearfix::after { content: ''; display: table; clear: both; }

/* =====================================================================
   Адаптив
   ===================================================================== */
@media (max-width: 1100px) {
  .rm-nav__link { padding: 0 10px; }
  .rm-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
  .rm-burger { display: flex; }
  .rm-header__in { flex-wrap: wrap; gap: 12px; min-height: 64px; }
  .rm-nav {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 6px 0 18px; border-top: 1px solid var(--rm-line);
  }
  .rm-nav-open .rm-nav { display: flex; }
  .rm-nav__list { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  body.rm .rm-nav__link { width: 100%; justify-content: space-between; min-height: 48px; padding: 0 6px; font-size: 16px; }
  body.rm .rm-nav__link.is-active::after { display: none; }
  .rm-nav__menu { position: static; box-shadow: none; border: 0; background: var(--rm-panel); margin: 0 0 6px; }
  .rm-nav__actions { flex-wrap: wrap; }
  .rm-nav__actions > * { flex: 1 1 auto; }
  .rm-aside { max-width: none; flex-basis: 100%; }
}

@media (max-width: 640px) {
  .rm-wrap { padding: 0 16px; }
  body.rm { font-size: 14px; }
  .rm-hide-sm { display: none; }
  .rm-topbar__in { justify-content: center; padding: 6px 0; }
  .rm-hero__text { font-size: 16px; }
  .rm-hero__bg { background-size: 1100px auto; }
  .rm-hero__in { padding-top: 280px; }
  .rm-hero__cta .rm-btn { width: 100%; }
  .rm-fact { padding: 14px 16px; }
  .rm-fact b { font-size: 16px; }
  .rm-card, body.rm .rm-content .section { padding: 18px !important; }
  .rm-h2 { font-size: 26px; }
  .rm-timer .post_date { width: 100%; }
  .rm-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .rm-rank__row { grid-template-columns: 30px 1fr; }
  .rm-rank__val { grid-column: 2; }
  body.rm .rm-content .reg-line input, body.rm .rm-content .reg-line select { max-width: none; }
}

/* ---------- Точечные правки страниц ---------- */
/* Об игре: выпадающий список разделов вместо «плавающего» */
body.rm .rm-content .select { position: sticky; top: 84px; left: auto; width: 100%; max-width: 440px; margin: 0 0 18px; z-index: 20; }
body.rm .rm-content .select::before, body.rm .rm-content .select::after { content: none; display: none; }
body.rm .rm-content .tab-select { border: 1px solid var(--rm-gold-line) !important; animation: none; background-color: var(--rm-field) !important; cursor: pointer; }
body.rm .rm-content .small-button.d-block, body.rm .rm-content .button.d-block { display: flex !important; width: fit-content; max-width: 100%; }

/* =====================================================================
   Компоненты переработанных страниц
   ===================================================================== */
.rm-h3 { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: var(--rm-text-hi); font-family: var(--rm-font) !important; }
.rm-small { font-size: 13px; }
.rm-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--rm-muted) !important; }
.rm-card--gold { background: var(--rm-gold-bg); border-color: #3B3220; }
body.rm .rm-content .rm-block { margin-bottom: 26px; }

/* Вкладки */
.rm-tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; border-bottom: 1px solid var(--rm-line); }
body.rm .rm-tab { display: inline-flex; align-items: center; min-height: 46px; padding: 0 2px; margin-bottom: -1px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--rm-muted); font: 800 12px var(--rm-font); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
body.rm .rm-tab:hover { color: var(--rm-text); }
body.rm .rm-tab.is-active { color: var(--rm-gold-hi); border-bottom-color: var(--rm-gold); }
.rm-tabs--head { margin-top: 14px; border-bottom: 0; }

/* Регистрация / восстановление */
.rm-auth { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.rm-auth__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding-top: 20px; }
body.rm .rm-content .rm-auth__title { margin: 0; font-size: clamp(36px, 4vw, 50px); line-height: 1.05; }
.rm-auth__intro p { margin: 0; font-size: 16px; max-width: 460px; }
.rm-steps { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.rm-steps li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--rm-text); }
.rm-steps li span { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--rm-gold-line); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--rm-gold); }
.rm-auth__card { flex: 1 1 440px; max-width: 540px; min-width: 0; padding: 6px 32px 32px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: 12px; box-sizing: border-box; }
.rm-auth__card .rm-tabs { margin-bottom: 24px; }
.rm-auth__form { gap: 16px; }
.rm-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.rm-form--narrow { max-width: 560px; }
.rm-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--rm-soft); cursor: pointer; }
.rm-check input { margin-top: 2px; flex: none; }

/* Файлы */
.rm-dl { display: flex; flex-wrap: wrap; gap: 22px; align-items: stretch; margin-bottom: 30px; }
.rm-dl__main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding: 30px; }
.rm-dl__side { flex: 1 1 300px; min-width: 0; }
.rm-dl__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.rm-dl__head .rm-h2 { margin: 6px 0 6px; }
.rm-dl__head p { margin: 0; }
.rm-dl__meta { display: flex; gap: 28px; margin: 0; }
.rm-dl__meta dt { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rm-muted); }
.rm-dl__meta dd { margin: 4px 0 0; font-size: 20px; font-weight: 800; color: var(--rm-text-hi); }
.rm-dl__btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rm-dl__btns .rm-btn { justify-content: space-between; }
.rm-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; font-size: 14px; line-height: 1.6; }
.rm-alert > .bi { font-size: 18px; flex: none; }
.rm-alert--info { background: #0D1A1F; border: 1px solid #1D3A44; color: #C2D6DC; }
.rm-alert--info > .bi { color: var(--rm-blue); }
.rm-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.rm-step { display: flex; flex-direction: column; gap: 10px; }
.rm-step__n { font-family: var(--rm-display); font-size: 32px; line-height: 1; color: var(--rm-gold); }
.rm-step b { font-size: 16px; color: var(--rm-text-hi); }
.rm-step > span:last-child { font-size: 14px; line-height: 1.65; color: var(--rm-soft); }
body.rm .rm-content code { color: var(--rm-gold-hi); background: #1A1E28; padding: 1px 6px; border-radius: 4px; font-size: 13px; }

/* Донат */
.rm-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
body.rm .rm-pay__item { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); color: var(--rm-text); transition: border-color .15s, transform .15s; }
body.rm .rm-pay__item:hover { border-color: var(--rm-gold); transform: translateY(-2px); color: var(--rm-text); }
.rm-pay__logo { display: flex; align-items: center; height: 54px; margin-bottom: 8px; padding: 8px 12px; background: #F2EFE7; border-radius: 6px; }
.rm-pay__logo img { max-height: 38px; max-width: 100%; object-fit: contain; }
.rm-pay__item b { font-size: 17px; color: var(--rm-text-hi); }
.rm-pay__item > span { font-size: 13px; color: var(--rm-muted); }
.rm-pay__item .rm-pay__go { margin-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rm-gold); }
.rm-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.rm-pack { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); }
.rm-pack--hot { border-color: var(--rm-gold); background: var(--rm-gold-bg); }
.rm-pack__tag { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 99px; background: var(--rm-gold); color: #17120A; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rm-pack__name { font-family: var(--rm-display); font-size: 26px; font-weight: 700; color: var(--rm-text-hi); }
.rm-pack__wc { font-size: 28px; font-weight: 800; color: var(--rm-gold-hi); font-variant-numeric: tabular-nums; line-height: 1.1; }
.rm-pack__unit { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rm-muted); }
.rm-pack__price { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--rm-line); font-size: 18px; font-weight: 800; color: var(--rm-text); }
.rm-pack__price small { font-size: 13px; color: var(--rm-muted); font-weight: 700; }
body.rm .rm-banner { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: #0F2318; border: 1px solid #1F5236; border-radius: var(--rm-radius); color: var(--rm-text); }
body.rm .rm-banner:hover { border-color: var(--rm-green); color: var(--rm-text); }
.rm-banner > .bi:first-child { font-size: 26px; color: var(--rm-green); }
.rm-banner > span { flex: 1; display: flex; flex-direction: column; font-size: 14px; color: #A6E9C2; }
.rm-banner b { font-size: 16px; color: var(--rm-text-hi); }

/* Поддержка */
.rm-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 26px; }
body.rm .rm-contact__item { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); color: var(--rm-text); }
body.rm .rm-contact__item:hover { border-color: var(--rm-gold-line); color: var(--rm-text); }
.rm-contact__item > .bi { font-size: 28px; color: var(--rm-soft); }
.rm-contact__item b { font-size: 19px; color: var(--rm-text-hi); }
.rm-contact__item > span { font-size: 14px; line-height: 1.6; color: var(--rm-soft); }
.rm-contact__item .rm-contact__go { margin-top: auto; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rm-gold); }
body.rm .rm-contact__item--gold { background: var(--rm-gold-bg); border-color: #3B3220; }
.rm-contact__item--gold > .bi { color: var(--rm-gold); }
.rm-contact__item--discord > .bi, .rm-contact__item--discord .rm-contact__go { color: #8EA2F5; }
body.rm .rm-content .faq-question { position: relative; padding-right: 48px !important; }
body.rm .rm-content .faq-question::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--rm-gold); font-size: 20px; font-weight: 400; }
body.rm .rm-content .faq-item.active .faq-question::after { content: '−'; }
body.rm .rm-content .faq-item.active .faq-answer { padding: 0 20px 18px !important; }
body.rm .rm-content .faq-container { max-width: none; margin: 0; padding: 0; background: none; box-shadow: none; }

/* Кабинет */
.rm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.rm-stat { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); }
.rm-stat > span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rm-muted); }
.rm-stat b { font-size: 24px; font-weight: 800; color: var(--rm-text-hi); line-height: 1.2; }
.rm-stat b small { font-size: 13px; color: var(--rm-muted); }
.rm-stat > small { font-size: 13px; color: var(--rm-muted); }
body.rm .rm-stat a { font-size: 13px; font-weight: 700; }
.rm-stat--gold { background: var(--rm-gold-bg); border-color: #3B3220; }
.rm-stat--gold b { color: var(--rm-gold-hi); }
.rm-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
body.rm .rm-char { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: #0D1016; border: 1px solid #1E2330; border-radius: 8px; color: var(--rm-soft); }
body.rm .rm-char:hover { border-color: var(--rm-gold-line); color: var(--rm-soft); }
.rm-char > b { font-size: 17px; color: var(--rm-text-hi); }
.rm-char > span { font-size: 13px; color: var(--rm-muted); }
.rm-char__stats { display: flex; gap: 16px; font-size: 13px; }
.rm-char__stats b { color: var(--rm-text); }

@media (max-width: 640px) {
  .rm-auth__card { padding: 4px 18px 22px; }
  .rm-dl__main { padding: 20px; }
}

/* =====================================================================
   Рейтинг, персонаж, гильдия, статистика, тюрьма
   ===================================================================== */
.rm-mb { margin-bottom: 22px; }
.rm-text-green { color: var(--rm-green) !important; }
.rm-text-red { color: var(--rm-red) !important; }
.rm-h4 { margin: 0 0 8px; font: 800 13px var(--rm-font) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--rm-muted) !important; }
.rm-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
.rm-two > .rm-card { margin: 0; }

.rm-card--flush { padding: 0; overflow: hidden; margin-bottom: 22px; }
.rm-card__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 24px 16px; }
.rm-card__head .rm-eyebrow { margin-bottom: 4px; }
.rm-card__empty { margin: 0; padding: 4px 24px 22px; color: var(--rm-muted) !important; }
.rm-card__foot { margin: 0; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; border-bottom: 0 !important; }

.rm-alert--gold { background: var(--rm-gold-bg); border: 1px solid #3B3220; color: #D8CFB8; }
.rm-alert--gold > .bi { color: var(--rm-gold); }

/* Лидеры классов */
.rm-leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.rm-leader { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 10px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); }
.rm-leader img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rm-gold-line); background: #0D1016; object-fit: cover; }
.rm-leader__cls { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rm-muted); }
body.rm .rm-leader a { font-weight: 800; color: var(--rm-text-hi); font-size: 15px; }
body.rm .rm-leader a:hover { color: var(--rm-gold-hi); }
.rm-gens { display: flex; gap: 10px; flex-wrap: wrap; }
.rm-gens__item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--rm-line); border-radius: 99px; font-size: 13px; color: var(--rm-soft); }
.rm-gens__item b { color: var(--rm-text-hi); }

/* Панель фильтров */
.rm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--rm-line); }
.rm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.rm .rm-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--rm-line-2); color: var(--rm-soft); font-weight: 700; font-size: 13px; }
body.rm .rm-chip:hover { border-color: var(--rm-gold-line); color: var(--rm-gold-hi); }
body.rm .rm-chip.is-active { background: var(--rm-gold); border-color: var(--rm-gold); color: #17120A; }
.rm-search { display: flex; gap: 8px; margin: 0; flex: 0 1 360px; }
body.rm .rm-content .rm-search input { flex: 1; min-width: 0; }

/* Таблицы нового вида */
body.rm .rm-content .rm-table { margin: 0; }
body.rm .rm-content .rm-table th:first-child, body.rm .rm-content .rm-table td:first-child { padding-left: 22px !important; }
body.rm .rm-content .rm-table th:last-child, body.rm .rm-content .rm-table td:last-child { padding-right: 22px !important; }
body.rm .rm-content .rm-table td { border-bottom: 1px solid #1A1E28; text-align: left; white-space: nowrap; }
body.rm .rm-content .rm-table tbody tr:last-child td { border-bottom: 0; }
body.rm .rm-content .rm-table th { text-align: left; }
body.rm .rm-content .rm-table .rm-t-num { text-align: right; font-variant-numeric: tabular-nums; }
body.rm .rm-content .rm-table th.rm-t-num { text-align: right; }
.rm-t-pos { width: 56px; }
body.rm .rm-content .rm-t-empty { text-align: center !important; padding: 34px 12px !important; color: var(--rm-muted) !important; }
.rm-pos { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: 6px; font-family: var(--rm-display); font-weight: 700; font-size: 18px; color: #7E8494; }
.rm-t-top--1 .rm-pos { background: rgba(240,197,102,.14); color: var(--rm-gold-hi); }
.rm-t-top--2 .rm-pos { background: rgba(201,206,216,.12); color: #DDE1E8; }
.rm-t-top--3 .rm-pos { background: rgba(201,138,85,.14); color: #E0A06B; }
body.rm .rm-content .rm-t-top td { background: rgba(217,169,73,.025); }
.rm-who, .rm-guild, .rm-cls { display: inline-flex; align-items: center; gap: 10px; }
.rm-who img { margin-left: 2px; }
.rm-cls img { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--rm-gold-line); }
.rm-cls { color: var(--rm-soft); }
.rm-gmark { border-radius: 3px; image-rendering: pixelated; }
.rm-gmark--lg { width: 28px; height: 28px; }
.rm-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; background: #4A5060; }
.rm-dot--online { background: var(--rm-green); box-shadow: 0 0 0 3px rgba(91,209,139,.15); }
.rm-dot--attack { background: #4FA3F7; box-shadow: 0 0 0 3px rgba(79,163,247,.15); }
.rm-dot--store { background: #F2C14E; box-shadow: 0 0 0 3px rgba(242,193,78,.15); }
.rm-dot--offline { background: #5A6070; }
.rm-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 22px; border-top: 1px solid var(--rm-line); font-size: 12px; color: var(--rm-muted); }
.rm-legend span { display: inline-flex; align-items: center; gap: 8px; }
.rm-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; background: #1A1E28; border: 1px solid var(--rm-line-2); color: var(--rm-soft); font-size: 12px; font-weight: 700; white-space: nowrap; }
.rm-badge--gold { background: rgba(217,169,73,.12); border-color: var(--rm-gold-line); color: var(--rm-gold-hi); }
.rm-badge--green { background: #0F2318; border-color: #1F5236; color: #A6E9C2; }
.rm-badge--red { background: #2A1412; border-color: #6B2B24; color: #F5B2A7; }

/* Castle Siege */
.rm-castle { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 26px; }
.rm-castle__owner { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: var(--rm-radius); background: var(--rm-gold-bg) url(../images/castle_siege.png) right center / cover no-repeat; border: 1px solid #3B3220; position: relative; overflow: hidden; }
.rm-castle__owner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #16140E 35%, rgba(22,20,14,.85) 70%, rgba(22,20,14,.6)); }
.rm-castle__owner > * { position: relative; }
body.rm .rm-castle__guild { font-family: var(--rm-display); font-weight: 700; font-size: 44px; line-height: 1.05; color: var(--rm-text-hi); }
body.rm a.rm-castle__guild:hover { color: var(--rm-gold-hi); }
.rm-castle__owner p { margin: 0; max-width: 560px; color: #B8B2A3 !important; font-size: 14px; }
.rm-castle__facts { flex: 1 1 260px; display: grid; gap: 10px; }
.rm-castle__facts .rm-fact { background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); margin: 0; }
.rm-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rm-timeline__item { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); }
.rm-timeline__item > span { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--rm-gold-line); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--rm-gold); }
.rm-timeline__item b { display: block; color: var(--rm-text-hi); }
.rm-timeline__item small { color: var(--rm-muted); font-size: 13px; }
.rm-timeline__item--hot { background: var(--rm-gold-bg); border-color: var(--rm-gold-line); }
.rm-timeline__item--hot > span { background: var(--rm-gold); color: #17120A; border-color: var(--rm-gold); }

/* Карточка персонажа / гильдии */
.rm-hero-card { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 18px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: 12px; overflow: hidden; }
.rm-hero-card__art { flex: 0 0 260px; min-height: 260px; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(circle at 50% 70%, rgba(217,169,73,.18), transparent 65%), #0D0F14; border-right: 1px solid var(--rm-line); }
.rm-hero-card__art img { max-width: 100%; max-height: 300px; object-fit: contain; }
.rm-hero-card__art--mark { align-items: center; padding: 24px; }
.rm-hero-card__art--mark img { width: 160px; height: 160px; image-rendering: pixelated; border: 1px solid var(--rm-gold-line); border-radius: 8px; background: #000; }
.rm-hero-card__body { flex: 1 1 360px; min-width: 0; padding: 28px 30px; display: flex; flex-direction: column; gap: 12px; }
.rm-hero-card__top { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
body.rm .rm-content .rm-hero-card__name { margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1; }
.rm-hero-card__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--rm-soft); font-size: 14px; }
.rm-hero-card__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border: 1px solid var(--rm-line); border-radius: 8px; overflow: hidden; margin-top: 6px; }
.rm-hero-card__facts .rm-fact { background: #0D1016; }
.rm-status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px; background: #1A1E28; border: 1px solid var(--rm-line-2); font-size: 12px; font-weight: 800; color: var(--rm-soft); }
.rm-status-pill--online { color: #A6E9C2; border-color: #1F5236; background: #0F2318; }
.rm-vip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 99px; background: rgba(217,169,73,.12); border: 1px solid var(--rm-gold-line); font-size: 12px; font-weight: 800; color: var(--rm-gold-hi); }
.rm-vip img { width: 18px; height: auto; }
.rm-kv--inline { margin-top: 4px; }
.rm-inv__box { overflow-x: auto; display: flex; justify-content: center; }

/* Раскрывающиеся блоки */
details.rm-acc { margin-bottom: 12px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); }
details.rm-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 22px; font-weight: 800; font-size: 16px; color: var(--rm-text-hi); }
details.rm-acc > summary::-webkit-details-marker { display: none; }
details.rm-acc > summary small { font-weight: 600; font-size: 12px; color: var(--rm-muted); margin-left: auto; margin-right: 14px; }
details.rm-acc > summary::after { content: '+'; color: var(--rm-gold); font-size: 22px; font-weight: 400; }
details.rm-acc[open] > summary::after { content: '−'; }
details.rm-acc > summary:hover { color: var(--rm-gold-hi); }
.rm-acc__body { padding: 0 22px 22px; }
.rm-stats--sm { margin-bottom: 18px; }
.rm-limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.rm-limit { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #0D1016; border: 1px solid #1E2330; border-radius: 8px; }
.rm-limit span { color: var(--rm-soft); }
.rm-limit b { color: var(--rm-text-hi); font-variant-numeric: tabular-nums; }
.rm-limit small { color: var(--rm-muted); font-weight: 600; }

/* Статистика: события */
.rm-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rm-event { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); }
.rm-event p { margin: 0; font-size: 14px; }
.rm-event__state { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; padding: 14px 16px; background: #0D1016; border: 1px solid #1E2330; border-radius: 8px; }
.rm-event__state span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rm-muted); }
.rm-event__state b { font-size: 18px; }

@media (max-width: 640px) {
  .rm-hero-card__art { flex-basis: 100%; min-height: 200px; border-right: 0; border-bottom: 1px solid var(--rm-line); }
  .rm-hero-card__body { padding: 20px; }
  .rm-toolbar { padding: 14px 16px; }
  .rm-search { flex-basis: 100%; }
  body.rm .rm-content .rm-table th:first-child, body.rm .rm-content .rm-table td:first-child { padding-left: 14px !important; }
  .rm-castle__owner { padding: 22px; }
  body.rm .rm-castle__guild { font-size: 34px; }
}

/* Статус игрока в старых таблицах (цветная полоска слева) */
body.rm .rm-content td.status-cell { border-left: 4px solid !important; }
body.rm .rm-content td.status-cell.online { border-left-color: #5BD18B !important; }
body.rm .rm-content td.status-cell.offline { border-left-color: #D45B5B !important; }
body.rm .rm-content td.status-cell.attack-offline { border-left-color: #4FA3F7 !important; }
body.rm .rm-content td.status-cell.store-offline { border-left-color: #F2C14E !important; }

/* =====================================================================
   Гайды (База знаний)
   ===================================================================== */
.rm-guide { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.rm-guide__nav { flex: 1 1 250px; max-width: 290px; min-width: 0; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); padding: 10px 0; scrollbar-width: thin; scrollbar-color: #2E3546 transparent; }
.rm-guide__select { display: none; }
.rm-guide__group { padding: 10px 0 6px; }
.rm-guide__group + .rm-guide__group { border-top: 1px solid var(--rm-line); }
.rm-guide__group-title { padding: 0 18px 6px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--rm-muted); }
body.rm .rm-guide__menu a { display: block; padding: 8px 18px; border-left: 2px solid transparent; color: var(--rm-soft); font-size: 14px; font-weight: 600; }
body.rm .rm-guide__menu a:hover { color: var(--rm-gold-hi); background: var(--rm-panel-2); }
body.rm .rm-guide__menu a.is-active { color: var(--rm-gold-hi); border-left-color: var(--rm-gold); background: #151820; }
body.rm .rm-content .rm-guide__body { flex: 999 1 560px; min-width: 0; margin: 0; padding: 28px 32px !important; }
body.rm .rm-content .rm-guide__body > h2 { font-size: 40px; margin: 6px 0 20px; }
.rm-guide__text { line-height: 1.7; }
body.rm .rm-content .rm-guide__text p { margin: 0 0 14px; }
body.rm .rm-content .rm-guide__text h3 { font-size: 26px; margin: 20px 0 12px; }
body.rm .rm-content .rm-guide__text table { margin: 6px 0 18px; border: 1px solid var(--rm-line); border-radius: 8px; overflow: hidden; }
body.rm .rm-content .rm-guide__text .rm-scroll { margin: 6px 0 18px; }
body.rm .rm-content td.header, body.rm .rm-content .cells .header {
  background: var(--rm-panel-2) !important; color: var(--rm-gold-hi) !important; font-weight: 800; border-color: var(--rm-line) !important;
}
body.rm .rm-content .cells td { border: 1px solid #1E2330 !important; }
body.rm .rm-content .rm-guide__text > p:first-child .tablink:first-child,
body.rm .rm-content .rm-guide__text p > .tablink { margin-right: 4px; }
body.rm .rm-content .rm-guide__text p:has(> .tablink) { display: flex; flex-wrap: wrap; gap: 0 18px; border-bottom: 1px solid var(--rm-line); margin-bottom: 18px; }

@media (max-width: 900px) {
  .rm-guide__nav { position: static; max-width: none; flex-basis: 100%; max-height: none; padding: 16px; }
  .rm-guide__menu { display: none; }
  .rm-guide__select { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--rm-soft); }
  body.rm .rm-content .rm-guide__select select { width: 100%; }
  body.rm .rm-content .rm-guide__body { padding: 20px !important; }
}

/* =====================================================================
   Drop List
   ===================================================================== */
.rm-drop__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-items: end; margin: 0 0 22px; }
.rm-drop__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.rm-drop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 22px; }
.rm-drop-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 14px; text-align: center; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); }
.rm-drop-card:hover { border-color: var(--rm-gold-line); }
body.rm .rm-content .rm-drop-card h5 { margin: 0; padding: 0 22px; font: 700 14px/1.35 var(--rm-font); color: var(--rm-text-hi); }
.rm-drop-info { position: absolute; top: 12px; right: 12px; color: var(--rm-gold); cursor: help; font-size: 15px; }
.rm-drop-tip { display: none; position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); width: 240px; z-index: 30; padding: 12px 14px; text-align: left; background: #0B0E14; border: 1px solid var(--rm-gold-line); border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.6); font-size: 13px; color: var(--rm-text); }
.rm-drop-tip ul { margin: 0; padding: 0 0 0 16px; }
.rm-drop-tip li { margin: 2px 0; }
.rm-drop-card .image-container { text-align: center; }
.rm-drop-card .image-container img { max-width: 100%; max-height: 140px; margin: 0 auto; }
body.rm .rm-content .rm-drop-open { min-height: 36px; padding: 0 14px; font-size: 11px; }
body.rm .rm-content .rm-table--center th, body.rm .rm-content .rm-table--center td { text-align: center; }

/* Правила и другие текстовые страницы */
body.rm .rm-content .rm-tabs-row { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0 0 22px; border-bottom: 1px solid var(--rm-line); font-size: inherit; }
body.rm .rm-content .rm-doc { line-height: 1.75; }
body.rm .rm-content .rm-doc h3 { font-size: 24px; margin: 18px 0 10px; color: var(--rm-gold-hi); }
body.rm .rm-content .rm-doc p { max-width: 900px; }

/* =====================================================================
   Личный кабинет: телепорт, смена класса, VIP, возврат, тикеты
   ===================================================================== */
.rm-text-gold { color: var(--rm-gold-hi) !important; }
.rm-center { text-align: center; }
.rm-icon-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.rm-icon-head > .bi { flex: none; width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--rm-gold); background: var(--rm-gold-bg); border: 1px solid #3B3220; }
body.rm .rm-content .rm-icon-head h2 { margin: 0 0 4px; }
.rm-icon-head p { margin: 0; max-width: 720px; }
.rm-card--inner { background: #0D1016; padding: 20px; }
.rm-change__row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.rm-change__row .rm-field { flex: 1 1 260px; max-width: 360px; }

/* Выбор персонажа (GetCharacters) */
body.rm .rm-content .character-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
body.rm .rm-content .character-grid > a { display: block; border: 1px solid var(--rm-line); border-radius: var(--rm-radius); overflow: hidden; background: #0D1016; transition: border-color .15s, transform .15s; }
body.rm .rm-content .character-grid > a:hover { border-color: var(--rm-gold); transform: translateY(-2px); }
body.rm .rm-content .character-grid [class^="select_char_"] { width: 100% !important; margin: 0 !important; background-size: cover; background-position: center top; border-radius: 0; display: flex; flex-direction: column; justify-content: flex-end; }
body.rm .rm-content .character-grid .button-primary { background: linear-gradient(0deg, rgba(10,12,17,.95), rgba(10,12,17,.6)) !important; border: 0 !important; border-top: 1px solid var(--rm-line) !important; padding: 10px !important; font: 800 14px var(--rm-font) !important; color: var(--rm-text-hi) !important; border-radius: 0 !important; }

/* VIP */
.rm-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.rm-tier { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 20px; text-align: center; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); }
.rm-tier img { width: 48px; height: auto; margin-bottom: 4px; }
.rm-tier__name { font-family: var(--rm-display); font-size: 26px; font-weight: 700; }
.rm-tier--bronze .rm-tier__name { color: #E0A06B; }
.rm-tier--silver .rm-tier__name { color: #DDE1E8; }
.rm-tier--gold { border-color: var(--rm-gold); background: var(--rm-gold-bg); }
.rm-tier--gold .rm-tier__name { color: var(--rm-gold-hi); }
.rm-tier__price { font-size: 26px; font-weight: 800; color: var(--rm-text-hi); }
.rm-tier__price small { font-size: 13px; color: var(--rm-muted); }
.rm-tier__days { padding: 3px 12px; border-radius: 99px; background: #1A1E28; font-size: 12px; font-weight: 700; color: var(--rm-soft); }
body.rm .rm-content .rm-table--compare td, body.rm .rm-content .rm-table--compare th { white-space: normal; }
body.rm .rm-content .rm-table--compare .rm-t-c { text-align: center !important; width: 11%; }
.rm-yes { color: var(--rm-green); font-size: 18px; }
body.rm .rm-content .rm-c-bronze { color: #E0A06B !important; }
body.rm .rm-content .rm-c-silver { color: #DDE1E8 !important; }
body.rm .rm-content .rm-c-gold { color: var(--rm-gold-hi) !important; }
.rm-shot { max-width: 100%; border-radius: 8px; border: 1px solid var(--rm-line); margin-top: 6px; }

/* Возврат WCoinC */
.rm-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 22px; }
.rm-method { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--rm-panel) !important; border: 1px solid var(--rm-line) !important; border-radius: var(--rm-radius); margin: 0 !important; }
.rm-method--best { border-color: var(--rm-gold) !important; background: var(--rm-gold-bg) !important; }
.rm-method__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rm-method__pct { font-family: var(--rm-display); font-size: 44px; font-weight: 700; line-height: 1; color: var(--rm-gold-hi); }
body.rm .rm-content .rm-method .rm-h3 { margin: 0; font-size: 16px; }
.rm-method__sum { display: flex; flex-direction: column; padding: 12px 14px; background: #0D1016; border: 1px solid #1E2330; border-radius: 8px; }
.rm-method__sum span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rm-muted); }
.rm-method__sum b { font-size: 22px; color: var(--rm-text-hi); }
.rm-method__sum small { font-size: 12px; color: var(--rm-muted); }
.rm-method__desc { margin: 0; font-size: 14px; flex: 1; }
.rm-method .rm-btn[disabled] { opacity: .55; cursor: not-allowed; }
.rm-confirm { position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; padding: 20px; background: rgba(4,5,8,.75); }
.rm-confirm__box { width: 100%; max-width: 420px; padding: 28px; text-align: center; background: var(--rm-panel); border: 1px solid var(--rm-gold-line); border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.rm-confirm__box p { margin: 0 0 20px; font-size: 16px; color: var(--rm-text-hi) !important; }
.rm-confirm__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   Страницы оплаты (PayPal, Pally, FreeKassa, Stripe)
   ===================================================================== */
.rm-pay-page__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
body.rm .rm-content .rm-pay-page__head h2 { margin: 0; }
body.rm .rm-content .rm-pay-page .container { max-width: none; padding: 0; }
body.rm .rm-content .rm-pay-page .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 0; }
body.rm .rm-content .rm-pay-page .row > [class*="col-"] { max-width: none; width: auto; flex: none; padding: 0; margin: 0; }
body.rm .rm-content .rm-pay-page .pricing-table { margin: 0; padding: 22px 18px !important; display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box; list-style: none; }
body.rm .rm-content .rm-pay-page .plan-name { padding: 0; }
body.rm .rm-content .rm-pay-page .plan-price { font-size: 20px; margin: 0; }
body.rm .rm-content .rm-pay-page .price span { font-size: 18px; color: var(--rm-text) !important; }
body.rm .rm-content .rm-pay-page .plan-action { margin: 10px 0 0; margin-top: auto; padding-top: 10px; }
/* Окно «Политика возвратов» */
body.rm #modal1, body.rm #modal { background: rgba(4,5,8,.8) !important; backdrop-filter: blur(3px); }
body.rm #modal1-content, body.rm #modal-content { background: var(--rm-panel) !important; border: 1px solid var(--rm-gold-line) !important; border-radius: 12px !important; padding: 30px !important; color: #C2C6D0; box-shadow: 0 30px 80px rgba(0,0,0,.6); scrollbar-width: thin; }
body.rm #modal1-content h2, body.rm #modal-content h2 { font-family: var(--rm-display); color: var(--rm-text-hi); font-size: 30px; margin: 0 0 12px; }
body.rm #modal1-content h3, body.rm #modal-content h3 { font-family: var(--rm-display); color: var(--rm-gold-hi); font-size: 22px; margin: 14px 0 6px; }
body.rm #modal1-content br + br, body.rm #modal-content br + br { display: none; }
body.rm #modal1-content .close, body.rm #modal-content .close { color: var(--rm-muted); opacity: 1; font-size: 30px; line-height: 1; text-shadow: none; }
body.rm #modal1-content .close:hover, body.rm #modal-content .close:hover { color: var(--rm-text); }
body.rm #modal1-content #agreeBtn, body.rm #modal-content #agreeBtn { margin-top: 14px; }

/* =====================================================================
   Страница персонажа: профиль, вкладки, экипировка
   ===================================================================== */
.rm-back { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; font-size: 13px; font-weight: 700; }
body.rm .rm-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--rm-gold); }
.rm-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; padding: 18px 22px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: 12px; margin-bottom: 4px; }
.rm-profile__ava { width: 76px; height: 76px; flex: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--rm-gold-line); background: radial-gradient(circle at 50% 30%, rgba(217,169,73,.25), #0D0F14 70%); }
.rm-profile__ava img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transform: scale(1.35); transform-origin: center 20%; }
.rm-profile__main { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rm-profile__name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.rm .rm-content .rm-profile__name h2 { margin: 0; font-size: 34px; line-height: 1; }
.rm-profile__meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--rm-soft); }
.rm-profile__meta span + span::before { content: '·'; margin: 0 9px; color: #4A5060; }
.rm-profile__stats { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-profile__stats > div { display: flex; flex-direction: column; align-items: center; min-width: 92px; padding: 9px 12px; background: #0D1016; border: 1px solid #1E2330; border-radius: 8px; }
.rm-profile__stats span { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rm-muted); }
.rm-profile__stats b { font-size: 19px; font-weight: 800; color: var(--rm-gold-hi); font-variant-numeric: tabular-nums; }

.rm-ptabs { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 18px 0 0; padding: 0 4px; border-bottom: 1px solid var(--rm-line); overflow-x: auto; }
.rm-ptab { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 2px; margin-bottom: -1px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--rm-muted); font: 700 15px var(--rm-font); cursor: pointer; white-space: nowrap; }
.rm-ptab:hover { color: var(--rm-text); }
.rm-ptab.is-active { color: var(--rm-gold-hi); border-bottom-color: var(--rm-gold); }
.rm-ptab small { padding: 1px 8px; border-radius: 99px; background: #1A1E28; color: var(--rm-soft); font-size: 11px; font-weight: 800; }
.rm-ptab.is-active small { background: rgba(217,169,73,.15); color: var(--rm-gold-hi); }
.rm-ppanel { padding: 24px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-top: 0; border-radius: 0 0 12px 12px; margin-bottom: 22px; }
.rm-ppanel[hidden] { display: none; }
.rm-mt { margin-top: 20px !important; }

.rm-locked { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; text-align: center; color: var(--rm-muted); }
.rm-locked > .bi { font-size: 30px; color: var(--rm-gold); }
.rm-locked b { color: var(--rm-text-hi); font-size: 17px; }

/* Экипировка: «кукла» персонажа */
.rm-equip { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.rm-doll {
  flex: 0 1 380px; min-width: 0;
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px;
  grid-template-areas: "a b c" "d e f" "g h i";
  padding: 18px; border-radius: 12px; background: radial-gradient(ellipse at 50% 45%, rgba(217,169,73,.08), transparent 65%), #0B0E14; border: 1px solid #1E2330;
}
.rm-doll__a { grid-area: a; } .rm-doll__b { grid-area: b; } .rm-doll__c { grid-area: c; }
.rm-doll__d { grid-area: d; } .rm-doll__e { grid-area: e; } .rm-doll__f { grid-area: f; }
.rm-doll__g { grid-area: g; } .rm-doll__h { grid-area: h; } .rm-doll__i { grid-area: i; }
.rm-doll > div { display: flex; align-items: center; justify-content: center; }
.rm-equip__side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.rm-jewels { display: flex; flex-wrap: wrap; gap: 10px; }

.rm-slot { position: relative; display: flex; align-items: center; justify-content: center; box-sizing: border-box; border-radius: 10px; background: #12161F; border: 1px solid #262C3A; transition: border-color .15s, transform .15s, box-shadow .15s; }
.rm-slot img { max-width: 82%; max-height: 82%; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.rm-slot--s { width: 54px; height: 54px; border-radius: 50%; }
.rm-slot--m { width: 100%; max-width: 96px; aspect-ratio: 1 / 1; }
.rm-slot--l { width: 100%; max-width: 112px; aspect-ratio: 4 / 5; }
.rm-slot--tall { width: 100%; max-width: 96px; aspect-ratio: 1 / 2; }
.rm-slot--xl { width: 100%; max-width: 112px; aspect-ratio: 1 / 1; }
.rm-slot.is-empty { border-style: dashed; border-color: #252B38; background: repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 6px, transparent 6px 12px), #0E1118; }
.rm-slot.is-empty span { padding: 4px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-align: center; color: #5C6272; line-height: 1.2; }
.rm-slot--s.is-empty span { font-size: 8px; }
.rm-slot.is-filled { cursor: help; }
.rm-slot.is-filled:hover, .rm-slot.is-filled:focus-visible { transform: translateY(-2px); }
.rm-rar-norm.is-filled { border-color: #34507A; background: radial-gradient(circle at 50% 40%, rgba(80,130,210,.18), #12161F 70%); }
.rm-rar-exc.is-filled { border-color: #2E8A57; background: radial-gradient(circle at 50% 40%, rgba(70,210,130,.18), #12161F 70%); }
.rm-rar-anc.is-filled { border-color: #2C9C9C; background: radial-gradient(circle at 50% 40%, rgba(60,210,210,.2), #12161F 70%); }
.rm-rar-norm.is-filled:hover { box-shadow: 0 0 0 1px #4A6FA8, 0 8px 22px rgba(60,110,190,.25); }
.rm-rar-exc.is-filled:hover { box-shadow: 0 0 0 1px #3FB874, 0 8px 22px rgba(60,190,110,.25); }
.rm-rar-anc.is-filled:hover { box-shadow: 0 0 0 1px #3CC4C4, 0 8px 22px rgba(60,190,190,.25); }
.rm-slot__lvl { position: absolute; top: 5px; right: 6px; padding: 0 5px; border-radius: 4px; background: rgba(7,8,12,.85); font-size: 10px; font-weight: 800; color: var(--rm-gold-hi); line-height: 16px; }
.rm-slot--s .rm-slot__lvl { top: -4px; right: -6px; }
.rm-rarity { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--rm-muted); }
.rm-rarity span { display: inline-flex; align-items: center; gap: 7px; }
.rm-rar-dot { width: 10px; height: 10px; border-radius: 3px; border: 1px solid; }
.rm-rar-dot.rm-rar-norm { background: #1C2A40; border-color: #4A6FA8; }
.rm-rar-dot.rm-rar-exc { background: #143524; border-color: #3FB874; }
.rm-rar-dot.rm-rar-anc { background: #123737; border-color: #3CC4C4; }

/* Полоски характеристик */
.rm-statbars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 22px; margin-bottom: 18px; }
.rm-statbar__top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.rm-statbar__top span { color: var(--rm-soft); }
.rm-statbar__top b { color: var(--rm-text-hi); font-variant-numeric: tabular-nums; }
.rm-statbar__track { height: 6px; border-radius: 99px; background: #1A1E28; overflow: hidden; }
.rm-statbar__track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8A6A2A, var(--rm-gold-hi)); }
.rm-kv--top li:first-child { border-top: 1px solid #1E2330; }

@media (max-width: 640px) {
  .rm-profile { padding: 16px; }
  .rm-profile__stats > div { min-width: 0; flex: 1 1 40%; }
  .rm-ppanel { padding: 16px; }
  .rm-ptabs { flex-wrap: nowrap; gap: 18px; }
  .rm-doll { flex-basis: 100%; gap: 8px; padding: 12px; }
}

/* =====================================================================
   Единый стиль всплывающих подсказок и окон
   ===================================================================== */
/* Подсказки предметов (tooltip.js / Tip()) */
body.rm #WzTtDiV { border-radius: 10px !important; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.65) !important; }
body.rm #WzTtDiV, body.rm #WzBoDy, body.rm #WzBoDyI { background-image: none !important; }
body.rm #WzBoDy { background-color: #0B0E14 !important; border: 1px solid var(--rm-gold-line) !important; border-radius: 10px !important; }
body.rm #WzBoDyI { background-color: transparent !important; padding: 12px 14px !important; line-height: 1.55 !important; max-width: 340px; }
body.rm #WzBoDyI b { font-size: 14px; }
/* Подсказка анцент-сета в две колонки (справа - Set Effect): пошире, чтобы не обрезалась */
body.rm #WzBoDyI:has(.rb_tip_two) { max-width: min(680px, calc(100vw - 40px)); }
/* Подсказки в Drop List и старых модулях */
body.rm .rm-content .tooltip-content, body.rm .rm-drop-tip { background: #0B0E14 !important; border: 1px solid var(--rm-gold-line) !important; border-radius: 10px !important; color: var(--rm-text) !important; box-shadow: 0 18px 50px rgba(0,0,0,.65) !important; }
/* Картинки-скриншоты в тюрьме */
body.rm .prison-image-modal { background: rgba(4,5,8,.82) !important; backdrop-filter: blur(3px); }
body.rm .prison-image-modal__dialog { background: var(--rm-panel) !important; border: 1px solid var(--rm-gold-line) !important; border-radius: 12px !important; padding: 10px; overflow: hidden; }
body.rm .prison-modal-image { border-radius: 8px; }
body.rm .prison-modal-close { min-width: 40px !important; height: 40px !important; border-radius: 8px !important; border: 1px solid var(--rm-line-2) !important; background: var(--rm-panel-2) !important; color: var(--rm-text) !important; font: 800 14px var(--rm-font) !important; line-height: 38px !important; }
body.rm .prison-modal-close:hover { border-color: var(--rm-gold) !important; color: var(--rm-gold-hi) !important; }
/* Логотип со светлым текстом (Pally) — на тёмной подложке */
.rm-pay__logo--dark { background: #1C2A3A; border: 1px solid #2E4258; }

/* Подсказка предметов (realm.js) — компактная */
.rm-tip {
  position: fixed; z-index: 3000; display: none; pointer-events: none;
  width: max-content; max-width: min(290px, calc(100vw - 20px)); max-height: calc(100vh - 20px); overflow: hidden;
  padding: 8px 11px; box-sizing: border-box;
  background: rgba(11,14,20,.97); border: 1px solid var(--rm-gold-line); border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0,0,0,.65);
  color: var(--rm-text); font: 500 11.5px/1.38 var(--rm-font); text-align: center;
}
.rm-tip b { font-size: 12.5px; }
.rm-tip font, .rm-tip div { font-family: inherit !important; }
.rm-tip div[style*="a00000"] { display: inline-block; margin: 1px 0; padding: 0 6px; border-radius: 3px; font-size: 10.5px; line-height: 1.5; }
/* Подсказка анцент-сета в две колонки (справа - Set Effect): шире обычной, иначе правая колонка обрезается */
.rm-tip:has(.rb_tip_two) { max-width: min(660px, calc(100vw - 20px)); }
@media (max-width: 560px) {
  .rm-tip .rb_tip_two { flex-direction: column; align-items: stretch !important; gap: 6px !important; }
  .rm-tip .rb_tip_main, .rm-tip .rb_tip_side { min-width: 0 !important; }
  .rm-tip .rb_tip_side { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid #2a2a2a; padding-top: 6px; }
}

/* ===== Админ-панель ===== */
.rm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.rm .rm-content [hidden] { display: none !important; }
.rm-btn--danger, body.rm .rm-btn--danger { background: #8E2A20; border-color: #A8382C; color: #FFF1EE; }
.rm-btn--danger:hover, body.rm .rm-btn--danger:hover { background: #A8382C; border-color: #C24536; color: #fff; }
.rm-btn--sm, body.rm .rm-btn--sm { min-height: 32px; padding: 0 12px; font-size: 12px; }
body.rm button.rm-chip { background: transparent; font-family: var(--rm-font); cursor: pointer; }
body.rm button.rm-chip.is-active { background: var(--rm-gold); }
.rm-adm-two { align-items: start; }
.rm-adm-two .rm-icon-head { margin-bottom: 20px; }
.rm-adm-two .rm-icon-head h2 { margin: 0 0 4px; }
.rm-adm-row4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.rm-adm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rm-adm-split { display: flex; flex-wrap: wrap; gap: 24px; }
.rm-adm-grow { flex: 1 1 380px; min-width: 0; }
.rm-adm-side { flex: 0 1 280px; display: flex; flex-direction: column; gap: 10px; padding-left: 24px; border-left: 1px solid var(--rm-line); }
.rm-adm-side form { margin: 0; }
@media (max-width: 760px) { .rm-adm-side { flex-basis: 100%; padding-left: 0; border-left: 0; padding-top: 18px; border-top: 1px solid var(--rm-line); } }
.rm-adm-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin: 0; }
.rm-adm-filter .rm-field { flex: 0 1 200px; }
body.rm .rm-field input[type="date"], body.rm .rm-field input[type="number"] { min-height: 44px; padding: 0 12px; width: 100%; box-sizing: border-box; background: var(--rm-field); border: 1px solid var(--rm-line-2); border-radius: 6px; color: var(--rm-text); font: 500 15px var(--rm-font); color-scheme: dark; }
.rm-adm-date { margin: 0; }
.rm-adm-date .rm-field select { min-width: 170px; min-height: 38px; }
body.rm .rm-content .rm-table td.rm-adm-wrap { white-space: normal; min-width: 180px; }
.rm-adm-code { padding: 2px 7px; border-radius: 5px; background: #0D1016; border: 1px solid var(--rm-line); color: var(--rm-soft); font: 600 12.5px ui-monospace, 'SFMono-Regular', Consolas, monospace; }
.rm-adm-chars { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-adm-char { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 9px; border-radius: 6px; background: #1A1E28; border: 1px solid var(--rm-line-2); font-size: 13px; }
.rm-adm-char small { color: var(--rm-muted); font-size: 11px; }
.rm-adm-hint { padding: 26px 0; }
.rm-stats--sm .rm-stat { padding: 16px 18px; }
.rm-stats--sm .rm-stat b { font-size: 20px; }
/* Варианты кнопок внутри контента сильнее «старых» правил */
body.rm .rm-content button.rm-btn--ghost[type="submit"] { background: transparent !important; border-color: var(--rm-line-2) !important; color: var(--rm-text) !important; }
body.rm .rm-content button.rm-btn--ghost[type="submit"]:hover { border-color: var(--rm-gold) !important; color: var(--rm-gold-hi) !important; background: transparent !important; }
body.rm .rm-content button.rm-btn--danger[type="submit"] { background: #8E2A20 !important; border-color: #A8382C !important; color: #FFF1EE !important; }
body.rm .rm-content button.rm-btn--danger[type="submit"]:hover { background: #A8382C !important; border-color: #C24536 !important; }
body.rm .rm-content button.rm-btn--sm[type="submit"] { min-height: 32px; padding: 0 12px; font-size: 11.5px !important; }
.rm-adm-chars { min-width: 300px; }

/* ===== Главная: рейты сервера (вместо полосы фактов) ===== */
.rm-rates { position: relative; display: grid; grid-template-columns: minmax(240px, 300px) 1fr; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.rm-rates__main { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 26px 28px; background: radial-gradient(120% 140% at 0% 0%, rgba(217,169,73,.16), transparent 60%), var(--rm-gold-bg); border-right: 1px solid #3B3220; }
.rm-rates__main .rm-eyebrow { margin: 0; }
.rm-rates__big { font-family: var(--rm-display); font-weight: 700; font-size: 58px; line-height: .95; color: var(--rm-gold-hi); letter-spacing: .01em; }
.rm-rates__sub { font-size: 13px; line-height: 1.5; color: #B8B2A3; }
.rm-rates__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.rm-rates__list li { margin: 0 -1px -1px 0; border-right: 1px solid #1E2330; border-bottom: 1px solid #1E2330; }
.rm-rates__list li > a, .rm-rates__list li { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 22px; }
.rm-rates__list li.rm-rates__link { display: block; padding: 0; }
.rm-rates__list li > a { height: 100%; box-sizing: border-box; color: inherit; transition: background .15s; }
body.rm .rm-rates__list li > a:hover { background: #151922; color: inherit; }
.rm-rates__list .bi { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--rm-gold); background: #171B24; border: 1px solid var(--rm-line-2); }
.rm-rates__list b { font-size: 19px; font-weight: 800; color: var(--rm-text-hi); line-height: 1.15; font-variant-numeric: tabular-nums; }
.rm-rates__list span { font-size: 12.5px; color: var(--rm-muted); line-height: 1.35; }
@media (max-width: 991px) {
  .rm-rates { grid-template-columns: 1fr; }
  .rm-rates__main { border-right: 0; border-bottom: 1px solid #3B3220; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 14px; padding: 20px 22px; }
  .rm-rates__main .rm-eyebrow { flex-basis: 100%; }
  .rm-rates__big { font-size: 46px; }
  .rm-rates__sub { flex: 1 1 200px; }
}
@media (max-width: 640px) {
  .rm-rates__list { grid-template-columns: repeat(2, 1fr); }
  .rm-rates__list li > a, .rm-rates__list li { grid-template-columns: 1fr; padding: 14px 16px; row-gap: 2px; }
  .rm-rates__list li.rm-rates__link { padding: 0; }
  .rm-rates__list .bi { grid-row: auto; width: 32px; height: 32px; font-size: 15px; margin-bottom: 6px; }
  .rm-rates__list b { font-size: 17px; }
}

/* ===== Главная: баннеры особенностей — целиком, без чёрных полос ===== */
.rm-features { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
body.rm .rm-feature__img { height: auto !important; aspect-ratio: 752 / 100; background: #0D0F14; }
body.rm .rm-feature__img img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: center; opacity: 1; }
.rm-rates__main { text-align: left; }

/* ===== Окно правил перед оплатой (донат) — как окно в «Тюрьме» ===== */
body.rm #modal1, body.rm #modal { background: rgba(4,5,8,.82) !important; backdrop-filter: blur(3px); }
body.rm #modal1-content, body.rm #modal-content {
  width: calc(100% - 32px) !important; max-width: 680px !important; max-height: min(86vh, 760px) !important; box-sizing: border-box;
  padding: 0 28px !important; border-radius: 12px !important; border: 1px solid var(--rm-gold-line) !important;
  background: var(--rm-panel) !important; font-size: 14px; line-height: 1.6; color: #BFC3CC;
}
body.rm #modal1-content > .close, body.rm #modal-content > .close {
  position: sticky; top: 14px; z-index: 2; float: right; margin: 14px -14px 0 12px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--rm-line-2); background: var(--rm-panel-2);
  color: var(--rm-text) !important; font: 400 24px/1 var(--rm-font) !important; cursor: pointer; transition: border-color .15s, color .15s;
}
body.rm #modal1-content > .close:hover, body.rm #modal-content > .close:hover { border-color: var(--rm-gold); color: var(--rm-gold-hi) !important; }
body.rm #modal1-content h2, body.rm #modal-content h2 { margin: 26px 0 14px !important; padding-bottom: 14px; border-bottom: 1px solid var(--rm-line); font-size: 28px !important; }
body.rm #modal1-content h3, body.rm #modal-content h3 { margin: 22px 0 8px !important; font-size: 20px !important; }
body.rm #modal1-content br, body.rm #modal-content br { display: none; }
body.rm #modal1-content p, body.rm #modal-content p { margin: 0 0 10px; }
body.rm #modal1-content ul, body.rm #modal-content ul { margin: 0 0 10px; padding-left: 20px; list-style: disc; }
body.rm #modal1-content li, body.rm #modal-content li { margin: 0 0 4px; list-style: disc; }
body.rm #modal1-content li::marker, body.rm #modal-content li::marker { color: var(--rm-gold); }
body.rm #modal1-content #agreeBtn, body.rm #modal-content #agreeBtn {
  position: sticky; bottom: 0; z-index: 2; display: flex; width: calc(100% + 56px); margin: 18px -28px 0 !important;
  min-height: 60px; border-radius: 0 !important; border: 0 !important; border-top: 1px solid var(--rm-gold-line) !important;
  box-shadow: 0 -16px 24px rgba(17,20,27,.95) !important;
}
@media (max-width: 640px) {
  body.rm #modal1-content, body.rm #modal-content { padding: 0 18px !important; max-height: 88vh !important; }
  body.rm #modal1-content h2, body.rm #modal-content h2 { font-size: 23px !important; }
  body.rm #modal1-content #agreeBtn, body.rm #modal-content #agreeBtn { width: calc(100% + 36px); margin: 18px -18px 0 !important; }
  body.rm #modal1-content > .close, body.rm #modal-content > .close { margin-right: -6px; }
}
.rm-features > .rm-feature:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ===== Выпадающие списки (select): тёмный список без серых плашек ===== */
body.rm select { color-scheme: dark; accent-color: var(--rm-gold); }
body.rm select option, body.rm select optgroup { background: #11141B !important; background-color: #11141B !important; color: var(--rm-text) !important; font: 500 14px var(--rm-font); padding: 6px 10px; }
body.rm select option:checked { background: #2A2416 !important; background-color: #2A2416 !important; color: var(--rm-gold-hi) !important; }
body.rm select option:hover, body.rm select option:focus { background: #1A1E28 !important; color: var(--rm-text-hi) !important; }
body.rm select option:disabled { color: var(--rm-muted) !important; }

/* ===== Возврат WCoinC: карточки способов ===== */
.rm-methods { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.rm-method { gap: 14px; padding: 20px 20px 18px; position: relative; }
.rm-method__top { flex-wrap: nowrap; align-items: center; }
.rm-method__num { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rm-muted); white-space: nowrap; }
.rm-method__state { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.rm-method__state--ok { color: #8FE0B0; }
.rm-method__state--no { color: #E89A8E; }
.rm-method__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-height: 52px; }
.rm-method__pct { font-size: 46px; }
body.rm .rm-content .rm-method__head .rm-h3 { margin: 0; font-size: 17px; line-height: 1.3; color: var(--rm-text-hi); }
.rm-method__sum b { font-size: 24px; }
.rm-method__desc { flex: 0 0 auto; color: var(--rm-soft); line-height: 1.55; }
.rm-method__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.rm-method__why { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 8px; background: #0D1016; border: 1px dashed #2A3040; font-size: 12.5px; line-height: 1.5; color: var(--rm-muted); }
.rm-method__why .bi { color: var(--rm-muted); margin-top: 2px; }
.rm-method--best { box-shadow: 0 0 0 1px var(--rm-gold), 0 18px 40px rgba(217,169,73,.08); }
.rm-method--best::before { content: 'Лучший вариант'; position: absolute; top: -11px; left: 18px; padding: 2px 10px; border-radius: 99px; background: var(--rm-gold); color: #17120A; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rm-method.is-locked .rm-method__pct { color: #8C7A55; }
.rm-method.is-locked .rm-method__sum b { color: var(--rm-soft); }
body.rm .rm-content .rm-method .rm-btn[disabled] { opacity: 1; background: transparent !important; border: 1px solid var(--rm-line-2) !important; color: var(--rm-muted) !important; cursor: not-allowed; }
.rm-method__head { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; }
.rm-methods { padding-top: 12px; }

/* ===== Таймер открытия сервера ===== */
.rm-timer { padding: 26px 28px; gap: 28px; background: radial-gradient(90% 140% at 100% 50%, rgba(217,169,73,.14), transparent 60%), var(--rm-gold-bg); }
.rm-timer__text { flex: 1 1 300px; }
.rm-timer__text .rm-h2 { margin: 0; }
.rm-timer__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.rm-clock { flex: 0 1 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rm-clock__label { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--rm-gold); }
.rm-clock__grid { display: grid; grid-template-columns: repeat(4, 76px); gap: 10px; }
.rm-clock__cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 0 10px; background: linear-gradient(180deg, #161A23 0%, #0D1016 100%); border: 1px solid #3B3220; border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.rm-clock__cell::after { content: ''; position: absolute; left: 8px; right: 8px; top: 50%; height: 1px; background: rgba(0,0,0,.35); }
.rm-clock__cell b { font: 800 34px/1 var(--rm-font); color: var(--rm-text-hi); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.rm-clock__cell span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rm-muted); }
.rm-clock__date { font-size: 12px; color: #B8B2A3; }
.rm-clock.is-running .rm-clock__label { color: #8FE0B0; }
.rm-clock.is-running .rm-clock__label::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61,220,132,.2); vertical-align: 1px; }
@media (max-width: 640px) {
  .rm-timer { padding: 20px; }
  .rm-clock { width: 100%; }
  .rm-clock__grid { width: 100%; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .rm-clock__cell b { font-size: 28px; }
}

/* ===== Главная: топ игроков + топ гильдий в одной карточке ===== */
.rm-tops { display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; }
.rm-tops__col { padding: 24px 26px 14px; min-width: 0; }
.rm-tops__col + .rm-tops__col { border-left: 1px solid var(--rm-line); }
.rm-tops .rm-block__head { margin-bottom: 8px; align-items: center; }
.rm-tops .rm-block__head .rm-h2 { margin: 0; }
.rm-tops .rm-rank__row { grid-template-columns: 22px 40px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; }
.rm-tops .rm-rank__pos { font-size: 20px; text-align: left; }
.rm-rank__ava { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #0D1016; border: 1px solid var(--rm-line-2); box-sizing: border-box; }
.rm-rank__row--1 .rm-rank__ava { border-color: var(--rm-gold); box-shadow: 0 0 0 3px rgba(217,169,73,.15); }
.rm-rank__row--2 .rm-rank__ava { border-color: #8C93A3; }
.rm-rank__row--3 .rm-rank__ava { border-color: #8A5E3A; }
.rm-rank__ava--guild { display: flex; align-items: center; justify-content: center; }
.rm-rank__ava--guild img { width: 26px; height: 26px; image-rendering: pixelated; }
.rm-tops .rm-rank__name a, .rm-tops .rm-rank__name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) {
  .rm-tops { grid-template-columns: 1fr; }
  .rm-tops__col + .rm-tops__col { border-left: 0; border-top: 1px solid var(--rm-line); }
}
@media (max-width: 640px) {
  .rm-tops__col { padding: 20px 18px 10px; }
  .rm-tops .rm-rank__row { grid-template-columns: 18px 36px minmax(0, 1fr) auto; gap: 10px; }
  .rm-tops .rm-rank__val { grid-column: auto; font-size: 12px; }
  .rm-rank__ava { width: 36px; height: 36px; }
}

/* Главный баннер: заголовок ближе к логотипу */
.rm-hero__in { padding-top: 410px; gap: 14px; }
.rm-hero__title { margin-top: -4px; }
@media (max-width: 640px) { .rm-hero__in { padding-top: 255px; } }

/* ===== Без верхней полосы: язык, Discord и онлайн в шапке ===== */
.rm-topbar { display: none !important; }
.rm-nav__actions { gap: 8px; }
body.rm a.rm-iconbtn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--rm-line-2); color: var(--rm-soft); font-size: 17px; flex: none; }
body.rm a.rm-iconbtn:hover { border-color: #5865F2; color: #fff; background: #5865F2; }
.rm-header .rm-lang__btn { min-height: 40px; padding: 0 10px; border-radius: 8px; border-color: var(--rm-line-2); background: transparent; }
.rm-header .rm-lang__btn .lang-current-text { display: none; }
.rm-header .rm-lang__list { right: 0; }
.rm-srvchip { position: relative; }
.rm-srvchip__btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--rm-line-2); background: transparent; color: var(--rm-soft); font: 600 12.5px var(--rm-font); cursor: pointer; white-space: nowrap; }
.rm-srvchip__btn:hover, .rm-srvchip.is-open .rm-srvchip__btn { border-color: var(--rm-gold-line); }
.rm-srvchip__btn i, .rm-srvchip__list i { width: 8px; height: 8px; border-radius: 50%; background: var(--rm-red); box-shadow: 0 0 0 3px rgba(229,96,77,.18); flex: none; }
.rm-srvchip__btn.is-on i, .rm-srvchip__list i.is-on { background: var(--rm-green); box-shadow: 0 0 0 3px rgba(91,209,139,.18); }
.rm-srvchip__btn b { color: var(--rm-text-hi); font-weight: 800; }
.rm-srvchip__list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; margin: 0; padding: 6px; list-style: none; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.5); display: none; z-index: 100; }
.rm-srvchip.is-open .rm-srvchip__list { display: block; }
body.rm .rm-srvchip__list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; color: var(--rm-text); font-size: 13px; }
body.rm .rm-srvchip__list a:hover { background: var(--rm-panel-2); color: var(--rm-gold-hi); }
.rm-srvchip__list a b { margin-left: auto; font-variant-numeric: tabular-nums; }
@media (max-width: 991px) {
  .rm-header .rm-lang__btn .lang-current-text { display: inline; }
  .rm-nav__actions .rm-iconbtn, .rm-nav__actions .rm-lang, .rm-nav__actions .rm-srvchip { flex: 0 0 auto !important; }
  .rm-header .rm-lang__list, .rm-srvchip__list { left: 0; right: auto; }
}

/* ===== Главная: панель серверов в баннере (слева, на стене) ===== */
.rm-servers { position: absolute; left: 0; top: 70px; width: 270px; display: flex; flex-direction: column; gap: 8px; text-align: left; z-index: 2; }
.rm-servers__title { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--rm-gold); text-shadow: 0 1px 8px rgba(0,0,0,.8); padding-left: 2px; }
body.rm a.rm-server { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name state" "meta online"; gap: 2px 12px; padding: 14px 16px; border-radius: 12px; background: rgba(10,12,17,.72); border: 1px solid rgba(92,74,36,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--rm-text); box-shadow: 0 18px 40px rgba(0,0,0,.45); transition: border-color .15s, transform .15s; }
body.rm a.rm-server:hover { border-color: var(--rm-gold); transform: translateY(-1px); color: var(--rm-text); }
.rm-server__name { grid-area: name; font-family: var(--rm-display); font-size: 26px; font-weight: 700; line-height: 1; color: var(--rm-gold-hi); }
.rm-server__meta { grid-area: meta; font-size: 12px; color: var(--rm-muted); }
.rm-server__state { grid-area: state; justify-self: end; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #E89A8E; }
.rm-server__state i { width: 8px; height: 8px; border-radius: 50%; background: var(--rm-red); box-shadow: 0 0 0 3px rgba(229,96,77,.2); }
.rm-server.is-on .rm-server__state { color: #8FE0B0; }
.rm-server.is-on .rm-server__state i { background: var(--rm-green); box-shadow: 0 0 0 3px rgba(91,209,139,.2); animation: rm-pulse 2s infinite; }
.rm-server__online { grid-area: online; justify-self: end; font-size: 12px; color: var(--rm-muted); white-space: nowrap; }
.rm-server__online b { font-size: 15px; color: var(--rm-text-hi); font-variant-numeric: tabular-nums; }
@keyframes rm-pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(91,209,139,.2); } 50% { box-shadow: 0 0 0 6px rgba(91,209,139,.05); } }
@media (prefers-reduced-motion: reduce) { .rm-server.is-on .rm-server__state i { animation: none; } }
@media (max-width: 1100px) {
  .rm-servers { position: static; width: 100%; max-width: 560px; order: 3; flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
  .rm-servers__title { display: none; }
  body.rm a.rm-server { flex: 1 1 240px; }
}
.rm-servers { left: 28px; top: 96px; }
.rm-hero__in { padding-top: 395px; }
@media (max-width: 1100px) { .rm-servers { margin-bottom: 18px; } }

/* ===== Несколько серверов (рейтов) ===== */
body.rm .rm-nav__link { white-space: nowrap; }
.rm-srvchip__btn { padding: 0 11px; }
[hidden].rm-rates, [hidden].rm-tops { display: none !important; }
.rm-rates-tabs, .rm-tops-tabs { margin: 0 0 12px; }
.rm-tops-tabs { margin-top: 4px; }
.rm-tops + .rm-tops { margin-top: 0; }
.rm-h2 .rm-muted { font-size: .7em; }
.rm-headbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; }
.rm-headbar .rm-tabs--head { margin-top: 14px; }
.rm-srvswitch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }
.rm-srvswitch > span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rm-muted); margin-right: 2px; }
.rm-srvswitch .rm-chip { min-height: 32px; padding: 0 12px; }
@media (max-width: 1240px) and (min-width: 992px) {
  .rm-nav__list { gap: 0; }
  .rm-nav__link { padding-left: 9px !important; padding-right: 9px !important; font-size: 13.5px; }
  .rm-header__in { gap: 16px; }
}
/* Меню «бургер» включается раньше (до 1200px), чтобы шапка не наезжала */
@media (max-width: 1199px) {
  .rm-burger { display: flex; }
  .rm-header__in { flex-wrap: wrap; gap: 12px; min-height: 64px; }
  .rm-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 6px 0 18px; border-top: 1px solid var(--rm-line); }
  .rm-nav-open .rm-nav { display: flex; }
  .rm-nav__list { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  body.rm .rm-nav__link { width: 100%; justify-content: space-between; min-height: 48px; padding: 0 6px !important; font-size: 16px; }
  body.rm .rm-nav__link.is-active::after { display: none; }
  .rm-nav__menu { position: static; box-shadow: none; border: 0; background: var(--rm-panel); margin: 0 0 6px; }
  .rm-nav__actions { flex-wrap: wrap; }
  .rm-nav__actions > * { flex: 1 1 auto; }
  .rm-header .rm-lang__btn .lang-current-text { display: inline; }
  .rm-nav__actions .rm-iconbtn, .rm-nav__actions .rm-lang, .rm-nav__actions .rm-srvchip { flex: 0 0 auto !important; }
  .rm-header .rm-lang__list, .rm-srvchip__list { left: 0; right: auto; }
}
/* Сервер работает, но игроков нет */
.rm-server.is-empty .rm-server__state { color: #E89A8E; }
.rm-server.is-empty .rm-server__state i { background: var(--rm-red); box-shadow: 0 0 0 3px rgba(229,96,77,.2); }

/* ===== Поддержка (тикеты) ===== */
body.rm .rm-field textarea { width: 100%; box-sizing: border-box; min-height: 140px; padding: 12px; resize: vertical; background: var(--rm-field); border: 1px solid var(--rm-line-2); border-radius: 6px; color: var(--rm-text); font: 500 15px/1.55 var(--rm-font); }
body.rm .rm-field textarea:focus { outline: none; border-color: var(--rm-gold); box-shadow: 0 0 0 3px rgba(217,169,73,.18); }
.rm-field small { font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.rm-alert--danger { background: #2A1412; border: 1px solid #6B2B24; color: #F5B2A7; }
.rm-tk .rm-icon-head h2 { margin: 0 0 4px; }
.rm-tk-tips { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.rm-tk-tip { background: #0D1016; border: 1px solid var(--rm-line); border-radius: 8px; }
.rm-tk-tip summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 700; font-size: 14px; color: var(--rm-text); }
.rm-tk-tip summary::-webkit-details-marker { display: none; }
.rm-tk-tip summary > .bi:first-child { color: var(--rm-gold); font-size: 16px; }
.rm-tk-tip__arr { margin-left: auto; color: var(--rm-muted); transition: transform .2s; }
.rm-tk-tip[open] .rm-tk-tip__arr { transform: rotate(180deg); }
.rm-tk-tip[open] summary { border-bottom: 1px solid var(--rm-line); }
.rm-tk-tip__body { padding: 12px 14px 4px; font-size: 14px; line-height: 1.6; color: #C2C6D0; }
.rm-tk-tip__body p { margin: 0 0 10px; }
.rm-tk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.rm-tk-head h2 { margin: 2px 0 4px; }
.rm-tk-head__side { display: flex; align-items: center; gap: 10px; }
.rm-tk-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.rm-tk-msg { padding: 16px 18px; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: 12px; margin-right: 48px; }
.rm-tk-msg--admin { margin-right: 0; margin-left: 48px; background: var(--rm-gold-bg); border-color: #3B3220; }
.rm-tk-msg__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rm-tk-msg__ava { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #1A1E28; border: 1px solid var(--rm-line-2); color: var(--rm-soft); font-size: 14px; flex: none; }
.rm-tk-msg--admin .rm-tk-msg__ava { color: var(--rm-gold); border-color: var(--rm-gold-line); }
.rm-tk-msg__head b { color: var(--rm-text-hi); }
.rm-tk-msg--admin .rm-tk-msg__head b { color: var(--rm-gold-hi); }
.rm-tk-msg__date { margin-left: auto; font-size: 12px; color: var(--rm-muted); }
.rm-tk-msg__text { font-size: 14.5px; line-height: 1.65; color: #C9CCD4; word-break: break-word; }
.rm-tk-msg__del { margin: 10px 0 0; text-align: right; }
body.rm .rm-content .rm-tk-msg__del button[type="submit"] { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: transparent !important; border: 1px solid #6B2B24 !important; color: #F5B2A7 !important; font: 700 12px var(--rm-font) !important; text-transform: none !important; min-height: 0 !important; cursor: pointer; }
.rm-tk-replyttl { margin: 0 0 14px; }
body.rm a.rm-tk-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--rm-gold); }
.rm-tk .rm-table tr.rm-tk-new td { background: rgba(217,169,73,.05); }
@media (max-width: 640px) { .rm-tk-msg, .rm-tk-msg--admin { margin-left: 0; margin-right: 0; } }

/* ===== Drop List ===== */
.rm-drop__form { grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.6fr) auto; padding: 18px 20px !important; }
.rm-drop__btns { flex-wrap: nowrap; }
@media (max-width: 991px) { .rm-drop__form { grid-template-columns: 1fr 1fr; } .rm-drop__btns { grid-column: 1 / -1; flex-wrap: wrap; } }
@media (max-width: 640px) { .rm-drop__form { grid-template-columns: 1fr; } .rm-drop__btns > * { flex: 1 1 auto; } }
.rm-drop-res { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin: 4px 0 14px; }
.rm-drop-res h2 { margin: 2px 0 0; }
.rm-drop-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.rm-drop-card { padding: 14px 12px 16px; gap: 12px; justify-content: flex-start; }
.rm-drop-card .image-container { width: 100%; height: 120px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 60%, rgba(217,169,73,.08), transparent 70%), #0D1016; border: 1px solid #1A1E28; border-radius: 8px; order: -1; }
.rm-drop-card .image-container img { max-height: 104px; max-width: 90%; object-fit: contain; image-rendering: auto; }
body.rm .rm-content .rm-drop-card h5 { font-size: 13.5px; padding: 0 18px 0 0; }
.rm-drop-card .rm-drop-info { top: auto; bottom: 14px; right: 10px; }
.rm-drop-card .rm-muted.rm-small { order: -1; height: 120px; display: flex; align-items: center; justify-content: center; width: 100%; background: #0D1016; border-radius: 8px; margin: 0; }
/* Список обращений — компактные строки */
.rm-tk-list { margin: 0; padding: 0 0 6px; list-style: none; }
.rm-tk-list li { border-top: 1px solid #1A1E28; }
body.rm a.rm-tk-row { display: flex; align-items: center; gap: 16px; padding: 14px 24px; color: var(--rm-text); transition: background .15s; }
body.rm a.rm-tk-row:hover { background: #151922; color: var(--rm-text); }
.rm-tk-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rm-tk-row__subj { font-size: 15px; color: var(--rm-text-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-tk-row.is-closed .rm-tk-row__subj { color: var(--rm-soft); font-weight: 600; }
.rm-tk-row.is-new { box-shadow: inset 3px 0 0 var(--rm-gold); }
.rm-tk-row__meta { font-size: 12.5px; color: var(--rm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-tk-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.rm-tk-row__time { font-size: 12px; color: var(--rm-muted); white-space: nowrap; }
.rm-tk-row__go { color: var(--rm-muted); flex: none; }
body.rm a.rm-tk-row:hover .rm-tk-row__go { color: var(--rm-gold); }
@media (max-width: 640px) { body.rm a.rm-tk-row { padding: 12px 16px; gap: 10px; } .rm-tk-row__go { display: none; } }
/* Поддержка: всё содержимое на общей панели, как на других страницах */
.rm-tk { background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); padding: 22px 24px; }
.rm-tk > .rm-card { background: #0D1016; border-color: #1E2330; }
.rm-tk > .rm-card--flush { margin: -22px -24px 0; background: transparent; border: 0; border-radius: 0; }
.rm-tk > .rm-card--flush .rm-card__head { padding-top: 22px; }
.rm-tk-msg { background: #0D1016; }
.rm-tk .rm-tk-tip { background: var(--rm-panel); }
@media (max-width: 640px) { .rm-tk { padding: 16px; } .rm-tk > .rm-card--flush { margin: -16px -16px 0; } }
/* Drop List: содержимое на общей панели */
.rm-drop { background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); padding: 22px 24px 4px; }
.rm-drop > .rm-drop__form { background: #0D1016 !important; border-color: #1E2330 !important; }
.rm-drop .rm-drop-card { background: #0D1016; border-color: #1E2330; }
.rm-drop .rm-drop-card .image-container { background: radial-gradient(circle at 50% 60%, rgba(217,169,73,.08), transparent 70%), #090B10; }
.rm-drop > .rm-card--flush { margin-left: -24px; margin-right: -24px; border-left: 0; border-right: 0; border-radius: 0; background: transparent; }
@media (max-width: 640px) { .rm-drop { padding: 16px 16px 2px; } .rm-drop > .rm-card--flush { margin-left: -16px; margin-right: -16px; } }

/* ===== Онлайн в шапке: сервер без игроков — красным, как на главной ===== */
body.rm .rm-srvchip__list a.is-empty b { color: #E89A8E; font-weight: 700; }

/* ===== Флаги языков — прямоугольные ===== */
.rm-lang__btn img, .rm-lang__list img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); flex: none; }

/* ===== Правила сервера ===== */
body.rm .rm-content .rm-rules { line-height: 1.65; }
.rm-rules__top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; justify-content: space-between; border-bottom: 1px solid var(--rm-line); margin: 0 0 22px; }
body.rm .rm-content .rm-rules .rm-rules__tabs { border-bottom: 0; margin: 0; flex: 1 1 auto; }
.rm-rules__search { position: relative; flex: 0 1 280px; margin: 0 0 8px; display: block; }
.rm-rules__search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--rm-muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
body.rm .rm-rules__search input { width: 100%; height: 40px; padding: 0 12px 0 38px !important; box-sizing: border-box; background: var(--rm-field); border: 1px solid var(--rm-line-2); border-radius: 8px; color: var(--rm-text); font: 500 14px var(--rm-font); }
body.rm .rm-rules__search input:focus { outline: none; border-color: var(--rm-gold); }
.rm-rules__empty { padding: 28px; text-align: center; color: var(--rm-muted); background: var(--rm-panel); border: 1px dashed var(--rm-line-2); border-radius: var(--rm-radius); }
body.rm .rm-content .rm-rules .tabcontent { padding: 0; }
.rm-rules__head { margin: 0 0 14px; }
body.rm .rm-content .rm-rules__head h2 { margin: 6px 0 0; font: 600 32px/1.15 var(--rm-display); color: var(--rm-text-hi); letter-spacing: .01em; }
.rm-rules__intro { background: var(--rm-gold-bg); border: 1px solid var(--rm-gold-line); border-left: 3px solid var(--rm-gold); border-radius: var(--rm-radius); padding: 16px 20px; margin: 0 0 18px; color: var(--rm-soft); }
body.rm .rm-content .rm-rules__intro p { margin: 0; max-width: none; }
.rm-rules__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
body.rm .rm-rules__toc a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; background: var(--rm-panel); border: 1px solid var(--rm-line-2); border-radius: 999px; color: var(--rm-text); font-size: 13px; font-weight: 600; }
body.rm .rm-rules__toc a:hover { border-color: var(--rm-gold); color: var(--rm-gold-hi); }
.rm-rules__sec { margin: 0 0 30px; scroll-margin-top: 90px; }
body.rm .rm-content .rm-rules__sec h3 { margin: 0 0 12px; font: 800 13px var(--rm-font); letter-spacing: .14em; text-transform: uppercase; color: var(--rm-gold); }
.rm-rule { display: flex; gap: 16px; align-items: flex-start; background: var(--rm-panel); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); padding: 16px 20px; margin: 0 0 10px; scroll-margin-top: 110px; transition: border-color .2s, box-shadow .2s; }
.rm-rule:hover { border-color: var(--rm-line-2); }
.rm-rule.is-flash { animation: rmRuleFlash 2.2s ease-out; }
@keyframes rmRuleFlash { 0%, 40% { border-color: var(--rm-gold); box-shadow: 0 0 0 3px rgba(217,169,73,.18); } 100% { border-color: var(--rm-line); box-shadow: none; } }
body.rm .rm-rule__num { flex: none; width: 56px; min-width: 56px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--rm-gold-bg); border: 1px solid var(--rm-gold-line); border-radius: 6px; color: var(--rm-gold-hi); font: 800 13px var(--rm-font); font-variant-numeric: tabular-nums; position: relative; }
body.rm .rm-rule__num:hover { border-color: var(--rm-gold); color: var(--rm-gold-hi); }
.rm-rule__num.is-copied::after { content: 'Ссылка скопирована'; position: absolute; left: 0; top: calc(100% + 6px); white-space: nowrap; padding: 4px 8px; background: var(--rm-panel-2); border: 1px solid var(--rm-line-2); border-radius: 6px; color: var(--rm-text); font: 600 11px var(--rm-font); z-index: 5; }
.rm-rule__body { flex: 1 1 auto; min-width: 0; color: var(--rm-text); }
body.rm .rm-content .rm-rule__body p { margin: 0 0 8px; max-width: none; }
body.rm .rm-content .rm-rule__body p:last-child { margin-bottom: 0; }
body.rm .rm-content .rm-rule__title { color: var(--rm-text-hi); font-weight: 700; }
body.rm .rm-content .rm-rule__body ul { margin: 0; padding: 0 0 0 18px; list-style: disc !important; color: var(--rm-soft); }
body.rm .rm-content .rm-rule__body li { margin: 0 0 4px; }
body.rm .rm-content .rm-rule__body li::marker { color: var(--rm-gold); }
.rm-rule--plain { padding: 16px 20px; }
.rm-rule__pen { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 12px 0 0; padding: 10px 12px; background: rgba(229,96,77,.07); border: 1px solid rgba(229,96,77,.22); border-radius: 8px; }
.rm-rule__pen span { flex: none; font: 800 11px var(--rm-font); letter-spacing: .1em; text-transform: uppercase; color: #F2A093; }
body.rm .rm-content .rm-rule__pen p { margin: 0; flex: 1 1 240px; color: #EBC3BC; font-size: 14px; }
.rm-rule__pen.is-hard { background: rgba(229,96,77,.13); border-color: rgba(229,96,77,.4); }
body.rm .rm-content .rm-rule__pen.is-hard p { color: #F6CFC8; font-weight: 600; }
@media (max-width: 640px) {
  .rm-rules__search { flex: 1 1 100%; }
  body.rm .rm-content .rm-rules__head h2 { font-size: 26px; }
  .rm-rule { flex-direction: column; gap: 10px; padding: 14px 16px; }
  body.rm .rm-rule__num { min-width: 0; height: 26px; font-size: 12px; }
}

/* Админка: выбор сервера в истории платежей */
body.rm .rm-content form.rm-srvswitch { margin: 0 0 18px; padding: 0; }
body.rm .rm-content .rm-srvswitch button.rm-chip { background: transparent !important; border: 1px solid var(--rm-line-2) !important; color: var(--rm-soft) !important; box-shadow: none !important; min-height: 34px; padding: 0 16px !important; border-radius: 99px !important; font: 700 13px var(--rm-font) !important; letter-spacing: 0; text-transform: none; }
body.rm .rm-content .rm-srvswitch button.rm-chip:hover { border-color: var(--rm-gold-line) !important; color: var(--rm-gold-hi) !important; }
body.rm .rm-content .rm-srvswitch button.rm-chip.is-active { background: var(--rm-gold) !important; border-color: var(--rm-gold) !important; color: #17120A !important; }
