/* Сюжет (js/story.js): диалог главы — внизу экрана поверх всего, летопись. */
.dlg-wrap { position: absolute; inset: 0; z-index: 900; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 10, 16, 0.45); cursor: pointer; }
.dlg { position: relative; width: min(980px, calc(100% - 24px)); margin-bottom: calc(18px + var(--sab, 0px)); display: flex; align-items: flex-end; gap: 14px; animation: pop 0.18s ease-out; }
.dlg-title {
  position: absolute; left: 50%; top: -54px; transform: translateX(-50%); padding: 6px 22px; white-space: nowrap; border-radius: 8px;
  background: linear-gradient(#b8343a, #7a1a1e); border: 2px solid var(--bronze); font-family: var(--title); font-weight: 700; font-size: 22px; color: var(--w-hi, #ffe8b0);
}
.dlg-face {
  width: 128px; height: 128px; flex-shrink: 0; border-radius: 50%; border: 4px solid var(--bronze-l); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center;
}
.dlg-box {
  flex: 1; min-width: 0; padding: 14px 18px 12px; border-radius: 12px; border: 3px solid var(--bronze);
  background: linear-gradient(rgba(239, 226, 196, 0.98), rgba(222, 204, 166, 0.98)); color: var(--ink); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}
.dlg-who { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.dlg-who b { font-family: var(--title); font-size: 24px; color: #7a1a1e; }
.dlg-who span { font-size: 14px; color: #6a5a40; font-style: italic; }
.dlg-text { margin: 0 0 10px; font-size: 18px; line-height: 1.45; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 10px; }

body.vertical .dlg { flex-direction: column; align-items: center; gap: 0; }
body.vertical .dlg-face { width: 104px; height: 104px; margin-bottom: -18px; z-index: 1; }
body.vertical .dlg-title { top: -40px; }
body.vertical .dlg-who { flex-wrap: wrap; row-gap: 2px; }
body.vertical .dlg-who span { font-size: var(--fs-min); } /* должность говорящего: стоя не мельче 16 (§2.1) */

/* ——— диалог сюжета (js/story.js playDialog, аудит 07.11 zamok-02, vhod-06, vhod-20, vhod-22): двое по краям —
   портреты по пояс npc.<кто>_calm, низ их уходит за плашку реплики; кто говорит — светел и впереди, второй притушен и
   отступил; новый выходит из-за края, тот же — кивает. Плашка — ui.dialog_box (js: art.skin), глава — лента
   ui.chapter_plate над плашкой. Окно хозяина зала (js/hallkeep.js) — прежняя разметка .dlg без .st ——— */
.st-wrap {
  flex-direction: column; justify-content: flex-end; align-items: center; cursor: pointer;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.18) 0%, rgba(8, 10, 16, 0.42) 45%, rgba(8, 10, 16, 0.82) 100%);
  animation: st-dim 0.25s ease-out;
}
.st-wrap.dlg-wait .dlg { visibility: hidden; }
.st-wrap.dlg-out { opacity: 0; transition: opacity 0.2s ease-in; pointer-events: none; }
.dlg.st {
  width: min(1100px, calc(100% - 32px)); margin: 0 0 calc(14px + var(--sab, 0px)); display: block; animation: none;
}
.st .dlg-stage { position: relative; height: 300px; pointer-events: none; }
.st .dlg-bust {
  position: absolute; bottom: -84px; width: 250px; height: 333px; transform-origin: 50% 100%;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55)); transition: filter 0.3s, transform 0.3s, opacity 0.3s;
}
.st .dlg-bust.l { left: 6px; }
.st .dlg-bust.r { right: 6px; }
.st .dlg-bust:empty { display: none; }
.st .dlg-bust .dlg-pic { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.st .dlg-bust.flat { height: 200px; bottom: -40px; display: flex; align-items: flex-end; justify-content: center; }
.st .dlg-bust .dlg-face { width: 168px; height: 168px; }
.st .dlg-bust.on { z-index: 1; }
/* за говорящим — тёплый свет, как прожектор на сцене (проявляется, когда он заговорил; у притушенного гаснет) */
.st .dlg-bust::before { content: ''; position: absolute; left: -12%; right: -12%; top: 4%; bottom: 18%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 214, 140, 0.62), rgba(255, 190, 100, 0.24) 55%, rgba(255, 180, 90, 0) 75%);
  opacity: 0; transition: opacity 0.35s; }
