:root {
  --bg: #0d0e12;
  --panel: #15171e;
  --panel-2: #1e212b;
  --line: #2b2f3b;
  --ink: #f3efe6;
  --muted: #a8a59d;
  --accent: #f2b45d;
  --accent-ink: #1b1305;
  --danger: #e26d5c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "PT Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 22px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #07080a; color: var(--ink); font-family: var(--sans); overscroll-behavior: none; }
#app { height: 100dvh; display: flex; justify-content: center; align-items: stretch; }
.app { position: relative; width: 100%; max-width: 480px; height: 100%; background: var(--bg); overflow: hidden; }
@media (min-width: 560px) and (min-height: 700px) {
  #app { align-items: center; }
  .app { height: min(100dvh, 900px); border-radius: 28px; box-shadow: 0 30px 80px #000a; border: 1px solid var(--line); }
}
button { font: inherit; color: inherit; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.screen.center { align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 14px; }
.screen-enter { animation: enter .28s ease both; }
@keyframes enter { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* Медиа сверху */
.stage-host { position: relative; flex: 1 1 0; min-height: 96px; overflow: hidden; }
.stage { position: absolute; inset: 0; }
.stage.enter { animation: fade .4s ease both; }
.stage.leave { animation: fadeout .4s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeout { to { opacity: 0; } }
.stage-fill { position: absolute; inset: 0; background: var(--poster, none) center / cover no-repeat, radial-gradient(120% 90% at 30% 10%, #2a3350 0%, #161a29 55%, #0f1119 100%); }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.stage-img.on { opacity: 1; }
/* Незагруженная картинка или ролик: не видно и не ловит касания (на телефонах браузер рисует на его месте светлую плашку со значком) */
.stage-img:not(.on) { visibility: hidden; pointer-events: none; }
.stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 28%; background: linear-gradient(transparent, #0d0e12cc); pointer-events: none; }
.stage-link { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.stage-portrait.big { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; z-index: 1; }
.stage-portrait-name { font-family: var(--serif); font-size: 20px; }
.stage-portrait.badge { position: absolute; left: 14px; bottom: 38px; z-index: 2; }
.avatar { position: relative; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: linear-gradient(145deg, #3a4468, #232842); border: 2px solid #ffffff22; flex: none; color: #fff; font-family: var(--serif); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.md { width: 52px; height: 52px; font-size: 22px; }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }
.avatar.xl { width: min(34vw, 150px); height: min(34vw, 150px); font-size: 56px; }

/* Верхняя панель сцены */
.bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 10px 18px; background: linear-gradient(#000a, transparent); }
.crumb { flex: 1; text-align: center; font-size: 13px; color: #fffc; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #0007; color: var(--ink); cursor: pointer; }
.icon-btn[hidden] { display: none; }
.icon-btn:focus-visible, .btn:focus-visible, .choice:focus-visible, .act-row:focus-visible, .node:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.settings-btn { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 10px; z-index: 3; }
.event-chip { position: absolute; z-index: 4; top: calc(56px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); max-width: 90%; background: #000b; border: 1px solid #f2b45d66; color: var(--accent); padding: 5px 12px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-chip[hidden] { display: none; }

/* Нижняя панель с текстом */
.sheet { flex: 0 1 auto; max-height: 62%; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--panel); border-radius: var(--r) var(--r) 0 0; margin-top: -18px; position: relative; z-index: 3; box-shadow: 0 -10px 30px #0008; }
.text { flex: 0 1 auto; min-height: 0; overflow: hidden; font-family: var(--serif); font-size: 21px; line-height: 1.38; white-space: pre-line; }
.text.swap { animation: txt .3s ease both; }
@keyframes txt { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sheet.no-text .text { display: none; }
.hint { color: var(--muted); font-size: 12.5px; text-align: center; display: flex; justify-content: center; }
.hint[hidden], .choices[hidden] { display: none; }
.choices { display: flex; flex-direction: column; gap: 8px; flex: none; }
.choice { text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-family: var(--sans); font-size: var(--choice-size, 17px); line-height: 1.25; cursor: pointer; transition: background .15s, border-color .15s; }
.choice:hover, .choice:active { background: #272b38; border-color: var(--accent); }

/* Карточки: меню, выбор героя, итоги */
.card .stage-host { flex: 1 1 0; }
.card-sheet { max-height: 80%; margin-top: -18px; }
.card:not(:has(.stage-host:not([hidden]))) .card-sheet { flex: 1 1 auto; max-height: none; margin: 0; border-radius: 0; padding-top: calc(28px + env(safe-area-inset-top)); box-shadow: none; }
.card:not(:has(.stage-host:not([hidden]))) .card-sheet { justify-content: center; }
.kicker { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.kicker.pad { padding: calc(18px + env(safe-area-inset-top)) 20px 6px; }
.title { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.12; font-weight: 600; }
.title:empty { display: none; }
.lead { margin: 0; color: #dcd8cf; font-size: 16px; line-height: 1.4; font-family: var(--serif); min-height: 0; overflow: hidden; }
.lead:empty { display: none; }
.btn { border: 0; border-radius: 14px; padding: 14px 20px; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; text-align: center; display: inline-block; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid #e26d5c66; }
.foot { display: flex; flex-direction: column; }
.foot .btn { width: 100%; }
.acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.act-row { width: 100%; display: grid; grid-template-columns: 26px 1fr auto 26px; align-items: center; gap: 8px; text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; cursor: pointer; }
.act-row:disabled { opacity: .45; cursor: default; }
.act.open .act-row, .act.started .act-row { border-color: var(--accent); }
.act-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.act-s { color: var(--muted); font-size: 13px; }
.act-mark { display: grid; place-items: center; color: var(--accent); }
.act-mark svg { width: 18px; height: 18px; }
.act.locked .act-mark { color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 12px; }
.pager:empty { display: none; }

/* Карта персонажей */
.map { position: relative; flex: 1; min-height: 0; }
.map-edges, .map-nodes { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-edges { color: #8a8f9f; }
.edge { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .8; }
.edge-label { font-size: 11px; fill: #cfcbc2; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; font-family: var(--sans); }
.node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; width: 84px; margin-left: 0; }
button.node { cursor: pointer; }
.node-name { font-size: 12.5px; text-align: center; line-height: 1.1; max-width: 84px; text-shadow: 0 1px 3px #000; }
.node.sel .avatar { border-color: var(--accent); box-shadow: 0 0 0 3px #f2b45d55; }
.node.crossed { opacity: .65; }
.node.crossed .avatar { filter: grayscale(1) brightness(.7); }
.node.crossed .node-name { text-decoration: line-through; }
.node .cross { position: absolute; top: calc(var(--r) - 1px); left: 50%; width: calc(var(--r) * 2.2); height: 3px; background: var(--danger); border-radius: 2px; transform: translate(-50%, -50%) rotate(-40deg); }
.thought { position: absolute; left: 14px; right: 14px; bottom: 8px; z-index: 8; background: var(--panel-2); border: 1px solid var(--accent); border-radius: 16px; padding: 12px 14px; font-family: var(--serif); font-size: 16px; line-height: 1.3; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 10px 30px #000a; }
.thought.top { bottom: auto; top: 44px; }
.thought[hidden] { display: none; }
.thought b { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* Диалог */
.modal { position: absolute; inset: 0; z-index: 50; background: #000b; display: grid; place-items: center; padding: 20px; }
.dialog { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.row input { width: 22px; height: 22px; accent-color: var(--accent); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Состав акта на заставке */
.cast { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cast-item { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 6px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); min-width: 0; cursor: default; }
.cast-name { font-family: var(--serif); font-size: 13px; line-height: 1.15; overflow-wrap: anywhere; }
.cast-note { font-size: 11px; color: var(--muted); }
.cast-item.me { border-color: var(--accent); box-shadow: 0 0 0 2px #f2b45d44; }
.cast-item.me .cast-note { color: var(--accent); font-weight: 600; }
.cast-item.locked { opacity: .5; }
.cast-item.locked .avatar { filter: grayscale(1); }

/* Кнопка «назад» к списку актов */
.card > .act-back { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 10px; z-index: 6; }

/* Итоги акта: один экран. Результат, карта контактов, действия */
.summary-wrap { position: absolute; inset: 0; background: var(--bg); }
.summary-card { background: var(--bg); }
.summary-card .summary-stage { flex: 0 0 auto; height: min(24%, 160px); }
@media (max-height: 700px) { .summary-card .summary-stage { display: none; } }
.summary-result { flex: 0 1 auto; display: flex; flex-direction: column; gap: 6px; padding: calc(56px + env(safe-area-inset-top)) 16px 4px; min-height: 0; }
.summary-card.has-stage .summary-result { padding-top: 10px; }
@media (max-height: 700px) { .summary-card.has-stage .summary-result { padding-top: calc(56px + env(safe-area-inset-top)); } }
.summary-result .title { font-size: 22px; }
.summary-result .lead { font-size: 16px; line-height: 1.35; max-height: 7.5em; }
.summary-map { flex: 1 1 0; min-height: 130px; display: flex; flex-direction: column; padding: 4px 0 0; }
.summary-map .kicker { padding: 0 16px; }
.summary-map .map { flex: 1; min-height: 0; }
.summary-actions { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 8px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.summary-actions .btn { width: 100%; padding: 11px 16px; font-size: 15px; }
.summary-row { display: flex; gap: 8px; }
.summary-row .btn { flex: 1; }

/* Каталог историй и экраны ошибок */
.error-screen .btn + .btn, .catalog-empty .btn { margin-top: 10px; }
.loading { padding: 24px 16px; text-align: center; }

/* Главный экран: табы, лента Shift, полки */
.home { background: #000; touch-action: auto; }
.home-tabs { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: center; gap: 4px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: linear-gradient(#000a, transparent); }
.home-tab { background: transparent; border: 0; color: #fffb; font-weight: 600; font-size: 15px; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.home-tab.on { color: var(--accent-ink); background: var(--accent); }
.home-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shift, .stories-panel { position: absolute; inset: 0; }
.shift[hidden], .stories-panel[hidden] { display: none; }
.shift-scroll { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; touch-action: pan-y; }
.shift-scroll::-webkit-scrollbar { display: none; }
.shift-item { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: var(--bg); }
.shift-bg { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 10%, #2a3350 0%, #161a29 55%, #0f1119 100%); }
.shift-poster, .shift-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shift-video { opacity: 0; transition: opacity .3s; }
.shift-video.on { opacity: 1; }
.shift-item::after { content: ""; position: absolute; inset: 35% 0 0 0; background: linear-gradient(transparent, #000d); pointer-events: none; }
.shift-over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 0 20px calc(96px + env(safe-area-inset-bottom)); }
.shift-title { margin: 0; font-size: 28px; line-height: 1.1; text-shadow: 0 2px 10px #000a; }
.shift-logline { margin: 0; color: #ece8df; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px #000a; }
.shift-actions { display: flex; gap: 8px; margin-top: 6px; }
.shift-actions .btn { padding: 11px 16px; font-size: 15px; }
.shift-actions .shift-continue { background: #0008; border-color: #fff4; }
.shift-btn { position: absolute; z-index: 10; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); min-width: 160px; padding: 16px 40px; font-size: 20px; font-weight: 800; letter-spacing: .06em; border-radius: 999px; box-shadow: 0 8px 28px #000a; }
.stories-panel { overflow-y: auto; background: var(--bg); padding: calc(64px + env(safe-area-inset-top)) 0 calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 22px; user-select: none; }
.shelf-title { margin: 0 16px 10px; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.stories { list-style: none; margin: 0; padding: 0 16px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story-item { flex: none; width: 150px; scroll-snap-align: start; }
.story-card { width: 100%; display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: left; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.story-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 14px; }
.story-frame { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 90% at 30% 10%, #2a3350 0%, #161a29 55%, #0f1119 100%); border: 1px solid var(--line); }
.story-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-progress { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 2px; background: #0009; overflow: hidden; }
.story-progress-fill { display: block; height: 100%; background: var(--accent); }
.story-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.story-title { font-family: var(--serif); font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.story-logline { font-size: 13px; color: var(--muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-meta { font-size: 12px; color: var(--accent); letter-spacing: .04em; }
.stories-panel .catalog-note, .stories-panel .refresh { margin: 0 16px; }
.stories-panel .refresh { align-self: flex-start; }

/* Персонажи в карточке истории и досье */
.faces { list-style: none; margin: 0 0 10px; padding: 0 0 2px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.faces::-webkit-scrollbar { display: none; }
.face-item { flex: none; }
.face { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; background: none; border: 0; padding: 0; cursor: pointer; }
.face:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.face-name { font-size: 11.5px; line-height: 1.1; color: var(--muted); text-align: center; max-width: 64px; overflow-wrap: anywhere; }
.dossier { align-items: center; text-align: center; max-height: 100%; overflow-y: auto; }
.dossier-name { margin: 0; }
.dossier-role, .dossier-info { margin: 0; }
.dossier-info { color: var(--ink); font-size: 15px; line-height: 1.4; }
.dossier-ig { color: var(--accent); font-weight: 600; text-decoration: none; }
.dossier .btn { align-self: stretch; }

/* Лента Shift: подсказка свайпа, описание по нажатию */
.shift-hint { position: absolute; z-index: 10; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: #0009; color: #fffd; font-size: 14px; letter-spacing: .04em; pointer-events: none; animation: nudge 1.6s ease-in-out infinite; }
.shift-hint::before { content: "↑ "; }
.shift-hint[hidden] { display: none; }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
.shift-over { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.shift-logline { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; font: inherit; font-size: 15px; cursor: pointer; }
.shift-over.expanded { background: linear-gradient(transparent, #000c 18%); padding-top: 28px; }
.shift-over.expanded .shift-logline { white-space: normal; overflow: visible; text-overflow: clip; max-height: 40vh; overflow-y: hidden; line-height: 1.4; }
.shift-actions { order: 99; }
.shift-actions .shift-watch { flex: 1; }

/* Сцена с картинкой: текст убирается вниз */
.sheet-handle { flex: none; align-self: center; width: 100%; height: 22px; margin: -10px 0 -6px; background: none; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; }
.sheet-handle[hidden] { display: none; }
.sheet-handle-bar { width: 44px; height: 4px; border-radius: 2px; background: #fff4; }
.sheet.collapsed .text, .sheet.collapsed .hint { display: none; }
.sheet.collapsed { gap: 4px; padding-top: 14px; }
.choice-question { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.3; color: var(--accent); }
.choice-question[hidden] { display: none; }

/* Теги истории */
.story-tags { font-size: 11.5px; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
/* Чипы жанра и тегов: меню под названием, тизер компактно в одну строку */
.meta-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip-genre { color: var(--accent); border-color: var(--accent); }
.meta-duration { font-size: 12.5px; color: var(--muted); margin-left: 2px; }
.menu-meta { margin: 0; }
.shift-meta { flex-wrap: nowrap; overflow: hidden; gap: 5px; text-shadow: 0 1px 6px #000a; }
.shift-meta .chip { flex: none; padding: 4px 8px; font-size: 11.5px; background: #0006; color: #ece8df; border-color: #fff3; }
.shift-meta .chip-genre { color: var(--accent); border-color: var(--accent); }

/* «Пожаловаться»: почти незаметно, но на месте */
.report-btn { position: absolute; z-index: 9; left: 8px; bottom: calc(1px + env(safe-area-inset-bottom)); height: 14px; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 9.5px; line-height: 14px; letter-spacing: .02em; opacity: .38; cursor: pointer; }
.report-btn:hover, .report-btn:focus-visible { opacity: .9; }
.report { gap: 10px; }
.report .title { font-size: 20px; }
.report-text { width: 100%; resize: none; font: inherit; font-size: 15px; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; user-select: text; -webkit-user-select: text; }

/* Автор истории: подпись у карточки и в меню, страница автора (контракт 1.6). Подписок нет. */
.author-chip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-align: left; }
button.author-chip { cursor: pointer; }
button.author-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 999px; }
.author-chip .author-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar.sm { width: 24px; height: 24px; font-size: 12px; border-width: 1px; }
.story-author { margin-top: 6px; }
.menu-author { min-width: 0; max-width: 100%; margin-right: 6px; }
.menu-author[hidden] { display: none; }
.menu-author .author-chip { color: var(--ink); }
.author-page { overflow-y: auto; touch-action: auto; padding: calc(64px + env(safe-area-inset-top)) 0 calc(24px + env(safe-area-inset-bottom)); }
.author-page > .act-back { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 10px; z-index: 6; }
.author-body { display: flex; flex-direction: column; gap: 22px; }
.author-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 24px; }
.author-title { font-size: 26px; overflow-wrap: anywhere; }
.author-handle { margin: 0; color: var(--muted); font-size: 14px; }
.author-bio { overflow: visible; overflow-wrap: anywhere; font-size: 15px; }
.author-stories-list { flex-wrap: wrap; overflow-x: visible; }
