:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #f8f5f3;
  --muted: #c8c1c6;
  --accent: #f5b7a6;
  --red: #c8321e;
  --violet: #b99cf0;
  --panel: rgba(18, 19, 27, .9);
  --line: rgba(255, 255, 255, .16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at top, #36303b, #171923 72%);
  color: var(--ink);
}
button { font: inherit; color: inherit; }
button:disabled { opacity: .4; cursor: default; }

.game {
  position: relative;
  width: min(1600px, 100vw);
  height: 100svh;
  padding: clamp(0px, 1.2vw, 14px);
}
.screen {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: #221d28;
  box-shadow: 0 28px 90px rgba(0,0,0,.46);
  animation: screen-in .35s ease both;
}
@keyframes screen-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- чиби-фигурки ---------- */
.chibi-slot { width: clamp(120px, 20vh, 190px); aspect-ratio: 1; flex: none; }
.chibi-slot--small { width: clamp(52px, 9vh, 76px); }
.chibi-slot--panel { width: clamp(84px, 14vh, 120px); margin: 0 auto; }
.chibi { position: relative; width: 100%; height: 100%; }
.chibi img, .chibi video, .chibi svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.chibi--placeholder svg { filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); animation: chibi-bob 2.4s ease-in-out infinite; }
.chibi-prop { position: absolute; right: 0; bottom: 6%; line-height: 1; }
.chibi-slot .chibi-prop { font-size: clamp(16px, 3.4vh, 34px); }
.chibi-slot--small .chibi-prop { font-size: 18px; }
.chibi--loading.chibi--placeholder svg { animation: chibi-run .5s ease-in-out infinite; }
.chibi--menu-idle.chibi--placeholder svg { animation-duration: 3.2s; }
@keyframes chibi-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5%); } }
@keyframes chibi-run { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-7%) rotate(4deg); } }

/* ---------- загрузка ---------- */
.screen--loading { display: grid; place-content: center; justify-items: center; gap: 16px; }
.loading-line { margin: 0; color: var(--muted); font-size: 14px; }
.progress { width: min(320px, 60vw); height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--accent)); transition: width .2s ease; }

