/* «Коробейники»: интерактивная повесть */
.st-cover { background: var(--volga-ink); color: #F6EDD9; overflow: hidden; }
.st-cover__in.no-pic { grid-template-columns: 1fr; }
.st-cover__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-top: 46px; padding-bottom: 46px; }
.st-cover .eyebrow { color: var(--gold-2); }
.st-cover h1 { color: #F3E3C0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1; margin: 6px 0 4px; letter-spacing: .02em; }
.st-cover__sub { font-family: var(--font-read); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--gold-2); margin: 0 0 16px; }
.st-cover p { font-family: var(--font-read); font-size: 1.05rem; line-height: 1.65; color: #E4D9C2; max-width: 56ch; margin: 0 0 14px; }
.st-cover__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.st-cover__meta span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid rgba(244, 196, 118, .35); border-radius: 999px; font-size: .86rem; color: #F1E4C8; }
.st-cover__pic { position: relative; border-radius: 18px 18px 50% 50% / 18px 18px 72px 72px; overflow: hidden; border: 1px solid rgba(228, 196, 118, .45); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); background: #C9A96A; aspect-ratio: 4 / 5; }
.st-cover__pic img { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(.25) contrast(1.02); }
/* подпись держим внутри арки: узкая, по центру и не ниже 26 px от края, иначе углы её обрезают */
.st-cover__pic figcaption { position: absolute; left: 13%; right: 13%; bottom: 0; padding: 30px 0 28px; text-align: center; font-size: .74rem; line-height: 1.4; color: #F6EDD9; background: linear-gradient(transparent, rgba(20, 24, 22, .88) 60%); }
.st-cover__pic figcaption a { color: inherit; }
.st-cover__quote { margin: 0 0 16px; padding-left: 14px; border-left: 2px solid var(--gold); font-family: var(--font-read); font-style: italic; font-size: 1.05rem; line-height: 1.5; color: #F1E4C8; }
.st-cover__quote span { display: block; }
.st-cover__quote cite { display: block; margin-top: 6px; font-style: normal; font-size: .82rem; color: #BFB09A; }

/* Панель состояния */
.st-hud { position: sticky; top: var(--header-h); z-index: 20; background: var(--volga-ink); color: #F6EDD9; border-radius: 16px; margin-top: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px 18px; align-items: center; padding: 10px 16px; box-shadow: 0 8px 24px rgba(13, 40, 51, .22); }
.st-hud__item { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.st-hud__item small { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: #A9B8BC; }
.st-hud__item b { font-weight: 700; font-size: 1.02rem; color: #FFFDF8; white-space: nowrap; }
.st-hud__item.is-late b { color: #F0B4A2; }
#st-goods { display: flex; flex-wrap: wrap; gap: 6px; overflow: hidden; }
.st-good { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 999px; background: rgba(244, 196, 118, .14); font-size: .84rem; color: #F1E4C8; white-space: nowrap; }
.st-good b { font-weight: 700; color: var(--gold-2); }
.st-good.is-out { opacity: .38; text-decoration: line-through; }
.st-clock { display: flex; align-items: center; gap: 10px; }
.st-clock svg { width: 92px; height: 34px; overflow: visible; }
.st-clock path { fill: none; stroke: rgba(244, 196, 118, .35); stroke-width: 1.5; stroke-dasharray: 3 4; }
.st-clock circle { fill: var(--gold-2); }
.st-clock line { stroke: rgba(244, 196, 118, .5); stroke-width: 1.5; }
.st-hud__facts { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: #F1E4C8; white-space: nowrap; }
.st-hud__facts b { color: var(--gold-2); }
.st-hud__facts .ico { color: var(--gold-2); }
.st-hud__facts.is-new { animation: stFlash .9s ease; }
.st-hud .st-s, .st-hud .st-facts__sl { display: none; } /* короткие варианты «Ещё 8 часов» и «2/17» — только на телефоне */
@keyframes stFlash { 0% { transform: scale(1.06); color: #FFFDF8; } 100% { transform: none; } }

/* Сцена и карта */
.st-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; margin-top: 18px; }
.st-scene { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px 26px; box-shadow: 0 10px 30px rgba(36, 29, 22, .07); min-width: 0; }
.st-scene__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.st-ch { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-weight: 700; }
.st-cost { font-size: .8rem; color: var(--muted); padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; }
.st-scene__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.12; margin: 0 0 16px; }
.st-fig { margin: 0 0 18px; border-radius: 14px; overflow: hidden; position: relative; background: var(--paper-2); }
.st-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8.5; object-fit: cover; filter: sepia(.22) contrast(1.02); }
.st-fig.noimg { display: none; }
.st-fig span { position: absolute; right: 0; bottom: 0; left: 0; padding: 18px 10px 6px; font-size: .7rem; color: #F6EDD9; text-align: right; background: linear-gradient(transparent, rgba(20, 24, 22, .7)); }
.st-quote { margin: 0 0 18px; padding: 4px 0 4px 16px; border-left: 3px solid var(--gold); font-family: var(--font-read); font-style: italic; font-size: 1.08rem; line-height: 1.45; color: #3A2E22; }
.st-quote span { display: block; }
.st-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: .8rem; color: var(--muted); }
.st-text p { font-family: var(--font-read); font-size: 1.07rem; line-height: 1.72; margin: 0 0 14px; }
.st-text p:first-child::first-letter { font-family: var(--font-display); font-size: 3.1em; float: left; line-height: .82; padding: 4px 8px 0 0; color: var(--red); }
.st-choices { display: grid; gap: 10px; margin-top: 22px; }
.st-choice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 13px 16px 13px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #FFFDF8; color: var(--ink); font: 600 1rem/1.35 var(--font-ui); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s, background .15s; }
.st-choice small { display: block; margin-top: 2px; font-weight: 500; font-size: .8rem; color: var(--muted); }
.st-choice__k { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); font-weight: 700; font-size: .9rem; }
.st-choice:hover:not([disabled]), .st-choice:focus-visible { border-color: var(--gold); background: #FFF7E6; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(36, 29, 22, .1); outline: none; }
.st-choice:hover:not([disabled]) .st-choice__k { background: var(--gold); color: #FFFDF8; }
.st-choice.is-off { opacity: .5; cursor: not-allowed; }
.st-choice--map { border-style: dashed; }
.st-scene.is-map .st-text { color: var(--muted); }
.st-scene.is-map .st-text p:first-child::first-letter { float: none; font: inherit; color: inherit; padding: 0; }

.st-map { position: sticky; top: calc(var(--header-h) + 76px); min-width: 0; border-radius: 18px; overflow: hidden; background: #E7D9BC; border: 1px solid #C9B48B; box-shadow: 0 14px 34px rgba(36, 29, 22, .14); }
.st-map__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; background: var(--volga-ink); color: #F1E4C8; }
.st-map__bar b { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; letter-spacing: .03em; }
.st-map__bar span { font-size: .76rem; color: #A9B8BC; }
.st-map__zoom { display: flex; gap: 6px; }
.st-map__zoom button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(244, 196, 118, .4); background: transparent; color: #F1E4C8; display: grid; place-items: center; cursor: pointer; }
.st-map__zoom button:hover { background: rgba(244, 196, 118, .16); }
.st-map__zoom .ico { width: 16px; height: 16px; }
#st-svg { display: block; width: 100%; aspect-ratio: 820 / 770; height: auto; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#st-svg.is-drag { cursor: grabbing; }
.st-world { transition: transform .35s ease; }
#st-svg.is-drag .st-world { transition: none; }
.rv { fill: #A7C3C9; }
.rv--line { fill: none; stroke: #A7C3C9; stroke-width: 38; stroke-linecap: round; }
.sand { fill: #EFE3C6; opacity: .85; }
.forest path { fill: #7F8F63; opacity: .5; }
.houses rect { fill: #A98A5A; opacity: .68; }
.streets line { stroke: #6E5634; stroke-width: 2.2; opacity: .5; }
.streets .tract { fill: none; stroke: #6E5634; stroke-width: 3; opacity: .75; }
.streets .ring { fill: none; stroke: #6E5634; stroke-width: 1.8; opacity: .4; }
.bld rect, .bld circle, .bld path { fill: #F3E9D2; stroke: #3A2E22; stroke-width: 1.4; stroke-linejoin: round; }
.bld .yard { fill: #D8C8A4; }
.bld .cross { fill: none; }
.bld .hill { fill: none !important; stroke: #8B7350; stroke-width: 1.2; opacity: .6; stroke-dasharray: 3 3; }
.bld--wall rect { fill: #EFE4CC; }
.bld--rows rect { fill: #EADFC4; }
.sq { fill: #D9CBA8; stroke: #8B7350; stroke-width: 1.2; }
.ferryg line { stroke: #3A2E22; stroke-width: 1.4; opacity: .6; stroke-dasharray: 4 4; }
.ferryg ellipse { fill: #3A2E22; }
.lbl text, .lbl--s { font: 600 15px var(--font-ui); fill: #4A3A2A; letter-spacing: .02em; paint-order: stroke; stroke: #F0E5CC; stroke-width: 4px; stroke-linejoin: round; opacity: .85; }
.lbl .lbl--s { font-size: 13px; font-style: italic; font-weight: 500; }
.cart rect { fill: #F6EDD9; stroke: #8B7350; stroke-width: 1.4; }
.cart__t { font: 30px var(--font-display); fill: #241D16; letter-spacing: .14em; }
.cart__s { font: italic 13px var(--font-read); fill: #5B4A36; }
.rose circle { fill: none; stroke: #5B4A36; stroke-width: 1.2; }
.rose path { fill: #5B4A36; }
.rose text { font: 700 11px var(--font-ui); fill: #241D16; }

.loc { cursor: pointer; outline: none; }
.loc__halo { fill: #C08A2B; opacity: 0; }
.loc.is-open .loc__halo { opacity: .28; animation: stPulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes stPulse { 0% { transform: scale(.75); opacity: .45; } 100% { transform: scale(1.5); opacity: 0; } }
.loc__ring { fill: none; stroke: #FFFDF8; stroke-width: 2.4; }
.loc__dot { fill: #B5341F; stroke: #241D16; stroke-width: 1.2; transition: fill .2s; }
.loc use { color: #FFFDF8; fill: #FFFDF8; pointer-events: none; }
.loc text { font: 700 15px var(--font-ui); fill: #241D16; paint-order: stroke; stroke: #F6EDD9; stroke-width: 4.5px; stroke-linejoin: round; pointer-events: none; transition: fill .2s; }
.loc.is-done .loc__dot { fill: #6F8A5E; }
.loc.is-done text { opacity: .5; font-weight: 600; }
.loc.is-closed { opacity: .42; }
.loc.is-closed .loc__dot { fill: #7B6D5D; }
.loc.is-closed text { display: none; }
.loc.is-open:hover .loc__dot, .loc.is-open:focus-visible .loc__dot { fill: #8E2412; }
.loc.is-open:hover text, .loc.is-open:focus-visible text { fill: #8E2412; }
.loc.is-open:focus-visible .loc__ring { stroke: var(--gold); }
.me circle { fill: #241D16; stroke: #F6EDD9; stroke-width: 1.6; }
.me__head { fill: #C08A2B; stroke: none; }

/* Результаты и послесловие */
.st-results { margin: 20px 0 4px; padding: 16px 18px; border-radius: 14px; background: var(--paper-2); }
.st-results h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.st-results h3 + dl { margin-bottom: 16px; }
.st-results dl { display: grid; grid-template-columns: max-content 1fr; gap: 5px 16px; margin: 0; }
.st-results dt { color: var(--muted); font-size: .92rem; }
.st-results dd { margin: 0; font-weight: 600; font-size: .92rem; }
.st-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.st-facts li { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; line-height: 1.4; }
.st-facts li .ico { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.st-facts li.is-on { color: var(--ink); }
.st-facts li.is-on .ico { color: #4F7A45; }
.st-facts li:not(.is-on) { color: var(--muted); }
.st-truth { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.st-truth li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: .96rem; line-height: 1.5; }
.st-truth b { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: 4px 8px; border-radius: 999px; text-align: center; color: #FFFDF8; }
.st-truth__poem b { background: var(--red); }
.st-truth__hist b { background: var(--volga); }
.st-truth__fict b { background: var(--gold); }

/* Тёмная сцена гибели */
.st-scene__top--dark .st-ch { color: #E8A08F; }
.st-scene__top--dark .st-cost { color: #D8C8B0; border-color: rgba(255, 253, 248, .2); }
.st-scene__title--dark { color: #F6EDD9; }
.st-scene:has(.st-scene__top--dark) { background: #1E1712; border-color: #3A2E22; }
.st-scene:has(.st-scene__top--dark) .st-text p { color: #E4D9C2; }
.st-scene:has(.st-scene__top--dark) .st-text p:first-child::first-letter { color: #E8A08F; }
.st-scene:has(.st-scene__top--dark) .st-quote { color: #F1E4C8; }
.st-scene:has(.st-scene__top--dark) .st-quote cite { color: #BFB09A; }
.st-scene:has(.st-scene__top--dark) .st-choice { background: #2B211A; color: #F6EDD9; border-color: #4A3A2A; }
.st-scene:has(.st-scene__top--dark) .st-choice__k { background: #3A2E22; color: #F6EDD9; }
.st-scene:has(.st-scene__top--dark) .st-choice:hover { background: #3A2E22; border-color: var(--gold); }
.st-scene:has(.st-scene__top--dark) .st-choice:hover .st-choice__k { background: var(--gold); color: #241D16; }

.st-note { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.st-note article { padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.st-note .ico { width: 26px; height: 26px; color: var(--red); }
.st-note h3 { margin: 8px 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.st-note p { margin: 0; font-size: .94rem; line-height: 1.6; color: var(--muted); }
.st-src { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.st-src li { display: flex; gap: 10px; align-items: flex-start; }
.st-src .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
.st-src a { color: var(--volga); }
.st-src a:hover { color: var(--red); }

@media (max-width: 1020px) {
  .st-layout { grid-template-columns: 1fr; }
  .st-map { position: static; }
  .st-cover__in { grid-template-columns: 1fr; gap: 26px; }
  .st-cover__pic { max-width: 440px; }
  .st-hud { top: var(--header-h); grid-template-columns: auto 1fr auto; }
  .st-hud__facts { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .st-cover__in { padding-top: 30px; padding-bottom: 30px; }
  .st-scene { padding: 18px 16px 20px; }
  /* панель состояния на телефоне: две строки — деньги, время и факты в первой, короб во второй */
  .st-hud { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; }
  .st-hud__item:nth-child(2) { order: 3; flex: 1 1 100%; }
  .st-hud__facts { flex: 1 1 auto; justify-content: flex-end; grid-column: auto; }
  .st-clock svg, .st-hud .st-l, .st-hud .st-facts__l, .st-hud .st-facts__of { display: none; }
  .st-hud .st-s, .st-hud .st-facts__sl { display: inline; }
  .st-hud__facts { flex: 0 0 auto; }
  .st-clock { gap: 6px; }
  .st-good { font-size: .78rem; padding: 3px 8px 3px 6px; }
  .st-text p { font-size: 1.02rem; }
  .st-truth li { grid-template-columns: 1fr; gap: 6px; }
  .st-truth b { justify-self: start; }
  .st-note { grid-template-columns: 1fr; }
  .st-results dl { grid-template-columns: 1fr; gap: 1px; }
  .st-results dd { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .loc.is-open .loc__halo, .st-hud__facts.is-new { animation: none; }
  .st-world { transition: none; }
}

.prose p { font-family: var(--font-read); font-size: 1.03rem; line-height: 1.72; margin: 0 0 12px; }
.h-sm { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin: 0 0 12px; }
