/* Шрифты лежат на нашем сервере (PT Serif и PT Sans, свободная лицензия OFL): текст истории с засечками, интерфейс и цифры без засечек */
@font-face { font-family: 'PT Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ptsans-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ptsans-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PT Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/ptsans-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/ptsans-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PT Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/ptserif-400i-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/ptserif-400i-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ptserif-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ptserif-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/ptserif-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/ptserif-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --f-text: Georgia, 'Times New Roman', serif; /* первый шрифт игры: его читать было легче всего */
  --f-head: 'PT Serif', Georgia, serif;
  --f-ui: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-num: 'PT Sans', -apple-system, sans-serif;
  --bg: #121212;
  --panel: #1c1b19;
  --panel-2: #26241f;
  --text: #e8e2d6;
  --muted: #9a9284;
  --accent: #d9a441;
  --good: #7fb069;
  --bad: #d4574a;
  --line: #34312b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--f-text);
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.day {
  font-family: var(--f-num);
  color: var(--accent);
  white-space: nowrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin: 16px 0 8px;
  font-family: var(--f-num);
  font-size: 0.9rem;
}

.bar-row { grid-column: span 2; display: flex; align-items: center; gap: 10px; }
.bar-row .label { width: 7.5em; }
.bar { flex: 1; height: 8px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--good); transition: width 0.4s; }
.bar.low > i { background: var(--bad); }
.bar-row .num { width: 2.5em; text-align: right; }

.res { display: flex; justify-content: space-between; padding: 4px 8px; background: var(--panel); border-radius: 6px; }
.res.zero { color: var(--bad); }


.report:empty { display: none; }
.report {
  border-left: 2px solid var(--line);
  padding: 4px 0 4px 14px;
  margin: 0 0 18px;
  color: var(--muted);
  animation: fade 0.4s ease;
}
.report p { margin: 6px 0; }
.report .choice { color: var(--text); }
.report .choice::before { content: '› '; color: var(--accent); }
.report .night {
  font-family: var(--f-num);
  color: var(--accent);
  margin-top: 12px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.report .good { color: var(--good); }
.report .bad { color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { font-family: var(--f-num); font-size: 0.8rem; padding: 2px 8px; border-radius: 10px; background: var(--panel-2); }
.chip.plus { color: var(--good); }
.chip.minus { color: var(--bad); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  animation: fade 0.4s ease;
}
.card h2 { margin: 0 0 10px; font-size: 1.25rem; color: var(--accent); }
.card p { margin: 0 0 18px; }

.act-group { margin: 16px 0 6px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.act-group:first-of-type { margin-top: 4px; }
.choices { display: flex; flex-direction: column; gap: 8px; }

button.opt {
  font: inherit;
  text-align: left;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
/* Только где есть мышь: на телефоне подсветка «залипала» на кнопке, куда пришёлся палец */
@media (hover: hover) { button.opt:hover { border-color: var(--accent); } }
button.opt:active { transform: scale(0.99); }
button.opt:disabled:where(:not([data-turn-pending])) { opacity: 0.5; cursor: wait; }
button.opt small { display: block; color: var(--muted); font-size: 0.85rem; }

.ending.good h2 { color: var(--good); }
.ending.bad h2 { color: var(--bad); }

.foot { margin-top: 24px; text-align: center; }
button.link { background: none; border: none; color: var(--muted); font: inherit; font-size: 0.85rem; text-decoration: underline; cursor: pointer; }

.error { color: var(--bad); }

@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

[hidden] { display: none !important; }

.hud { margin: 4px 0 16px; font-size: 0.9rem; }
.needs { color: var(--accent); margin-bottom: 8px; }

.pocket { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.pocket > summary { cursor: pointer; padding: 10px 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pocket summary::-webkit-details-marker { display: none; }
.pocket > summary::after { content: '▾'; color: var(--muted); margin-left: 8px; }
.pocket[open] > summary::after { content: '▴'; }
.pocket .count { margin-left: auto; font-family: var(--f-num); font-size: 0.8rem; color: var(--muted); background: var(--panel-2); border-radius: 10px; padding: 0 8px; }
.pocket-body { padding: 0 14px 12px; }
.pocket .hint { color: var(--muted); font-size: 0.8rem; margin: 0 0 6px; }
.group h4 { margin: 10px 0 4px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.item { position: relative; padding: 3px 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); cursor: help; outline: none; }
.item.good { border-color: #4b6b3c; color: var(--good); }
.item.bad { border-color: #7a3a33; color: var(--bad); }
.item .item-desc {
  display: none; position: absolute; z-index: 10; left: 0; top: calc(100% + 6px);
  width: max-content; max-width: min(320px, 80vw); padding: 8px 10px; border-radius: 6px;
  background: #0b0b0b; color: var(--text); border: 1px solid var(--line); font-size: 0.85rem; line-height: 1.4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
/* На телефоне «наведение» залипает: там окошко открывается и закрывается нажатием (класс .open) */
@media (hover: hover) { .item:hover .item-desc { display: block; } }
.item.open .item-desc, .item:focus-visible .item-desc { display: block; }
.sub { margin-top: 6px; border-top: 1px solid var(--line); }
.sub > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 6px 0 2px; }
.sub > summary h4 { margin: 0; }
.sub > summary .count { margin-left: 0; }
.sub > summary::after { content: '▾'; color: var(--muted); margin-left: auto; }
.sub[open] > summary::after { content: '▴'; }
.sub > ul { padding-bottom: 4px; }
.group .empty { color: var(--muted); font-size: 0.85rem; }

.note { color: var(--muted); font-size: 0.85rem; margin: -4px 0 8px !important; }
.choices.grid.two { grid-template-columns: 1fr 1fr; }
.card .points { margin-top: 14px; }

.card h3 { margin: 18px 0 8px; font-size: 0.95rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.choices.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
button.opt.pick.on { border-color: var(--accent); background: #3a3122; }
.pick-head { display: flex; justify-content: space-between; gap: 8px; }
.cost { font-family: var(--f-num); font-size: 0.85rem; color: var(--muted); }
.cost.plus { color: var(--good); }
.cost.minus { color: var(--bad); }
.points { font-family: var(--f-num); font-size: 1.1rem; color: var(--good); }
.points.neg { color: var(--bad); }
button.opt.start { text-align: center; border-color: var(--accent); color: var(--accent); }
button.opt:disabled { cursor: not-allowed; }
button.opt.pick.blocked { opacity: 0.45; cursor: not-allowed; }
@media (hover: hover) { button.opt.pick.blocked:hover { border-color: var(--line); } }
button.opt small.why { color: var(--bad); margin-top: 4px; }
.res { flex-direction: column; justify-content: center; }
.res-top { display: flex; justify-content: space-between; }
.res small { color: var(--muted); font-size: 0.75rem; margin-top: 2px; }
.res.low small { color: var(--bad); }
.card p.warning { border-left: 3px solid var(--bad); background: #2a1a17; padding: 10px 12px; border-radius: 6px; color: var(--text); }
.supper { grid-column: span 2; background: var(--panel); border-radius: 6px; padding: 8px 12px; }
.supper table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.supper th { text-align: left; font-weight: normal; font-family: var(--f-text); }
.supper td { text-align: center; width: 3em; }
.supper thead th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.supper tbody tr th, .supper tbody td { padding: 2px 0; color: var(--text); }
.supper tfoot th, .supper tfoot td { border-top: 1px solid var(--line); padding-top: 4px; color: var(--accent); }
.supper-note { margin: 6px 0 0; color: var(--muted); font-size: 0.8rem; }
.card .survived { font-size: 1.3rem; color: var(--accent); margin-bottom: 4px; }

/* Что произошло за ход: тёмная панель с акцентной полосой слева */
.report {
  background: var(--panel);
  border: 1px solid var(--line);
  /* Золотая черта слева убрана 18.10: слишком бросалась в глаза */
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text);
}
.report p { color: var(--text); }
.report .choice {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.report .choice::before { content: '› '; color: var(--accent); }
.report .night { border-top: 1px dashed var(--line); padding-top: 10px; }

.res .burn { color: var(--bad); font-weight: normal; font-size: 0.8rem; margin-left: 6px; }

.res.has-pop, .bar-row.has-pop { position: relative; cursor: help; outline: none; }
.burn-pop {
  display: none; position: absolute; z-index: 20; left: 0; top: calc(100% + 6px);
  min-width: 200px; padding: 10px 12px; border-radius: 6px;
  background: #0b0b0b; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  font-family: var(--f-text); font-size: 0.85rem; color: var(--text);
}
@media (hover: hover) { .res.has-pop:hover .burn-pop, .bar-row.has-pop:hover .burn-pop { display: block; } }
.res.has-pop.open .burn-pop, .res.has-pop:focus-visible .burn-pop, .bar-row.has-pop.open .burn-pop, .bar-row.has-pop:focus-visible .burn-pop { display: block; }
.bar-row .num .burn { color: var(--bad); font-size: 0.8rem; margin-left: 6px; }
.bar-row .num .burn.gain { color: var(--good, #7fb069); }
.burn-pop b { display: block; color: var(--accent); margin-bottom: 4px; font-weight: normal; }
.burn-pop p { margin: 0; color: var(--muted); }
.burn-pop table { width: 100%; border-collapse: collapse; }
.burn-pop td:last-child { text-align: right; color: var(--bad); font-family: var(--f-num); }
.burn-pop tr.plus td:last-child { color: var(--good); }
.res .burn.gain { color: var(--good); }
.burn-pop tr.total td { border-top: 1px solid var(--line); padding-top: 4px; }

.report .achievement, .tape-out .achievement { color: var(--accent); font-family: var(--f-ui); font-weight: 600; }
.achievements { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ach { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); opacity: 0.55; }
.ach.got { opacity: 1; border-color: var(--accent); }
.ach-icon { font-size: 1.3rem; line-height: 1.2; }
.ach b { display: block; font-weight: normal; }
.ach small { display: block; color: var(--muted); font-size: 0.8rem; }

.risk { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--muted);
  font-family: var(--f-ui); }
.risk > span { display: block; }
.risk-good { color: var(--good); }
.risk-bad { color: var(--bad); }
.report .summary { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--accent);
  font-family: var(--f-ui); font-weight: 600; font-size: 0.9rem; }

.card img.scene { display: block; width: calc(100% + 40px); margin: -20px -20px 16px; aspect-ratio: 640 / 280; object-fit: cover;
  border-radius: 10px 10px 0 0; border-bottom: 1px solid var(--line); animation: fade 0.6s ease; }

button.opt img.portrait { display: block; width: calc(100% + 28px); margin: -12px -14px 10px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px 8px 0 0; }

/* Граница между итогом хода и новым событием: сначала читается итог, картинка проявляется следом */
.next-divider { display: flex; align-items: center; gap: 0; margin: -4px 0 18px; color: var(--muted);
  font-family: var(--f-ui); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; }
.next-divider span { margin: 0 12px; }
.next-divider::before, .next-divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.report:empty + .next-divider { display: none; }
.report:not(:empty) ~ .card img.scene { animation: fade 0.9s ease 0.7s both; }

/* Строка шансов под вариантом */
.odds { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 3px; font-size: 0.8rem; color: var(--muted);
  font-family: var(--f-ui); }
.odds .ok { color: var(--good); }
.odds .no { color: var(--bad); }
.odds .muted { color: var(--muted); font-style: italic; }
/* Наводка по рации в списке мест вылазки: золотая плашка (28.10) */
.odds .radio-tip { flex-basis: 100%; align-self: flex-start; width: fit-content; padding: 1px 8px; border-radius: 9px; border: 1px solid #a8832e; background: rgba(168, 131, 46, 0.16); color: #e6c06a; font-style: normal; font-weight: 600; cursor: help; }
.odds .pct { padding: 0 7px; border-radius: 9px; border: 1px solid var(--line); color: var(--text); }
.odds .pct.hi { border-color: #4b6b3c; }
.odds .pct.lo { border-color: #7a3a33; }

/* Картинка исхода внутри итога хода */
.report img.report-img { display: block; width: 100%; aspect-ratio: 640 / 280; object-fit: cover; border-radius: 6px; margin: 8px 0; animation: fade 0.6s ease; }

/* Журнал */
.pocket.journal { margin-top: 8px; }
.jmemory { margin: 0 0 8px; padding: 6px 10px; border-left: 2px solid var(--accent); font-size: 0.85rem; font-style: italic; }
.jmemory b { display: block; font-style: normal; font-size: 0.8rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.jmemory ul { list-style: none; margin: 2px 0 0; padding: 0; }
.jmemory li { padding: 1px 0; }
.odds .memo { flex-basis: 100%; font-style: italic; }
.journal-list { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.journal-list li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.journal-list li:last-child { border-bottom: 0; }
.journal-list .jday { display: inline-block; min-width: 72px; color: var(--accent); font-family: var(--f-num); font-size: 0.8rem; }
.chronicle-title { margin: 18px 0 6px; color: var(--accent); font-weight: normal; }

/* Описание достижения: наведение на компьютере, нажатие на телефоне */
.has-tip { position: relative; cursor: help; outline: none; }
.has-tip .tip-mark { color: var(--muted); font-size: 0.8em; font-weight: normal; }
.has-tip .tip {
  display: none; position: absolute; z-index: 20; left: 0; top: calc(100% + 6px);
  width: max-content; max-width: min(320px, 80vw); padding: 8px 10px; border-radius: 6px;
  background: #0b0b0b; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  font-family: var(--f-text); font-weight: normal; font-size: 0.85rem; color: var(--text); line-height: 1.4;
}
@media (hover: hover) { .has-tip:hover .tip { display: block; } }
.has-tip.open .tip, .has-tip:focus-visible .tip { display: block; }

/* Кнопка музыки */
.music-toggle { position: fixed; right: 14px; bottom: 14px; z-index: 30; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 1.1rem; cursor: pointer; opacity: 0.8; }
.music-toggle:hover { opacity: 1; }

/* Текст сцен и итогов: по левому краю, без переносов и растянутых пробелов, рубленый шрифт читается на экране легче */
.card > p, .tape-now > p, .tape-done > p, .report p.story, .report p.good, .report p.bad, .report p:not([class]) {
  text-align: left; hyphens: manual; -webkit-hyphens: manual;
  font-size: 1rem; line-height: 1.55; color: #ddd6c8;
}

/* Недоступный пока вариант: серый, нажать нельзя, под ним подсказка, чего не хватает */
button.opt.locked { opacity: .45; cursor: not-allowed; }

/* Намёк: в этом меню можно что-то улучшить */
button.opt { position: relative; }
.up-badge { position: absolute; top: 8px; right: 10px; color: var(--accent); font-size: 0.85rem; line-height: 1; }

/* Кнопка «Сохранить» и подтверждение */
.foot { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.saved-note { color: var(--good); font-size: 0.85rem; font-family: var(--f-ui); }

/* Разбор после смерти */
.recap { margin: 14px 0 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,0.02); }
.recap h3 { margin: 0 0 8px; font-size: 1rem; color: var(--accent); font-weight: normal; }
.recap p, .recap li { margin: 4px 0; font-size: 0.95rem; }
.recap ul { margin: 6px 0; padding-left: 20px; }
.recap .tip { color: var(--muted); margin-top: 10px; }

/* Тревога дня: кончается вода, мало здоровья */
.alert { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--bad); background: rgba(200, 70, 60, 0.08); color: var(--text); font-size: 0.95rem; }

/* На телефоне кнопка музыки не должна закрывать последние строки */
@media (max-width: 600px) { main.app { padding-bottom: 72px; } .music-toggle { opacity: 0.55; } }

/* Мысль героя: тихий намёк, без указаний */
.opt.locked .locked-desc { color: var(--text); margin: 2px 0; }
.report .find, .tape-out .find { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 6px; background: rgba(217, 164, 65, 0.08); }
.report .find b, .tape-out .find b { display: block; color: var(--accent); font-weight: 600; font-family: var(--f-ui); }
.report .find span, .tape-out .find span { display: block; color: var(--text); font-size: 0.9rem; margin-top: 2px; }
.season { display: block; font-size: 0.75rem; text-align: right; letter-spacing: 0.04em; color: var(--muted); }
.season-winter { color: #9cc3e6; }
.season-spring { color: #9bc58a; }
@media (prefers-reduced-motion: no-preference) {
  #card { position: relative; }
  #card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 115ms ease-out;
  }
  #card[data-scene-dim]::after { opacity: .22; transition-duration: 75ms; }
  .route-wait { animation: route-notice-in 80ms ease-out 250ms backwards; }
}
@keyframes route-notice-in { from { opacity: 0; } to { opacity: 1; } }
.route-wait {
  position: fixed;
  z-index: 51;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: #1d1a14;
  color: #fff;
  font: 500 14px/1.4 var(--f-ui);
  pointer-events: none;
}
.update-note { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(520px, calc(100% - 32px)); padding: 12px 36px 12px 14px; background: #1d1a14; border: 1px solid var(--good); border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); font-family: var(--f-ui); }
/* 29.10 разбор: на компьютере баннер снизу по центру, а не поверх шапки */
@media (min-width: 700px) { .update-note { top: auto; bottom: 24px; } }
.update-note b { display: block; color: var(--good); }
.update-note.bad { border-color: var(--bad); }
.update-note.bad b { color: var(--bad); }
.update-note span { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.update-note ul { margin: 8px 0 0; padding-left: 18px; font-size: 0.9rem; color: var(--text); }
.update-note li { margin: 3px 0; }
.update-close { position: absolute; top: 6px; right: 8px; background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
#update-btn { white-space: nowrap; }
.thought { margin: 0 0 14px; padding: 10px 12px 10px 38px; position: relative; font-style: italic; color: var(--text); border-left: 3px solid var(--accent); background: rgba(255, 255, 255, 0.04); border-radius: 4px; }
.thought::before { content: '💭'; position: absolute; left: 11px; top: 9px; font-style: normal; }

/* ---------- Обложка: вход и регистрация ---------- */
.cover { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.cover[hidden] { display: none; }
.cover-bg { position: fixed; inset: 0; background: #000 url('/img/cover.jpg') center / cover no-repeat; }
.cover-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.75)); }
.cover-box { position: relative; width: 100%; max-width: 380px; padding: 24px 22px; background: rgba(12, 12, 12, 0.82); border: 1px solid var(--line); border-radius: 8px; backdrop-filter: blur(3px); }
.cover-title { margin: 0 0 6px; font-size: 2rem; text-align: center; letter-spacing: 0.04em; }
.cover-sub { margin: 0 0 18px; color: var(--muted); text-align: center; font-size: 0.95rem; }
.cover-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.cover-tab { flex: 1; padding: 8px; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font: inherit; cursor: pointer; }
.cover-tab.on { color: var(--accent); border-color: var(--accent); }
.cover-form { display: flex; flex-direction: column; gap: 10px; }
.cover-form[hidden] { display: none; }
.cover-form input { padding: 11px 12px; background: #0b0b0b; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit; font-size: 16px; }
.cover-form input:focus { outline: none; border-color: var(--accent); }
.cover-form .link { align-self: center; }
.cover-msg { margin: 12px 0 0; color: var(--bad); text-align: center; font-size: 0.95rem; }
.cover-msg.ok { color: var(--good); }

/* Игра без интернета */
.offline-ready { margin: 14px 0 0; text-align: center; font-size: 0.85rem; color: var(--muted); }
.offline-ready.ok { color: var(--good); }
.offline-how { margin: 8px 0 0; text-align: center; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.offline-note { color: var(--accent); font-size: 0.85rem; width: 100%; text-align: center; }

.offline-btn { margin-top: 6px; text-align: center; font-size: 0.95rem; }

/* Дорога в Сосновку */
.road { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line, #333); border-radius: 10px; background: rgba(255,255,255,0.02); font-size: 14px; }
.road-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.road-head span { color: var(--muted, #999); font-size: 13px; }
.road-head b { display: inline-flex; align-items: center; gap: 7px; }
.road-house { width: 18px; height: 18px; color: #d9b36b; flex: none; }
.road-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 4px 0 8px; }
.road-seg i { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.road-seg span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.25; color: var(--muted, #999); }
.road-seg.done i { background: #8fbf7a; }
.road-seg.done span { color: #8fbf7a; }
.road-seg.cur i { background: linear-gradient(90deg, #d9b36b var(--p, 0%), rgba(217,179,107,0.3) var(--p, 0%)); }
.road-seg.cur span { color: #d9b36b; }
.road-stage { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--muted, #999); }
.road-stage b { color: inherit; color: #ddd; font-weight: 600; }
.road-step.done { color: #8fbf7a; }
.road-next { margin-top: 6px; color: #d9b36b; }

/* Части ночного отчёта: вечер, ночью, утро, итог */
.report-part { margin: 14px 0 4px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #c9a45e; border-bottom: 1px solid rgba(201,164,94,0.18); padding-bottom: 2px; }
.report-part:first-child { margin-top: 0; }

/* Согласие на обработку данных и удаление аккаунта */
.consent-check { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 0.95rem; line-height: 1.4; color: var(--text); cursor: pointer; }
.consent-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.consent-check a, .cover-legal a { color: var(--accent); }
.cover-legal { margin: 0; font-size: 0.85rem; color: var(--muted, #999); text-align: center; }
.cover-text { margin: 0 0 4px; font-size: 0.95rem; line-height: 1.45; }
.opt.danger { border-color: var(--bad); color: var(--bad); }
.cover-tabs[hidden] { display: none; }

.cover-foot { margin-top: 16px; }
.age-mark { color: var(--muted, #999); font-size: 0.85rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }

/* Конец бесплатной части */
.card.paywall .pay-price { font-size: 1.15rem; color: var(--accent); margin: 6px 0 16px; }
.card.paywall .pay-note { margin: 14px 0 0; font-size: 0.85rem; color: var(--muted, #999); }
.card.paywall .pay-note a { color: var(--accent); }

/* Ссылки в подвале выглядят как остальные кнопки-ссылки */
a.link { color: var(--muted); font-size: 0.85rem; text-decoration: underline; }

.cover-price { margin: 14px 0 0; text-align: center; font-size: 0.9rem; color: var(--accent); }

/* Лендинг на обложке: первый экран с окном входа, разделы об игре, цена, вопросы, реквизиты */
.cover { display: block; padding: 0; position: relative; inset: auto; overflow: visible; min-height: 100vh; }
/* Лендинг прокручивает обычная страница, а не слой поверх неё: так колёсико и тачпад работают сразу */
.land { z-index: 1; }
.land { position: relative; max-width: 1040px; margin: 0 auto; padding: 32px 16px 40px; }
.land-hero { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: center; min-height: calc(100vh - 72px); }
.land-title { margin: 0 0 10px; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: 0.04em; line-height: 1.05; }
.land-lead { margin: 0 0 14px; font-size: 1.15rem; color: var(--text); }
.land-text { margin: 0 0 22px; color: var(--muted); line-height: 1.55; max-width: 34em; }
.land-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.land-cta .opt.start { width: auto; padding: 14px 26px; font-size: 1.05rem; }
.land-price-line { margin: 16px 0 0; color: var(--accent); font-size: 0.95rem; }
.land .cover-box { max-width: none; }
.land .cover-box .cover-title { font-size: 1.4rem; margin-bottom: 14px; }
.land-sec { position: relative; margin: 56px 0 0; padding: 28px 24px; background: rgba(12, 12, 12, 0.86); border: 1px solid var(--line); border-radius: 10px; }
.land-sec h2 { margin: 0 0 18px; font-size: 1.5rem; color: var(--accent); }
.land-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.land-feat img, .land-shots img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 6px; }
.land-feat h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.land-feat p { margin: 0; color: var(--muted); line-height: 1.5; }
.land-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.land-shots figure { margin: 0; }
.land-shots figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }
.land-price-box p { margin: 0 0 12px; line-height: 1.5; }
.land-price-box .opt.start { width: auto; margin-top: 6px; padding: 12px 24px; }
.land-faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.land-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.land-faq summary { cursor: pointer; font-weight: 600; }
.land-faq details p { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.land-faq a { color: var(--accent); }
.land-foot { position: relative; margin: 40px 0 0; text-align: center; }
.land-req { margin: 0 0 8px; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 820px) {
  .land-hero { grid-template-columns: 1fr; min-height: 0; gap: 22px; }
  .land-feats, .land-shots { grid-template-columns: 1fr; }
  .land-sec { padding: 22px 16px; margin-top: 36px; }
}

/* Лендинг: шаги, начало истории, люди, цифры, когда играть, финальный призыв */
.land-steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.land-steps li { counter-increment: st; position: relative; padding: 14px 14px 14px 52px; border: 1px solid var(--line); border-radius: 8px; }
.land-steps li::before { content: counter(st); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 600; }
.land-steps b { display: block; margin-bottom: 4px; }
.land-steps span { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.land-sec > .opt.start { width: auto; padding: 12px 24px; }
.land-story { border-left: 2px solid var(--accent); padding-left: 18px; display: grid; gap: 14px; }
.land-day b { color: var(--accent); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.land-day p { margin: 4px 0 0; line-height: 1.5; }
.land-note { margin: -8px 0 16px; color: var(--muted); }
.land-people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.land-people figure { margin: 0; }
.land-people img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.land-people figcaption { margin-top: 8px; font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.land-people figcaption b { display: block; color: var(--text); font-size: 1rem; }
.land-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; text-align: center; }
.land-stats b { display: block; font-size: 2rem; color: var(--accent); }
.land-stats span { font-size: 0.85rem; color: var(--muted); }
.land-how { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.land-how p { margin: 4px 0 0; color: var(--muted); line-height: 1.45; }
.land-final { text-align: center; }
.land-final p { margin: 0 0 18px; font-size: 1.1rem; }
@media (max-width: 820px) {
  .land-steps, .land-people { grid-template-columns: 1fr; }
  .land-people { grid-template-columns: repeat(2, 1fr); }
  .land-stats { grid-template-columns: repeat(3, 1fr); }
  .land-how { grid-template-columns: 1fr; }
}

/* Кто ты: профессии и черты */
.land-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.land-who p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
@media (max-width: 820px) { .land-who { grid-template-columns: 1fr; } }

/* Иконки профессий */
.land-profs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; text-align: center; }
.land-profs svg { width: 40px; height: 40px; color: var(--accent); display: block; margin: 0 auto 6px; }
.land-profs span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 820px) { .land-profs { grid-template-columns: repeat(4, 1fr); row-gap: 16px; } }

/* Подсказка при наведении на профессию (на телефоне по нажатию) */
.land-profs > div { position: relative; cursor: default; padding: 6px 2px; border-radius: 8px; outline: none; }
.land-profs > div:hover, .land-profs > div:focus { background: rgba(217, 179, 107, 0.08); }
.land-profs > div span { display: block; }
.land-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 220px; padding: 10px 12px; background: #1b1714; border: 1px solid var(--accent); border-radius: 8px; color: var(--text); font-style: normal; font-size: 0.85rem; line-height: 1.4; text-align: left; opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 5; }
.land-profs > div:hover .land-tip, .land-profs > div:focus .land-tip { opacity: 1; }
.land-profs > div:first-child .land-tip { left: 0; transform: none; }
.land-profs > div:last-child .land-tip { left: auto; right: 0; transform: none; }

/* «Кто ты»: ряды с подписью, цветные черты, пример героя */
.land-row { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.land-row-head b { display: block; font-size: 1.05rem; }
.land-row-head span { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.land-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.land-chip { position: relative; padding: 5px 11px; border-radius: 999px; font-size: 0.88rem; border: 1px solid; cursor: default; outline: none; }
.land-chip.good { color: #9fcf86; border-color: rgba(143, 191, 122, 0.5); background: rgba(143, 191, 122, 0.08); }
.land-chip.bad { color: #e0806b; border-color: rgba(224, 128, 107, 0.5); background: rgba(224, 128, 107, 0.08); }
.land-chip.more { color: var(--muted); border-color: var(--line); }
.land-chip .land-tip { bottom: calc(100% + 8px); left: 0; transform: none; }
.land-chip:hover .land-tip, .land-chip:focus .land-tip { opacity: 1; }
.land-example { margin: 4px 0 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: rgba(217, 179, 107, 0.06); border-radius: 0 8px 8px 0; line-height: 1.5; }
.land-decide { margin: 16px 0 0; color: var(--muted); line-height: 1.5; }
.land-decide b { color: var(--text); }
.land-row .land-profs { margin: 0; }
@media (max-width: 820px) { .land-row { grid-template-columns: 1fr; gap: 10px; } }

/* Телефон: лендинг не должен ездить вбок (iPhone позволяет сдвинуть страницу, если хоть что-то шире экрана) */
html, body { max-width: 100%; overflow-x: hidden; }
.cover { max-width: 100%; overflow-x: clip; }
.land { overflow-x: clip; }
.cover { touch-action: pan-y pinch-zoom; }
.land-tip { visibility: hidden; max-width: min(220px, calc(100vw - 48px)); }
.land-profs > div:hover .land-tip, .land-profs > div:focus .land-tip, .land-chip:hover .land-tip, .land-chip:focus .land-tip { visibility: visible; }
.land img { max-width: 100%; }

/* Пустая плашка дороги не должна торчать рамкой (например, при создании героя) */
.road:empty, .road[hidden] { display: none !important; }
/* Создание героя: карточка не прилипает к линии под заголовком */
.app.setup .card { margin-top: 24px; }

/* Личный кабинет: кнопка в шапке и окно */
.top-right { display: flex; align-items: center; gap: 12px; }
.acct-btn { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font: inherit; font-size: 0.85rem; padding: 4px 12px; cursor: pointer; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn:hover { border-color: var(--accent); }
.acct-modal { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.7); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.acct-box { position: relative; width: 100%; max-width: 560px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 18px; }
.acct-box h2 { margin: 0 0 14px; color: var(--accent); }
.acct-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.acct-close:hover { color: var(--text); }
.acct-info { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; margin: 0 0 6px; }
.acct-info dt { color: var(--muted); }
.acct-info dd { margin: 0; overflow-wrap: anywhere; }
.acct-info .ok, .acct-msg.ok { color: var(--good); }
.acct-info small { color: var(--muted); }
.acct-ach h3 { font-size: 1rem; margin: 18px 0 8px; }
.acct-ach .achievements { max-height: 260px; overflow-y: auto; }
.acct-extra { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.acct-extra:empty { display: none; }
.acct-pass { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.acct-pass summary { cursor: pointer; color: var(--accent); }
.acct-pass form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.acct-pass input { padding: 10px 12px; background: #0b0b0b; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit; font-size: 16px; }
.acct-pass input:focus { outline: none; border-color: var(--accent); }
.acct-msg { margin: 0; min-height: 1em; color: var(--bad); font-size: 0.9rem; }
.acct-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.link.danger { color: var(--bad); }
/* «Удалить аккаунт» во вкладке «Пароль»: отдельная плашка под формой (владелец 20.10) */
.acct-danger { margin-top: 22px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--f-ui); }
.acct-danger b { display: block; color: var(--text); font-size: 0.95rem; }
.acct-danger small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 4px; line-height: 1.4; }
.acct-danger .danger-btn { width: auto; flex: none; padding: 9px 16px; font-size: 0.9rem; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 60%, transparent); }
#acct-pass { min-height: 0; }
@media (max-width: 560px) { .acct-danger { flex-direction: column; align-items: stretch; } .acct-danger .danger-btn { width: 100%; } }
@media (max-width: 480px) { .acct-info { grid-template-columns: 1fr; gap: 2px; } .acct-info dd { margin-bottom: 8px; } .acct-btn { max-width: 120px; } }

/* Кабинет: вкладки, статистика, партии, поддержка */
.acct-box { max-width: 640px; }
.acct-who { color: var(--muted); margin: -8px 0 12px; overflow-wrap: anywhere; }
.acct-who small { color: var(--muted); }
.acct-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.acct-tabs button { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font: inherit; font-size: 0.85rem; padding: 6px 12px; cursor: pointer; }
.acct-tabs button.on { border-color: var(--accent); color: var(--accent); background: rgba(217, 179, 107, 0.08); }
#acct-body, .acct-pane { min-height: 180px; }
.acct-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.acct-stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.acct-stat b { display: block; font-size: 1.25rem; color: var(--accent); }
.acct-stat span { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--muted); }
.acct-games { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 320px; overflow-y: auto; }
.acct-game { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.acct-game.cur { border-color: var(--accent); }
.acct-game small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.82rem; }
.acct-game .ok { color: var(--good); }
.acct-game .bad { color: var(--bad); }
.acct-game .opt { width: auto; margin: 0; padding: 6px 12px; flex-shrink: 0; }
.acct-tag { font-size: 0.8rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 10px; flex-shrink: 0; }
#acct-body .ok { color: var(--good); }
#acct-body .muted, .muted.small { color: var(--muted); }
.muted.small { font-size: 0.82rem; }
.acct-donate { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
#form-help { display: flex; flex-direction: column; gap: 8px; }
#form-help textarea { padding: 10px 12px; background: #0b0b0b; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit; font-size: 16px; resize: vertical; }
#form-help textarea:focus { outline: none; border-color: var(--accent); }
#acct-pass form { display: flex; flex-direction: column; gap: 8px; }
#acct-pass input { padding: 10px 12px; background: #0b0b0b; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit; font-size: 16px; }
#acct-pass input:focus { outline: none; border-color: var(--accent); }

/* Кабинет: список игр автора */
.acct-titles { display: flex; flex-direction: column; gap: 10px; }
.acct-title { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.acct-title.on { border-color: var(--accent); }
.acct-title img, .acct-title-ph { width: 120px; height: 68px; object-fit: cover; border-radius: 8px; display: block; }
.acct-title-ph { display: flex; align-items: center; justify-content: center; background: #0b0b0b; color: var(--muted); font-size: 1.6rem; border: 1px dashed var(--line); }
.acct-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.82rem; }
.acct-title.soon { opacity: 0.7; }
.acct-title .opt { width: auto; margin: 0; padding: 8px 16px; }
@media (max-width: 520px) { .acct-title { grid-template-columns: 80px 1fr; } .acct-title img, .acct-title-ph { width: 80px; height: 52px; } .acct-title .opt, .acct-title .acct-tag { grid-column: 1 / -1; justify-self: start; } }

/* Ловушка для ботов в регистрации: людям не видна */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }

/* Глазик «показать пароль» */
.pw { position: relative; display: block; }
.pw input { width: 100%; box-sizing: border-box; padding-right: 44px !important; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.pw-eye:hover, .pw-eye.on { color: var(--accent); }
.pw-eye svg { width: 20px; height: 20px; }
.pw-eye.on .pw-slash { display: none; }

/* Поля ввода: обычный чёткий шрифт без засечек и «книжных» цифр. Пароль моноширинным: 0 и O, l и I не спутать */
.cover-form input, #acct-pass input, #form-help textarea { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-variant-numeric: lining-nums; letter-spacing: 0; }
.pw input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-variant-numeric: lining-nums slashed-zero; }
.pw input::placeholder { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }

/* Знак авторского права */
.land-copy { color: var(--muted); font-size: 0.85rem; line-height: 1.5; margin: 0 0 8px; }
.copy-mark { color: var(--muted); font-size: 0.8rem; flex-basis: 100%; text-align: center; }

/* Итоги ночи: тонкая линия вместо подзаголовков */
.report-sep { border-top: 1px solid var(--line); margin: 12px 0 6px; }

.opt.confirm-on { border-color: var(--bad); }
.confirm-box { margin: -4px 0 4px; padding: 10px 12px; border: 1px solid var(--bad); border-radius: 8px; background: #2a1a17; display: flex; flex-direction: column; gap: 8px; }
.confirm-box p { margin: 0; color: var(--text); font-size: 0.92rem; }
.confirm-act { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--good); font: inherit; font-size: 0.95rem; cursor: pointer; }
.confirm-act:hover { border-color: var(--accent); }
.confirm-act small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.confirm-act.go { color: var(--muted); }
.goal { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 4px; font-size: 0.92rem; }
.goal .goal-now { color: var(--muted); white-space: nowrap; }
.jtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.jtab { font: inherit; font-size: 0.82rem; padding: 3px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; }
.jtab span { color: var(--muted); }
.jtab.on { border-color: var(--accent); color: var(--accent); }
.night-total { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 8px; }
.night-total > span { color: var(--muted); font-size: 0.85rem; }
.night-total .chips { margin: 0; }
.night-more { margin: 6px 0; }
.night-more > summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; }
.night-more[open] > summary { margin-bottom: 6px; }

/* Цифры одной ширины, чтобы столбцы не прыгали */
.res b, .chip, .count, .cost, .points, .jday, .burn-pop td { font-variant-numeric: tabular-nums; }
/* Кнопки и подписи без засечек: так легче читать на телефоне */
.opt, button, input, select, textarea, .opt small, .hint, h4 { font-family: var(--f-ui); }
.opt { font-size: 1rem; }
.item.rank-common { border-color: #6b6b6b; color: #c9c9c9; }
.item.rank-rare { border-color: #3d6fb3; color: #7fb0f0; }
.item.rank-epic { border-color: #7a4bb3; color: #c49cf5; }
.item.rank-gold { border-color: #a8832e; color: #e6c06a; }
.goal.req { border-left-color: var(--bad); }

/* Мини-игры */
.mini { margin-top: 14px; padding: 14px; border: 1px solid var(--accent); border-radius: 8px; background: var(--panel-2); }
.mini h3 { margin: 0 0 4px; color: var(--accent); }
.mini-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 10px; }
.mini-bar { height: 8px; background: var(--panel); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.mini-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.mini-range { width: 100%; margin: 12px 0; accent-color: var(--accent); }
.mini-msg { color: var(--muted); font-family: var(--f-ui); }
.mini-hold, .mini-go { width: 100%; touch-action: none; user-select: none; }
.fish-track { position: relative; height: 200px; width: 70px; margin: 0 auto 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.fish-zone { position: absolute; left: 0; right: 0; height: 18%; background: rgba(120, 170, 90, 0.35); border-top: 2px solid var(--good); border-bottom: 2px solid var(--good); }
.fish-fish { position: absolute; left: 50%; transform: translate(-50%, 50%); font-size: 20px; }
.radio-text { font-family: var(--f-num); letter-spacing: 0.05em; min-height: 2.6em; word-break: break-all; color: var(--good); }
.mines { display: grid; grid-template-columns: repeat(7, 42px); gap: 4px; justify-content: center; }
.mines button { width: 42px; height: 42px; font: inherit; font-family: var(--f-num); background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 4px; cursor: pointer; }
.mines button.open { background: var(--panel-2); color: var(--accent); } .mines button.boom { background: #5a2420; color: #fff; }
.trunk { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; max-width: 320px; margin: 0 auto 10px; }
.trunk button { aspect-ratio: 1; background: var(--panel); border: 1px solid var(--line); color: var(--accent); cursor: pointer; font: inherit; }
.trunk button.full { background: #4a3c1e; }
.trunk-items { display: flex; flex-wrap: wrap; gap: 6px; }
.trunk-items button { font: inherit; font-family: var(--f-ui); font-size: 0.85rem; padding: 4px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; }
.trunk-items button.on { border-color: var(--accent); color: var(--accent); } .trunk-items button.done { opacity: 0.4; }
.epilogue { margin: 16px 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 4px; }
.epilogue h3 { margin: 0 0 8px; color: var(--accent); }
.epilogue p { margin: 0 0 8px; }
.epi-stats { color: var(--muted); font-family: var(--f-ui); font-size: 0.85rem; }
.goal.req { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.goal.req .req-give { width: auto; padding: 6px 16px; margin-left: auto; }
.req-short { margin-left: auto; color: var(--muted); }
.item-talk { background: none; border: none; padding: 0 6px 0 0; cursor: pointer; font-size: 0.95rem; }
.opt .noisy { margin-left: 8px; font-family: var(--f-ui); font-size: 0.72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 0 6px; vertical-align: middle; }
.mini-bar.signal span { background: var(--good); transition: width 0.15s; }
/* «Ночь в осаде»: прочность двери, журнал волн, действия */
/* Плашки над делами дня: мельче и плотнее, чтобы не занимали пол-экрана */
.card .warning, .card .alert, .card .goal, .card .thought { font-family: var(--f-ui); font-size: 0.88rem; line-height: 1.35; padding: 6px 10px; margin: 0 0 6px; }
.card .thought { font-style: italic; padding-left: 32px; }
.card .thought::before { left: 9px; top: 5px; font-size: 0.9rem; }

/* Весь текст одним шрифтом без засечек; с засечками только заголовки */
h1, h2, .card h2 { font-family: var(--f-head); }

/* Мелкие истории ночи (рация, печка, находки спутников): мельче и плотнее основного текста */
.report .night-minor p { font-size: 0.9rem; line-height: 1.4; margin: 3px 0; color: #c9c1b2; }

/* Полоска опыта навыка в подсказке */
.skill-bar { display: block; height: 6px; margin: 6px 0 2px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.skill-bar i { display: block; height: 100%; background: var(--good); }
.skill-next { display: block; font-size: 0.75rem; color: var(--muted); }
.item .item-desc .skill-bar { min-width: 160px; }
/* «Тело и навыки»: уровень точками рядом с именем навыка (24.10) */
.skill-dots { margin-left: 6px; letter-spacing: 1px; font-size: 0.8em; color: var(--good); white-space: nowrap; }
.skill-row.neutral .skill-dots { color: var(--muted); }
/* Десять уровней: точки мельче, пятёрки через просвет (24.10) */
.skill-dots.ten { font-size: 0.66em; letter-spacing: 0; }
.skill-dots i { display: inline-block; width: 4px; }
.skill-more summary { cursor: pointer; font-size: 0.8rem; color: var(--muted); margin: 4px 0; }

/* Что открывает достижение */
.ach .ach-reward { color: var(--accent); margin-top: 2px; }

/* Личный кабинет: аккуратнее и плотнее (18.10) */
.acct-modal { backdrop-filter: blur(3px); }
.acct-box { max-width: 720px; padding: 26px 26px 20px; border-radius: 16px; border-color: #3d3830;
  background: linear-gradient(180deg, #24211c 0%, var(--panel) 140px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.acct-box h2 { font-size: 1.6rem; margin-bottom: 4px; }
.acct-who { margin: 0 0 18px; font-family: var(--f-ui); font-size: 0.9rem; }
.acct-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 2px; margin: 0 -26px 20px; padding: 0 26px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tabs button { flex-shrink: 0; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 12px; margin-bottom: -1px;
  font-family: var(--f-ui); font-size: 0.9rem; color: var(--muted); }
.acct-tabs button:hover { color: var(--text); }
.acct-tabs button.on { background: none; color: var(--accent); border-bottom-color: var(--accent); }
#acct-body { font-family: var(--f-ui); }
.acct-ach .achievements { max-height: none; overflow: visible; }
.ach-head { display: flex; justify-content: space-between; align-items: baseline; }
.ach-head span { font-family: var(--f-ui); font-size: 0.9rem; color: var(--accent); font-weight: normal; }
.ach-progress { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin: -2px 0 14px; }
.ach-progress i { display: block; height: 100%; background: linear-gradient(90deg, #b8862f, var(--accent)); }
.ach { font-family: var(--f-ui); padding: 10px 12px; border-radius: 10px; opacity: 1; background: #1f1d19; }
.ach:not(.got) b, .ach:not(.got) small { color: #6f685d; }
.ach:not(.got) .ach-icon { filter: grayscale(1); opacity: 0.5; }
.ach.got { background: linear-gradient(135deg, rgba(217, 164, 65, 0.12), rgba(217, 164, 65, 0.02)); border-color: rgba(217, 164, 65, 0.55); }
.ach.got b { color: var(--text); font-weight: 600; }
.ach .ach-reward { color: var(--accent); }
.ach:not(.got) .ach-reward { color: #8a7346; }
.acct-stat { border-radius: 12px; }
.acct-actions { font-family: var(--f-ui); font-size: 0.9rem; }
@media (max-width: 520px) { .acct-box { padding: 20px 16px 16px; } .acct-tabs { margin: 0 -16px 16px; padding: 0 16px; } }

/* Новости ночи плашками, как подсказки над делами дня */
.report .news { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; padding: 6px 10px; border-left: 3px solid var(--accent); background: rgba(255, 255, 255, 0.04);
  border-radius: 4px; font-family: var(--f-ui); font-size: 0.9rem; line-height: 1.4; color: var(--text); }
.report .news.bad { border-left-color: var(--bad); background: rgba(200, 70, 60, 0.08); }
.report .news.good { border-left-color: var(--good); }
.report .news-icon { flex-shrink: 0; width: 1.3em; text-align: center; }
.report .news .chips { margin-top: 4px; }
/* Плашки новостей ночи: черта слева тонкая и приглушённая, не спорит с текстом */
.report .news { border-left-width: 2px; border-left-color: rgba(217, 164, 65, 0.35); }
.report .news.bad { border-left-color: rgba(212, 87, 74, 0.6); }
.report .news.good { border-left-color: rgba(127, 176, 105, 0.45); }

/* Метка у дел, после которых день не кончается */
.opt .free-tag { margin-left: 8px; font-family: var(--f-ui); font-size: 0.72rem; color: var(--good); border: 1px solid rgba(127, 176, 105, 0.45); border-radius: 10px; padding: 0 7px; vertical-align: middle; }
/* В орду: шумное дело дня помечено прямо на кнопке */
.opt .noisy-tag { margin-left: 8px; font-family: var(--f-ui); font-size: 0.72rem; color: var(--bad, #d06a5a); border: 1px solid rgba(208, 106, 90, 0.5); border-radius: 10px; padding: 0 7px; vertical-align: middle; }
/* Вкладки кабинета помещаются целиком, без прокрутки: делят ширину поровну, на узком экране в два ряда */
/* Владелец 23.10: вкладки в одну строку (пароль ушёл в «Настройки», рекорды в «Статистику»). Не влезают на узком экране: листаются вбок */
.acct-tabs { display: flex; flex-wrap: nowrap; justify-content: space-between; overflow-x: auto; gap: 0; }
.acct-tabs button { flex: 0 0 auto; padding: 10px 8px; font-size: 0.85rem; white-space: nowrap; text-align: center; }
.acct-tabs button[hidden] { display: none; }
/* 29.10 разбор: все вкладки видны сразу, перенос во вторую строку вместо прокрутки вбок */
.acct-tabs { flex-wrap: wrap; justify-content: flex-start; overflow: visible; row-gap: 0; }
.acct-tabs button { flex: 1 1 auto; }
@media (min-width: 521px) { .acct-tabs button { flex-basis: 22%; } } /* 4 + 3, без одинокой вкладки во всю ширину */
@media (max-width: 520px) { .acct-tabs { padding: 0 6px; } .acct-tabs button { padding: 8px 4px; font-size: 0.78rem; } }
.acct-pane#acct-pass { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Сборы: багажник из клеток */
.pack-trunk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0 6px; }
.pack-trunk .cell { height: 44px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--f-ui); font-size: 0.75rem; text-align: center; padding: 2px; }
.pack-trunk .cell.gear { background: rgba(217, 164, 65, 0.25); border: 1px solid rgba(217, 164, 65, 0.6); color: var(--text); }
.pack-trunk .cell.loot { background: rgba(127, 176, 105, 0.08); border: 1px dashed rgba(127, 176, 105, 0.5); color: var(--good); }
.pack-item.on { border-color: var(--accent); }
.pack-item .size { color: var(--accent); font-size: 0.85rem; margin-left: 6px; letter-spacing: 1px; }

/* Растяжки: открытая клетка заметно светлее закрытой, цифры разного цвета */
.mines button { background: #2c2923; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.35); }
.mines button:not(.open):not(.boom):hover { border-color: var(--accent); }
.mines button.open { background: #4a4538; border-color: #5c5646; box-shadow: none; cursor: default; font-weight: 700; }
.mines button.open[data-n="1"] { color: #8fc2ff; } .mines button.open[data-n="2"] { color: #9be07a; } .mines button.open[data-n="3"] { color: #ff9a7a; } .mines button.open[data-n="4"] { color: #ff6a6a; }
.mines-tools { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; font-family: var(--f-ui); font-size: 0.85rem; color: var(--muted); }
.mines-tools .opt { width: auto; padding: 6px 12px; font-size: 0.85rem; }
.mines-tools .opt.on { border-color: var(--bad); color: var(--text); }
.mines button.flag { background: #3a2220; border-color: var(--bad); }

/* Замок: цилиндр со штифтами */
.lock-svg { display: block; width: 100%; max-width: 380px; margin: 10px auto 4px; cursor: pointer; user-select: none; }
.lock-svg .pin.active rect { filter: drop-shadow(0 0 4px rgba(217, 164, 65, 0.7)); }
.lock-svg.click { animation: lockClick 0.2s ease; }
.lock-svg.jolt { animation: lockJolt 0.3s ease; }
@keyframes lockClick { 50% { transform: scale(1.02); } }
@keyframes lockJolt { 20% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }
.lock-msg { text-align: center; }

/* Телефон: шапка в одну строку, полоски не вылезают за край, плитки запасов плотнее, кнопки обложки во всю ширину */
@media (max-width: 520px) {
  .top { align-items: center; gap: 8px; }
  h1 { font-size: 1.2rem; letter-spacing: 0.02em; white-space: nowrap; }
  .acct-btn { max-width: 104px; font-size: 0.78rem; padding: 4px 9px; }
  .stats { gap: 6px 8px; margin: 12px 0 6px; font-size: 0.85rem; }
  .bar-row { gap: 8px; }
  .bar-row .label { width: 6.6em; white-space: nowrap; }
  .bar-row .num { width: auto; min-width: 2.2em; white-space: nowrap; }
  .bar-row .num .burn { margin-left: 3px; }
  .res { padding: 6px 8px; }
  .res small { font-size: 0.72rem; line-height: 1.25; }
  .card { padding: 14px 14px; }
  .card h2 { font-size: 1.12rem; }
  button.opt { padding: 9px 12px; }
}
@media (max-width: 520px) {
  .land-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .land-cta .opt, .land-cta .opt.start { width: 100%; text-align: center; }
}
.lock-svg .pin.ready rect { filter: drop-shadow(0 0 6px rgba(127, 176, 105, 0.95)); }
.lock-svg .pin.ready .key { fill: #9fd18a; }
.report .news.attack { background: rgba(200, 70, 60, 0.12); border-left-color: var(--bad); }
.report .news-head { color: #ff9a8a; }

/* Начатая стройка: наверху меню, золотая рамка и метка «начато» */
button.opt.started { border-color: var(--accent); background: rgba(217, 164, 65, 0.12); }
.opt .started-tag { display: block; font-family: var(--f-ui); font-size: 0.75rem; color: var(--accent); margin-bottom: 2px; }
@media (max-width: 400px) { .mines { grid-template-columns: repeat(7, 38px); gap: 3px; } .mines button { width: 38px; height: 38px; } }
/* «Замри» */

.fish-zone.slip { border-color: var(--bad); background: rgba(160, 50, 40, 0.3); }
.join-plate { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; padding: 12px 14px; border: 1px solid var(--accent); border-left-width: 4px; border-radius: 6px; background: rgba(217, 164, 65, 0.08); font-family: var(--f-ui); }
.join-plate b { color: var(--accent); }
/* «Багажник» */
.tp-grid { display: grid; gap: 2px; max-width: 360px; margin: 0 auto 8px; padding: 4px; background: #1c1a16; border: 2px solid #4a4232; border-radius: 8px; touch-action: none; }
.tp-cell { aspect-ratio: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; position: relative; overflow: visible; }
.tp-cell.full { border-color: rgba(0,0,0,0.4); cursor: grab; }
.tp-cell.wall { background: repeating-linear-gradient(45deg, #2a2620, #2a2620 4px, #1c1a16 4px, #1c1a16 8px); border-color: #2a2620; }
.tp-cell span { position: absolute; left: 3px; top: 2px; font-family: var(--f-ui); font-size: 0.62rem; line-height: 1.1; color: #f2e6cc; white-space: nowrap; pointer-events: none; z-index: 1; text-shadow: 0 1px 2px #000; }
.tp-cell.ok { outline: 2px solid var(--good); outline-offset: -2px; } .tp-cell.bad { outline: 2px solid var(--bad); outline-offset: -2px; }
.tp-tray { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: flex-end; min-height: 60px; --cs: 22px; }
.tp-item { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.tp-item small { font-family: var(--f-ui); font-size: 0.72rem; color: var(--muted); }
.tp-shape { display: grid; gap: 2px; }
.tp-shape i { display: block; border-radius: 3px; border: 1px solid rgba(0,0,0,0.45); }
.tp-drag { position: fixed; z-index: 1000; pointer-events: none; opacity: 0.85; }
.tp-drag .tp-shape i { box-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.fish-wrap { display: flex; justify-content: center; gap: 10px; }
.fish-wrap .fish-track { margin: 0 0 8px; }
.fish-catch { position: relative; width: 14px; height: 200px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.fish-catch span { position: absolute; left: 0; right: 0; bottom: 0; height: 20%; background: var(--good); }
.fish-catch span.low { background: var(--bad); }
.fish-time { height: 4px; opacity: 0.6; }
.fish-time span, .fish-catch span { transition: none; }
.mini-hold { user-select: none; -webkit-user-select: none; touch-action: none; }
/* Лаборатория владельца */
.lab-panel { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,0.6); overflow-y: auto; padding: 20px 12px; }
.lab-inner { max-width: 640px; margin: 0 auto; background: var(--panel); border: 1px solid var(--accent); border-radius: 10px; padding: 16px; font-family: var(--f-ui); }
.lab-head { display: flex; justify-content: space-between; align-items: center; }
.lab-inner h4 { margin: 16px 0 8px; color: var(--accent); }
.lab-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.lab-minis .opt { padding: 8px 10px; }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 8px; }
.lab-grid label { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--muted); gap: 2px; }
.lab-inner input, .lab-inner select { font: inherit; background: var(--bg, #111); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; min-width: 0; }
.lab-flags { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; font-size: 0.85rem; }
.lab-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; font-size: 0.9rem; }
.lab-row input[data-e] { flex: 1; min-width: 200px; }
body.lab-game .wrap::before, body.lab-game main.app::before { content: '🧪 Тестовая партия: не идёт в статистику'; display: block; text-align: center; font-family: var(--f-ui); font-size: 0.8rem; color: var(--accent); padding: 4px; border: 1px dashed var(--accent); border-radius: 6px; margin-bottom: 8px; }
/* Рыбалка: поклёвка */
.bob-water { position: relative; height: 170px; margin: 6px 0 10px; border-radius: 8px; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #1d3a40 0%, #0f1f24 60%, #0a1418 100%); border: 1px solid var(--line); }
.bob-float { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; animation: bobIdle 2.4s ease-in-out infinite; z-index: 2; }
.bob-float i { display: block; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(#d9483b 0 50%, #f2ede0 50% 100%); box-shadow: 0 0 0 2px rgba(0,0,0,0.35); }
.bob-float.twitch { animation: bobTwitch 0.35s ease-in-out 1; }
.bob-float.dive { animation: bobDive 0.25s ease-in forwards; }
@keyframes bobIdle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes bobTwitch { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(5px); } 70% { transform: translateY(-2px); } }
@keyframes bobDive { to { transform: translateY(16px) scale(0.75); opacity: 0.35; } }
.bob-ring { position: absolute; left: 50%; top: 50%; width: 30px; height: 12px; margin: -6px 0 0 -15px; border: 2px solid rgba(200, 230, 235, 0.55); border-radius: 50%; animation: bobRing 1.2s ease-out forwards; z-index: 1; }
.bob-ring.big { border-color: rgba(230, 245, 248, 0.9); animation-duration: 0.9s; }
@keyframes bobRing { from { transform: scale(0.6); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.bob-ring.big { animation-name: bobRingBig; } @keyframes bobRingBig { from { transform: scale(0.6); opacity: 1; } to { transform: scale(6); opacity: 0; } }
.bob-trail { position: absolute; top: 50%; left: 8%; height: 6px; width: 0; margin-top: 6px; opacity: 0; background: radial-gradient(circle, rgba(220,240,245,0.85) 1.5px, transparent 2.5px) 0 0 / 12px 6px repeat-x; }
.bob-trail.go { opacity: 1; animation: bobTrail 1.1s linear forwards; }
@keyframes bobTrail { from { width: 0; } to { width: 40%; } }
.mini-hook { user-select: none; -webkit-user-select: none; touch-action: manipulation; text-align: center; }
/* «Замри»: низ двери и щель со светом с площадки */
@keyframes gapFlicker { 50% { filter: brightness(0.75); } }
.bob-float.dip { animation: bobDip 0.7s ease-in-out 1; }
@keyframes bobDip { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(8px) scale(0.92); } 60% { transform: translateY(6px) scale(0.94); } }
/* Пробные орды (лаборатория): подъезд, глазок, план квартиры */
.hs-house { display: flex; flex-direction: column; gap: 3px; max-width: 420px; margin: 8px auto; }
.hs-floor { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.hs-num { width: 18px; text-align: right; font-family: var(--f-num); color: var(--muted); font-size: 0.8rem; }
.hs-flight { position: relative; flex: 1; height: 30px; background: #1c1a16; border: 1px solid #3a342a; border-radius: 3px; overflow: hidden; }
.hs-floor:hover .hs-flight { border-color: var(--accent); }
.hs-floor.mine .hs-flight { border-color: var(--accent); background: #26211a; }
.hs-mass { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #0a0a0a, #2a1a14); transition: width 0.25s linear; }
.hs-floor.front .hs-mass { box-shadow: inset -8px 0 10px rgba(160,40,30,0.5); }
.hs-obj { position: absolute; right: 6px; top: 4px; bottom: 4px; padding: 0 8px; display: flex; align-items: center; font-family: var(--f-ui); font-size: 0.72rem; color: #f2e6cc; background: #5a4128; border-radius: 3px; overflow: hidden; }
.hs-obj i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--good); }
.hs-obj.wire { background: #3d4145; } .hs-obj.fire { background: #6a3a1a; } .hs-obj.burning { background: #b8501e; box-shadow: 0 0 12px #e0702a; }
.hs-door { position: absolute; right: 6px; top: 4px; bottom: 4px; padding: 0 8px; display: flex; align-items: center; font-family: var(--f-ui); font-size: 0.72rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; }
.hs-kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.hs-kit .opt.on { border-color: var(--accent); }
.hs-note { margin: 6px 0; } .hs-log p { color: var(--muted); font-size: 0.92rem; margin: 6px 0; }
.hf-map { display: block; width: 100%; max-width: 440px; margin: 6px auto; background: #141210; border-radius: 8px; border: 1px solid #3a342a; }
@keyframes hfLoud { 50% { fill: rgba(170,30,20,0.38); } }
@keyframes hfWall { 50% { stroke: #ff5030; } }
.hf-actions .opt { width: 100%; text-align: center; }
/* Подъезд полосами (лаборатория) */
.hz2 { position: relative; max-width: 340px; margin: 8px auto; border: 1px solid #3a342a; border-radius: 6px; overflow: hidden; background: #111; }
.hz2-cv { display: block; width: 100%; }
.hz2-cv.placing { cursor: pointer; }
.snd-group { margin: 10px 0; } .snd-group b { display: block; margin-bottom: 4px; color: var(--accent); }
.snd-row { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-family: var(--f-ui); }
.snd-row .opt { width: 44px; padding: 4px; text-align: center; } .snd-row span { flex: 1; } .snd-row.on span { color: var(--accent); }
.hz-sound { position: absolute; right: 6px; top: 6px; background: rgba(0,0,0,0.5); border: 1px solid #555; border-radius: 6px; color: #ddd; font-size: 16px; padding: 2px 6px; cursor: pointer; }
.hz-ico { display: inline-block; width: 22px; height: 22px; vertical-align: middle; margin-right: 6px; } .hz-ico svg { width: 100%; height: 100%; }
.prep { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; margin: 8px 0; }
.prep-row { display: flex; align-items: center; gap: 10px; font-family: var(--f-ui); } .prep-row span { flex: 1; } .prep-row b { min-width: 1.5em; text-align: center; }
.hs-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; margin: 6px 0; } .hs-jobs .mini-msg { grid-column: 1 / -1; margin: 0; }
/* Проверка экранов 19.10: телефоны */
:root { color-scheme: dark; }
/* Кнопка музыки не ложится на мини-игры и панели */
body:has(.mini) .music-toggle, body:has(.lab-panel) .music-toggle, body:has(.confirm-box) .music-toggle { display: none; }
/* Поле растяжек резиновое: на узком телефоне крайние столбцы не уходят за рамку */
.mines { grid-template-columns: repeat(7, minmax(0, 42px)); width: 100%; max-width: 330px; margin: 0 auto; }
.mines button { width: auto; height: auto; aspect-ratio: 1; min-width: 0; }
@media (max-width: 400px) { .mines { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; } .mines button { width: auto; height: auto; } .mini { padding-left: 10px; padding-right: 10px; } }
/* Правила мини-игры под «Как играть» */
.mini-help { margin: 4px 0 8px; } .mini-help summary { cursor: pointer; color: var(--accent); font-family: var(--f-ui); font-size: 0.9rem; padding: 8px 0; min-height: 40px; }
.mini-help .hint { margin-top: 4px; }
/* Подписи вещей в багажнике: крупнее и в своей клетке */
.tp-cell span { font-size: 0.7rem; white-space: normal; right: 2px; overflow: hidden; max-height: 100%; }
/* Пальцем легче попасть: ссылки подвала, «Решить по навыку», кнопки шапки */
@media (max-width: 600px) {
  .foot .link, .foot a.link { display: inline-block; padding: 10px 6px; }
  .mini-skip { padding: 10px 4px; display: inline-block; }
  .acct-btn { min-height: 40px; padding: 6px 12px; }
  .acct-close { width: 44px; height: 44px; top: 4px; right: 4px; display: flex; align-items: center; justify-content: center; }
}

.hz-inv { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--f-ui); font-size: 0.85rem; color: var(--muted); margin: 4px 0 8px; } .hz-inv b { color: var(--text); }
.hz-throw { margin: 8px auto; max-width: 340px; } .hz-throw .opt { width: 100%; text-align: center; } .hz-molotov.on { border-color: #e0702a; color: #ffb070; }
.hz-forecast { margin: 6px 0; color: #e0b070; font-family: var(--f-ui); }
.lang-link { position: absolute; top: 14px; right: 16px; color: var(--muted); font-size: 0.9em; text-decoration: none; border: 1px solid currentColor; border-radius: 6px; padding: 2px 8px; z-index: 2; }
.lang-link:hover { color: var(--text, #ddd); }
#day.horde-soon { color: var(--bad); }
/* Плашка риска справа в строке варианта */
.odds .risk { margin-left: auto; padding: 0 7px; border-radius: 9px; font-size: 0.75rem; font-style: normal; border: 1px solid currentColor; }
.odds .risk-low { color: var(--good); }
.odds .risk-mid { color: #d6a640; }
.odds .risk-high { color: var(--bad); }
/* Мини-игра «Фонарик напротив» (азбука Морзе) */
.morse-rec { font-size: 0.9rem; color: var(--muted); }
.morse-tape { min-height: 1.4em; font-family: monospace; letter-spacing: 1px; color: var(--text); word-break: break-all; }
.morse-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 2px 8px; font-family: monospace; font-size: 0.85rem; color: var(--muted); margin: 8px 0; }
.morse-table b { color: var(--text); }
.morse-in { width: 100%; box-sizing: border-box; padding: 10px; font-size: 1rem; background: #151515; color: var(--text); border: 1px solid #333; border-radius: 6px; margin-bottom: 8px; text-transform: uppercase; }

/* Лендинг: «Попробуй один выбор» (20.10) */
.try-box { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; }
.try-box img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% center; border-radius: 8px; }
.try-text, .try-out { line-height: 1.55; margin: 0 0 14px; }
.try-out { color: var(--text); }
.try-more { color: var(--muted); margin: 0 0 14px; }
.try-choices { display: grid; gap: 8px; }
.try-cta { display: grid; gap: 8px; }
.try-back { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 820px) {
  .try-box { grid-template-columns: 1fr; }
  /* «English» в углу не наезжает на заголовок */
  .land-intro { padding-top: 34px; }
}


/* Отзывы (20.10) */
.reviews-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.review-card { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.review-card .stars, .review-stars button { color: var(--accent); letter-spacing: 2px; }
.review-card p { margin: 8px 0 0; line-height: 1.5; }
.review-card small { color: var(--muted); display: block; margin-top: 8px; }
.review-stars { display: flex; gap: 6px; margin: 10px 0; }
.review-stars button { background: none; border: 0; font-size: 1.8rem; cursor: pointer; opacity: 0.35; padding: 0; }
.review-stars button.on { opacity: 1; }
#review-text { width: 100%; box-sizing: border-box; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 10px; font: inherit; margin-bottom: 10px; }
.review-hint { border: 1px dashed var(--line); border-radius: 8px; padding: 10px 14px; color: var(--muted); }
.review-hint button { margin: 8px 12px 0 0; }
@media (max-width: 820px) { .reviews-list { grid-template-columns: 1fr; } }

/* Мини-игра орды: удобнее управление (20.10) */
.hs-floors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.hs-floors .opt { padding: 8px 4px; text-align: center; }
.hs-floors .opt small { display: block; color: var(--muted); font-size: 0.75rem; }
.hs-tools { display: flex; gap: 16px; justify-content: center; margin: 4px 0; }
.hf-go { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.hf-go .opt { text-align: center; padding: 10px 4px; }
.hf-go .opt.on { border-color: var(--accent); color: var(--accent); }
.hf-go .opt small, .hf-actions .opt small { display: block; color: var(--muted); font-size: 0.75rem; }
.hf-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hf-actions .opt[disabled] { opacity: 0.45; }
.hf-stat { text-align: center; }
@media (max-width: 560px) { .hf-actions { grid-template-columns: 1fr; } .hs-floors { grid-template-columns: repeat(4, 1fr); } }
/* Умения профессии при выборе (владелец 20.10) */
.pick small.can { display: block; margin-top: 4px; color: var(--accent, #d9a441); }
/* Сколько ещё можно найти на месте вылазки (владелец 20.10) */
.need-parts { flex-basis: 100%; font-size: 11px; color: #ffc850; }
button.opt:has(.need-parts) { border-color: #ffc850 !important; box-shadow: 0 0 0 1px rgba(255, 200, 80, 0.35) inset; }
.loot-icons { display: inline-flex; gap: 3px; margin-right: 8px; font-size: 13px; line-height: 1; }
.loot-icons .loot-ic { font-style: normal; cursor: help; }
.stock-bar { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--muted, #9a948a); margin-right: 8px; }
/* Описание места на всю ширину, ниже справа добыча и риск рядом (владелец 20.10) */
.odds .muted { flex-basis: 100%; }
.odds .odds-right { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.odds .odds-right .risk { margin-left: 0; }
/* Морзянка: дом напротив, сигнальное окно и клетки букв (владелец 20.10) */
.morse-win { display: block; width: 100%; height: 170px; border: 1px solid #2a2a2a; border-radius: 8px; margin: 6px 0 8px; background: #101218; }
.morse-win .morse-light { fill: #1c1d22; transition: fill 40ms; }
.morse-win.on .morse-light { fill: #ffe9a8; }
.morse-win .morse-glow { opacity: 0; transition: opacity 40ms; }
.morse-win.on .morse-glow { opacity: 1; }
.morse-state { margin: 4px 0; }
.morse-cells { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 8px; }
.morse-word { display: inline-flex; gap: 4px; }
.morse-cell { min-width: 34px; height: 30px; padding: 0 4px; border: 1px solid #3a3731; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-family: monospace; font-size: 0.85rem; color: var(--text); background: #151515; }
.morse-cell.now { border-color: var(--accent); box-shadow: 0 0 6px rgba(217, 164, 65, 0.5); }
.morse-cell.done { border-color: #555; }
.morse-cells.hide-marks .morse-cell i { visibility: hidden; }
/* Серые недоступные варианты свёрнуты (владелец 20.10: длинные экраны на телефоне) */
.locked-more > summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; padding: 8px 2px; list-style: none; }
.locked-more > summary::before { content: '▸ '; }
.locked-more[open] > summary::before { content: '▾ '; }
.locked-more > .opt { display: block; width: 100%; margin-top: 8px; }
.locked-more > summary::-webkit-details-marker { display: none; }
/* Стук по батарее: волны от стояка, точка одна короткая, тире три широкие и долгие */
.morse-win.knock .knock-waves path { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.morse-win.knock.tap .knock-waves .w1 { animation: kbWave 0.35s ease-out; }
.morse-win.knock.boom .knock-waves .w1 { animation: kbWave 0.9s ease-out; }
.morse-win.knock.boom .knock-waves .w2 { animation: kbWave 0.9s ease-out 0.08s; }
.morse-win.knock.boom .knock-waves .w3 { animation: kbWave 0.9s ease-out 0.16s; }
@keyframes kbWave { 0% { opacity: 0.95; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.15); } }
.morse-slot { display: inline-flex; flex-direction: column; gap: 3px; align-items: center; }
.morse-ch { width: 34px; height: 30px; box-sizing: border-box; text-align: center; font-size: 1rem; text-transform: uppercase; background: #151515; color: var(--text); border: 1px solid #333; border-radius: 4px; }
.morse-ch:focus { border-color: var(--accent); outline: none; }
.morse-table span.hl { background: rgba(217, 164, 65, 0.25); border-radius: 3px; }
.morse-table span.hl b { color: var(--accent); }
/* Добыча сплошной полоской: заполнено столько, сколько ещё можно найти (владелец 20.10) */
.stock-bar i { display: inline-block; width: 52px; height: 7px; margin-left: 5px; border-radius: 4px; background: linear-gradient(90deg, var(--accent, #d9a441) var(--fill, 0%), rgba(255,255,255,0.12) var(--fill, 0%)); }
.stock-bar.low i { background: linear-gradient(90deg, var(--bad, #d4574a) var(--fill, 0%), rgba(255,255,255,0.12) var(--fill, 0%)); }
.prep-row span small { display: block; }
.act-group small { display: block; margin-top: 2px; font-size: 0.8rem; text-transform: none; letter-spacing: 0; color: var(--muted); opacity: 0.8; }
.act-group { color: var(--accent); }
/* «Вчера / Только что» над итогами, ниже «Сегодня, день N» (отзыв игрока 20.10) */
.report-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 6px 2px; }
.report:not(:empty) { opacity: 0.88; }
/* Пункты меню с названием, метками и описанием (владелец 20.10: «покрасивее») */
.opt .opt-title { display: block; font-size: 1.05rem; }
.opt .opt-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.opt .opt-meta i { font-style: normal; font-size: 0.75rem; padding: 1px 8px; border: 1px solid #4a443a; border-radius: 9px; color: var(--accent); }
.opt .opt-desc { display: block; font-size: 0.85rem; line-height: 1.45; color: var(--muted); }
.opt .opt-ico { margin-right: 8px; }
/* Шкала «обустроено на N%» в меню обустройства (владелец 20.10) */
.ev-meter { margin: 4px 0 14px; font-size: 0.85rem; color: var(--muted); }
.ev-meter i { display: block; height: 8px; margin-top: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--accent, #d9a441) var(--fill, 0%), rgba(255,255,255,0.1) var(--fill, 0%)); }
/* Морзянка, вариант А (владелец 20.10): клетки-буквы, кнопки, таблица-клавиатура по длине кода */
.morse-slot { cursor: pointer; }
.morse-slot .morse-ch { display: flex; align-items: center; justify-content: center; width: 34px; height: 30px; box-sizing: border-box; border: 1px solid #333; border-radius: 4px; background: #151515; font-size: 1rem; color: var(--text); }
.morse-slot.sel .morse-ch { border-color: var(--accent); box-shadow: 0 0 6px rgba(217, 164, 65, 0.45); }
.morse-slot:not(.sent) .morse-cell { opacity: 0.4; }
.morse-ctl { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 8px 0; }
.morse-ctl .morse-next { flex: 1 1 180px; }
.morse-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin: 8px 0 12px; }
.morse-key { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; background: #171614; border: 1px solid #333; border-radius: 6px; color: var(--muted); font-family: monospace; font-size: 0.8rem; cursor: pointer; }
.morse-key b { color: var(--text); font-size: 1rem; font-family: inherit; }
.morse-key.hl { border-color: var(--accent); background: rgba(217, 164, 65, 0.18); }
.morse-key.tutor { animation: morseTutor 1s ease-in-out 3; }
@keyframes morseTutor { 50% { box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.5); } }
.morse-key.zone { border-color: rgba(217, 164, 65, 0.55); background: rgba(217, 164, 65, 0.08); }
#review-modal { z-index: 1100; }
/* Подсказка у вещи на лестнице и итог ночи орды (владелец 20.10) */
.hz-tip { position: absolute; z-index: 5; max-width: 160px; padding: 5px 8px; background: rgba(20, 18, 15, 0.92); border: 1px solid #5a4a2a; border-radius: 6px; color: var(--text); font-size: 0.75rem; line-height: 1.3; pointer-events: none; }
.hz-sum { color: var(--accent); }
/* Квартира в орде: тёмный план сверху (владелец 20.10) */
.hf-walls line, .hf-outer { stroke: #8a8070; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.hf-furn > * { fill: #3a3128; stroke: #4c4134; stroke-width: 0.4; }
.hf-rname { fill: #d9a441; font-size: 3.6px; font-family: Georgia, serif; font-weight: 700; pointer-events: none; }
.hf-pname { fill: #9a9284; font-size: 2.8px; font-family: Georgia, serif; font-style: italic; pointer-events: none; }
.hf-pt { cursor: pointer; } .hf-zone { fill: rgba(0,0,0,0); transition: fill 0.2s; } .hf-pt:hover .hf-zone { fill: rgba(217,164,65,0.06); }
.hf-door { fill: #5a4630; stroke: #2a1f14; stroke-width: 0.5; } .hf-knob { fill: #d9a441; }
.hf-balcony { fill: #1c1a17; stroke: #6a6256; stroke-width: 0.5; } .hf-rail { stroke: #8a8070; stroke-width: 0.6; stroke-dasharray: 1 1; } .hf-glass { fill: #2f3a44; stroke: #8a8070; stroke-width: 0.4; }
.hf-brick { fill: url(#hfBricks); stroke: #2a1a12; stroke-width: 0.4; }
.hf-crack { fill: none; stroke: #ff5a3a; stroke-width: 0.7; opacity: 0; }
.hf-hole { fill: #000; opacity: 0; } .hf-fire { fill: url(#hfFire); opacity: 0; pointer-events: none; }
.hf-pt.loud .hf-crack { opacity: 1; animation: hfCrack 0.3s steps(2) infinite; }
.hf-pt.loud .hf-zone { fill: rgba(180,40,25,0.10); }
.hf-pt.broken .hf-hole { opacity: 1; animation: hfHole 0.5s steps(2) infinite; }
.hf-pt.broken .hf-zone { fill: rgba(120,10,5,0.22); }
.hf-pt.broken .hf-pname { fill: #ff7a5a; font-weight: 700; font-style: normal; }
.hf-pt.burning .hf-fire { opacity: 1; animation: hfFlick 0.25s steps(2) infinite; }
@keyframes hfCrack { 50% { stroke: #ffb090; } }
@keyframes hfHole { 50% { fill: #3a0805; } }
@keyframes hfFlick { 50% { opacity: 0.7; } }
.hf-hpbg { fill: rgba(255,255,255,0.08); } .hf-hp.ok { fill: #6f9a4a; } .hf-hp.mid { fill: #d9a441; } .hf-hp.low { fill: #d4574a; }
.hf-me { transition: transform 0.6s; } .hf-me-body { fill: #1a1612; stroke: #f0c070; stroke-width: 0.5; } .hf-me-head { fill: #f0c070; }
.hf-glow { transition: cx 0.6s, cy 0.6s; pointer-events: none; mix-blend-mode: screen; }
.hf-rname, .hf-pname { paint-order: stroke; stroke: #0d0b09; stroke-width: 0.9px; stroke-linejoin: round; }
/* Багажник: куда встанет вещь после поворота (пунктир) и кнопка поворота на телефоне */
.tp-cell.rot { outline: 2px dashed #e8c070; outline-offset: -3px; }
.tp-cell.rotbad { outline: 2px dashed #b04a3a; outline-offset: -3px; }
.tp-rotbtn { position: fixed; z-index: 1001; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 16px 28px; font-size: 18px; border-radius: 12px; border: 1px solid #e8c070; background: #2a2418; color: #e8c070; touch-action: none; box-shadow: 0 4px 16px rgba(0,0,0,0.6); }
/* Экран создания (владелец 21.10): карточки выровнены по верху, иконка профессии, «Умеет» списком */
button.opt.pick { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 6px; text-align: left; }
.pick-head { align-items: center; }
.pick-name { flex: 1; font-size: 1.05rem; line-height: 1.25; }
.pick-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font-size: 1.15rem; border-radius: 8px; background: rgba(217, 164, 65, 0.1); border: 1px solid rgba(217, 164, 65, 0.25); }
.pick-head .cost { flex: none; padding: 1px 8px; border-radius: 10px; border: 1px solid currentColor; font-size: 0.8rem; line-height: 1.5; }
.pick-desc { line-height: 1.45; }
.can-box { display: block; margin-top: 2px; padding: 8px 10px; border-radius: 8px; background: rgba(217, 164, 65, 0.07); border-left: 2px solid var(--accent, #d9a441); font-size: 0.85rem; }
.can-box b { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent, #d9a441); font-weight: 600; margin-bottom: 4px; }
.can-box ul { margin: 0; padding-left: 16px; color: var(--text, #e8e0d0); }
.can-box li { margin: 2px 0; line-height: 1.4; }
.can-box li::marker { color: var(--accent, #d9a441); }
/* Счётчик до великой орды (21.10) */
.goal.big-horde-count { display: flex; align-items: center; gap: 12px; border-left-color: #c0553f; background: rgba(176, 74, 58, 0.12); }
.big-horde-count .bh-num { flex: none; min-width: 52px; text-align: center; font-family: var(--f-num); font-size: 1.9rem; font-weight: 700; color: #e07a5f; line-height: 1; }
.big-horde-count b { display: block; color: #e8c9b8; }
.big-horde-count small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
/* Пропуск мини-игры: неприметно и с ценой (21.10) */
.mini-skip-row { margin-top: 14px; display: flex; gap: 8px; align-items: baseline; justify-content: flex-end; opacity: 0.55; }
.mini-skip-row:hover { opacity: 0.9; }
.mini-skip-row .mini-skip { font-size: 0.8rem; }
.mini-skip-row small { font-size: 0.75rem; color: var(--muted); }

/* ===== Верхняя панель (владелец 21.10: «аккуратно и красиво, как профессии») ===== */
.top { align-items: center; padding-bottom: 14px; }
.day { display: flex; align-items: center; gap: 10px; }
.day .day-n { display: flex; align-items: baseline; gap: 6px; font-size: 1.35rem; font-weight: 700; color: var(--accent); line-height: 1; }
.day .day-n small { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.day .season { display: inline-block; text-align: center; padding: 3px 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 0.75rem; letter-spacing: 0.02em; }
.day.horde-soon .day-n { color: #e07a5f; }
.stats { display: block; margin: 16px 0 10px; }
.hud-bars { display: flex; flex-direction: column; gap: 9px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.bar-row { gap: 10px; }
.bar-row .label { width: 6.6em; font-size: 0.92rem; }
.hud-ico { flex: none; width: 26px; height: 26px; display: grid; place-items: center; font-size: 0.95rem; border-radius: 7px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); }
.bar > i { border-radius: 6px; }
.bar-health .bar > i { background: linear-gradient(90deg, #5f9c4f, #86c06c); }
.bar-sanity .bar > i { background: linear-gradient(90deg, #6d6fb3, #9a8fd8); }
.bar-barricade .bar > i { background: linear-gradient(90deg, #8a6a3a, #c99a52); }
.bar.low > i { background: linear-gradient(90deg, #a33e2e, #d0624a) !important; }
.bar-row .num { width: auto; min-width: 4.2em; display: flex; justify-content: flex-end; align-items: baseline; font-weight: 700; font-size: 1rem; }
.bar-row .num .burn, .res .burn { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; font-size: 0.74rem; font-weight: 600; line-height: 1.5; background: rgba(208, 98, 74, 0.14); }
.bar-row .num .burn.gain, .res .burn.gain { background: rgba(127, 176, 105, 0.14); }
.hud-res { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.res { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; padding: 9px 11px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 9px; }
.res .hud-ico { width: 32px; height: 32px; font-size: 1.05rem; }
.res-body { flex: 1; min-width: 0; }
.res-top { align-items: baseline; gap: 8px; }
.res-name { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.res-top b { font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.res small { display: block; line-height: 1.3; }
.res.low { border-left-color: #c0553f; }
.res.zero { border-left-color: #c0553f; background: rgba(176, 74, 58, 0.08); }
.res.zero .res-name, .res.zero .res-top b { color: #e07a5f; }
@media (max-width: 480px) {
  .hud-res { grid-template-columns: 1fr 1fr; }
  .res { padding: 8px 9px; gap: 8px; }
  .res .hud-ico { width: 26px; height: 26px; font-size: 0.9rem; }
  .bar-row .label { width: 5.6em; font-size: 0.85rem; }
}
/* ===== Рекорды и испытание дня (21.10) ===== */
.lb-btn { font-size: 1rem; padding: 4px 10px; }
.daily-card { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(217, 164, 65, 0.45); background: linear-gradient(180deg, rgba(217, 164, 65, 0.1), rgba(217, 164, 65, 0.03)); }
.daily-head { display: flex; align-items: center; gap: 12px; }
.daily-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.3rem; border-radius: 10px; background: rgba(217, 164, 65, 0.14); border: 1px solid rgba(217, 164, 65, 0.3); }
.daily-head small { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.daily-head b { font-size: 1.15rem; color: var(--accent); }
.daily-card p { margin: 10px 0 0; line-height: 1.45; }
.daily-goal-line { font-size: 0.85rem; color: var(--muted); }
.daily-go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.daily-go .opt { text-align: center; border-color: var(--accent); color: var(--accent); }
.goal.daily-goal { border-left-color: var(--accent); }
.lb-box { max-width: 620px; }
.lb-sec { margin: 0 0 20px; }
.lb-sec h3 { margin: 0 0 4px; color: var(--text, #e8e0d0); font-size: 1.02rem; text-transform: none; letter-spacing: 0; }
.lb-sec .muted { font-size: 0.86rem; line-height: 1.4; margin: 0 0 10px; }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table td { padding: 7px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.lb-table tr.me td { background: rgba(217, 164, 65, 0.1); }
.lb-place { width: 34px; text-align: center; font-family: var(--f-num); color: var(--muted); }
.lb-name small, .lb-score small { display: block; font-size: 0.74rem; color: var(--muted); }
.lb-score { text-align: right; font-family: var(--f-num); font-weight: 700; font-size: 1.05rem; color: var(--accent); white-space: nowrap; }
.lb-mine { font-size: 0.88rem; color: var(--accent); margin: 8px 0 0; }
.lb-nick form { display: flex; gap: 8px; }
.lb-nick input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: inherit; font: inherit; }
.lb-nick .opt { width: auto; }
/* Плитки запасов компактнее (владелец 21.10: «еда, вода крупно») */
.hud-res { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.res { gap: 8px; padding: 6px 9px; border-radius: 8px; }
.res .hud-ico { width: 24px; height: 24px; font-size: 0.85rem; border-radius: 6px; }
.res-name { font-size: 0.7rem; letter-spacing: 0.05em; }
.res-top b { font-size: 1rem; }
.res small { font-size: 0.7rem; margin-top: 1px; }
.res .burn { font-size: 0.68rem; padding: 0 5px; margin-left: 4px; }
@media (max-width: 560px) { .hud-res { grid-template-columns: 1fr 1fr; } }
.land-lb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.land-lb-col { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.land-lb-col h3 { margin: 0 0 6px; font-size: 1.02rem; }
.land-lb-col .muted { font-size: 0.86rem; margin: 0 0 8px; }
@media (max-width: 700px) { .land-lb-grid { grid-template-columns: 1fr; } }
/* Плитки ещё ниже (владелец 21.10): подпись в одну строку */
.res { padding: 4px 8px; gap: 7px; min-height: 0; }
.res .hud-ico { width: 22px; height: 22px; font-size: 0.8rem; }
.res-top { line-height: 1.2; }
.res-top b { font-size: 0.95rem; }
.res small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.res-body { overflow: hidden; }
.daily-card { overflow: hidden; }
.daily-img { display: block; width: calc(100% + 32px); margin: -14px -16px 12px; height: 120px; object-fit: cover; opacity: 0.85; }
/* Плитки не вылезают за край (владелец 21.10, скрин с компьютера): колонка не растягивается под длинную подпись, подпись обрезается многоточием */
.hud-res { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.res { min-width: 0; }
@media (max-width: 560px) { .hud-res { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Выбор профессии и черт (владелец 22.10: «чтобы красиво»): ровная сетка, карточки одной высоты, описание до трёх строк */
.choices.grid.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; align-items: stretch; }
.choices.grid.picks > .opt { margin: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; text-align: left; }
/* Описание целиком: на телефоне три строки обрезали текст на полуслове (Сергей 23.10) */
.choices.grid.picks .pick-desc { display: block; color: var(--muted); font-size: 0.9rem; }
.choices.grid.picks .why { margin-top: auto; }
.pick-locked-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 8px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }
.pick-locked-head .opt { width: auto; margin: 0; padding: 7px 14px; font-size: 0.92rem; white-space: nowrap; }
.locked-grid .opt.locked { opacity: 0.55; cursor: pointer; }
.locked-grid .opt.locked:hover { opacity: 0.8; }
.locked-grid .pick-ico { filter: grayscale(1); }
@media (max-width: 520px) { .pick-locked-head { flex-direction: column; align-items: stretch; } }
.acct-title-btns { display: flex; flex-direction: column; gap: 6px; }
/* Продолжить партию с конца бесплатной части после покупки (28.10), в стиле «Аркады» */
.acct-resume { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; margin-bottom: 12px; padding: 14px 16px; color: #f2e6c8; background: #0d0b08; border: 1px solid rgba(255, 200, 80, 0.55); border-radius: 12px; box-shadow: 0 0 24px rgba(255, 200, 80, 0.12) inset; }
.acct-resume-ico { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: radial-gradient(circle, #2a2114 0%, #0d0b08 75%); border: 2px solid #ffc850; }
.acct-resume b { display: block; color: #ffc850; font-size: 1.08rem; letter-spacing: 0.02em; }
.acct-resume small { display: block; margin-top: 4px; color: #a89f8c; font-size: 0.85rem; }
.acct-resume-btn { font: inherit; font-weight: 700; font-size: 1.02rem; color: #140f06; background: #ffc850; border: 0; border-radius: 10px; padding: 12px 22px; cursor: pointer; white-space: nowrap; box-shadow: 0 0 18px rgba(255, 200, 80, 0.35); }
.acct-resume-btn:hover { background: #ffd877; }
.acct-resume-btn:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 520px) { .acct-resume { grid-template-columns: 44px 1fr; } .acct-resume-ico { width: 44px; height: 44px; } .acct-resume-btn { grid-column: 1 / -1; width: 100%; } }
@media (max-width: 520px) { .acct-title-btns { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } }
/* Окно рекордов вкладками (владелец 22.10) */
.lb-tabs { display: flex; gap: 6px; margin: 0 0 12px; }
.lb-tabs button { flex: 1; padding: 8px 10px; font: inherit; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.lb-tabs button.on { color: var(--accent); border-color: var(--accent); }
.lb-wrap { overflow-x: auto; }
.lb-grid { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.lb-grid th { text-align: left; font-weight: 400; font-size: 0.78rem; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lb-grid td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lb-grid .lb-num { text-align: right; white-space: nowrap; } .lb-grid th:last-child { text-align: right; }
.lb-grid tr.me td { background: rgba(217, 164, 65, 0.1); }
.lb-grid .lb-place { width: 2em; text-align: center; }
.lb-grid .lb-prof, .lb-grid .lb-end { color: var(--muted); }
@media (max-width: 560px) { .lb-grid .lb-prof { display: none; } }
.lb-nickrow { display: flex; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.lb-nickrow .muted { font-size: 0.86rem; margin: 0; }
.lb-nickrow input { flex: 1; min-width: 120px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: inherit; font: inherit; }
.lb-nickrow .opt { width: auto; margin: 0; }
/* Кабинет как ворота: за ним ничего не видно, кроме самого окна кабинета */
body.acct-gate #app > *:not(#acct-modal):not(#lb-modal):not(#review-modal) { visibility: hidden; } /* отзыв из кабинета в любой момент (владелец 22.10) */
/* Карточки «Пол» как профессии */
.gender-pick .pick-ico { font-size: 1.3rem; color: var(--accent); }
/* Орда «Подъезд в разрезе» на механике нынешней (владелец 22.10): этажи строками */
.hz2-rows { position: relative; max-width: 460px; margin: 8px auto; }
.hz-rows { max-width: none; margin: 0; }
.hz-rows .hs-floor { cursor: default; }
.hz2-rows.placing .hs-floor:not(.mine) { cursor: pointer; }
.hz2-rows.placing .hs-floor:not(.mine) .hs-flight { border-color: rgba(217, 164, 65, 0.55); }
.hz-rows .hs-flight { display: flex; height: 32px; }
.hz-rows .hs-lane { position: absolute; inset: 0; }
.hz-rows .hs-flight.walled .hs-lane { position: relative; inset: auto; flex: 1; min-width: 0; }
.hz-rows .hs-objs { position: absolute; right: 6px; top: 4px; bottom: 4px; display: flex; gap: 4px; }
.hz-rows .hs-flight.walled .hs-objs { position: static; flex: none; padding: 4px 6px 4px 0; }
.hz-rows .hs-objs .hs-obj { position: relative; right: auto; top: auto; bottom: auto; }
.hz-rows .hs-cnt { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font-size: 0.72rem; color: #e8dcc0; text-shadow: 0 0 3px #000; }
/* Одинаковые строки (владелец 22.10: «непонятно, почему строки различаются цветом»); толпа тёмно-красной полосой */
.hz-rows .hs-floor .hs-flight { background: #1c1a16; }
.hz-rows .hs-floor.mine .hs-flight { background: #1c1a16; }
.hz-rows .hs-mass { background: linear-gradient(90deg, rgba(110, 28, 20, 0.55), rgba(175, 48, 30, 0.95)); box-shadow: none; }
.hz-rows .hs-num { width: 22px; text-align: center; }
.hz-rows .hs-door { position: absolute; right: 6px; top: 4px; bottom: 4px; padding: 0 8px; display: flex; align-items: center; font-size: 0.72rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; }
.hz-yard { text-align: center; margin: 4px 0 0; }
.hz2-rows .hz-sound { position: static; display: block; margin: 6px 0 0 auto; }
/* Завал, который сейчас ломают (владелец 22.10): красная рамка, при ударе вздрагивает */
.hz-rows .hs-obj.beaten { outline: 2px solid #d05a40; outline-offset: -1px; }
.hz-rows .hs-obj.shake { animation: hzShake 0.24s linear; }
@keyframes hzShake { 0% { transform: translateX(0); } 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } 100% { transform: translateX(0); } }
/* Лаборатория вкладками и карточками (владелец 22.10: «раздели по категориям, причеши») */
.lab-inner { max-width: 680px; padding: 18px; }
.lab-tabs { display: flex; gap: 6px; margin: 12px 0 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.lab-tabs button { flex: 1; padding: 9px 10px; font: inherit; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.lab-tabs button.on { color: var(--accent); border-color: var(--accent); }
.lab-body { display: flex; flex-direction: column; gap: 10px; }
.lab-card { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.lab-card.cur { border-color: var(--accent); }
.lab-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.lab-card-head b { font-size: 1rem; }
.lab-card .hint { margin: 0 0 10px; font-size: 0.86rem; }
.lab-tag { font-size: 0.75rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
.lab-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.lab-btns .opt { width: auto; margin: 0; padding: 8px 14px; }
.lab-card .lab-row { margin: 6px 0 0; }
.lab-card .lab-row .opt { width: auto; margin: 0; padding: 6px 12px; }
.lab-card > .opt.start { margin: 8px 0 0; }
.lab-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 4px; }
@media (max-width: 520px) { .lab-tabs button { padding: 8px 4px; font-size: 0.85rem; } }
/* Доски в квартиру: выбор числом вместо «−/+» (владелец 22.10) */
.prep-flat { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.prep-flat small { display: block; color: var(--muted); font-size: 0.8rem; }
.prep-pick { display: flex; gap: 4px; }
.prep-pick button { min-width: 34px; padding: 6px 8px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.prep-pick button.on { color: var(--accent); border-color: var(--accent); }
/* Итог ночи орды (владелец 22.10: «каша из букв») */
.hz-done-head { margin: 4px 0 12px; font-size: 1.15rem; } .hz-done-head.good { color: var(--good); } .hz-done-head.bad { color: var(--bad); }
.hz-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.hz-st { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.hz-st b { display: block; font-size: 1.1rem; }
.hz-st span { font-size: 0.8rem; color: var(--muted); }
.hz-done-sub { margin: 4px 0 6px; font-size: 0.9rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.hz-worked { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hz-worked li { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: 6px; background: var(--panel-2); font-size: 0.92rem; }
.hz-worked li span { width: 1.4em; text-align: center; flex: none; }
/* Подготовка к орде (владелец 22.10: «каша из букв») */
.hz-prep .hz-stats { margin: 4px 0 10px; }
.hz-tip-line { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 0 8px 8px 0; font-size: 0.92rem; }
.hz-prep .hs-kit { margin-bottom: 10px; }
.prep-flat { align-items: center; }
.prep-flat-txt { flex: 1; min-width: 220px; }
.prep-flat-txt b { display: block; margin-bottom: 2px; }
/* Вещи для орды компактнее (владелец 22.10: «очень крупные кнопки») */
.hz-prep .hs-kit { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 5px; }
.hz-prep .hs-kit .opt { padding: 7px 10px; min-height: 0; font-size: 0.9rem; text-align: center; }
.hz-prep .hs-kit .opt i { font-style: normal; color: var(--accent); margin-left: 2px; }
/* Вещи рядом с подъездом (владелец 22.10: «выбрать вещь, крутить вниз, нажать этаж, крутить вверх») */
.hz-prep-main { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: start; }
.hz-prep-side { position: sticky; top: 8px; }
.hz-prep-side .hs-kit { grid-template-columns: 1fr; }
.hz-prep-side .hz-tip-line { font-size: 0.85rem; }
@media (max-width: 699px) {
  .hz-prep-main { grid-template-columns: 1fr; }
  .hz-prep-side { top: 0; z-index: 5; background: var(--bg); padding: 6px 0; }
  .hz-prep-side .hs-kit { display: flex; overflow-x: auto; flex-wrap: nowrap; }
  .hz-prep-side .hs-kit .opt { flex: 0 0 auto; white-space: nowrap; }
}
.hz-prep-main > * { min-width: 0; }
/* Сколько вещей на этаже при подготовке (владелец 22.10) */
.hs-slots { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font-size: 0.75rem; color: var(--muted); z-index: 2; pointer-events: none; }
.hs-slots.empty { opacity: 0.45; }
.hs-slots.full { color: var(--accent); font-weight: 700; }
/* Запас досок: плюс/минус и последствие для двери (владелец 22.10) */
.prep-step { display: flex; align-items: center; gap: 8px; }
.prep-step button { width: 36px; height: 36px; font: inherit; font-size: 1.2rem; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.prep-step button:disabled { opacity: 0.35; cursor: default; }
.prep-step b { min-width: 22px; text-align: center; font-size: 1.15rem; }
.prep-step span { color: var(--muted); font-size: 0.85rem; min-width: 150px; }
/* Доски снимаются с баррикады на двери: плашка красная, при снятии вспыхивает (владелец 22.10) */
.hz-st.down { border-color: #8a3a2c; }
.hz-st.down b { color: #e0705a; }
.hz-st b small { font-size: 0.75rem; margin-left: 6px; color: #e0705a; }
.hz-st.drop { animation: hzDrop 0.7s ease-out; }
@keyframes hzDrop { 0% { background: #6b2418; transform: scale(1.06); } 100% { transform: none; } }
/* Орда: цифры фишками, кнопки компактные (владелец 22.10: «доведи до ума, кнопки большие») */
.hz-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 8px; }
.hz-chips span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); font-size: 0.85rem; color: var(--text); white-space: nowrap; }
.hz-chips span.warn { border-color: #8a3a2c; color: #ff8a6a; }
.hz-throw { max-width: 260px; }
.hz-throw .opt { padding: 8px 10px; font-size: 0.95rem; }
.hf-map { max-width: 400px; }
.hf-msg { text-align: center; min-height: 2.6em; margin: 4px 0 6px; font-style: italic; }
.hf-bar { max-width: 520px; margin: 0 auto; }
.hf-bar .hf-go { margin: 0 0 6px; gap: 5px; }
.hf-bar .opt { padding: 7px 8px; font-size: 0.9rem; min-height: 0; text-align: center; }
.hf-bar kbd { margin-left: 6px; padding: 0 5px; font: 0.7rem/1.5 inherit; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; }
.hf-bar .hf-actions { display: flex; gap: 5px; }
.hf-bar .hf-actions .opt { flex: 1; }
.hf-bar .hf-actions .opt[hidden] { display: none; }
@media (max-width: 560px) { .hf-bar kbd { display: none; } .hf-bar .hf-actions { flex-direction: column; } }
/* Плитка, которой не хватит на эту ночь: красная рамка (владелец 22.10) */
.res.short { box-shadow: inset 0 0 0 1px #c0553f; }
.burn-pop p.warn { color: #e0705a; }
/* Главная на телефоне (владелец 22.10: «текст сливается с фоном»): фон темнее, у текста тень, мелкий текст светлее */
@media (max-width: 700px) {
  .cover-bg::after { background: linear-gradient(to bottom, rgba(0,0,0,0.62), rgba(0,0,0,0.86) 45%, rgba(0,0,0,0.92)); }
  .land-title, .land-lead, .land-text, .land-cta + p, .land-intro p { text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 0 12px rgba(0,0,0,0.8); }
  .land-text { color: #cfc6b8; }
}
/* Чем заливать канистры (владелец 22.10) */
.hz-src { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; font-size: 0.85rem; color: var(--muted); }
.hz-src button { padding: 4px 10px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.hz-src button.on { color: var(--accent); border-color: var(--accent); }
/* Чем заливать канистры (владелец 22.10) */
.hz-src { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; font-size: 0.85rem; color: var(--muted); }
.hz-src button { padding: 4px 10px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.hz-src button.on { color: var(--accent); border-color: var(--accent); }
/* Настройки в кабинете (владелец 22.10) */
.acct-settings .set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.acct-settings small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.set-switch { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.set-switch button { padding: 6px 12px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.set-switch button.on { color: var(--accent); border-color: var(--accent); }
/* Вкладка «Сайт»: список игроков (владелец 22.10) */
.site-h { margin: 14px 0 6px; }
.site-players { overflow-x: auto; }
.site-players table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.site-players th, .site-players td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.site-players th { color: var(--muted); font-weight: normal; }
.site-players small.bad { color: #e0705a; } .site-players small.ok { color: #8fbf6a; }
/* Подпись студии в подвале (владелец 22.10) */
.studio-mark { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.8rem; text-decoration: none; }
.studio-mark img { border-radius: 50%; }
.studio-mark:hover { color: var(--accent); }
/* Обучение на первой орде (владелец 22.10): затемнение с окном вокруг одной кнопки, подсказка рядом, «Пропустить обучение» сбоку */
.ht-spot { position: fixed; z-index: 10000; pointer-events: none; border: 2px solid var(--accent); border-radius: 10px; box-shadow: 0 0 0 200vmax rgba(0, 0, 0, 0.62), 0 0 14px rgba(217, 164, 65, 0.7); transition: left 0.15s, top 0.15s, width 0.15s, height 0.15s; animation: htPulse 1.2s ease-in-out infinite; }
@keyframes htPulse { 50% { box-shadow: 0 0 0 200vmax rgba(0, 0, 0, 0.62), 0 0 26px rgba(217, 164, 65, 1); } }
.ht-tip { position: fixed; z-index: 10001; pointer-events: none; max-width: min(280px, calc(100vw - 32px)); padding: 8px 12px; border: 1px solid var(--accent); border-radius: 8px; background: #2a2418; color: #f1e6cf; font-size: 0.95rem; line-height: 1.3; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.ht-tip.free { opacity: 0.9; border-style: dashed; }
.ht-skip { position: fixed; z-index: 10002; top: 10px; right: 10px; padding: 3px 8px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; background: rgba(20, 18, 16, 0.85); color: var(--muted); font-size: 0.75rem; cursor: pointer; }
.ht-skip:hover { color: var(--accent); }
.ht-spot[hidden], .ht-tip[hidden], .ht-skip[hidden] { display: none; }

/* Главная из личного кабинета (22.10): форма входа не нужна, вместо неё «Ты в аккаунте» */
.site-in #auth-box .cover-tabs, .site-in #auth-box .cover-form { display: none !important; }
.site-in #auth-in { display: block !important; }
.auth-in p { margin: 0 0 14px; }
.auth-in b { display: block; margin-top: 4px; overflow-wrap: anywhere; } /* почта целиком своей строкой, а не «co / m» */
.auth-in .opt { width: 100%; }

/* Новая покупка за сутки в кабинете владельца (22.10) */
.site-new { margin: 6px 0; padding: 8px 12px; border: 1px solid var(--ok, #7fb069); border-radius: 8px; color: var(--ok, #7fb069); }

/* Поддержал игру (22.10): значок в кабинете, ползунок громкости, титры в конце партии */
.supporter { margin-left: 8px; font-size: 0.85em; color: #e8b84a; white-space: nowrap; }
.set-vol { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.set-vol input { flex: 1; accent-color: #e8b84a; }
.set-vol span { min-width: 3em; text-align: right; font-variant-numeric: tabular-nums; }
.credits { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }
.credits h3 { margin: 0 0 8px; }

/* Шапка (владелец 23.10): рекорды убраны в кабинет, на их месте кружок личного кабинета. На телефоне только значок */
#lb-btn { display: none !important; }
@media (max-width: 600px) {
  #acct { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; font-size: 1.15rem; display: inline-flex; align-items: center; justify-content: center; }
  #acct[hidden] { display: none; }
  #acct #acct-name { display: none; }
}

/* Подвал строками (23.10) */
.foot { flex-direction: column; gap: 10px; }
.foot-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 22px; }
.foot-legal, .foot-legal a { font-size: 0.82rem; color: var(--muted); }
.foot-legal a { text-decoration: underline; }
.foot-copy { font-size: 0.8rem; color: var(--muted); gap: 6px 16px; }
.foot-row:empty { display: none; }
.foot-copy .copy-mark { flex-basis: auto; }

/* Поделиться итогом (23.10) */
.share-msg { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; white-space: pre-line; text-align: center; }

/* Подсказка про «Спам» у входа и регистрации (23.10) */
.spam-note { margin-top: 10px; font-size: 0.82rem; }

/* Создание героя: очки и «Начать» закреплены внизу экрана (23.10). sticky тут не работает: body с overflow-x hidden сам становится контейнером прокрутки */
.setup-bar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(608px, 100%); box-sizing: border-box; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(20, 19, 17, 0.96); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.45); }
.setup-bar .points { margin: 0; font-size: 1.25rem; white-space: nowrap; }
.setup-bar .opt.start { margin: 0; flex: 0 1 auto; width: auto; min-width: 0; }
.app.setup { padding-bottom: 96px; }
/* 29.10 разбор: кнопка звука в плавающей строке слева, а не поверх карточек профессий */
.app.setup .setup-bar { padding-left: 68px; }
.app.setup .music-toggle { z-index: 31; right: auto; left: max(14px, calc(50% - 290px)); bottom: calc(12px + env(safe-area-inset-bottom)); }

/* Достижения на экране «Кто ты?» свёрнуты (владелец 23.10: кто хочет, посмотрит) */
.ach-fold { margin-top: 22px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.ach-fold > summary { cursor: pointer; padding: 12px 0; color: var(--muted); font-family: var(--f-ui); list-style: none; }
.ach-fold > summary::-webkit-details-marker { display: none; }
.ach-fold > summary::after { content: ' ▾'; }
.ach-fold[open] > summary::after { content: ' ▴'; }
.ach-fold[open] { padding-bottom: 14px; }
.ach-fold .ach-head { margin-top: 0; }

/* Подготовка к орде: «Ждать ночь» закреплена внизу экрана (владелец 23.10) */
.hz-go-bar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(608px, 100%); box-sizing: border-box; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(20, 19, 17, 0.96); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.45); }
.hz-go-bar .hz-go-sel { font-family: var(--f-ui); font-size: 0.9rem; color: var(--muted); }
.hz-go-bar .hz-go-sel b { color: var(--accent); }
.hz-go-bar .opt.start { margin: 0; flex: 0 0 auto; width: auto; }
.hz-prep { padding-bottom: 70px; }
body:has(.hz-go-bar) .music-toggle { bottom: 84px; }

/* Подарить полную версию из таблицы игроков (23.10) */
.gift-btn { font-size: 0.8rem; margin-left: 6px; white-space: nowrap; }

/* Цифры игры на главной у входа (23.10) */
.land-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; padding: 0; } /* отступ до «Играть», чтобы плашки не липли к кнопке (владелец 23.10) */
.land-facts li { border: 1px solid rgba(232, 184, 74, 0.35); border-radius: 999px; padding: 4px 12px; font-family: var(--f-ui); font-size: 0.88rem; color: var(--text); background: rgba(0, 0, 0, 0.35); }
.land-facts b { color: var(--accent); margin-right: 4px; }

/* Громилы (владелец 23.10): красная мигающая точка на полосе толпы и красная плашка на подготовке */
.hs-brute { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #ff3b2f; border: 2px solid #ffe2c4; box-sizing: border-box; box-shadow: 0 0 0 0 rgba(224, 74, 58, 0.7); animation: brutePulse 1s ease-out infinite; pointer-events: none; z-index: 2; }
@keyframes brutePulse { 0% { box-shadow: 0 0 0 0 rgba(224, 74, 58, 0.75); transform: scale(1); } 70% { box-shadow: 0 0 0 8px rgba(224, 74, 58, 0); transform: scale(1.15); } 100% { box-shadow: 0 0 0 0 rgba(224, 74, 58, 0); transform: scale(1); } }
.hz-st.brute { border-color: rgba(224, 74, 58, 0.6); }
.hz-st.brute b { color: #e04a3a; }
/* Игра без регистрации (владелец 23.10): гостю свои подсказки, лишнее для гостя прячем */
body:not(.guest) .guest-only { display: none !important; }
body.guest .noguest { display: none !important; }
.site-in [data-guest], .site-in .guest-play-box, .site-in #guest-back { display: none !important; }
.land-cta .opt.guest-play { width: auto; padding: 14px 22px; background: transparent; }
.guest-play-box { margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; font-family: var(--f-ui); font-size: 0.9rem; color: var(--muted); }
.guest-play-box .opt.guest-main { width: 100%; padding: 16px 20px; font-size: 1.15rem; font-weight: 700; background: #ffc850; border-color: #ffc850; color: #1a1408; border-radius: 10px; }
.guest-play-box .opt.guest-main:hover { background: #ffd57a; border-color: #ffd57a; }
.guest-play-box small { font-size: 0.78rem; color: var(--muted); }
.guest-or { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 0.8rem; }
.guest-or::before, .guest-or::after { content: ""; flex: 1; height: 1px; background: #3d362a; }
#guest-back { margin-top: 12px; width: 100%; }
.guest-warn { color: var(--accent); }
.guest-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 10px; padding: 6px 10px; font-family: var(--f-ui); font-size: 0.82rem; color: var(--muted); border: 1px dashed color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 8px; }
.guest-note .guest-btns { display: flex; gap: 10px; align-items: center; }
.guest-note .opt { width: auto; margin: 0; padding: 4px 12px; font-size: 0.82rem; }
.guest-note.loud { padding: 12px 14px; font-size: 0.95rem; color: var(--text); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); border: 1px solid var(--accent); }
.guest-note.loud .opt { padding: 8px 16px; font-size: 0.95rem; }
.acct-who [data-guest-reg] { width: auto; margin: 8px 0 0; padding: 8px 16px; display: block; }
.acct-guest-set { margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 8px; font-family: var(--f-ui); }
.acct-guest-set b, .acct-guest-set small { display: block; }
.acct-guest-set small { color: var(--muted); margin: 4px 0 10px; }
.acct-guest-set .opt { width: auto; }
@media (max-width: 600px) { .land-cta .opt.guest-play { width: 100%; } }

/* Что осталось на лестнице с прошлых ночей и прошлой орды (владелец 23.10) */
.hz-old-line { margin: 6px 0 0; font-family: var(--f-ui); font-size: 0.85rem; color: var(--good, #7fb069); }
/* Разделы в меню обустройства и мастерской (владелец 23.10) */
.choices > .menu-group { margin: 14px 0 0; padding-bottom: 4px; border-bottom: 1px solid #3a352d; }
.choices > .menu-group:first-child { margin-top: 2px; }
.locked-more > .menu-group { margin: 14px 0 0; font-size: 0.7rem; color: var(--muted); padding-bottom: 3px; border-bottom: 1px dashed #3a352d; }

/* «Тело и навыки» как в Project Zomboid (24.10): группы, строка навыка, 10 квадратов уровня */
.skills-block .sk-group { margin: 6px 0 10px; }
.skills-block h5 { margin: 8px 0 4px; font-family: var(--f-ui); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); opacity: 0.85; }
.skills-block ul { list-style: none; margin: 0; padding: 0; }
.sk-row details > summary { display: grid; grid-template-columns: 1fr auto 1.6em; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 6px; cursor: pointer; list-style: none; font-family: var(--f-ui); font-size: 0.9rem; }
.sk-row details > summary::-webkit-details-marker { display: none; }
.sk-row details > summary:hover, .sk-row details[open] > summary { background: rgba(255, 255, 255, 0.04); }
.sk-row.zero .sk-name { color: var(--muted); }
.sk-cells { display: inline-flex; gap: 3px; }
.sk-cells i { width: 12px; height: 12px; border: 1px solid rgba(232, 184, 74, 0.45); border-radius: 2px; background: linear-gradient(90deg, rgba(232, 184, 74, 0.45) var(--p, 0%), transparent var(--p, 0%)); }
.sk-cells i.on { background: #e8b84a; border-color: #e8b84a; }
.sk-lvl { text-align: right; font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; }
.sk-row.zero .sk-lvl { color: var(--muted); font-weight: 400; }
.sk-row p { margin: 2px 8px 8px; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 420px) { .sk-cells { gap: 2px; } .sk-cells i { width: 9px; height: 9px; } .sk-row details > summary { gap: 6px; padding: 5px 4px; font-size: 0.85rem; } }
.skills-block ul { display: block; }

/* Навыки на старте у профессии и черты (24.10) */
.pick-skills { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--accent); opacity: 0.9; }
/* Новости ночи компактнее (владелец 24.10): меньше отступов и мельче шрифт */
.report .news { padding: 3px 8px; margin: 0 0 2px; font-size: 0.84rem; line-height: 1.35; }
.report .news .chips { margin-top: 2px; }

/* Компактный вид 24.10: владелец просил кнопки и отчёт меньше, чтобы не занимали весь экран */
.report { padding: 8px 12px; margin: 0 0 10px; }
.report p { margin: 3px 0; }
.report .night { margin-top: 6px; padding-top: 6px; }
.report .summary { margin-top: 6px; padding-top: 5px; }
.report .find, .tape-out .find { margin: 6px 0; padding: 6px 10px; }
.report-part { margin: 8px 0 2px; }
.report img.report-img { margin: 5px 0; aspect-ratio: 640 / 220; }
.card > p, .tape-now > p, .tape-done > p, .report p.story, .report p.good, .report p.bad, .report p:not([class]) { font-size: 0.95rem; line-height: 1.42; }
.card p { margin: 0 0 10px; }
.card h2 { margin: 0 0 6px; }
.card img.scene { margin-bottom: 10px; aspect-ratio: 640 / 220; }
.next-divider { margin: -2px 0 10px; }
.choices { gap: 5px; }
.act-group { margin: 10px 0 4px; }
button.opt { padding: 6px 11px; border-radius: 6px; font-size: 0.95rem; line-height: 1.3; }
button.opt small { font-size: 0.8rem; line-height: 1.3; }
.chips { margin: 3px 0; gap: 4px; }
@media (max-width: 520px) {
  .card { padding: 10px 11px; }
  .card img.scene { width: calc(100% + 22px); margin: -10px -11px 8px; }
  button.opt { padding: 6px 10px; }
}
/* Таблицы владельца влезают в экран (24.10): перенос строк вместо прокрутки вбок, мельче шрифт и отступы */
.site-players table { font-size: 0.78rem; table-layout: auto; }
.site-players th, .site-players td { white-space: normal; padding: 4px 5px; vertical-align: top; }
.site-players td:first-child { word-break: break-all; min-width: 9em; }
.site-players small { display: inline-block; }
.site-players .gift-btn { padding: 0; font-size: 0.75rem; }
/* Морзянка: кнопка «Следующая буква» мигает, пока её ни разу не нажали (владелец 24.10: «не понял, что нажимать») */
.morse-next.pulse { animation: morsePulse 1.2s ease-in-out infinite; border-color: var(--accent); }
@keyframes morsePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 164, 65, 0.0); } 50% { box-shadow: 0 0 0 5px rgba(217, 164, 65, 0.45); } }
/* Стена покупки (24.10): крючок и список того, что откроется */
.card.paywall .pay-hook { color: var(--accent); font-style: italic; margin: 4px 0 10px; }
.card.paywall .pay-ahead { margin: 0 0 10px; line-height: 1.45; }
.card.paywall .pay-list { margin: 0 0 10px; padding-left: 1.2em; }
.card.paywall .pay-list li { margin: 2px 0; line-height: 1.4; }
/* Меню с описаниями (обустройство, мастерская, вылазки): владелец 25.10 «скомканно, неприятно читать».
   Короткие кнопки дел остаются компактными, а пункты с названием и описанием получают воздух */
button.opt:has(.opt-title) { padding: 12px 16px; border-radius: 8px; }
.choices:has(.opt-title) { gap: 10px; }
.opt .opt-title { font-size: 1.05rem; line-height: 1.3; }
.opt .opt-meta { margin: 8px 0 8px; }
.opt .opt-desc { font-size: 0.9rem; line-height: 1.55; }
.card .menu-group { margin: 22px 0 10px; }
@media (max-width: 520px) { button.opt:has(.opt-title) { padding: 11px 13px; } }
/* Середина между «на весь экран» и «скомканно» (владелец 25.10): кнопки и отчёт с нормальными отступами */
.choices { gap: 8px; }
button.opt { padding: 10px 15px; border-radius: 8px; line-height: 1.35; }
button.opt small { margin-top: 3px; font-size: 0.85rem; line-height: 1.45; }
.act-group { margin: 18px 0 8px; }
.act-group:first-of-type { margin-top: 6px; }
.report { padding: 12px 15px; margin: 0 0 14px; }
.report p { margin: 5px 0; }
.card > p, .tape-now > p, .tape-done > p, .report p.story, .report p.good, .report p.bad, .report p:not([class]) { line-height: 1.5; }
.card p { margin: 0 0 14px; }
@media (max-width: 520px) { button.opt { padding: 10px 13px; } }
.act-group small { margin-top: 3px; font-weight: normal; }
/* Плашки дня в отчёте как новости ночи (25.10): текст переносится, цифры строкой под ним */
.report .news > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.report .news .chips { flex-wrap: wrap; margin: 4px 0 0; }
.report .news.dayline { font-family: var(--f-ui); }
/* Рост навыка: заметная плашка, как достижение (владелец 25.10) */
:is(.report, .tape-out, .action-outcome) .skill-up { display: flex; gap: 10px; align-items: center; margin: 8px 0; padding: 9px 12px; border: 1px solid var(--accent); border-radius: 8px; background: rgba(217, 164, 65, 0.1); font-family: var(--f-ui); }
.skill-up > .skill-up-icon { flex: none; font-size: 1.5rem; line-height: 1; }
.skill-up > div { min-width: 0; }
.skill-up b { display: block; color: var(--accent); font-weight: 700; font-size: 0.98rem; }
.skill-up > div > span { display: block; color: var(--text); font-size: 0.88rem; margin-top: 2px; }
/* Записки в журнале (25.10): каждая карточкой, как вырванный лист */
.notes-list { display: flex; flex-direction: column; gap: 8px; }
.note-card { padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; background: rgba(255, 255, 255, 0.03); }
.note-card b { display: block; color: var(--accent); font-family: var(--f-ui); margin-bottom: 4px; }
.note-card p { margin: 0; font-size: 0.92rem; line-height: 1.5; font-style: italic; color: #ddd6c8; }
/* ===== Орда: новый вид экрана подготовки (владелец 25.10: «визуально не нравится») =====
   Один шрифт интерфейса, цифры строкой, вещи сеткой со значками, этажи как лестничные пролёты */
.hz-prep, .hz-prep button, .hz-prep .opt { font-family: var(--f-ui) !important; }
.hz-prep .hz-stats { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 6px !important; margin: 0 0 10px !important; }
.hz-prep .hz-st { padding: 7px 6px !important; min-height: 0 !important; text-align: center; border-radius: 8px !important; }
.hz-prep .hz-st b { display: block; font-size: 1.15rem !important; line-height: 1.1; color: var(--accent); font-family: var(--f-ui) !important; }
.hz-prep .hz-st span { display: block; font-size: 0.68rem !important; line-height: 1.25; color: var(--muted); margin-top: 2px; }
.hz-prep .hz-tip-line { font-size: 0.9rem !important; padding: 6px 10px !important; margin: 0 0 8px !important; }
.hz-prep .hz-src { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin: 0 0 8px; font-size: 0.82rem; color: var(--muted); }
.hz-prep .hz-src span { margin-right: 8px; }
.hz-prep .hz-src button { font-size: 0.82rem !important; padding: 4px 10px !important; border: 1px solid var(--line) !important; background: var(--panel-2) !important; color: var(--text) !important; border-radius: 0 !important; margin: 0 !important; }
.hz-prep .hz-src button:first-of-type { border-radius: 6px 0 0 6px !important; }
.hz-prep .hz-src button:last-of-type { border-radius: 0 6px 6px 0 !important; border-left: 0 !important; }
.hz-prep .hz-src button.on { background: rgba(217, 164, 65, 0.18) !important; border-color: var(--accent) !important; color: var(--accent) !important; }
.hz-prep .hs-kit { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important; gap: 6px !important; overflow: visible !important; flex-wrap: wrap; }
.hz-prep .hs-kit .opt { padding: 7px 8px !important; font-size: 0.86rem !important; text-align: left !important; border-radius: 7px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-prep .hs-kit .opt::before { margin-right: 6px; }
.hz-prep .hs-kit .opt[data-kind="fridge"]::before { content: '🧊'; }
.hz-prep .hs-kit .opt[data-kind="wardrobe"]::before { content: '🗄'; }
.hz-prep .hs-kit .opt[data-kind="sofa"]::before { content: '🛋'; }
.hz-prep .hs-kit .opt[data-kind="table"]::before { content: '🪑'; }
.hz-prep .hs-kit .opt[data-kind="boards"]::before { content: '🪵'; }
.hz-prep .hs-kit .opt[data-kind="wire"]::before, .hz-prep .hs-kit .opt[data-kind="wire2"]::before { content: '🪢'; }
.hz-prep .hs-kit .opt[data-kind="fire"]::before, .hz-prep .hs-kit .opt[data-kind="fire2"]::before { content: '🛢'; }
/* Этажи: пролёт со ступенями, номер в кружке, твой этаж с дверью */
.hz-prep .hs-floor { align-items: center; gap: 6px; margin: 0 0 4px !important; }
.hz-prep .hs-num { width: 22px; height: 22px; line-height: 22px; border-radius: 50%; text-align: center; font-size: 0.75rem; background: var(--panel-2); color: var(--muted); flex-shrink: 0; }
.hz-prep .hs-floor.mine .hs-num { background: var(--accent); color: #1a1408; font-weight: 700; }
.hz-prep .hs-flight { min-height: 34px !important; border-radius: 6px !important; border: 1px solid #3a352d !important;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 10px, rgba(0,0,0,0.12) 10px 20px), #1d1b18 !important; }
.hz-prep .hs-floor.mine .hs-flight { border-color: var(--accent) !important; background: linear-gradient(90deg, rgba(217,164,65,0.08), rgba(217,164,65,0.02)), #1d1b18 !important; }
.hz-prep .hs-door { font-size: 0.72rem !important; }
.hz-prep .hz-go-bar { font-family: var(--f-ui); }
.mini:has(.hz-prep) { padding-bottom: 72px; }
/* Доски с гвоздями бьют в ответ: красные искры, пока их ломают, и счёт убитых гвоздями (25.10) */
.hs-obj.nails-hit { box-shadow: 0 0 0 1px #e0593f, 0 0 10px rgba(224, 89, 63, 0.75); position: relative; }
.hs-obj.nails-hit::after { content: '✶'; position: absolute; top: -9px; right: -5px; color: #ff6a4d; font-size: 0.9rem; animation: nailSpark 0.35s ease-out infinite alternate; }
@keyframes nailSpark { from { transform: scale(0.7) rotate(0deg); opacity: 0.6; } to { transform: scale(1.3) rotate(25deg); opacity: 1; } }
.hs-obj .hs-kills { margin-left: 4px; font-size: 0.72rem; color: #ff8a70; font-weight: 700; }
/* Орда, доводка (владелец 25.10: «лучше, но не идеально»): ночь и итог в том же стиле, переключатель не переносится */
.hz-prep .hz-src { flex-wrap: nowrap; }
.hz-prep .hz-src span { white-space: nowrap; }
.hz-prep .hz-src button { white-space: nowrap; }
@media (min-width: 700px) { .hz-prep .hz-src { flex-wrap: wrap; } .hz-prep .hz-src span { flex-basis: 100%; margin: 0 0 4px; } }
/* Ночь */
.hs-night, .hs-night button, .hz-done, .hz-done button { font-family: var(--f-ui) !important; }
.hs-night .hs-floor, .hz-done .hs-floor { align-items: center; gap: 6px; margin: 0 0 4px !important; }
.hs-night .hs-num { width: 22px; height: 22px; line-height: 22px; border-radius: 50%; text-align: center; font-size: 0.75rem; background: var(--panel-2); color: var(--muted); flex-shrink: 0; }
.hs-night .hs-floor.mine .hs-num { background: var(--accent); color: #1a1408; font-weight: 700; }
.hs-night .hs-flight { min-height: 34px !important; border-radius: 6px !important; border: 1px solid #3a352d !important;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 10px, rgba(0,0,0,0.12) 10px 20px), #1d1b18 !important; }
.hs-night .hs-floor.mine .hs-flight { border-color: var(--accent) !important; }
.hs-night .hz-chips span { font-family: var(--f-ui); }
/* Итог ночи: плитки строкой, как на подготовке */
.hz-done .hz-done-head { font-family: var(--f-ui) !important; font-size: 1.05rem !important; margin: 0 0 10px !important; }
.hz-done .hz-stats { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)) !important; gap: 6px !important; margin: 0 0 12px !important; }
.hz-done .hz-st { padding: 7px 6px !important; min-height: 0 !important; text-align: center; border-radius: 8px !important; }
.hz-done .hz-st b { display: block; font-size: 1.1rem !important; line-height: 1.15; color: var(--accent); font-family: var(--f-ui) !important; white-space: nowrap; }
.hz-done .hz-st span { display: block; font-size: 0.68rem !important; line-height: 1.25; color: var(--muted); margin-top: 2px; }
.hz-done .hz-done-sub { font-family: var(--f-ui) !important; font-size: 0.78rem !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 4px 0 6px !important; }
.hz-done .hz-worked { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 5px; }
.hz-done .hz-worked li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 10px; border-left: 2px solid rgba(127, 176, 105, 0.5); background: rgba(255, 255, 255, 0.04); border-radius: 4px; font-size: 0.9rem; line-height: 1.4; }
/* Орда, раскладка (владелец 25.10: «всё ещё плохо»): на любой ширине один поток.
   Цифры, подсказка и канистры, вещи сеткой на всю ширину, под ними подъезд. Без пустот и длинного столбца */
.hz-prep .hz-prep-main { display: block !important; }
.hz-prep .hz-prep-side, .hz-prep .hz-prep-scene { width: auto !important; max-width: none !important; flex: none !important; }
.hz-prep .hz-prep-side { margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.hz-prep .hz-tip-line, .hz-prep .hz-src { margin: 0 !important; }
@media (min-width: 700px) { .hz-prep .hz-src { flex-wrap: nowrap; } .hz-prep .hz-src span { flex-basis: auto; margin: 0 8px 0 0; } }
.hz-prep .hs-kit { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; }
.hz-prep .hs-tools { text-align: left; }
.hz-prep .hs-tools .link { font-size: 0.86rem; }
.mini-help > summary:focus { outline: none; }
.mini-help > summary:focus-visible { outline: 1px solid var(--line); border-radius: 4px; }
.hz-prep .hs-house { max-width: 560px; margin: 0 auto; }
.hs-night .hs-house { max-width: 560px; margin: 0 auto; }
@media (max-width: 520px) { .hz-prep .hs-kit { grid-template-columns: repeat(2, 1fr) !important; } .hz-prep .hs-kit .opt { font-size: 0.82rem !important; padding: 7px 7px !important; } }
/* Орда: один отступ под плавающую кнопку «Ждать ночь», не два (владелец 25.10: пустота под подъездом) */
.mini:has(.hz-prep) { padding-bottom: 16px !important; }
.hz-prep { padding-bottom: 64px !important; }
.hz-prep .hs-house, .hs-night .hs-house { max-width: none; }
.hz-prep .hz2 { margin-bottom: 0 !important; }
/* Подъезд на всю ширину, как сетка вещей; на компьютере кнопка «Ждать ночь» сразу под подъездом, без пустоты */
.hz-prep .hz2.hz2-rows, .hs-night .hz2.hz2-rows { max-width: none !important; border: 0 !important; background: none !important; }
@media (min-width: 700px) {
  .hz-prep { padding-bottom: 0 !important; }
  .hz-prep .hz-go-bar { position: static !important; transform: none !important; width: auto !important; margin: 10px 0 0 !important; border-radius: 8px; }
}
/* Отзывы на главной: три в ряд (владелец 25.10), на планшете два, на телефоне один */
.reviews-list { grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }
@media (max-width: 1000px) { .reviews-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .reviews-list { grid-template-columns: 1fr; } }
.acct-tag + .opt[data-continue] { margin-left: 8px; }

/* Ссылка на канал на экране конца игры (владелец 25.10) */
.card.ending .tg-hint{margin:12px 0 0;font-size:.95em;color:var(--muted)}
.card.ending h2.death-cause{font-size:1.9rem;line-height:1.15;margin:0 0 6px}
.card.ending .death-gen{color:var(--muted);margin:0 0 14px}
.card.ending .tg-hint a{color:var(--accent,#e0a84a)}
.note-card.chain{border-left:3px solid var(--accent)}

/* Подарок полной версии (владелец 25.10) */
.acct-gift input,.acct-gift textarea{display:block;width:100%;box-sizing:border-box;margin:8px 0 0}
.acct-gift button{margin-top:10px}
.land-price-box [data-cta="gift"]{margin:6px 8px 0 0;padding:12px 24px}

/* Закреплённая строка ресурсов: появляется, когда большая панель ушла вверх (27.10) */
.mini-hud { position: fixed; top: 0; left: 50%; transform: translate(-50%, -110%); z-index: 50; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; max-width: min(760px, 100vw); width: min(760px, 100vw); box-sizing: border-box; padding: 6px 14px; background: #12100e; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; color: var(--text); font: inherit; font-size: 0.9rem; cursor: pointer; transition: transform 0.2s ease; }
/* 29.10: полоса ресурсов непрозрачная и на всю ширину колонки: заголовки уходят под неё, а не торчат из-под узкой плашки; якоря не прячутся под неё */
html { scroll-padding-top: 46px; }
.mini-hud.on { transform: translate(-50%, 0); }
.mini-hud:not(.on) { visibility: hidden; } /* 29.10 разбор: спрятанная полоса не выглядывает краем из-за экрана */
.mini-hud span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.mini-hud b { font-weight: 600; }
.mini-hud .bad b { color: var(--bad); }
@media (max-width: 520px) { .mini-hud { width: 100vw; border-radius: 0; font-size: 0.82rem; gap: 2px 9px; padding: 5px 8px; } }
.lab-btns .opt.on { border-color: var(--accent); color: var(--accent); }

/* ---------- Подача мини-игр как у ночи орды «Аркада Valve» (владелец 27.10) ----------
   Вся мини-игра на весь экран поверх страницы; палитра THEMES.a из horde-arena2.js: акцент #ffc850, текст #f2e6c8, приглушённый #a89f8c */
.mini.mm-full { --accent: #ffc850; --text: #f2e6c8; --muted: #a89f8c; --panel: #17150f; --panel-2: #201d16; --line: #3d362a;
  position: fixed; inset: 0; z-index: 980; margin: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; border: 0; border-radius: 0;
  overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; color: var(--text); font-family: var(--f-ui); line-height: 1.35;
  background: radial-gradient(ellipse at 50% 28%, #1a170f 0%, #0d0e11 62%, #0a0b0d 100%); }
.mm-full * { font-family: var(--f-ui); }
.mm-full .morse-key, .mm-full .morse-key *, .mm-full .morse-cell, .mm-full .radio-text { font-family: ui-monospace, Menlo, Consolas, monospace; }
.mm-stage { display: flex; flex-direction: column; box-sizing: border-box; width: 100%; max-width: 560px; min-height: 100%; margin: 0 auto; padding: 12px 16px 10px; }
.mm-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.mm-top b { color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.mm-full .mini-body { margin: auto 0; }
.mm-full .mini-skip-row { justify-content: center; margin-top: 12px; }
/* Экраны перед игрой и итога: вуаль поверх всей мини-игры */
.mm-over { position: fixed; inset: 0; z-index: 3; display: none; padding: 16px; overflow: auto; overscroll-behavior: contain;
  background: radial-gradient(ellipse at 50% 42%, rgba(9, 9, 11, 0.97), rgba(9, 9, 11, 0.99) 70%); }
.mm-in { margin: auto; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; min-width: 0; text-align: center; }
.mm-head, .mm-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mm-in p { margin: 0; }
.mm-k { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.mm-big { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.02; color: #ffc850; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8); }
.mm-big.bad { color: #e0806a; }
.mm-lead { font-size: 15px; color: var(--text); opacity: 0.92; }
.mm-dim { font-size: 13px; color: var(--muted); }
.mm-a { animation: mmIn 0.32s ease-out backwards; } @keyframes mmIn { from { opacity: 0; transform: translateY(6px) scale(0.97); } }
.mm-meds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; margin-top: 4px; }
.mm-mi { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.mm-mi b { font-size: 14px; color: var(--text); line-height: 1.15; } .mm-mi small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.mm-med { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ffc850;
  background: radial-gradient(circle at 35% 30%, #3a2f1c, #14110b 70%); border: 2px solid #ffc850;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03), 0 0 18px rgba(255, 200, 80, 0.28), inset 0 0 12px rgba(0, 0, 0, 0.7); }
.mm-med svg { width: 52%; height: 52%; }
.mm-med.st { width: 58px; height: 58px; border-color: #4a4335; color: #3a352c; box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7); }
.mm-med.st.on { border-color: #ffc850; color: #ffc850; box-shadow: 0 0 16px rgba(255, 200, 80, 0.28), inset 0 0 10px rgba(0, 0, 0, 0.6); }
.mm-med.st.on svg { animation: mmPop 0.45s ease-out backwards; } @keyframes mmPop { from { transform: scale(0.2); opacity: 0; } 70% { transform: scale(1.25); } }
.mm-starrow { display: flex; justify-content: center; gap: 14px; margin: 4px 0; }
.mm-starrow > div:nth-child(2) .mm-med.st.on svg { animation-delay: 0.2s; } .mm-starrow > div:nth-child(3) .mm-med.st.on svg { animation-delay: 0.4s; }
.mm-gk { margin-top: 4px !important; }
.mm-goals { display: flex; flex-direction: column; gap: 0; width: 100%; max-width: 380px; margin: 0 auto; text-align: left; }
.mm-goal { display: grid; grid-template-columns: 58px auto 1fr; align-items: baseline; column-gap: 10px; padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.mm-goal:last-child { border-bottom: 0; }
.mm-goal b { font-size: 15px; color: var(--text); } .mm-goal small { font-size: 12.5px; color: var(--muted); text-align: right; }
.mm-st { font-size: 16px; letter-spacing: 1px; color: #ffc850; white-space: nowrap; } .mm-st i { font-style: normal; color: #3a352c; }
.mm-btn { display: block; width: 100%; max-width: 300px; margin: 4px auto 0; min-height: 54px; padding: 10px 18px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #ffd877, #f0b33a); color: #1a1408; font-size: 19px; font-weight: 700; letter-spacing: 0.3px; cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 200, 80, 0.45); transition: transform 0.15s, box-shadow 0.15s, filter 0.15s; }
.mm-btn:hover, .mm-btn:focus-visible { filter: brightness(1.06); transform: translateY(-1px) scale(1.02); box-shadow: 0 6px 22px rgba(255, 200, 80, 0.45); outline: none; }
.mm-btn:not(:disabled) { animation: mmBreath 2.4s ease-in-out 1s infinite; } @keyframes mmBreath { 50% { box-shadow: 0 4px 30px rgba(255, 200, 80, 0.45); } }
.mm-btn:disabled { opacity: 0.6; cursor: default; }
.mm-key { margin: 6px 0 0 !important; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
@media (pointer: coarse) { .mm-key { display: none; } }
.mm-more { width: 100%; max-width: 440px; margin: 0 auto; font-size: 13px; color: var(--muted); text-align: left; line-height: 1.45; }
.mm-more summary { cursor: pointer; text-align: center; color: var(--accent); padding: 6px 0; } .mm-more p { margin: 6px 0 0 !important; }
.mm-skipline { opacity: 0.55; font-size: 12px; color: var(--muted); } .mm-skipline .mini-skip { font-size: 12px; color: var(--muted); }
/* Кнопки внутри игр: главное действие золотое и крупное, остальные тёмные */
.mm-full button.opt { background: #16140f; border-color: #3d362a; color: var(--text); border-radius: 10px; }
.mini.mm-full button.opt.start, .mini.mm-full .mini-go, .mini.mm-full .mini-hook, .mini.mm-full .mini-hold, .mini.mm-full .morse-next, .mini.mm-full .morse-go, .mini.mm-full [data-done] {
  display: block; width: 100%; max-width: 420px; margin: 10px auto 0; min-height: 56px; padding: 12px 18px; border: 0; border-radius: 12px; text-align: center;
  background: linear-gradient(180deg, #ffd877, #f0b33a); color: #1a1408; font-size: 18px; font-weight: 700; box-shadow: 0 4px 18px rgba(255, 200, 80, 0.35); }
.mini.mm-full button.opt.start:disabled, .mini.mm-full .mini-go:disabled, .mini.mm-full .morse-next:disabled { opacity: 0.45; box-shadow: none; }
.mm-full .mini-msg { color: var(--muted); text-align: center; }
.mm-full .mini-bar { background: #17150f; }
.mm-full .mini-range { accent-color: #ffc850; }
/* Замок, рыбалка, рация, растяжки: крупнее, по центру */
.mm-full .lock-svg { max-width: 520px; }
.mm-full .lock-msg { font-size: 15px; }
.mm-full .bob-water { height: 220px; border-color: #2a2f30; }
.mm-full .bob-msg { font-size: 15px; color: var(--text); min-height: 2.6em; }
.mm-full .fish-track, .mm-full .fish-catch { height: 260px; }
.mm-full .fish-track { width: 86px; }
.mm-full .fish-msg { font-size: 15px; color: var(--text); }
.mm-full .radio-text { font-size: 17px; text-align: center; min-height: 3.2em; color: #9be07a; }
.mm-full .sig-label { font-size: 15px; color: var(--text); }
.mm-full .mini-bar.signal { height: 12px; }
.mm-full .mines { max-width: 380px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mm-full .mines button { font-size: 17px; border-radius: 6px; }
.mm-full .mines-tools .opt { width: auto; display: inline-block; }
.mm-full .tp-grid { max-width: 420px; border-color: #5a4c30; }
.mm-full .tp-item small { color: var(--text); }
.mm-full[data-kind=trunk] .mini-actions { justify-content: center; }
.mm-full[data-kind=trunk] .mini-actions > span { display: none; }
/* «Готово» в багажнике и морзянке заканчивает игру сразу: не золотое, чтобы не жали по привычке до укладки */
.mini.mm-full button.opt[data-done], .mini.mm-full button.opt.morse-go { background: transparent; color: #ffc850; box-shadow: inset 0 0 0 1px rgba(255, 200, 80, 0.6); font-size: 16px; min-height: 50px; }
.mm-full .morse-win { height: 190px; border-color: #2a2820; }
.mm-full .morse-state { color: var(--text); font-size: 14px; text-align: left; }
.mm-full .morse-ctl { justify-content: center; }
.mm-full .morse-ctl .morse-next { margin: 0; flex: 1 1 100%; }
.mm-full .morse-ctl .link { color: var(--accent); }
.mm-full .morse-key { background: #16140f; border-color: #3d362a; }
.mm-full .morse-key.zone { border-color: rgba(255, 200, 80, 0.6); background: rgba(255, 200, 80, 0.09); }
/* Широкий экран с мышью: шире, экран перед игрой в две колонки, игры раскладываются по месту */
@media (min-width: 900px) {
  .mm-stage { max-width: 1080px; padding: 22px 36px 14px; }
  .mm-top { font-size: 12px; }
  .mm-over { padding: 24px 36px; }
  .mm-in { max-width: 520px; gap: 14px; }
  .mm-in.pre { max-width: 940px; display: grid; grid-template-columns: 1.05fr 1fr; column-gap: 56px; align-items: center; text-align: left; }
  .mm-in.pre .mm-meds { justify-items: start; text-align: left; gap: 22px; }
  .mm-in.pre .mm-mi { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; align-content: center; }
  .mm-in.pre .mm-mi .mm-med { grid-row: span 2; }
  .mm-in.pre .mm-mi b { align-self: end; } .mm-in.pre .mm-mi small { align-self: start; }
  .mm-in.pre .mm-meds { grid-template-columns: 1fr; }
  .mm-in.pre .mm-goals { max-width: none; }
  .mm-in.pre .mm-btn { max-width: none; min-height: 64px; font-size: 22px; text-transform: uppercase; letter-spacing: 1px; }
  .mm-in.pre .mm-more, .mm-in.pre .mm-skipline { max-width: none; }
  .mm-in.pre .mm-gk, .mm-in.pre .mm-dim, .mm-in.pre .mm-key, .mm-in.pre .mm-skipline { text-align: center; }
  .mm-big { font-size: 46px; }
  .mm-in.end .mm-big { font-size: 56px; }
  .mm-lead { font-size: 17px; }
  .mm-med { width: 76px; height: 76px; }
  .mm-med.st { width: 72px; height: 72px; }
  .mm-mi b { font-size: 16px; } .mm-mi small { font-size: 13px; }
  .mm-goal b { font-size: 16px; } .mm-goal small { font-size: 13.5px; }
  .mm-full .lock-svg { max-width: 760px; }
  .mm-full .bob-water { height: 340px; max-width: 900px; margin-left: auto; margin-right: auto; }
  .mm-full .fish-track, .mm-full .fish-catch { height: 420px; }
  .mm-full .fish-track { width: 120px; } .mm-full .fish-catch { width: 20px; } .mm-full .fish-fish { font-size: 30px; }
  .mm-full .mini-body > .mini-bar, .mm-full .mini-body > .mini-msg, .mm-full .mini-body > .mini-range, .mm-full .mini-body > .radio-text { display: block; max-width: 760px; margin-left: auto; margin-right: auto; }
  .mm-full .radio-text { font-size: 24px; }
  .mm-full .mines { max-width: 500px; gap: 6px; }
  .mm-full .mines button { font-size: 21px; }
  /* Морзянка: слева окно, клетки и кнопки; справа таблица */
  .mm-full[data-kind=morse] .mini-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; align-items: start; }
  .mm-full[data-kind=morse] .mini-body > * { grid-column: 1; }
  .mm-full[data-kind=morse] .morse-keys { grid-column: 2; grid-row: 1 / span 6; margin: 6px 0 0; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mm-full[data-kind=morse] .morse-win { height: 240px; }
  .mm-full[data-kind=morse] .morse-go, .mm-full[data-kind=morse] .morse-next { max-width: none; }
  /* Багажник: слева багажник, справа вещи и кнопка */
  .mm-full[data-kind=trunk] .mini-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 36px; align-items: center; }
  .mm-full[data-kind=trunk] .tp-grid { grid-column: 1; grid-row: 1 / span 3; width: 100%; max-width: 560px; }
  .mm-full[data-kind=trunk] .mini-body > :not(.tp-grid) { grid-column: 2; }
  .mm-full[data-kind=trunk] .tp-tray { --cs: 30px; gap: 16px; }
}
@media (max-width: 400px) { .mm-big { font-size: 30px; } .mm-med { width: 56px; height: 56px; } .mm-goal { grid-template-columns: 52px auto 1fr; } .mm-goal small { font-size: 12px; } }

/* ---------- Поля мини-игр (дизайнер 27.10): живые сцены вместо пустых прямоугольников. Тёмно, холодный свет, тонкие контуры, акцент #ffc850 ---------- */
.mm-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; }
/* Рыбалка: поклёвка. Поплавок с огоньком на антенне, как ночной */
.mm-full .bob-water { height: 340px; background: #060b12; border: 1px solid #1f2a33; border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.03); }
.mm-full .bob-float { width: 14px; height: 30px; margin: -26px 0 0 -7px; }
.mm-full .bob-float i { position: relative; width: 14px; height: 30px; border-radius: 50% 50% 46% 46% / 30% 30% 70% 70%; box-shadow: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(255,255,255,0.15) 40%, rgba(0,0,0,0.3)), linear-gradient(#e2513f 0 44%, #f2ede0 44% 62%, #2b2f33 62% 100%); }
.mm-full .bob-float i::before { content: ''; position: absolute; left: 50%; top: -14px; width: 2px; height: 15px; margin-left: -1px; background: #e2513f; }
.mm-full .bob-float i::after { content: ''; position: absolute; left: 50%; top: -18px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #ffe9a8; box-shadow: 0 0 8px 3px rgba(255, 200, 80, 0.55); animation: bobLamp 2.6s ease-in-out infinite; }
@keyframes bobLamp { 50% { box-shadow: 0 0 12px 5px rgba(255, 200, 80, 0.4); } }
.mm-full .bob-float::after { content: ''; position: absolute; left: 50%; top: 24px; width: 26px; height: 7px; margin-left: -13px; border-radius: 50%; background: radial-gradient(rgba(255, 200, 120, 0.22), rgba(255, 200, 120, 0) 70%); }
.mm-full .bob-ring { top: calc(50% + 4px); border-width: 1px; border-color: rgba(200, 225, 240, 0.5); }
.mm-full .bob-tries { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 2px 0 0; }
/* Вываживание: вид под водой, рамка как обод подсачека, шкала улова со звёздами */
.mm-full .fish-wrap { gap: 14px; align-items: stretch; }
.mm-full .fish-track { flex: 1 1 auto; width: auto; max-width: 420px; height: 340px; margin: 0; overflow: hidden; background: #07141c; border: 1px solid #1f3340; border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55); }
.mm-full .fish-zone { z-index: 1; height: 22%; background: linear-gradient(180deg, rgba(255, 200, 80, 0.1), rgba(255, 200, 80, 0.03) 50%, rgba(255, 200, 80, 0.1)); border: 0; box-shadow: inset 0 1px 0 rgba(255, 200, 80, 0.85), inset 0 -1px 0 rgba(255, 200, 80, 0.85); transition: background 0.15s, box-shadow 0.15s; }
.mm-full .fish-zone::before, .mm-full .fish-zone::after, .mm-full .fish-zone i::before, .mm-full .fish-zone i::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid #ffc850; }
.mm-full .fish-zone::before { left: 6px; top: -1px; border-right: 0; border-bottom: 0; } .mm-full .fish-zone::after { right: 6px; top: -1px; border-left: 0; border-bottom: 0; }
.mm-full .fish-zone i::before { left: 6px; bottom: -1px; border-right: 0; border-top: 0; } .mm-full .fish-zone i::after { right: 6px; bottom: -1px; border-left: 0; border-top: 0; }
.mm-full .fish-zone i { position: absolute; inset: 0; }
.mm-full .fish-zone.slip { background: linear-gradient(180deg, rgba(224, 96, 72, 0.16), rgba(224, 96, 72, 0.04) 50%, rgba(224, 96, 72, 0.16)); box-shadow: inset 0 1px 0 rgba(240, 120, 90, 0.9), inset 0 -1px 0 rgba(240, 120, 90, 0.9); }
.mm-full .fish-zone.slip::before, .mm-full .fish-zone.slip::after, .mm-full .fish-zone.slip i::before, .mm-full .fish-zone.slip i::after { border-color: #f0785a; }
.mm-full .fish-fish { z-index: 2; width: 54px; height: 26px; font-size: 0; filter: drop-shadow(0 0 6px rgba(160, 220, 230, 0.25)); will-change: transform, left, bottom; }
.mm-full .fish-fish svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mm-full .fish-fish .fs-tail { transform-box: fill-box; transform-origin: 100% 50%; animation: fsTail 0.32s ease-in-out infinite alternate; }
@keyframes fsTail { from { transform: scaleY(0.82) skewY(-10deg); } to { transform: scaleY(1) skewY(10deg); } }
.fish-gauge { position: relative; flex: none; display: flex; padding-right: 30px; }
.mm-full .fish-catch { width: 16px; height: 340px; background: #0b0d0f; border: 1px solid #2c3236; border-radius: 9px; box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8); }
.mm-full .fish-catch span { border-radius: 8px; background: linear-gradient(180deg, #ffe08a, #e8a93a); box-shadow: 0 0 10px rgba(255, 200, 80, 0.45); }
.mm-full .fish-catch span.low { background: linear-gradient(180deg, #f08a6a, #b8483a); box-shadow: none; }
.fish-gauge i { position: absolute; left: 21px; transform: translateY(50%); font-style: normal; font-size: 9px; line-height: 1; letter-spacing: -1px; color: #ffc850; white-space: nowrap; opacity: 0.8; }
.fish-gauge i::before { content: ''; position: absolute; left: -9px; top: 50%; width: 7px; height: 1px; background: rgba(255, 200, 80, 0.6); }
.fish-gauge i:last-of-type { transform: translateY(80%); }
.mm-full .fish-time { max-width: 480px; margin: 10px auto 0; height: 4px; }
/* Замок: крупно, металл с бликом, дверь в дерматине вокруг */
.mm-full .lock-svg { max-width: 560px; border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); overflow: hidden; }
.mm-full .lock-svg .pin.active rect, .mm-full .lock-svg .pin.ready rect { filter: none; }
.mm-full .lock-svg .pin.active .drv, .mm-full .lock-svg .pin.active .key { stroke: #ffc850; stroke-width: 1.4; }
.mm-full .lock-svg .pin.ready .drv, .mm-full .lock-svg .pin.ready .key { stroke: #9fe08a; stroke-width: 1.8; }
.mm-full .lock-svg .pin.ready .key { fill: #9fd18a; }
.lock-svg .lk-shine { animation: lkShine 5.5s ease-in-out infinite; }
@keyframes lkShine { 0%, 55% { transform: skewX(-18deg) translateX(0); } 100% { transform: skewX(-18deg) translateX(560px); } }
.lock-svg .lk-shear { filter: drop-shadow(0 0 3px rgba(255, 200, 80, 0.8)); }
.lock-svg.opened .lk-shear { fill: #9fe08a; }
.lock-svg .lk-wrench { transform-box: fill-box; transform-origin: 100% 50%; transition: transform 0.4s ease; }
.lock-svg.opened .lk-wrench { transform: rotate(-8deg); }
.lock-svg .led { transition: fill 0.2s; }
/* Рация: лицевая панель приёмника */
.rd-set { position: relative; max-width: 620px; margin: 0 auto 12px; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, #2a2219, #17130e); border: 1px solid #3d3326; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 240, 210, 0.08); --v: 50; }
.rd-dial { position: relative; height: 112px; border-radius: 10px; overflow: hidden; background: #0c0a07; border: 1px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 200, 80, 0.12); }
.rd-glass { position: absolute; inset: 0; padding: 6px 14px; background: radial-gradient(ellipse at 50% 120%, rgba(255, 190, 90, 0.32), rgba(255, 170, 70, 0.08) 60%, rgba(0, 0, 0, 0) 80%), linear-gradient(180deg, #1a140b, #251b0e); }
.rd-band { position: absolute; left: 14px; right: 14px; top: calc(8px + var(--row) * 24px); height: 22px; border-bottom: 1px solid rgba(255, 200, 80, 0.25);
  background: repeating-linear-gradient(90deg, rgba(255, 210, 130, 0.5) 0 1px, transparent 1px 2.3%) bottom / 100% 5px no-repeat; }
.rd-band b { position: absolute; left: -2px; top: 0; font-size: 9px; letter-spacing: 1px; color: #ffc850; opacity: 0.85; }
.rd-band span { position: absolute; top: 2px; transform: translateX(-50%); font-size: 9px; color: rgba(255, 225, 170, 0.62); font-family: ui-monospace, Menlo, Consolas, monospace; }
.rd-band span:first-of-type { visibility: hidden; }
.rd-cities { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 14px; }
.rd-cities span { position: absolute; transform: translateX(-50%); font-size: 9.5px; color: rgba(255, 230, 190, 0.5); letter-spacing: 0.3px; white-space: nowrap; }
.rd-needle { position: absolute; top: 3px; bottom: 3px; width: 2px; margin-left: -1px; left: calc(14px + (100% - 28px) * var(--v) / 100); background: #ff5a3a; box-shadow: 0 0 6px 1px rgba(255, 90, 58, 0.7), 0 0 18px rgba(255, 120, 60, 0.35); pointer-events: none; }
.rd-dial::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 35%); }
.mm-full .rd-track .mini-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 2; touch-action: none; -webkit-appearance: none; appearance: none; }
.mm-full .rd-track .mini-range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 72px; }
.mm-full .rd-track .mini-range::-moz-range-thumb { width: 56px; height: 72px; border: 0; }
.rd-dial:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 200, 80, 0.5), 0 0 0 2px rgba(255, 200, 80, 0.25); }
.rd-hint { margin: 6px 0 0; text-align: center; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 200, 80, 0.55); }
@media (pointer: fine) { .rd-hint::after { content: ' · или ← →'; } }
.rd-low { display: flex; gap: 12px; align-items: stretch; margin-top: 8px; height: 70px; }
.rd-knob { flex: none; width: 70px; height: 70px; border-radius: 50%; background: repeating-conic-gradient(#2a241c 0 6deg, #1a1611 6deg 12deg); border: 1px solid #000; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), inset 0 0 0 6px rgba(0, 0, 0, 0.25); display: flex; align-items: center; justify-content: center; }
.rd-knob i { display: block; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a3f30, #1d1912 70%); transform: rotate(calc(var(--v) * 2.8deg - 140deg)); position: relative; }
.rd-knob i::before { content: ''; position: absolute; left: 50%; top: 4px; width: 3px; height: 12px; margin-left: -1.5px; border-radius: 2px; background: #ffc850; box-shadow: 0 0 6px rgba(255, 200, 80, 0.6); }
.rd-scope { position: relative; flex: 1 1 auto; min-width: 0; border-radius: 10px; overflow: hidden; background: #060a07; border: 1px solid #000; box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.9); }
.rd-grill { flex: 0 0 22%; border-radius: 10px; background: radial-gradient(circle, #0a0806 1.6px, transparent 2.2px) 0 0 / 7px 7px, linear-gradient(180deg, #2a2117, #1a140e); border: 1px solid #000; }
.mm-full .radio-text { margin: 4px 0 8px; padding: 8px 10px; border-radius: 8px; background: rgba(10, 18, 10, 0.6); border: 1px solid #1b2a1b; text-shadow: 0 0 8px rgba(155, 224, 122, 0.45); }
@media (max-width: 420px) { .rd-grill { display: none; } .rd-knob { width: 60px; height: 60px; } .rd-knob i { width: 40px; height: 40px; } .rd-low { height: 62px; } .rd-band span { font-size: 8px; } .rd-band span:nth-of-type(even) { visibility: hidden; } .rd-cities span { font-size: 8.5px; } .rd-cities span:nth-child(even) { transform: translate(-50%, -12px); } }
/* Растяжки: кафель площадки в темноте, фонарик, леска с банками */
/* Владелец 28.10: дизайн поля не понравился, вернули прежний простой вид (плитки .mines как до редизайна); обёртка, леска и банки скрыты */
.mn-floor { position: relative; max-width: none; margin: 0 auto; padding: 0; background: none; border: 0; box-shadow: none; --mx: 50%; --my: 55%; }
.mn-wire, .mn-can { display: none; }
.mn-floor.boom { animation: mnBoom 0.5s ease; }
@keyframes mnBoom { 0% { box-shadow: 0 0 0 2px rgba(240, 100, 70, 0.9), 0 0 50px rgba(240, 100, 70, 0.6); transform: translateX(-4px); } 30% { transform: translateX(4px); } 60% { transform: translateX(-2px); } }
.mn-wire { position: absolute; left: 10px; right: 10px; top: 4px; width: calc(100% - 20px); height: 26px; z-index: 3; pointer-events: none; overflow: visible; }
.mn-wire .mn-glint { animation: mnGlint 3.2s linear infinite; }
@keyframes mnGlint { from { stroke-dashoffset: 30; } to { stroke-dashoffset: -400; } }
.mn-can { position: absolute; top: 10px; z-index: 3; width: 11px; height: 15px; margin-left: -5px; border-radius: 2px; pointer-events: none; transform-origin: 50% -6px; animation: mnSway 3s ease-in-out infinite;
  background: linear-gradient(90deg, #5a5e62, #b9bfc5 45%, #6d7277), repeating-linear-gradient(180deg, transparent 0 3px, rgba(0, 0, 0, 0.25) 3px 4px); background-blend-mode: multiply; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
.mn-can::before { content: ''; position: absolute; left: 50%; top: -6px; width: 1px; height: 6px; background: rgba(200, 210, 216, 0.6); }
.mn-can.b { height: 12px; animation-duration: 3.7s; animation-delay: -1s; background-color: #7a3a2a; }
@keyframes mnSway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.mm-full .mines { gap: 4px; max-width: 380px; margin: 0 auto; }
.mm-full .mines-tools .opt.on { border-color: #d9483b; color: #ffd2c8; box-shadow: inset 0 0 0 1px rgba(217, 72, 59, 0.5); }
/* Багажник «Нивы»: коврик, пластик по бокам, фонари; вещи с фактурой, клетки одной вещи сливаются */
.mm-full .tp-grid { position: relative; gap: 0; padding: 4px; width: calc(100% - 52px); border: 0; border-radius: 6px 6px 14px 14px;
  background: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1.4px) 0 0 / 4px 4px, radial-gradient(rgba(0, 0, 0, 0.35) 1px, transparent 1.4px) 2px 2px / 4px 4px, #1b1c1d;
  box-shadow: inset 0 0 0 1px #000, inset 0 10px 18px rgba(0, 0, 0, 0.75), 0 0 0 9px #26282a, 0 0 0 10px #3a3c3f, 0 0 0 22px #4a5242, 0 0 0 23px #23271f, 0 26px 0 6px #1a1b1c, 0 30px 30px 10px rgba(0, 0, 0, 0.6); margin: 26px auto 46px; }
.mm-full .tp-grid::before, .mm-full .tp-grid::after { content: ''; position: absolute; top: 18%; width: 12px; height: 46%; border-radius: 3px; background: linear-gradient(180deg, #ff6a50 0 55%, #f2b04a 55% 75%, #e9e2d0 75%); box-shadow: 0 0 12px rgba(255, 90, 60, 0.45); opacity: 0.85; }
.mm-full .tp-grid::before { left: -20px; } .mm-full .tp-grid::after { right: -20px; }
.mm-full .tp-cell { background-color: transparent; border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); }
.mm-full .tp-cell.wall.arch { border-color: transparent; box-shadow: none; background: radial-gradient(ellipse 90% 110% at 50% 115%, #0c0c0d 0 58%, #2f3133 60% 66%, transparent 68%); }
.mm-full .tp-cell.wall.spare { border-color: transparent; box-shadow: none; background: radial-gradient(circle closest-side, #5a5d60 0 18%, #2a2b2c 19% 28%, #121212 29% 62%, #26262a 63% 68%, #0c0c0c 69% 92%, transparent 95%); }
.mm-full .tp-cell.full, .tp-shape i.tp-it { border: 1px solid rgba(0, 0, 0, 0.6); border-radius: 5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
.mm-full .tp-cell.full.jn, .tp-shape i.jn { border-top-color: transparent; border-top-left-radius: 0; border-top-right-radius: 0; }
.mm-full .tp-cell.full.js, .tp-shape i.js { border-bottom-color: transparent; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.mm-full .tp-cell.full.je, .tp-shape i.je { border-right-color: transparent; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mm-full .tp-cell.full.jw, .tp-shape i.jw { border-left-color: transparent; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tp-shape:has(.tp-it) { gap: 0; }
.tp-cell[data-t=crate], .tp-shape [data-t=crate] { background-color: #6b4a26 !important; background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0 2px, transparent 2px 33.3%), repeating-linear-gradient(90deg, rgba(255, 220, 160, 0.06) 0 1px, transparent 1px 7px); }
.tp-cell[data-t=wood], .tp-shape [data-t=wood] { background-color: #8a6a3f !important; background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0 1px, transparent 1px 25%), repeating-linear-gradient(90deg, rgba(60, 35, 10, 0.25) 0 1px, transparent 1px 9px, rgba(255, 230, 180, 0.08) 9px 10px, transparent 10px 15px); }
.tp-cell[data-t=can], .tp-shape [data-t=can] { background-color: #4c5e34 !important; background-image: linear-gradient(135deg, transparent 46%, rgba(0, 0, 0, 0.3) 46% 54%, transparent 54%), linear-gradient(45deg, transparent 46%, rgba(0, 0, 0, 0.3) 46% 54%, transparent 54%), linear-gradient(90deg, rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.12) 40%, rgba(0, 0, 0, 0.2)); }
.tp-cell[data-t=water], .tp-shape [data-t=water] { background-color: #2f4c5e !important; background-image: radial-gradient(circle, rgba(190, 230, 255, 0.55) 0 14%, rgba(110, 170, 210, 0.35) 15% 40%, rgba(0, 0, 0, 0.2) 41% 46%, transparent 47%); background-size: 50% 50%; }
.tp-cell[data-t=sack], .tp-shape [data-t=sack] { background-color: #7a6a48 !important; background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(255, 240, 200, 0.08) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 40%, rgba(255, 240, 200, 0.12), transparent 70%); }
.tp-cell[data-t=coal], .tp-shape [data-t=coal] { background-color: #2e2c2a !important; background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px); }
.tp-cell[data-t=cloth], .tp-shape [data-t=cloth] { background-color: #5a4a6a !important; background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 4px, rgba(0, 0, 0, 0.18) 4px 9px), repeating-linear-gradient(90deg, transparent 0 46%, rgba(220, 200, 160, 0.25) 46% 54%, transparent 54%); }
.tp-cell[data-t=tarp], .tp-shape [data-t=tarp] { background-color: #3f4f3a !important; background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 6px, rgba(0, 0, 0, 0.18) 6px 12px), radial-gradient(circle at 12% 12%, #b9b0a0 0 2px, transparent 2.5px); }
.tp-cell[data-t=pipe], .tp-shape [data-t=pipe] { background-color: #5a5e62 !important; background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0 1px, rgba(255, 255, 255, 0.18) 1px 3px, transparent 3px 8px, rgba(0, 0, 0, 0.25) 8px 11px); }
.tp-cell[data-t=tool], .tp-shape [data-t=tool] { background-color: #3a3a3e !important; background-image: repeating-linear-gradient(45deg, rgba(255, 200, 80, 0.12) 0 4px, transparent 4px 10px), linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent); }
.tp-cell[data-t=med], .tp-shape [data-t=med] { background-color: #d8d0bc !important; background-image: linear-gradient(90deg, transparent 40%, #c0392b 40% 60%, transparent 60%), linear-gradient(0deg, transparent 40%, #c0392b 40% 60%, transparent 60%); background-size: 60% 60%; background-position: center; background-repeat: no-repeat; }
.tp-cell[data-t=med] span { color: #1a1408 !important; text-shadow: none !important; }
.tp-cell[data-t=pack], .tp-shape [data-t=pack] { background-color: #4a4a3a !important; background-image: linear-gradient(0deg, transparent 70%, rgba(0, 0, 0, 0.3) 70% 74%, transparent 74%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px); }
.tp-cell[data-t=bag], .tp-shape [data-t=bag] { background-color: #3c4650 !important; background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 50%, rgba(0, 0, 0, 0.2)), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.15) 0 1px, transparent 1px 5px); }
.tp-cell[data-t=box], .tp-shape [data-t=box] { background-color: #8a6e45 !important; background-image: linear-gradient(90deg, transparent 47%, rgba(200, 170, 120, 0.5) 47% 53%, transparent 53%), linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.15)); }
.mm-full .tp-cell span { font-size: 11px; font-weight: 700; color: #fff4dc; text-shadow: 0 1px 2px #000, 0 0 4px rgba(0, 0, 0, 0.8); left: 4px; top: 3px; }
.mm-full .tp-cell.ok { outline: 2px solid #9fe08a; box-shadow: inset 0 0 12px rgba(159, 224, 138, 0.35); } .mm-full .tp-cell.bad { outline: 2px solid #f0785a; box-shadow: inset 0 0 12px rgba(240, 120, 90, 0.35); }
.mm-full .tp-tray { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.02); border: 1px dashed rgba(255, 200, 80, 0.18); }
.mm-full .tp-item small { font-size: 12px; }
.mm-full .tp-item:hover .tp-shape { filter: brightness(1.15); }
.tp-drag .tp-shape { gap: 0; }
.tp-drag .tp-shape i { border-radius: 4px; }
/* Фонарик и батарея: сцены в SVG, тут рамка и живые мелочи */
.mm-full .morse-win { height: 210px; border: 1px solid #23211c; border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); background: #070910; }
.morse-win .ms-tw { animation: msTw 3.4s ease-in-out infinite; }
@keyframes msTw { 50% { opacity: 0.15; } }
.morse-win .ms-fl { animation: msFl 1.7s steps(2, end) infinite; }
@keyframes msFl { 0%, 100% { fill: #5a4526; } 30% { fill: #6a5230; } 60% { fill: #4a3820; } }
.morse-win .ms-cloud { animation: msCloud 26s ease-in-out infinite alternate; }
@keyframes msCloud { from { transform: translateX(-60px); } to { transform: translateX(30px); } }
.morse-win.on .morse-light { fill: #fff0b8; }
.morse-win .ms-refl { opacity: 0; }
.morse-win.on .ms-refl { opacity: 0.35; }
.morse-win.knock .kb-rad, .morse-win.knock .kb-riser { transform-box: view-box; }
.morse-win.knock.tap .kb-rad { animation: kbShake 0.16s linear; }
.morse-win.knock.boom .kb-rad { animation: kbShake 0.16s linear 3; }
.morse-win.knock.boom .kb-riser { animation: kbShake 0.2s linear 2; }
@keyframes kbShake { 25% { transform: translateX(0.8px); } 75% { transform: translateX(-0.8px); } }
.morse-win.knock .kb-dust circle { opacity: 0; }
.morse-win .kb-fl { transform-box: fill-box; transform-origin: 50% 100%; animation: kbFl 0.9s ease-in-out infinite alternate; }
.morse-win .kb-glow { animation: kbGlow 1.3s ease-in-out infinite alternate; }
@keyframes kbFl { from { transform: scale(0.9, 1) skewX(-4deg); } to { transform: scale(1.05, 1.12) skewX(4deg); } }
@keyframes kbGlow { from { opacity: 0.8; } to { opacity: 1; } }
.morse-win.knock.boom .kb-dust circle { animation: kbDust 0.9s ease-in forwards; }
.morse-win.knock.boom .kb-dust circle:nth-child(2n) { animation-delay: 0.1s; }
@keyframes kbDust { 0% { opacity: 0.9; transform: translateY(0); } 100% { opacity: 0; transform: translateY(26px); } }
.mm-full .morse-cells { justify-content: center; }
.mm-full .morse-slot .morse-ch, .mm-full .morse-cell { background: #0f0e0b; border-color: #3d362a; }
.mm-full .morse-slot.sel .morse-ch { border-color: #ffc850; box-shadow: 0 0 10px rgba(255, 200, 80, 0.4); color: #ffc850; }
.mm-full .morse-cell i { font-style: normal; color: #ffc850; letter-spacing: 1px; }
.mm-full .morse-key { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04); transition: border-color 0.12s, background 0.12s; }
.mm-full .morse-key:hover { border-color: rgba(255, 200, 80, 0.6); }
.mm-full .morse-key span { color: #c8b98f; }
@media (min-width: 900px) {
  .mm-full .bob-water { height: 440px; max-width: 1000px; }
  .mm-full .fish-wrap { max-width: 900px; margin: 0 auto; }
  .mm-full .fish-track { max-width: none; height: 460px; }
  .mm-full .fish-catch { height: 460px; width: 20px; }
  .mm-full .fish-fish { width: 76px; height: 36px; }
  .fish-gauge i { font-size: 11px; left: 26px; }
  .mm-full .lock-svg { max-width: 820px; }
  .rd-set { max-width: 820px; padding: 16px; }
  .rd-dial { height: 140px; }
  .mm-full .rd-dial .mini-range::-webkit-slider-thumb { height: 140px; }
  .rd-band { top: calc(12px + var(--row) * 30px); height: 26px; }
  .rd-band b, .rd-band span { font-size: 11px; } .rd-cities span { font-size: 12px; } .rd-cities { bottom: 10px; }
  .rd-low { height: 96px; } .rd-knob { width: 96px; height: 96px; } .rd-knob i { width: 64px; height: 64px; }
  .mm-full .mines { max-width: 500px; gap: 6px; }
  .mm-full[data-kind=morse] .morse-win { height: 280px; }
  .mm-full .tp-grid { margin: 34px auto 50px; }
  .mm-full[data-kind=trunk] .tp-tray { --cs: 36px; }
  .mm-full .mines button { font-size: 24px; }
}

/* Багажник: пустые клетки видно, куда ставить (владелец 28.10: «квадратики не видны, неудобно») */
.mm-full .tp-grid { gap: 2px; }
.mm-full .tp-cell:not(.full):not(.wall) { background-color: rgba(255, 210, 120, 0.06); border: 1px dashed rgba(255, 220, 150, 0.32); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
/* Владелец 28.10: у владельца восьмая вкладка «Сайт» уезжала за правый край. Окно владельца шире, у игроков без изменений */
.acct-box:has(#acct-tab-site:not([hidden])) { max-width: 860px; }
/* Бутылки с собой на вылазке: маленькая плашка у заголовка сцены (28.10) */
.ev-kit { display: inline-block; margin-left: 10px; vertical-align: middle; font-family: var(--f-ui); font-size: 0.78rem; font-weight: 600; color: #ffc850; border: 1px solid rgba(255, 200, 80, 0.5); border-radius: 999px; padding: 1px 9px; cursor: help; }

/* ---------- Карта поездки на «Ниве» и итог поездки (владелец 28.10), стиль «Аркада Valve»: палитра THEMES.a ---------- */
.card.tm-card { padding: 0; overflow: hidden; border-color: #3d362a; }
.card.tm-card > .tape, .card.tm-card > .tape-done { padding: 20px; }
.tm, .tm-end { --accent: #ffc850; --text: #f2e6c8; --muted: #a89f8c; color: var(--text); font-family: var(--f-ui); line-height: 1.35;
  background: radial-gradient(ellipse at 50% 28%, #1a170f 0%, #0d0e11 62%, #0a0b0d 100%); }
.tm { padding: 14px 16px 16px; }
.tm-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.tm-top b { color: var(--accent); font-weight: 700; }
.tm-big { margin: 8px 0 2px; font-size: 32px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.02; text-transform: uppercase; color: #ffc850; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8); }
.tm-lead { margin: 0 0 10px; font-size: 15px; color: var(--text); opacity: 0.92; }
.tm-k { margin: 0; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.tm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tm-chips span { padding: 3px 9px; border: 1px solid #3d362a; border-radius: 999px; background: #16140f; font-size: 12.5px; color: var(--text); letter-spacing: 0.5px; }
.tm-med { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #ffc850;
  background: radial-gradient(circle at 35% 30%, #3a2f1c, #14110b 70%); border: 2px solid #ffc850;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03), 0 0 18px rgba(255, 200, 80, 0.22), inset 0 0 12px rgba(0, 0, 0, 0.7); }
.tm-node { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 6px 4px; border: 0; background: none; color: var(--text); cursor: pointer; font: inherit; border-radius: 12px; transition: transform 0.15s; }
.tm-node b { font-size: 14px; line-height: 1.15; text-align: center; } .tm-node small { font-size: 12px; color: var(--muted); }
.tm-node:hover, .tm-node:focus-visible { transform: translateY(-2px); outline: none; }
.tm-node.k-threat .tm-med, .tm-node.k-cache .tm-med { border-color: #e0806a; }
.tm-node.k-unknown .tm-med { border-color: #8c8576; color: #c9c0ad; }
.tm-node.k-radio .tm-med { border-color: #8fd0ff; }
.tm-node.sel .tm-med { box-shadow: 0 0 0 4px rgba(255, 200, 80, 0.35), 0 0 26px rgba(255, 200, 80, 0.55), inset 0 0 12px rgba(0, 0, 0, 0.6); transform: scale(1.08); }
.tm-node.sel b { color: #ffc850; }
.tm-map { position: relative; margin: 4px 0 8px; }
.tm-past { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #4a4335; background: #14110b; font-size: 15px; opacity: 0.75; }
.tm-past.hurt { border-color: #e0806a; }
.tm-pasts { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tm-here { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tm-here i { font-style: normal; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 2px dashed #ffc850; background: #1d180e; font-size: 20px; }
.tm-here small, .tm-dot small { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tm-dot { display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: 0.6; }
.tm-dot i { font-style: normal; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #4a4335; background: #11100c; font-size: 12px; color: var(--muted); }
.tm-dot.end { opacity: 0.9; } .tm-dot.end i { width: 34px; height: 34px; font-size: 16px; border-color: #ffc850; }
/* Вариант A: дорога слева направо, развилка столбиком */
.tm-a .tm-row { display: flex; align-items: center; gap: 10px; }
.tm-a .tm-row::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed #3d362a; z-index: 0; }
.tm-a .tm-row > * { position: relative; z-index: 1; }
.tm-a .tm-pasts { flex: 0 1 auto; max-width: 30%; }
.tm-a .tm-fork { display: flex; flex-direction: column; gap: 4px; padding: 4px 8px; border-left: 2px solid #ffc850; border-radius: 14px; background: rgba(9, 9, 11, 0.6); }
.tm-a .tm-fork .tm-node { flex-direction: row; gap: 10px; text-align: left; } .tm-a .tm-fork .tm-node b, .tm-a .tm-fork .tm-node small { text-align: left; }
.tm-nt { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.tm-a .tm-nt { align-items: flex-start; }
.tm-a .tm-fork .tm-node small { display: block; }
.tm-a .tm-fork .tm-med { width: 48px; height: 48px; font-size: 22px; }
.tm-a .tm-ahead { display: flex; gap: 10px; margin-left: auto; }
/* Вариант B: развилка снизу вверх (Aghanim's, Slay the Spire) */
.tm-b { display: flex; flex-direction: column; align-items: center; }
.tm-b .tm-brow { position: relative; display: flex; justify-content: center; padding: 3px 0; }
.tm-b .tm-brow + .tm-brow::after, .tm-b .tm-brow:first-child::after { content: ''; position: absolute; left: 50%; bottom: -4px; height: 6px; border-left: 2px dashed #3d362a; }
.tm-b .tm-fork { display: grid; width: 100%; max-width: 420px; gap: 4px; }
.tm-b .tm-fork.n3 { grid-template-columns: repeat(3, 1fr); } .tm-b .tm-fork.n2 { grid-template-columns: repeat(2, 1fr); } .tm-b .tm-fork.n1 { grid-template-columns: 1fr; }
.tm-b .tm-lines { display: block; width: 100%; max-width: 420px; height: 28px; }
.tm-b .tm-lines path { fill: none; stroke: #4a4335; stroke-width: 2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.tm-b .tm-lines path.on { stroke: #ffc850; stroke-dasharray: none; }
.tm-b .tm-pasts { gap: 4px; }
.tm-sel { margin: 6px 0 10px; font-size: 14px; } .tm-sel b { color: #ffc850; } .tm-sel small { color: var(--muted); font-size: 12.5px; }
.tm-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tm .opt.tm-home { width: auto; margin: 0; background: #16140f; border-color: #3d362a; color: var(--text); border-radius: 10px; font-size: 14px; }
.tm .opt.tm-home.locked { color: #6f6858; border-style: dashed; }
.tm-gowrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.tm .opt.tm-go, .tm-btn { width: auto; min-width: 190px; min-height: 54px; margin: 0; padding: 10px 22px; border: 0; border-radius: 12px; text-align: center;
  background: linear-gradient(180deg, #ffd877, #f0b33a); color: #1a1408; font-size: 19px; font-weight: 700; letter-spacing: 0.3px; cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 200, 80, 0.45); animation: mmBreath 2.4s ease-in-out 1s infinite; }
.tm .opt.tm-go:hover, .tm-btn:hover, .tm-btn:focus-visible { filter: brightness(1.06); transform: translateY(-1px); outline: none; }
.tm-keyhint { margin: 0; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
@media (pointer: coarse) { .tm-keyhint { display: none; } }
/* Итог поездки */
.tm-end { display: flex; flex-direction: column; gap: 10px; padding: 16px; margin: 8px 0; border: 1px solid #3d362a; border-radius: 14px; text-align: center; }
.tm-end .tm-big { margin: 0; }
.tm-end .tm-lead { margin: 0; }
.tm-stars, .tm-meds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: start; }
.tm-mi { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.tm-mi b { font-size: 14px; color: var(--text); } .tm-mi small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.tm-med.st { color: #3a352c; border-color: #4a4335; box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7); }
.tm-med.st.on { color: #ffc850; border-color: #ffc850; box-shadow: 0 0 16px rgba(255, 200, 80, 0.28), inset 0 0 10px rgba(0, 0, 0, 0.6); animation: mmPop 0.45s ease-out backwards; }
.tm-stars .tm-mi:nth-child(2) .tm-med.st.on { animation-delay: 0.2s; } .tm-stars .tm-mi:nth-child(3) .tm-med.st.on { animation-delay: 0.4s; }
.tm-path { display: flex; flex-wrap: wrap; row-gap: 6px; align-items: flex-start; justify-content: center; padding: 2px 0 6px; } /* 29.10: две строки вместо обрезки справа */
.tm-path > i { display: none; }
.tm-pstop { position: relative; flex: 0 0 76px; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tm-pstop + i + .tm-pstop::before { content: ''; position: absolute; top: 21px; left: -50%; width: 100%; border-top: 2px dashed #4a4335; z-index: 0; }
.tm-pstop .tm-past { position: relative; z-index: 1; flex: 0 0 42px; width: 42px; height: 42px; font-size: 21px; opacity: 1; border-color: #6a5a38; background: #14110b; }
.tm-pstop.row-start::before { display: none !important; }
.tm-pstop .tm-past.hurt { border-color: #e0806a; }
.tm-pstop small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; height: 2.4em; padding: 0 3px; box-sizing: border-box; font-size: 10.5px; line-height: 1.2; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
/* Итог поездки (28.10): звёзды компактной строкой, две колонки «привёз / потерял» */
.tm-end .tm-stars { grid-template-columns: repeat(3, auto); justify-content: center; gap: 6px 22px; }
.tm-end .tm-stars .tm-med { width: 38px; height: 38px; font-size: 18px; }
.tm-end .tm-stars .tm-mi b { font-size: 12.5px; }
.tm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.tm-col { padding: 10px 12px; border: 1px solid #3d362a; border-radius: 10px; background: #16140f; min-width: 0; }
.tm-ck { margin: 0 0 6px; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #e8c070; }
.tm-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.tm-col.good li { color: #8fd08a; } .tm-col.bad li { color: #e0806a; }
.tm-col li.none { color: var(--muted); }
.tm-col li b { font-weight: 700; }
.tm-fix { margin-left: 6px; padding: 2px 10px; border: 1px solid #e8c070; border-radius: 999px; background: transparent; color: #e8c070; font: inherit; font-size: 12px; cursor: pointer; }
.tm-fix:hover { background: rgba(232, 192, 112, 0.15); }
@media (max-width: 600px) { .tm-cols { grid-template-columns: 1fr; } }
.tm-end .chips { justify-content: center; }
.tm-end.big { max-width: 460px; width: 100%; margin: auto; border: 0; }
.tm-end.big .tm-big { font-size: 36px; }
.tm-end.big .tm-btn { align-self: flex-end; }
.tm-end-over { position: fixed; inset: 0; z-index: 985; display: flex; padding: 16px; overflow: auto; overscroll-behavior: contain;
  background: radial-gradient(ellipse at 50% 42%, rgba(9, 9, 11, 0.97), rgba(9, 9, 11, 0.99) 70%); animation: mmIn 0.32s ease-out backwards; }
@media (max-width: 560px) {
  .tm-big { font-size: 26px; }
  .tm-a .tm-row { flex-direction: column; align-items: stretch; }
  .tm-a .tm-row::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed #3d362a; }
  .tm-a .tm-pasts { max-width: none; justify-content: center; }
  .tm-a .tm-ahead { margin: 0 auto; flex-wrap: wrap; justify-content: center; }
  .tm-foot { flex-direction: column-reverse; align-items: stretch; }
  .tm-gowrap { align-items: stretch; margin-left: 0; }
  .tm .opt.tm-go, .tm-btn { width: 100%; }
  .tm .opt.tm-home { width: 100%; }
  .tm-b .tm-node b { font-size: 12.5px; }
}
.tm-b .tm-brow { padding: 1px 0; }
.tm-b .tm-dot { flex-direction: row; gap: 6px; } .tm-b .tm-dot small { min-width: 0; }
.tm-b .tm-dot i { width: 20px; height: 20px; } .tm-b .tm-dot.end i { width: 30px; height: 30px; }
/* Владелец 28.10, вариант Б: на широком экране закреплённые ресурсы стоят столбиком сбоку, на телефоне остаются полосой сверху */
@media (min-width: 1180px) {
  .mini-hud { top: 50%; left: 16px; transform: translate(-130%, -50%); flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 6px; width: auto; max-width: none; padding: 12px 14px; border-top: 1px solid var(--line); border-radius: 12px; transition: transform 0.2s ease; }
  .mini-hud.on { transform: translate(0, -50%); }
}
.mini-hud .mh-name { display: none; font-style: normal; color: var(--muted); font-size: 0.85em; }
@media (min-width: 1180px) { .mini-hud .mh-name { display: inline; margin: 0 2px 0 4px; } }
/* Картинка взятого тайника наверху итога поездки (28.10) */
.tm-end-img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin: 0 0 14px; opacity: 0.92; }

/* ---------- 28.10 «Первые 10 минут без правил»: подсветка главного дела у новичка ---------- */
.choices button.opt.focus { position: relative; border-color: #ffc850; box-shadow: 0 0 0 1px #ffc850, 0 0 16px rgba(255, 200, 80, 0.35); animation: focusGlow 2.4s ease-in-out infinite; }
@keyframes focusGlow { 50% { box-shadow: 0 0 0 1px #ffc850, 0 0 26px rgba(255, 200, 80, 0.5); } }
.focus-tag { position: absolute; top: -9px; right: 10px; padding: 1px 8px; border-radius: 999px; background: #ffc850; color: #1a1408; font-family: var(--f-ui); font-size: 10.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; line-height: 1.5; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .choices button.opt.focus { animation: none; } }

/* ---------- 28.10 «Смерть, которая учит»: экран гибели в стиле «Аркады Valve» (палитра THEMES.a) ---------- */
.ds-over .tm-end.ds { --accent: #ffc850; --text: #f2e6c8; --muted: #a89f8c; text-align: left; }
.ds-over .tm-end.ds .tm-k, .ds-over .tm-end.ds .tm-big, .ds-over .tm-end.ds .tm-lead { text-align: center; }
.ds .tm-meds.n2 { grid-template-columns: repeat(2, 1fr); } .ds .tm-meds.n1 { grid-template-columns: 1fr; }
.ds .tm-mi { text-align: center; }
.ds-k { margin-top: 6px !important; }
.ds-tips { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ds-tips li { position: relative; padding: 9px 12px 9px 30px; border: 1px solid #3d362a; border-radius: 10px; background: #16140f; color: #f2e6c8; font-size: 14.5px; line-height: 1.4; }
.ds-tips li::before { content: '▸'; position: absolute; left: 12px; top: 9px; color: #ffc850; }
.ds-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 6px; }
.ds-more { padding: 6px 0; border: 0; background: none; color: #a89f8c; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ds-more:hover, .ds-more:focus-visible { color: #f2e6c8; outline: none; }
@media (max-width: 560px) { .ds-foot { flex-direction: column-reverse; align-items: stretch; } .ds-more { text-align: center; } }

/* ===== Режимы вида для владельца (28.10): тумблер и body.ui-v1 / body.ui-v2. У игроков тумблера и классов нет ===== */
.ui-toggle { position: fixed; top: 8px; left: 8px; z-index: 60; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(12, 11, 9, 0.94); border: 1px solid #5a4a26; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); font: 12px/1 var(--f-ui); }
.ui-toggle span { padding: 0 6px 0 8px; color: #a89f8c; letter-spacing: 0.06em; text-transform: uppercase; font-size: 10.5px; }
.ui-toggle button { padding: 6px 10px; border: 0; border-radius: 999px; background: none; color: #d8ccb0; font: inherit; cursor: pointer; white-space: nowrap; }
.ui-toggle button.on { background: #ffc850; color: #1a1408; font-weight: 700; }
@media (max-width: 1000px) { .ui-toggle { position: static; width: fit-content; margin: 0 auto 10px; } }

/* --- Общее для обоих режимов: чипы с иконками, недоступное с замком, «Баррикада» = «Дверь» --- */
:is(body.ui-v1, body.ui-v2) .uv-line { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 5px; font: 0.8rem/1.3 var(--f-ui); }
:is(body.ui-v1, body.ui-v2) .uv-line i { font-style: normal; padding: 1px 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text); white-space: nowrap; }
:is(body.ui-v1, body.ui-v2) .uv-line i.p { color: var(--good); border-color: #3e5634; }
:is(body.ui-v1, body.ui-v2) .uv-line i.m { color: var(--bad); border-color: #6a3530; }
:is(body.ui-v1, body.ui-v2) .uv-line i.ch { color: #f0d79a; border-color: #8a6a2a; font-weight: 700; }
:is(body.ui-v1, body.ui-v2) .uv-line i.ch.lo { color: #ffb4a6; border-color: #7a3a33; }
:is(body.ui-v1, body.ui-v2) button.opt.uv-has-fx > small { display: none; }
:is(body.ui-v1, body.ui-v2) button.opt.locked > small::before { content: '🔒 '; }
:is(body.ui-v1, body.ui-v2) button.opt.locked > small { color: #b9a98a; }
:is(body.ui-v1, body.ui-v2) .uv-risk .odds .ok, :is(body.ui-v1, body.ui-v2) .uv-risk .odds .no, :is(body.ui-v1, body.ui-v2) .uv-risk .odds .risk { display: none; }
:is(body.ui-v1, body.ui-v2) .uv-note .odds > .muted { display: none; }
:is(body.ui-v1, body.ui-v2) .act-group small { display: none; }

/* --- Вариант 1 «Аккуратно»: тот же вид, расход «−1 за ночь» в плитке, тихие ненужные нули --- */
body.ui-v1 .uv-per { font-weight: 400; }
body.ui-v1 .res .burn, body.ui-v1 .bar-row .num .burn { white-space: nowrap; }
body.ui-v1 .bar-row .num { min-width: 7.5em; }
body.ui-v1 .res.uv-quiet { border-left-color: var(--line); background: var(--panel); opacity: 0.55; }
body.ui-v1 .res.uv-quiet .res-name, body.ui-v1 .res.uv-quiet .res-top b { color: var(--muted); }
body.ui-v1 .uv-risk .odds:not(:has(.stock-bar, .radio-tip, .muted)) { display: none; }

/* --- Вариант 2 «Смело»: палитра «Аркады Valve», медальоны, дела карточками, риск крупно справа --- */
body.ui-v2 { --bg: #0b0c0e; --panel: #17150f; --panel-2: #16140f; --text: #f2e6c8; --muted: #a89f8c; --accent: #ffc850; --line: #3d362a; --good: #9ccf7a; --bad: #e0806a;
  background: #0b0c0e radial-gradient(ellipse at 50% 0%, #1a170f 0%, #0d0e11 55%, #0a0b0d 100%) no-repeat; color: var(--text); }
body.ui-v2 .uv-i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.ui-v2 .uv-line .uv-i { width: 14px; height: 14px; stroke-width: 2.2; vertical-align: -2px; margin-right: 2px; }
body.ui-v2 .top h1 { font: 700 13px/1 var(--f-ui); letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
body.ui-v2 .card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
body.ui-v2 .card h2 { font: 800 1.6rem/1.1 var(--f-ui); color: var(--accent); }
body.ui-v2 .card img.scene { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
body.ui-v2 .card img.scene + h2 { position: relative; margin-top: -46px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9); }
/* Здоровье, рассудок, дверь: кольцо с числом */
body.ui-v2 .hud-bars { flex-direction: row; justify-content: space-around; gap: 10px; padding: 16px 8px 18px; border-radius: 16px; background: rgba(23, 21, 15, 0.85); }
body.ui-v2 .bar-row { --c: #9ccf7a; position: relative; width: 96px; height: 96px; flex: none; padding: 0; gap: 0; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #2a261d 0); }
body.ui-v2 .bar-row.bar-sanity { --c: #b4a2f0; } body.ui-v2 .bar-row.bar-barricade { --c: #ffc850; }
body.ui-v2 .bar-row.uv-warn { --c: #e0806a; }
body.ui-v2 .bar-row > .hud-ico, body.ui-v2 .bar-row > .label, body.ui-v2 .bar-row > .bar { display: none; }
body.ui-v2 .bar-row .num { position: absolute; inset: 5px; width: auto; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; color: var(--text);
  background: radial-gradient(circle at 35% 30%, #3a2f1c, #14110b 70%); box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7); font: 800 30px/1 var(--f-ui); }
body.ui-v2 .bar-row .num .uv-i { width: 20px; height: 20px; color: #ffc850; opacity: 0.9; margin-bottom: 2px; }
/* Метка расхода на кольце и на медальоне */
body.ui-v2 .bar-row > .burn, body.ui-v2 .res > .burn { position: absolute; z-index: 2; top: -6px; right: -10px; margin: 0; padding: 1px 7px; border-radius: 999px; font: 700 12px/1.35 var(--f-ui); background: #3a1712; color: #ffb4a6; border: 1px solid #7a3a33; }
body.ui-v2 .bar-row > .burn.gain, body.ui-v2 .res > .burn.gain { background: #17260f; color: #b8e09a; border-color: #3e5634; }
/* Запасы медальонами: число на чипе снизу, без подписей (название в подсказке) */
body.ui-v2 .hud-res { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 22px 8px; margin-top: 14px; padding: 16px 8px 22px; border-radius: 16px; background: rgba(23, 21, 15, 0.6); border: 1px solid var(--line); }
body.ui-v2 .res { position: relative; width: 56px; height: 56px; min-width: 0; flex: none; padding: 0; gap: 0; display: grid; place-items: center; border-radius: 50%; color: #ffc850;
  background: radial-gradient(circle at 35% 30%, #3a2f1c, #14110b 70%); border: 2px solid #ffc850; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03), 0 0 16px rgba(255, 200, 80, 0.22), inset 0 0 12px rgba(0, 0, 0, 0.7); }
body.ui-v2 .res .hud-ico { width: auto; height: auto; border: 0; background: none; font-size: 1.3rem; }
body.ui-v2 .res .hud-ico .uv-i { width: 26px; height: 26px; }
body.ui-v2 .res .res-body { position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); flex: none; overflow: visible; }
body.ui-v2 .res .res-name { display: none; }
body.ui-v2 .res .res-top b { display: block; padding: 0 9px; border-radius: 999px; background: #16130c; border: 1px solid #ffc850; color: var(--text); font: 700 17px/1.3 var(--f-ui); }
body.ui-v2 .res.zero, body.ui-v2 .res.short { border-color: #e0806a; color: #e0806a; background: radial-gradient(circle at 35% 30%, #3a2f1c, #14110b 70%); box-shadow: 0 0 14px rgba(224, 128, 106, 0.25), inset 0 0 12px rgba(0, 0, 0, 0.7); }
body.ui-v2 .res.zero .res-top b, body.ui-v2 .res.short .res-top b { border-color: #e0806a; color: #e0806a; }
body.ui-v2 .res.uv-dim { border-color: #4a4335; color: #6d6555; box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7); }
body.ui-v2 .res.uv-dim .res-top b { border-color: #4a4335; color: #6d6555; }
body.ui-v2 .burn-pop { min-width: 220px; border-radius: 10px; border-color: #ffc850; background: #0b0a07; font-family: var(--f-ui); }
body.ui-v2 .burn-pop b { color: #ffc850; font-weight: 700; }
body.ui-v2 .bar-row .burn-pop, body.ui-v2 .res .burn-pop { top: calc(100% + 16px); }
/* Дела дня: карточки с медальоном, по две в ряд */
body.ui-v2 .act-group { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font: 11px/1.2 var(--f-ui); letter-spacing: 1.5px; color: var(--muted); }
body.ui-v2 .act-group::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
body.ui-v2 .act-group + .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.ui-v2 #card .choices button.opt { border-radius: 12px; background: #16140f; border-color: var(--line); font-family: var(--f-ui); }
@media (hover: hover) { body.ui-v2 #card .choices button.opt:not(:disabled):hover { border-color: #ffc850; box-shadow: 0 0 14px rgba(255, 200, 80, 0.15); } }
body.ui-v2 #card .choices button.opt[data-action], body.ui-v2 #card .act-group + .choices button.opt.locked { position: relative; min-height: 66px; padding-left: 68px; font-weight: 700; }
body.ui-v2 #card .choices button.opt[data-action] > small, body.ui-v2 #card .choices button.opt.locked > small { font-weight: 400; }
body.ui-v2 .uv-med { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #ffc850;
  background: radial-gradient(circle at 35% 30%, #3a2f1c, #14110b 70%); border: 1.5px solid #ffc850; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03), 0 0 16px rgba(255, 200, 80, 0.22), inset 0 0 12px rgba(0, 0, 0, 0.7); }
body.ui-v2 #card button.opt.locked { opacity: 0.5; filter: grayscale(1); }
body.ui-v2 #card .free-tag, body.ui-v2 #card .noisy-tag { white-space: nowrap; }
body.ui-v2 #card button.opt.locked .uv-med { border-color: #4a4335; color: #6d6555; box-shadow: none; }
/* Варианты событий: риск крупно справа */
body.ui-v2 #card button.opt.uv-ch { position: relative; min-height: 64px; padding-right: 104px; }
body.ui-v2 .uv-big { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 80px; text-align: center; }
body.ui-v2 .uv-big b { display: block; font: 800 30px/1 var(--f-ui); color: #ffc850; }
body.ui-v2 .uv-big small { display: block; margin-top: 3px; font: 10.5px/1 var(--f-ui); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
body.ui-v2 .uv-big.risk b, body.ui-v2 .uv-big.rk-high b { color: #e0806a; }
body.ui-v2 .uv-big.rk-low b, body.ui-v2 .uv-big.rk-mid b { font-size: 19px; }
body.ui-v2 .uv-big.rk-low b { color: #9ccf7a; }
body.ui-v2 .uv-big.rk-high b { font-size: 19px; }
body.ui-v2 .stock-bar i { background: linear-gradient(90deg, #ffc850 var(--fill), #2a261d 0); }
/* Телефон: всё в столбик */
@media (max-width: 560px) {
  body.ui-v2 .act-group + .choices { grid-template-columns: 1fr; }
  body.ui-v2 .bar-row { width: 84px; height: 84px; }
  body.ui-v2 .bar-row .num { font-size: 26px; }
  body.ui-v2 .hud-res { gap: 22px 4px; }
  body.ui-v2 #card button.opt.uv-ch { padding-right: 92px; }
  body.ui-v2 .uv-big { width: 72px; right: 10px; }
  body.ui-v2 .uv-big b { font-size: 26px; }
}

/* --- Вариант 3 «Сборный»: верх как в 1 (body.ui-v1 вешается тоже), дела и палитра как в 2, места вылазки компактными карточками --- */
body.ui-v3 { --bg: #0b0c0e; --panel: #17150f; --panel-2: #16140f; --text: #f2e6c8; --muted: #a89f8c; --accent: #ffc850; --line: #3d362a; --good: #9ccf7a; --bad: #e0806a;
  background: #0b0c0e radial-gradient(ellipse at 50% 0%, #1a170f 0%, #0d0e11 55%, #0a0b0d 100%) no-repeat; color: var(--text); }
body.ui-v3 .uv-i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.ui-v3 .uv-line .uv-i { width: 14px; height: 14px; stroke-width: 2.2; vertical-align: -2px; margin-right: 2px; }
body.ui-v3 .top h1 { font: 700 13px/1 var(--f-ui); letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
body.ui-v3 .card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
body.ui-v3 .card h2 { font: 800 1.6rem/1.1 var(--f-ui); color: var(--accent); }
/* Владелец 28.10: картинки и так маловаты, заголовок и текст под картинкой, картинка целиком без затемнения */
body.ui-v3 .card img.scene { -webkit-mask-image: none; mask-image: none; }
body.ui-v3 .card img.scene + h2 { position: static; margin-top: 12px; text-shadow: none; }
body.ui-v3 .act-group { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font: 11px/1.2 var(--f-ui); letter-spacing: 1.5px; color: var(--muted); }
body.ui-v3 .act-group::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
body.ui-v3 .act-group + .choices, body.ui-v3 #card .choices:has(button.uv-ch) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.ui-v3 #card .choices button.opt { border-radius: 12px; background: #16140f; border-color: var(--line); font-family: var(--f-ui); }
@media (hover: hover) { body.ui-v3 #card .choices button.opt:not(:disabled):hover { border-color: #ffc850; box-shadow: 0 0 14px rgba(255, 200, 80, 0.15); } }
body.ui-v3 #card .choices button.opt[data-action], body.ui-v3 #card .act-group + .choices button.opt.locked { position: relative; min-height: 66px; padding-left: 68px; font-weight: 700; }
body.ui-v3 #card .choices button.opt[data-action] > small, body.ui-v3 #card .choices button.opt.locked > small { font-weight: 400; }
body.ui-v3 .uv-med { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #ffc850;
  background: radial-gradient(circle at 35% 30%, #3a2f1c, #14110b 70%); border: 1.5px solid #ffc850; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03), 0 0 16px rgba(255, 200, 80, 0.22), inset 0 0 12px rgba(0, 0, 0, 0.7); }
body.ui-v3 #card button.opt.locked { opacity: 0.5; filter: grayscale(1); }
body.ui-v3 #card .free-tag, body.ui-v3 #card .noisy-tag { white-space: nowrap; }
body.ui-v3 #card button.opt.locked .uv-med { border-color: #4a4335; color: #6d6555; box-shadow: none; }
body.ui-v3 .stock-bar i { background: linear-gradient(90deg, #ffc850 var(--fill), #2a261d 0); }
/* Места вылазки: компактная карточка в две колонки, мелкая бирка риска справа сверху */
body.ui-v3 #card .choices:has(button.uv-ch) > button:not(.uv-ch) { grid-column: 1 / -1; }
body.ui-v3 #card button.opt.uv-ch { position: relative; min-height: 66px; padding: 10px 12px; padding-right: 96px; }
body.ui-v3 .uv-big { position: absolute; right: 10px; top: 10px; transform: none; width: auto; display: flex; align-items: baseline; gap: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid #8a6a2a; background: rgba(255, 200, 80, 0.08); white-space: nowrap; }
body.ui-v3 .uv-big b { display: inline; font: 700 12px/1.4 var(--f-ui); color: #f0d79a; }
body.ui-v3 .uv-big small { display: inline; order: -1; margin: 0; font: 10px/1.4 var(--f-ui); letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
body.ui-v3 .uv-big.rk-low { border-color: #3e5634; background: rgba(156, 207, 122, 0.08); } body.ui-v3 .uv-big.rk-low b { color: #9ccf7a; }
body.ui-v3 .uv-big.rk-high, body.ui-v3 .uv-big.risk { border-color: #7a3a33; background: rgba(224, 128, 106, 0.1); } body.ui-v3 .uv-big.rk-high b, body.ui-v3 .uv-big.risk b { color: #e0806a; }
body.ui-v3 #card button.opt.uv-ch .stock-bar { margin-top: 6px; max-width: 100%; }
body.ui-v3 #card button.opt.uv-ch .loot-icons { margin-top: 6px; font-size: 14px; gap: 5px; }
@media (max-width: 600px) {
  body.ui-v3 .act-group + .choices, body.ui-v3 #card .choices:has(button.uv-ch) { grid-template-columns: 1fr; }
}

/* Мастерская и обустройство: карточки в две колонки, описание в подсказке (владелец 28.10) */
body.ui-v3 .uv-mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.ui-v3 .uv-mc-grid > :not(button.opt.uv-mc) { grid-column: 1 / -1; }
body.ui-v3 .uv-mc-grid > .act-group { margin: 14px 0 0; font-size: 10px; }
body.ui-v3 .uv-mc-grid > button.opt:not(.uv-mc) { grid-column: 1 / -1; padding: 8px 12px; font-size: 0.9rem; }
body.ui-v3 .uv-mc-grid details.locked-more[open] { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.ui-v3 .uv-mc-grid details.locked-more > summary, body.ui-v3 .uv-mc-grid details.locked-more > .menu-group { grid-column: 1 / -1; padding: 4px 2px; font-size: 0.8rem; }
body.ui-v3 .uv-mc-grid details.locked-more > .opt { margin-top: 0; }
body.ui-v3 #card button.opt.uv-mc { position: relative; min-height: 66px; padding: 9px 12px 9px 68px; display: flex; flex-direction: column; justify-content: center; text-align: left; }
body.ui-v3 button.opt.uv-mc .opt-title { font: 700 0.95rem/1.25 var(--f-ui); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.ui-v3 button.opt.uv-mc .opt-meta { margin: 5px 0 0; gap: 4px; }
body.ui-v3 button.opt.uv-mc .opt-meta i { font-size: 0.72rem; padding: 0 7px; }
body.ui-v3 button.opt.uv-mc .uv-med { font-size: 22px; }
body.ui-v3 button.opt.uv-mc .uv-mc-tag { font: 600 10px/1.4 var(--f-ui); font-style: normal; padding: 0 6px; border-radius: 999px; border: 1px solid #8a6a2a; color: #f0d79a; white-space: nowrap; vertical-align: 1px; }
body.ui-v3 button.opt.uv-mc.locked > small { margin-top: 4px; font-size: 0.72rem; line-height: 1.3; color: var(--muted); }
body.ui-v3 .ev-meter { margin: 2px 0 6px; font-size: 0.78rem; }
body.ui-v3 .ev-meter i { height: 5px; margin-top: 4px; }
@media (max-width: 600px) { body.ui-v3 .uv-mc-grid, body.ui-v3 .uv-mc-grid details.locked-more[open] { grid-template-columns: 1fr; } }

/* Багажник (владелец 28.10, варианты А+Б): у вещи свой цвет, толстый тёмный контур по краю фигуры (между соседями выходит щель), крупный значок в середине */
.tp-cell[data-t=potato], .tp-shape [data-t=potato] { background-color: #5c3a20 !important; background-image: radial-gradient(circle at 30% 35%, rgba(255, 210, 150, 0.18) 0 10%, transparent 11%), radial-gradient(circle at 70% 65%, rgba(0, 0, 0, 0.3) 0 9%, transparent 10%), repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px); }
.tp-cell[data-t=grain], .tp-shape [data-t=grain] { background-color: #cbb26a !important; background-image: repeating-linear-gradient(0deg, rgba(90, 60, 10, 0.18) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(255, 250, 220, 0.18) 0 1px, transparent 1px 3px); }
.tp-cell[data-t=coal], .tp-shape [data-t=coal] { background-color: #1e1d1c !important; }
.tp-cell[data-t=tool], .tp-shape [data-t=tool] { background-color: #56606a !important; }
.tp-cell.full, .mm-full .tp-cell.full, .tp-shape i.tp-it { border: 3px solid #070605; }
.tp-cell.full.jn, .mm-full .tp-cell.full.jn, .tp-shape i.tp-it.jn { border-top-color: transparent; }
.tp-cell.full.js, .mm-full .tp-cell.full.js, .tp-shape i.tp-it.js { border-bottom-color: transparent; }
.tp-cell.full.je, .mm-full .tp-cell.full.je, .tp-shape i.tp-it.je { border-right-color: transparent; }
.tp-cell.full.jw, .mm-full .tp-cell.full.jw, .tp-shape i.tp-it.jw { border-left-color: transparent; }
.tp-cell span.tp-ic, .mm-full .tp-cell span.tp-ic { inset: 0; left: 0; top: 0; right: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(16px, 3.4vw, 34px); max-height: none; overflow: visible; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6)); }
/* «3 Сборный» (владелец 28.10: «всё разъехалось»): значки и полоска добычи в одну строку, значки слева, полоска справа; «тут бывают запчасти» строкой над ними */
body.ui-v3 #card button.opt.uv-ch .odds { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; }
body.ui-v3 #card button.opt.uv-ch .loot-icons { margin: 0; }
body.ui-v3 #card button.opt.uv-ch .odds-right, body.ui-v3 #card button.opt.uv-ch .stock-bar { margin: 0 0 0 auto; }
body.ui-v3 #card button.opt.uv-ch .need-parts { order: -1; flex-basis: 100%; font-size: 12px; color: var(--accent); }

/* Утренний отчёт сжат (владелец 28.10): итог суток чипами, главное текстом, мелочь строкой «Ещё», остальное под «Подробнее» */
.report .rep-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 6px; }
.report .rep-sum .chips { margin: 0; }
.report .rep-sum-k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.report .rep-also { margin: 4px 0 6px; font-size: 0.84rem; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.report .rep-also b { color: var(--text, inherit); font-weight: 600; }
.report .rep-more { margin: 4px 0 6px; }
.report .rep-more > summary { cursor: pointer; color: var(--accent); font-size: 0.86rem; padding: 6px 2px; list-style: none; }
.report .rep-more > summary::-webkit-details-marker { display: none; }
.report .rep-more .rm-o, .report .rep-more[open] .rm-c { display: none; }
.report .rep-more[open] .rm-o { display: inline; }
.report .rep-full { padding-top: 4px; border-top: 1px dashed #3a352d; }
/* Карточка главы (28.10) */
.ch-over { align-items: center; justify-content: center; background: rgba(8, 6, 3, 0.94); z-index: 990; }
.ch-over .tm-end.ch { --accent: #ffc850; --text: #f2e6c8; --muted: #a89f8c; text-align: center; align-items: center; gap: 10px; max-width: 560px; margin: auto; }
.ch-over .tm-big { font-size: 44px; line-height: 1.05; }
.ch-over .tm-big small { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; letter-spacing: 3px; color: var(--muted); }
.ch-over .tm-btn { align-self: center; margin-top: 8px; }
@media (max-width: 600px) { .ch-over .tm-big { font-size: 32px; } }
.journal-list li.jchap { margin: 8px 0; padding: 4px 0; border-top: 1px solid #ffc85066; border-bottom: 1px solid #ffc85066; color: #ffc850; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }

/* 28.10: вспышка плитки ресурса при изменении числа; цвет у каждого ресурса свой, прибавка светлее, убыль краснее */
.res { --flash: 224, 160, 60; }
.res-food { --flash: 226, 168, 64; }
.res-water { --flash: 74, 168, 224; }
.res-meds { --flash: 224, 92, 110; }
.res-fuel { --flash: 232, 120, 48; }
.res-gas { --flash: 190, 214, 70; }
@keyframes res-flash-kf { 0% { box-shadow: 0 0 0 2px rgba(var(--flash), 0.95), 0 0 16px rgba(var(--flash), 0.8); background-color: rgba(var(--flash), 0.4); } 100% { box-shadow: 0 0 0 0 rgba(var(--flash), 0); background-color: transparent; } }
.res-flash-up, .res-flash-down { animation: res-flash-kf 1s ease-out 1; }
.goal.goal-niva small, .goal.goal-novice small { color: var(--muted); }

/* 29.10 экран смерти: лента последних дней, кнопка «той же профессией» */
.ds-days .ds-dn { font-size: 20px; font-weight: 700; font-family: var(--f-ui); }
.ds-days.n1 { grid-template-columns: 1fr; } .ds-days.n2 { grid-template-columns: repeat(2, 1fr); }
.ds .tm-gowrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
/* 29.10 рассудок ниже 30: интерфейс слегка выцветает (на #app, чтобы не ломать окна поверх) */
.app > :not(.acct-modal) { transition: filter 1.2s ease; }
body.san-low .app > :not(.acct-modal) { filter: saturate(0.72) brightness(0.97); }
body.san-crit .app > :not(.acct-modal) { filter: saturate(0.45) brightness(0.93); }
/* Бирка «не тратит день» в карточках мастерской: маленькая, по ширине текста (владелец 28.10) */
body.ui-v3 #card button.opt .free-tag { display: table; width: auto; flex: none; align-self: flex-start; margin: 4px 0 2px; } /* 31.10: всегда своей строкой под названием */
.ch-over .tm-end.ch .tm-btn { align-self: center; margin: 8px auto 0; }

/* ---------- Лендинг, вариант B (A/B-тест 28.10, стиль Valve). Без body.land-b не виден, A не меняется ---------- */
.lb, .lb-x { display: none; }
body.land-b .lb { display: block; }
body.land-b .cover-bg { display: none; }
body.land-b .cover { background: #0b0a08; overflow-x: hidden; }
body.land-b .land { max-width: none; padding: 0; }
body.land-b .land > :not(.land-hero):not(.land-foot) { display: none; }
body.land-b .land-intro, body.land-b .land-hero { display: none; }
/* Вход и регистрация: то же окно, что на A, всплывает поверх по «Войти» */
body.land-b.land-b-auth .land-hero { display: grid; position: fixed; inset: 0; z-index: 70; grid-template-columns: minmax(0, 400px); justify-content: center; align-items: start; min-height: 0; padding: 6vh 16px 24px; overflow-y: auto; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
body.land-b .lb-x { display: block; position: absolute; top: 6px; right: 10px; background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; }
body.land-b .lb-x:hover { color: var(--text); }
body.land-b .cover-box { background: #15120d; border-color: rgba(217, 164, 65, 0.35); }
body.land-b .land-foot { margin: 0; padding: 26px 16px 40px; border-top: 1px solid rgba(236, 228, 212, 0.08); font-family: var(--f-ui); }
body.land-b .land-foot, body.land-b .land-foot .land-copy { color: #6f6758; font-size: 13px; }
body.land-b .land-foot a { color: #8d8472; }
.lb { --lb-amber: #d9a441; --lb-amber-hi: #f0c46a; --lb-dim: rgba(217, 164, 65, 0.35); --lb-bg: #0b0a08; --lb-bg2: #13110d; --lb-ink: #ece4d4; --lb-muted: #9a907e;
  position: relative; z-index: 0; background: var(--lb-bg); color: var(--lb-ink); font: 17px/1.5 var(--f-ui); }
.lb img { display: block; max-width: 100%; }
.lb a { color: inherit; }
.lb-link { background: none; border: 0; padding: 0; font: inherit; color: var(--lb-amber); text-decoration: underline; cursor: pointer; }
.lb-top { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; }
.lb-mark { font-family: var(--f-head); font-weight: 700; letter-spacing: 0.14em; font-size: 14px; color: var(--lb-amber) !important; text-decoration: none; text-transform: uppercase; }
.lb-top nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.lb-top nav a { text-decoration: none; color: var(--lb-muted); }
.lb-top nav a:hover { color: var(--lb-ink); }
.lb-login { font: 14px var(--f-ui); color: var(--lb-ink); background: none; border: 1px solid rgba(236, 228, 212, 0.25); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.lb-login:hover { border-color: var(--lb-amber); }
.lb-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.lb-art { position: absolute; inset: 0; }
.lb-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; transition: opacity 0.8s ease; animation: lb-drift 30s ease-in-out infinite alternate; }
.lb-art img.f { opacity: 0; }
.lb-hero[data-hero="f"] .lb-art img.f { opacity: 1; }
@keyframes lb-drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateX(-1.5%); } }
.lb-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,8,.55) 0%, rgba(11,10,8,0) 22%, rgba(11,10,8,0) 45%, rgba(11,10,8,.85) 78%, var(--lb-bg) 100%), linear-gradient(90deg, rgba(11,10,8,.7) 0%, rgba(11,10,8,0) 55%); }
.lb-hero-in { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px 9vh; }
.lb-kicker { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--lb-amber); margin: 0 0 14px; }
.lb-h1 { font-family: var(--f-head); font-weight: 700; font-size: clamp(48px, 9vw, 120px); line-height: 0.92; letter-spacing: 0.01em; margin: 0; text-transform: uppercase; color: #f4ecdc; text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.lb-h1 span { color: var(--lb-amber); }
.lb-tag { font-family: var(--f-head); font-size: clamp(20px, 2.4vw, 28px); margin: 18px 0 34px; max-width: 640px; color: #e9dfcb; }
.lb-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.lb-play { display: inline-flex; align-items: center; gap: 14px; background: var(--lb-amber); color: #15110a; border: 0; cursor: pointer; font: 700 22px var(--f-ui); letter-spacing: 0.18em; text-transform: uppercase; padding: 20px 46px 20px 38px; border-radius: 4px; box-shadow: 0 0 0 1px var(--lb-amber-hi) inset, 0 10px 40px rgba(217,164,65,.35); transition: transform .15s, box-shadow .15s, background .15s; }
.lb-play:hover { background: var(--lb-amber-hi); transform: translateY(-2px); box-shadow: 0 0 0 1px #ffe0a0 inset, 0 16px 50px rgba(217,164,65,.5); }
.lb-play:disabled { opacity: 0.7; cursor: wait; }
.lb-play svg { width: 20px; height: 20px; }
.lb-note { font-size: 14px; color: var(--lb-muted); line-height: 1.45; }
.lb-note b { color: var(--lb-ink); font-weight: 400; }
.lb-who { position: absolute; z-index: 3; right: 28px; bottom: 9vh; display: flex; gap: 6px; background: rgba(11,10,8,.55); border: 1px solid rgba(236,228,212,.15); border-radius: 999px; padding: 4px; backdrop-filter: blur(6px); }
.lb-who button { font: 13px var(--f-ui); color: var(--lb-muted); background: none; border: 0; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.lb-who button.on { background: var(--lb-amber); color: #15110a; font-weight: 700; }
.lb-scroll { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); width: 22px; height: 34px; border: 1px solid rgba(236,228,212,.35); border-radius: 12px; }
.lb-scroll::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: var(--lb-amber); border-radius: 2px; animation: lb-hint 1.8s infinite; }
@keyframes lb-hint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
.lb-sec { max-width: 1200px; margin: 0 auto; padding: 90px 28px; }
.lb-sec-top0 { padding-top: 0; }
.lb-sec-price { padding-top: 20px; }
.lb-h { display: flex; align-items: baseline; gap: 18px; margin: 0 0 28px; }
.lb-h h2 { font-family: var(--f-head); font-size: clamp(26px, 3.4vw, 40px); margin: 0; font-weight: 700; color: var(--lb-ink); }
.lb-h::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--lb-dim), transparent); }
.lb-stage { margin: 0 0 12px; position: relative; aspect-ratio: 16 / 7; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.lb-stage figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 18px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-family: var(--f-head); font-size: 19px; }
.lb-reel { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.lb-reel button { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 16 / 8; opacity: .55; transition: opacity .2s, border-color .2s; }
.lb-reel button img { width: 100%; height: 100%; object-fit: cover; }
.lb-reel button.on, .lb-reel button:hover { opacity: 1; border-color: var(--lb-amber); }
.lb-cap { display: none; }
.lb-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lb-feat { background: var(--lb-bg2); border: 1px solid rgba(217,164,65,.14); border-radius: 6px; overflow: hidden; transition: transform .2s, border-color .2s; }
.lb-feat:hover { transform: translateY(-4px); border-color: var(--lb-dim); }
.lb-feat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lb-feat div { padding: 18px 18px 22px; }
.lb-feat h3 { font-family: var(--f-head); font-size: 21px; margin: 0 0 6px; color: var(--lb-amber); }
.lb-feat p { margin: 0; color: var(--lb-muted); font-size: 15px; }
.lb-medals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.lb-medal { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-medal i { display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%; font: 700 34px var(--f-head); font-style: normal; color: var(--lb-amber); background: radial-gradient(circle at 50% 35%, #2a2216, #120f0a 70%); box-shadow: 0 0 0 2px var(--lb-dim), 0 0 0 7px #0f0d09, 0 0 0 8px rgba(217,164,65,.18), 0 0 40px rgba(217,164,65,.12) inset; }
.lb-medal span { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--lb-muted); }
.lb-band { position: relative; min-height: max(520px, 23vw); display: flex; align-items: center; overflow: hidden; }
.lb-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% top; }
.lb-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 54%, rgba(11,10,8,.92) 70%), linear-gradient(180deg, transparent 78%, var(--lb-bg)); }
.lb-band-in { position: relative; z-index: 2; width: 100%; max-width: max(1200px, 36vw); margin: 0 auto; padding: 0 28px; display: flex; justify-content: flex-end; }
.lb-band-txt { width: 38%; max-width: 420px; }
.lb-band-txt h2 { font-family: var(--f-head); font-size: clamp(30px, 4vw, 46px); margin: 0 0 12px; line-height: 1.05; color: var(--lb-ink); }
.lb-band-txt p { color: #cfc5b2; margin: 0; }
.lb-band-txt .lb-kicker { color: var(--lb-amber); margin-bottom: 14px; }
.lb-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lb-plan { border: 1px solid rgba(236,228,212,.12); border-radius: 6px; padding: 26px 28px; background: var(--lb-bg2); }
.lb-plan h3 { margin: 0 0 4px; font-family: var(--f-head); font-size: 22px; color: var(--lb-ink); }
.lb-sum { font-family: var(--f-head); font-size: 34px; color: var(--lb-amber); margin: 6px 0 10px; }
.lb-sum[hidden] { display: none; }
.lb-plan p { color: var(--lb-muted); margin: 0 0 18px; font-size: 15px; }
.lb-ghost { display: inline-block; font: 15px var(--f-ui); color: var(--lb-ink); background: none; cursor: pointer; padding: 10px 20px; border-radius: 4px; border: 1px solid rgba(236,228,212,.25); }
.lb-ghost:hover { border-color: var(--lb-amber); color: var(--lb-amber); }
.lb-ghost[hidden] { display: none; }
.lb-plan small { display: block; margin-top: 14px; color: var(--lb-muted); font-size: 13px; }
.lb-final { text-align: center; padding: 110px 28px 120px; background: radial-gradient(ellipse at 50% 100%, rgba(217,164,65,.12), transparent 60%); }
.lb-final h2 { font-family: var(--f-head); font-size: clamp(30px, 4.4vw, 54px); margin: 0 0 30px; color: var(--lb-ink); }
.lb-final .lb-note { margin-top: 16px; }
@media (max-width: 900px) {
  .lb-feats { grid-template-columns: 1fr 1fr; }
  .lb-medals { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .lb-reel { grid-template-columns: repeat(6, 38%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .lb-reel button { scroll-snap-align: start; }
}
@media (max-width: 900px) {
  .lb-band { min-height: 0; display: block; }
  .lb-band img { position: relative; display: block; height: clamp(230px, 45vw, 360px); }
  .lb-band::after { display: none; }
  .lb-band-in { padding: 18px 16px 0; justify-content: flex-start; }
  .lb-band-txt { width: 100%; }
}
@media (max-width: 600px) {
  .lb { font-size: 16px; }
  .lb-top { padding: 14px 16px; }
  .lb-top nav { gap: 12px; }
  .lb-hide-m { display: none; }
  .lb-art img { object-position: 29% center; }
  .lb-hero::after { background: linear-gradient(180deg, rgba(11,10,8,.5) 0%, rgba(11,10,8,0) 18%, rgba(11,10,8,.15) 40%, rgba(11,10,8,.9) 68%, var(--lb-bg) 100%); }
  .lb-hero-in { padding: 0 16px 76px; }
  .lb-tag { margin: 14px 0 26px; }
  .lb-cta-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .lb-play { justify-content: center; font-size: 20px; padding: 18px 20px; }
  .lb-note { text-align: center; }
  .lb-who { right: 16px; top: 64px; bottom: auto; }
  .lb-scroll { display: none; }
  .lb-sec { padding: 60px 16px; }
  .lb-sec-top0 { padding-top: 0; }
  .lb-sec-price { padding-top: 20px; }
  .lb-stage { aspect-ratio: 4 / 3; }
  .lb-stage figcaption { font-size: 16px; padding: 30px 16px 14px; }
  .lb-feats { grid-template-columns: 1fr; gap: 14px; }
  .lb-feat { display: grid; grid-template-columns: 38% 1fr; }
  .lb-feat img { height: 100%; aspect-ratio: auto; }
  .lb-feat div { padding: 14px; }
  .lb-feat h3 { font-size: 18px; }
  .lb-feat p { font-size: 14px; }
  .lb-medal i { width: 92px; height: 92px; font-size: 28px; }
  .lb-medal span { font-size: 12px; }
  .lb-plans { grid-template-columns: 1fr; }
  .lb-plan { padding: 22px 18px; }
  .lb-final { padding: 70px 16px 80px; }
  .lb-final .lb-play { width: 100%; justify-content: center; }
}

/* Лендинг A (владелец 29.10): жёлтая «Играть без регистрации» слева, в окне входа справа дубля нет */
.land-cta .opt.land-guest { background: #ffc850; border-color: #ffc850; color: #1a1408; font-weight: 700; }
.land-cta .opt.land-guest:hover { background: #ffd57a; border-color: #ffd57a; }
.land-guest-note { margin: 8px 0 0; font-family: var(--f-ui); font-size: 0.82rem; color: var(--muted); }
body:not(.land-b) .cover #auth-box .guest-play-box { display: none; }
body.guest .land-guest-note, .site-in .land-guest-note { display: none; }

/* 29.10 (мини-игры): повторная встреча: короткая карточка, правила за кнопкой «?» */
.mm-q { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 8px; padding: 0; border-radius: 50%; border: 1px solid var(--accent); background: transparent; color: var(--accent); font: 700 14px/1 var(--f-ui, inherit); cursor: pointer; vertical-align: middle; }
.mm-q:hover { background: rgba(217, 164, 65, 0.18); }
.mm-in.pre.seen .mm-meds, .mm-in.pre.seen .mm-goals, .mm-in.pre.seen .mm-gk, .mm-in.pre.seen .mm-dim, .mm-in.pre.seen .mm-more { display: none; }
@media (min-width: 900px) { .mm-in.pre.seen { display: flex; max-width: 520px; text-align: center; } }
/* 29.10 (багажник): что внутри вещи и сколько */
.tp-val { display: inline-block; margin-left: 3px; padding: 0 5px; border-radius: 8px; background: rgba(217, 164, 65, 0.16); color: var(--accent); font-weight: 700; white-space: nowrap; }
.tp-sum { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 6px 0 2px; font-size: 14px; color: var(--accent); }
/* 29.10 (карта поездки B): линия к точке окрашена по её роду, как рамка значка */
.tm-b .tm-lines path.on.k-threat, .tm-b .tm-lines path.on.k-cache { stroke: #e0806a; }
.tm-b .tm-lines path.on.k-unknown { stroke: #b4ad9b; }
.tm-b .tm-lines path.on.k-radio { stroke: #8fd0ff; }
.tm-b .tm-lines path.k-threat, .tm-b .tm-lines path.k-cache { stroke: #6a3f35; }
.tm-b .tm-lines path.k-radio { stroke: #3d5a6a; }
.tm-dot i { font-size: 13px; }
/* 29.10: багажник по ценности: заметные бейджи добычи, подсветка при выбрасывании */
.tp-val { font-size: 13px; padding: 1px 7px; border: 1px solid rgba(217, 164, 65, 0.55); background: rgba(217, 164, 65, 0.24); }
.tp-dtag { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); white-space: nowrap; padding: 3px 9px; border-radius: 10px; font: 700 14px var(--f-ui); color: var(--accent); background: rgba(20, 16, 10, 0.92); border: 1px solid rgba(217, 164, 65, 0.7); }
.tp-dtag em { font-style: normal; color: #ff8a6a; margin-left: 4px; }
.tp-drag.out .tp-shape i { outline: 2px solid #ff6a4a; box-shadow: 0 0 12px rgba(255, 106, 74, 0.8); }
.tp-drag.out .tp-dtag { border-color: #ff6a4a; background: rgba(60, 14, 8, 0.95); }
.tp-sum span.flash, .tp-item.flash { animation: tp-flash 1.4s ease-out 1; }
@keyframes tp-flash { 0%, 40% { box-shadow: 0 0 0 3px #ff6a4a, 0 0 16px rgba(255, 106, 74, 0.8); border-radius: 8px; } 100% { box-shadow: 0 0 0 0 transparent; } }
.mini-msg.tp-warn { color: #ff8a6a; }
.opt.tp-arm { border-color: #ff6a4a; color: #ff8a6a; }

/* 29.10: единый язык сигналов багажника: цвет ресурса + «иконка число» в лотке, в багажнике и в строке сверху */
[data-r=water] { --rc: #2d5f8c; --rl: #8cc4ee; } [data-r=food] { --rc: #7d5330; --rl: #e0b27c; }
[data-r=fuel], [data-r=gas] { --rc: #b9661c; --rl: #ffb468; } [data-r=meds] { --rc: #9b3a36; --rl: #f0908a; }
[data-r=part] { --rc: #5f6a74; --rl: #bcc8d2; } [data-r=barricade] { --rc: #8a6a3f; --rl: #e6c690; }
.tp-cell[data-r], .tp-shape [data-r] { background-color: var(--rc) !important; background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(0, 0, 0, 0.18)) !important; }
.tp-cell[data-t=empty], .tp-shape [data-t=empty] { background-color: #2b2b2d !important; background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 3px, transparent 3px 8px) !important; }
.tp-cell span.tp-ic, .mm-full .tp-cell span.tp-ic { inset: auto; left: 50%; top: 50%; right: auto; transform: translate(-50%, -50%); width: auto; display: block; padding: 1px 6px; border-radius: 10px; font: 700 13px/1.35 var(--f-ui); color: #fff; white-space: nowrap; background: rgba(12, 10, 8, 0.82); border: 1px solid var(--rl); text-shadow: none; filter: none; }
.tp-val, .tp-item .tp-val { display: inline-block; margin: 0; padding: 1px 7px; border-radius: 10px; font: 700 13px/1.35 var(--f-ui); color: #fff; background: rgba(12, 10, 8, 0.82); border: 1px solid var(--rl, #888); }
.tp-sum span[data-r] { padding: 1px 9px; border-radius: 10px; color: #fff; font-weight: 700; background: var(--rc); border: 1px solid var(--rl); }
.tp-item small.tp-empty { font-size: 10px; color: #8a8a8a; }
.tp-cell.tp-fly { animation: tp-fly 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) 1; }
@keyframes tp-fly { from { transform: translate(var(--fx, 0), var(--fy, 60px)) scale(0.5); opacity: 0; } to { transform: none; opacity: 1; } }
.tp-flybadge { position: fixed; z-index: 1002; pointer-events: none; padding: 1px 6px; border-radius: 10px; font: 700 13px/1.35 var(--f-ui); color: #fff; background: rgba(12, 10, 8, 0.9); border: 1px solid var(--rl); transition: transform 0.8s ease-in, opacity 0.8s ease-in; }

/* Карточки вариантов: одна сетка (владелец 29.10, принцип «один язык сигналов»). Все карточки во всю колонку; слева действие и мелкая подсказка,
   справа в одном месте сигналы (риск, значки добычи, полоска запаса) по правому краю; на телефоне сигналы одной строкой под текстом у всех */
body.ui-v3 #card .choices:has(button.uv-ch) { grid-template-columns: minmax(0, 1fr); }
body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-auto-flow: row dense; align-items: start; column-gap: 14px; row-gap: 4px; padding: 10px 12px; text-align: left; width: 100%; }
body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .odds { display: contents; }
body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .uv-big { position: static; grid-column: 2; grid-row: 1; justify-self: end; align-self: start; margin: 0; }
body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .loot-icons { grid-column: 2; justify-self: end; margin: 0; }
body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .odds-right, body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .stock-bar { grid-column: 2; justify-self: end; margin: 0; }
body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .need-parts { grid-column: 1; order: 0; flex-basis: auto; }
body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .sense, body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .memo, body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .radio-tip { grid-column: 1; }
@media (max-width: 600px) {
  body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch::after { content: ''; order: 1; flex: 0 0 100%; height: 0; }
  body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .sense, body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .memo, body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .radio-tip, body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .need-parts { flex: 0 0 100%; }
  body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .uv-big, body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .loot-icons, body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .odds-right, body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .stock-bar { order: 3; justify-self: auto; }
  body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .uv-big { order: 2; }
  body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .stock-bar, body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .odds-right { margin-left: auto; }
}
body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .odds > .muted.sense, body.ui-v3 #card .choices:has(button.uv-ch) > button.uv-ch .odds > .muted.memo { display: block; font-size: 0.8rem; line-height: 1.35; }
body.ui-v3 #card .choices:has(button.uv-ch) > button.opt:not(.uv-ch) { padding: 10px 12px; text-align: left; }

/* Рация (29.10): шкала и текст сверху, ручка настройки внизу под большим пальцем */
.rd-set { display: flex; flex-direction: column; min-height: min(560px, calc(100dvh - 150px)); }
.rd-top { flex: 0 0 auto; }
.rd-top .rd-scope { height: 54px; margin-top: 8px; }
.rd-top .mini-bar.signal { display: none; }
.rd-strip { margin-top: auto; padding-top: 12px; }
.rd-strip .rd-hint { margin: 0 0 6px; }
.rd-track { position: relative; height: 72px; border-radius: 36px; background: linear-gradient(180deg, #0c0a07, #1d1812); border: 1px solid #000; box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 240, 210, 0.06); touch-action: none; }
.rd-track::before { content: ''; position: absolute; left: 36px; right: 36px; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, rgba(255, 200, 80, 0.35) 0 2px, transparent 2px 12px); }
.rd-grip { position: absolute; top: 4px; bottom: 4px; width: 56px; left: calc(36px + (100% - 72px) * var(--v) / 100); margin-left: -28px; border-radius: 28px; background: repeating-conic-gradient(#3a3226 0 6deg, #241e16 6deg 12deg); border: 1px solid #000; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7), inset 0 0 0 4px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 200, 80, 0.25); pointer-events: none; }
.rd-grip::after { content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #ffc850; box-shadow: 0 0 6px rgba(255, 200, 80, 0.6); }
.rd-track:focus-within { box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255, 200, 80, 0.4); }
.mm-full .radio-text { transition: opacity 0.2s; }
.mm-full .radio-text.flash { animation: rdFlash 0.7s ease-out; } @keyframes rdFlash { 0% { background: rgba(255, 240, 180, 0.9); box-shadow: 0 0 40px rgba(255, 220, 120, 0.9); } 100% { background: rgba(10, 18, 10, 0.6); box-shadow: none; } }
@media (max-width: 420px) { .rd-top .rd-scope { height: 44px; } .rd-set { padding: 10px; } }
/* Экран оплаты «глава закрыта» (владелец 29.10): медальоны итога, закрытые плакаты, одна янтарная кнопка */
.card.paywall .pay-h { font-size: 1.7rem; color: var(--accent); margin: 0; }
.card.paywall .pay-sub { color: var(--muted, #999); margin: 2px 0 16px; }
.card.paywall .pay-meds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 18px; }
.card.paywall .pay-med { text-align: center; }
.card.paywall .pay-med b { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin: 0 auto 4px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.15), inset 0 0 14px rgba(217, 164, 65, 0.25); font-size: 1.3rem; color: var(--accent); }
.card.paywall .pay-med span { display: block; font-size: 0.75rem; line-height: 1.2; color: var(--muted, #999); }
.card.paywall .pay-lbl { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted, #999); margin: 0 0 8px; }
.card.paywall .pay-posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card.paywall .pay-pos { position: relative; aspect-ratio: 3 / 4.4; border-radius: 8px; overflow: hidden; border: 1px solid #3a3226; }
.card.paywall .pay-pos img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.95); display: block; } /* 03.11 владелец: закрытые главы светлее */
.card.paywall .pay-pos > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); }
.card.paywall .pay-pos i { position: absolute; top: 6px; right: 7px; font-style: normal; font-size: 0.8rem; opacity: 0.8; }
.card.paywall .pay-pos h3 { margin: 0; font-size: 0.95rem; color: var(--accent); text-transform: none; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.paywall .pay-pos p { margin: 2px 0 0; font-size: 0.72rem; line-height: 1.25; }
.card.paywall .pay-price { text-align: center; margin: 18px 0 10px; }
.card.paywall .opt.pay-buy { display: block; width: 100%; padding: 14px; background: var(--accent); color: #1a1206; border-color: var(--accent); font-size: 1.1rem; font-weight: 700; text-align: center; }
/* Лаборатория (владелец 29.10): разделы-раскрывашки, настройка = строка «название слева, чипы справа» */
.lab-sec { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); overflow: hidden; }
.lab-sec > summary { cursor: pointer; padding: 11px 14px; font-weight: 700; font-size: 1rem; color: var(--accent); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.lab-sec > summary::-webkit-details-marker { display: none; }
.lab-sec > summary::after { content: '▸'; font-size: 0.9em; transition: transform 0.15s; }
.lab-sec[open] > summary::after { transform: rotate(90deg); }
.lab-sec[open] > summary { border-bottom: 1px solid var(--line); }
.lab-sec-body { padding: 4px 14px 10px; }
.lab-set { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid rgba(127, 127, 127, 0.15); }
.lab-set:last-child { border-bottom: 0; }
.lab-lbl { flex: 0 0 8.5em; font-size: 0.9rem; color: var(--muted); }
.lab-set > .lab-btns { flex: 1 1 14em; min-width: 0; gap: 4px; }
.lab-set > .lab-sp { flex-basis: 100%; padding-left: 0; }
.lab-sub { padding: 8px 0 2px; }
.lab-sub .hint { margin: 2px 0 6px; font-size: 0.82rem; }
.lab-card .lab-set { padding: 7px 0; }
.lab-card .lab-btns .opt, .lab-sec .lab-btns .opt { padding: 4px 10px; font-size: 0.85rem; line-height: 1.25; border-radius: 14px; width: auto; margin: 0; }
.lab-btns .opt.on { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.lab-btns .opt.on::before { content: '✓ '; }
@media (max-width: 520px) { .lab-lbl { flex-basis: 100%; font-size: 0.8rem; } .lab-sec-body { padding: 2px 10px 8px; } }

/* Подвал (владелец 29.10, вариант Valve): во время игры только юридическая строка мелким серым.
   «Сохранить», «Начать заново», «Обновить игру» в кабинете → «Настройки»; Telegram и отзыв в конце партии и утром после орды */
.foot-tools #save, .foot-tools #restart, .foot-tools #update-btn, .foot-social { display: none !important; }
.foot .foot-legal, .foot .foot-copy { font-size: 12px; opacity: 0.7; }
.tg-hint { margin: 10px 0 0; font-size: 14px; color: var(--muted, #999); }
.tg-hint a { color: var(--accent); }

/* Отклик кнопок (владелец 29.10, Valve 5.4): при наведении приподнимается, при нажатии вдавливается */
button.opt { transition: transform 0.08s ease, border-color 0.12s ease, box-shadow 0.12s ease; }
@media (hover: hover) { button.opt:not(:disabled):not(.locked):hover { transform: translateY(-2px); } }
button.opt:not(:disabled):not(.locked):active { transform: translateY(1px) scale(0.985); transition-duration: 0.03s; }
@media (hover: hover) { body.ui-v3 #card button.opt:not(:disabled):hover .uv-med { box-shadow: 0 0 12px rgba(255, 200, 80, 0.35); } }
@media (prefers-reduced-motion: reduce) { button.opt, button.opt:hover, button.opt:active { transform: none !important; transition: none; } }

/* 29.10 разбор: дела, закрытые только по времени, одной серой строкой под списком */
.card > p.soon-line, .soon-line { margin: 14px 2px 0; font-family: var(--f-ui); font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
/* 29.10 разбор: утренний отчёт свёрнут в одну строку-итог */
.rep-fold > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; cursor: pointer; list-style: none; }
.rep-fold > summary::-webkit-details-marker { display: none; }
.rep-fold > summary .report-title { margin: 0; }
.rep-fold > summary .chips { margin: 0; }
.rep-fold .rf-alert { color: var(--bad); font-family: var(--f-ui); font-size: 0.85rem; }
.rep-fold .rf-more { margin-left: auto; color: var(--accent); font-family: var(--f-ui); font-size: 0.85rem; white-space: nowrap; }
.rep-fold[open] .rf-more .rm-c, .rep-fold:not([open]) .rf-more .rm-o { display: none; }
.rep-fold[open] > summary { margin-bottom: 8px; }
.rep-fold[open] > summary .chips { display: none; } /* раскрыто: цифры уже в «За сутки» */
/* 29.10 разбор: на телефоне плитка с расходом «−1/ночь» влезает и при двузначном запасе */
@media (max-width: 420px) {
  #stats .res { gap: 5px; padding-left: 6px; padding-right: 6px; }
  #stats .res .res-top { gap: 4px; }
  #stats .res .res-name { letter-spacing: 0; }
  #stats .res .burn { margin-left: 2px; padding: 0 3px; }
}

/* Карточка перка на вехе (30.10): значок и имя, эффект, «≈ за месяц», цена у сделок ⚖ */
button.opt.perk-card { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; }
body #card .choices button.opt.perk-card { border-left: 3px solid var(--accent); }
body #card .choices button.opt.perk-card.deal { border-left-color: var(--bad); }
.perk-card .perk-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-family: var(--f-ui); }
.perk-card .perk-head b { color: var(--accent); font-size: 1.05rem; }
.perk-card .perk-ico { font-size: 1.25rem; line-height: 1; }
.perk-card .perk-tag { font-style: normal; font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 0 7px; }
.perk-card.deal .perk-tag { color: #e0a49b; border-color: #5a332e; }
.perk-card .perk-fx { color: var(--text); }
.perk-card .perk-month { font-family: var(--f-num); font-size: 0.9rem; color: var(--good); }
.perk-card .perk-price { font-size: 0.88rem; color: #e0a49b; }
/* Строка «+N (перк)» в отчёте: перк виден там, где сработал */
.news.dayline.perk-line { border-left: 3px solid var(--accent); }


/* Создание героя по шагам (проба 29.10): стиль экрана перед ночью в Аркаде.
   Янтарь #ffc850, медальоны, на компьютере две колонки, на телефоне одна */
.app.hs { max-width: 1040px; }
.app.hs.setup { padding-bottom: 104px; }
.card.hs-card { --acc: #ffc850; --tx: #f2e6c8; --mu: #a89f8c; color: var(--tx); font-family: var(--f-ui); padding: 20px 16px 18px; border: 1px solid #3d362a; border-radius: 14px; background: radial-gradient(ellipse at 50% -10%, rgba(255, 200, 80, 0.09), transparent 60%), #100f0b; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.hs-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "body" "info"; gap: 16px; }
.hs-head { grid-area: head; } .hs-body { grid-area: body; min-width: 0; } .hs-info { grid-area: info; }
.card.hs-card p { margin: 0; }
.card.hs-card .hs-k { margin: 0 0 6px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mu); }
.card.hs-card h2.hs-big { margin: 0 0 8px; font-family: var(--f-ui); font-size: 30px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.05; color: var(--acc); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8); }
.card.hs-card .hs-lead { color: var(--mu); font-size: 14px; line-height: 1.4; }
.hs-dim { color: var(--mu); font-size: 14px; }
.hs-med { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; color: var(--acc); background: radial-gradient(circle at 35% 30%, #3a2f1c, #14110b 70%); border: 2px solid #6b5a36; box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7); transition: border-color 0.15s, box-shadow 0.15s; }
.hs-med.big { width: 64px; height: 64px; font-size: 28px; }
.hs-cost { display: inline-block; min-width: 26px; padding: 1px 7px; border-radius: 10px; border: 1px solid #4a4335; font-size: 12px; font-weight: 700; color: var(--mu); text-align: center; font-family: var(--f-ui); }
.hs-cost.minus { color: #e0906a; border-color: rgba(224, 144, 106, 0.5); }
.hs-cost.plus { color: #9ccf7a; border-color: rgba(156, 207, 122, 0.5); }
.hs-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card.hs-card button.opt.hs-pick { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px; margin: 0; padding: 16px 8px 14px; text-align: center; color: var(--tx); background: rgba(255, 255, 255, 0.025); border: 1px solid #3d362a; border-radius: 12px; }
.card.hs-card button.opt.hs-pick b { font-size: 16px; line-height: 1.15; }
.card.hs-card button.opt.hs-pick small { font-size: 12px; line-height: 1.3; color: var(--mu); }
.card.hs-card button.opt.hs-pick.on { border-color: var(--acc); background: rgba(255, 200, 80, 0.08); box-shadow: inset 0 0 0 1px var(--acc), 0 0 22px rgba(255, 200, 80, 0.16); }
.card.hs-card button.opt.hs-pick.on .hs-med { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03), 0 0 18px rgba(255, 200, 80, 0.28), inset 0 0 12px rgba(0, 0, 0, 0.7); }
.card.hs-card button.opt.hs-pick.locked { opacity: 0.45; }
.card.hs-card button.opt.hs-pick.locked .hs-med { filter: grayscale(1); }
.card.hs-card .hs-sub { margin: 16px 0 8px; }
.hs-tabs { display: flex; gap: 6px; margin: 0 0 10px; padding: 3px; border: 1px solid #3d362a; border-radius: 12px; background: rgba(0, 0, 0, 0.3); }
.hs-tabs button { flex: 1; padding: 8px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--mu); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.hs-tabs button.on { background: rgba(255, 200, 80, 0.14); color: var(--acc); }
.hs-traits { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.card.hs-card button.opt.hs-tr { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0; min-height: 40px; padding: 6px 8px 6px 11px; font-size: 14px; line-height: 1.15; color: var(--tx); background: rgba(255, 255, 255, 0.025); border: 1px solid #3d362a; border-radius: 10px; }
.card.hs-card button.opt.hs-tr.on { border-color: var(--acc); background: rgba(255, 200, 80, 0.1); box-shadow: inset 0 0 0 1px var(--acc); color: #fff3d6; }
.card.hs-card button.opt.hs-tr.blocked { opacity: 0.38; }
.hs-info { min-height: 76px; padding: 12px 14px; border: 1px solid #3d362a; border-radius: 12px; background: rgba(0, 0, 0, 0.3); font-size: 14px; line-height: 1.4; }
.hs-info b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--acc); }
.hs-info small { display: block; margin-top: 6px; font-size: 13px; color: var(--mu); }
.hs-info small.why { color: #e0806a; }
.hs-hero { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid #3d362a; border-radius: 12px; background: rgba(255, 200, 80, 0.05); }
.hs-hero .hs-med { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03), 0 0 18px rgba(255, 200, 80, 0.28), inset 0 0 12px rgba(0, 0, 0, 0.7); }
.hs-hero b { display: block; font-size: 22px; color: var(--acc); }
.hs-hero small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--mu); }
.hs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-chip { padding: 4px 10px; border-radius: 12px; font-size: 13px; border: 1px solid #4a4335; }
.hs-chip.good { color: #f2e6c8; border-color: rgba(255, 200, 80, 0.5); }
.hs-chip.bad { color: #e0a08a; border-color: rgba(224, 128, 106, 0.45); }
.card.hs-card .hs-left { margin-top: 12px; }
.hs-vet { margin-top: 8px; }
.hs-vet h3 { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mu); margin: 14px 0 6px; }
/* Нижняя строка: «Назад» (тихая), очки, одна янтарная кнопка */
.setup-bar.hs-bar { width: min(1040px, 100%); gap: 10px; background: rgba(14, 13, 10, 0.97); border-color: #3d362a; font-family: var(--f-ui); }
.hs-bar .hs-gap { flex: 1; }
.hs-bar .hs-back { flex: none; padding: 10px 12px; border: 0; background: none; color: #a89f8c; font: inherit; font-size: 15px; cursor: pointer; }
.hs-bar .hs-pts { flex: none; font-size: 14px; color: #a89f8c; white-space: nowrap; }
.hs-bar .hs-pts b { font-size: 20px; color: #ffc850; margin-left: 2px; }
.hs-bar .hs-pts.neg b { color: #e0806a; }
.hs-bar .hs-next { flex: 0 1 auto; min-width: 150px; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #ffd877, #f0b33a); color: #1a1408; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 18px rgba(255, 200, 80, 0.3); }
.hs-bar .hs-next:disabled { background: #3a3426; color: #a89f8c; box-shadow: none; cursor: default; }
.hs-bar .hs-next.go:not(:disabled) { min-height: 54px; min-width: 200px; font-size: 18px; animation: hsbreath 2.4s ease-in-out 1s infinite; }
@keyframes hsbreath { 50% { box-shadow: 0 4px 30px rgba(255, 200, 80, 0.5); } }
@media (hover: hover) { .hs-bar .hs-next:not(:disabled):hover { filter: brightness(1.06); } .hs-bar .hs-back:hover { color: #ffc850; } }
/* Компьютер: слева заголовок и описание, справа выбор */
@media (min-width: 900px) {
  .card.hs-card { padding: 36px 40px; min-height: 440px; }
  .hs-grid { grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.4fr); grid-template-areas: "head body" "info body"; column-gap: 44px; row-gap: 18px; align-content: start; }
  .card.hs-card h2.hs-big { font-size: 44px; }
  .card.hs-card .hs-lead { font-size: 16px; }
  .hs-picks.four { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card.hs-card .hs-picks.four button.opt.hs-pick { min-height: 190px; justify-content: center; }
  .card.hs-card .hs-picks.four button.opt.hs-pick b { font-size: 19px; }
  .card.hs-card .hs-picks.four .hs-med { width: 76px; height: 76px; font-size: 32px; }
  .card.hs-card .hs-picks.four.locked-row button.opt.hs-pick { min-height: 0; }
  .hs-traits { grid-template-columns: repeat(3, 1fr); }
  .hs-med { width: 64px; height: 64px; font-size: 27px; }
  .hs-med.big { width: 80px; height: 80px; font-size: 34px; }
  .card.hs-card button.opt.hs-pick { padding: 22px 10px 18px; }
  .setup-bar.hs-bar { padding-left: 40px; padding-right: 40px; }
}
/* Телефон: профессии строкой (медальон слева), черты плотнее, описание прилипает над нижней строкой */
.hs-traits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card.hs-card button.opt.hs-tr > span:first-child { min-width: 0; hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 899px) {
  .hs-picks.four { gap: 8px; }
  .card.hs-card .hs-picks.four button.opt.hs-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 3px; align-items: center; justify-items: start; padding: 10px; text-align: left; }
  .card.hs-card .hs-picks.four .hs-med { grid-row: span 2; width: 42px; height: 42px; font-size: 19px; }
  .card.hs-card .hs-picks.four button.opt.hs-pick b { font-size: 15px; align-self: end; hyphens: auto; overflow-wrap: break-word; }
  .card.hs-card .hs-picks.four .hs-cost { align-self: start; }
  .card.hs-card button.opt.hs-tr { min-height: 38px; font-size: 13.5px; padding: 5px 6px 5px 10px; }
  .card.hs-card .hs-picks.four .hs-med { width: 38px; height: 38px; font-size: 17px; }
  /* Шаг черт: описание прибито над нижней строкой (sticky не работает из-за overflow-x у body) */
  .hs-s3 .hs-info { position: fixed; left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 600px; box-sizing: border-box; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 29; min-height: 0; padding: 10px 12px; background: #1a160f; border-color: #5a4a2a; box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.6); font-size: 13.5px; }
  .hs-s3 .hs-info b { font-size: 15px; }
  .card.hs-card:has(.hs-s3) { padding-bottom: 130px; }
}
/* Компьютер: черты в три колонки, описание прижато к заголовку */
@media (min-width: 900px) {
  .hs-traits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hs-grid { grid-template-rows: auto 1fr; }
  .hs-info { align-self: start; }
}
@media (max-width: 899px) { .hs-s3 .hs-info { padding-right: 52px; } }
@media (min-width: 900px) {
  .hs-picks.four.locked-row { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .card.hs-card .hs-picks.four.locked-row button.opt.hs-pick { padding: 12px 6px; }
  .card.hs-card .hs-picks.four.locked-row .hs-med { width: 48px; height: 48px; font-size: 21px; }
  .card.hs-card .hs-picks.four.locked-row button.opt.hs-pick b { font-size: 15px; }
}
@media (max-width: 899px) {
  .card.hs-card .hs-picks.four button.opt.hs-pick { padding: 10px 8px; column-gap: 8px; }
  .card.hs-card .hs-picks.four button.opt.hs-pick b { font-size: 14px; hyphens: manual; }
}
/* ---------- Создание героя, доработка 30.10 (тестовая копия): фишки профессий, вариант L4D, первая партия без очков ---------- */
body:has(.app.hs) .music-toggle { display: none; } /* звук на создании героя не нужен и висел поверх панели */
.hs-grid { grid-template-areas: "head" "body" "info"; }
.hs-tabw .hs-tabs { margin: 0 0 10px; }
.hs-med.huge { width: 120px; height: 120px; font-size: 54px; border-width: 3px; }
/* Путь по шагам: только на компьютере */
.hs-track { display: none; }
/* Имена черт: перенос только по словам, длинные ужимаются */
.card.hs-card button.opt.hs-tr > span:first-child, .card.hs-card .hs-picks.four button.opt.hs-pick b { hyphens: manual; overflow-wrap: normal; word-break: normal; }
@media (max-width: 899px) { .hs-tn.long { font-size: 12.5px; } .hs-tn.xlong { font-size: 11.5px; letter-spacing: -0.2px; } }
.hs-tn small { display: block; margin-top: 1px; font-size: 11px; line-height: 1.2; color: #c9a75a; white-space: nowrap; }
.card.hs-card button.opt.hs-tr.covered { opacity: 0.6; border-style: dashed; border-color: rgba(255, 200, 80, 0.45); }
.hs-inl { display: none; }
/* Фишки профессии и врождённое */
.hs-fx { display: flex; flex-wrap: wrap; gap: 4px; }
.hs-fx1 { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border: 1px solid #4a4335; border-radius: 10px; font-size: 12px; line-height: 1.3; color: var(--tx); background: rgba(0, 0, 0, 0.25); }
.hs-fx1 em { font-style: normal; font-size: 12px; }
.hs-fx1.bad { color: #e0a08a; border-color: rgba(224, 128, 106, 0.45); }
.hs-inn { display: flex; align-items: flex-start; gap: 7px; text-align: left; }
.hs-inn em { flex: none; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; color: #1a1408; background: radial-gradient(circle at 35% 30%, #ffd877, #c8902a); box-shadow: 0 0 10px rgba(255, 200, 80, 0.35); }
.hs-inn b { font-size: 13px; color: var(--acc); }
.hs-inn > span > small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--mu); font-weight: 400; }
@media (max-width: 899px) { .hs-s2 > .hs-info { display: none; } }
.hs-inn.full { align-items: flex-start; margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(255, 200, 80, 0.35); border-radius: 10px; background: rgba(255, 200, 80, 0.05); }
.hs-inn.full em { margin-top: 1px; }
.hs-inn.full b { display: block; font-size: 14px; margin: 0; }
.hs-info .hs-inn.full small, .hs-inn.full small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--tx); }
.hs-info .hs-inn.full b { font-size: 14px; margin: 0; }
small.hs-sim, .hs-info small.hs-sim { display: block; margin-top: 8px; font-size: 13px; color: #9ccf7a; }
/* Вариант PZ: карточка профессии с фишками */
.hs-picks.pzl { grid-template-columns: 1fr; gap: 8px; }
.card.hs-card .hs-picks.four button.opt.hs-pick.hs-prof { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "med name" "med fx" "med inn"; column-gap: 12px; row-gap: 6px; align-items: center; justify-items: start; padding: 12px; text-align: left; }
.hs-prof > .hs-med { grid-area: med; align-self: start; }
.hs-prof .hs-pn { grid-area: name; display: flex; align-items: center; gap: 8px; }
.hs-prof .hs-fx { grid-area: fx; }
.hs-prof .hs-inn { grid-area: inn; }
.card.hs-card .hs-picks.four button.opt.hs-pick.hs-prof b { font-size: 16px; align-self: center; }
.card.hs-card .hs-picks.four button.opt.hs-pick.hs-prof .hs-inn b { font-size: 13px; }
.card.hs-card .hs-picks.four button.opt.hs-pick.hs-prof .hs-med { width: 44px; height: 44px; font-size: 20px; }
/* Вариант L4D: одна профессия на весь экран */
.hs-grid.hs-l4, .card.hs-card .hs-grid.hs-l4 { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "head" "body"; gap: 10px; }
.hs-l4 .hs-head h2.hs-big { font-size: 24px; margin: 0; }
.l4 { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "dots" "txt"; gap: 12px; }
.l4.in-r .l4-stage, .l4.in-r .l4-txt { animation: l4inR 0.28s ease-out; }
.l4.in-l .l4-stage, .l4.in-l .l4-txt { animation: l4inL 0.28s ease-out; }
@keyframes l4inR { from { opacity: 0.2; transform: translateX(28px); } }
@keyframes l4inL { from { opacity: 0.2; transform: translateX(-28px); } }
.l4-stage, .hs-por { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid #4a3f2c; background: radial-gradient(circle at 50% 40%, #2a2216, #0b0a07 75%); }
.l4-stage { grid-area: stage; aspect-ratio: 4 / 3.4; touch-action: pan-y; }
.l4-stage img, .hs-por img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.l4-stage::after, .hs-por::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(8, 7, 5, 0.92) 100%); pointer-events: none; }
.hs-ph { display: none; }
.noimg > .hs-ph { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; padding-bottom: 40px; }
.noimg > .hs-ph .hs-med { border-color: var(--acc); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.02), 0 0 40px rgba(255, 200, 80, 0.25), inset 0 0 18px rgba(0, 0, 0, 0.8); }
.l4-cap { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2; }
.card.hs-card .l4-cap .hs-k { margin: 0 0 2px; color: #d8cdb4; text-shadow: 0 1px 4px #000; }
.card.hs-card h3.l4-name, .l4-name { margin: 0; padding: 0; border: 0; text-transform: none; letter-spacing: -0.3px; font-family: var(--f-ui); font-size: 32px; font-weight: 800; line-height: 1.05; color: var(--acc); text-shadow: 0 2px 14px #000; }
.l4-arr { position: absolute; top: 42%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; border: 1px solid rgba(255, 200, 80, 0.5); border-radius: 50%; background: rgba(10, 9, 6, 0.72); color: var(--acc); font-size: 30px; line-height: 1; cursor: pointer; }
.l4-arr.prev { left: 10px; } .l4-arr.next { right: 10px; }
@media (hover: hover) { .l4-arr:hover { background: rgba(255, 200, 80, 0.18); } }
.l4-dots { grid-area: dots; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.l4-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid #6b5a36; background: transparent; cursor: pointer; }
.l4-dots button.on { background: var(--acc); border-color: var(--acc); box-shadow: 0 0 8px rgba(255, 200, 80, 0.5); }
.l4-dots button.lk { border-style: dashed; opacity: 0.6; }
.l4-txt { grid-area: txt; min-width: 0; }
.card.hs-card .l4-quote, .card.hs-card p.l4-quote { margin: 0 0 14px; padding-left: 12px; border-left: 3px solid var(--acc); font-size: 16px; line-height: 1.45; font-style: italic; color: var(--tx); }
.l4-fx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.l4-fx1 { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.l4-fx1 .hs-med { width: 50px; height: 50px; font-size: 22px; }
.l4-fx1 small { font-size: 12.5px; line-height: 1.25; color: var(--tx); }
.l4-fx1.bad .hs-med { border-color: rgba(224, 128, 106, 0.6); }
.l4-fx1.bad small { color: #e0a08a; }
.hs-next.take:not(:disabled) { min-width: 190px; font-size: 18px; letter-spacing: 0.5px; }
/* Итог: портрет, фишки, врождённое, черты с описанием */
.hs-por { aspect-ratio: 16 / 8; margin-bottom: 12px; }
.hs-por .hs-ph .hs-med.huge { width: 92px; height: 92px; font-size: 42px; }
.hs-por-cap { position: absolute; left: 14px; bottom: 10px; z-index: 2; }
.hs-por-cap b { display: block; font-size: 26px; font-weight: 800; color: var(--acc); text-shadow: 0 2px 12px #000; }
.hs-por-cap small { font-size: 13px; color: #d8cdb4; }
.hs-fx.wide { margin: 0 0 4px; } .hs-fx.wide .hs-fx1 { font-size: 13px; padding: 4px 10px 4px 8px; }
.hs-tlist { display: grid; gap: 6px; }
.hs-trow { padding: 8px 12px; border: 1px solid #3d362a; border-left-width: 3px; border-radius: 8px; background: rgba(255, 255, 255, 0.02); }
.hs-trow.good { border-left-color: var(--acc); } .hs-trow.bad { border-left-color: #e0806a; }
.hs-trow b { display: block; font-size: 14px; color: var(--tx); }
.hs-trow small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--mu); }
/* Телефон */
@media (max-width: 899px) {
  /* Черты: описание строкой под нажатой чертой, без плавающей панели */
  .hs-s3 > .hs-info { display: none; }
  .card.hs-card:has(.hs-s3) { padding-bottom: 18px; }
  .hs-traits .hs-inl, .hs-picks .hs-inl { display: block; grid-area: auto; grid-column: 1 / -1; position: static; transform: none; width: auto; min-height: 0; margin: 2px 0 4px; padding: 10px 12px; font-size: 13.5px; background: #1a160f; border-color: #6b5a36; box-shadow: none; }
  .hs-traits .hs-inl b { font-size: 15px; }
  .hs-grid { gap: 12px; }
  .card.hs-card .hs-lead { font-size: 13.5px; }
}
/* Компьютер */
@media (min-width: 900px) {
  .hs-grid { grid-template-areas: "head body" "info body"; }
  .hs-track { display: grid; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
  .hs-track li { display: flex; align-items: center; gap: 10px; color: var(--mu); font-size: 14px; }
  .hs-track li b { font-weight: 600; }
  .hs-track li small { display: block; font-size: 12.5px; color: #c9b88f; }
  .hs-tnum { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border: 1px solid #4a4335; color: var(--mu); }
  .hs-track li.done .hs-tnum { border-color: #6b5a36; color: var(--acc); }
  .hs-track li.cur { color: var(--tx); } .hs-track li.cur .hs-tnum { border-color: var(--acc); background: var(--acc); color: #1a1408; box-shadow: 0 0 14px rgba(255, 200, 80, 0.35); }
  /* Шаг 1: крупные карточки */
  .hs-picks.hs-sex { gap: 16px; }
  .card.hs-card .hs-sex button.opt.hs-pick { min-height: 320px; justify-content: center; gap: 12px; }
  .hs-sex .hs-med.big { width: 128px; height: 128px; font-size: 58px; border-width: 3px; }
  .card.hs-card .hs-sex button.opt.hs-pick b { font-size: 24px; }
  .card.hs-card .hs-sex button.opt.hs-pick small { font-size: 14px; }
  /* PZ: две колонки карточек */
  .hs-picks.pzl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card.hs-card .hs-picks.four button.opt.hs-pick.hs-prof { min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-areas: "med" "name" "fx" "inn"; justify-items: center; text-align: center; padding: 18px 12px 16px; row-gap: 9px; align-content: start; }
  .hs-prof > .hs-med { align-self: center; }
  .card.hs-card .hs-picks.four button.opt.hs-pick.hs-prof .hs-med { width: 64px; height: 64px; font-size: 28px; }
  .card.hs-card .hs-picks.four button.opt.hs-pick.hs-prof b { font-size: 19px; }
  .hs-prof .hs-fx { justify-content: center; }
  /* L4D: картинка слева, текст справа */
  .hs-l4 .hs-head { display: flex; align-items: baseline; gap: 16px; }
  .hs-l4 .hs-head .hs-k { margin: 0; }
  .hs-l4 .hs-head h2.hs-big { font-size: 28px; }
  .l4 { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-areas: "stage txt" "dots txt"; column-gap: 32px; row-gap: 12px; align-items: start; }
  .l4-stage { aspect-ratio: 16 / 10.5; }
  .card.hs-card h3.l4-name { font-size: 46px; }
  .l4-arr { width: 52px; height: 52px; margin-top: -26px; font-size: 36px; top: 48%; }
  .card.hs-card .l4-quote, .card.hs-card p.l4-quote { font-size: 19px; margin-top: 6px; }
  .l4-fx { margin-top: 18px; gap: 12px; }
  .l4-fx1 .hs-med { width: 64px; height: 64px; font-size: 28px; }
  .l4-fx1 small { font-size: 14px; }
  .l4-txt .hs-inn.full { margin-top: 18px; }
  .hs-por { aspect-ratio: 16 / 7; }
  .hs-tlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* PZ на компьютере (владелец 30.10, вариант В): все 8 профессий на одном экране, карточка = значок, имя, цена; всё остальное в панели слева, она не уезжает при прокрутке */
@media (min-width: 900px) {
  .hs-picks.pzl { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .hs-picks.pzl .hs-prof .hs-fx, .hs-picks.pzl .hs-prof .hs-inn { display: none; }
  .card.hs-card .hs-picks.pzl button.opt.hs-pick.hs-prof { padding: 14px 8px 12px; gap: 6px; }
  .card.hs-card .hs-picks.pzl button.opt.hs-pick.hs-prof .hs-med { width: 52px; height: 52px; font-size: 23px; }
  .card.hs-card .hs-picks.pzl button.opt.hs-pick.hs-prof b { font-size: 16px; }
  .hs-s2 > .hs-info { position: sticky; top: 48px; align-self: start; }
  .hs-s2 > .hs-info .hs-fx { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
}
/* Владелец 30.10, вариант В (Valve): на компьютере шаги одной строкой под заголовком, объяснение сразу под ними и всегда на виду; снизу запас под нижнюю панель */
@media (min-width: 900px) {
  .hs-track { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 14px 0 0; }
  .hs-track li { gap: 6px; font-size: 13.5px; }
  .hs-track li + li::before { content: '·'; color: #5a5040; margin-right: 8px; }
  .hs-track li small { display: none; }
  .hs-tnum { width: 22px; height: 22px; font-size: 11.5px; }
  .card.hs-card .hs-lead { margin-bottom: 0; }
  .hs-grid > .hs-info { margin-top: 18px; }
  .hs-s2 > .hs-info, .hs-s3 > .hs-info { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 140px); overflow-y: auto; }
  #app.hs { padding-bottom: 110px; }
}
@media (min-width: 900px) {
  .hs-grid.hs-s2:not(.hs-l4) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 32px; }
  .hs-s2:not(.hs-l4) .hs-lead { display: none; }
  .hs-track { flex-wrap: nowrap; gap: 4px 10px; white-space: nowrap; }
  .hs-track li + li::before { margin-right: 4px; }
  .card.hs-card .hs-picks.pzl button.opt.hs-pick.hs-prof b { font-size: 15px; }
  .card.hs-card .hs-picks.pzl button.opt.hs-pick.hs-prof { padding: 12px 4px 10px; }
}
@media (min-width: 900px) { .hs-picks.pzl .hs-pn { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px 6px; } }
/* PZ на телефоне, вариант В (владелец 30.10): все 8 профессий сеткой 4×2 на первом экране, описание выбранной сразу под сеткой */
@media (max-width: 899px) {
  .hs-s2:not(.hs-l4) .hs-lead { display: none; }
  .hs-picks.pzl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .card.hs-card .hs-picks.pzl button.opt.hs-pick.hs-prof { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; min-height: 0; margin: 0; padding: 9px 2px 8px; text-align: center; }
  .card.hs-card .hs-picks.pzl button.opt.hs-pick.hs-prof .hs-med { width: 40px; height: 40px; font-size: 18px; }
  .hs-picks.pzl .hs-pn { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
  .card.hs-card .hs-picks.pzl button.opt.hs-pick.hs-prof b { font-size: 11px; line-height: 1.15; letter-spacing: -0.1px; white-space: nowrap; overflow: hidden; text-overflow: clip; max-width: 100%; }
  .hs-picks.pzl .hs-prof .hs-fx, .hs-picks.pzl .hs-prof .hs-inn { display: none; }
  .hs-picks.pzl > .hs-inl { grid-column: 1 / -1; order: 99; margin-top: 6px; }
  .hs-picks.pzl > .hs-inl .hs-fx { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
  #app.hs { padding-bottom: 96px; }
}
@media (max-width: 370px) { .card.hs-card .hs-picks.pzl button.opt.hs-pick.hs-prof b { font-size: 10.5px; letter-spacing: -0.2px; } }
/* Нижняя строка пошагового создания (владелец 30.10, айфон: «Начать выживание» обрезалась справа).
   Слева не держим место под кнопку звука старого экрана (.app.setup .setup-bar), на телефоне кнопка не шире экрана */
.app.setup .setup-bar.hs-bar { padding-left: 16px; }
@media (max-width: 899px) {
  .app.setup .setup-bar.hs-bar { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .hs-bar .hs-back { padding: 10px 4px; }
  .hs-bar .hs-next, .hs-bar .hs-next.go:not(:disabled), .hs-bar .hs-next.take:not(:disabled) { flex: 1 1 auto; min-width: 0; max-width: 260px; margin-left: auto; padding: 10px 14px; font-size: 16px; white-space: nowrap; }
  .hs-bar .hs-next.go:not(:disabled) { min-height: 52px; font-size: 17px; }
}
/* Первый экран создания (владелец 30.10, вариант Valve): картинка пролога на весь экран, строка истории и «Он» / «Она» прямо на ней */
.app.hs-first #hs-bar { display: none; }
.hs-grid.hs-s1 .hs-head { display: none; }
.hs-grid.hs-s1 { grid-template-areas: "body"; grid-template-columns: minmax(0, 1fr); }
.card.hs-card:has(.hs-open) { padding: 0; overflow: hidden; }
.hs-open { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; min-height: calc(100svh - 130px); padding: 28px 20px 24px; box-sizing: border-box;
  background: linear-gradient(180deg, rgba(10, 9, 7, 0.15) 0%, rgba(10, 9, 7, 0.35) 40%, rgba(10, 9, 7, 0.92) 78%, #0e0d0a 100%), url(/img/prologue.jpg) center 30% / cover no-repeat; }
.hs-open-k { margin: 0 0 8px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--acc); }
.card.hs-card .hs-open-line, .hs-open-line { margin: 0; font-family: var(--f-head, Georgia, serif); font-size: 26px; line-height: 1.25; color: #f2e6c8; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.hs-open-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card.hs-card button.opt.hs-open-pick { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; min-height: 64px; padding: 12px; border: 1px solid rgba(255, 200, 80, 0.55); border-radius: 14px; background: rgba(20, 17, 11, 0.72); color: #fff3d6; font-family: var(--f-ui); font-size: 22px; font-weight: 700; letter-spacing: 0.5px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); cursor: pointer; }
.hs-open-sym { font-size: 26px; color: var(--acc); line-height: 1; }
.card.hs-card button.opt.hs-open-pick.on { border-color: var(--acc); background: rgba(255, 200, 80, 0.16); box-shadow: inset 0 0 0 1px var(--acc); }
@media (hover: hover) { .card.hs-card button.opt.hs-open-pick:hover { background: linear-gradient(180deg, #ffd877, #f0b33a); color: #1a1408; border-color: #ffd877; } .card.hs-card button.opt.hs-open-pick:hover .hs-open-sym { color: #1a1408; } }
.hs-open-note { margin: -6px 0 0; font-size: 13px; color: #a89f8c; text-align: center; }
@media (min-width: 900px) {
  .hs-open { min-height: 560px; padding: 48px 56px 44px; background-position: center 35%; }
  .card.hs-card .hs-open-line, .hs-open-line { font-size: 38px; max-width: 760px; }
  .hs-open-btns { grid-template-columns: repeat(2, minmax(0, 260px)); }
  .hs-open-note { text-align: left; }
}
/* Экран дня на телефоне (владелец 30.10, вариант Valve «центр экрана принадлежит действию»):
   сверху одна строка значков с цифрами (всегда видна, нажатие открывает полную панель), событие и итог хода сразу под ней,
   «Персонаж» и «Журнал» под событием, плашка гостя одной строкой, кнопка звука в углу верхней строки */
.gn-short { display: none; }
@media (max-width: 899px) {
  html { scroll-padding-top: calc(var(--mh-h, 34px) + 8px); }
  .app:not(.setup):not([hidden]) { display: flex; flex-direction: column; }
  .app:not(.setup) > #hud { order: 2; margin-top: 14px; }
  .app:not(.setup) > .foot { order: 3; }
  .mini-hud.on { padding-right: 44px; }
  body:has(.mini-hud.on) .music-toggle { top: calc(var(--mh-h, 34px) / 2 - 15px); bottom: auto; right: 6px; width: 30px; height: 30px; font-size: 0.85rem; z-index: 51; opacity: 0.8; }
  .guest-note:not(.loud) .gn-long { display: none; }
  .guest-note:not(.loud) .gn-short { display: inline; }
  .guest-note:not(.loud) { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; font-size: 12.5px; line-height: 1.25; }
  .guest-note:not(.loud) .gn-short { flex: 1 1 auto; min-width: 0; }
  .guest-note:not(.loud) .guest-btns .opt { margin: 0; padding: 5px 10px; min-height: 0; font-size: 12.5px; white-space: nowrap; }
  .guest-note[hidden] { display: none !important; }
}
@media (max-width: 899px) {
  /* Верхняя строка не лезет поверх мини-игр, окон и создания героя */
  body:has(.mini) .mini-hud, body:has(.app.setup) .mini-hud, body:has(.lab-panel) .mini-hud, body:has(.confirm-box) .mini-hud, body:has(.app[hidden]) .mini-hud { visibility: hidden; }
}
/* Прогон бота по тесту 30.10: картинка в «Вчера» и «Только что» на телефоне ниже, событие дня ближе к верху */
@media (max-width: 899px) { .report img.report-img { margin: 4px 0; } }
/* Владелец 30.10 вечер: «верни, чтобы было видно всё»: на телефоне полная панель здоровья, рассудка, двери и запасов снова видна сразу, строка значков только при прокрутке */
/* Бонус за достижения и «Тяжесть» (владелец 30.10, вариант Valve): выбранное видно сразу, нажатие откликается */
button.opt.pick { position: relative; }
.pick-tag { display: inline-block; align-self: flex-start; justify-self: start; width: max-content; margin-top: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #1a1408; background: #ffc850; }
.card.hs-card .hs-vet button.opt.pick.on { border-color: #ffc850; background: rgba(255, 200, 80, 0.12); box-shadow: inset 0 0 0 1px #ffc850, 0 0 18px rgba(255, 200, 80, 0.18); color: #fff3d6; }
.card.hs-card .hs-vet button.opt.pick[data-heat].on { border-color: #e0806a; background: rgba(224, 128, 106, 0.12); box-shadow: inset 0 0 0 1px #e0806a; }
.card.hs-card .hs-vet button.opt.pick[data-heat].on .pick-tag { background: #e0806a; }
.hs-flash { animation: hsflash 0.45s ease-out; }
@keyframes hsflash { 0% { transform: scale(0.97); filter: brightness(1.6); } 100% { transform: scale(1); filter: none; } }
.hs-trow.hs-bonus { border-color: rgba(255, 200, 80, 0.5); }
/* Владелец 30.10: «рассудок 99 −1 стоит криво». Числа здоровья, рассудка и двери в одном столбце, «−1» отдельной колонкой справа: число не сдвигается */
.bar-row .num { display: inline-grid; grid-template-columns: 2.2em 4.2em; align-items: center; justify-items: end; width: auto; min-width: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-row .num .burn { justify-self: start; margin-left: 6px; }
@media (max-width: 899px) { .bar-row .num { grid-template-columns: 2.2em 5.4em; } .bar-row .num .burn { margin-left: 4px; } }
/* Владелец 30.10: «не надо писать “за ночь”, при наведении и так всё расписано, просто −1» */
.burn .uv-per { display: none; }
.bar-row .num { grid-template-columns: 2.2em 2.8em; }
@media (max-width: 899px) { .bar-row .num { grid-template-columns: 2.2em 2.8em; } }
/* 31.10 рассудок ниже 40: буквы на кнопках разъезжаются (SanWarp в client.js) */
.sw-w { white-space: nowrap; }
.sw { display: inline-block; }
body.san-warp .sw.on { animation: sw-drift var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes sw-drift { 0%, 35% { transform: none; } 100% { transform: translate(calc(var(--dx) * var(--sw-amp)), calc(var(--dy) * var(--sw-amp))) rotate(calc(var(--r) * var(--sw-rot))); } }
@media (prefers-reduced-motion: reduce) { body.san-warp .sw.on { animation: none; } }
/* 31.10 рассудок 10 и ниже: паника (SanPanic в client.js). Слова дрожат, края экрана бьются красным, стук в дверь */
body.san-panic .sw-w { display: inline-block; animation: sw-shiver 0.16s steps(2) infinite; }
body.san-panic::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 60; background: radial-gradient(ellipse at center, transparent 50%, rgba(110, 0, 0, 0.45) 100%); animation: sw-pulse 1.05s ease-in-out infinite; }
body.sw-knock .app { animation: sw-knock 0.32s ease-out 1; }
body.sw-knock #stats .bar-barricade, body.sw-knock .mini-hud { animation: sw-door 0.6s ease-out 1; }
@keyframes sw-shiver { 0% { transform: translate(0, 0); } 25% { transform: translate(0.7px, -0.5px); } 50% { transform: translate(-0.6px, 0.5px); } 75% { transform: translate(0.5px, 0.7px); } 100% { transform: none; } }
@keyframes sw-pulse { 0%, 100% { opacity: 0.35; } 12% { opacity: 0.9; } 24% { opacity: 0.45; } 36% { opacity: 0.75; } }
@keyframes sw-knock { 0% { transform: translate(0, 0); } 20% { transform: translate(-3px, 1px); } 45% { transform: translate(2px, -1px); } 70% { transform: translate(-1px, 0); } 100% { transform: none; } }
@keyframes sw-door { 0% { box-shadow: 0 0 0 2px rgba(229, 72, 77, 0.9), 0 0 18px rgba(229, 72, 77, 0.6); } 100% { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { body.san-panic .sw-w, body.sw-knock .app { animation: none; } body.san-panic::after { animation: none; opacity: 0.6; } }
.hs-info .hs-inn + p { margin-top: 12px; } /* 31.10: описание профессии прилипало к рамке особенности */
/* Динамик в шапке на телефоне (30.10, вариант В): обычная круглая кнопка в ряду с кабинетом, без фиксации */
.music-toggle.in-top, body .music-toggle.in-top { position: static; width: 30px; height: 30px; font-size: 0.85rem; opacity: 0.85; flex: none; padding: 0; top: auto; bottom: auto; right: auto; }
@media (max-width: 400px) { .top-right { gap: 6px; } .day .season { padding: 3px 5px; } .top h1 { letter-spacing: 0; } .music-toggle.in-top { width: 28px; height: 28px; } } /* узкий Android: динамик в шапке не выталкивает кабинет за край */
/* Телефон (владелец 30.10: «пол экрана это кнопки»): карточки дел ниже, медальон меньше */
@media (max-width: 600px) {
  body.ui-v3 #card .choices button.opt[data-action], body.ui-v3 #card .choices button.opt.locked { min-height: 50px; padding: 8px 10px 8px 52px; font-size: 0.92rem; }
  body.ui-v3 #card .choices button.opt[data-action] .uv-med, body.ui-v3 #card .choices button.opt.locked .uv-med { left: 9px; width: 32px; height: 32px; }
  body.ui-v3 #card .choices button.opt[data-action] .uv-med svg, body.ui-v3 #card .choices button.opt.locked .uv-med svg { width: 17px; height: 17px; }
  body.ui-v3 #card .choices { gap: 6px; }
  body.ui-v3 .act-group { margin: 12px 0 6px; }
  /* метка «не тратит день» и цифры добычи в одну строку под названием, а не каждая своей строкой */
  body.ui-v3 #card button.opt[data-action] .free-tag { margin: 3px 6px 0 0; vertical-align: middle; }
  body.ui-v3 #card button.opt[data-action] .uv-line { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; vertical-align: middle; }
  body.ui-v3 #card button.opt[data-action] .free-tag + small + .uv-line, body.ui-v3 #card button.opt[data-action] .free-tag + .uv-line { margin-left: 0; }
}
/* 31.10 вид «Диско» (как Disco Elysium): колонка для чтения, варианты без рамок с номерами, под каждым мысль героя */
body.ui-de #card { max-width: 680px; margin-left: auto; margin-right: auto; animation: de-in 0.45s ease-out; }
@keyframes de-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
body.ui-de #card > h2, body.ui-de #card .tape-now > h2 { font-family: 'PT Serif', Georgia, serif; font-size: 1.5rem; letter-spacing: 0.01em; color: #f0c46a; }
body.ui-de #card p, body.ui-de #report p { font-family: 'PT Serif', Georgia, serif; font-size: 1.08rem; line-height: 1.65; color: #dccfb4; }
body.ui-de #card h4.act-group { font-family: 'PT Sans', sans-serif; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8a7d66; border: 0; margin: 18px 0 2px; padding: 0; }
body.ui-de #card h4.act-group small { display: none; }
body.ui-de #card .choices { gap: 0; display: block; }
body.ui-de #card button.opt { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid rgba(255, 240, 210, 0.07); border-radius: 0; box-shadow: none; min-height: 0; margin: 0; padding: 12px 8px 13px 36px; position: relative; font-family: 'PT Serif', Georgia, serif; font-size: 1.1rem; line-height: 1.4; font-weight: 700; color: #ece1c9; transition: background 0.15s, color 0.15s; }
body.ui-de #card button.opt:hover:not(:disabled), body.ui-de #card button.opt:focus-visible { background: linear-gradient(90deg, rgba(214, 92, 48, 0.14), transparent 75%); color: #fff; outline: none; }
body.ui-de #card button.opt .de-n { position: absolute; left: 6px; top: 12px; font-weight: 700; color: #d9603a; }
body.ui-de #card button.opt .de-d { display: block; margin-top: 4px; font: italic 400 1rem/1.55 Georgia, 'PT Serif', serif; color: #ab9c80; }
body.ui-de #card button.opt .de-fx { display: block; margin-top: 6px; font: 400 0.82rem 'PT Sans', sans-serif; }
body.ui-de #card button.opt .de-fx i { font-style: normal; margin-right: 10px; color: #cbbd9f; background: none; border: 0; padding: 0; }
body.ui-de #card button.opt small { display: block; margin-top: 4px; font: italic 400 1rem/1.55 Georgia, 'PT Serif', serif; color: #ab9c80; }
body.ui-de #card button.opt .free-tag { margin-left: 8px; border: 0; padding: 0; font: 400 0.78rem 'PT Sans', sans-serif; color: #8fc06f; vertical-align: 2px; }
body.ui-de #card button.opt .free-tag::before { content: '· '; }
body.ui-de #card button.opt .focus-tag { position: static; display: block; background: none; border: 0; box-shadow: none; padding: 0; margin: 0 0 3px; font: 700 0.72rem 'PT Sans', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: #e8a33d; vertical-align: 2px; }
body.ui-de #card button.opt.focus, body.ui-de #card button.opt.focus:hover { border: 0; border-top: 1px solid rgba(255, 240, 210, 0.07); outline: 0; animation: none; box-shadow: inset 2px 0 0 #e8a33d; background: linear-gradient(90deg, rgba(232, 163, 61, 0.08), transparent 70%); }
body.ui-de #card button.opt.locked, body.ui-de #card button.opt:disabled:where(:not([data-turn-pending])) { color: #6f6555; font-weight: 400; padding-left: 36px; }
body.ui-de #card button.opt.locked small { color: #6f6555; font-style: normal; font-size: 0.88rem; }
body.ui-de #card details.locked-more summary { font: 400 0.95rem 'PT Serif', Georgia, serif; color: #8a7d66; margin-top: 10px; }
@media (max-width: 600px) { body.ui-de #card button.opt { font-size: 1.05rem; padding-left: 30px; } body.ui-de #card button.opt .de-n { left: 2px; } body.ui-de #card button.opt .de-d { font-size: 0.97rem; } }
@media (prefers-reduced-motion: reduce) { body.ui-de #card { animation: none; } }
body.ui-de .top h1 { font: 700 13px/1 var(--f-ui); letter-spacing: 3px; text-transform: uppercase; color: var(--muted); } /* шапка как в «Сборном», иначе на Android не влезает */
/* 31.10 владелец: в «Диско» без номеров, обычные кнопки с описанием внутри */
body.ui-de #card button.opt { border: 1px solid #3a2f20; border-radius: 10px; background: #1d1811; margin: 0 0 8px; padding: 13px 16px 14px; }
body.ui-de #card button.opt:hover:not(:disabled), body.ui-de #card button.opt:focus-visible { border-color: #b5823a; background: #241d14; }
body.ui-de #card button.opt.focus, body.ui-de #card button.opt.focus:hover { border: 1px solid #8a6326; box-shadow: none; background: #221b12; }
body.ui-de #card button.opt.locked, body.ui-de #card button.opt:disabled:where(:not([data-turn-pending])) { padding-left: 16px; background: transparent; border-style: dashed; }
body.ui-de #card .choices { margin-top: 8px; }
body.ui-de .de-voice { color: #d9603a; letter-spacing: 0.04em; font-family: 'PT Sans', sans-serif; font-size: 0.92em; }
/* 31.10 владелец: «зачем такой огромный шрифт». Размеры как в обычном виде, только шрифт с засечками */
body.ui-de #card p, body.ui-de #report p { font-size: 1rem; line-height: 1.55; }
body.ui-de #card .alert, body.ui-de #card .warning, body.ui-de #card .thought, body.ui-de #card .goal, body.ui-de #card .alert p, body.ui-de #card .warning p, body.ui-de #card .thought p, body.ui-de #card .goal p { font-family: var(--f-ui); font-size: 0.92rem; line-height: 1.45; }
body.ui-de #card > h2, body.ui-de #card .tape-now > h2 { font-size: 1.3rem; }
body.ui-de #card button.opt { font-size: 1rem; padding: 11px 14px 12px; }
body.ui-de #card button.opt .de-d, body.ui-de #card button.opt small { font-size: 0.92rem; line-height: 1.45; }
@media (max-width: 600px) { body.ui-de #card button.opt { font-size: 0.98rem; padding-left: 14px; } body.ui-de #card button.opt .de-d { font-size: 0.9rem; } }
/* 31.10 переключатель вида (только у владельца) на телефоне не вылезает за экран: прокручивается вбок */
@media (max-width: 600px) { .ui-toggle { right: 8px; overflow-x: auto; scrollbar-width: none; } .ui-toggle::-webkit-scrollbar { display: none; } }
/* 31.10 владелец: «сделай кнопки поменьше, уж очень огромные». Плотнее отступы, мельче описание */
body.ui-de #card button.opt { padding: 8px 13px 9px; margin: 0 0 6px; font-size: 0.95rem; line-height: 1.3; }
body.ui-de #card button.opt .de-d, body.ui-de #card button.opt small { margin-top: 2px; font-size: 0.86rem; line-height: 1.4; }
body.ui-de #card button.opt .de-fx { margin-top: 3px; font-size: 0.78rem; }
body.ui-de #card button.opt .focus-tag { margin-bottom: 1px; font-size: 0.66rem; }
@media (max-width: 600px) { body.ui-de #card button.opt { font-size: 0.93rem; padding: 8px 12px 9px; } body.ui-de #card button.opt .de-d { font-size: 0.85rem; } }
/* Владелец 01.11: вернуться назад при создании героя. Кнопка «← Пол» над заголовком и пройденные шаги в строке шагов нажимаются */
.card.hs-card .hs-up { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 8px 14px 8px 10px; border: 1px solid #4a4335; border-radius: 999px; background: rgba(255, 200, 80, 0.06); color: #e8dcc0; font: inherit; font-family: var(--f-ui); font-size: 14px; font-weight: 600; cursor: pointer; }
.card.hs-card .hs-up:active { transform: translateY(1px); }
.hs-track .hs-tgo { display: flex; align-items: center; gap: inherit; padding: 2px 4px; margin: -2px -4px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hs-track .hs-tgo b { text-decoration: underline dotted #6b5a36; text-underline-offset: 3px; }
@media (hover: hover) { .card.hs-card .hs-up:hover { border-color: var(--acc); color: var(--acc); } .hs-track .hs-tgo:hover { color: var(--acc); } }
.hs-l4 .hs-head .hs-up { margin: 0; }
/* Телефон: строка шагов тоже видна, одной строкой и без пояснений */
@media (max-width: 899px) {
  .hs-track { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; }
  .hs-track li { display: flex; align-items: center; gap: 5px; color: var(--mu); }
  .hs-track li small { display: none; }
  .hs-track li.cur { color: var(--tx); }
  .hs-tnum { flex: none; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; border: 1px solid #4a4335; color: var(--mu); }
  .hs-track li.done .hs-tnum { border-color: #6b5a36; color: var(--acc); }
  .hs-track li.cur .hs-tnum { border-color: var(--acc); background: var(--acc); color: #1a1408; }
}
/* Владелец 02.11: «у меня комп, а фотка малюсенькая». На компьютере картинка целиком, 16:9, а не узкой полосой */
@media (min-width: 900px) {
  .card img.scene, body.ui-v2 .card img.scene, body.ui-v3 .card img.scene { aspect-ratio: 16 / 9; object-fit: cover; }
}
/* Короткая строка под кнопкой дела (владелец 02.11) */
body.ui-de #card button.opt .de-s { display: block; margin-top: 2px; font: 400 0.9rem/1.4 'PT Sans', sans-serif; color: #a89f8c; }

/* 02.11 владелец: на компе дела по два в строку и подсказка целиком; на телефоне как было.
   03.11: порог 700 вместо 900: при масштабе браузера 110-125% на ноутбуке два столбца не включались */
.hint-more { display: none; }
@media (min-width: 700px) {
  .choices.act-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .choices.act-choices > .opt { margin: 0; }
  .hint-more { display: inline; }
}

/* 02.11 постер главы на весь экран, как загрузка в L4D: картинка во всю ширину, название под ней */
.ch-over.has-poster .tm-end.ch { max-width: min(1280px, 96vw); gap: 6px; }
.ch-over .ch-poster { display: block; width: 100%; max-height: 74vh; object-fit: contain; margin-bottom: 10px; border-radius: 6px; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7); animation: fade 0.8s ease both; }
.ch-over.has-poster .tm-big { font-size: 34px; }
@media (max-width: 600px) { .ch-over .ch-poster { max-height: 46vh; border-radius: 4px; } .ch-over.has-poster .tm-big { font-size: 26px; } }
/* Лента вылазки (03.11, вариант Disco Elysium): прошлые сцены над текущей, тише и мельче */
.tape { margin: 0 0 18px; }
.tape-step { padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px dashed rgba(255,255,255,.1); }
.tape-step h3 { font-size: 15px; margin: 0 0 4px; color: var(--muted, #9a917f); letter-spacing: .02em; }
.tape-text p { font-size: 14px; line-height: 1.45; color: #a59c8a; margin: 0 0 6px; }
.tape-pick { margin: 8px 0 6px; font-weight: 700; color: #e0a640; }
.tape-out { border-left: 2px solid rgba(224,166,64,.5); padding: 2px 0 2px 12px; }
.tape-out .tape-line { margin: 0 0 6px; line-height: 1.45; }
.tape-out .tape-line.bad { color: #e8a39a; }
.tape-out .chips { margin: 4px 0 8px; }
.tape-out .report-img { max-height: 260px; object-fit: cover; }
#report .tape { margin-top: 6px; }

/* Лента: новый шаг выезжает снизу (владелец 03.11: «снизу вылезает, экран плавно переходит»): сначала исход, потом следующая сцена */
/* 03.11 владелец: «а можно ещё плавнее?»: дольше, мягкая кривая, короче путь */
@keyframes tapeIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.tape-out.tape-anim { animation: tapeIn .9s cubic-bezier(.22, .61, .36, 1) both; }
.tape-now.tape-anim { animation: tapeIn 1.1s cubic-bezier(.22, .61, .36, 1) .6s both; }
@media (prefers-reduced-motion: reduce) { .tape-anim { animation: none !important; } }

/* 03.11 кнопки дел по макету владельцу: значок в кружке, название, строка «зачем сейчас», цена/выгода/время.
   На компе по две в ряд (вид «Диско» раньше ставил всё в одну колонку и перебивал сетку) */
body.ui-de #card button.opt.act2 { display: flex; gap: 12px; align-items: flex-start; text-align: left; }
.act2 .a-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #6b5634; display: flex; align-items: center; justify-content: center; color: #d9a441; margin-top: 1px; }
.act2 .a-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.act2 .a-body { flex: 1; min-width: 0; display: block; }
.act2 .a-t { display: block; font-weight: 700; color: #f2e7d2; }
.act2 .a-d { display: block; margin: 3px 0 6px; font: 400 0.9rem/1.4 'PT Sans', sans-serif; color: #b8ab93; }
.act2 .a-r { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font: 400 0.8rem 'PT Sans', sans-serif; }
.act2 .a-r i { font-style: normal; padding: 1px 7px; border-radius: 6px; background: #2d251a; border: 0; }
.act2 .a-r i.p { color: #9fd18a; } .act2 .a-r i.m { color: #e8a39a; }
.act2 .a-r .uv-i { width: 12px; height: 12px; vertical-align: -1px; margin-right: 2px; fill: none; stroke: currentColor; stroke-width: 2; }
.act2 .a-time { color: #8f846f; } .act2 .a-time::before { content: '· '; }
.act2 .a-noisy { color: #c99a5b; }
body.ui-de #card button.opt.act2 .focus-tag { margin: 0 0 2px; color: #d9a441; }
body.ui-de #card button.opt.act2.focus { border-color: #d9a441; }
@media (min-width: 700px) {
  body.ui-de #card .choices.act-choices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  body.ui-de #card .choices.act-choices > button.opt { margin: 0; }
}
@media (min-width: 900px) { body.ui-de #card { max-width: 780px; } } /* 03.11: два столбца кнопок на компе, карточка шире */
.act2 .a-r:empty { display: none; }

/* 03.11 вариант 1 кнопок (как в This War of Mine): полоса со значком, смысл, столбик цифр. Перекрывает прежний вид .act2 */
body.ui-de #card button.opt.act2 { display: flex; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border: 1px solid #3a2f20; border-radius: 8px; background: #1c1710; }
body.ui-de #card button.opt.act2:hover:not(:disabled), body.ui-de #card button.opt.act2:focus-visible { border-color: #8a6326; background: #221b12; transform: translateY(-1px); }
body.ui-de #card button.opt.act2.focus { border-color: #d9a441; background: #241c11; }
.act2 .a-ico { width: 48px; height: auto; margin: 0; border: 0; border-radius: 0; border-right: 1px solid #3a2f20; background: #261f15; color: #d9a441; }
.act2.g-out .a-ico { color: #e07a52; } .act2.g-work .a-ico { color: #c9b089; }
.act2 .a-ico svg { width: 21px; height: 21px; }
.act2 .a-body { padding: 10px 12px; align-self: center; }
.act2 .a-t { font-size: 1rem; line-height: 1.25; }
.act2 .a-d { margin: 3px 0 0; font-size: 0.86rem; line-height: 1.35; }
.act2 .a-fx { flex: none; width: 104px; padding: 8px 10px; border-left: 1px dashed #3a2f20; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 3px; font: 400 0.8rem/1.2 'PT Sans', sans-serif; text-align: right; }
.act2 .a-fx i { font-style: normal; background: none; border: 0; padding: 0; white-space: nowrap; }
.act2 .a-fx i.p { color: #9fd18a; } .act2 .a-fx i.m { color: #e8a39a; }
.act2 .a-fx .a-time { color: #8f846f; font-size: 0.74rem; } .act2 .a-fx .a-time::before { content: none; }
.act2 .a-fx .a-noisy { color: #c99a5b; font-size: 0.74rem; }
body.ui-de #card button.opt.act2 .focus-tag { font-size: 0.66rem; }
@media (max-width: 600px) { .act2 .a-ico { width: 42px; } .act2 .a-fx { width: 88px; padding: 8px; } .act2 .a-body { padding: 9px 10px; } }
@media (min-width: 1100px) { body.ui-de #app.ph-action { max-width: 900px; } body.ui-de #app.ph-action #card { max-width: none; } } /* 03.11 кнопки варианта 1 по две */

/* 03.11 лента без перерисовки: прошлая сцена остаётся как была, снизу дописаны выбор и исход */
.tape-done { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed rgba(255,255,255,.1); }
body.ui-de #card .tape-done > h2 { font-family: 'PT Serif', Georgia, serif; font-size: 1.3rem; letter-spacing: 0.01em; color: #c9a65e; }
.tape-done .tape-tail { margin-top: 6px; }

/* 03.11 особый эфир: отдельная карточка над делами, красная полоса, значок «звучит», метка сверху */
body.ui-de #card .choices.act-feature { display: block; margin: 12px 0 4px; }
body.ui-de #card .act-feature button.opt.act2 { border-color: #b4532f; background: linear-gradient(90deg, rgba(180,83,47,.16), #1c1710 60%); }
body.ui-de #card .act-feature button.opt.act2:hover:not(:disabled) { border-color: #e07a52; }
.act-feature .act2 .a-ico { color: #ff9a6a; background: #2c1a12; border-right-color: #6e3420; }
.act-feature .act2 .a-ico svg { animation: ether-pulse 1.6s ease-in-out infinite; }
@keyframes ether-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.12); } }
.act2 .ether-tag { display: block; font: 700 0.66rem 'PT Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #ff9a6a; margin-bottom: 2px; }
@media (prefers-reduced-motion: reduce) { .act-feature .act2 .a-ico svg { animation: none; } }

/* 03.11 выборы в событиях в том же духе, что кнопки дел: тёмная карточка, янтарная полоса слева, цена столбиком справа */
body.ui-de #card button.opt.ev2 { display: flex; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border: 1px solid #3a2f20; border-radius: 8px; background: #1c1710; text-align: left; }
body.ui-de #card button.opt.ev2:hover:not(:disabled), body.ui-de #card button.opt.ev2:focus-visible { border-color: #8a6326; background: #221b12; transform: translateY(-1px); }
.ev2 .e-bar { flex: none; width: 4px; background: #6b5634; transition: background .2s; }
body.ui-de #card button.opt.ev2:hover .e-bar { background: #d9a441; }
.ev2 .a-body { flex: 1; padding: 12px 14px; align-self: center; }
.ev2 .a-t { font-weight: 700; color: #f2e7d2; font-size: 1rem; line-height: 1.3; }
.ev2 .a-fx { flex: none; max-width: 40%; padding: 8px 12px; border-left: 1px dashed #3a2f20; display: flex; align-items: center; justify-content: flex-end; font: 400 0.8rem/1.25 'PT Sans', sans-serif; text-align: right; }
.ev2 .a-fx i { font-style: normal; } .ev2 .a-fx i.m { color: #e8a39a; } .ev2 .a-fx i.p { color: #9fd18a; }

/* 03.11 курю / бросаю в окошке сигарет */
.smoke-pick { display: flex; gap: 4px; margin: 8px 0 4px; }
.smoke-pick button { flex: 1; padding: 6px 8px; border: 1px solid #4a3d28; border-radius: 6px; background: #1c1710; color: #b8ab93; font: 600 0.85rem 'PT Sans', sans-serif; cursor: pointer; }
.smoke-pick button.on { border-color: #d9a441; background: #2a2114; color: #f2e7d2; }
.smoke-note { font-size: 0.8rem; color: #a99d86; margin: 2px 0 0; }

/* 03.11 мастерская и обустройство в стиле кнопок дел. Одной колонкой: разделы по 1-2 пункта, в две колонки рвались */
.act2.menu2 .m-ico { font-size: 1.25rem; line-height: 1; }
.act2.menu2 .a-fx i { white-space: normal; }
.act2 .a-fx i.q { color: #8f846f; }
/* 03.11 владелец: «для телефона ок, для компа компактнее». На широком экране пункты меню по два в ряд, заголовки разделов во всю ширину */
@media (min-width: 900px) {
  body.ui-de #card .tape-now .choices:has(> button.menu2) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
  body.ui-de #card .tape-now .choices:has(> button.menu2) > :not(button.menu2) { grid-column: 1 / -1; }
  body.ui-de #card .tape-now .choices > button.menu2 { margin: 0; }
  body.ui-de #card .tape-now .choices:has(> button.menu2) > h4 { margin: 10px 0 0; }
  .act2.menu2 .a-body { padding: 8px 10px; }
  .act2.menu2 .a-fx { width: 96px; padding: 6px 8px; }
  .act2.menu2 .a-ico { width: 40px; }
}

.act2 .m-grp { display: none; font: 700 0.62rem 'PT Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8a7d66; margin-bottom: 2px; }
@media (min-width: 900px) {
  body.ui-de #card .tape-now .choices:has(> button.menu2) > h4.menu-group { display: none; }
  .act2.menu2 .m-grp { display: block; }
}
/* Building projects disclose their cost and action before committing a day. */
.build-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #201b14;
  margin: 4px 0;
}
.build-row > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: bold;
}
.build-row > summary::before { content: '▸'; color: var(--accent); }
.build-row[open] > summary::before { content: '▾'; }
.build-row > summary::-webkit-details-marker { display: none; }
.build-row > summary small { margin-left: auto; text-align: right; color: var(--muted); }
.build-row[open] { border-color: #8a7045; }
.build-body { padding: 0 12px 10px; }
.build-body p { margin: 2px 0 8px; }
#card .choices .build-body .build-start { width: auto; min-height: 42px; padding: 6px 16px; margin: 0; }
/* 03.11 «текст заехал»: у картинки сцены отрицательный отступ сверху (во всю ширину карточки). В ленте картинка стоит не первой и наезжала на текст выше */
.card .tape-out img.scene { width: 100%; margin: 8px 0 10px; border-radius: 6px; }
.card > .tape-now:not(:first-child) > img.scene, .card > .tape-done:not(:first-child) > img.scene { margin-top: 12px; }
@media (max-width: 600px) { .card > .tape-now:not(:first-child) > img.scene, .card > .tape-done:not(:first-child) > img.scene { margin-top: 10px; } }
/* 03.11 «немного дёрнуло»: при переходе событие → дела ширина колонки менялась (780 → 900), текст переносился заново и всё прыгало.
   Теперь на компе колонка всегда одной ширины, а абзацы событий не шире удобной строки */
@media (min-width: 1100px) {
  body.ui-de #app:not(.setup) { max-width: 900px; }
  body.ui-de #app:not(.setup) #card { max-width: none; }
  body.ui-de #card .tape-now > p:where(:not([class])), body.ui-de #card .tape-done > p, body.ui-de #card .tape-text p { max-width: 74ch; }
}

/* 03.11 записка с плашки находки */
button.find.find-note { display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
button.find.find-note:hover { border-color: #f0c46a; background: rgba(217,164,65,.16); }
.note-over { position: fixed; inset: 0; z-index: 9000; background: rgba(8,6,4,.78); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .25s ease both; }
.note-card { max-width: 560px; width: 100%; max-height: 85vh; overflow: auto; background: #e9dfc8; color: #2a2116; border-radius: 4px; padding: 22px 24px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.6); font-family: 'PT Serif', Georgia, serif; }
.note-card p { color: #2a2116; line-height: 1.55; margin: 0 0 10px; font-size: 1.02rem; }
.note-card .note-head { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.note-card .note-close { margin-top: 8px; }

/* 03.11 торговец: товар карточкой, количество ×1 ×2 ×3 с ценой справа */
.lot { display: flex; align-items: stretch; border: 1px solid #3a2f20; border-radius: 8px; background: #1c1710; margin: 0 0 8px; overflow: hidden; }
.lot.rare { border-color: #d9a441; background: #251c10; }
.lot-ico { flex: none; width: 44px; display: flex; align-items: center; justify-content: center; background: #261f15; border-right: 1px solid #3a2f20; font-size: 1.2rem; }
.lot-body { flex: 1; min-width: 0; padding: 8px 10px; display: flex; flex-direction: column; justify-content: center; }
.lot-body b { color: #f2e7d2; font-size: 1rem; } .lot-body small { color: #a99d86; font-size: .82rem; }
.lot-tag { font: 700 .66rem 'PT Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #d9a441; }
.lot-q { display: flex; gap: 4px; padding: 6px; align-items: stretch; }
#card .lot-q button.opt.lot-btn { width: 76px; margin: 0; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid #4a3d28; border-radius: 6px; background: #221b12; text-align: center; font: 700 .9rem 'PT Sans', sans-serif; color: #f2e7d2; }
#card .lot-q button.opt.lot-btn small { display: flex; flex-direction: column; font: 400 .7rem/1.2 'PT Sans', sans-serif; margin: 0; }
#card .lot-q button.opt.lot-btn small i { font-style: normal; } #card .lot-q small i.m { color: #e8a39a; } #card .lot-q small i.p { color: #9fd18a; }
#card .lot-q button.opt.lot-btn:hover:not(:disabled) { border-color: #d9a441; background: #2a2114; }
#card .lot-q button.opt.lot-btn:disabled { opacity: .35; }
@media (max-width: 600px) { .lot { flex-wrap: wrap; } .lot-q { width: 100%; padding: 0 6px 6px; } #card .lot-q button.opt.lot-btn { flex: 1; width: auto; } }
/* 03.11 владелец: серая кнопка торговца на наведении показывает, чего не хватает */
#card .lot-q button.opt.lot-btn[aria-disabled="true"] { opacity: .35; cursor: default; position: relative; }
#card .lot-q button.opt.lot-btn[aria-disabled="true"]:hover { opacity: .8; }
#card .lot-q button.opt.lot-btn[aria-disabled="true"]:hover::after { content: attr(data-need); position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 5; width: max-content; max-width: 220px; padding: 6px 10px; border: 1px solid #4a3d28; border-radius: 6px; background: #15110b; color: #f2e7d2; font: 400 .8rem/1.3 'PT Sans', sans-serif; white-space: normal; text-align: left; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
/* 03.11: главная кнопка экрана оплаты янтарная и в оформлении de */
body #card.card.paywall button.opt.pay-buy { display: block; width: 100%; padding: 14px; background: #d9a441; color: #1a1206; border: 1px solid #d9a441; font-size: 1.1rem; font-weight: 700; text-align: center; }
body #card.card.paywall button.opt.pay-buy:hover { background: #e8b553; }
/* 03.11 меню выезжают под списком дел: список гаснет, пока меню открыто */
#card > .tape-now.menu-base { opacity: .45; transition: opacity .5s ease; pointer-events: none; }
#card > .tape-now { transition: opacity .5s ease; }
#card > .menu-sheet { margin-top: 18px; padding-top: 16px; border-top: 1px solid #3a3226; }
@keyframes menuFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#card > .menu-sheet > .menu-ghost { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--panel, #1c1812); transition: opacity .45s ease; overflow: hidden; }
#card > .menu-sheet.menu-fade > *:not(.menu-ghost) { animation: menuFade .6s ease .15s both; }

/* Продолжение меню в ленте сохраняет отступ: граница не перескакивает при выборе места. */
#card > .menu-origin { margin-top: 18px; padding-top: 16px; border-top: 1px solid #3a3226; }

/* Одна ширина дела, меню и истории: при смене этапа строки и картинка не перескакивают. */
@media (min-width: 1100px) { body.ui-de #app { max-width: 900px; } body.ui-de #card { max-width: none; } }

/* Новый день меняется тем же плавным окном, что и вложенные меню. */
#card > .menu-ghost { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--panel, #1c1812); transition: opacity .45s ease; overflow: hidden; }
#card.menu-fade > .tape-now { animation: menuFade .6s ease .15s both; }

/* Смена дня: видимый результат без проезда через пустую старую ленту. */
/* Animate incoming tape sections, never fade the whole reading surface again. */
body #report, body #card { animation: none; }
body #card img.scene, body #report img.report-img { animation: none; }

/* Отказ от курения: самостоятельный постер достижения внутри истории. */
.milestone-hero { position: relative; margin: -20px -20px 20px; overflow: hidden; background: #19180f; }
#card .milestone-hero img.scene { width: 100%; margin: 0; border: 0; aspect-ratio: 16/10; object-fit: cover; animation: none; }
.milestone-title { position: absolute; inset: auto 0 0; padding: 70px 24px 24px; background: linear-gradient(transparent,rgba(10,12,9,.95)); }
body.ui-de #card .milestone-title p { margin: 0 0 8px; color: #d6c790; font: 700 .8rem/1.4 sans-serif; text-transform: uppercase; letter-spacing: .14em; }
body.ui-de #card .milestone-title h2 { margin: 0; color: #f2e2ad; font-size: clamp(1.7rem,4vw,2.8rem); }
@media(max-width:600px) { .milestone-hero { margin: -10px -11px 16px; } .milestone-title { padding: 60px 18px 18px; } }

/* Плакат появляется сразу в центре, независимо от высоты журнала. */
body.freedom-open { overflow: hidden; }
.freedom-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.86); }
.freedom-poster { width: min(760px,100%); max-height: calc(100dvh - 32px); overflow: auto; background: #191a15; border: 1px solid #8b8256; border-radius: 12px; box-shadow: 0 12px 80px #000; }
.freedom-poster .milestone-hero { margin: 0; }
.freedom-poster img.scene { display: block; width: 100%; height: min(57dvh,470px); object-fit: cover; }
.freedom-poster .milestone-title p { margin: 0 0 8px; font: 700 .8rem sans-serif; color: #d6c790; letter-spacing: .14em; text-transform: uppercase; }
.freedom-poster h2 { margin: 0; color: #f2e2ad; font: 700 clamp(1.8rem,5vw,3rem)/1.1 Georgia,serif; }
.freedom-body { padding: 18px 22px 22px; color: #e1ddc9; }
.freedom-body > p { margin: 0 0 16px; line-height: 1.5; }
.freedom-body .choices { display: grid; gap: 8px; }
.freedom-body button.opt { margin: 0; width: 100%; text-align: left; }

/* Мобильное чтение: компактнее текст и выборы, полный кадр вместо узкой полосы. */
@media (max-width: 600px) {
  body.ui-de #app:not(.setup) { padding-left: 8px; padding-right: 8px; }
  body.ui-de #card p, body.ui-de #report p { font-size: 14.5px; line-height: 1.5; margin-bottom: 8px; }
  body.ui-de #card .tape-now > h2, body.ui-de #card .menu-sheet > h2 { font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
  body.ui-de #card .tape-done > h2 { font-size: 17px; line-height: 1.3; }
  body.ui-de #card .tape-step h3 { font-size: 14px; }
  body.ui-de #card .choices { gap: 5px; }
  body.ui-de #card button.opt { font-size: 14px; line-height: 1.3; min-height: 44px; padding: 6px 9px; margin-bottom: 4px; }
  body.ui-de #card button.opt.ev2, body.ui-de #card button.opt.act2 { padding: 0; }
  body.ui-de #card button.opt .a-t { font-size: 14px; line-height: 1.3; }
  body.ui-de #card button.opt .a-d,
  body.ui-de #card button.opt .de-d,
  body.ui-de #card button.opt .de-s,
  body.ui-de #card button.opt small { font-size: 12.5px; line-height: 1.35; }
  body.ui-de #card button.opt .a-body { padding: 8px 10px; }
  body.ui-de #card button.opt .a-ico { width: 34px; }
  body.ui-de #card button.opt .a-fx { padding: 6px 8px; font-size: 12px; }
  body.ui-de #card button.opt.act2 .a-fx { width: 78px; }
  body.ui-de #card button.opt.ev2 .a-fx { max-width: 34%; }
  body.ui-de #card button.opt .odds { margin-top: 2px; font-size: 12px; line-height: 1.2; gap: 0 6px; }
  body.ui-de #card button.opt .odds .muted { font-size: 12px; line-height: 1.2; }
  body.ui-de #card button.opt .loot-icons { margin-top: 0; font-size: 12px; line-height: 1; }
  body.ui-de #card .chip { font-size: 12px; }
  body.ui-de #card > .tape-now > img.scene,
  body.ui-de #card > .tape-done > img.scene,
  body.ui-de #card > .menu-sheet > img.scene {
    width: calc(100% + 22px);
    height: auto;
    max-height: none;
    aspect-ratio: auto 16 / 9;
    object-fit: contain;
    margin-left: -11px;
    margin-right: -11px;
    margin-bottom: 10px;
  }
}

/* Route decisions: readable destinations, stable selection, compact on phones. */
.tm.tm-route{background:#191815;padding:24px;color:#e4dbc7;font-family:var(--f-ui);}
.tm-route .tm-top{letter-spacing:1px;align-items:center;flex-wrap:wrap;font-size:11px;}
.tm-route-progress{display:flex;gap:5px;margin:13px 0 22px;}
.tm-route-progress span{height:3px;flex:1;background:#38352f;}
.tm-route-progress .passed{background:#c6a061;}
.tm-route .tm-big{font-family:var(--f-body,Georgia,serif);font-size:28px;line-height:1.16;text-transform:none;letter-spacing:0;text-shadow:none;color:#e4c38b;margin:0 0 9px;}
.tm-route .tm-lead{font-size:14px;line-height:1.55;color:#c4bcae;margin-bottom:17px;}
.tm-route-status{display:flex;flex-wrap:wrap;gap:8px 20px;padding-bottom:17px;margin-bottom:19px;border-bottom:1px solid #38352f;font-size:12px;color:#a9a192;}
.tm-route-status b{color:#e4dbc7;font-weight:600;padding-left:4px;}
.tm-destinations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.tm-destination{display:flex;align-items:flex-start;gap:12px;text-align:left;padding:18px 14px;border:1px solid #494338;border-radius:7px;background:#211f1a;color:#e4dbc7;min-width:0;font:inherit;cursor:pointer;transition:background .15s,border-color .15s;}
.tm-destination:hover{background:#29261f;border-color:#8a795d;}
.tm-destination:focus-visible{outline:2px solid #e4c38b;outline-offset:3px;}
.tm-destination.sel{border-color:#c6a061;background:#2b261d;box-shadow:inset 3px 0 #c6a061;}
.tm-destination-icon{font-size:25px;line-height:1.2;flex:none;padding-top:20px;}
.tm-destination-body{display:flex;flex:1;min-width:0;flex-direction:column;gap:8px;}
.tm-destination-body small{font-size:10px;letter-spacing:.7px;text-transform:uppercase;color:#b6ac9a;line-height:1.4;}
.tm-destination-body b{font:600 19px/1.25 Georgia,serif;color:#e4dbc7;overflow-wrap:anywhere;}
.tm-destination-body>span{font-size:13px;line-height:1.5;color:#bbb2a1;}
.tm-destination-body em{font:12px/1.4 var(--f-ui);color:#e1a188;}
.tm-pick{flex:none;color:#c6a061;font-size:17px;line-height:1.4;}
.tm-route-decision{padding-top:19px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;}
.tm-route-selected{grid-column:1/-1;font-size:12px;color:#b6ac9a;margin:0 0 2px;}
.tm-route-selected b{font-weight:500;color:#e4dbc7;}
.tm-route .opt.tm-go{order:1;grid-column:2;background:#d2ad6b;color:#201b13;border:1px solid #d2ad6b;padding:14px 17px;min-width:0;min-height:58px;border-radius:6px;font:600 15px/1.3 var(--f-ui);margin:0;display:flex;gap:8px;align-items:center;justify-content:space-between;}
.tm-route .opt.tm-go:hover{background:#e0be80;}
.tm-route .opt.tm-home{order:0;grid-column:1;grid-row:2;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:12px 15px;min-height:58px;margin:0;background:transparent;border:1px solid #494338;border-radius:6px;font:500 14px/1.3 var(--f-ui);color:#d0c6b3;}
.tm-route .tm-home small{font:11px/1.4 var(--f-ui);color:#a9a192;}
.tm-route .tm-home:disabled{opacity:.7;cursor:not-allowed;}
.tm-history{margin-top:18px;color:#a9a192;font-size:12px;border-top:1px solid #38352f;padding-top:13px;}
.tm-history summary{cursor:pointer;}
.tm-history ol{padding-left:20px;line-height:1.8;margin:12px 0 0;}
@media(max-width:600px){.tm.tm-route{padding:18px 14px;}.tm-route .tm-big{font-size:24px;}.tm-destinations{grid-template-columns:minmax(0,1fr);gap:9px;}.tm-destination{padding:13px 12px;gap:10px;}.tm-destination-icon{padding-top:18px;font-size:23px;}.tm-destination-body{gap:5px;}.tm-destination-body b{font-size:18px;}.tm-destination-body small{font-size:11px;text-transform:none;letter-spacing:0;}.tm-route-decision{grid-template-columns:minmax(0,1fr);}.tm-route .opt.tm-go{grid-column:1;order:0;min-height:48px;}.tm-route .opt.tm-home{grid-row:auto;order:1;min-height:48px;}.tm-route-status{gap:8px 14px;}.tm-route .tm-top{font-size:10px;}.tm-route-progress{margin-bottom:18px;}}
@media(prefers-reduced-motion:reduce){.tm-destination{transition:none;}}

/* Жилец виден рядом с делами дня, а не только в списке характеристик. */
.resident-presence{border-left:3px solid #b29963;padding:12px 16px;margin:12px 0 20px;background:#b299630b;border-radius:0 8px 8px 0}.resident-presence strong{color:#dbc38b}.resident-presence p{margin:6px 0;font-size:.94em}.resident-presence small{display:block;color:#b4ab98;font-size:.8em;line-height:1.45}

/* Временные убежища: те же материалы интерфейса, собственное состояние места. */
.survival-meters{display:grid;gap:12px;padding:18px 20px;border:1px solid var(--line,#39352b);border-radius:12px;background:var(--card,#211e19)}
.survival-meters>div{display:grid;grid-template-columns:105px 1fr 36px;align-items:center;gap:16px}.survival-meters meter{width:100%;height:16px}.survival-meters meter::-webkit-meter-optimum-value{background:var(--sv-color)}
.survival-stock{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}.survival-stock>span{border:1px solid #514533;border-radius:8px;padding:8px 14px}.survival-stock b{margin-left:12px;color:#e8cf94}.survival-stock-note{font:14px/1.5 system-ui;color:#b9b1a2}
.survival-base .survival-scene{width:100%;aspect-ratio:16/8;object-fit:cover}.survival-heading>span{font:12px/1.5 system-ui;letter-spacing:.14em;color:#b8a47e}.survival-heading h2{margin-top:8px}.survival-status{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;border-top:1px solid #443c30;border-bottom:1px solid #443c30}.survival-status b{color:#e6c481}.survival-objective{color:#cbc1ad}.survival-found,.survival-notyet{margin:16px 0}.survival-found summary,.survival-notyet summary{cursor:pointer;color:#c1ae89}.survival-found p{font-size:.85em}.survival-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.survival-action{display:flex;flex-direction:column;gap:6px;text-align:left;min-height:92px}.survival-action small,.survival-locked small{display:block;line-height:1.4;font:14px/1.45 system-ui;color:#b6ae9f}.survival-locked{padding:12px 14px;border:1px dashed #514b40;border-radius:8px;margin-top:8px;color:#c0b6a1}.survival-danger{border-left:3px solid #d98a64;padding:12px 16px;background:#30221c}
@media(max-width:600px){.survival-actions{grid-template-columns:1fr}.survival-action{min-height:64px;padding:12px 14px}.survival-base .survival-scene{aspect-ratio:4/3}.survival-meters>div{grid-template-columns:76px 1fr 30px;gap:8px}.survival-stock-note{font-size:12px}.survival-heading>span{font-size:10px}.survival-action small,.survival-locked small{font-size:12px}}

.survival-actions .opt.survival-action{display:flex;align-items:stretch;justify-content:flex-start;padding:14px 16px}.survival-action>b{font-size:1em}.survival-action>small{margin:0}

/* Телефон: смысл действия на всю ширину, эффекты отдельной строкой. */
@media (max-width: 600px) {
  body.ui-de #card button.opt.act2 {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: stretch;
  }
  body.ui-de #card button.opt.act2 .a-ico {
    grid-column: 1; grid-row: 1 / 3; width: auto;
  }
  body.ui-de #card button.opt.act2 .a-body {
    grid-column: 2; padding: 9px 10px;
  }
  body.ui-de #card button.opt.act2 .a-fx {
    grid-column: 2; width: auto; min-width: 0; max-width: none;
    border-left: 0; border-top: 1px solid #3a2f20;
    padding: 6px 10px; flex-direction: row; flex-wrap: wrap;
    justify-content: flex-start; align-items: center; gap: 4px 12px;
    text-align: left;
  }
  body.ui-de #card button.opt.act2 .a-fx .a-time { margin-left: auto; white-space: nowrap; }
  .mini-hud.mini-stock {
    display: grid; grid-template-columns: repeat(var(--hud-cols, 5), minmax(0, 1fr));
    gap: 3px 4px; padding: 5px 8px 5px;
    font-size: 12px; line-height: 1.35;
  }
  .mini-hud.mini-stock > span { justify-content: center; min-width: 0; gap: 3px; }
}

/* Иллюстрации результатов на телефоне сохраняют полный кадр. */
@media (max-width: 899px) {
  .report img.report-img, #card .tape-out img.report-img {
    height: auto; max-height: none; aspect-ratio: auto 16 / 9; object-fit: contain;
  }
}

/* Смена дня: короткое затемнение вместо мгновенного переезда на тысячи пикселей (18.11) */
#app.day-swap { opacity: 0.05; transition: opacity 0.2s ease; }
#app.day-in { transition: opacity 0.4s ease; }
@media (prefers-reduced-motion: reduce) { #app.day-swap, #app.day-in { opacity: 1; transition: none; } }

/* Сравнение способов плавности (тест 19.11). Вариант 3: сцена живёт в своём кадре, страница не растёт */
body.motion-frame #card { height: calc(100svh - 18px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scroll-margin-top: 9px; }
body.motion-frame #card::-webkit-scrollbar { width: 6px; }
body.motion-frame #card::-webkit-scrollbar-thumb { background: #3a2f20; border-radius: 3px; }

/* Полоса «Вид» внизу слева: вверху её перекрывает тестовая шапка (19.11). Полоса «Плавность» убрана 20.11 */
#ui-toggle { top: auto; bottom: 12px; left: 12px; z-index: 70; }
@media (max-width: 1000px) { #ui-toggle { position: fixed; bottom: 12px; left: 12px; margin: 0; } }

.survival-base .day-outcome { border-left: 2px solid var(--accent); padding: 0 .85rem; margin-bottom: 1rem; }
.survival-stockline {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  padding: .6rem 0;
  color: var(--muted);
  font: .9rem/1.4 var(--f-ui);
}
.survival-stockline > span { white-space: nowrap; }
.survival-stockline b { color: var(--text); }
.survival-stockline .low b { color: var(--bad); }
.survival-base .survival-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .8rem; margin-bottom: .7rem; }
.survival-base .survival-heading h2 { margin: 0; }
.survival-base .survival-status { border: 0; padding: 0; font: .86rem/1.4 var(--f-ui); gap: .65rem; }
.survival-base .day-outcome { margin-bottom: .8rem; }
.survival-base .day-outcome p { margin: .25rem 0; }
.survival-nav { display: flex; flex-wrap: wrap; gap: .25rem .8rem; border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.survival-nav button { appearance: none; cursor: pointer; background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; padding: .55rem .15rem; font: .95rem/1.2 var(--f-ui); }
.survival-nav button[aria-pressed="true"] { color: var(--accent); border-bottom-color: currentColor; }
#card.survival-base .choices.survival-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .4rem; }
#card.survival-base .choices button.opt.survival-action { padding: .5rem .8rem; min-height: 44px; gap: .15rem; }
#card.survival-base .survival-action small { font: .85rem/1.35 var(--f-ui); }
.survival-end { border-top: 1px solid var(--line); margin-top: .7rem; padding-top: .6rem; }
.survival-base [data-survival-panel][hidden] { display: none; }
@media (max-width: 600px) {
  .survival-stockline { gap: .2rem .65rem; padding: .3rem 0; }
  #card.survival-base .choices.survival-actions { grid-template-columns: 1fr; }
}


.heal-notice { position: fixed; z-index: 110; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 9px 14px; border: 1px solid #746346; border-radius: 8px; background: #25231e; color: #f3e7cb; font: 600 14px/1.4 system-ui,sans-serif; pointer-events: none; box-shadow: 0 3px 14px #0008; }

.action-outcome { margin: .7rem 0; border-inline-start: 3px solid var(--accent); padding: .35rem .75rem; background: var(--bg); }
#card > .tape-now > .previous-outcome + img.scene { margin-top: 0; border-radius: 0; }
#card .hideout-result img.report-img {
  width: 100%;
  height: auto;
  margin: 0 0 8px;
  aspect-ratio: auto;
  border-radius: 6px;
}
.action-outcome .tape-line { margin: .2rem 0; font: 1rem/1.45 var(--f-ui); }
.action-outcome .chips { margin: .3rem 0; }
.action-outcome .loot-result { font: 600 .95rem/1.4 var(--f-ui); }
.action-outcome .loot-result + .chips { display: inline-flex; flex-wrap: wrap; gap: .35rem; margin-inline-start: .45rem; }