/* ---------- главное меню ---------- */
.screen--title { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; padding: clamp(20px, 6vw, 90px); gap: 24px; }
.title-backdrop { position: absolute; z-index: -1; inset: -20px; background-size: cover; background-position: center; filter: blur(10px) brightness(.42) saturate(1.1); }
.title-tag { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.title-name { margin: 0; font-size: clamp(34px, 6vw, 76px); line-height: 1.02; letter-spacing: -.02em; }
.title-episode { margin: 14px 0 26px; color: var(--muted); font-size: clamp(15px, 1.8vw, 20px); }
.menu { display: grid; gap: 9px; width: min(320px, 100%); }
.menu--row { grid-auto-flow: column; width: auto; }
.menu-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20,20,27,.55);
  backdrop-filter: blur(10px);
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
}
.menu-button--primary { border-color: transparent; color: #241a1c; background: var(--accent); }
.menu-button:not(:disabled):hover, .menu-button:focus-visible { transform: translateX(4px); border-color: var(--accent); outline: none; }
.menu-button:focus-visible, .icon-button:focus-visible, .quick-button:focus-visible, .slot-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.title-mascot { position: relative; display: grid; justify-items: center; cursor: pointer; }
.title-mascot .chibi-slot { width: clamp(180px, 46vh, 420px); }
.mascot-bubble {
  position: absolute;
  top: 4%;
  right: 8%;
  margin: 0;
  padding: 9px 15px;
  border-radius: 16px 16px 16px 4px;
  color: #241a1c;
  background: #fff6f1;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

/* ---------- сцена ---------- */
.stage { background: #5c4a50; }
.backdrop { position: absolute; z-index: -3; inset: 0; background-size: cover; background-position: center; transform: scale(1.015); transition: background-position .8s ease; }
.backdrop--next { opacity: 0; transition: opacity .36s ease; }
.backdrop--next.is-visible { opacity: 1; }
.cg { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: screen-in .4s ease both; }
.scene-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,17,24,.42) 0%, transparent 26%, transparent 48%, rgba(13,14,21,.22) 69%, rgba(11,12,18,.76) 100%);
}
.scene-heading { position: absolute; z-index: 3; inset: 18px 20px auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chapter-tag, .location-tag, .counter-chip {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(18,19,27,.5);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 800;
}
.chapter-tag { letter-spacing: .11em; text-transform: uppercase; }
.location-tag { color: #fff1e8; }
.counter-chip { margin-left: auto; border-color: rgba(245,183,166,.5); color: var(--accent); }
.icon-button {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: rgba(20,20,27,.55);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 16px;
}
.counter-chip ~ .counter-chip { margin-left: 0; }
.counter-chip--fund { border-color: rgba(190,160,255,.5); color: var(--violet); }
.counter-chip--fund[hidden] + .counter-chip { margin-left: auto; }
.counter-chip--fund[hidden] + .counter-chip[hidden] + .icon-button { margin-left: auto; }

.character-layer { position: absolute; z-index: 0; inset: 0; pointer-events: none; }
.character {
  position: absolute;
  bottom: 0;
  height: 91%;
  max-width: 43%;
  object-fit: contain;
  object-position: bottom center;
  user-select: none;
  transform: translateX(-50%) scale(.98);
  transition: transform .22s ease, filter .22s ease;
  animation: character-in .3s ease both;
}
@keyframes character-in { from { opacity: 0; } to { opacity: 1; } }
.character--center { left: 50%; }
.character--left { left: 34%; }
.character--right { left: 68%; }
.character--far-left { left: 21%; }
.character--far-right { left: 79%; }
.character-layer.is-behind-prop { opacity: 0; }

/* ---------- кот в сцене: стоит на поверхности фона ---------- */
.cat-figure {
  position: absolute;
  z-index: 0;
  width: auto;
  max-width: 40%;
  object-fit: contain;
  object-position: bottom center;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 14px rgba(10,8,14,.45));
  animation: character-in .3s ease both;
  pointer-events: none;
}

/* ---------- предмет крупным планом ---------- */
.prop {
  position: absolute;
  z-index: 1;
  top: 11%;
  left: 50%;
  width: min(46vh, 60%);
  margin: 0;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 32px rgba(8,8,14,.55));
  pointer-events: none;
  /* Шрифты надписей заданы в cqw — долях ширины записки, чтобы надпись не вылезала за лист на узком экране. */
  container-type: inline-size;
}
.prop img { display: block; width: 100%; max-height: 54vh; object-fit: contain; }
.prop-note {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 12%;
  text-align: center;
  line-height: 1.05;
  transform: rotate(-4deg);
}
.prop-note--marker { top: 33%; bottom: auto; left: 2%; right: 2%; color: #15131a; font: 900 clamp(9px, 5.4cqw, 24px) "Comic Sans MS", "Segoe Print", cursive; white-space: nowrap; text-shadow: 0 0 1px #15131a, 0 0 6px rgba(255,236,214,.9), 0 0 3px rgba(255,236,214,.9); }
.prop-note--screenshot { top: 22%; bottom: auto; left: 16%; right: 16%; padding: 6% 4%; border-radius: 6px; background: #1d1a2a; color: #efe9ff; font: 700 clamp(11px, 6.5cqw, 28px) system-ui, sans-serif; transform: none; box-shadow: inset 0 0 0 1px rgba(185,156,240,.4); }
/* Табличка на картинке рамки занимает 80–90% высоты и 34–65% ширины; надпись встаёт по её центру. */
.prop-plaque { position: absolute; top: 80.5%; height: 9%; left: 36%; right: 36%; display: flex; align-items: center; justify-content: center; color: #4a3410; font: 700 clamp(5px, 2.1cqw, 11px) Georgia, serif; text-align: center; line-height: 1.05; }
.prop-note--pen { bottom: 30%; color: #2742a8; font: 600 clamp(10px, 5.2cqw, 22px) "Segoe Print", "Comic Sans MS", cursive; transform: rotate(-2deg); }
.character.is-listening { z-index: 1; filter: drop-shadow(0 8px 18px rgba(16,12,20,.26)) brightness(.9); }
.character.is-speaking { z-index: 2; transform: translateX(-50%) scale(1.035); filter: drop-shadow(0 14px 26px rgba(16,12,20,.42)); }

/* ---------- лента чата стрима ---------- */
.chat-feed {
  position: absolute;
  z-index: 2;
  top: 74px;
  right: 20px;
  width: min(330px, 34vw);
  padding: 12px 14px;
  border: 1px solid rgba(185,156,240,.38);
  border-radius: 14px;
  background: rgba(22,18,32,.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.chat-feed-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--violet); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5b5b; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .3; } }
.chat-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.chat-message { font-size: 13px; line-height: 1.4; opacity: .62; overflow-wrap: anywhere; }
.chat-message.is-new { opacity: 1; animation: chat-in .25s ease both; }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } }
.chat-nick { margin-right: 6px; font-weight: 800; }
.chat-nick::after { content: ":"; }

/* ---------- всплывающее событие ---------- */
.popup {
  position: absolute;
  z-index: 4;
  top: 74px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(360px, 80vw);
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(245,183,166,.5);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(0,0,0,.34);
  animation: popup-in .3s cubic-bezier(.2,1.2,.4,1) both;
}
@keyframes popup-in { from { opacity: 0; transform: translateX(-18px) scale(.96); } }
.popup-body { display: grid; gap: 2px; font-size: 14px; }
.popup-item { width: 64px; height: 64px; object-fit: contain; flex: none; }
.popup-label { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.popup-note { color: var(--muted); font-size: 12px; }

/* ---------- окно реплики ---------- */
.dialogue {
  position: absolute;
  z-index: 3;
  right: clamp(12px, 5vw, 72px);
  bottom: clamp(12px, 3vh, 30px);
  left: clamp(12px, 5vw, 72px);
  max-height: min(46vh, 360px);
  overflow-y: auto;
  padding: 17px 22px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18, 19, 27, .6);
  box-shadow: 0 14px 45px rgba(0,0,0,.24);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.dialogue--chat { border-color: rgba(185,156,240,.4); }
.dialogue--chat .speaker { color: var(--violet); }
.speaker { margin-bottom: 7px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.dialogue-text { min-height: 3.1em; margin: 0; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.55; white-space: pre-line; text-shadow: 0 1px 4px rgba(0,0,0,.65); }
.choice-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.choices { display: grid; flex: 1; gap: 8px; }
.choice-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid rgba(245,183,166,.35);
  border-radius: 10px;
  background: rgba(255,255,255,.065);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  transition: background .15s, border-color .15s, transform .15s;
  animation: chat-in .25s ease both;
}
.choice-button:nth-child(2) { animation-delay: .06s; }
.choice-button:nth-child(3) { animation-delay: .12s; }
.choice-button:hover, .choice-button:focus-visible { outline: none; border-color: var(--accent); background: rgba(245,183,166,.17); transform: translateX(3px); }
.choice-number { display: inline-grid; flex: none; width: 22px; height: 22px; margin-right: 10px; place-items: center; border-radius: 7px; color: #1d1920; background: var(--accent); font-size: 11px; font-weight: 800; }
.dialogue-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.quick-controls { display: flex; gap: 4px; }
.quick-button { min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; color: var(--muted); background: none; cursor: pointer; font-size: 12px; }
.quick-button:not(:disabled):hover { color: var(--ink); background: rgba(255,255,255,.08); }
.continue-button { min-height: 32px; padding: 0 6px; border: 0; color: var(--accent); background: none; cursor: pointer; font-size: 13px; font-weight: 800; }
.continue-button span { display: inline-block; animation: nudge 1.1s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* ---------- конец эпизода ---------- */
.screen--end { display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.end-title { margin: 6px 0 0; font-size: clamp(24px, 4vw, 40px); }
.end-note { margin: 0; font-weight: 700; }
.end-note:empty { display: none; }
.end-summary { margin: 0 0 12px; color: var(--muted); }

/* ---------- окна ---------- */
.overlay { position: absolute; z-index: 10; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(8,8,12,.62); backdrop-filter: blur(4px); animation: screen-in .2s ease both; }
.panel { display: flex; flex-direction: column; width: min(520px, 100%); max-height: min(86svh, 720px); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.panel-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px 20px; }
.panel-header h2 { margin: 0; font-size: 18px; }
.panel-body { display: grid; gap: 14px; overflow-y: auto; padding: 4px 20px 20px; }
.panel-body .menu { width: 100%; }
.slot-list { display: grid; gap: 8px; }
.slot-button { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.05); text-align: left; cursor: pointer; }
.slot-button:not(:disabled):hover { border-color: var(--accent); }
.slot-meta { color: var(--muted); font-size: 12px; }
.slot-excerpt { color: var(--muted); font-size: 12px; font-style: italic; }
.log-list { display: grid; gap: 10px; max-height: 60svh; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.log-entry { display: grid; gap: 2px; font-size: 14px; line-height: 1.5; }
.log-speaker { color: var(--accent); font-size: 12px; font-weight: 800; }
.log-entry--chat .log-speaker { color: var(--violet); }
.setting-row { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; }
.setting-row > span:first-child { flex: 1; }
.setting-value { width: 70px; color: var(--muted); font-size: 12px; text-align: right; }
.setting-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
.setting-row input[type="range"] { accent-color: var(--accent); }
.wardrobe-header { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.wardrobe-header .chibi-slot { margin: 0; }
.wardrobe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wardrobe-card { display: grid; justify-items: center; gap: 4px; padding: 16px 10px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; font-size: 13px; }
.wardrobe-card.is-open { border-style: solid; border-color: var(--accent); background: rgba(245,183,166,.08); }
.wardrobe-card img { width: 100%; border-radius: 10px; }
.wardrobe-lock { font-size: 28px; }
.wardrobe-route { color: var(--muted); font-size: 11px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 20; padding: 10px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: #211d27; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  .game { padding: 0; }
  .screen { border: 0; border-radius: 0; }
  .screen--title { grid-template-columns: 1fr; align-content: center; padding: 24px; }
  .title-mascot { order: -1; }
  .title-mascot .chibi-slot { width: clamp(120px, 24vh, 200px); }
  .mascot-bubble { right: 14%; }
  .menu { width: 100%; }
  .scene-heading { inset: 12px 12px auto; flex-wrap: nowrap; gap: 6px; }
  .location-tag, .counter-chip { padding: 6px 9px; font-size: 10px; white-space: nowrap; }
  .location-tag { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .counter-chip, .icon-button { flex-shrink: 0; }
  .chip-label { display: none; }
  .chapter-tag { display: none; }
  /* Герои того же роста относительно комнаты, что и на компьютере: фон заполняет экран по высоте.
     Спрайт шире экрана — края уходят за экран, срез по бедру закрывает окно текста.
     Места раздаются поровну по порядку слева направо; чем больше героев, тем они ниже,
     а говорящий выходит вперёд и становится крупнее, остальные темнеют. */
  .character { height: 80%; max-width: none; left: calc((var(--slot, 0) + .5) / var(--count, 1) * 100%); transform-origin: bottom center; }
  [data-count="2"] .character { height: 76%; left: calc(27% + var(--slot) * 46%); }
  [data-count="3"] .character { height: 66%; left: calc(15% + var(--slot) * 35%); }
  [data-count="4"] .character { height: 58%; left: calc(11% + var(--slot) * 26%); }
  .has-speaker .character.is-listening { filter: brightness(.7); }
  [data-count="3"] .character.is-speaking, [data-count="4"] .character.is-speaking { transform: translateX(-50%) scale(1.16); }
  [data-count="3"] .character.is-speaking { left: clamp(22%, calc(15% + var(--slot) * 35%), 78%); }
  [data-count="4"] .character.is-speaking { left: clamp(19%, calc(11% + var(--slot) * 26%), 81%); }
  .chat-feed { top: 100px; right: 12px; left: 12px; width: auto; }
  .chat-message:not(:nth-last-child(-n + 3)) { display: none; }
  .popup { top: 100px; left: 12px; }
  .dialogue { padding: 14px 14px 10px; max-height: 52svh; }
  .choice-row .chibi-slot { display: none; }
  .menu--row { grid-auto-flow: row; width: 100%; }
  .prop { width: min(46vh, 80%); }
  .toast { width: max-content; max-width: calc(100vw - 32px); text-align: center; }
}

/* Вертикальный экран: иллюстрация 16:9 показывается целиком полосой между шапкой и окном текста, а не обрезается по бокам.
   Тёмное поле вокруг закрывает фон локации. */
@media (max-aspect-ratio: 4/5) {
  .cg { object-fit: contain; object-position: center 38%; background: #0f0e14; }
}

/* Телефон в альбомной ориентации: экран низкий (350–430 px), поэтому всё плотнее.
   Меню — в две колонки, окно текста тоньше, варианты ответов компактнее, чтобы три влезали без прокрутки.
   Стоит после правил для узкого экрана и перекрывает их, когда телефон повёрнут. */
@media (orientation: landscape) and (max-height: 520px) {
  .screen--title { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-content: center; padding: 10px 28px; gap: 14px; }
  .title-mascot { order: 0; }
  .title-mascot .chibi-slot { width: clamp(110px, 52vh, 210px); }
  .title-tag { margin-bottom: 4px; font-size: 9px; }
  .title-name { font-size: clamp(24px, 9vh, 40px); }
  .title-episode { margin: 4px 0 10px; font-size: 12px; }
  .menu { grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
  .menu .menu-button--primary { grid-column: 1 / -1; }
  .menu-button { min-height: 36px; padding: 6px 12px; font-size: 13px; }
  .scene-heading { inset: 8px 12px auto; }
  .location-tag, .counter-chip { padding: 5px 9px; font-size: 10px; }
  .dialogue { right: 12px; bottom: 8px; left: 12px; max-height: 64svh; padding: 8px 14px 4px; border-radius: 12px; }
  .speaker { margin-bottom: 2px; font-size: 12px; }
  .dialogue-text { min-height: 2.6em; font-size: 14px; line-height: 1.4; }
  .choice-row { margin-top: 6px; }
  .choices { gap: 5px; }
  .choice-button { min-height: 34px; padding: 5px 10px; font-size: 13px; line-height: 1.3; }
  .choice-number { width: 20px; height: 20px; margin-right: 8px; }
  .dialogue-footer { margin-top: 2px; }
  .quick-button { min-height: 28px; }
  .chat-feed { top: 44px; right: 12px; left: auto; width: min(300px, 38vw); padding: 8px 10px; }
  .chat-message:not(:nth-last-child(-n + 3)) { display: none; }
  .popup { top: 44px; left: 12px; }
  .prop { top: 12%; width: min(52vh, 46%); }
  .prop img { max-height: 50vh; }
  /* Иллюстрация 16:9 на экране шире 16:9: срезаются верх и низ, лица Крис выше середины — держим верх. */
  .cg { object-position: center 28%; }
  /* Герои: комната занимает всю высоту, окно текста перекрывает ноги; говорящий крупнее остальных. */
  .character { height: 86%; }
  [data-count="2"] .character { height: 82%; }
  [data-count="3"] .character { height: 74%; }
  [data-count="4"] .character { height: 66%; }
}

/* ---------- без анимаций ---------- */
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