.st .dlg-bust.on::before { opacity: 1; }
.st .dlg-bust.flat::before { display: none; }
.st .dlg-bust.off { filter: brightness(0.5) saturate(0.65) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)); }
.st .dlg-bust.l.off { transform: translateX(-14px) scale(0.92); }
.st .dlg-bust.r.off { transform: translateX(14px) scale(0.92); }
/* выход из-за края — один раз при смене говорящего; кивок — при следующей реплике того же */
.st .dlg-bust.l.enter { animation: st-in-l 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.12) both; }
.st .dlg-bust.r.enter { animation: st-in-r 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.12) both; }
.st .dlg-bust.talk { animation: st-talk 0.34s ease-out; }
@keyframes st-in-l { from { opacity: 0; transform: translateX(-140px) scale(0.96); } }
@keyframes st-in-r { from { opacity: 0; transform: translateX(140px) scale(0.96); } }
@keyframes st-talk { 40% { transform: translateY(-8px) scale(1.015); } }
@keyframes st-dim { from { opacity: 0; } }
@keyframes st-box-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes st-text-in { from { opacity: 0.3; transform: translateY(4px); } }

.st .dlg-box {
  position: relative; z-index: 2; min-height: 170px; padding: 22px 28px 14px; border-radius: 16px;
  border: 3px solid #2f3d52; background: linear-gradient(#f2e6c8, #e4d2a6); color: var(--ink, #2a1e10);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6); animation: st-box-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.05) both;
}
.st.has-title .dlg-box { padding-top: 34px; }
/* глава — на ленте над плашкой (концы ленты — по 90 px, js: art.skin ui.chapter_plate; без картинки — алая плашка) */
.st .dlg-title {
  position: absolute; left: 50%; top: -34px; transform: translateX(-50%); box-sizing: border-box; max-width: calc(100% - 40px);
  height: 60px; padding: 0 96px; display: flex; align-items: center; justify-content: center; white-space: nowrap;
  border-radius: 8px; background: linear-gradient(#c4343a, #7a1a1e); border: 0;
  font: 700 24px/1 var(--title); color: #fff3d6; text-shadow: 0 2px 0 #4a0a0a, 0 0 4px rgba(40, 0, 0, 0.9);
}
.st .dlg-title span { overflow: hidden; text-overflow: ellipsis; padding-bottom: 4px; }
.st .dlg-who { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; margin-bottom: 6px; }
.st .dlg-who b { font: 700 30px/1.1 var(--title); color: #7a1a1e; color: color-mix(in srgb, var(--sp, #7a1a1e) 70%, #2a0c08); }
.st .dlg-who span { font-size: 17px; font-style: italic; color: #6a5a40; }
.st-wrap[data-side="r"] .dlg-who { justify-content: flex-end; } /* имя — со стороны говорящего */
.st .dlg-text { margin: 0 0 8px; min-height: calc(3 * 1.45em); font-size: 20px; line-height: 1.45; }
.st .dlg-text.in { animation: st-text-in 0.2s ease-out; }
.st .dlg-text .tw-off { color: transparent; }
.st .dlg-btns { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.st .dlg-skip {
  min-height: 48px; padding: 0 10px; margin-inline-start: -10px; border: 0; background: none; cursor: pointer;
  font: 700 17px/1 var(--sans); color: #6a5236; text-decoration: underline; text-underline-offset: 3px; opacity: 0.85;
}
.st .dlg-n { flex: 1; text-align: center; font: 700 16px/1 var(--sans); color: #8a7656; letter-spacing: 0.05em; }
.st .dlg-next { min-width: 190px; height: 56px; padding: 0 28px; font-size: 24px; border-radius: 14px; }
.st-wrap.typing .dlg-next { opacity: 0.75; } /* печатается: «Дальше» допечатает реплику */
/* говорит — дышит и чуть покачивается, пока печатается реплика (2–3 с, не вечно; только transform картинки) */
.st-wrap.typing .dlg-bust.on .dlg-pic { transform-origin: 50% 100%; animation: st-speak 0.46s ease-in-out infinite alternate; }
@keyframes st-speak { to { transform: translateY(-3px) rotate(-0.6deg) scale(1.008, 0.994); } }

/* стоя: портреты крупно (по 390×520 — четверть высоты экрана), низ — за плашкой; плашка во всю ширину, текст 26 */
body.vertical .dlg.st { width: calc(100% - 20px); margin-bottom: calc(12px + var(--sab, 0px)); }
body.vertical .st .dlg-stage { height: 420px; }
body.vertical .st .dlg-bust { width: 390px; height: 520px; bottom: -124px; }
body.vertical .st .dlg-bust.l { left: -20px; }
body.vertical .st .dlg-bust.r { right: -20px; }
body.vertical .st .dlg-box { min-height: 300px; padding: 26px 28px 16px; border-radius: 20px; }
body.vertical .st.has-title .dlg-box { padding-top: 40px; }
body.vertical .st .dlg-title { top: -36px; height: 64px; font-size: 28px; max-width: calc(100% - 10px); padding: 0 92px; }
body.vertical .st .dlg-who b { font-size: 38px; }
body.vertical .st .dlg-who span { font-size: var(--fs-min); }
body.vertical .st .dlg-text { font-size: var(--fs-body); }
body.vertical .st .dlg-skip { min-height: 64px; font-size: var(--fs-min); }
body.vertical .st .dlg-n { font-size: var(--fs-min); }
body.vertical .st .dlg-next { min-width: 240px; height: 76px; font-size: 30px; border-radius: 16px; }
/* лёжа на телефоне: та же сцена ниже ростом, текст 24 */
body.phone-land .st .dlg-stage { height: 270px; }
body.phone-land .st .dlg-bust { width: 240px; height: 320px; bottom: -76px; }
body.phone-land .st .dlg-box { min-height: 200px; }
body.phone-land .st .dlg-who b { font-size: 32px; }
body.phone-land .st .dlg-who span { font-size: var(--fs-min); }
body.phone-land .st .dlg-text { font-size: var(--fs-body); }
body.phone-land .st .dlg-skip, body.phone-land .st .dlg-n { font-size: var(--fs-min); }
body.phone-land .st .dlg-next { height: 64px; min-width: 210px; font-size: 26px; }
html.kod-still .st-wrap, html.kod-still .st .dlg-box, html.kod-still .st .dlg-text.in,
html.kod-still .st .dlg-bust, html.kod-still .st .dlg-pic { animation: none !important; transition: none; }

/* лёжа на телефоне: диалог хозяина зала (js/hallkeep.js) и подписи — не мельче --fs-min */
body.phone-land .dlg-who span { font-size: var(--fs-min); }
body.phone-land .dlg-text { font-size: var(--fs-body); }

/* ——— Летопись (js/story.js openChronicle; аудит 07.11 zamok-05, zamok-17): вместо строк текста — картинки. Главы —
   карточки с залом, который глава поднимает из руин, и рассказчиком по пояс; письма — лица тех, кто пишет, и печать
   «не прочитано»; герои — портреты сеткой. Длинный текст — по касанию (окно-карточка). Карточки входят по очереди
   (одна разовая анимация на карточку, --d — задержка) ——— */
.chr-tabs { margin-bottom: 12px; }
/* вкладки: значок и слово; у «Писем» — сколько не прочитано */
.chr-tabs .q-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.chr-tic { display: flex; flex: none; }
.chr-tic :is(svg, img) { width: 30px; height: 30px; }
.chr-tbadge { position: absolute; top: -8px; right: -6px; min-width: 26px; height: 26px; padding: 0 6px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; border-radius: 13px; background: #d63a34; border: 2px solid #fff;
  font: 700 15px/1 var(--sans); color: #fff; }
.chr-body { display: flex; flex-direction: column; gap: 14px; }
@keyframes chr-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
@keyframes chr-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* шапка вкладки: лицо летописца, сколько открыто — числом и полосой */
.chr-head { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-radius: 16px;
  background: linear-gradient(#f4ead2, #e3d2ab); border: 2px solid #b48c4a; box-shadow: 0 3px 8px rgba(40, 28, 10, 0.25); }
.chr-hd { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
.chr-cap { font-style: normal; font: 700 18px/1.15 var(--title); color: #6a4a1c; }
.chr-hd b { font: 700 24px/1 var(--sans); color: #3a2408; }
.chr-bar { grid-column: 1 / -1; display: block; height: 12px; border-radius: 6px; background: rgba(60, 40, 10, 0.18); overflow: hidden; }
.chr-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(#ffe08a, #e0a12a); }
/* лицо: круг с бюстом npc.* (голова крупно), рамка — цвет говорящего */
.chr-face { position: relative; flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, var(--sp, #6a5030), #1a1410); border: 3px solid #c9963f;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35); display: flex; align-items: center; justify-content: center; }
.chr-face.big { width: 88px; height: 88px; }
.chr-face .chr-fpic { position: absolute; left: 50%; top: 0; width: 190%; height: auto; max-width: none; transform: translateX(-50%); }

/* карточка главы */
.chr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chr-card {
  position: relative; display: block; height: 230px; padding: 0; overflow: hidden; border-radius: 18px; cursor: pointer;
  border: 3px solid #4a5568; background: #1c222c; color: #fff; text-align: start; font: inherit;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); animation: chr-in 0.38s cubic-bezier(0.2, 0.8, 0.3, 1) var(--d, 0ms) both;
  -webkit-tap-highlight-color: transparent;
}
.chr-card .chr-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.chr-card .chr-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 16, 0.78) 0%, rgba(8, 10, 16, 0.42) 46%, rgba(8, 10, 16, 0) 72%),
    linear-gradient(0deg, rgba(8, 10, 16, 0.7) 0%, rgba(8, 10, 16, 0) 42%); }
.chr-card .chr-bust { position: absolute; right: 2%; bottom: -6%; height: 112%; width: auto; max-width: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); transform-origin: 50% 100%; }
.chr-num { position: absolute; left: 16px; top: 14px; padding: 5px 14px; border-radius: 999px;
  background: rgba(10, 12, 18, 0.72); border: 2px solid #c9963f; font: 700 20px/1.1 var(--title); color: #ffe39a; }
.chr-ttl { position: absolute; left: 18px; bottom: 58px; max-width: 58%; font: 700 30px/1.1 var(--title); color: #fff3d6;
  text-shadow: 0 2px 0 #1a0c04, 0 0 8px rgba(0, 0, 0, 0.85); }
.chr-go { position: absolute; left: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 12px; background: linear-gradient(#ffd96a, #e0a12a); color: #3a2408; font: 700 18px/1 var(--sans);
  box-shadow: 0 3px 0 rgba(60, 30, 0, 0.5); }
.chr-go :is(svg, img) { width: 24px; height: 24px; }
.chr-now { position: absolute; left: 16px; bottom: 16px; padding: 7px 16px; border-radius: 999px; background: rgba(28, 96, 52, 0.9);
  border: 2px solid #8fe0a0; font: 700 18px/1 var(--sans); color: #eaffef; }
.chr-lk { position: absolute; left: 16px; bottom: 12px; display: flex; }
.chr-lk :is(img, svg) { width: 52px; height: 52px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.chr-card.open { border-color: #c9963f; }
.chr-card.open:active { transform: scale(0.98); }
.chr-card.open:active .chr-bg { transform: scale(1.04); }
.chr-card.now { border-color: #8fe0a0; box-shadow: 0 0 0 3px rgba(143, 224, 160, 0.35), 0 6px 14px rgba(0, 0, 0, 0.35); }
.chr-card.now .chr-bg { filter: saturate(0.85) brightness(0.8); }
.chr-card.locked { cursor: default; }
.chr-card.locked .chr-bg { filter: grayscale(0.45) sepia(0.2) brightness(0.8); } /* руины видны, но в сумерках */
.chr-card.locked .chr-bust { filter: brightness(0.08) drop-shadow(0 0 2px rgba(255, 220, 150, 0.75)); opacity: 0.85; }
.chr-card.locked .chr-num { color: #c9c1b0; border-color: #7a7468; }
.chr-card.shake { animation: chr-shake 0.4s ease-in-out; }

/* письма: лицо, заголовок и кто пишет; непрочитанное — с печатью */
.chr-letters { display: flex; flex-direction: column; gap: 12px; }
.chr-letter {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 16px; border-radius: 16px; cursor: pointer; text-align: start;
  border: 2px solid #b48c4a; background: linear-gradient(#f7eed8, #e8d8b2); color: #2a1e10; font: inherit;
  box-shadow: 0 3px 8px rgba(40, 28, 10, 0.25); animation: chr-in 0.35s cubic-bezier(0.2, 0.8, 0.3, 1) var(--d, 0ms) both;
}
.chr-letter:active { transform: scale(0.98); }
.chr-lt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.chr-lt b { font: 700 22px/1.2 var(--sans); }
.chr-lt i { font-size: 17px; color: #6a5236; }
.chr-letter:not(.unread) .chr-lt b { font-weight: 400; }
.chr-seal, .chr-open { flex: none; display: flex; }
.chr-seal :is(img, svg) { width: 44px; height: 44px; filter: drop-shadow(0 2px 3px rgba(80, 0, 0, 0.4)); }
.chr-open :is(svg, img) { width: 30px; height: 30px; opacity: 0.55; }
.chr-letter.unread { box-shadow: 0 0 0 3px rgba(201, 150, 63, 0.45), 0 3px 8px rgba(40, 28, 10, 0.25); }

/* герои: портреты сеткой, огоньки — открытые главы истории */
.chr-heroes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.chr-hero {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 8px 10px; border-radius: 16px; cursor: pointer;
  border: 2px solid #b48c4a; background: linear-gradient(#f4ead2, #e3d2ab); color: #2a1e10; font: inherit;
  animation: chr-in 0.35s cubic-bezier(0.2, 0.8, 0.3, 1) var(--d, 0ms) both;
}
.chr-hero:active { transform: scale(0.97); }
.chr-hpic { position: relative; display: block; width: 100%; aspect-ratio: 192 / 264; border-radius: 12px; overflow: hidden; background: #2a2f38; }
.chr-hpic .chr-hp { width: 100%; height: 100%; object-fit: cover; display: block; }
.chr-hpic .chr-lk { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); }
.chr-hero b { font: 700 18px/1.15 var(--sans); text-align: center; overflow-wrap: anywhere; }
.chr-dots { display: flex; gap: 5px; }
.chr-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(60, 40, 10, 0.22); }
.chr-dots i.on { background: radial-gradient(circle at 40% 35%, #fff3b8, #e0a12a 70%); box-shadow: 0 0 5px rgba(255, 190, 70, 0.8); }
.chr-hero.locked { cursor: default; }
.chr-hero.locked .chr-hp { filter: grayscale(1) brightness(0.55); }

/* окно записи: зал после главы и рассказчик, название, текст; письмо — лицо, текст, подпись; история героя */
.chr-read { display: flex; flex-direction: column; gap: 12px; }
.chr-rpic { position: relative; height: 280px; border-radius: 16px; overflow: hidden; background: #1c222c; }
.chr-rpic .chr-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chr-rpic .chr-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 16, 0.55), rgba(8, 10, 16, 0) 45%); }
.chr-rpic .chr-bust { position: absolute; right: 4%; bottom: -8%; height: 116%; width: auto; max-width: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }
.chr-rt { margin: 6px 0 0; font: 700 28px/1.15 var(--title); color: var(--w-accent, #7a4c14); }
.chr-rx { margin: 0; font-size: 19px; line-height: 1.5; color: var(--w-hi, #16202c); }
.chr-paper { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-items: start; }
.chr-paper .chr-face { grid-row: span 2; }
.chr-sign { margin: 4px 0 0; text-align: end; font: italic 700 19px/1.2 var(--title); color: #6a4a1c; }
.chr-hread { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.chr-hpic.big { width: 200px; }
.chr-hch { display: flex; flex-direction: column; gap: 8px; }

/* стоя: одна карточка главы в ряд, крупно (высота 300), шапка и письма крупнее, герои — по три в ряд */
body.vertical .chr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
body.vertical .chr-card { grid-column: 1 / -1; height: 300px; border-radius: 20px; }
/* закрытые главы стоя — плитками по две в ряд: пройденная и идущая — крупно во всю ширину, впереди — галерея руин */
body.vertical .chr-card.locked { grid-column: auto; height: 230px; }
body.vertical .chr-card.locked .chr-bust { right: -8%; height: 104%; }
body.vertical .chr-card.locked .chr-num { left: 14px; top: 14px; font-size: 24px; padding: 5px 14px; }
body.vertical .chr-num { left: 20px; top: 18px; font-size: 26px; padding: 6px 18px; }
body.vertical .chr-ttl { left: 22px; bottom: 76px; font-size: 40px; }
body.vertical .chr-go { left: 20px; bottom: 18px; height: 56px; padding: 0 22px; font-size: var(--fs-sub); border-radius: 14px; }
body.vertical .chr-go :is(svg, img) { width: 30px; height: 30px; }
body.vertical .chr-now { left: 20px; bottom: 20px; font-size: var(--fs-sub); padding: 9px 20px; }
body.vertical .chr-lk :is(img, svg) { width: 68px; height: 68px; }
body.vertical .chr-head { padding: 12px 18px; gap: 18px; }
body.vertical .chr-face { width: 96px; height: 96px; }
body.vertical .chr-face.big { width: 112px; height: 112px; }
body.vertical .chr-cap { font-size: var(--fs-sub); }
body.vertical .chr-hd b { font-size: 34px; }
body.vertical .chr-bar { height: 16px; border-radius: 8px; }
body.vertical .chr-letter { padding: 14px 18px; gap: 18px; border-radius: 18px; }
body.vertical .chr-lt b { font-size: var(--fs-list); }
body.vertical .chr-lt i { font-size: var(--fs-sub); }
body.vertical .chr-seal :is(img, svg) { width: 60px; height: 60px; }
body.vertical .chr-heroes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.vertical .chr-hero b { font-size: var(--fs-sub); }
body.vertical .chr-dots i { width: 16px; height: 16px; }
body.vertical .chr-rpic { height: 360px; }
body.vertical .chr-rt { font-size: 36px; }
body.vertical .chr-rx { font-size: var(--fs-body); }
body.vertical .chr-sign { font-size: var(--fs-sub); }
body.vertical .chr-hread { grid-template-columns: minmax(0, 1fr); justify-items: center; }
body.vertical .chr-hpic.big { width: 280px; }
/* лёжа на телефоне (сцена около 0,57): подписи не мельче --fs-min */
body.phone-land .chr-card { height: 250px; }
body.phone-land .chr-num, body.phone-land .chr-go, body.phone-land .chr-now { font-size: var(--fs-sub); }
body.phone-land .chr-ttl { font-size: 34px; }
body.phone-land .chr-cap { font-size: var(--fs-sub); }
body.phone-land .chr-lt b { font-size: var(--fs-list); }
body.phone-land .chr-lt i, body.phone-land .chr-hero b { font-size: var(--fs-sub); }
body.phone-land .chr-rx { font-size: var(--fs-body); }
body.phone-land .chr-sign { font-size: var(--fs-sub); }
html.kod-still .chr-card, html.kod-still .chr-letter, html.kod-still .chr-hero { animation: none; }

