/* Дела дня (волна 3, часть B; docs/WORLD_CONTENT.md §6–§8): Доска дня (board.js), Голубятня (loft.js), тайные дела
   (secret.js), выбор армии для боя у стен (homearmy.js), вкладка «Постройки» в заданиях (city.js openQuests).
   Окна светлые: цвета — переменные --w-* окна (kod.css), запасные — прежний тёмный вид. */

/* ——— общее ——— */
.tk-wait { color: var(--w-muted, #c9bfae); text-align: center; margin: 24px 0; }
.modal .pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 14px; font-size: 14px;
  background: var(--w-well, rgba(0, 0, 0, .25)); border: 1px solid var(--w-line, rgba(192, 138, 62, .3)); color: var(--w-hi, #fff3d0); }
.modal .pill b { color: var(--w-accent, #ecc478); }
.lf-hint, .sc-note { color: var(--w-muted, #c9bfae); font-size: 14px; margin: 8px 0; }
body:is(.vertical, .phone-land) :is(.lf-win, .sc-win, .bd-win) :is(.lf-hint, .sc-note, .tk-wait) { font-size: var(--fs-sub); }
.ok { color: var(--w-good, #9fe0a8); font-weight: 700; }
.bad { color: var(--w-bad, #e0705f); font-weight: 700; }

/* ——— выбор армии (homearmy.js) ——— */
.tk-place { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--w-accent, #ecc478); margin-bottom: 6px; }
.tk-hint, .tk-foe, .tk-cost { font-size: 14px; margin: 4px 0; color: var(--w-muted, #c9bfae); display: flex; align-items: center; gap: 6px; }
.tk-foe { color: var(--w-hi, #fff3d0); font-weight: 700; }
.tk-armies { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.tk-army { display: flex; text-align: left; padding: 10px 12px; border-radius: 8px; cursor: pointer; font: inherit; color: inherit;
  background: var(--w-well, rgba(0, 0, 0, .25)); border: 1px solid var(--w-line, rgba(192, 138, 62, .3)); }
.tk-army:not(:disabled):hover { border-color: var(--bronze-l); }
.tk-army:disabled { opacity: .6; cursor: default; }
.tk-army .t { display: flex; flex-direction: column; gap: 3px; }
.tk-army .t b { font-size: 17px; color: var(--w-hi, #fff3d0); }
.tk-army .m { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--w-muted, #c9bfae); }
.tk-army .why { font-size: 13px; color: var(--w-bad, #e0705f); }
.tk-army .odds { font-size: 13px; font-weight: 700; }
.tk-army .odds.easy, .tk-army .odds.good { color: var(--w-good, #9fe0a8); }
.tk-army .odds.even { color: var(--w-gold, #e8c66a); }
.tk-army .odds.bad { color: var(--w-bad, #e0705f); }

/* ——— Доска дня (docs/UI_PLAN.md §3 п. 22): карточки своим цветом — слева название, счётчики и ряд наград, справа
   картинка (events.board_<ключ>) или крупный значок; стоя — один столбец, карточки от 200 ——— */
.bd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bd-card {
  position: relative; display: flex; align-items: stretch; min-height: 120px; padding: 0; overflow: hidden; text-align: start; font: inherit;
  color: #fff; text-shadow: var(--t-outline); border: 0; border-radius: 14px; background: linear-gradient(135deg, #6e7c90, #3a4656);
  box-shadow: 0 3px 0 rgba(20, 28, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
button.bd-card { cursor: pointer; }
button.bd-card:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(20, 28, 40, 0.45); }
.bd-card.soon { filter: grayscale(0.7); opacity: 0.75; }
.bd-time { background: linear-gradient(135deg, #5a6e90, #26324a); }
.bd-event { background: linear-gradient(135deg, #c4563a, #6a1f1a); }
.bd-daily { background: linear-gradient(135deg, #d6a03a, #7a5212); }
.bd-loft { background: linear-gradient(135deg, #6f9fc9, #2f5584); }
.bd-secret { background: linear-gradient(135deg, #7a64a8, #2c2140); }
.bd-caravan { background: linear-gradient(135deg, #a07a46, #4c3418); }
.bd-wanderer { background: linear-gradient(135deg, #7c7c72, #2e2e2a); }
.bd-tavern { background: linear-gradient(135deg, #b8383a, #4f1012); }
.bd-body { position: relative; z-index: 1; flex: 1 1 55%; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding-block: 10px; padding-inline: 14px 8px; }
.bd-pic { flex: 0 0 45%; max-width: 45%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bd-pic .bd-art { width: 100%; height: 100%; object-fit: cover; }
.bd-pic .bd-ic { display: flex; opacity: 0.9; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.35)); }
.bd-pic .bd-ic svg { width: 80px; height: 80px; }
.bd-title { font: 700 21px/1.15 var(--sans); color: #fff; }
.bd-line { font-size: 14px; line-height: 1.3; color: #fff4e4; }
.bd-line b { color: #ffe39a; }
.bd-line .ok { color: #c8f5b0; }
.bd-line .bad { color: #ffc4b8; } /* скиталец закрыт уровнем охоты */
.bd-clock { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 8px; }
.bd-clock b { white-space: nowrap; font: 700 32px/1 var(--sans); color: #fff !important; font-variant-numeric: tabular-nums; }
.bd-clock i { font-style: normal; font-weight: 700; color: #d6e2f2; }
.bd-rw { display: block; margin-top: 4px; }
.bd-rw .ic-row { flex-wrap: nowrap; }
.bd-card .cnt { position: absolute; z-index: 2; inset-inline-end: 8px; top: 8px; min-width: 26px; height: 26px; padding: 0 6px; box-sizing: border-box;
  border-radius: 13px; background: #d63a34; border: 2px solid #fff; color: #fff; font: 700 14px/1 var(--sans);
  display: flex; align-items: center; justify-content: center; }
.bd-bar { position: relative; display: block; height: 10px; border-radius: 5px; margin-block: 3px; margin-inline: 0 10px; background: var(--w-track, rgba(0, 0, 0, .45)); }
.bd-bar .fill { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 5px; background: linear-gradient(90deg, #d8a32a, #f0c75a); }
.bd-bar i { position: absolute; top: -3px; width: 6px; height: 16px; margin-inline-start: -3px; border-radius: 3px; background: #8a99ad; }
.bd-bar i.ready { background: #23803e; }
.bd-bar i.got { background: #c9b48a; }
.bd-card .bd-bar { height: 12px; border-radius: 6px; margin-block: 4px; margin-inline: 0 10px; background: rgba(0, 0, 0, 0.35); }
.bd-card .bd-bar .fill { border-radius: 6px; background: linear-gradient(90deg, #f0c75a, #fff1b8); }
.bd-card .bd-bar i { height: 18px; background: #d6dde6; }
.bd-card .bd-bar i.ready { background: #4cd06a; }
.bd-card .bd-bar i.got { background: #7a6a4a; }
/* стоя: один столбец, карточка от 200, название 28, счётчики 20, значок 140, часы 56 */
body.vertical .bd-grid { grid-template-columns: 1fr; gap: 14px; }
body.vertical .bd-card { min-height: 200px; }
body.vertical .bd-body { gap: 6px; padding-block: 16px; padding-inline: 20px 8px; }
body.vertical .bd-title { font-size: 28px; }
body.vertical .bd-line { font-size: 20px; }
body.vertical .bd-pic .bd-ic svg { width: 140px; height: 140px; }
body.vertical .bd-clock b { font-size: 56px; }
body.vertical .bd-clock i { font-size: 20px; }
body.vertical .bd-rw .ic-cell { --ic: 80px; }
/* длинный ярлык ячейки («10 Tsd.») в ячейках 80 Доски, Голубятни и тайных дел — не мельче 16 (css/itemcell.css мельчит .n7) */
body.vertical :is(.bd-rw, .lf-rw, .lf-panel, .sc-offer .rw, .sc-deed .rw) .it-tile .it-tag { font-size: 16px; }
body.vertical .bd-card .cnt { min-width: 32px; height: 32px; border-radius: 16px; font-size: 18px; }
body.vertical .bd-card .bd-bar { height: 16px; border-radius: 8px; }
body.vertical .bd-card .bd-bar i { height: 22px; }

/* ——— Голубятня (окно-раздел; docs/UI_PLAN.md §3, P3 «Loft»): карта, поверх её верха — полупрозрачная полоса счётчиков
   и кнопок, круг тумана — под картой (стоя — поверх её низа), поручение — нижней панелью (modal sheet) ——— */
.modal.lf-win > .modal-body { display: flex; flex-direction: column; }
.lf { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.lf-main { position: relative; display: flex; gap: 12px; min-height: 0; flex: 1; }
.lf-mapbox { position: relative; flex: 0 0 auto; width: 520px; max-width: 62%; border-radius: 10px; overflow: hidden; border: 2px solid #2a3442;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); background: #2c3a4e; align-self: flex-start; }
.lf-map { display: block; width: 100%; height: auto; aspect-ratio: 560 / 470; touch-action: manipulation; cursor: pointer; }
.lf-top { position: absolute; top: 0; inset-inline: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px;
  background: linear-gradient(rgba(18, 26, 38, .72), rgba(18, 26, 38, 0)); pointer-events: none; }
.lf-top:empty { display: none; }
.lf-top > * { pointer-events: auto; }
.lf-top .sp { flex: 1; }
.modal .lf-top .pill { background: rgba(18, 26, 38, .6); border-color: rgba(255, 255, 255, .25); color: #fff; text-shadow: var(--t-outline); }
.modal .lf-top .pill b { color: #ffe39a; }
.lf-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lf-panel { display: flex; flex-direction: column; gap: 8px; }
.lf-fog { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 8px; background: var(--w-well, rgba(0, 0, 0, .25)); }
.lf-fog .hd { display: flex; align-items: center; gap: 6px; }
.lf-fog .hd b { color: var(--w-hi, #fff3d0); font-size: 16px; }
.lf-fog .hd span { margin-inline-start: auto; font-size: 13px; color: var(--w-muted, #c9bfae); }
.lf-fog .sub { font-size: 13px; color: var(--w-muted, #c9bfae); }
.lf-ring { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.lf-all { align-self: flex-start; }
.lf-hint { margin: 0; }
/* лёжа на телефоне (сцена около 0,57): счётчики над картой и круг тумана были 13–16 (7,4–9 px экрана; проверка 08.11) —
   не мельче --fs-min (20), заголовок круга — --fs-sub (22) */
body.phone-land .modal .lf-top .pill { padding: 5px 12px; border-radius: 16px; font-size: var(--fs-min); }
body.phone-land .lf-fog .hd b { font-size: var(--fs-sub); }
body.phone-land :is(.lf-fog .hd span, .lf-fog .sub) { font-size: var(--fs-min); }
/* поручение (нижняя панель) */
.lf-err { display: flex; flex-direction: column; gap: 10px; }
.lf-eh { display: flex; align-items: center; gap: 12px; }
.lf-eh .ic { width: 52px; height: 52px; border-radius: 26px; display: flex; align-items: center; justify-content: center; flex: 0 0 52px;
  box-shadow: 0 0 0 3px #fff, 0 2px 4px rgba(0, 0, 0, .3); }
.lf-eh .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lf-eh .rar { font-size: 16px; font-weight: 700; filter: brightness(.8); }
.lf-des { font-size: 14px; margin: 0; color: var(--w-muted, #c9bfae); }
.lf-rw { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.lf-rw .lbl { font-size: 13px; color: var(--w-muted, #c9bfae); width: 100%; }
.lf-how, .lf-run { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 0; color: var(--w-hi, #fff3d0); }
.lf-err .act-bar { margin-top: 2px; }
/* лёжа панель низкая: сведения слева, главная кнопка — справа от них, а не под ними и не поверх */
body:not(.vertical) .lf-sheet .lf-err { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 8px; align-items: center; }
body:not(.vertical) .lf-sheet .lf-err > * { grid-column: 1; }
body:not(.vertical) .lf-sheet .lf-err > .act-bar { grid-column: 2; grid-row: 1 / span 4; position: static; margin: 0; padding: 0; background: none; }
.lf-none { align-items: flex-start; padding: 10px; }
.lf-none p { margin: 0; }
/* «как устроено»: тема — картинка-схема и одна-две фразы крупно, числа — под «Подробнее» */
.lf-how-pic { position: relative; height: 200px; margin: 4px 0 12px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #a7c287 0 26%, #2c3a4e 27%); box-shadow: inset 0 0 0 2px #3a4656; }
.lf-how-pic .ring { position: absolute; left: 50%; top: 50%; width: 168px; height: 168px; transform: translate(-50%, -50%); border-radius: 50%;
  border: 2px dashed rgba(226, 236, 248, .55); }
.lf-how-pic .mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; padding: 14px; border-radius: 50%;
  background: rgba(18, 26, 38, .55); }
.lf-how-pic .mid svg { width: 72px; height: 72px; }
.lf-how-pic .pin { position: absolute; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; }
.lf-how-pic .p1 { left: 22%; top: 24%; }
.lf-how-pic .p2 { left: 72%; top: 30%; }
.lf-how-pic .p3 { left: 30%; top: 70%; }
.lf-how-pic .p4 { left: 66%; top: 66%; }
.lf-how-t { margin: 0 0 6px; color: var(--w-hi, #fff3d0); line-height: 1.4; }
.lf-how-s { margin: 0 0 10px; font-size: 14px; color: var(--w-muted, #c9bfae); }
.lf-more summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; cursor: pointer; color: var(--blue, #2f5584); font-weight: 700; list-style: none; }
.lf-more summary::-webkit-details-marker { display: none; }
.lf-more summary::after { content: '▸'; transition: transform .15s; }
.lf-more[open] summary::after { transform: rotate(90deg); }
html.kod-still .lf-more summary::after { transition: none; }
.lf-more .tbl { width: 100%; margin-top: 6px; }
/* окно во весь экран лёжа (план 3.6, ui.js modal → full): карта — во всю высоту окна по своим пропорциям (не шире
   62 %), а не 520 px с пустой полосой под ней; колонка справа прокручивается сама. cqh — высота .lf-main (контейнер);
   без единиц контейнера (старый WebView) — прежние 520 px */
body:not(.vertical) .modal.full .lf-main { flex: 1; container-type: size; }
body:not(.vertical) .modal.full .lf-mapbox { align-self: flex-start; width: min(62%, calc((100cqh - 4px) * 560 / 470)); }
body:not(.vertical) .modal.full .lf-side { overflow-y: auto; }
/* стоя: карта во всё окно под шапкой (без светлой вставки), полоса сверху — 20, круг тумана — карточкой поверх низа карты */
body.vertical .modal.lf-win > .modal-body { margin: 0; padding: 0; border-radius: 0; background: #1d2633; box-shadow: none; overflow: hidden; }
body.vertical .lf { gap: 0; }
body.vertical .lf-main { flex-direction: column; gap: 0; }
body.vertical .lf-mapbox { flex: 1; width: 100%; max-width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; box-shadow: none; align-self: stretch; }
body.vertical .lf-map { height: 100%; aspect-ratio: auto; }
body.vertical .lf-top { gap: 8px; padding: 10px 12px 24px; }
body.vertical .modal .lf-top .pill { padding: 6px 12px; border-radius: 18px; font-size: 20px; }
body.vertical .lf-top .btn.small { height: 52px; font-size: 20px; }
body.vertical .lf-side { position: absolute; z-index: 1; inset-inline: 10px; bottom: calc(10px + var(--sab)); flex: none; }
body.vertical .lf-panel { padding: 12px 14px; border-radius: 14px; background: rgba(18, 26, 38, .8); color: #fff; text-shadow: var(--t-outline); }
body.vertical .lf-panel .lf-fog { padding: 0; background: none; }
body.vertical .lf-panel .lf-fog .hd b { color: #fff; font-size: 22px; }
body.vertical .lf-panel .lf-fog .hd span, body.vertical .lf-panel .lf-fog .sub, body.vertical .lf-panel .lf-hint { color: #d6e2f2; font-size: 18px; }
body.vertical .lf-panel .bd-bar { height: 14px; border-radius: 7px; background: rgba(0, 0, 0, .45); }
body.vertical .lf-panel .lf-hint { margin: 0; }
body.vertical .lf-panel.lf-none p { font-size: var(--fs-body); }
body.vertical .lf-eh .ic { width: 72px; height: 72px; flex-basis: 72px; border-radius: 36px; }
body.vertical .lf-eh .ic svg { width: 40px; height: 40px; }
body.vertical .lf-eh .rar { font-size: 20px; }
body.vertical .lf-des, body.vertical .lf-how, body.vertical .lf-run { font-size: 20px; }
body.vertical .lf-rw .lbl { font-size: 18px; }
body.vertical .lf-rw .ic-cell, body.vertical .lf-panel .ic-cell { --ic: 80px; }
body.vertical .lf-rw .ic-sub { font-size: 16px; }
body.vertical .lf-how-pic { height: 280px; }
body.vertical .lf-how-pic .ring { width: 236px; height: 236px; }
body.vertical .lf-how-pic .mid svg { width: 110px; height: 110px; }
body.vertical .lf-how-pic .pin { width: 30px; height: 30px; }
body.vertical .lf-how-t { font-size: 22px; }
body.vertical .lf-how-s { font-size: 18px; }
body.vertical .lf-more summary { font-size: 20px; min-height: 48px; }
body.vertical .lf-more .tbl { font-size: 18px; }
body.vertical .lf-more .tbl tr { height: 56px; }
body.vertical .lf-more .tbl td:first-child { font-size: 20px; font-weight: 700; }

/* ——— тайные дела ——— */
.sc-cnt { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sc-sect { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; font-size: 19px; }
.sc-sect .sp { flex: 1; }
.sc-offer, .sc-deed { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border-radius: 8px;
  background: var(--w-well, rgba(0, 0, 0, .25)); border: 1px solid var(--w-line, rgba(192, 138, 62, .3)); }
.sc-deed.ready { border-color: #23803e; box-shadow: inset 4px 0 0 #23803e; }
.sc-offer .t, .sc-deed .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sc-offer .t b, .sc-deed .t b { font-size: 16px; color: var(--w-hi, #fff3d0); }
.sc-deed .who { font-size: 13px; color: var(--w-accent, #ecc478); }
.sc-stars { color: #c98a14; letter-spacing: 1px; font-size: 15px; }
.sc-offer .meta, .sc-deed .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--w-muted, #c9bfae); }
.sc-offer .meta span, .sc-deed .meta span { display: inline-flex; align-items: center; gap: 4px; }
.sc-offer .rw, .sc-deed .rw { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; }
.sc-deed .rw i { font-style: normal; color: var(--w-muted, #c9bfae); }
.sc-deed .a { display: flex; gap: 6px; align-items: center; }
/* стоя (§2.5): строки дел от 120, название 21, награды 72, кнопка 170×56; у чужих дел — аватар 80 */
body.vertical .sc-cnt { gap: 8px; }
body.vertical .modal .sc-cnt .pill { padding: 6px 12px; border-radius: 18px; font-size: 18px; }
body.vertical .sc-offer, body.vertical .sc-deed { min-height: 120px; padding: 10px 14px; gap: 14px; margin-bottom: 8px; border-radius: 12px; }
body.vertical .sc-offer .t b, body.vertical .sc-deed .t b { font-size: 21px; }
body.vertical .sc-deed .who, body.vertical .sc-offer .meta, body.vertical .sc-deed .meta, body.vertical .sc-offer .rw, body.vertical .sc-deed .rw { font-size: 18px; }
body.vertical .sc-stars { font-size: 20px; }
body.vertical .sc-offer .rw .ic-cell, body.vertical .sc-deed .rw .ic-cell { --ic: 80px; }
body.vertical .sc-offer > .btn.small, body.vertical .sc-deed .a .btn.small:not(.sq) { min-width: 170px; height: 56px; }
body.vertical .sc-deed .a { flex-direction: column; align-items: flex-end; gap: 8px; }
body.vertical .sc-deed .a .ok { font-size: 18px; }
body.vertical .sc-sect .btn.small { height: 48px; font-size: 18px; min-width: 0; }
body.vertical .modal.sc-win .sc-body .lf-hint, body.vertical .modal.sc-win .sc-note { font-size: var(--fs-sub); }
/* «!» тайных дел — «как устроено» (secret.js openHow; docs/ref/TABS_GAP.md п. 6): схема и подписи Голубятни (.lf-how-*,
   .lf-more выше), цвет круга — по теме (--sc), числа по звёздам дела — таблицей под «Подробнее». Лёжа на телефоне
   подписи были бы 8 css px — растут до 17–20 */
.lf-how-pic.sc-how-pic { background: radial-gradient(circle at 50% 50%, var(--sc, #c79a5a) 0 26%, #2c3a4e 27%); }
.sc-how-st { white-space: nowrap; }
body.phone-land .sc-how-win .lf-how-t { font-size: var(--fs-body); }
body.phone-land .sc-how-win :is(.lf-how-s, .lf-more summary, .lf-more .tbl) { font-size: var(--fs-sub); }
/* «Журнал» тайных дел (secret.js logHtml; docs/ref/TABS_GAP.md п. 6): строка попытки перехвата — аватар, имя (касание —
   окно лорда) и [альянс], звёзды и название дела, итог (полоса слева: зелёная — удался, алая — охрана отбилась), «когда»
   справа. Стоя (§2.5) — как строки дел: от 120, имя 21, подписи 18 */
.scj-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border-radius: 8px;
  background: var(--w-well, rgba(0, 0, 0, .25)); border: 1px solid var(--w-line, rgba(192, 138, 62, .3)); }
.scj-row.win { box-shadow: inset 4px 0 0 #23803e; }
.scj-row.lose { box-shadow: inset 4px 0 0 #a3262a; }
.scj-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.scj-who { font-size: 16px; color: var(--w-hi, #fff3d0); overflow-wrap: anywhere; }
.scj-name { cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.scj-ally { color: var(--w-accent, #ecc478); }
.scj-deed { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--w-hi, #fff3d0); min-width: 0; }
.scj-res { font-size: 13px; }
.scj-res > span { display: inline-flex; align-items: center; gap: 4px; }
.scj-at { flex: none; align-self: flex-start; font-size: 13px; color: var(--w-muted, #c9bfae); white-space: nowrap; }
.scj-n { font-size: 15px; color: var(--w-muted, #c9bfae); }
body.vertical .scj-row { min-height: 120px; padding: 10px 14px; gap: 14px; margin-bottom: 8px; border-radius: 12px; }
body.vertical .scj-who { font-size: 21px; }
body.vertical :is(.scj-deed, .scj-res, .scj-at, .scj-n) { font-size: 18px; }
/* лёжа на телефоне (body.phone-land, сцена ~0,57): строки дел и предложений, журнала, счётчики и пояснения окна —
   переменными (растут до 17–20), иначе выходило 7–9 css px. Стоя и на ПК — как было (свои числа выше) */
body.phone-land :is(.sc-offer, .sc-deed) .t b, body.phone-land .scj-who { font-size: var(--fs-list); }
body.phone-land :is(.sc-deed .who, .sc-offer .meta, .sc-deed .meta, .sc-offer .rw, .sc-deed .rw, .sc-stars) { font-size: var(--fs-sub); }
body.phone-land :is(.scj-deed, .scj-res, .scj-at, .scj-n) { font-size: var(--fs-sub); }
body.phone-land .sc-win :is(.sc-note, .lf-hint) { font-size: var(--fs-sub); }
body.phone-land .modal.sc-win .sc-cnt .pill { font-size: var(--fs-sub); }

/* ——— задания: вкладка «Постройки» (побочные задания) ——— */
.q-side-ready { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.q-side { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; margin-bottom: 6px;
  background: var(--w-well, rgba(0, 0, 0, .22)); }
.q-side.ready { box-shadow: inset 4px 0 0 #23803e; }
.q-side .pic { width: 56px; height: 44px; flex: 0 0 56px; display: flex; align-items: center; justify-content: center; }
.q-side .pic img { max-width: 56px; max-height: 44px; }
.q-side .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.q-side .t b { font-size: 15px; color: var(--w-hi, #fff3d0); }
.q-side .t .rw { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; }

/* Доска дня, нижние карточки (js/screens/board.js, аудит 07.11 zamok-13): счётчики значками одной строкой «3 / 5»,
   отсчёт и «Замок N» — значком, ряд наград; правила — под «!» */
.bd-cnts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.bd-cnt { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bd-cnt > :is(svg, img) { flex: none; width: 30px; height: 30px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.bd-cnt b { font: 700 24px/1 var(--sans); color: #fff !important; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.bd-cnt i { font-style: normal; font-weight: 700; font-size: 18px; color: #e8dcc4; }
.bd-lock, .bd-tm { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; white-space: nowrap; }
.bd-lock > :is(svg, img), .bd-tm > :is(svg, img) { flex: none; width: 22px; height: 22px; }
.bd-tm b { font-variant-numeric: tabular-nums; }
.bd-help p { margin: 0 0 10px; line-height: 1.4; }
body.vertical .bd-cnt > :is(svg, img) { width: 44px; height: 44px; }
body.vertical .bd-cnt b { font-size: 36px; }
body.vertical .bd-cnt i { font-size: var(--fs-sub); }
body.vertical .bd-lock, body.vertical .bd-tm { font-size: var(--fs-list); }
body.vertical .bd-lock > :is(svg, img), body.vertical .bd-tm > :is(svg, img) { width: 32px; height: 32px; }
body.vertical .bd-line { font-size: var(--fs-sub); }
body.vertical .bd-help p { font-size: var(--fs-body); }
body.phone-land .bd-cnt b { font-size: var(--fs-num); }
body.phone-land .bd-line { font-size: var(--fs-sub); }
.bd-cnts.bad .bd-cnt b, .bd-cnts.bad .bd-cnt i { color: #ffc4b8 !important; }
