/* A1, вариант 8 (автор 04.12): слова пиксельные, цифры, время, дни и вес — PT Mono.
   «NG Digits» покрывает только цифры и знаки при них, остальное берёт Pixelify Sans. */
@font-face { font-family: "NG Digits"; font-display: swap; src: url(https://fonts.gstatic.com/s/ptmono/v14/9oRONYoBnWILk-9AnC8zM_HxEck.woff2) format("woff2");
  unicode-range: U+0030-0039, U+002F, U+0025, U+2116, U+2013, U+2014, U+2026, U+00AB, U+00BB, U+007E, U+2192, U+0028-0029; }
/* R3 (04.12 ночь): точка и запятая — из пиксельного шрифта (в моноширинном они стояли посреди широкой клетки и читались как «пробел перед точкой»); скобки — из PT Mono (в пиксельном похожи на фигурные). */
.wd, .tslot .t, .weight, .ctime, .cal { font-family: "PT Mono", monospace !important; letter-spacing: 0; }
/* 04.12 (7 скептиков): в пиксельном шрифте кириллица путается (д→а, С→О, Ш→W). Русские буквы — тем же PT Mono, латиница остаётся пиксельной.
   Откатить: убрать "NG Cyr" из списков шрифтов ниже. */
@font-face { font-family: "NG Cyr"; font-display: swap; src: url(https://fonts.gstatic.com/s/ptmono/v14/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* «Ночная проходная» — всё в одном экране без прокрутки (01.12). Размеры сцены задаёт layout() в game3.js:
   --sx/--sy/--sw/--sh — прямоугольник сцены, --below — от низа сцены до низа экрана, --right — справа, --hud — высота шапки. */
:root {
  --bg: #120d16; --bg2: #1c1421; --panel: #261b2d; --line: #4a3550;
  --brass: #e9b54a; --red: #b8323a; --ink: #f3e6cf; --muted: #a8949c;
  --green: #7bd38a; --blue: #9fc7ff; --leather: #2a1d14; --leather2: #5a3d22;
  --ease: cubic-bezier(.2, 1.1, .35, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #07050a; color: var(--ink); font: 16px/1.4 "PT Serif", Georgia, serif; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
#app { position: fixed; inset: 0; overflow: clip; font-size: var(--fs, 16px); user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
#fill { position: absolute; inset: -60px; background: #07050a center / cover no-repeat; filter: blur(22px) brightness(.32) saturate(1.2); }
img { image-rendering: pixelated; -webkit-user-drag: none; }

/* пиксельная кнопка */
.px-btn, button.opt, .tb, .da, .hud button, .tabs button {
  font-family: "NG Digits", "NG Cyr", "Pixelify Sans", monospace; background: #241a2b; border: 2px solid #5b4366; border-radius: 3px; color: var(--ink); cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35), 0 2px 0 #000; transition: transform .08s, border-color .15s, background .15s;
}
button:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .35); }
button:disabled { opacity: .4; cursor: default; }
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* шапка */
.hud { position: absolute; left: 0; right: 0; top: 0; height: var(--hud); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 0 8px; background: linear-gradient(rgba(6, 4, 8, .92), rgba(6, 4, 8, .55)); border-bottom: 2px solid rgba(233, 181, 74, .35); }
.dayline { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: center; font: 14px "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--muted); white-space: nowrap; overflow: hidden; }
.dayline b { color: var(--brass); }
.steps { display: flex; gap: 2px; }
.steps span { padding: 1px 6px; border-radius: 3px; }
.steps span.on { background: var(--brass); color: #1a1000; }
.steps span.done { color: var(--green); }
.hbtns { display: flex; gap: 5px; }
.hud button { height: calc(var(--hud) - 10px); padding: 0 9px; display: flex; align-items: center; gap: 5px; font-size: 14px; }
.hud button b { color: var(--brass); font-weight: 700; }
.hud button img { height: 80%; }
.hud button .ic { font-size: 16px; color: var(--brass); }
.hud button.new { animation: pop .7s; }
.lamps { display: inline-flex; gap: 3px; vertical-align: middle; }
.lamps i { display: inline-block; width: 10px; height: 14px; background: var(--brass); border-radius: 50% 50% 2px 2px; box-shadow: 0 0 7px var(--brass); }
.lamps i.off { background: #3a3030; box-shadow: none; }

/* сцена */
.stage { position: absolute; left: var(--sx); top: var(--sy); width: var(--sw); height: var(--sh); overflow: hidden; background: #000; box-shadow: 0 0 40px rgba(0, 0, 0, .8); touch-action: manipulation; }
.portrait .stage { transition: left .35s var(--ease); touch-action: pan-y; }
.portrait.dragging .stage { transition: none; }
.canpan .stage { cursor: grab; }
#view { position: absolute; left: var(--vx); top: var(--sy); width: var(--vw); height: var(--sh); overflow: hidden; pointer-events: none; z-index: 2; font-size: calc(var(--fs) * .9); }
.portrait #view { --sw: var(--vw); }
.stage img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#layer { position: absolute; inset: 0; }
.stage.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: flash .55s forwards; pointer-events: none; z-index: 4; }
@keyframes flash { from { opacity: .95; } to { opacity: 0; } }
.boom { position: absolute; z-index: 25; left: calc(var(--vx) + var(--vw) / 2); top: calc(var(--sy) + var(--sh) * .4); transform: translate(-50%, -50%) rotate(-6deg); font: 700 calc(var(--vw) * .08) "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--brass); text-shadow: 4px 4px 0 #6b1418, -2px -2px 0 #000, 0 0 30px #ffcf6a; animation: boom 1.1s ease-out forwards; pointer-events: none; white-space: nowrap; }
@keyframes boom { 0% { transform: translate(-50%, -50%) scale(.3) rotate(-6deg); opacity: 0; } 18% { transform: translate(-50%, -50%) scale(1.15) rotate(-6deg); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1) rotate(-6deg); opacity: 0; } }
.banner { position: absolute; z-index: 24; left: calc(var(--vx) + var(--vw) * .05); width: calc(var(--vw) * .9); top: calc(var(--sy) + var(--sh) * .3); padding: .6em 1em; text-align: center; background: linear-gradient(90deg, transparent, rgba(107, 20, 24, .95) 15%, rgba(107, 20, 24, .95) 85%, transparent); border-top: 3px solid var(--brass); border-bottom: 3px solid var(--brass); animation: banner 1.7s ease-in-out forwards; pointer-events: none; }
.banner span { display: block; font: 700 1.9em "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--brass); letter-spacing: .08em; text-shadow: 3px 3px 0 #000; }
.banner b { font: 1.1em "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--ink); }
@keyframes banner { 0% { transform: scaleX(0); opacity: 0; } 18%, 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
#app.shake .stage { animation: shake .4s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

.tag { position: absolute; padding: .2em .6em; background: rgba(8, 5, 10, .74); border: 1px solid rgba(233, 181, 74, .45); border-radius: 3px; font: calc(var(--sw) * .0135 + 3px) "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--ink); pointer-events: none; }
.tag.tl { left: 1.5%; top: var(--tagtop); } .tag.tr { right: 1.5%; top: var(--tagtop); color: var(--brass); }
.tag.even { color: var(--blue); }
.tag.testi { color: var(--brass); }

/* фигурки на улице */
.spr { position: absolute; height: 40%; aspect-ratio: 1 / 2; background-size: 200% 100%; background-repeat: no-repeat; background-position: 0 0; image-rendering: pixelated; transition: left 1s linear, opacity .5s; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .45)); top: 47%; }
.spr.f1 { background-position: 100% 0; }
.spr.gone { opacity: 0; }
.stamp { position: absolute; font: 700 calc(var(--sw) * .03) "NG Digits", "NG Cyr", "Pixelify Sans"; color: #ff5b6b; border: 3px solid #ff5b6b; padding: 0 8px; transform: rotate(-12deg); animation: stamp .5s ease-out forwards; text-shadow: 0 0 10px #ff5b6b; pointer-events: none; }
@keyframes stamp { 0% { transform: rotate(-12deg) scale(2.4); opacity: 0; } 40% { transform: rotate(-12deg) scale(1); opacity: 1; } 100% { opacity: 0; transform: rotate(-12deg) scale(1); } }

/* окошко */
.winp { position: absolute; left: 25.8%; top: 10.5%; width: 46.5%; height: 53.5%; overflow: hidden; pointer-events: none; }
.wspr { position: absolute; left: 50%; bottom: -66%; height: 150%; aspect-ratio: 1 / 2; transform: translateX(-50%); background-size: 200% 100%; background-position: 0 0; background-repeat: no-repeat; image-rendering: pixelated; animation: wrise .45s var(--ease); filter: brightness(.9); }
@keyframes wrise { from { transform: translate(-50%, 40%); } to { transform: translate(-50%, 0); } }
.cal { position: absolute; left: 13.4%; top: 35%; width: 8.6%; text-align: center; font-family: "NG Digits", "NG Cyr", "Pixelify Sans"; color: #3b261a; line-height: 1.05; pointer-events: none; }
.cal .w { font-size: calc(var(--sw) * .011); color: #a0262c; font-weight: 700; }
.cal .n { font-size: calc(var(--sw) * .032); font-weight: 700; }
.cal .s { font-size: calc(var(--sw) * .0075); }
.weight { position: absolute; left: 4.5%; top: 59%; padding: 1px 6px; background: #f3e6cf; color: #2a1a10; border: 2px solid #6b4a20; border-radius: 3px; font: 700 calc(var(--sw) * .013) "NG Digits", "NG Cyr", "Pixelify Sans"; pointer-events: none; animation: rise2 .4s; }
@keyframes rise2 { from { transform: translateY(10px); opacity: 0; } }
.bellglow { position: absolute; left: 68.5%; top: 70%; width: 10%; height: 17%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 120, .85), rgba(255, 200, 80, 0) 70%); animation: glow 1.4s ease-out forwards; pointer-events: none; }
@keyframes glow { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(2.2); } }

/* осмотр */
.marks { position: absolute; inset: 0; pointer-events: none; }
.mark { position: absolute; border: 3px solid var(--green); border-radius: 5px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .7), 0 0 14px rgba(123, 211, 138, .6); animation: rise2 .3s; }
.mark.hint { border: 3px dashed var(--brass); box-shadow: 0 0 18px rgba(233, 181, 74, .8); animation: blink 1s steps(2) infinite; }
.ripple { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid #fff; border-radius: 50%; animation: ripple .5s forwards; pointer-events: none; }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.inset { position: absolute; inset: 0; background: rgba(6, 4, 8, .82); display: grid; place-items: center; animation: fade .3s; }
.inset img { max-height: 86%; max-width: 64%; border: 3px solid var(--brass); border-radius: 4px; background: #1a1220; }
@keyframes fade { from { opacity: 0; } }
.ctime { position: absolute; width: 18.6%; height: 3.6%; display: grid; place-items: center; font: 700 calc(var(--sw) * .014) "NG Digits", "NG Cyr", "Pixelify Sans"; color: #2a1a10; pointer-events: none; }

/* «Ранее в…», титул */
.comic { position: absolute; inset: 0; background: rgba(8, 5, 10, .94); display: flex; flex-direction: column; padding: 2.5% 3%; padding-top: max(2.5%, var(--tagtop)); gap: 2%; }
.comic h3 { margin: 0; font: 700 calc(var(--sw) * .024) "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--brass); text-align: center; }
.comic .row { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5%; min-height: 0; }
.cp { background: #241a2b; border: 3px solid var(--brass); border-radius: 4px; display: flex; flex-direction: column; overflow: hidden; opacity: 0; animation: comicIn .4s forwards; }
.cp img { flex: 1; min-height: 0; width: 100%; object-fit: cover; background: #120d16; }
.cp img.sq { object-fit: contain; }
.cp div { padding: 3px 6px; font: calc(var(--sw) * .014 + 2px) "NG Digits", "NG Cyr", "Pixelify Sans"; text-align: center; background: #f3e6cf; color: #2a1a10; }
@keyframes comicIn { from { opacity: 0; transform: translateY(14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
.title-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 7%; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .75)); }
.title-card h1 { margin: 0; font: 700 calc(var(--sw) * .062) "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--brass); text-shadow: 4px 4px 0 #6b1418, 0 0 24px rgba(255, 200, 90, .5); animation: rise2 .6s; }
.title-card p { margin: 4px 0 0; font: calc(var(--sw) * .02) "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--ink); }

/* ─── актёры: выезжают слева/справа ─── */
.actor { position: absolute; z-index: 8; pointer-events: none; transition: transform .32s var(--ease), opacity .25s; opacity: 0; }
.actor img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 0 12px rgba(0, 0, 0, .7)); transition: filter .2s; }
#actL { transform: translateX(-115%); }
#actR { transform: translateX(115%); }
#actL.in, #actR.in { transform: none; opacity: 1; }
.actor.dim img { filter: brightness(.42) saturate(.7) drop-shadow(0 0 12px rgba(0, 0, 0, .7)); }
.actor.bump { animation: bump .28s; }
@keyframes bump { 40% { transform: translateY(-4%) scale(1.03); } }
.landscape .actor { width: calc(var(--sh) * .62); height: calc(var(--sh) * .62); bottom: calc(var(--below) + var(--sh) * .17); }
.landscape #actL { left: calc(var(--sx) + var(--sw) * .005); }
.landscape #actR { right: calc(var(--right) + var(--sw) * .005); }
.portrait .actor { width: min(56vw, calc(var(--V) - var(--sb) - 150px)); height: min(56vw, calc(var(--V) - var(--sb) - 150px)); bottom: 112px; }
.portrait #actL { left: -2vw; } .portrait #actR { right: -2vw; }

/* ─── окно диалога ─── */
.dlg { position: absolute; z-index: 10; padding: .7em 1em 1.1em; background: rgba(13, 9, 16, .95); border: 3px solid var(--brass); border-radius: 6px; box-shadow: inset 0 0 0 2px #000, 0 6px 24px rgba(0, 0, 0, .7); cursor: pointer;
  opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .2s, transform .28s var(--ease); }
.dlg.on { opacity: 1; transform: none; pointer-events: auto; }
.dlg.on.under { opacity: 0; pointer-events: none; transform: translateY(18px); }
.landscape .dlg { left: calc(var(--sx) + var(--sw) * .025); width: calc(var(--sw) * .95); bottom: calc(var(--below) + var(--sh) * .03); min-height: calc(var(--sh) * .2); }
.portrait .dlg { left: 8px; right: 8px; bottom: 8px; min-height: 108px; }
.dlg .nm { position: absolute; top: -1.25em; left: 14px; background: var(--brass); color: #1a1000; padding: 1px 10px; font: 700 .95em "NG Digits", "NG Cyr", "Pixelify Sans"; border-radius: 3px; box-shadow: 0 2px 0 #000; }
.dlg.sR .nm { left: auto; right: 14px; background: #d9d2c2; }
.dx { font: 1.08em/1.36 "NG Digits", "NG Cyr", "Pixelify Sans"; white-space: pre-wrap; }
.dlg.narr .dx { font: italic 1.04em/1.4 "PT Serif", serif; color: #e6d8c0; }
.tell { color: var(--muted); font-style: italic; font-size: .9em; margin-top: 3px; }
.dmore { position: absolute; right: 12px; bottom: 4px; color: var(--brass); opacity: 0; font: .8em "NG Digits", "NG Cyr", "Pixelify Sans"; }
.dlg.ready .dmore { opacity: 1; animation: blink 1s steps(2) infinite; }
.dact { display: none; }
.dlg.acts { cursor: default; }
.dlg.acts .dact { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: .55em; }
.dhead { font: .85em "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--muted); margin-right: auto; display: flex; gap: 6px; align-items: center; }
.da { padding: .35em .8em; font-size: .92em; }
.da.gold { background: #6b4a12; border-color: var(--brass); }
@keyframes blink { 50% { opacity: .2; } }

/* ─── меню выбора ─── */
.menu { position: absolute; z-index: 12; opacity: 0; pointer-events: none; transition: opacity .2s, transform .28s var(--ease); }
.menu.on { opacity: 1; pointer-events: auto; transform: none !important; }
.menu.multi { background: rgba(15, 10, 18, .95); border: 3px solid var(--brass); border-radius: 6px; padding: .7em; display: flex; flex-direction: column; gap: .45em; overflow: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .75); }
.landscape .menu.multi { left: calc(var(--sx) + var(--sw) * .16); width: calc(var(--sw) * .68); top: max(calc(var(--sy) + var(--sh) * .06), calc(var(--hud) + 6px)); max-height: calc(var(--sy) + var(--sh) * .96 - max(calc(var(--sy) + var(--sh) * .06), calc(var(--hud) + 6px))); transform: translateY(24px); }
.portrait .menu.multi { left: 8px; right: 8px; bottom: 8px; max-height: calc(var(--V) - var(--sb) - 16px); transform: translateY(40px); }
.menu.single { transform: translateX(40px); }
.landscape .menu.single { right: calc(var(--right) + var(--sw) * .03); bottom: calc(var(--below) + var(--sh) * .25); }
.portrait .menu.single { right: 8px; top: calc(var(--sb) + 10px); }
.mh { font: 700 1em "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--brass); }
.mo { display: flex; flex-direction: column; gap: .4em; }
.menu.grid .mo { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5em, 1fr)); }
button.opt { text-align: left; font-size: 1em; padding: .5em .75em; display: flex; align-items: center; gap: .6em; line-height: 1.25; }
button.opt:hover:not(:disabled) { border-color: var(--brass); }
button.opt .sub { display: block; color: var(--muted); font-size: .78em; }
button.opt img { width: 2em; height: 2em; object-fit: contain; flex: none; }
button.opt.main { background: var(--red); border-color: #e45a62; justify-content: center; text-align: center; }
button.opt.gold { background: #6b4a12; border-color: var(--brass); }
button.opt.small { font-size: .88em; padding: .4em .7em; }
.menu.single button.opt { font-size: 1.1em; padding: .6em 1.2em; animation: nudge 1.6s ease-in-out infinite 1s; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
.passcard { padding: .45em .7em; background: #efe2c6; color: #2a1a10; border-radius: 3px; border: 2px solid #8b6a3a; font-size: .82em; line-height: 1.3; }
.passcard b { font-family: "NG Digits", "NG Cyr", "Pixelify Sans"; color: #8b1e24; }
.passcard i { font-style: normal; color: #7a5a3a; }
.poll { display: flex; flex-direction: column; gap: 5px; }
.bar { position: relative; padding: .35em .7em; border: 2px solid var(--line); border-radius: 4px; overflow: hidden; font-family: "NG Digits", "NG Cyr", "Pixelify Sans"; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(233, 181, 74, .28); width: 0; transition: width .9s; }
.bar span { position: relative; } .bar b { position: relative; float: right; }
.bar.mine { border-color: var(--brass); }

/* ─── панель инструментов осмотра ─── */
.tools { position: absolute; z-index: 9; display: flex; gap: 6px; align-items: flex-end; opacity: 0; pointer-events: none; transform: translateY(24px); transition: opacity .2s, transform .28s var(--ease); }
.tools.on { opacity: 1; pointer-events: auto; transform: none; }
.landscape .tools { left: calc(var(--sx) + var(--sw) * .012); bottom: calc(var(--below) + var(--sh) * .02); }
.portrait .tools { left: 8px; right: 8px; top: calc(var(--sb) + 10px); justify-content: center; flex-wrap: wrap; }
.tb { width: max(52px, calc(var(--fs) * 3.7)); height: max(52px, calc(var(--fs) * 3.7)); padding: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: rgba(28, 20, 33, .94); }
.portrait .tb { width: 64px; height: 64px; }
.tb img { width: 62%; height: 52%; object-fit: contain; }
.tb span { font-size: 1.35em; line-height: 1; color: var(--brass); }
.tb em { font: normal .7em "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--ink); white-space: nowrap; }
.tb.prog { cursor: default; box-shadow: none; border-style: dashed; }
.tb.prog span { color: var(--green); font-size: 1.1em; }
.tb.hold { background: #1d3150; border-color: var(--blue); touch-action: none; }
.tb.hold.on { background: #2e4f80; transform: translateY(2px); }
.tb.tool:not(:disabled):not(.used) { background: #6b4a12; border-color: var(--brass); animation: glowp 1.4s ease-in-out infinite; }
.tb.done:not(:disabled) { background: var(--red); border-color: #e45a62; animation: glowp 1.4s ease-in-out infinite; }
.tb.done span { color: #fff; }
@keyframes glowp { 50% { box-shadow: 0 0 16px rgba(233, 181, 74, .8), 0 2px 0 #000; } }

/* заметка деда */
.note { position: absolute; z-index: 11; display: flex; gap: .6em; align-items: center; background: rgba(13, 9, 16, .94); border: 2px solid var(--brass); border-radius: 6px; padding: .4em .7em; opacity: 0; transform: translateY(-14px); transition: opacity .2s, transform .28s var(--ease); pointer-events: none; font: .98em/1.3 "NG Digits", "NG Cyr", "Pixelify Sans"; }
.note.on { opacity: 1; transform: none; }
.note img { width: 2.6em; height: 2.6em; object-fit: cover; object-position: top; border-radius: 3px; background: #2a1f33; flex: none; }
.landscape .note { left: calc(var(--sx) + var(--sw) * .2); width: calc(var(--sw) * .6); top: max(calc(var(--sy) + var(--sh) * .1), calc(var(--hud) + 34px)); }
.portrait .note { left: 8px; right: 8px; bottom: 8px; }
.portrait .note:not(.on) { transform: translateY(14px); }
.panbtn { position: absolute; top: 50%; width: 38px; height: 64px; margin-top: -32px; pointer-events: auto; z-index: 3; background: rgba(13, 9, 16, .8); border: 2px solid var(--brass); color: var(--brass); font: 700 22px "NG Digits", "NG Cyr", "Pixelify Sans"; cursor: pointer; animation: rise2 .3s; }
.panbtn.l { left: 4px; border-radius: 0 6px 6px 0; } .panbtn.r { right: 4px; border-radius: 6px 0 0 6px; }

/* ─── рабочая панель (противоречие) ─── */
.work { position: absolute; z-index: 13; background: rgba(18, 12, 22, .97); border: 3px solid var(--brass); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; transform: translateX(110%); transition: transform .32s var(--ease), visibility 0s .32s; visibility: hidden; box-shadow: -10px 0 40px rgba(0, 0, 0, .7); font-size: .92em; }
.work.on { transform: none; visibility: visible; transition: transform .32s var(--ease); }
.landscape .work { top: calc(var(--hud) + 6px); bottom: 8px; right: 8px; width: min(880px, calc(var(--W) * .84)); }
.portrait .work { top: calc(var(--hud) + 6px); bottom: 8px; left: 8px; right: 8px; }
.wh { display: flex; align-items: center; gap: 10px; }
.wh h2 { margin: 0; font: 700 1.2em "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--brass); flex: 1; }
.wmsg { display: flex; gap: 8px; align-items: center; min-height: 2.8em; padding: 4px 8px; background: #0f0a12; border: 2px solid var(--line); border-radius: 4px; font: 1em/1.3 "NG Digits", "NG Cyr", "Pixelify Sans"; }
.wmsg img { width: 2.6em; height: 2.6em; object-fit: cover; object-position: top; flex: none; }
.cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cols > div { display: flex; flex-direction: column; min-height: 0; }
.cols h4 { margin: 0 0 4px; font: 700 .95em "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--brass); }
.portrait .cols { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
.list { flex: 1; min-height: 0; overflow: auto; border: 2px solid var(--line); border-radius: 4px; padding: 3px; background: #160f1a; }
.wf { display: flex; gap: 6px; flex-wrap: wrap; }
.wf .main { flex: 1; min-width: 12em; }
.it { display: flex; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 3px; cursor: pointer; font-size: .92em; line-height: 1.28; border: 2px solid transparent; position: relative; }
.it:hover { background: #241a2b; }
.it.sel { background: #3d2a10; border-color: var(--brass); }
.it img { width: 2.6em; height: 2.6em; object-fit: cover; flex: none; border-radius: 3px; }
.it .who { font-family: "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--brass); font-size: .9em; }
.it .src { color: var(--muted); font-size: .75em; }
.it.today { box-shadow: inset 3px 0 0 var(--blue); }
.it.cat { background: #2b2315; border-color: #8a7040; padding-right: 52px; }
.it.cat::after { content: ""; position: absolute; right: 4px; top: 50%; width: 44px; height: 13px; margin-top: -7px; background: url(art/sprite-cat.png) 0 0 / 300% 100% no-repeat; image-rendering: pixelated; }

/* ─── панели поверх сцены (журнал, доска, чемоданчик, меню, итоги) ─── */
.ov { position: absolute; inset: 0; z-index: 30; background: rgba(4, 2, 6, .5); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; padding: calc(var(--hud) + 6px) 8px 8px; }
.ov.on { opacity: 1; pointer-events: auto; }
.ovbox { position: relative; background: rgba(28, 20, 33, .98); border: 3px solid var(--brass); border-radius: 8px; width: min(940px, 100%); max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 12px 50px rgba(0, 0, 0, .8); font-size: .92em; }
.ov.on .ovbox.up { animation: ovUp .3s var(--ease); }
.ov.on .ovbox.side { animation: ovSide .3s var(--ease); }
.ov.on .ovbox.nofx { animation: none; }
.ovbox.side { margin-left: auto; width: min(760px, 100%); align-self: stretch; }
@keyframes ovUp { from { transform: translateY(40px); opacity: 0; } }
@keyframes ovSide { from { transform: translateX(60px); opacity: 0; } }
.ovin { overflow: auto; padding: 12px 16px 16px; }
.ovbox h2 { font: 700 1.35em "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--brass); margin: 0 30px 8px 0; }
.ovbox h3 { font: 700 1.05em "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--brass); margin: 12px 0 6px; }
.ovbox p { margin: 6px 0; }
.sub2 { color: var(--muted); font-size: .9em; }
.ovx { position: absolute; right: 6px; top: 4px; z-index: 2; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; box-shadow: none; }
.big { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr; gap: 16px; align-items: start; }
.big img { width: 100%; border: 3px solid var(--brass); border-radius: 4px; background: #120d16; }
.pre { white-space: pre-wrap; }
.tabs { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.tabs button { padding: 3px 12px; }
.tabs button.on { border-color: var(--brass); color: var(--brass); }
.evgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.evc { background: #160f1a; border: 2px solid var(--line); border-radius: 4px; padding: 4px; cursor: pointer; text-align: center; font: 12.5px/1.25 "NG Digits", "NG Cyr", "Pixelify Sans"; }
.evc:hover { border-color: var(--brass); }
.evc img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; display: block; margin-bottom: 4px; }
.evc .st { display: block; font-size: 11px; color: var(--muted); }
.evc .st.used { color: var(--green); }
.stl { border-left: 3px solid var(--line); padding: 3px 10px; margin: 6px 0; font-size: .95em; }
.stl .who { font-family: "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--brass); }
.stl .src { color: var(--muted); font-size: .8em; }
.stl.own { border-left-color: var(--brass); }
.stl.used { border-left-color: var(--green); }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 10px; background: var(--leather); border: 3px solid var(--leather2); border-radius: 6px; }
.kslot { aspect-ratio: 1; border: 2px dashed var(--leather2); border-radius: 6px; background: #1a120c; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; text-align: center; font: 11.5px/1.2 "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--leather2); }
.kslot span { font-size: 26px; }
.kslot.full { border-style: solid; border-color: var(--brass); color: var(--ink); cursor: pointer; }
.kslot img { width: 70%; height: 62%; object-fit: contain; }
.kslot.bell img { width: 90%; }
.kdesc { min-height: 2.6em; margin-top: 8px; padding: 6px 10px; background: #0f0a12; border: 2px solid var(--line); border-radius: 4px; font-family: "NG Digits", "NG Cyr", "Pixelify Sans"; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; margin: 6px 0; }

/* доска дела */
.timeline { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tslot { background: #160f1a; border: 2px dashed var(--line); border-radius: 4px; padding: 6px; min-height: 92px; font-size: 12px; line-height: 1.28; }
.tslot .t { font: 700 13px "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--muted); }
.tslot .q { color: var(--muted); }
.tslot.open { border: 2px solid var(--brass); background: #2a1f12; }
.tslot.open .t { color: var(--brass); }
.tslot.ff { opacity: .6; }
.tslot b { display: block; font: 13px "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--ink); margin: 2px 0; }
.tslot .used { color: var(--green); font-size: 11px; margin-top: 3px; }
.tslot.win { min-height: 0; font-size: 15px; animation: rise2 .4s; } .tslot.win b { font-size: 17px; }
.sus { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.susc { background: #160f1a; border: 2px solid var(--line); border-radius: 5px; padding: 6px; text-align: center; font-size: 12.5px; }
.susc img { width: 70%; aspect-ratio: 1; object-fit: cover; object-position: top; background: radial-gradient(circle at 50% 35%, #3a2a48, #1a1220); border-radius: 4px; }
.susc .nm { font: 700 14px "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--brass); }
.susc .ln { text-align: left; margin-top: 3px; }
.susc .ln i { color: var(--muted); font-style: normal; font-size: 11px; display: block; }
.susc.out { opacity: .45; filter: grayscale(1); }
.susc.culprit { border-color: var(--red); box-shadow: 0 0 14px rgba(184, 50, 58, .6); }
.score { font-family: "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--muted); margin-bottom: 8px; }
.score b { color: var(--brass); }

/* доска объявлений */
.pins { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; background: #6b4a2a; padding: 10px; border-radius: 6px; border: 3px solid #3a2414; }
.pin { background: #efe2c6; color: #2a1a10; border-radius: 2px; padding: 8px 6px 6px; font-size: 12px; line-height: 1.3; position: relative; min-height: 110px; box-shadow: 2px 3px 0 rgba(0, 0, 0, .35); animation: rise2 .35s; }
.pin::before { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--red); box-shadow: 0 1px 0 #000; }
.pin.closed { background: #4a3322; color: #a08060; display: grid; place-items: center; text-align: center; font-family: "NG Digits", "NG Cyr", "Pixelify Sans"; }
.pin .by { font: 11px "NG Digits", "NG Cyr", "Pixelify Sans"; color: #8b1e24; margin-top: 4px; }
.pin .q { font: 700 12px "NG Digits", "NG Cyr", "Pixelify Sans"; margin-bottom: 4px; }
.pin.mine { outline: 3px solid var(--brass); }

/* пазл */
.puz { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.puzboard { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); aspect-ratio: 1; max-height: 52vh; background: #2a1d14; border: 3px solid var(--leather2); border-radius: 4px; }
.pslot { border: 1px dashed rgba(233, 181, 74, .3); cursor: pointer; }
.pslot.fill { border: 0; animation: pop .4s; }
.pslot.shake { animation: shake .4s; }
.tray { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pwrap { width: 27%; aspect-ratio: 2 / 3; cursor: pointer; filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, .55)); transition: filter .2s; }
.pwrap.sel { filter: drop-shadow(0 0 3px var(--brass)) drop-shadow(0 0 2px var(--brass)); }
.pwrap.used { visibility: hidden; }
/* двадцатилетняя бумага: желтизна, выцветание, но лицо читается */
.piece, .pslot.fill { width: 100%; height: 100%; image-rendering: pixelated; filter: sepia(.55) saturate(.7) contrast(1.05) brightness(.95); }
.pslot.fill { width: auto; height: auto; }
.evc.cat { border-color: var(--brass); box-shadow: 0 0 0 2px var(--brass); position: relative; }
.evc.cat::after { content: ""; position: absolute; right: 2px; top: 2px; width: 44px; height: 13px; background: url(art/sprite-cat.png) 0 0 / 300% 100% no-repeat; image-rendering: pixelated; }
/* контролька: кадры поверх листа совпадают с увеличенными */
.cframe { position: absolute; overflow: hidden; pointer-events: none; box-shadow: 0 0 0 2px #1d140c inset; }
.cframe img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
.cframe.burn::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 35% 40%, rgba(255, 246, 220, .97), rgba(255, 214, 150, .9) 55%, rgba(200, 120, 60, .75)); }
@keyframes pop { 0% { transform: scale(.4); } 55% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* финал */
.lies { width: 100%; border-collapse: collapse; font-size: 13px; }
.lies td, .lies th { border-bottom: 1px solid var(--line); padding: 5px; text-align: left; vertical-align: top; }
.lies th { font-family: "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--brass); font-weight: 700; }
.debrief div { padding: 2px 0; font-size: 13.5px; }
.debrief b { font-family: "NG Digits", "NG Cyr", "Pixelify Sans"; color: var(--brass); display: inline-block; min-width: 72px; }
.folders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.folder { background: #c9a066; color: #2a1a10; border-radius: 4px 14px 4px 4px; padding: 10px; cursor: pointer; border: 3px solid transparent; font-size: 13px; animation: rise2 .4s; }
.folder b { font-family: "NG Digits", "NG Cyr", "Pixelify Sans"; font-size: 16px; display: block; }
.folder .pc { margin-top: 6px; font: 700 15px "NG Digits", "NG Cyr", "Pixelify Sans"; }
.folder.mine { border-color: var(--red); }

/* тосты */
.toast { position: absolute; z-index: 40; right: 10px; top: calc(var(--hud) + 8px); display: flex; flex-direction: column; gap: 6px; align-items: flex-end; pointer-events: none; }
.toast div { background: rgba(36, 26, 43, .97); border: 2px solid var(--brass); border-radius: 5px; padding: 5px 12px; font: 14px "NG Digits", "NG Cyr", "Pixelify Sans"; display: flex; gap: 8px; align-items: center; animation: toast 2.8s forwards; box-shadow: 0 6px 20px rgba(0, 0, 0, .6); }
.toast img { width: 30px; height: 30px; object-fit: contain; }
@keyframes toast { 0% { transform: translateX(30px); opacity: 0; } 10%, 82% { transform: none; opacity: 1; } 100% { opacity: 0; } }

/* узкие экраны */
@media (max-width: 700px) {
  .hud button .lb { display: none; }
  .hud button { padding: 0 7px; font-size: 13px; }
  .dayline { font-size: 12px; gap: 5px; }
  .steps span { padding: 1px 3px; }
  .steps span:not(.on) { display: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .sus { grid-template-columns: repeat(2, 1fr); }
  .pins { grid-template-columns: repeat(2, 1fr); }
  .big, .puz { grid-template-columns: 1fr; }
  .folders { grid-template-columns: 1fr; }
  .toast { left: 8px; right: 8px; align-items: center; }
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #5b4366; border-radius: 0; }
::-webkit-scrollbar-track { background: #120d16; }

/* «уменьшить движение» в системе */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* журнал: поиск по словам и фильтр по говорящему (02.12, просьба автора) */
.jfilter { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; }
.jq { appearance: none; -webkit-appearance: none; width: 100%; box-sizing: border-box; background: #120c14; color: var(--ink, #f3e6c8); border: 2px solid var(--line); border-radius: 4px; padding: 8px 10px; font: 14px "PT Serif", serif; outline: none; }
.jq:focus { border-color: var(--brass); }
.jq::placeholder { color: var(--muted); }
.jchips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.jchip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 54px; padding: 4px 2px; background: #160f1a; border: 2px solid var(--line); border-radius: 4px; color: var(--muted); font: 11px "NG Digits", "NG Cyr", "Pixelify Sans"; cursor: pointer; }
.jchip img, .jchip i { width: 34px; height: 34px; border-radius: 3px; object-fit: cover; object-position: top; image-rendering: pixelated; display: grid; place-items: center; font-style: normal; font-size: 16px; background: #241a20; }
.jchip span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jchip.on { border-color: var(--brass); color: var(--brass); }
.jbody [hidden] { display: none !important; }
.jnone { color: var(--muted); font-style: italic; }
/* знакомство с журналом: кнопка мигает несколько секунд */
#btnJournal.pulse { animation: jpulse 1s ease-in-out infinite; }
@keyframes jpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 210, 110, 0); } 50% { box-shadow: 0 0 0 4px rgba(255, 210, 110, .85); } }
@media (prefers-reduced-motion: reduce) { #btnJournal.pulse { animation: none; box-shadow: 0 0 0 3px rgba(255, 210, 110, .85); } }

/* 03.12 C16: пока посетитель говорит портретом в будке, его фигурка в окне прячется — один человек в кадре один раз */
.winp { transition: opacity .2s; }
#app:has(#actR.in) .winp { opacity: 0; }
/* 03.12 D23: итог дня для ручного копирования, если браузер не дал буфер */
.sharetxt { width: 100%; font: 15px/1.4 "PT Serif", Georgia, serif; background: #0f0a12; color: var(--ink); border: 2px solid var(--line); border-radius: 4px; padding: 8px; resize: none; user-select: text; -webkit-user-select: text; }
.sub2.demo { margin-top: .6em; font-style: italic; opacity: .85; }

/* 04.12: лупа у улики — текст прямо в журнале противоречия и при предъявлении */
.it.ev { padding-right: 2.4em; }
.it .etx { display: none; white-space: pre-line; color: var(--ink); opacity: .85; font-size: .9em; margin-top: 3px; }
.it.open .etx { display: block; }
.zoom { position: absolute; right: 4px; top: 4px; width: 1.9em; height: 1.9em; padding: 0; border: 2px solid var(--line); border-radius: 3px; background: #160f1a; cursor: pointer; font-size: .85em; line-height: 1; }
.zoom:hover { border-color: var(--brass); }
.it.cat .zoom { right: 52px; }
.evc { position: relative; }
.evc .zoom { top: 6px; right: 6px; }
.evc.open { grid-column: 1 / -1; text-align: left; }
.evc.open img { width: 34%; float: left; margin: 0 8px 4px 0; }
.evc .etx { white-space: pre-line; font: 13px/1.35 "PT Serif", Georgia, serif; margin-top: 4px; }
.evc .pickz { display: block; clear: both; margin-top: 6px; width: 100%; }
/* Маэстро заметнее обычного выбора */
.it.cat, .evc.cat { animation: catpulse 1.2s ease-in-out infinite alternate; }
@keyframes catpulse { from { box-shadow: 0 0 0 0 rgba(233, 181, 74, .0); } to { box-shadow: 0 0 0 3px rgba(233, 181, 74, .55); } }
@media (prefers-reduced-motion: reduce) { .it.cat, .evc.cat { animation: none; box-shadow: 0 0 0 3px rgba(233, 181, 74, .55); } }

/* R3: титул без шапки, завязка, кнопка по центру */
#app.titlemode .hud { visibility: hidden; }
#app.titlemode .title-card { padding-bottom: 15%; }
.title-card .hook { max-width: 34em; margin: 1em auto 0; padding: 0 1em; text-align: center; font-size: calc(var(--sw) * .017); line-height: 1.45; color: #f1e3c4; text-shadow: 0 2px 6px #000; }
#app.titlemode .menu.single { left: 50% !important; right: auto !important; top: auto !important; bottom: calc(var(--below) + var(--sh) * .06) !important; transform: translateX(-50%) !important; }
.sub3 { font-size: .8em; opacity: .7; font-weight: normal; }
#cAns.armed { background: #6b1418; border-color: #e0574e; color: #fff; }
/* R3: подсказка Маэстро отличается от выбранной строки — рамка пунктиром */
.it.cat { outline: 2px dashed #e9b54a; outline-offset: -4px; }
/* R3: на телефоне шапка вопросов компактнее, чтобы все варианты влезали */
.portrait .menu.qs .passcard { font-size: .78em; line-height: 1.3; max-height: 7.5em; overflow: auto; }
.portrait .menu.qs button.opt { padding-top: .45em; padding-bottom: .45em; }

/* ── R4 (04.12, круг 4 скептиков) */
.evc .newb { position: absolute; left: 6px; top: 6px; padding: 0 5px; background: var(--brass); color: #1a1000; border-radius: 3px; font-size: 11px; }
.evc.today { border-color: rgba(233, 181, 74, .7); }
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.castc { display: flex; gap: 10px; align-items: center; padding: 6px; background: #160f1a; border: 2px solid var(--line); border-radius: 4px; }
.castc img { width: 54px; height: 54px; object-fit: cover; object-position: 50% 15%; border-radius: 3px; flex: none; }
.castc b { display: block; color: var(--brass); font-family: "NG Digits", "NG Cyr", "Pixelify Sans"; }
.castc span { font: 13px/1.35 "PT Serif", Georgia, serif; color: var(--ink); }
.wask { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; padding: 6px 8px; background: #2a1212; border: 2px solid #e0574e; border-radius: 4px; }
.wask span { flex: 1; min-width: 12em; }
.it.sel { background: #4a3210; border-color: var(--brass); box-shadow: inset 4px 0 0 var(--brass); position: relative; }
.it.sel::after { content: "✓"; position: absolute; right: 8px; top: 6px; color: var(--brass); font-weight: 700; }
.it:hover:not(.sel) { background: #221828; border-color: #6d5577; }
.it.open .pickz { display: block; margin-top: 6px; width: 100%; }
.guess { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.guess .opt.on { background: #6b4a12; border-color: var(--brass); }
.tb.hold.on { box-shadow: 0 0 0 3px var(--blue), 0 0 14px rgba(120, 170, 255, .6); }
.tb.hold.on em { color: #cfe0ff; }
/* стрелки панорамы — внизу у края, не поверх середины сцены */
.panbtn { top: auto; bottom: 8px; margin-top: 0; width: 34px; height: 44px; opacity: .85; }
/* телефон: крючок и кнопка старта не налезают друг на друга */
#app.portrait.titlemode .title-card { justify-content: center; padding-bottom: 0; }
#app.portrait .title-card .hook { font-size: 15px; }
#app.portrait.titlemode .menu.single { top: calc(var(--sb) + 14px) !important; bottom: auto !important; }
/* телефон: пропуск читается целиком, кнопки допроса крупнее */
#app.portrait .menu.qs .passcard { max-height: none; overflow: visible; font-size: .8em; }
#app.portrait .da { padding: .55em .9em; font-size: 1em; min-height: 40px; }
#app.portrait .title-card h1 { font-size: calc(var(--W) * .085); }
#app.portrait .title-card p { font-size: 13px; }
#app.portrait .title-card .hook { font-size: 15px; max-width: calc(var(--W) - 24px); margin-top: .7em; }

/* R5: меню, выехавшее под палец, первые 0,7 с видно «невзведённым» и не нажимается */
.menu.arming .opt { opacity: .5; filter: saturate(.5); }
.menu .opt { transition: opacity .25s, filter .25s; }

/* R6: выбор в два шага — выделенный вариант и кнопка подтверждения внизу меню */
.menu .opt.pick { outline: 3px solid var(--brass); background: rgba(201, 160, 80, .18); }
.menu .opt.pick::after { content: ' ✓'; }
.menu .confirm { margin-top: .5em; width: 100%; }
/* R6: вкладки «Вещи / Чужие слова» во вечернем журнале, кнопка «слова прошлых дней» */
.cols h4 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ttabs { display: inline-flex; gap: 4px; margin-left: auto; }
.ttabs button { font: inherit; font-size: .85em; color: var(--ink, #e8dcc4); background: #241a2a; border: 2px solid var(--line); border-radius: 4px; padding: 1px 8px; cursor: pointer; }
.ttabs button.on { background: var(--brass); color: #1a1015; border-color: var(--brass); }
.list .more { width: 100%; margin-top: 4px; }
.menu .confirm { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -8px 16px rgba(15, 10, 18, .95); }
