/* Общение и альянс (docs/SOCIAL.md): карточки в чате (js/chatcards.js), окна «Дел альянса» (screens/social.js),
   наука «Развитие / Война» и честь за помощь (screens/ally.js), «союзник помог» (js/helpnote.js), окно «Слава»
   (screens/glory.js). Окна светлые: цвета — переменные --w-* окна (запасное значение — прежний тёмный вид). */

/* ——— карточки в ленте чата ——— */
.cc {
  align-self: stretch; flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px; box-sizing: border-box;
  border-radius: 10px; background: var(--w-well, rgba(16, 20, 28, 0.55)); border: 1px solid var(--w-line, #3a4658); font-size: 14px;
}
.cc-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 17px; display: flex; align-items: center; justify-content: center; background: rgba(42, 52, 66, 0.85); }
.cc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-tx b { font-size: 15px; color: var(--w-hi, #fff3d0); }
.cc-tx span { font-size: 13px; color: var(--muted); }
.cc-acts { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
body:not(.vertical) .cc-acts .btn.small { height: 30px; padding: 0 12px; font-size: 14px; } /* стоя — общий .btn.small (§2.3) */
.cc-tm { align-self: flex-start; font-size: 11px; color: var(--muted); flex-shrink: 0; }
.cc-xy {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 6px; cursor: pointer;
  border: 1px dashed var(--w-accent, var(--bronze-l)); background: none; color: var(--w-accent, var(--bronze-l)); font-size: 13px; font-weight: 700;
}
.cc-xy:hover { background: rgba(192, 138, 62, 0.15); }
.cc-hoard { border-left: 4px solid #c08a3e; }
.cc-dug { padding-top: 6px; padding-bottom: 6px; }
.cc-luck { background: linear-gradient(90deg, #f6d77a, #e8b93a); border-color: #b8862a; }
.cc-luck .cc-tx b { color: #4a2e08; }
.cc-luck .cc-ic { background: #8a5a00; }
.cc-luck .cc-tm { color: #5a3a12; }
.cc-gift { border-left: 4px solid #3d8fa8; }
.cc-notice { border-left: 4px solid #c08a3e; }
.cc-notice.urgent { border-left-color: #c0392b; }
.cc-notice .cc-tx span { white-space: pre-wrap; overflow-wrap: anywhere; }
.cc-sci { border-left: 4px solid #3f8f4f; }
.cc-recruit { align-items: flex-start; border: 2px solid var(--w-accent, var(--bronze)); background: linear-gradient(rgba(236, 196, 120, 0.22), var(--w-well, rgba(16, 20, 28, 0.55)) 70%); }
.cc-recruit.mine { opacity: 0.85; }
.cc-crest {
  width: 46px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: var(--title); font-weight: 700; font-size: 20px; background: linear-gradient(#3d6e9e, #1d3a5a);
  border: 2px solid #ecc478; border-radius: 6px 6px 22px 22px; text-shadow: 0 1px 2px #000;
}
.cc-quote { font-style: italic; font-size: 13px; color: var(--w-hi, #fff3d0); white-space: pre-wrap; overflow-wrap: anywhere; }
.cc-react {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 15px; cursor: pointer;
  background: var(--w-field, rgba(0, 0, 0, 0.25)); border: 1px solid var(--w-line, #3a4658); color: var(--muted); font-size: 13px;
}
.cc-react b { color: var(--w-hi, #fff3d0); }
.cc-react.on { background: rgba(63, 143, 79, 0.25); border-color: #3f8f4f; color: var(--w-good, #9fe0a8); }

/* закреплённое срочное объявление над чатом альянса */
.cht-pinbox { flex-shrink: 0; }
.cht-pinbox:empty { display: none; }
.cc-pin { margin: 10px 18px 0; padding: 8px 12px; border-radius: 10px; border: 2px solid #c0392b; background: var(--w-well, rgba(60, 20, 20, 0.55)); display: flex; flex-direction: column; gap: 6px; }
.cc-pin-h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.cc-pin-h b { color: #c0392b; text-transform: uppercase; letter-spacing: 1px; }
.cc-pin-h .btn { margin-inline-start: auto; }
body:not(.vertical) .cc-pin-h .btn { height: 28px; padding: 0 10px; font-size: 13px; }
.cc-pin-t { font-size: 14px; color: var(--w-hi, #fff3d0); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cc-pin-r { display: flex; gap: 6px; flex-wrap: wrap; }

/* ——— окна «Дел альянса» ——— */
.sc-body { display: flex; flex-direction: column; gap: 10px; }
.sc-list { display: flex; flex-direction: column; gap: 8px; }
.sc-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: var(--w-well, rgba(0, 0, 0, 0.22)); }
.sc-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sc-row .t > span { font-size: 13px; color: var(--muted); }
.sc-row .t > b { font-size: 16px; color: var(--w-hi, #fff3d0); }
.sc-row .sc-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.sc-acts { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.sc-chip { align-self: flex-start; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; background: rgba(42, 52, 66, 0.15); color: var(--w-hi, #fff3d0); }
.sc-chip.ok { background: rgba(63, 143, 79, 0.2); color: var(--w-good, #9fe0a8); }
.sc-chip.no { background: rgba(192, 57, 43, 0.15); color: var(--w-bad, #ff9a8a); }
.sc-foot { margin: 0; font-size: 13px; color: var(--muted); }
.sc-editor:empty { display: none; }
.sc-ta { height: auto; min-height: 70px; padding: 8px 10px; font-size: 16px; resize: vertical; line-height: 1.35; }
.sc-ed-foot { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.sc-ed-foot .btn { margin-inline-start: auto; }
.sc-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--w-hi, #fff3d0); cursor: pointer; }
.sc-count, .sc-wait { font-size: 13px; color: var(--muted); }
.sc-board { display: flex; flex-direction: column; gap: 10px; }
.sc-post { padding: 10px 12px; border-radius: 10px; background: var(--w-well, rgba(0, 0, 0, 0.22)); border-left: 4px solid var(--w-accent, var(--bronze)); display: flex; flex-direction: column; gap: 6px; }
.sc-post.urgent { border-left-color: #c0392b; }
.sc-post .hd { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sc-post .hd b { color: var(--w-hi, #fff3d0); }
.sc-post .hd .tm { font-size: 12px; color: var(--muted); }
.sc-post .hd .btn { margin-inline-start: auto; }
body:not(.vertical) .sc-post .hd .btn { height: 28px; padding: 0 10px; font-size: 13px; }
.sc-post .tx { font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.sc-post .rx { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-urg { padding: 1px 8px; border-radius: 8px; background: #c0392b; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.sc-preview { pointer-events: none; }
.kv-lines p { margin: 0 0 4px; }
/* имя лорда в карточке альянса — окно лорда (social.js openAllyView) */
.sc-who { cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.un-tile .un-tdot {
  position: absolute; top: 4px; right: 6px; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; border-radius: 11px;
  background: #d63a34; border: 2px solid #fff3d0; color: #fff; font-style: normal; font-size: 12px; display: flex; align-items: center; justify-content: center;
}

/* ——— казна: вкладки и «рекомендовано», честь за помощь ——— */
.tr-tabs { margin-bottom: 8px; }
.tr-tabrec { display: inline-flex; margin-left: 6px; vertical-align: middle; }
.tr-node.rec { box-shadow: inset 0 0 0 2px #3f8f4f; }
.tr-rec { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding: 1px 8px; border-radius: 9px; background: rgba(63, 143, 79, 0.18); color: var(--w-good, #9fe0a8); font-size: 12px; font-weight: 700; vertical-align: middle; }
.tr-recbtn { margin-inline-start: auto; }
.hp-honor { height: 22px; margin-bottom: 10px; }
.hp-honor span { font-size: 13px; line-height: 22px; font-weight: 700; }

/* ——— «союзник помог» в открытом окне ——— */
.hn-line { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--w-good, #9fe0a8); }
.modal:has(> .hn-flash) { position: relative; }
.hn-flash {
  position: absolute; left: 50%; top: 66px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 18px; background: rgba(35, 128, 62, 0.95); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); animation: hn-in 0.25s ease-out; transition: opacity 0.5s; pointer-events: none; white-space: nowrap;
}
.hn-flash.out { opacity: 0; }
@keyframes hn-in { from { opacity: 0; transform: translate(-50%, -8px); } }

/* ——— окно «Слава» (звёзды славы) ——— */
.gl-modal .modal-body { display: flex; flex-direction: column; overflow: hidden; }
.gl-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.gl-head { display: flex; align-items: center; gap: 16px; }
.gl-count { display: flex; flex-direction: column; align-items: center; min-width: 110px; }
.gl-count b { font-family: var(--title); font-size: 34px; line-height: 1; color: var(--w-gold, var(--gold)); }
.gl-count span { font-size: 13px; color: var(--muted); }
.gl-prog { flex: 1; min-width: 0; }
.gl-prog .tr-bar { height: 22px; margin-bottom: 6px; }
.gl-prog .tr-bar span { line-height: 22px; font-size: 13px; font-weight: 700; }
.gl-prog .tr-des { margin: 0; }
.gl-from { margin: 4px 0 0; font-size: 13px; color: var(--w-hi, #fff3d0); }
.gl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gl-chip { padding: 4px 10px; border-radius: 12px; background: rgba(192, 138, 62, 0.18); color: var(--w-accent, var(--bronze-l)); font-size: 13px; font-weight: 700; }
.gl-steps { flex: 1; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.gl-steps > * { flex-shrink: 0; }
.gl-step { display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-radius: 8px; background: var(--w-well, rgba(0, 0, 0, 0.22)); opacity: 0.8; }
.gl-step.taken { opacity: 0.65; }
.gl-step.ready, .gl-step.next { opacity: 1; }
.gl-step.ready { box-shadow: inset 0 0 0 2px #e8b93a; }
.gl-need { display: flex; align-items: center; gap: 4px; width: 70px; font-weight: 700; }
.gl-bonus { flex: 1; min-width: 0; font-weight: 700; color: var(--w-hi, #fff3d0); }
.gl-items { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; }
.gl-st { flex-shrink: 0; min-width: 90px; display: flex; justify-content: flex-end; }
.gl-st i { font-style: normal; font-size: 13px; color: var(--muted); }

/* ——— помощь альянса (ally.js openHelp): всплывающее окно — строки с аватаром, просьба, полоса помощей; свои — бежевые;
   внизу — «Помочь всем» ——— */
.hp-modal .hp-body { display: flex; flex-direction: column; gap: 10px; }
.hp-list { display: flex; flex-direction: column; gap: 8px; }
.hp-modal .hp-row {
  gap: 12px; margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--w-well, #d4e0ef);
  box-shadow: 0 3px 0 #8797ab, inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.hp-modal .hp-row.mine { background: linear-gradient(#f5e9cc, #ead7ac); box-shadow: 0 3px 0 #b49a64, inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.hp-modal .hp-row.fire { box-shadow: 0 3px 0 #8797ab, inset 4px 0 0 #e8602c; }
.hp-modal .hp-row .t { min-width: 0; gap: 4px; }
.hp-modal .hp-row .t > b { font-size: var(--fs-list); color: var(--w-hi, var(--text)); }
.hp-modal .hp-row .t .hp-ask { font-size: var(--fs-sub); color: var(--w-hi, var(--text)); }
.hp-modal .hp-row.fire .hp-ask { color: var(--w-bad, #c0392b); font-weight: 700; }
/* просьба о лечении раненых (kind 4, docs/ref/TABS_GAP.md п. 20): зелёная кромка слева */
.hp-modal .hp-row.heal:not(.mine) { box-shadow: 0 3px 0 #8797ab, inset 4px 0 0 #3f8f4f; }
.hp-modal .hp-row.heal .hp-ask { color: var(--w-good, #23803e); font-weight: 700; }
.hp-bar { position: relative; display: block; height: 20px; max-width: 360px; border-radius: 10px; overflow: hidden; background: var(--w-track, rgba(30, 48, 76, 0.2)); }
.hp-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: linear-gradient(#8fd060, #3f8f4f); }
.hp-bar b { position: relative; display: block; text-align: center; font: 700 var(--fs-sub)/20px var(--sans); color: #fff; text-shadow: var(--t-outline); }
.hp-ok { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sub); font-weight: 700; color: var(--w-good, #23803e); }
.hp-modal .hp-honor { grid-column: auto; height: 26px; margin: 0; }
.hp-modal .hp-honor span { font: 700 var(--fs-sub)/26px var(--sans); }

/* ——— стоя ——— */
body.vertical .gl-head { flex-wrap: wrap; }
body.vertical .sc-row { flex-wrap: wrap; }
body.vertical .cc { flex-wrap: wrap; }
body.vertical .hp-modal .hp-row { min-height: 104px; padding: 10px 14px; }
body.vertical .hp-bar { height: 30px; border-radius: 15px; }
body.vertical .hp-bar b { font-size: 20px; line-height: 30px; }
body.vertical .hp-modal .hp-honor { height: 34px; border-radius: 17px; }
body.vertical .hp-modal .hp-honor span { font-size: 18px; line-height: 34px; }
body.vertical .hp-modal .act-bar .btn { height: 72px; }
.hp-modal .hp-ask span { font-size: inherit; color: inherit; } /* отсчёт пожара внутри просьбы */
/* карточки чата (js/chatcards.js) и закреп над чатом альянса — стоя не мельче 16 */
body.vertical .cc { gap: 12px; padding: 10px 14px; font-size: 18px; }
body.vertical .cc-ic { width: 44px; height: 44px; border-radius: 22px; }
body.vertical .cc-tx b { font-size: 20px; }
body.vertical .cc-tx span, body.vertical .cc-quote { font-size: 17px; }
body.vertical .cc-tm { font-size: 16px; }
body.vertical .cc-xy { height: 44px; padding: 0 12px; font-size: 17px; }
body.vertical .cc-react { height: 44px; padding: 0 14px; border-radius: 22px; font-size: 17px; }
body.vertical .cc-crest { width: 56px; height: 64px; font-size: 24px; }
body.vertical .cc-pin { padding: 10px 14px; }
body.vertical .cc-pin-h, body.vertical .cc-pin-t { font-size: 17px; }
/* казна альянса, лавка чести, крепость, клады, подарки, доска, вербовка: текст не мельче 16 */
body.vertical .hn-win .tr-head, body.vertical .fo-win .tr-head { font-size: var(--fs-sub); }
/* Казна: счётчики крупно, переносятся на вторую строку (не мельче, чтобы влезть в одну) */
body.vertical .tr-win .tr-head { font-size: var(--fs-body); row-gap: 6px; }
body.vertical .tr-win .tr-node { padding: 12px 14px; gap: 8px 12px; border-radius: 10px; }
body.vertical .tr-win .tr-node .t > b { font-size: var(--fs-list); }
body.vertical .tr-win .tr-node .t span, body.vertical .tr-win .tr-max { font-size: var(--fs-sub); }
body.vertical .tr-win .tr-node .lv { font-size: var(--fs-sub); }
body.vertical .tr-win .tr-bar, body.vertical .fo-win .tr-bar { height: 30px; border-radius: 15px; }
body.vertical .tr-win .tr-bar span, body.vertical .fo-win .tr-bar span { font-size: 18px; line-height: 30px; font-weight: 700; }
body.vertical .tr-win .tr-rec, body.vertical .tr-tabrec { font-size: 16px; }
body.vertical .hn-win .ic-good .ic-note, body.vertical .hn-win .ic-good > b { font-size: 18px; }
body.vertical .hn-win .ic-good .ic-cell { --ic: 96px; } /* длинный ярлык («15 Min.») не мельче 16 */
body.vertical .fo-win .hp-row { min-height: 72px; padding: 10px 14px; border-radius: 10px; }
body.vertical .fo-win .hp-row .t span { font-size: 18px; }
body.vertical .fo-win .hp-row .t > b, body.vertical .fo-win .hp-row .n { font-size: var(--fs-list); }
body.vertical .sc-win .sc-row { padding: 12px 14px; gap: 12px; border-radius: 10px; }
body.vertical .sc-win .sc-row .t > b { font-size: var(--fs-list); }
body.vertical .sc-win .sc-row .t > span, body.vertical .sc-win .sc-foot, body.vertical .sc-win .sc-count, body.vertical .sc-win .sc-wait { font-size: 18px; }
body.vertical .sc-win .sc-chip { font-size: 16px; padding: 3px 12px; }
body.vertical .sc-win .sc-cells .ic-cell { --ic: 96px; } /* длинный ярлык («15 Min.») не мельче 16, как в лавках */
body.vertical .sc-win .sc-chk { font-size: 18px; }
body.vertical .sc-win .sc-chk input { width: 26px; height: 26px; }
body.vertical .sc-win .sc-post { padding: 12px 14px; gap: 8px; }
body.vertical .sc-win .sc-post .hd { font-size: 18px; flex-wrap: wrap; }
body.vertical .sc-win .sc-post .hd .tm { font-size: 16px; }
body.vertical .sc-win .sc-post .tx { font-size: var(--fs-body); }
body.vertical .sc-urg { font-size: 16px; padding: 2px 10px; }
body.vertical .sc-ta { font-size: var(--fs-body); }
body.vertical .gl-count span, body.vertical .gl-from, body.vertical .gl-chip, body.vertical .gl-st i { font-size: 18px; }
body.vertical .gl-prog .tr-bar { height: 30px; border-radius: 15px; }
body.vertical .gl-prog .tr-bar span { font-size: 18px; line-height: 30px; }
body.vertical .gl-step { min-height: 72px; padding: 8px 14px; }
body.vertical .gl-need, body.vertical .gl-bonus { font-size: 20px; }
body.vertical .gl-need { width: 84px; }
body.vertical .gl-modal .gl-items .ic-cell { --ic: 80px; }

/* ===== Часть 2 (docs/SOCIAL.md §11): чат (js/talk.js), почта разделами (screens/mail.js), подсказки (js/hints.js),
   шапка окна со стрелкой «назад» (ui.js modal → back) ===== */

/* шапка окна: «назад» слева, как крестик справа — css/kod.css (.btn-back, «окна») */

/* ——— чат: значки у имени, координаты, перевод, меню ——— */
.tlk-who-btn { display: flex; cursor: pointer; }
.cht-hd b[data-tk] { cursor: pointer; }
.tlk-vip, .tlk-lv {
  display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; height: 17px; border-radius: 9px; font-style: normal;
  font-size: 11px; font-weight: 700; line-height: 17px; white-space: nowrap;
}
.tlk-vip { background: linear-gradient(#f6d77a, #d9a636); color: #4a2e08; border: 1px solid #a8742a; }
.tlk-vip.off { background: #c9ced6; color: #566274; border-color: #a5b6cc; }
.tlk-lv { background: rgba(61, 110, 158, 0.18); color: var(--w-hi, #cfe3f7); border: 1px solid var(--w-line, #3a4658); }
/* VIP — нарисованная корона уровня (vip.badge_N) с числом поверх; не активен — серая */
.tlk-vip.pic, .cht-hd .tlk-vip.pic { position: relative; height: auto; padding: 0; border: 0; border-radius: 0; background: none; line-height: 1; }
.tlk-vip.pic img { display: block; width: 30px; height: 30px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45)); }
.tlk-vip.pic b {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-top: 3px;
  font: 700 13px/1 var(--sans); color: #fff; text-shadow: 0 0 2px #3a2408, 0 1px 1px #3a2408;
}
.tlk-vip.pic.off img { filter: grayscale(1) brightness(1.1); }
body.vertical .cht-hd .tlk-vip.pic, body.phone-land .cht-hd .tlk-vip.pic { height: auto; padding: 0; border-radius: 0; }
body.vertical .tlk-vip.pic img { width: 44px; height: 44px; }
body.vertical .tlk-vip.pic b { font-size: 18px; }
body.phone-land .tlk-vip.pic img { width: 40px; height: 40px; }
body.phone-land .tlk-vip.pic b { font-size: 17px; }
/* координаты — цветом текста пузыря (пузыри бывают светлые и тёмные, облики Казны — свои), с пунктиром и подложкой */
.tlk-xy {
  display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; margin: 0 1px; border-radius: 6px; cursor: pointer;
  border: 1px dashed currentColor; background: rgba(236, 196, 120, 0.22); color: inherit;
  font: inherit; font-weight: 700; line-height: 1.3; vertical-align: baseline; text-decoration: underline;
}
.tlk-xy:hover { background: rgba(236, 196, 120, 0.38); }
.tlk-trb {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--w-line, #3a4658); background: none; color: var(--muted); font-size: 12px;
}
.cht-msg.me .tlk-trb { align-self: flex-end; }
.tlk-tr {
  display: flex; align-items: flex-start; gap: 5px; max-width: 100%; padding: 4px 10px; border-radius: 8px; font-size: 14px; line-height: 1.35;
  background: rgba(63, 143, 79, 0.12); color: var(--w-hi, #e2d6bd); white-space: pre-wrap; overflow-wrap: anywhere;
}
.tlk-tr svg { margin-top: 2px; color: var(--w-good, #9fe0a8); }
/* перевод чата (docs/SOCIAL.md §11.1): метка языка оригинала «ES» после времени; касание — оригинал (пунктир) и обратно */
.tlk-src {
  align-self: center; display: inline-flex; align-items: center; height: 15px; padding: 0 4px; border-radius: 4px; cursor: pointer;
  border: 1px solid currentColor; background: none; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1;
  letter-spacing: 0.04em; text-transform: uppercase; font-family: inherit;
}
.tlk-src.on { border-style: dashed; }
.tlk-tool.tr:hover { color: var(--w-accent, var(--bronze-l)); }
.tlk-tool.tr.on { color: var(--w-good, #9fe0a8); border-color: currentColor; }
.tlk-tool {
  align-self: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--w-line, var(--bronze-d)); background: var(--w-well, rgba(16, 20, 28, 0.6)); color: var(--muted); cursor: pointer;
}
.tlk-tool:hover { color: var(--w-bad, #ff9a8a); }
.tlk-menu { display: flex; flex-direction: column; gap: 8px; }
.tlk-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-radius: 8px; background: var(--w-well, rgba(0, 0, 0, 0.22)); font-size: 14px; }
.tlk-who > span { flex: 1; min-width: 0; color: var(--muted); font-style: italic; overflow-wrap: anywhere; }
.tlk-act {
  display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-radius: 8px; cursor: pointer; text-align: left;
  border: 1px solid var(--w-line, #3a4658); background: var(--w-field, rgba(0, 0, 0, 0.25)); color: var(--w-hi, #fff3d0); font-size: 16px; font-weight: 700;
}
.tlk-act:hover { border-color: var(--w-accent, var(--bronze-l)); }
.tlk-act.bad { color: var(--w-bad, #ff9a8a); }
.tlk-act.off { opacity: 0.6; }
.tlk-note { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.tlk-langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tlk-lang {
  height: 42px; border-radius: 8px; cursor: pointer; border: 1px solid var(--w-line, #3a4658); background: var(--w-field, rgba(0, 0, 0, 0.25));
  color: var(--w-hi, #fff3d0); font-size: 15px;
}
.tlk-lang.on { border: 2px solid var(--steel); background: rgba(61, 110, 158, 0.18); font-weight: 700; }

/* жалоба и список блокировки */
.tlk-rep { display: flex; flex-direction: column; gap: 10px; }
.tlk-quote {
  margin: 0; padding: 8px 12px; border-left: 4px solid var(--w-accent, var(--bronze)); border-radius: 0 8px 8px 0; max-height: 120px; overflow-y: auto;
  background: var(--w-well, rgba(0, 0, 0, 0.22)); font-size: 14px; font-style: italic; white-space: pre-wrap; overflow-wrap: anywhere;
}
.tlk-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.tlk-reason, .tlk-check { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; color: var(--w-hi, #fff3d0); }
.tlk-reason input, .tlk-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--steel); }
.tlk-area { height: auto; min-height: 60px; padding: 8px 10px; font-size: 16px; line-height: 1.35; resize: vertical; }
.tlk-acts { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.tlk-acts .left { margin-right: auto; font-size: 12px; color: var(--muted); }
.tlk-blocks { display: flex; flex-direction: column; gap: 8px; }
.tlk-rows { display: flex; flex-direction: column; gap: 6px; }
.tlk-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; background: var(--w-well, rgba(0, 0, 0, 0.22)); }
.tlk-row .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tlk-row .nm b { font-size: 16px; color: var(--w-hi, #fff3d0); }
.tlk-row .nm span { font-size: 12px; color: var(--muted); }

/* ——— почта разделами ——— */
.ml-modal .q-tab { display: inline-flex; align-items: center; gap: 6px; }
.ml-modal .ml-bar { flex-wrap: wrap; gap: 8px; }
body:not(.vertical) .ml-modal .ml-bar .btn.small { height: 32px; padding: 0 10px; font-size: 14px; gap: 5px; } /* стоя — общий .btn.small */
.ml-card.sel { border-color: var(--steel); box-shadow: inset 0 0 0 2px var(--steel-l); }
.ml-pick {
  width: 22px; height: 22px; flex: none; box-sizing: border-box; border-radius: 6px; border: 2px solid #8a7550; background: #fff8e8;
  display: flex; align-items: center; justify-content: center;
}
.ml-pick.on { background: var(--steel); border-color: var(--steel); }
.ml-rep {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 8px; padding: 10px 14px; border-radius: 8px; cursor: pointer; text-align: left;
  border: 2px solid var(--w-accent, var(--bronze)); background: linear-gradient(90deg, rgba(192, 138, 62, 0.22), var(--w-well, rgba(0, 0, 0, 0.2))); color: var(--w-hi, #fff3d0); font: inherit;
}
.ml-rep .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ml-rep .t b { font-family: var(--title); font-size: 20px; }
.ml-rep .t span { font-size: 13px; color: var(--muted); }
.ml-rep .hz-badge { position: static; }
.ml-from { margin: -4px 0 10px; font-size: 14px; color: #6a5236; }
/* имя лорда в письме — отправитель и лорды в тексте письма сервера (mail.js bodyHtml): окно лорда */
.ml-who { cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ml-exp { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: #6a5236; }
.ml-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ml-life { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.ml-write { display: flex; flex-direction: column; gap: 10px; }
.ml-write .input[readonly] { opacity: 0.75; }

/* ——— подсказки: карточка при первом открытии, пояснение по долгому нажатию ——— */
.modal:has(> .hnt) { position: relative; }
.hnt {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; width: min(560px, calc(100% - 28px)); box-sizing: border-box;
  padding: 12px 16px; border-radius: 12px; background: #fdf6e3; border: 2px solid var(--bronze); color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); animation: hn-up 0.25s ease-out;
}
.hnt.scr { bottom: calc(150px + var(--sab, 0px)); z-index: 45; }
.modal.full > .hnt { bottom: calc(14px + var(--sab, 0px)); } /* окно во весь экран: над полосой жестов */
.hnt-h b { font-family: var(--title); font-size: 21px; color: #7a4c14; }
.hnt p { margin: 4px 0 8px; font-size: 15px; line-height: 1.4; }
.hnt-acts { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.hnt-off { margin-inline-end: auto; padding: 0; border: none; background: none; color: #6a5236; font-size: 13px; text-decoration: underline; cursor: pointer; }
/* стоя не мельче 16 (docs/UI_PLAN.md §2.1): текст 18, заголовок 22; «Больше не показывать» — поле касания 56 */
body.vertical .hnt { padding: 14px 18px 8px; }
body.vertical .hnt-h b { font-size: 22px; }
body.vertical .hnt p { margin: 6px 0 4px; font-size: var(--fs-sub); }
body.vertical .hnt-off { min-height: 56px; padding: 0 12px; margin-inline-start: -12px; font-size: var(--fs-min); }
@keyframes hn-up { from { opacity: 0; transform: translate(-50%, 10px); } }
.tip-pop {
  position: absolute; z-index: 95; max-width: 360px; padding: 8px 12px; border-radius: 8px; pointer-events: none;
  background: rgba(16, 20, 28, 0.94); border: 1px solid var(--bronze); color: #fff3d0; font-size: 15px; line-height: 1.35;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); animation: hn-pop 0.15s ease-out;
}
@keyframes hn-pop { from { opacity: 0; transform: scale(0.95); } }
html.kod-still .hnt, html.kod-still .tip-pop { animation: none; }

body.vertical .tlk-langs { grid-template-columns: 1fr 1fr; }
body.vertical .tlk-reasons { grid-template-columns: 1fr; }

/* ===== лёжа на телефоне (body.phone-land, js/ui.js fitStage: сцена мельче 3/4 — около 0,57): карточки чата, меню
   имени и жалоба, подсказка при первом открытии были в прибитых px — 11–15 (6–9 css px), кнопки 28–30, галочки 18.
   Текст не мельче 16, вторые строки 17 (--fs-sub), маленькие кнопки 52 (--h-btn-s), галочки 32 — вся строка
   нажимается (галочка внутри label). На планшете и ПК лёжа всё как было ===== */
/* карточки в ленте чата (js/chatcards.js) и закреп над чатом альянса */
body.phone-land .cc { gap: 12px; padding: 10px 14px; font-size: var(--fs-sub); }
body.phone-land .cc-ic { width: 44px; height: 44px; border-radius: 22px; }
body.phone-land .cc-tx b { font-size: var(--fs-list); }
body.phone-land .cc-tx span, body.phone-land .cc-quote { font-size: var(--fs-sub); }
body.phone-land .cc-tm { font-size: var(--fs-min); }
body.phone-land .cc-acts .btn.small { height: var(--h-btn-s); padding: 0 16px; font-size: var(--fs-btn-s); }
body.phone-land .cc-xy { height: 48px; padding: 0 12px; font-size: var(--fs-sub); }
body.phone-land .cc-react { height: 48px; padding: 0 14px; border-radius: 24px; font-size: var(--fs-sub); }
body.phone-land .cc-crest { width: 54px; height: 62px; font-size: 24px; }
body.phone-land .cc-pin { padding: 10px 14px; }
body.phone-land .cc-pin-h, body.phone-land .cc-pin-t { font-size: var(--fs-sub); }
body.phone-land .cc-pin-h .btn { height: var(--h-btn-s); padding: 0 14px; font-size: var(--fs-btn-s); }
/* касание имени в чате (js/talk.js): меню, язык перевода, жалоба (причины — кружки 32 в строке 52), заблокированные */
body.phone-land .tlk-who { font-size: var(--fs-sub); }
body.phone-land .tlk-act { height: auto; min-height: 56px; font-size: var(--fs-body); }
body.phone-land .tlk-note { font-size: var(--fs-sub); }
body.phone-land .tlk-lang { height: var(--h-btn-s); font-size: var(--fs-body); }
body.phone-land .tlk-quote { font-size: var(--fs-sub); }
body.phone-land .tlk-rep { gap: 8px; }
body.phone-land .tlk-reasons { gap: 2px 18px; }
body.phone-land .tlk-reason, body.phone-land .tlk-check { min-height: var(--h-btn-s); gap: 12px; font-size: var(--fs-body); }
body.phone-land .tlk-reason input, body.phone-land .tlk-check input { width: 32px; height: 32px; flex: none; }
body.phone-land .tlk-area { font-size: var(--fs-body); }
body.phone-land .tlk-acts .left { font-size: var(--fs-min); }
body.phone-land .tlk-row .nm b { font-size: var(--fs-list); }
body.phone-land .tlk-row .nm span { font-size: var(--fs-sub); }
/* координаты в тексте пузыря и письма, имя лорда в письме и в карточке альянса — поле касания 48 по высоте (невидимой
   рамкой, строка текста не растёт) */
body.phone-land :is(.tlk-xy, .ml-who, .sc-who) { position: relative; }
body.phone-land .tlk-xy::before { content: ''; position: absolute; inset: -10px -4px; }
body.phone-land :is(.ml-who, .sc-who)::before { content: ''; position: absolute; inset: -12px -6px; }
/* подсказка при первом открытии (js/hints.js): текст 17, заголовок 22, «Больше не показывать» — поле касания 52;
   пояснение по долгому нажатию — 17 */
body.phone-land .hnt { width: min(640px, calc(100% - 28px)); padding: 14px 18px 8px; }
body.phone-land .hnt-h b { font-size: 22px; }
body.phone-land .hnt p { margin: 6px 0 4px; font-size: var(--fs-sub); }
body.phone-land .hnt-off { min-height: var(--h-btn-s); padding: 0 12px; margin-inline-start: -12px; font-size: var(--fs-min); }
body.phone-land .tip-pop { max-width: 440px; font-size: var(--fs-sub); }

/* ——— наука альянса (аудит графики 07.11 soyuz-05): узел — крупный нарисованный значок науки с уровнем, прибавка
   крупными числами «+2% → +4%», под ней — что даёт (одна строка), полоса опыта, пожертвования — кнопками-значками
   ресурсов; шапка — три плашки со значками и числами; крепость — картинкой ——— */
.tr-win .tr-node.sci { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 14px; }
.tr-picw {
  position: relative; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 16px;
  background: radial-gradient(circle at 50% 42%, rgba(255, 232, 170, 0.7), rgba(192, 138, 62, 0.16) 72%); box-shadow: inset 0 0 0 2px rgba(192, 138, 62, 0.45);
}
.tr-node.max .tr-picw { background: radial-gradient(circle at 50% 42%, rgba(255, 220, 120, 0.95), rgba(217, 164, 65, 0.4) 72%); box-shadow: inset 0 0 0 2px #d9a441; }
.tr-pic { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
.tr-lv {
  position: absolute; inset-inline-end: -8px; bottom: -6px; min-width: 38px; height: 24px; padding: 0 6px; box-sizing: border-box; border-radius: 12px;
  background: linear-gradient(#3d6e9e, #24456b); border: 2px solid #fff; color: #fff; font: 700 14px/20px var(--sans); font-style: normal; text-align: center;
}
.tr-node.max .tr-lv { background: linear-gradient(#e0b04a, #9a6a1c); }
.tr-node.sci .t { gap: 2px; }
.tr-val { display: flex; align-items: center; gap: 6px; color: #8a6a3a; }
.tr-val em { font: 700 24px/1.1 var(--sans); font-style: normal; color: var(--w-hi, #2c1e12); }
.tr-val em.nx { color: var(--w-good, #23803e); }
.tr-node.sci .t .tr-what { color: var(--muted); }
.tr-don .tr-res { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 6px; }
.tr-don .tr-res :is(img, svg) { width: 30px; height: 30px; flex: none; }
.tr-don .tr-res b { font-weight: 700; }
.tr-chips { justify-content: flex-start; gap: 10px; }
.tr-chip { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 12px; background: var(--w-well, rgba(0, 0, 0, 0.22)); }
.tr-chip :is(img, svg) { width: 34px; height: 34px; flex: none; }
.tr-chip > span { display: flex; flex-direction: column; }
.tr-chip b { font: 700 20px/1.1 var(--sans); color: var(--w-hi, #2c1e12); }
.tr-chip i { font-style: normal; font-size: 12px; color: var(--muted); }
.fo-pic { display: flex; justify-content: center; margin-bottom: 8px; }
.fo-pic img { width: 128px; height: auto; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); }
body.vertical .tr-picw { width: 116px; height: 116px; border-radius: 20px; }
body.vertical .tr-pic { width: 104px; height: 104px; }
body.vertical .tr-lv { min-width: 56px; height: 34px; border-radius: 17px; font-size: 20px; line-height: 30px; }
body.vertical .tr-val em { font-size: 36px; }
body.vertical .tr-val svg { width: 30px; height: 30px; }
body.vertical .tr-win .tr-node .t .tr-what { font-size: var(--fs-min); }
body.vertical .tr-don { gap: 10px; }
body.vertical .tr-don .tr-res { height: 64px; padding: 0 16px 0 8px; font-size: 24px; border-radius: 14px; }
body.vertical .tr-don .tr-res :is(img, svg) { width: 48px; height: 48px; }
body.vertical .tr-chip { padding: 8px 16px 8px 10px; border-radius: 14px; gap: 10px; }
body.vertical .tr-chip :is(img, svg) { width: 52px; height: 52px; }
body.vertical .tr-chip b { font-size: var(--fs-num); }
body.vertical .tr-chip i { font-size: var(--fs-min); }
body.vertical .fo-pic img { width: 200px; }
body.phone-land .tr-picw { width: 104px; height: 104px; border-radius: 18px; }
body.phone-land .tr-pic { width: 92px; height: 92px; }
body.phone-land .tr-lv { min-width: 52px; height: 32px; border-radius: 16px; font-size: 18px; line-height: 28px; }
body.phone-land .tr-val em { font-size: 32px; }
body.phone-land .tr-win .tr-node .t > b { font-size: var(--fs-list); }
body.phone-land .tr-win .tr-node .t span, body.phone-land .tr-win .tr-max { font-size: var(--fs-min); }
body.phone-land .tr-win .tr-bar { height: 28px; border-radius: 14px; }
body.phone-land .tr-win .tr-bar span { font-size: 17px; line-height: 28px; font-weight: 700; }
body.phone-land .tr-don .tr-res { height: 56px; padding: 0 14px 0 8px; font-size: var(--fs-sub); }
body.phone-land .tr-don .tr-res :is(img, svg) { width: 40px; height: 40px; }
body.phone-land .tr-chip :is(img, svg) { width: 44px; height: 44px; }
body.phone-land .tr-chip b { font-size: var(--fs-num); }
body.phone-land .tr-chip i { font-size: var(--fs-min); }
body.phone-land .fo-pic img { width: 168px; }

/* ——— «Слава» (аудит графики 07.11 sobytiya-17): медаль-звезда со счётом, полоса до порога, откуда звёзды —
   значками, дорожка порогов сундуками (готовый подпрыгивает, выбранный — со свечением), выбранный порог карточкой:
   прибавка крупно, награда ячейками, «Получить»; лёжа — две колонки ——— */
.gl-modal .modal-body { overflow-y: auto; }
.gl-modal .gl-body { display: block; flex: none; }
.gl-cols { display: flex; flex-direction: column; gap: 14px; }
.gl-left, .gl-right { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gl-medal { align-self: center; display: flex; flex-direction: column; align-items: center; }
.gl-mc {
  position: relative; width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 36%, #fff3c4 0, #f1c45a 36%, #b9802a 72%, #7a4c14 100%);
  box-shadow: 0 0 0 5px #fff1c6, 0 0 0 9px #b9802a, 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 -8px 14px rgba(90, 50, 10, 0.45);
}
.gl-mc > :is(img, svg) { width: 108px; height: 108px; filter: drop-shadow(0 3px 3px rgba(90, 50, 10, 0.6)); animation: gl-shine 4.5s ease-in-out infinite; }
.gl-mnum {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); min-width: 80px; padding: 5px 14px; box-sizing: border-box; border-radius: 16px;
  background: linear-gradient(#c0392b, #7a1a1e); border: 2px solid #ffe8b0; color: #fff; font: 700 28px/1 var(--title); text-align: center;
  text-shadow: var(--t-outline); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45);
}
.gl-mcap { margin-top: 22px; font-style: normal; font-size: var(--fs-sub, 14px); color: var(--muted); }
@keyframes gl-shine { 0%, 80%, 100% { transform: scale(1) rotate(0); } 87% { transform: scale(1.08) rotate(-6deg); } 94% { transform: scale(1.04) rotate(4deg); } }
.gl-prog { flex: none; display: flex; flex-direction: column; gap: 10px; }
.gl-modal .gl-from { display: flex; justify-content: center; gap: 22px; margin: 0; }
.gl-from span { display: inline-flex; align-items: center; gap: 6px; }
.gl-from :is(img, svg) { width: 32px; height: 32px; }
.gl-from b { font: 700 var(--fs-list, 18px)/1 var(--sans); color: var(--w-hi, #2c1e12); }
.gl-all { align-self: center; }
.gl-right > .sect { margin: 0; }
.gl-track { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; padding: 12px 6px 4px; }
.gl-track::-webkit-scrollbar { display: none; }
.gl-nodes { position: relative; display: flex; gap: 8px; width: max-content; }
.gl-nodes::before { content: ""; position: absolute; left: 46px; right: 46px; top: 93px; height: 6px; border-radius: 3px; background: rgba(42, 52, 66, 0.25); }
.gl-node { position: relative; flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.gl-nc { position: relative; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; border-radius: 18px; transition: transform 0.15s; }
.gl-nimg { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.4)); }
.gl-node.taken .gl-nimg { opacity: 0.7; filter: grayscale(0.55) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
.gl-node.on .gl-nc { background: radial-gradient(circle, rgba(255, 222, 130, 0.9), rgba(255, 222, 130, 0) 70%); transform: scale(1.1); }
.gl-node.ready:not(.on) .gl-nc { animation: gl-hop 1.8s ease-in-out infinite; }
@keyframes gl-hop { 0%, 60%, 100% { transform: translateY(0); } 75% { transform: translateY(-7px); } 88% { transform: translateY(0); } }
html.kod-still .gl-mc > :is(img, svg), html.kod-still .gl-node .gl-nc { animation: none; }
.gl-ok, .gl-bang {
  position: absolute; inset-inline-end: 0; width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center; font-style: normal; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}
.gl-ok { bottom: 2px; background: #3f8f4f; }
.gl-bang { top: -2px; background: #d63a34; color: #fff; font: 700 18px/1 var(--sans); }
.gl-ndot { position: relative; z-index: 1; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; background: #8a99ad; border: 2px solid #fff; }
.gl-node.taken .gl-ndot, .gl-node.ready .gl-ndot { background: #e8b93a; }
.gl-node > b { font: 700 18px/1 var(--sans); color: var(--w-hi, #2c1e12); }
.gl-node.on > b { color: #b9802a; }
.gl-det {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--w-well, rgba(0, 0, 0, 0.22)); box-shadow: inset 0 0 0 2px rgba(192, 138, 62, 0.45);
}
.gl-det.ready { box-shadow: inset 0 0 0 3px #e8b93a, 0 0 14px rgba(232, 185, 58, 0.5); }
.gl-dneed { display: flex; align-items: center; gap: 4px; }
.gl-dneed b { font: 700 26px/1 var(--sans); color: #b9802a; }
.gl-dbonus { font: 700 22px/1.2 var(--sans); color: var(--w-hi, #2c1e12); }
.gl-ditems, .gl-dact { grid-column: 1 / -1; }
.gl-dact { display: flex; justify-content: center; }
.gl-took, .gl-more { display: inline-flex; align-items: center; gap: 8px; font: 700 var(--fs-list, 18px)/1 var(--sans); }
.gl-took { color: var(--w-good, #23803e); }
.gl-more { color: var(--muted); }
body.vertical .gl-mc { width: 220px; height: 220px; }
body.vertical .gl-mc > :is(img, svg) { width: 160px; height: 160px; }
body.vertical .gl-mnum { min-width: 110px; font-size: 40px; padding: 6px 18px; border-radius: 22px; bottom: -22px; }
body.vertical .gl-mcap { margin-top: 30px; font-size: var(--fs-sub); }
body.vertical .gl-from :is(img, svg) { width: 48px; height: 48px; }
body.vertical .gl-from b { font-size: var(--fs-num); }
body.vertical .gl-node { width: 128px; }
body.vertical .gl-nc { width: 116px; height: 116px; border-radius: 24px; }
body.vertical .gl-nimg { width: 108px; height: 108px; }
body.vertical .gl-nodes { gap: 10px; }
body.vertical .gl-nodes::before { left: 64px; right: 64px; top: 126px; height: 8px; border-radius: 4px; }
body.vertical .gl-node > b { font-size: var(--fs-list); }
body.vertical .gl-ndot { width: 18px; height: 18px; }
body.vertical .gl-ok, body.vertical .gl-bang { width: 38px; height: 38px; }
body.vertical .gl-bang { font-size: 24px; }
body.vertical .gl-det { padding: 16px 18px; gap: 12px 16px; border-radius: 16px; }
body.vertical .gl-dneed :is(img, svg) { width: 44px; height: 44px; }
body.vertical .gl-dneed b { font-size: 36px; }
body.vertical .gl-dbonus { font-size: 32px; }
body.vertical .gl-took, body.vertical .gl-more { font-size: var(--fs-num); }
body.vertical .gl-took :is(img, svg), body.vertical .gl-more :is(img, svg) { width: 40px; height: 40px; }
body.phone-land .gl-cols { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
body.phone-land .gl-mc { width: 190px; height: 190px; }
body.phone-land .gl-mc > :is(img, svg) { width: 136px; height: 136px; }
body.phone-land .gl-mnum { min-width: 96px; font-size: 34px; bottom: -20px; }
body.phone-land .gl-mcap { margin-top: 26px; font-size: var(--fs-sub); }
body.phone-land .gl-from :is(img, svg) { width: 40px; height: 40px; }
body.phone-land .gl-from b, body.phone-land .gl-took, body.phone-land .gl-more { font-size: var(--fs-list); }
body.phone-land .gl-chip { font-size: var(--fs-min); }
body.phone-land .gl-prog .tr-bar { height: 28px; border-radius: 14px; }
body.phone-land .gl-prog .tr-bar span { font-size: 17px; line-height: 28px; }
body.phone-land .gl-node { width: 112px; }
body.phone-land .gl-nc { width: 100px; height: 100px; }
body.phone-land .gl-nimg { width: 92px; height: 92px; }
body.phone-land .gl-nodes::before { left: 56px; right: 56px; top: 110px; }
body.phone-land .gl-node > b { font-size: var(--fs-min); }
body.phone-land .gl-dneed b { font-size: 32px; }
body.phone-land .gl-dbonus { font-size: 28px; }

/* ——— Драконий трон по очкам (screens/thronescore.js; аудит графики 07.11 sobytiya-12): алтари — карточки 2×2 с
   картинкой алтаря на поле цвета королевства-держателя (касание — на карту), свой вклад — крупным числом с полосой до
   следующей награды и тремя значками «за что очки»; правила — под «!» окна ——— */
.ts-alts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.ts-altc {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 10px 8px 10px; box-sizing: border-box;
  border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.55); cursor: pointer; font: inherit; color: #fff; text-align: center;
  background: radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 60%), linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.35)), var(--kc);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35); text-shadow: var(--t-outline);
}
.ts-altc:active { transform: translateY(2px); }
.ts-altc.me { border-color: #ffe39a; box-shadow: 0 0 0 3px rgba(255, 227, 154, 0.6), 0 3px 0 rgba(0, 0, 0, 0.3); }
.ts-aw { display: flex; align-items: flex-end; justify-content: center; height: 92px; }
.ts-apic { width: auto; height: 92px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5)); display: flex; align-items: center; }
.ts-altc:not(.held) .ts-apic { filter: grayscale(0.4) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5)); }
.ts-altc > b { max-width: 100%; font: 700 17px/1.15 var(--sans); overflow-wrap: anywhere; }
.ts-ah { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.ts-ah i { width: 12px; height: 12px; border-radius: 50%; background: var(--kc); border: 2px solid #fff; }
.ts-am { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 14px; font-weight: 700; }
.ts-am span { display: inline-flex; align-items: center; gap: 3px; }
.ts-am :is(img, svg) { width: 22px; height: 22px; }
.ts-mine { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 2px 0 8px; }
.ts-mnum { font: 700 44px/1 var(--title); color: #b9802a; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); }
.ts-mcap { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sub, 14px); color: var(--muted); }
.ts-mcap b { color: var(--w-hi, #2c1e12); }
.tr-bar.ts-mbar { height: 22px; margin-bottom: 10px; }
.tr-bar.ts-mbar span { line-height: 22px; font-size: 13px; font-weight: 700; }
.ts-mparts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.ts-mpart { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: var(--w-well, rgba(0, 0, 0, 0.18)); text-align: center; }
.ts-mpart :is(img, svg) { width: 36px; height: 36px; }
.ts-mpart b { font: 700 20px/1.1 var(--sans); color: var(--w-hi, #2c1e12); }
.ts-mpart i { font-style: normal; font-size: 12px; line-height: 1.2; color: var(--muted); }
body.vertical .ts-alts { gap: 14px; }
body.vertical .ts-altc { padding: 14px 10px; border-radius: 18px; gap: 6px; }
body.vertical .ts-aw, body.vertical .ts-apic { height: 140px; }
body.vertical .ts-altc > b { font-size: var(--fs-list); }
body.vertical .ts-ah { font-size: var(--fs-sub); }
body.vertical .ts-ah i { width: 16px; height: 16px; }
body.vertical .ts-am { font-size: var(--fs-min); }
body.vertical .ts-am :is(img, svg) { width: 30px; height: 30px; }
body.vertical .ts-mnum { font-size: 72px; }
body.vertical .ts-mcap { font-size: var(--fs-sub); }
body.vertical .tr-bar.ts-mbar { height: 32px; border-radius: 16px; }
body.vertical .tr-bar.ts-mbar span { font-size: 19px; line-height: 32px; }
body.vertical .ts-mpart { padding: 12px 6px; border-radius: 14px; }
body.vertical .ts-mpart :is(img, svg) { width: 52px; height: 52px; }
body.vertical .ts-mpart b { font-size: var(--fs-num); }
body.vertical .ts-mpart i { font-size: var(--fs-min); }
body.phone-land .ts-alts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.phone-land .ts-aw, body.phone-land .ts-apic { height: 110px; }
body.phone-land .ts-altc > b { font-size: var(--fs-sub); }
body.phone-land .ts-ah, body.phone-land .ts-am { font-size: var(--fs-min); }
body.phone-land .ts-mnum { font-size: 60px; }
body.phone-land .ts-mcap, body.phone-land .ts-mpart i { font-size: var(--fs-min); }
body.phone-land .ts-mpart b { font-size: var(--fs-num); }
body.phone-land .ts-mpart :is(img, svg) { width: 44px; height: 44px; }

/* ——— клады и подарки альянса (аудит графики 07.11 soyuz-11, 12, 15): строка — нарисованная картинка 64 (клад,
   коробка подарка; великий клад и дорогой подарок — со свечением), даритель и отсчёт значком часов, ячейки содержимого
   обычного размера; сколько кладов сегодня — плашкой ——— */
.sc-row > .sc-pic { flex: none; width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
.sc-row > .sc-pic.great, .sc-row > .sc-gift.t3 { filter: drop-shadow(0 0 6px rgba(255, 215, 94, 0.95)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
.sc-row > .sc-gift.t2 { filter: hue-rotate(-60deg) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
.sc-row .t > .sc-from { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.sc-from .sc-who { font-weight: 700; color: var(--w-hi, #2c1e12); }
.sc-left { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-left :is(img, svg) { width: 20px; height: 20px; }
.sc-day { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 6px 12px; border-radius: 12px; background: var(--w-well, rgba(0, 0, 0, 0.18)); }
.sc-day > :is(img, svg) { width: 44px; height: 44px; object-fit: contain; }
.sc-day b { font: 700 var(--fs-num, 20px)/1 var(--sans); color: var(--w-hi, #2c1e12); }
.sc-day span { font-size: var(--fs-sub, 14px); color: var(--muted); }
body.vertical .sc-win .sc-row > .sc-pic { width: 96px; height: 96px; }
body.vertical .sc-win .sc-row .sc-left :is(img, svg) { width: 30px; height: 30px; }
body.vertical .sc-win .sc-day > :is(img, svg) { width: 64px; height: 64px; }
body.phone-land .sc-win .sc-row > .sc-pic { width: 80px; height: 80px; }
body.phone-land .sc-win .sc-row .t > b { font-size: var(--fs-list); }
body.phone-land .sc-win .sc-row .t > span, body.phone-land .sc-win .sc-day span { font-size: var(--fs-min); }
body.phone-land .sc-win .sc-cells .ic-cell { --ic: 80px; }

/* подсказки при первом открытии (hints.js) — под шапкой окна, а не над нижними кнопками (аудит soyuz-22: карточка
   закрывала полосу разделов альянса и «Использовать»); на экране замка (.scr) — как было */
.modal > .hnt:not(.scr), .modal.full > .hnt:not(.scr) { top: calc(var(--h-head, 56px) + 10px); bottom: auto; animation-name: hn-down; }
@keyframes hn-down { from { opacity: 0; transform: translate(-50%, -10px); } }

/* обозы закрыты (аудит soyuz-24): условия — значками с галочкой или замком */
.cv-needs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 4px 0 12px; }
.cv-need { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; background: var(--w-well, rgba(0, 0, 0, 0.18)); }
.cv-need b { font: 700 var(--fs-list, 18px)/1 var(--sans); color: var(--w-hi, #2c1e12); }
.cv-need.ok { box-shadow: inset 0 0 0 2px #3f8f4f; }
body.vertical .cv-need > :first-child { width: 52px; height: 52px; }
body.vertical .cv-need > :last-child { width: 30px; height: 30px; }

/* ——— «Слава», круг 9: за медалью — кружащие лучи, звёзды докручиваются; полоса — толстая, «звёзд / порог» крупно
   (был «до порога 20: ещё 0» мелко при готовом пороге); откуда звёзды — плитками с подписью; прибавки — значком вида;
   «Впереди» — следующие пороги строками (пол-окна было пустым) ——— */
.gl-mc { isolation: isolate; }
.gl-rays {
  position: absolute; z-index: -1; inset: -34%; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 120, 0.55) 0deg 9deg, rgba(255, 220, 120, 0) 9deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 34%, transparent 68%); mask: radial-gradient(circle, #000 34%, transparent 68%);
}
html:not(.kod-still):not(.kod-lo) .gl-rays { animation: gl-spin 24s linear infinite; }
@keyframes gl-spin { to { rotate: 360deg; } }
.gl-bar {
  position: relative; height: 40px; border-radius: 20px; overflow: hidden; background: rgba(42, 52, 66, 0.22);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(192, 138, 62, 0.45);
}
.gl-bar > i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 20px; background: linear-gradient(#ffe39a, #d9a640 60%, #a8742a);
  box-shadow: inset 0 -3px 0 rgba(90, 50, 10, 0.3); }
html:not(.kod-still) .gl-bar > i { animation: gl-grow 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes gl-grow { from { width: 0; } }
.gl-bar > b { position: relative; display: block; text-align: center; font: 700 var(--fs-num)/40px var(--sans); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 3px rgba(0, 0, 0, 0.6);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
/* полоса — отрезок до следующего порога, на её конце — сундук этого порога (подпись «3 / 10» — звёзд в отрезке) */
.gl-bline { display: flex; align-items: center; }
.gl-bline > .gl-bar { flex: 1; min-width: 0; }
.gl-bchest { position: relative; z-index: 1; flex: none; width: 64px; height: 64px; margin-inline-start: -26px; object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.45)); }
html:not(.kod-still) .gl-bchest { animation: gl-bc 3.2s ease-in-out infinite; transform-origin: 50% 85%; }
@keyframes gl-bc { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.06) rotate(-4deg); } }
body.vertical .gl-bchest { width: 84px; height: 84px; margin-inline-start: -32px; }
.gl-modal .gl-from { gap: 10px; }
.gl-src { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 14px;
  background: var(--w-well, rgba(0, 0, 0, 0.22)); box-shadow: 0 3px 0 #8797ab, inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.gl-from .gl-src > :is(img, svg) { width: 52px; height: 52px; }
.gl-src > i { font: 700 var(--fs-sub)/1.1 var(--sans); font-style: normal; color: var(--w-muted, #5d6b7e); }
.gl-bic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.6em; height: 1.6em; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #e0a64e, #8a5a1e); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 2px 0 rgba(0, 0, 0, 0.2); }
.gl-bic > :is(img, svg) { width: 72%; height: 72%; }
.gl-chips { gap: 10px; }
.gl-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; font-size: var(--fs-sub); color: #5a3a12; }
.gl-chip .gl-bic { width: 44px; height: 44px; }
.gl-dbonus { display: flex; align-items: center; gap: 12px; }
.gl-dbonus .gl-bic { width: 56px; height: 56px; }
.gl-next { display: flex; flex-direction: column; gap: 8px; }
.gl-x {
  display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 6px 14px 6px 8px; box-sizing: border-box; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--w-well, rgba(0, 0, 0, 0.22)); box-shadow: 0 3px 0 #8797ab, inset 0 1px 0 rgba(255, 255, 255, 0.8); font: inherit; color: var(--w-hi, #2c1e12); text-align: start;
}
.gl-x:active { transform: translateY(2px); }
.gl-x.taken { opacity: 0.6; }
.gl-x.ready { box-shadow: inset 0 0 0 3px #e8b93a, 0 3px 0 #a8742a; }
.gl-xpic { flex: none; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
.gl-xneed { flex: none; display: inline-flex; align-items: center; gap: 4px; min-width: 84px; }
.gl-xneed b { font: 700 var(--fs-num)/1 var(--sans); color: #b9802a; }
.gl-x .gl-bic { width: 44px; height: 44px; }
.gl-xb { flex: 1; min-width: 0; font: 700 var(--fs-sub)/1.15 var(--sans); }
body.vertical .gl-bar { height: 48px; border-radius: 24px; }
body.vertical .gl-bar > i { border-radius: 24px; }
body.vertical .gl-bar > b { line-height: 48px; }
body.vertical .gl-from .gl-src > :is(img, svg) { width: 60px; height: 60px; }
body.vertical .gl-node > b { font-size: var(--fs-num); }
body.vertical .gl-x { min-height: 96px; }
body.phone-land .gl-bar > b { font-size: var(--fs-list); }
body.phone-land .gl-node > b { font-size: var(--fs-sub); }
body.vertical .gl-chip { font-size: var(--fs-sub); }

/* ——— карточки чата (chatcards.js), круг 9: стоя — текст не мельче --fs-min, значок карточки 64 (был 44 с картинкой
   26), герб вербовки крупнее; закреплённое объявление — крупнее ——— */
body.vertical .cc { gap: 14px; padding: 12px 16px; font-size: var(--fs-min); }
body.vertical .cc-ic { width: 64px; height: 64px; border-radius: 32px; }
body.vertical .cc-ic > :is(img, svg) { width: 44px; height: 44px; }
body.vertical .cc-tx { gap: 4px; }
body.vertical .cc-tx b { font-size: var(--fs-sub); line-height: 1.2; }
body.vertical .cc-tx span, body.vertical .cc-quote { font-size: var(--fs-min); line-height: 1.25; }
body.vertical .cc-tm { font-size: var(--fs-min); }
body.vertical .cc-xy, body.vertical .cc-react { height: 52px; font-size: var(--fs-min); }
body.vertical .cc-react svg { width: 26px; height: 26px; }
body.vertical .cc-crest { width: 72px; height: 82px; font-size: 30px; }
body.vertical .cc-pin { gap: 10px; padding: 12px 16px; }
body.vertical .cc-pin-h, body.vertical .cc-pin-t { font-size: var(--fs-min); }
body.vertical .cc-pin-t { font-size: var(--fs-sub); line-height: 1.3; }
body.vertical .cc-pin-h svg, body.vertical .cc-pin-h img { width: 30px; height: 30px; }
/* стоя кнопки карточки — второй строкой под текстом (справа), текст — во всю ширину рядом с гербом и значком, время —
   справа сверху (проверка перед выкладкой: у вербовки с «Вступить» и «Подробнее» текст сжимался в колонку ~90 px —
   13 строк по 1–3 слова, а под кнопками пустовало) */
body.vertical .cc-acts { order: 1; flex: 1 1 100%; justify-content: flex-end; gap: 10px; }
body.vertical .tlk-vip.pic b { font-size: var(--fs-min); }

/* ——— меню сообщения, жалоба, языки чата, заблокированные (talk.js), круг 9: стоя строки меню — 88 со значком 40
   (были 48 с текстом 16 — 9 px экрана), подписи и поля — не мельче --fs-min ——— */
body.vertical .tlk-menu { gap: 12px; }
body.vertical .tlk-who { gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: var(--fs-sub); }
body.vertical .tlk-act { height: auto; min-height: 88px; gap: 18px; padding: 10px 20px; border-radius: 14px; font-size: var(--fs-list); }
body.vertical .tlk-act svg, body.vertical .tlk-act img { flex: none; width: 40px; height: 40px; }
body.vertical .tlk-note { font-size: var(--fs-sub); }
body.vertical .tlk-lang { height: 72px; border-radius: 12px; font-size: var(--fs-body); }
body.vertical .tlk-quote { font-size: var(--fs-sub); }
body.vertical .tlk-reason, body.vertical .tlk-check { min-height: 56px; gap: 12px; font-size: var(--fs-body); }
body.vertical .tlk-reason input, body.vertical .tlk-check input { width: 30px; height: 30px; }
body.vertical .tlk-area { font-size: var(--fs-body); }
body.vertical .tlk-acts .left { font-size: var(--fs-min); }
body.vertical .tlk-row { min-height: 96px; gap: 16px; padding: 10px 16px; border-radius: 14px; }
body.vertical .tlk-row .nm b { font-size: var(--fs-list); }
body.vertical .tlk-row .nm span { font-size: var(--fs-min); }

/* ——— «Слава», проверка перед выкладкой: награда порога — ячейки крупнее, число и ярлык («15 мин», «×2») не мельче
   --fs-min (были 16 и 18,4 — общая ячейка itemcell); длинные подписи (n7+) — по правилам ячейки, целиком ——— */
body.vertical .gl-ditems .ic-cell { --ic: 104px; }
body.phone-land .gl-ditems .ic-cell { --ic: 92px; }
:is(body.vertical, body.phone-land) .gl-ditems .it-tile.ic-cell .it-n:not(.n7, .n8, .n9, .n10) { font-size: max(var(--fs-min), calc(var(--ic) * 0.23)); }
:is(body.vertical, body.phone-land) .gl-ditems .it-tile.ic-cell .it-tag:not(.n7, .n8, .n9, .n10) { font-size: max(var(--fs-min), calc(var(--ic) * 0.2)); line-height: 1.2; }
/* пустой список «Заблокированные лорды» (talk.js openBlocks): значок — крупно, на тёплом медальоне, как у заглушек
   emptyHtml (проверка перед выкладкой: ⊘ 40 сцены — около 20 px экрана) */
.tlk-blocks .ml-empty > svg {
  box-sizing: border-box; width: var(--es-ic, 150px); height: var(--es-ic, 150px); padding: calc(var(--es-ic, 150px) * 0.22); margin: 8px 0 14px; border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #fff8e6 0%, #f3e1b8 42%, #dcbc80 74%, #b8894a 100%);
  box-shadow: 0 0 0 4px #fff3d6, 0 0 0 8px #a8762f, 0 8px 18px rgba(70, 44, 12, 0.35);
}
