/* Казна 2.0 (docs/KAZNA2.md): лента вкладок, личное предложение, печати, карты, очереди, календарь героя, фонды с
   бесплатной дорожкой, облики дракона, вкладка VIP (shopvip.js), Драконьи яйца удачи поверх экранов (kazna.js).
   Окна светлые: цвета — переменные --w-* окна (css/kod.css «Окна»). Общие правила .sh-* — в css/kod.css; здесь — свои
   и стоя (docs/UI_PLAN.md §3 п. 13, в конце файла: все размеры — под body.vertical, лёжа — прежние) */

/* ——— шапка окна: золото (у Лавки замка — серебро) с «+» — вкладка «Золото» (modal(…, {head})) ——— */
.sh-goldnow {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; margin: 0; padding-block: 0; padding-inline: 12px 5px; box-sizing: border-box;
  border-radius: 20px; border: 2px solid rgba(255, 255, 255, 0.28); background: rgba(10, 14, 22, 0.55); color: #fff;
  font: 700 20px/1 var(--sans); letter-spacing: 0; text-shadow: var(--t-outline); white-space: nowrap; cursor: pointer;
}
.sh-goldnow .sh-plus {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(#8fd060, #4c9a2e); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}
.sh-goldnow:active .sh-plus { transform: translateY(1px); }
.cs-silver { padding-inline-end: 14px; cursor: default; }

/* ——— лента вкладок: одна строка, листается вбок и прилипает к верху окна; за краем есть ещё — край гаснет (не выглядит
   обрезанным); выбранная — оранжевая, посередине ленты (shop.js centerTab) ——— */
.sh-rwrap {
  --rb: #28392f; position: sticky; top: -18px; z-index: 4; flex-shrink: 0; margin: -18px -22px 10px; padding: 0 14px;
  background: linear-gradient(180deg, #40513d 0%, #303f34 100%); border-bottom: 1px solid rgba(220, 184, 105, 0.58);
}
.sh-rwrap::before, .sh-rwrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; z-index: 3; width: 40px; pointer-events: none; opacity: 0; transition: opacity 0.15s;
}
.sh-rwrap::before { left: 0; background: linear-gradient(90deg, var(--rb) 20%, rgba(204, 213, 224, 0)); }
.sh-rwrap::after { right: 0; background: linear-gradient(270deg, var(--rb) 20%, rgba(204, 213, 224, 0)); }
.sh-rwrap.more-l::before, .sh-rwrap.more-r::after { opacity: 1; }
.sh-ribbon { overflow-x: auto; overflow-y: hidden; padding: 14px 8px 8px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.sh-ribbon::-webkit-scrollbar { height: 6px; }
.sh-ribbon::-webkit-scrollbar-thumb { background: #8a99ad; border-radius: 3px; }
.sh-ribbon .sh-tabs { flex-wrap: nowrap; width: max-content; min-width: 100%; margin-bottom: 0; }
.sh-ribbon .q-tab {
  flex-shrink: 0; white-space: nowrap; padding: 8px 14px; border: 1px solid #26362d; border-bottom-color: #1b2922;
  border-radius: 9px 9px 2px 2px; background: linear-gradient(180deg, #53614a 0%, #39483a 58%, #2d3a31 100%);
  color: #f2e5c5; box-shadow: inset 0 1px 0 rgba(255, 244, 207, 0.18), 0 2px 2px rgba(14, 19, 15, 0.28);
  text-shadow: 0 1px 2px rgba(12, 18, 14, 0.8); transition: filter 0.15s ease, transform 0.15s ease;
}
.sh-ribbon .q-tab:hover { filter: brightness(1.12); }
.sh-ribbon .q-tab .hz-badge { z-index: 2; right: -6px; }
.modal .sh-ribbon .q-tab.on { /* выбранная вкладка — тёплая эмаль с золотым кантом */
  border: 1px solid #d8a746; border-bottom-color: #b87527; border-image: none;
  background: linear-gradient(180deg, #f4d27c 0%, #d99a3e 100%); color: #fff8df; font-weight: 700;
  text-shadow: 0 1px 0 rgba(87, 48, 15, 0.88), 0 0 3px rgba(93, 52, 16, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 248, 214, 0.55), 0 2px 0 rgba(60, 38, 17, 0.4);
}
.sh-allbar { display: flex; justify-content: flex-end; margin: -4px 0 8px; }

/* ——— общее ——— */
/* первый показ вкладки ждёт свои картинки (до 0,5 с, kazna.js htmlArtReady; shop.js, shops.js render): ярлык уже выбран,
   а в теле — ещё прежняя вкладка: приглушена (короткое ожидание — без мигания: с задержкой) и касаний не ловит */
.sh-body[data-wait] { pointer-events: none; opacity: 0.45; transition: opacity 0.15s 0.06s; }
.sh-body[data-wait] .lk-pic[data-preview] { pointer-events: none; }
.sh-body:has(> .act-bar) { display: flex; flex-direction: column; } /* полоса кнопок — у низа окна и при коротком */
.sh-body:has(> .act-bar) > * { flex-shrink: 0; }
.sh-body > .act-bar { margin-top: auto; }
.sh-act .sh-done { align-self: center; }
.sh-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.sh-ok, .sh-lk { display: inline-flex; font-style: normal; }
.sh-card .sh-pic { position: absolute; top: 8px; right: 8px; opacity: 0.9; pointer-events: none; }
.sh-card > .sh-art { display: none; } /* картинка набора — только стоя (карточка в одну колонку) */
.sh-card.sh-on { border-color: var(--w-good, #23803e); box-shadow: inset 0 0 0 1px var(--w-good, #23803e); }
.sh-steps.col { flex-direction: column; }
.sh-steps.col .sh-step { justify-content: space-between; gap: 10px; padding: 8px 10px; }
.sh-steps.col .sh-step .sh-loot { flex: 1; }
.sh-step.ready { border: 1px solid var(--w-good, #23803e); background: rgba(35, 128, 62, 0.12); }
.sh-body .empty-state { min-height: 0; padding: 28px 16px; } /* «пусто» во вкладке — над разделами ниже, не на пол-окна */

/* ——— витрина вкладки с одним главным товаром (shop.js heroHtml): картинка, наклейка выгоды, заголовок, награды ——— */
.sh-hero {
  position: relative; display: flex; gap: 18px; align-items: stretch; margin-bottom: 14px; padding: 14px; border-radius: 14px;
  border: 2px solid var(--bronze-l); background: linear-gradient(rgba(192, 138, 62, 0.18), var(--w-well, rgba(0, 0, 0, 0.25)));
}
.sh-hero.sh-gift.ready { box-shadow: 0 0 16px rgba(255, 227, 154, 0.55); }
.sh-banner {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 200px; min-height: 170px;
  border-radius: 12px; background: radial-gradient(circle at 50% 42%, #f6c46a, #b06a1e 58%, #5a3412);
  box-shadow: inset 0 0 0 2px rgba(255, 230, 170, 0.5), inset 0 -30px 40px rgba(40, 20, 6, 0.35);
}
.sh-banner > img:not(.sh-face) { max-width: 92%; max-height: 92%; object-fit: contain; }
.sh-banner .sh-bic { display: flex; filter: drop-shadow(0 4px 6px rgba(40, 20, 6, 0.55)); }
.sh-banner .sh-bic svg, .sh-banner .sh-bic img { width: 110px; height: 110px; }
.sh-face { width: 88px; height: 120px; object-fit: cover; border-radius: 8px; border: 2px solid var(--bronze); }
.sh-banner .sh-face { width: 124px; height: 168px; border: 3px solid #ffe39a; box-shadow: 0 4px 10px rgba(40, 20, 6, 0.5); }
.sh-hbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sh-htitle { font: 700 24px/1.15 var(--sans); color: var(--w-hi, #fff3d0); }
.sh-hbody > p { margin: 0; color: var(--muted); }
.sh-hfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sh-hbtns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; margin-top: 4px; }
.sh-hbtns .btn { flex: 1 1 0; max-width: 330px; }
.sh-modal .sh-card.sh-big { background: linear-gradient(rgba(236, 196, 120, 0.34), var(--w-well, rgba(0, 0, 0, 0.25)) 70%); }
/* наклейка «×N» / «выгода ×N» — кругом в углу картинки (стоя — и у карточки) */
.sh-banner .sh-ratio {
  position: absolute; top: 8px; right: 8px; display: flex; align-items: center; justify-content: center; min-width: 64px; min-height: 64px;
  padding: 4px 8px; box-sizing: border-box; border-radius: 32px; border: 3px solid #ffd25e; text-align: center; white-space: normal;
  background: radial-gradient(circle at 50% 35%, #e8473e, #a3262a 72%); color: #fff; font: 700 17px/1.05 var(--sans);
  text-shadow: var(--t-outline); transform: rotate(-10deg); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}
.sh-free { margin: 6px 0 0; color: var(--w-good, #23803e); font-weight: 700; }
.sh-fav { display: flex; align-items: center; gap: 8px; color: var(--w-accent, #7a4c14); font-weight: 700; }

/* ——— пакеты золота: плитка — кнопка целиком (картинка, сколько золота, полоса цены), «×2» — звездой в углу ——— */
.sh-golds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.sh-gold {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 14px 10px 0;
  overflow: hidden; border-radius: 14px; border: 2px solid #c99a4e; background: linear-gradient(#fff6de, #f2d699); color: #5a3a12;
  box-shadow: 0 3px 0 #a87a36, inset 0 1px 0 rgba(255, 255, 255, 0.85); font: inherit; text-align: center; cursor: pointer;
}
.sh-gold:active { transform: translateY(2px); box-shadow: 0 1px 0 #a87a36; }
.sh-gold:disabled { filter: saturate(0.5); cursor: default; transform: none; }
.sh-gart { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; }
.sh-gart svg, .sh-gart img { max-width: 100%; max-height: 100%; }
.sh-gname { font: 700 17px/1.15 var(--sans); color: #5a3a12; }
.sh-gold .sh-amount {
  display: inline-flex; gap: 6px; padding-block: 3px; padding-inline: 8px 12px; border-radius: 16px; background: rgba(90, 58, 18, 0.88);
  font: 700 20px/1 var(--sans); color: #fff; text-shadow: 0 1px 0 #2e1a06;
}
.sh-gold .sh-note { color: #7a5a2a; }
.sh-price {
  align-self: stretch; display: flex; align-items: center; justify-content: center; height: 44px; margin: auto -10px 0;
  background: linear-gradient(#ffd25e, #ec9a1e); border-top: 2px solid #c47a14; color: #fff; font: 700 20px/1 var(--sans);
  text-shadow: 0 1px 0 rgba(110, 56, 0, 0.85), 0 0 3px rgba(110, 56, 0, 0.7);
}
.sh-x2 { /* звезда «×2» (кругом в css/kod.css — прежняя наклейка) */
  position: absolute; top: 6px; right: auto; inset-inline-end: 6px; z-index: 1; isolation: isolate; display: flex; align-items: center;
  justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 0; background: none; color: #fff;
  font: 700 17px/1 var(--sans); text-shadow: 0 1px 0 #5e1214, 0 0 3px #5e1214; transform: rotate(12deg);
}
.sh-x2::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#ff7a52, #c0221c);
  clip-path: polygon(50% 0%, 67.6% 25.7%, 97.6% 34.5%, 78.5% 59.3%, 79.4% 90.5%, 50% 80%, 20.6% 90.5%, 21.5% 59.3%, 2.4% 34.5%, 32.4% 25.7%);
}

/* ——— товары лавки (и Лавки замка, castle.js shopTile): плитка — ячейка, имя, сколько в сумке, полоса цены (красное
   число — не хватает); касание — окно количества ——— */
.sh-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.sh-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 12px 8px 0;
  overflow: hidden; border-radius: 12px; border: 1px solid #b7c4d4; background: linear-gradient(#f6f9fc, #dde5ee); color: #1f2a38;
  box-shadow: 0 3px 0 #8797ab, inset 0 1px 0 rgba(255, 255, 255, 0.8); font: inherit; text-align: center; cursor: pointer;
}
.sh-tile:active { transform: translateY(2px); box-shadow: 0 1px 0 #8797ab; }
.sh-tic { display: flex; }
.sh-tnm { font: 700 15px/1.2 var(--sans); color: #1f2a38; overflow-wrap: anywhere; }
.sh-tnote { min-height: 1.2em; font-size: 13px; color: #5d6b7c; }
.sh-tpr {
  align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; margin: auto -8px 0;
  background: linear-gradient(#5d87b8, #3d6493); color: #fff; font: 700 18px/1 var(--sans); text-shadow: var(--t-outline);
}
.sh-tile.short .sh-tpr b { padding: 1px 8px; border-radius: 8px; background: #fff; color: #c0221c; text-shadow: none; }
.cs-modal .modal-body > .sh-hint { margin-top: 0; }

/* ——— окно количества (castle.js openQtyBuy) ——— */
.sh-qty { display: flex; flex-direction: column; gap: 14px; }
.sh-qtop { display: flex; gap: 14px; align-items: flex-start; }
.sh-qtop .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sh-qtop .t > b { font: 700 20px/1.2 var(--sans); color: var(--w-hi, #fff3d0); }
.sh-qtop .t > p { margin: 0; color: var(--muted); }
.sh-qtop .sh-btns { margin: 0; }
.sh-qrow { display: flex; align-items: center; gap: 12px; }
.sh-qrange { flex: 1; min-width: 0; accent-color: #e0861a; }
.sh-qn { min-width: 64px; text-align: end; font: 700 22px/1 var(--sans); color: var(--w-hi, #fff3d0); }
.sh-qty .act-bar { margin-top: 0; }

/* ——— разделы «Обликов»: карточки лентой (лёжа — сеткой в три колонки) ——— */
.sh-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }

/* ——— Печати ——— */
.sh-sealbar { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sh-sealbar .bar, .sv-head .bar { height: 10px; border-radius: 5px; background: var(--w-track, rgba(0, 0, 0, 0.45)); overflow: hidden; }
.sh-sealbar .bar i, .sv-head .bar i { display: block; height: 100%; background: linear-gradient(90deg, #c08a3e, #ffe39a); }

/* ——— Календарь героя (витрина — .sh-hero.sh-hcal) ——— */
.sh-cgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sh-cday { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 64px; padding: 6px; border-radius: 8px;
  background: var(--w-well, rgba(0, 0, 0, 0.25)); border: 1px solid var(--w-line, rgba(192, 138, 62, 0.35)); font-size: 12px; }
.sh-cday span { font-weight: 700; color: var(--w-hi, #fff3d0); }
.sh-cday i { font-style: normal; color: var(--muted); line-height: 1.3; }
.sh-cday .ok { position: absolute; top: 4px; right: 4px; }
.sh-cday i svg { vertical-align: -2px; }
.sh-cday.got { opacity: 0.55; }
.sh-cday.cur { border: 2px solid var(--w-good, #23803e); box-shadow: 0 0 10px rgba(35, 128, 62, 0.35); }
.sh-cday.hero { border: 2px solid var(--bronze-l); background: linear-gradient(rgba(236, 196, 120, 0.4), var(--w-well, rgba(0, 0, 0, 0.25))); }

/* ——— Фонды: этап — бесплатно — купленный фонд ——— */
.sh-fund { gap: 4px; }
.sh-fund > .ft { margin-top: 0; } /* покупка — над дорожкой, а не внизу растянутой карточки */
.sh-track { display: flex; flex-direction: column; gap: 4px; }
.sh-frow { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; font-size: 13px; }
.sh-frow.head { color: var(--muted); font-size: 12px; font-weight: 700; }
.sh-frow.reach { background: rgba(35, 128, 62, 0.08); }
.sh-frow .lv { font-weight: 700; color: var(--w-hi, #fff3d0); }
.sh-frow .free, .sh-frow .paid { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sh-fgold { display: inline-flex; align-items: center; gap: 4px; }
.sh-frow .paid b { color: var(--gold); }

/* ——— Облики дракона ——— */
.sh-skin p { color: var(--w-accent, #7a4c14); font-weight: 700; }

/* ——— VIP 2.0 (shopvip.js) ——— */
.sv-head { display: flex; gap: 16px; align-items: center; padding: 12px; margin-bottom: 12px; border-radius: 10px;
  border: 1px solid var(--bronze-l); background: var(--w-well, rgba(0, 0, 0, 0.25)); }
.sv-head .t { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sv-head .t > b { font-size: 18px; color: var(--w-hi, #fff3d0); }
.sv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sv-crown { width: 92px; height: 92px; flex-shrink: 0; border-radius: 46px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; background: radial-gradient(circle at 50% 35%, #ffe39a, #c08a3e 70%); border: 3px solid #5a3a12;
  box-shadow: 0 0 14px rgba(255, 227, 154, 0.55); }
.sv-crown b { font-family: var(--title); font-size: 24px; color: var(--ink); }
.sv-crown.off { filter: grayscale(0.85); box-shadow: none; }
.sv-on { display: flex; align-items: center; gap: 6px; color: var(--w-good, #23803e); font-weight: 700; }
.sv-off { color: var(--w-bad, #c0392b); font-weight: 700; }
.sv-pts { padding: 2px 8px; border-radius: 10px; background: #5a3a12; color: #ffe39a; font-weight: 700; font-size: 13px; white-space: nowrap; }
.sv-act { margin-bottom: 12px; }
.sv-btns { justify-content: flex-start; }
.sv-browse { margin: 6px 0 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--w-line, rgba(192, 138, 62, 0.35)); }
.sv-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sv-nav b { font-family: var(--title); font-size: 20px; color: var(--w-hi, #fff3d0); }
.sv-nav .btn.sq { font-size: var(--fs-btn); }
.sv-eff { margin: 6px 0 10px; padding-left: 20px; columns: 2; font-size: 14px; }
.sv-eff li { break-inside: avoid; margin-bottom: 3px; }
.sv-new { font-style: normal; padding: 0 5px; border-radius: 6px; background: var(--crimson); color: #fff; font-size: 11px; font-weight: 700; }
.sv-how ul { margin: 4px 0; padding-left: 20px; font-size: 14px; }

/* сундук VIP (shopvip.js): своя картинка shop.vip_chest; готов — светится и подпрыгивает (круг 5) */
.sv-box.ready > .sh-pic img { filter: drop-shadow(0 0 8px rgba(255, 220, 100, 0.95)); }
html:not(.kod-still) .sv-box.ready > .sh-pic img { animation: q-chest-hop 1.6s ease-in-out infinite; }

/* ——— Драконьи яйца удачи поверх замка и карты (kazna.js, kazna-03): само яйцо крупно (своя картинка или драконье яйцо
   в гнезде), свет изнутри — за ним, под ним — «мест: N»; падает с неба и покачивается — короткими анимациями из
   kazna.js (между ними слоя нет); касание — дрожит, трескается и гаснет, награда — сундуком «Получено» ——— */
.kz-eggs { position: absolute; z-index: 38; left: calc(var(--sal, 0px) + 10px); bottom: 150px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.kz-egg {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; width: 112px; padding: 0; border: 0; background: none;
  color: #fff3d0; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent;
}
.kz-epic, .kz-cpic { position: relative; display: flex; align-items: center; justify-content: center; width: 104px; height: 104px; transform-origin: 50% 88%; }
.kz-epic .kz-eimg, .kz-cpic .kz-eimg { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(30, 8, 0, 0.55)); }
.kz-glow { position: absolute; inset: 6%; border-radius: 50%; opacity: 0.35; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 214, 110, 0.95) 0, rgba(255, 140, 40, 0.55) 38%, rgba(255, 120, 30, 0) 70%); }
.kz-efb { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.kz-left {
  position: relative; z-index: 2; margin-top: -10px; padding: 3px 10px; border-radius: 12px; white-space: nowrap; font: 700 14px/1.1 var(--sans);
  background: linear-gradient(#7a2a1c, #3a1410); border: 2px solid #ecc478; color: #fff3d0; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.kz-egg:disabled { cursor: default; }
.kz-tap .kz-glow { opacity: 1; }
html:not(.kod-still) .kz-crack .kz-epic, html:not(.kod-still) .kz-crack .kz-cpic { animation: kz-crack 0.42s ease-in forwards; }
@keyframes kz-crack { 0% { transform: scale(1); filter: brightness(1); } 45% { transform: scale(1.18) rotate(-6deg); filter: brightness(1.8); } 100% { transform: scale(1.5); opacity: 0; filter: brightness(2.4); } }
/* «Для вас»: яйцо карточкой — картинка, «от лорда», мест, «Взять»; нет яиц — яйцо и строка, откуда оно */
.sh-eggs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.sh-egg {
  display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--bronze-l);
  background: linear-gradient(90deg, rgba(122, 42, 28, 0.22), rgba(255, 214, 110, 0.18));
}
.sh-egg.none { background: var(--w-well, rgba(0, 0, 0, 0.2)); border-color: var(--w-line, rgba(192, 138, 62, 0.35)); margin-bottom: 12px; }
.sh-egg.none .kz-cpic { filter: saturate(0.7); }
.sh-egg .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sh-egg .t b { color: var(--w-hi, #fff3d0); font-size: max(15px, var(--fs-sub)); }
.sh-egg .t i { font-style: normal; color: var(--w-accent, #7a4c14); font-weight: 700; }

/* облик дракона в окне дракона (dragon.js dragonPic): окрас вместо стадии, броня — накладкой */
.dg-pic { position: relative; flex: none; width: 200px; height: 200px; }
.dg-pic .dg-over { position: absolute; left: 0; top: 0; }
.dg-head .dg-skins { align-self: flex-start; }

/* VIP неактивен — плашка в шапке замка серая (city.js) */
.pill.vipb.off { filter: grayscale(0.9) brightness(0.85); }

/* ——— Казна 2.0, часть 2: облики (shoplooks.js; рамки, титулы, пузыри — js/looks.js, цвета — ensureCss) ——— */
.lk-card .lk-eff { color: var(--w-accent, #7a4c14); font-weight: 700; font-size: 13px; }
.lk-card .ft { flex-wrap: wrap; }
.lk-pic { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; }
.lk-prev { display: flex; flex-direction: column; gap: 10px; }
.lk-prev-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; min-height: 140px; }
.lk-prev-ava { position: relative; display: inline-block; flex-shrink: 0; border-radius: 12px; background: #1d2738 center / cover no-repeat; }
.lk-prev-bb { display: inline-block; padding: 4px 8px; border-radius: 10px; font-size: 12px; }
.lk-pic .lk-prev-bb { padding: 2px 5px; font-size: 10px; white-space: nowrap; }
.lk-prev-face { border-radius: 8px; border: 2px solid var(--bronze); }
.lk-prev .cht-msg { max-width: 380px; }
.lk-prev-name { font-size: 18px; }
.lk-ring, .cht-msg.lk-mf .cht-ava { position: relative; }
.lk-title { display: inline-flex; align-items: center; gap: 3px; margin: 0 4px; padding: 0 6px; border-radius: 8px; font-style: normal;
  font-size: 11px; font-weight: 700; line-height: 18px; white-space: nowrap; color: #7a4c14;
  background: rgba(255, 243, 208, 0.9); border: 1px solid rgba(122, 76, 20, 0.35); }
.lk-title.lk-fav { color: #a3262a; }
.lk-title .lk-tic { width: 14px; height: 14px; }
.hud .pill.who .lk-title { font-size: 10px; line-height: 16px; }
.lk-gear { width: 100%; height: 100%; object-fit: contain; }

/* ——— пропуск сезона (shoppass.js) ——— */
.ps-head { display: flex; gap: 16px; align-items: center; padding: 12px; margin-bottom: 12px; border-radius: 10px;
  border: 1px solid var(--bronze-l); background: var(--w-well, rgba(0, 0, 0, 0.25)); }
.ps-head .t { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ps-head .bar { height: 10px; border-radius: 5px; background: var(--w-track, rgba(0, 0, 0, 0.45)); overflow: hidden; }
.ps-head .bar i { display: block; height: 100%; background: linear-gradient(90deg, #c08a3e, #ffe39a); }
.ps-head .ft { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-crest { width: 84px; height: 84px; flex-shrink: 0; border-radius: 42px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: radial-gradient(circle at 50% 35%, #ffe39a, #c08a3e 70%); border: 3px solid #5a3a12; }
.ps-crest b { font-family: var(--title); font-size: 28px; line-height: 1; color: var(--ink); }
.ps-crest span { font-size: 12px; color: var(--ink); }
.ps-buy .ft, .ps-top .ft { flex-wrap: wrap; }
.ps-track { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.ps-row { display: grid; grid-template-columns: 48px 1fr 1fr; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; font-size: 13px; }
.ps-row.head { color: var(--muted); font-weight: 700; font-size: 12px; }
.ps-row.reach { background: rgba(35, 128, 62, 0.08); }
.ps-row.next { box-shadow: inset 0 0 0 1px var(--bronze-l); }
.ps-row .lv { font-weight: 700; text-align: center; color: var(--w-hi, #fff3d0); }
.ps-row .free, .ps-row .paid { position: relative; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 30px; }
.ps-row .paid { padding: 2px 4px; border-radius: 6px; background: rgba(192, 138, 62, 0.1); }
.ps-look b { color: var(--w-accent, #7a4c14); }
.ps-warn { margin: 6px 0; color: var(--bad); font-size: 13px; font-weight: 700; }

/* ——— Кузница в Казне (shopforge.js) ——— */
.fg-odds { display: flex; flex-wrap: wrap; gap: 4px; }
.fg-odd { padding: 1px 6px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; background: var(--rc, #9aa3ad); }
.fg-chest .ft { flex-wrap: wrap; }

@media (max-width: 760px) {
  .sh-cgrid { grid-template-columns: repeat(3, 1fr); }
  .sh-frow { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); }
  .sv-eff { columns: 1; }
  .ps-row { grid-template-columns: 34px 1fr 1fr; }
}

/* ═══════════ стоя (docs/UI_PLAN.md §3 п. 13): крупнее, в одну колонку, главное — под пальцем ═══════════
   @media (max-width: 760px) в css/kod.css ставит .sh-grid в две колонки на любом телефоне — стоя перебито здесь */
body.vertical .sh-goldnow { height: 56px; gap: 8px; padding-inline: 14px 6px; border-radius: 28px; font-size: 28px; }
body.vertical .sh-goldnow .sh-plus { width: 42px; height: 42px; border-radius: 10px; }
body.vertical .sh-goldnow :is(svg, img.ico-art) { width: 34px; height: 34px; }
body.vertical .cs-silver { padding-inline-end: 18px; }

/* лента: вкладка 168×92, надпись 22 жирная в две строки; полосы прокрутки нет — листают пальцем */
body.vertical .sh-rwrap { --rb: #d3dce6; top: -14px; margin: -14px -14px 12px; padding: 0 6px; }
body.vertical .sh-rwrap::before { background: linear-gradient(90deg, var(--rb) 20%, rgba(211, 220, 230, 0)); }
body.vertical .sh-rwrap::after { background: linear-gradient(270deg, var(--rb) 20%, rgba(211, 220, 230, 0)); }
body.vertical .sh-ribbon { padding: 16px 8px 10px; scrollbar-width: none; }
body.vertical .sh-ribbon::-webkit-scrollbar { display: none; }
body.vertical .sh-ribbon .sh-tabs { gap: 10px; }
body.vertical .sh-ribbon .q-tab {
  display: inline-flex; align-items: center; justify-content: center; min-width: 168px; max-width: 240px; height: 92px;
  padding: 6px 14px; box-sizing: border-box; border-radius: 14px 14px 10px 10px; white-space: normal; text-align: center;
  font: 700 22px/1.1 var(--sans); letter-spacing: 0; font-variant: normal; text-transform: none; text-shadow: var(--t-outline);
}
body.vertical .modal .sh-ribbon .q-tab.on { text-shadow: 0 2px 0 rgba(110, 56, 0, 0.85), 0 0 3px rgba(110, 56, 0, 0.7); }
body.vertical .sh-ribbon .q-tab .hz-badge { top: -10px; right: auto; inset-inline-end: -6px; }

/* текст: подсказки, заметки, «сделано» — не мельче 16 (§2.1) */
body.vertical .sh-hint { font-size: var(--fs-min); line-height: 1.35; margin: 4px 0 12px; }
body.vertical .sh-note { font-size: var(--fs-min); }
body.vertical .sh-done { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-min); font-weight: 700; }
body.vertical .sh-test { font-size: var(--fs-min); }
body.vertical .sh-fav, body.vertical .sh-free { font-size: var(--fs-min); }
body.vertical .sh-loot { gap: 8px 10px; font-size: var(--fs-min); }
body.vertical .sh-body .ic-cell, body.vertical .sh-body .ic-cell.ic-s { --ic: 100px; } /* ячейки наград — 100 (круг 5: «мелкие предметы» → крупнее, ориентир — Сумка) */
body.vertical .sh-body .ic-row { gap: 8px; }

/* карточки — в одну колонку: картинка слева, содержимое справа, «×N» — круглой наклейкой 80 в углу, цена — золотой
   кнопкой 200×64 */
body.vertical .sh-grid, body.vertical .sh-grid.two, body.vertical .sh-grid.three, body.vertical .sh-grid.four {
  grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px;
}
body.vertical .sh-card { padding: 16px; gap: 10px; border-radius: 14px; }
body.vertical .sh-card .hd { align-items: center; }
body.vertical .sh-card .hd b { font: 700 26px/1.15 var(--sans); }
body.vertical .sh-card p { font-size: var(--fs-min); line-height: 1.35; }
body.vertical .sh-card .ft { gap: 10px 12px; }
body.vertical .sh-card:has(> .sh-art, > .sh-pic) {
  display: grid; grid-template-columns: 184px minmax(0, 1fr); column-gap: 16px; row-gap: 10px; align-content: start;
}
body.vertical .sh-card:has(> .sh-art, > .sh-pic) > * { grid-column: 2; }
body.vertical .sh-card > :is(.sh-art, .sh-pic) {
  position: static; grid-column: 1; grid-row: 1 / span 3; align-self: start; display: flex; align-items: center; justify-content: center;
  width: 184px; height: 184px; border-radius: 16px; opacity: 1; background: radial-gradient(circle at 50% 40%, #f2b75a, #a8641c 62%, #6a3c14);
  box-shadow: inset 0 0 0 2px rgba(255, 230, 170, 0.5);
}
/* только сама картинка карточки (kazna-01: правило задевало и угловую метку ячейки — наковальня закрывала сундук) */
body.vertical .sh-card > :is(.sh-art, .sh-pic) > :is(svg, img) { width: 156px; height: 156px; object-fit: contain; }
body.vertical .sh-card:has(> .sh-art, > .sh-pic) > :is(.ft, .sh-track) { grid-column: 1 / -1; }
body.vertical .sh-card:has(.hd .sh-ratio) .hd { padding-inline-end: 78px; }
body.vertical .sh-card:has(.hd .sh-ratio) > .hd + :is(p, .sh-loot) { padding-inline-end: 64px; }
body.vertical .sh-card .hd .sh-ratio, body.vertical .sh-banner .sh-ratio {
  position: absolute; top: -10px; right: auto; inset-inline-end: -8px; z-index: 2; display: flex; align-items: center; justify-content: center;
  min-width: 80px; max-width: 132px; min-height: 80px; padding: 4px 8px; box-sizing: border-box; border-radius: 40px; border: 3px solid #ffd25e;
  background: radial-gradient(circle at 50% 35%, #e8473e, #a3262a 72%); color: #fff; font: 700 22px/1.05 var(--sans);
  text-align: center; white-space: normal; text-shadow: var(--t-outline); transform: rotate(-10deg); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}
body.vertical .sh-banner .sh-ratio { top: 12px; inset-inline-end: 12px; font-size: 22px; }
body.vertical .sh-card .ft .sh-buy { min-width: 200px; height: 72px; font-size: var(--fs-btn); border-radius: 14px; } /* круг 5: под палец — не ниже 72 (≈ 41 px экрана) */

/* витрина: картинка во всю ширину, заголовок 32, награды 80, главная кнопка 280×80 — внизу окна */
body.vertical .sh-hero { flex-direction: column; gap: 14px; padding: 0 0 18px; margin-bottom: 16px; border-radius: 16px; }
body.vertical .sh-banner { width: auto; min-height: 0; height: 240px; border-radius: 14px 14px 0 0; }
body.vertical .sh-banner .sh-bic svg, body.vertical .sh-banner .sh-bic img { width: 150px; height: 150px; }
body.vertical .sh-banner .sh-face { width: 156px; height: 212px; }
body.vertical .sh-hbody { gap: 10px; padding: 0 18px; }
body.vertical .sh-htitle { font-size: 32px; }
body.vertical .sh-hbody > p { font-size: var(--fs-min); line-height: 1.35; }
body.vertical .sh-act .btn.cta { min-width: 280px; }
body.vertical .sh-hbtns { gap: 12px 16px; margin-top: 8px; }
body.vertical .sh-hbtns .btn.cta { font-size: var(--fs-btn); } /* две кнопки в ширину витрины — надпись в одну строку */
body.vertical .sh-act .sh-done { font-size: 22px; }

/* подарок первой покупки рядом с личным предложением */
body.vertical .sh-first { gap: 16px; padding: 16px; border-radius: 14px; }
body.vertical .sh-first .t b { font: 700 24px/1.15 var(--sans); }
body.vertical .sh-first .t span { font-size: var(--fs-min); }
body.vertical .sh-first > :is(svg, img.ico-art) { width: 64px; height: 64px; }

/* пакеты золота: плитка не ниже 300, картинка 150, золото 28, полоса цены 60/28, звезда «×2» 52 */
body.vertical .sh-golds { gap: 14px; }
body.vertical .sh-gold { min-height: 300px; gap: 8px; padding: 18px 10px 0; border-radius: 16px; }
body.vertical .sh-gart { width: 150px; height: 150px; }
body.vertical .sh-gname { font-size: var(--fs-min); }
body.vertical .sh-gold .sh-amount { padding-block: 5px; padding-inline: 10px 16px; border-radius: 22px; font-size: 28px; }
body.vertical .sh-gold .sh-amount :is(svg, img.ico-art) { width: 30px; height: 30px; }
body.vertical .sh-gold .sh-note { font-size: var(--fs-min); }
body.vertical .sh-price { height: 60px; font-size: 28px; }
body.vertical .sh-x2 { width: 56px; height: 56px; font-size: 22px; }

/* товары лавки: три в ряд, картинка 140, имя 20 в две строки, полоса цены 56 */
body.vertical .sh-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.vertical .sh-tile { gap: 8px; padding: 16px 8px 0; border-radius: 14px; }
body.vertical .sh-tile .sh-tic .ic-cell { --ic: 140px; }
body.vertical .sh-tnm { font-size: var(--fs-min); }
body.vertical .sh-tnote { font-size: var(--fs-min); }
body.vertical .sh-tpr { height: 56px; font-size: 24px; }
body.vertical .sh-tpr :is(svg, img.ico-art) { width: 28px; height: 28px; }

/* окно количества */
body.vertical .sh-qty { gap: 18px; }
body.vertical .sh-qtop { gap: 18px; }
body.vertical .sh-qty .sh-qtop .ic-cell { --ic: 120px; }
body.vertical .sh-qtop .t > b { font-size: 26px; }
body.vertical .sh-qtop .t > p { font-size: var(--fs-min); }
body.vertical .sh-qrow { gap: 14px; min-height: 64px; }
body.vertical .sh-qrow .btn.sq { width: 64px; height: 64px; border-radius: 14px; }
body.vertical .sh-qrow .btn.sq svg { width: 34px; height: 34px; }
/* ручка ползунка — 40 (дорожка, заливка и ручка — своя графика окна, js/ui.js SKINS: здесь только размер; вес выше
   .modal input[type="range"]) */
body.vertical .modal input.sh-qrange::-webkit-slider-thumb { width: 40px; height: 40px; margin-top: -12px; border-radius: 20px; }
body.vertical .modal input.sh-qrange::-moz-range-thumb { width: 40px; height: 40px; box-sizing: border-box; border-radius: 20px; }
body.vertical .sh-qn { min-width: 80px; font-size: 30px; }

/* разделы «Обликов»: карточки лентой вбок (палец листает, свайп вкладок здесь не срабатывает — js/ui.js swipeWin) */
body.vertical .sh-rail {
  display: flex; gap: 14px; margin: 0 -14px 16px; padding: 14px 14px 10px; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 14px;
}
body.vertical .sh-rail::-webkit-scrollbar { display: none; }
body.vertical .sh-rail > .sh-card.sh-card {
  display: flex; flex-direction: column; flex: 0 0 calc((100% - 28px) / 2.3); min-width: 0; box-sizing: border-box; scroll-snap-align: start;
}
body.vertical .sh-rail > .sh-card > :is(.sh-art, .sh-pic) { align-self: stretch; width: auto; height: 240px; }
body.vertical .sh-rail > .sh-card > :is(.sh-art, .sh-pic) > :is(svg, img) { width: 220px; height: 220px; }
body.vertical .sh-rail > .sh-card .ft { justify-content: flex-start; }
body.vertical .sh-rail .ft .btn:not(.sq) {
  flex: 1 1 auto; min-width: 150px; height: 56px; padding: 0 14px; border-radius: 12px; font-size: var(--fs-btn-s);
}
body.vertical .sh-rail .ft .btn.sq { width: 56px; height: 56px; border-radius: 12px; }
body.vertical .lk-card .lk-eff { padding-right: 0; font-size: var(--fs-min); }
body.vertical .lk-card > .sh-note, body.vertical .lk-card > .lk-title { margin-right: 0; }
body.vertical .sh-rail .lk-pic { width: auto; height: 240px; }
body.vertical .lk-pic .lk-prev-bb { padding: 4px 10px; font-size: var(--fs-min); }
body.vertical .lk-title { margin: 0 6px; padding: 0 8px; font-size: 16px; line-height: 26px; border-radius: 10px; }
body.vertical .lk-title .lk-tic { width: 20px; height: 20px; }
body.vertical .lk-prev-bb { padding: 6px 12px; font-size: var(--fs-min); }
body.vertical .lk-prev-name { font-size: 22px; }
body.vertical .lk-prev .sh-hint, body.vertical .lk-prev .sh-note { font-size: var(--fs-min); }

/* Печати: строка порога — 104, число печатей 22, ячейки 80, «Забрать» 150×56 */
body.vertical .sh-sealbar b { font-size: 22px; }
body.vertical .sh-sealbar .bar, body.vertical .sv-head .bar, body.vertical .ps-head .bar { height: 16px; border-radius: 8px; }
body.vertical .sh-steps.col { gap: 10px; }
body.vertical .sh-steps.col .sh-step { min-height: 104px; padding: 10px 14px; gap: 14px; border-radius: 12px; font-size: var(--fs-min); }
body.vertical .sh-step b { min-width: 120px; font-size: 22px; color: var(--w-accent, #7a4c14); }

/* «Забрать» в строках дорожек — 150×56 */
body.vertical :is(.sh-step, .ps-row, .sh-frow) .btn.small { min-width: 150px; height: 72px; }
body.vertical .sh-body .btn.small:not(.sq) { min-height: 64px; } /* прочие мелкие кнопки Казны (Активировать, Шансы, ссылки) */

/* Календарь героя: дни в три колонки */
body.vertical .sh-cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body.vertical .sh-cday { min-height: 120px; gap: 6px; padding: 8px; border-radius: 12px; font-size: var(--fs-min); }

/* Вход: неделя — плитками, правила — «Вход» в конце файла */
body.vertical .sh-week { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* дорожки пропуска и фондов: ряд 110, уровень — кружком (у фонда — плашкой) на линии дорожки, ячейки 80, платная
   дорожка без покупки — под замком */
body.vertical .ps-track, body.vertical .sh-track { position: relative; gap: 8px; margin-top: 10px; }
body.vertical .ps-track::before, body.vertical .sh-track::before {
  content: ''; position: absolute; top: 40px; bottom: 50px; inset-inline-start: 33px; width: 6px; border-radius: 3px; background: #9fb0c4;
}
body.vertical .sh-track::before { inset-inline-start: 49px; }
body.vertical .ps-row, body.vertical .sh-frow {
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; min-height: 110px; padding-block: 8px; padding-inline: 0 8px;
  border-radius: 12px; font-size: 18px; box-sizing: border-box;
}
body.vertical .sh-frow { grid-template-columns: 104px minmax(0, 1fr) minmax(0, 1fr); }
body.vertical :is(.ps-row, .sh-frow).head { min-height: 0; padding-block: 0; font-size: var(--fs-min); }
body.vertical .ps-row:not(.head) .lv {
  position: relative; z-index: 1; justify-self: center; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  box-sizing: border-box; border-radius: 28px; border: 3px solid #e8eef6; background: #7d8ea4; color: #fff; font: 700 24px/1 var(--sans);
  text-shadow: var(--t-outline);
}
body.vertical .sh-frow:not(.head) .lv {
  position: relative; z-index: 1; justify-self: center; padding: 6px 8px; border-radius: 12px; border: 3px solid #e8eef6; background: #7d8ea4;
  color: #fff; font: 700 18px/1.1 var(--sans); text-align: center; text-shadow: var(--t-outline);
}
body.vertical :is(.ps-row, .sh-frow).reach .lv { background: linear-gradient(#ffd25e, #e0861a); }
body.vertical :is(.ps-row, .sh-frow):not(.head) :is(.free, .paid) {
  position: relative; align-self: stretch; align-content: center; gap: 8px; min-height: 94px; padding: 8px 10px; box-sizing: border-box;
  border-radius: 12px; background: rgba(255, 255, 255, 0.4);
}
body.vertical :is(.ps-row, .sh-frow):not(.head) .paid { background: rgba(236, 196, 120, 0.3); }
body.vertical :is(.ps-row, .sh-frow) .paid.locked { background: rgba(60, 72, 90, 0.12); }
body.vertical :is(.ps-row, .sh-frow) .paid.locked .ic-row { opacity: 0.7; }
body.vertical .ps-row .paid .lk, body.vertical .sh-frow .paid .sh-lk { position: absolute; top: 6px; inset-inline-end: 6px; }
body.vertical .sh-fgold b { font-size: 22px; }
body.vertical .sh-fgold :is(svg, img.ico-art) { width: 26px; height: 26px; }
body.vertical .sh-fund { gap: 10px; }

/* шапка пропуска и VIP: герб и корона крупнее, текст 18–26 */
body.vertical .ps-head, body.vertical .sv-head { flex-wrap: wrap; gap: 18px; padding: 16px; border-radius: 14px; }
body.vertical .ps-head .t, body.vertical .sv-head .t { min-width: 0; gap: 8px; }
body.vertical .ps-crest { width: 112px; height: 112px; border-radius: 56px; }
body.vertical .ps-crest b { font: 700 40px/1 var(--sans); }
body.vertical .ps-crest span { font-size: var(--fs-min); }
body.vertical .ps-head .t b { font-size: 22px; }
body.vertical .ps-warn { font-size: var(--fs-min); }
body.vertical .sv-row { flex-wrap: wrap; }
body.vertical .sv-crown { width: 128px; height: 128px; border-radius: 64px; }
body.vertical .sv-crown b { font: 700 30px/1 var(--sans); }
body.vertical .sv-crown :is(svg, img.ico-art) { width: 40px; height: 40px; }
body.vertical .sv-head .t > b { font-size: 26px; }
body.vertical .sv-on, body.vertical .sv-off { font-size: var(--fs-min); }
body.vertical .sv-pts { padding: 4px 10px; border-radius: 14px; font-size: var(--fs-min); }
body.vertical .sv-nav b { font: 700 24px/1.15 var(--sans); text-align: center; }
body.vertical .sv-eff { padding-inline-start: 26px; font-size: var(--fs-min); }
body.vertical .sv-eff li { margin-bottom: 6px; }
body.vertical .sv-new { padding: 1px 8px; border-radius: 8px; font-size: 20px; }
body.vertical .sv-how ul { padding-inline-start: 26px; font-size: var(--fs-min); }
body.vertical .sv-how li { margin-bottom: 4px; }

/* Кузница: шансы сундука — не мельче 16 */
body.vertical .fg-odd { padding: 3px 10px; border-radius: 10px; font-size: var(--fs-min); }
body.vertical .fg-odds { gap: 6px; }

/* Драконьи яйца удачи над замком: яйцо 128 (≈73 px экрана), подпись 20 */
body.vertical .kz-eggs { bottom: 220px; }
body.vertical .kz-egg { width: 140px; }
body.vertical .kz-epic { width: 128px; height: 128px; }
body.vertical .kz-left { margin-top: -12px; padding: 4px 12px; border-radius: 14px; font-size: var(--fs-min); }
body.vertical .sh-egg { gap: 16px; padding: 10px 16px; border-radius: 16px; }
body.vertical .sh-egg .kz-cpic { width: 150px; height: 150px; }
body.vertical .sh-egg .t b { font-size: var(--fs-body); }
body.vertical .sh-egg .t i { font-size: var(--fs-sub); }
body.vertical .sh-egg > .btn { min-width: 150px; }

/* ——— общие плитки лавок (ally.js «Лавка чести», arena.js — их разметка .ic-shop/.ic-good, css/itemcell.css): стоя —
   три в ряд, ячейка 140, имя 20 в две строки, внизу полоса кнопок покупки 56 (вес — выше, чем у itemcell.css) ——— */
body.vertical .modal .ic-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.vertical .modal .ic-good {
  gap: 8px; padding: 16px 8px 0; overflow: hidden; border-radius: 14px; border: 1px solid #b7c4d4; background: linear-gradient(#f6f9fc, #dde5ee);
  box-shadow: 0 3px 0 #8797ab, inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
body.vertical .modal .ic-good .ic-cell { --ic: 140px; }
body.vertical .modal .ic-good > b { font-size: var(--fs-min); line-height: 1.2; color: #1f2a38; }
body.vertical .modal .ic-good .ic-note, body.vertical .modal .ic-good .ic-sub { font-size: var(--fs-min); }
body.vertical .modal .ic-good .ic-btns {
  align-self: stretch; flex-wrap: nowrap; gap: 0; margin: auto -8px 0; min-height: 56px; background: linear-gradient(#5d87b8, #3d6493);
}
body.vertical .modal .ic-good .ic-btns .btn { flex: 1 1 0; min-width: 0; height: 56px; padding: 0 8px; border-radius: 0; border-width: 0; box-shadow: none; }
body.vertical .modal .ic-good .ic-btns .btn + .btn { border-inline-start: 2px solid rgba(0, 0, 0, 0.2); }

/* ═══════════ лёжа на телефоне (body.phone-land, js/ui.js fitStage: сцена мельче 3/4, около 0,57): здесь и в общих
   правилах .sh-* (css/kod.css) размеры прибиты в px — подсказки, заметки, дни входа и календаря, строки фондов и
   пропуска 12–15 (7–9 css px), золото в шапке 40. Растут до размеров круга 1 (css/kod.css body.phone-land): текст не
   мельче 16, пояснения 17, имена 20; золото в шапке 48, полосы цены 52, ручка ползунка 40. Как и стоя, правила к
   общим .sh-* — здесь. На планшете и ПК лёжа и стоя — как было ═══════════ */
body.phone-land .sh-goldnow { height: 48px; padding-inline: 12px 6px; border-radius: 24px; }
body.phone-land .sh-goldnow .sh-plus { width: 36px; height: 36px; }
body.phone-land .sh-hint { font-size: var(--fs-sub); }
body.phone-land .sh-note { font-size: var(--fs-sub); }
body.phone-land .sh-done { font-size: var(--fs-min); }
body.phone-land .sh-test { font-size: var(--fs-min); }
body.phone-land .sh-fav, body.phone-land .sh-free { font-size: var(--fs-min); }
body.phone-land .sh-loot { font-size: var(--fs-sub); }
body.phone-land .sh-card .hd b { font-size: var(--fs-list); }
body.phone-land .sh-ratio { font-size: 18px; }
body.phone-land .sh-banner .sh-ratio { font-size: 18px; }
/* заголовок подарка первой покупки — на красно-сером поле: светлый жирный с обводкой (тёмное золото окна там не
   читалось), как стоя — шрифтом игры */
body.phone-land .sh-first .t b { font: 700 22px/1.15 var(--sans); color: #fff3d0; text-shadow: 0 1px 2px #2a0c0c, 0 0 4px rgba(42, 12, 12, 0.8); }
body.phone-land .sh-first .t span { font-size: var(--fs-sub); }
/* пакеты золота и товары лавки (и Лавки замка): имя 18–19, пояснение 16, полоса цены 52 / 22 */
body.phone-land .sh-gname { font-size: var(--fs-min); }
body.phone-land .sh-gold .sh-amount { font-size: 22px; }
body.phone-land .sh-gold .sh-note { font-size: var(--fs-min); }
body.phone-land .sh-price { height: 52px; font-size: 22px; }
body.phone-land .sh-tiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
body.phone-land .sh-tnm { font-size: var(--fs-min); }
body.phone-land .sh-tnote { font-size: var(--fs-min); }
body.phone-land .sh-tpr { height: 52px; font-size: 20px; }
/* окно количества: ручка ползунка 40 (вид — js/ui.js SKINS, здесь только размер) */
body.phone-land .sh-qtop .t > p { font-size: var(--fs-sub); }
body.phone-land .sh-qn { font-size: var(--fs-num); }
body.phone-land .sh-qty .btn.two .sub { font-size: var(--fs-btn-s); } /* цена на «Купить ×N» */
body.phone-land .modal input.sh-qrange::-webkit-slider-thumb { width: 40px; height: 40px; margin-top: -12px; border-radius: 20px; }
body.phone-land .modal input.sh-qrange::-moz-range-thumb { width: 40px; height: 40px; box-sizing: border-box; border-radius: 20px; }
/* Печати, Вход, Календарь героя: строки 17, дни 16–17 */
body.phone-land .sh-sealbar b { font-size: 20px; }
body.phone-land .sh-step { font-size: var(--fs-sub); }
body.phone-land .sh-steps.col .sh-step { min-height: 64px; box-sizing: border-box; }
body.phone-land .sh-step b { font-size: var(--fs-min); }
body.phone-land .sh-body .ic-cell { --ic: 84px; } /* ячейки наград Казны — 84 (круг 5), было 72 */
body.phone-land .sh-cday { font-size: var(--fs-min); }
/* дорожки пропуска и фондов: строки 17, заголовок 16, столбец уровня шире */
body.phone-land .ps-row, body.phone-land .sh-frow { font-size: var(--fs-sub); }
body.phone-land :is(.ps-row, .sh-frow).head { font-size: var(--fs-min); }
body.phone-land .ps-row { grid-template-columns: 64px 1fr 1fr; }
body.phone-land .sh-frow { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); }
body.phone-land .sh-fgold b { font-size: var(--fs-min); }
/* картинка карточки в углу (56×62) выше строки заголовка: и то, что сразу под ним (пояснение, шансы, пояснение фонда с
   «Купить»), — не под картинкой */
body.phone-land .ps-crest { width: 96px; height: 96px; border-radius: 48px; }
body.phone-land .ps-crest span { font-size: var(--fs-min); }
body.phone-land .ps-warn { font-size: var(--fs-sub); }
/* VIP: строки 17–22, метки «новое» и очков 16 */
body.phone-land .sv-head .t > b { font-size: 22px; }
body.phone-land .sv-on, body.phone-land .sv-off { font-size: var(--fs-min); }
body.phone-land .sv-pts { padding: 2px 10px; border-radius: 12px; font-size: var(--fs-min); }
body.phone-land .sv-nav b { font-size: 22px; }
body.phone-land .sv-eff { font-size: var(--fs-sub); }
body.phone-land .sv-new { padding: 0 6px; font-size: 18px; }
body.phone-land .sv-how ul { font-size: var(--fs-sub); }
body.phone-land .sh-viptbl td { font-size: var(--fs-min); }
/* Облики: картинка 80 (место справа под неё — шире), пузырь и титул 16 */
body.phone-land .lk-card .lk-eff { font-size: var(--fs-min); }
body.phone-land .lk-pic .lk-prev-bb { padding: 2px 6px; font-size: var(--fs-min); }
body.phone-land .lk-prev-bb { font-size: var(--fs-min); }
body.phone-land .lk-prev-name { font-size: 20px; }
body.phone-land .lk-title { padding: 0 8px; font-size: 16px; line-height: 24px; }
body.phone-land .lk-title .lk-tic { width: 18px; height: 18px; }
body.phone-land .hud .pill.who .lk-title { font-size: 16px; line-height: 22px; }
/* Кузница в Казне — шансы сундука 16; Драконьи яйца над замком — яйцо 124, подпись 20 */
body.phone-land .fg-odd { padding: 1px 8px; font-size: var(--fs-min); }
body.phone-land .kz-egg { width: 136px; }
body.phone-land .kz-epic { width: 124px; height: 124px; }
body.phone-land .kz-left { font-size: var(--fs-min); }
body.phone-land .sh-egg .kz-cpic { width: 132px; height: 132px; }
body.phone-land .sh-egg .t b { font-size: var(--fs-sub); }
body.phone-land .sh-egg .t i { font-size: var(--fs-min); }

/* ═══════════ окно «Лавки» (screens/shops.js, docs/ref/TABS_GAP.md п. 22): плитки лавок (castle.js shopTile) с пределом
   недели — «Распродано», «с Замка N» / «с VIP N» (серые, не нажимаются), бесплатный товар недели (зелёная, «Забрать»;
   взят — «Взято»), скидка Лавки VIP (старая цена зачёркнута, наклейка «−30%»); строка «Обновится в понедельник»; шапка
   Лавки VIP; ссылки на лавки во вкладке «Лавка» Казны ═══════════ */
.sh-tile:disabled { cursor: default; }
.sh-tile:disabled:active { transform: none; box-shadow: 0 3px 0 #8797ab, inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.sh-tile:is(.out, .lock) { background: linear-gradient(#eef1f5, #d3d9e1); }
.sh-tile:is(.out, .lock) .sh-tic { filter: grayscale(0.85); opacity: 0.6; }
.sh-tile:is(.out, .lock) .sh-tnm { color: #5d6b7c; }
.sh-tile.out .sh-tpr { background: linear-gradient(#9aa5b3, #737f8f); }
.sh-tile.lock .sh-tpr { gap: 4px; background: linear-gradient(#6f7a8a, #4f5968); font-size: 15px; }
.sh-tile.free {
  border-color: #4f9a3c; background: linear-gradient(#f2fbe9, #d5edc7);
  box-shadow: 0 3px 0 #5f8f4a, 0 0 12px rgba(95, 176, 74, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.sh-tile.free:active { box-shadow: 0 1px 0 #5f8f4a; }
.sh-tile.free .sh-tpr { background: linear-gradient(#6cbf4f, #3f8f2e); }
.sh-tile.free .sh-tnote { color: #3d7a2a; font-weight: 700; }
.sh-tile.got { border-color: #9cb79a; box-shadow: 0 3px 0 #8797ab, inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.sh-tile.got .sh-tic { filter: grayscale(0.6); opacity: 0.7; }
.sh-tile.got .sh-tpr { background: linear-gradient(#8aa58a, #5e7a5e); }
.sh-tpr s { margin-inline-end: 2px; font-size: 0.8em; font-weight: 700; opacity: 0.85; text-decoration-thickness: 2px; }
.sh-tsale {
  position: absolute; top: 6px; inset-inline-end: 6px; z-index: 1; padding: 3px 7px; border-radius: 12px; border: 2px solid #ffd25e;
  background: radial-gradient(circle at 50% 35%, #e8473e, #a3262a 72%); color: #fff; font: 700 13px/1 var(--sans); font-style: normal;
  text-shadow: var(--t-outline); transform: rotate(8deg); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
/* когда новые пределы (kazna-21): плашка с часами посередине, время — крупно; «?» правил лавки — справа */
.sp-when {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 12px; padding: 8px 56px; border-radius: 14px;
  font-size: 15px; background: linear-gradient(#5a3a12, #3a2408); color: #ffe39a; box-shadow: inset 0 0 0 2px rgba(255, 210, 120, 0.45);
}
.sp-when > span:not(.sp-clock) { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.sp-when b { font: 700 22px/1.1 var(--sans); color: #fff; font-variant-numeric: tabular-nums; text-shadow: var(--t-outline); }
.sp-clock { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(#e0861a, #a85a0e); box-shadow: 0 0 0 2px #ffd25e; }
.sp-when .od-q { position: absolute; inset-inline-end: 8px; top: 50%; margin-top: -17px; }
.sp-rules { justify-content: flex-end; margin-bottom: 8px; }
/* ссылки на лавки (kazna-24): плитки со значками лавок */
.sp-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 0 0 12px; }
.sp-link {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 14px; cursor: pointer;
  border: 2px solid #c99a4e; background: linear-gradient(#fff6de, #f2d699); color: #5a3a12; font: inherit; box-shadow: 0 3px 0 #a87a36;
}
.sp-link:active { transform: translateY(2px); box-shadow: 0 1px 0 #a87a36; }
.sp-link b { font: 700 16px/1.1 var(--sans); }
.sp-lic { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; }
.sp-lic > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(80, 40, 0, 0.35)); }
.sp-link .hz-badge { position: absolute; top: -8px; inset-inline-end: -6px; }
/* серебро — монетой (kazna-17) */
.sp-coin { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--cs, 30px); height: var(--cs, 30px); border-radius: 50%; font-style: normal;
  background: radial-gradient(circle at 35% 30%, #ffffff, #d5dce4 45%, #8f9aa6); box-shadow: inset 0 0 0 2px #7d8894, 0 1px 2px rgba(0, 0, 0, 0.4); }
.sp-lic .sp-coin { box-shadow: inset 0 0 0 4px #7d8894, 0 3px 6px rgba(0, 0, 0, 0.35); }
/* арена закрыта (kazna-18): плашка с замком над серой витриной */
.sp-lockbar { align-items: center; }
.sp-lockbar .sp-lic { width: 110px; height: 110px; }
.sp-lockbar > :is(svg, img) { flex: none; }
.sp-vip {
  display: flex; align-items: center; gap: 14px; padding: 12px; margin-bottom: 12px; border-radius: 10px;
  border: 1px solid var(--bronze-l); background: var(--w-well, rgba(0, 0, 0, 0.25));
}
.sp-vip .sv-crown { width: 72px; height: 72px; border-radius: 36px; }
.sp-vip .sv-crown b { font-size: 18px; }
.sp-vip .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sp-vip .t b { font-size: 17px; color: var(--w-hi, #fff3d0); }
.sp-vip .t span { font-size: 13px; color: var(--muted); }
.sp-vip.off .t b { color: var(--w-bad, #c0392b); }
.sh-qlim { color: var(--w-accent, #7a4c14); font-weight: 700; }
.sv-shop { margin-bottom: 12px; }

body.vertical .sh-tile.lock .sh-tpr { font-size: var(--fs-min); }
body.vertical .sh-tsale { top: 8px; padding: 4px 10px; border-radius: 16px; font-size: 22px; }
body.vertical .sp-when { gap: 14px; padding: 10px 76px; border-radius: 16px; font-size: var(--fs-min); }
body.vertical .sp-when b { font-size: 30px; }
body.vertical .sp-clock { width: 60px; height: 60px; }
body.vertical .sp-clock :is(svg, img) { width: 38px; height: 38px; }
body.vertical .sp-when .od-q { margin-top: -26px; }
body.vertical .sp-links { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
body.vertical .sp-link { padding: 12px 6px 10px; border-radius: 16px; }
body.vertical .sp-link b { font-size: var(--fs-min); }
body.vertical .sp-lic { width: 96px; height: 96px; }
body.vertical .sp-vip { flex-wrap: wrap; gap: 16px; padding: 16px; border-radius: 14px; }
body.vertical .sp-vip .sv-crown { width: 112px; height: 112px; border-radius: 56px; }
body.vertical .sp-vip .sv-crown b { font: 700 26px/1 var(--sans); }
body.vertical .sp-vip .t b { font-size: 24px; }
body.vertical .sp-vip .t span { font-size: var(--fs-min); }
body.vertical .sp-vip > .btn { flex: 1 1 100%; }
body.vertical .sh-qlim { font-size: var(--fs-min); }

body.phone-land .sh-tile.lock .sh-tpr { font-size: var(--fs-min); }
body.phone-land .sh-tsale { font-size: 18px; }
body.phone-land .sp-when { font-size: var(--fs-min); }
body.phone-land .sp-when .od-q { margin-top: -23px; }
body.phone-land .sp-link b { font-size: var(--fs-min); }
body.phone-land .sp-vip .t b { font-size: 20px; }
body.phone-land .sp-vip .t span { font-size: var(--fs-sub); }
body.phone-land .sh-qlim { font-size: var(--fs-sub); }

/* ═══════════ «Вход» (круг 5, shop.js loginHtml; образец 113): неделя — на доске (своя shop.login_board — рамкой
   9-slice, shop.js loginSkin; нет её — оранжевая доска по CSS), дни — плитками (shop.login_day: «День N» на оранжевой
   шапке плитки), награда дня — крупной ячейкой (стоя 128 по три дня в ряд, лёжа на телефоне 96), последний день — широкой плиткой с
   большим сундуком; сегодняшний светится и подпрыгивает, взятые — бледнее с зелёной галочкой ═══════════ */
.sh-modal .sh-week { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.sh-modal .sh-week.sh-board { padding: 74px 48px 46px; border-width: 2px; border-style: solid; border-color: transparent; } /* не border: сбросил бы рамку-картинку */
.sh-modal .sh-week:not(.sh-board) {
  padding: 16px; border-radius: 18px; background: linear-gradient(#f3c063, #e0922a); box-shadow: inset 0 0 0 3px #c47a1c, 0 4px 10px rgba(80, 40, 0, 0.3);
}
.sh-modal .sh-day {
  position: relative; justify-content: flex-start; gap: 8px; min-height: 170px; padding: 58px 8px 12px; box-sizing: border-box;
  border-width: 2px; border-style: solid; border-color: transparent; border-radius: 14px; background: linear-gradient(#f6b74c 0, #e9972d 48px, #fff4d6 48px);
  box-shadow: 0 3px 0 rgba(120, 70, 10, 0.3); color: #5a3a12; font-size: 18px;
}
.sh-modal .sh-day.big { grid-column: span 2; }
.sh-modal .sh-day.cur:not(.got) { border-color: transparent; z-index: 1; }
.sh-modal .sh-day.cur:not(.got)::after { /* сегодня: светлая рамка с золотым свечением вокруг плитки */
  content: ''; position: absolute; inset: -7px; border-radius: 18px; pointer-events: none;
  border: 5px solid #fff; box-shadow: 0 0 0 3px #ffb43c, 0 0 20px 6px rgba(255, 236, 140, 0.95), inset 0 0 14px rgba(255, 214, 90, 0.8);
}
.sh-dnow { /* «Сегодня» — красной плашкой у низа плитки */
  position: absolute; left: 50%; bottom: -12px; z-index: 2; transform: translateX(-50%); padding: 4px 14px; border-radius: 14px; white-space: nowrap;
  background: linear-gradient(#ef5a48, #b8281f); border: 2px solid #ffe2a0; color: #fff; font: 700 17px/1.1 var(--sans);
  text-shadow: 0 1px 0 #6a120c; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
body.vertical .sh-dnow { font-size: 22px; padding: 5px 16px; }
html:not(.kod-still) .sh-modal .sh-day.cur:not(.got) { animation: sh-day-hop 2s ease-in-out infinite; }
html:not(.kod-still) .sh-modal .sh-day.cur:not(.got)::after { animation: lo-pulse 1.4s ease-in-out infinite; }
.sh-modal .sh-day.got { opacity: 0.62; }
.sh-dn {
  position: absolute; left: 0; right: 0; top: 0; height: 48px; display: flex; align-items: center; justify-content: center;
  font: 700 20px/1 var(--sans); color: #fff; letter-spacing: 0; white-space: nowrap; text-shadow: 0 1px 0 #7a4210, 0 0 3px #7a4210;
}
.sh-dbody { display: flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.sh-day .sh-dbody .sh-loot { justify-content: center; gap: 6px; }
.sh-dchest { display: flex; flex: none; width: 96px; height: 96px; }
.sh-dchest img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(80, 40, 0, 0.45)); }
.sh-day .sh-ok { /* взято: крупная зелёная галочка поверх награды (образец 113) */
  position: absolute; left: 50%; top: calc(50% + 24px); z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(47, 154, 74, 0.92);
  box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0, 0, 0, 0.5);
}
.sh-day .ic-cell { --ic: 88px; }
.sh-day.big .ic-cell { --ic: 72px; }
/* стоя — по три дня в ряд, последний — во всю ширину: большой сундук и награда; ячейки 128 (как в Сумке), у последнего 112 */
body.vertical .sh-modal .sh-week { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.vertical .sh-modal .sh-day { min-height: 204px; padding: 60px 10px 14px; }
body.vertical .sh-modal .sh-day.big { grid-column: 1 / -1; }
body.vertical .sh-modal .sh-day .ic-cell { --ic: 128px; }
body.vertical .sh-modal .sh-day.big .ic-cell { --ic: 112px; }
body.vertical .sh-modal .sh-day.big .sh-dbody { gap: 18px; }
body.vertical .sh-dchest { width: 150px; height: 150px; }
body.vertical .sh-dn { font-size: 24px; }
body.vertical .sh-day .sh-ok { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
body.vertical .sh-day .sh-ok :is(svg, img) { width: 36px; height: 36px; }
body.phone-land .sh-modal .sh-day .ic-cell { --ic: 96px; }
body.phone-land .sh-modal .sh-day.big .ic-cell { --ic: 80px; }
body.phone-land .sh-dn { font-size: 20px; }
@keyframes sh-day-hop { 0%, 64%, 100% { transform: none; } 74% { transform: translateY(-8px) scale(1.03); } 84% { transform: translateY(0) scale(0.99); } }

/* ═══════════ круг 8 (аудит графики 07.11, docs/AUDIT_GFX.md kazna-*): картинки вместо строк, правила — под «?» ═══════════ */

/* «?» — правила словами в своём окне (odds.js rulesBtn): кружок в заголовке раздела, в шапке и в витрине */
.od-q {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; margin: 0; padding: 0;
  border-radius: 50%; border: 2px solid #fff3d0; background: radial-gradient(circle at 50% 35%, #7aa6d8, #3d6493 70%); color: #fff;
  font: 700 20px/1 var(--sans); text-shadow: var(--t-outline); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35); cursor: pointer; vertical-align: middle;
}
.od-q:active { transform: translateY(1px); }
.sh-sect { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding-inline: 48px; }
.sh-sect .od-q { position: absolute; inset-inline-end: 6px; top: 50%; margin-top: -17px; }
.sh-hbody .sh-hq { align-self: flex-start; }
.es-q { margin-top: 8px; }
.od-rulewin .od-rules li { margin-bottom: 10px; line-height: 1.4; }
.sh-card .hd b .od-q { margin-inline-start: 8px; }
.sh-modal .sv-row .od-q { margin-inline-start: auto; }
body.vertical .od-q { width: 52px; height: 52px; font-size: 30px; border-width: 3px; }
body.vertical .sh-sect { min-height: 64px; box-sizing: border-box; padding-inline: 70px; }
body.vertical .sh-sect .od-q { inset-inline-end: 8px; margin-top: -26px; }
body.vertical .od-rulewin .od-rules { font-size: var(--fs-body); }
body.phone-land .od-q { width: 46px; height: 46px; font-size: 26px; }
body.phone-land .sh-sect .od-q { margin-top: -23px; }
body.phone-land .od-rulewin .od-rules { font-size: var(--fs-sub); }

/* знак VIP (shopvip.js vipBadge, kazna-07): нарисованный vip.badge_N, номер — на плашке короны; неактивен — серый */
.sv-badge { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: var(--bs, 150px); height: var(--bs, 150px); }
.sv-badge > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(40, 20, 6, 0.45)); }
.sv-badge > b {
  position: absolute; left: 14%; right: 14%; top: 41%; height: 28%; display: flex; align-items: center; justify-content: center; gap: 0.16em;
  font: 700 calc(var(--bs, 150px) * 0.22)/1 var(--sans); color: #fff; letter-spacing: 0; white-space: nowrap;
  text-shadow: 0 2px 0 rgba(60, 30, 6, 0.95), 0 0 6px rgba(60, 30, 6, 0.85);
}
.sv-badge > b small { font-size: 0.6em; }
.sv-badge.sm > b { font-size: calc(var(--bs, 96px) * 0.3); }
.sv-badge.off > img { filter: grayscale(1) brightness(0.82) drop-shadow(0 4px 8px rgba(20, 20, 20, 0.4)); }
.sv-badge.off > b { color: #e8ebef; }
/* знак при показе: один раз выезжает с подскоком (не вечная анимация) */
html:not(.kod-still) .sv-badge.sv-main { animation: sv-pop 0.6s cubic-bezier(.2, .8, .3, 1.3) 1 both; }
@keyframes sv-pop { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } }
.sv-head .sv-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); }
.sv-tmr { font-style: normal; padding: 2px 10px; border-radius: 12px; background: rgba(35, 128, 62, 0.14); color: var(--w-good, #23803e); font-weight: 700; }
.sv-head .sv-go { align-self: flex-start; }
.sh-card.sv-box > .sh-pic { background: radial-gradient(circle at 50% 45%, #ffe7a8, #e1a045 55%, #8a5218); }
.sv-box.sv-need > .sh-pic img { filter: grayscale(0.6) brightness(0.9); }
.sv-shop {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 12px; padding: 10px 16px; box-sizing: border-box; border-radius: 14px;
  border: 2px solid #c99a4e; background: linear-gradient(90deg, #6d4a1c, #a8742a); color: #fff; cursor: pointer; font: inherit; text-align: start;
  box-shadow: 0 3px 0 #5a3a12;
}
.sv-shop > img { flex: none; }
.sv-shop > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sv-shop b { font: 700 20px/1.1 var(--sans); text-shadow: var(--t-outline); }
.sv-shop i { font-style: normal; color: #ffe39a; }
.sv-nav .sv-navt { display: flex; align-items: center; gap: 10px; }
.sv-nav .sv-navt b small { display: block; font-size: 0.7em; font-weight: 700; color: var(--w-good, #23803e); }
body.vertical .sv-head { align-items: center; }
body.vertical .sv-head .t { flex: 1 1 300px; }
body.vertical .sv-head .sv-go { min-width: 260px; height: 72px; font-size: var(--fs-btn); }
body.vertical .sv-tmr { font-size: var(--fs-sub); }
body.vertical .sv-head .sv-next { font-size: var(--fs-sub); }
body.vertical .sv-shop { gap: 16px; padding: 12px 18px; border-radius: 16px; }
body.vertical .sv-shop b { font-size: 26px; }
body.vertical .sv-shop i { font-size: var(--fs-sub); }
body.vertical .sv-nav .sv-navt b { font-size: 24px; }
body.vertical .sv-nav .sv-navt b small { font-size: var(--fs-min); }
/* «Шансы» строкой в карточке Казны — не мельче --fs-sub (heroes.css ставит 18: ≈10 px экрана) */
body.vertical .sh-modal .od-link { font-size: var(--fs-sub); }

/* Кузница в Казне (kazna-01, geroi-15): сундук — сам крупно на свечении цвета лучшей редкости; шансы и гарантия — плашками */
.sh-card.fg-chest > .sh-pic.fg-cpic { background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.85), var(--rc, #c08a3e) 46%, #2a2318 100%); }
.fg-chest .fg-cimg { filter: drop-shadow(0 6px 6px rgba(20, 10, 0, 0.55)); }
.fg-odd b { font-weight: 700; }
.fg-guard { display: flex; flex-wrap: wrap; gap: 6px; }
.fg-pity { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 6px; border-radius: 12px; background: var(--rc, #a565d8);
  color: #fff; font-weight: 700; font-size: max(13px, var(--fs-min)); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45); }
.fg-have { margin-inline-start: 4px; padding: 0 6px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); }
.fg-top { justify-content: space-between; }
body.vertical .fg-odd { padding: 4px 12px; font-size: var(--fs-min); }
body.vertical .fg-pity { padding: 4px 14px 4px 8px; font-size: var(--fs-min); border-radius: 14px; }
body.vertical .fg-chest .ft .btn.small { min-height: 72px; min-width: 150px; font-size: var(--fs-btn-s); }

/* картинка набора (shop.js offerArt, kazna-10): своя shop.offer_<id>, пока нет — главный предмет набора крупно */
.sh-art.sub { position: relative; }
.sh-art .sh-aimg { filter: drop-shadow(0 6px 6px rgba(40, 20, 6, 0.5)); }
.sh-card > .sh-art > img.sh-aface { width: 74%; height: 92%; object-fit: cover; border-radius: 12px; border: 3px solid #ffe39a; box-shadow: 0 4px 10px rgba(40, 20, 6, 0.5); }
.sh-art .sh-an {
  position: absolute; inset-inline-end: 6px; bottom: 6px; padding: 2px 8px; border-radius: 10px; background: rgba(40, 20, 6, 0.82);
  color: #fff3d0; font: 700 18px/1.1 var(--sans);
}
/* монета на кнопках цены — крупнее (kazna-17: было ≈9 px экрана) */
.sh-body .btn :is(svg, img.ico-art) { flex: none; }
body.vertical .sh-body .btn.gold :is(svg, img.ico-art) { width: 34px; height: 34px; }
body.phone-land .sh-body .btn.gold :is(svg, img.ico-art) { width: 30px; height: 30px; }

/* облики (shoplooks.js, kazna-15): картинка — крупно сверху карточки, касание — предпросмотр */
.sh-card .lk-pic[data-preview] { pointer-events: auto; cursor: pointer; }
.sh-card > .lk-pic { border-radius: 14px; background: radial-gradient(circle at 50% 42%, #f2c573, #b0702a 60%, #6a3c14); }
.lk-pic > img { object-fit: contain; filter: drop-shadow(0 6px 6px rgba(40, 20, 6, 0.45)); }
.lk-pic > img.lk-sub-march_ash { filter: grayscale(0.85) brightness(0.9) drop-shadow(0 6px 6px rgba(40, 20, 6, 0.45)); }
/* облик дракона (shop.js skinPic, geroi-18): сам дракон нынешней стадии в окрасе, броня — накладкой поверх; фон — логово */
.sh-card > .lk-pic.sh-dskin { background: radial-gradient(circle at 50% 58%, #ffd27a, #c0601e 46%, #3a1a0c 100%); }
.sh-dpic { position: relative; display: block; flex: none; width: 150px; height: 150px; }
.sh-dpic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(30, 10, 0, 0.55)); }
.sh-dpic > img.sh-dover { filter: none; }
body.vertical .sh-rail .sh-dpic { width: 228px; height: 228px; }
body:not(.vertical) .lk-card > .lk-pic .sh-dpic { width: 180px; height: 180px; }
/* предпросмотр: место действия — трава с соснами и площадкой, облик крупно; появление — мягко (один раз) */
.lk-prevwin .modal-body { padding-top: 10px; }
.lk-scene {
  position: relative; display: flex; align-items: flex-end; justify-content: center; height: 460px; margin: 0 -8px; overflow: hidden;
  border-radius: 16px; background: #4f7a3a center / 512px repeat; box-shadow: inset 0 0 60px 20px rgba(12, 20, 8, 0.55);
}
.lk-scene.lk-sc-plain { align-items: center; background: radial-gradient(circle at 50% 45%, #f6d58a, #b0702a 60%, #4a2a0e); }
.lk-sc-pad { position: absolute; left: 50%; bottom: 34px; width: 74%; height: 26%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(176, 150, 104, 0.95), rgba(140, 116, 78, 0.85) 70%, rgba(80, 70, 50, 0)); }
.lk-sc-main { position: relative; z-index: 2; max-width: 92%; max-height: 92%; margin-bottom: 18px; filter: drop-shadow(0 14px 14px rgba(10, 16, 6, 0.55)); }
.lk-sc-plain .lk-sc-main { margin: 0; }
img.lk-sc-main { width: 400px; height: 400px; object-fit: contain; }
.lk-sc-main > img { width: 300px; height: 300px; object-fit: contain; }
.lk-sc-old { opacity: 0.6; filter: grayscale(0.4); }
.lk-sc-pine { position: absolute; z-index: 1; bottom: 120px; width: 92px; height: 128px; filter: brightness(0.92); }
.lk-sc-pine.p0 { left: 2%; bottom: 150px; }
.lk-sc-pine.p1 { left: 12%; bottom: 60px; transform: scale(1.25); }
.lk-sc-pine.p2 { right: 3%; bottom: 140px; }
.lk-sc-pine.p3 { right: 13%; bottom: 52px; transform: scale(1.2); }
.lk-sc-now, .lk-sc-map {
  position: absolute; z-index: 3; bottom: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 8px; border-radius: 12px;
  background: rgba(16, 22, 12, 0.6); color: #fff3d0; font-weight: 700;
}
.lk-sc-now { left: 10px; }
.lk-sc-map { right: 10px; }
.lk-sc-now img { width: 96px; height: 96px; object-fit: contain; }
.lk-sc-now i, .lk-sc-map i { font-style: normal; font-size: max(13px, var(--fs-min)); }
.lk-prev-eff { margin: 12px 0 0; text-align: center; color: var(--w-accent, #7a4c14); }
html:not(.kod-still) .lk-scene .lk-sc-main { animation: lk-in 0.55s cubic-bezier(.2, .8, .3, 1.15) both; }
html:not(.kod-still) .lk-scene .lk-sc-pine { animation: lk-fade 0.5s ease-out both; }
@keyframes lk-in { from { opacity: 0; transform: translateY(40px) scale(0.82); } }
@keyframes lk-fade { from { opacity: 0; } }
body.vertical .lk-scene { height: 620px; margin: 0 -10px; }
body.vertical img.lk-sc-main { width: 560px; height: 560px; }
body.vertical .lk-sc-main > img { width: 420px; height: 420px; }
body.vertical .lk-sc-now img { width: 120px; height: 120px; }
/* титул на карточке облика — не мельче 22 сцены (было 16: ≈9 px экрана) */
body.vertical .lk-card > .lk-title { align-self: flex-start; font-size: var(--fs-min); line-height: 36px; padding: 0 12px; border-radius: 12px; }
body.vertical .lk-card > .lk-title .lk-tic { width: 26px; height: 26px; }
body.phone-land .lk-card > .lk-title { align-self: flex-start; font-size: var(--fs-min); line-height: 30px; }
body.vertical .lk-sc-now i, body.vertical .lk-sc-map i { font-size: var(--fs-min); }
body.vertical .lk-prev-eff { font-size: var(--fs-sub); }
body.phone-land .lk-scene { height: 440px; }
body.phone-land .lk-prev-eff { font-size: var(--fs-sub); }

/* пропуск сезона (shoppass.js, kazna-04, образец 108): облик сезона — крупно витриной, лучи за ним, ярлык «ур. 50» */
.ps-head.ps-show { flex-wrap: wrap; }
.ps-art {
  position: relative; display: flex; align-items: center; justify-content: center; flex: 1 1 100%; height: 360px; margin: 0; padding: 0; overflow: hidden;
  border: 0; border-radius: 14px; background: radial-gradient(circle at 50% 46%, #fff0bf, #f0b24c 38%, #a8641c 68%, #4a2a0e); cursor: pointer; font: inherit;
  box-shadow: inset 0 0 0 3px rgba(255, 230, 170, 0.6), inset 0 -40px 50px rgba(40, 20, 6, 0.35);
}
.ps-rays { position: absolute; inset: -40%; opacity: 0.4; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 250, 220, 0.85) 0deg 8deg, rgba(255, 250, 220, 0) 8deg 22deg);
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 75%); mask: radial-gradient(closest-side, #000 20%, transparent 75%); }
/* лучи доворачиваются при показе один раз (вечной анимации на большом узле нет — docs/ANIM.md §2.1а) */
html:not(.kod-still) .ps-rays { animation: ps-turn 2.4s cubic-bezier(.2, .7, .3, 1) 1 both; }
@keyframes ps-turn { from { transform: rotate(-40deg); opacity: 0; } }
.ps-art > img { position: relative; z-index: 1; width: 340px; height: 340px; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(40, 20, 6, 0.55)); }
html:not(.kod-still) .ps-art > img { animation: lk-in 0.6s cubic-bezier(.2, .8, .3, 1.15) both; }
.ps-tag { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; padding: 6px 14px; border-radius: 12px; transform: rotate(-6deg);
  background: linear-gradient(#ef5a48, #b8281f); border: 2px solid #ffe2a0; color: #fff; font: 700 20px/1.1 var(--sans); text-shadow: 0 1px 0 #6a120c; }
.ps-name { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 10px 60px; background: linear-gradient(rgba(40, 20, 6, 0), rgba(40, 20, 6, 0.78));
  color: #fff3d0; font: 700 22px/1.15 var(--sans); text-shadow: var(--t-outline); text-align: center; }
.ps-eye { position: absolute; z-index: 2; bottom: 10px; inset-inline-end: 12px; display: flex; padding: 8px; border-radius: 50%; background: rgba(61, 100, 147, 0.9); }
.ps-show .ps-crest { margin-top: -56px; z-index: 3; box-shadow: 0 4px 10px rgba(40, 20, 6, 0.45); }
.ps-buy .hd b { flex: 1; }
.ps-row.ps-top .paid { flex-wrap: nowrap; }
.ps-lookcell {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 120px; height: 120px; padding: 0; border: 0;
  border-radius: 14px; cursor: pointer; background: radial-gradient(circle at 50% 45%, #fff2c2, #f0b24c 50%, #a8641c);
  box-shadow: 0 0 0 3px #ffd25e, 0 0 18px 6px rgba(255, 210, 90, 0.75);
}
.ps-lookcell > img { width: 108px; height: 108px; object-fit: contain; }
body.vertical .ps-art { height: 420px; }
body.vertical .ps-art > img { width: 400px; height: 400px; }
body.vertical .ps-name { font-size: 26px; }
body.vertical .ps-tag { font-size: 22px; }
body.phone-land .ps-art { flex: 0 0 420px; height: 300px; }
body.phone-land .ps-art > img { width: 290px; height: 290px; }
body.phone-land .ps-show .ps-crest { margin-top: 0; }

/* Печати (kazna-12, образец 106): жетон с числом слева, шкала, над порогами — сундуки (готовый светится и
   подпрыгивает, взятый — открыт, с галочкой), под порогом — число печатей */
.sh-seals { display: flex; align-items: flex-end; gap: 12px; margin: 6px 0 18px; padding: 10px 12px 14px; border-radius: 16px;
  background: linear-gradient(#f6d58a, #e6a94a); box-shadow: inset 0 0 0 2px #c47a1c, 0 3px 8px rgba(80, 40, 0, 0.25); }
.sh-stok { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 96px; align-self: center; }
.sh-hex { display: flex; align-items: center; justify-content: center; width: 84px; height: 94px; font-style: normal;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(#ffe7a0, #d99a3e 60%, #a8641c); }
.sh-stok b { font: 700 26px/1 var(--sans); color: #5a3a12; }
.sh-sline { position: relative; flex: 1; min-width: 0; height: 196px; }
.sh-sbar { position: absolute; left: 0; right: 0; bottom: 40px; height: 16px; border-radius: 8px; background: rgba(90, 58, 18, 0.35); overflow: hidden; }
.sh-sbar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #7fd060, #3f9a2e); }
.sh-sstep { position: absolute; left: var(--x); bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center;
  gap: 2px; width: 104px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: #5a3a12; }
.sh-spic { position: relative; display: flex; width: 92px; height: 92px; }
.sh-spic .sh-schest { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(80, 40, 0, 0.45)); }
.sh-sstep:not(.on) .sh-spic { filter: saturate(0.55) brightness(0.92); }
.sh-sok { position: absolute; inset-inline-end: -2px; bottom: 2px; display: flex; padding: 4px; border-radius: 50%; background: #2f9a4a; box-shadow: 0 0 0 2px #fff; }
.sh-sgold { display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; border-radius: 10px; background: rgba(90, 58, 18, 0.85); color: #fff3d0; font: 700 15px/1.3 var(--sans); }
.sh-sgold :is(svg, img) { width: 18px; height: 18px; }
.sh-sn { margin-top: 26px; padding: 2px 8px; border-radius: 10px; background: #fff4d6; font: 700 18px/1.1 var(--sans); box-shadow: 0 1px 2px rgba(80, 40, 0, 0.35); }
.sh-sstep.on .sh-sn { background: #3f9a2e; color: #fff; }
.sh-sstep.ready .sh-spic img { filter: drop-shadow(0 0 10px rgba(255, 240, 140, 1)) drop-shadow(0 4px 4px rgba(80, 40, 0, 0.45)); }
html:not(.kod-still) .sh-sstep.ready .sh-spic { animation: q-chest-hop 1.6s ease-in-out infinite; }
.sh-sinfo { display: flex; justify-content: center; padding: 8px 0 4px; }
body.vertical .sh-seals { gap: 10px; padding: 12px 10px 16px; border-radius: 18px; }
body.vertical .sh-stok { width: 104px; }
body.vertical .sh-stok b { font-size: 30px; }
body.vertical .sh-sline { height: 220px; }
body.vertical .sh-sstep { width: 112px; }
body.vertical .sh-spic { width: 104px; height: 104px; }
body.vertical .sh-sn { font-size: var(--fs-min); }
body.vertical .sh-sgold { font-size: var(--fs-min); }
body.vertical .sh-sgold :is(svg, img) { width: 22px; height: 22px; }

/* Календарь героя (kazna-14, образец 112): четыре дня в ряд, главная награда — крупно посередине, остальное — мелко */
.sh-cday { align-items: center; text-align: center; }
.sh-cdn { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; }
.sh-clk { display: inline-flex; font-style: normal; color: var(--muted); }
.sh-cmain { display: flex; justify-content: center; }
.sh-cday .ic-row.sh-crest { justify-content: center; gap: 4px; }
.sh-cday .ok { display: flex; padding: 3px; border-radius: 50%; background: #2f9a4a; box-shadow: 0 0 0 2px #fff; }
body.vertical .sh-cgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
body.vertical .sh-cday { min-height: 0; gap: 6px; padding: 8px 6px 10px; font-size: var(--fs-min); }
body.vertical .sh-body .sh-cmain .ic-cell { --ic: 112px; }
body.vertical .sh-body .sh-crest .ic-cell { --ic: 60px; }
body.phone-land .sh-cgrid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
body.phone-land .sh-body .sh-cmain .ic-cell { --ic: 96px; }
body.phone-land .sh-body .sh-crest .ic-cell { --ic: 46px; }

/* Фонды (kazna-22): этап — значок (замок, герой) и число крупно, а не «Замок 10» мелко */
.sh-flv { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; }
.sh-flv :is(svg, img) { flex: none; width: 24px; height: 24px; }
.sh-flv b { font: 700 1.2em/1 var(--sans); }
body.vertical .sh-flv :is(svg, img) { width: 38px; height: 38px; }
body.vertical .sh-flv b { font-size: 28px; }
body.phone-land .sh-flv :is(svg, img) { width: 32px; height: 32px; }
body.phone-land .sh-flv b { font-size: 24px; }

/* Вход (kazna-13): взятый день — бледнее, галочка маленькой в углу (награда видна); кнопка — широкая, в одну строку */
.sh-day .sh-ok { left: auto; top: auto; inset-inline-end: 6px; bottom: 6px; width: 34px; height: 34px; margin: 0; }
body.vertical .sh-day .sh-ok { width: 44px; height: 44px; margin: 0; }
body.vertical .sh-day .sh-ok :is(svg, img) { width: 26px; height: 26px; }
.sh-modal .sh-day.got .sh-dbody { filter: saturate(0.45) brightness(0.92); }
.sh-act .btn.cta { max-width: 600px; white-space: nowrap; }
body.vertical .sh-act .btn.cta.sh-wide { min-width: 460px; }

/* подарок первой покупки рядом с предложением (kazna-16): плотный тёплый фон, коробка крупно, заголовок читается */
.sh-modal .sh-first { background: linear-gradient(90deg, #fff1cf, #f4d595); border-color: #c99a4e; }
.sh-modal .sh-first .t b { color: #6a3c10; font-family: var(--sans); text-shadow: none; }
.sh-modal .sh-first .t span { color: #7a5a2a; }
.sh-first .sh-fpic { flex: none; width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(80, 40, 0, 0.4)); }
body.vertical .sh-first .sh-fpic { width: 130px; height: 130px; }
body.phone-land .sh-modal .sh-first .t b { color: #6a3c10; text-shadow: none; }
/* подарки альянса: картинка и кнопки в ряд */
.sh-gifts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.sh-gifts .sh-gpic { flex: none; filter: drop-shadow(0 4px 6px rgba(40, 20, 6, 0.4)); }

/* Лавка в Казне: «Строители и очереди» и «?» — своей строкой (kazna-24) */
.sh-storebar { justify-content: space-between; }

/* «Шансы» Драконьего яйца (odds.js, kazna-25): яйцо над таблицей, строки — ячейки и процент */
.od-art { display: flex; justify-content: center; margin: -4px 0 6px; }
.od-art img { width: 200px; height: 200px; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(30, 8, 0, 0.5)); }
.od-cells .od-nm .ic-row { gap: 8px; }
body.vertical .od-art img { width: 240px; height: 240px; }
body.vertical .od-cells td { height: auto; padding-block: 8px; }
body.vertical .od-cells .od-p { font-size: var(--fs-body); font-weight: 700; vertical-align: middle; }
/* редкость героя и жителя в «Шансах» — самоцвет её цвета перед названием (odds.js gemSvg, geroi-12), не «★★★» */
.od-nm .od-gem { flex: none; margin-inline-end: 8px; vertical-align: -7px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }
body.vertical .od-nm .od-gem { width: 34px; height: 34px; vertical-align: -9px; }
body.phone-land .od-nm .od-gem { width: 30px; height: 30px; vertical-align: -8px; }

/* ═══ лёжа и на ПК (kazna-19): картинка карточки — слева крупно (была в углу 56), сундук VIP — тоже ═══ */
body:not(.vertical) .sh-card:has(> .sh-art, > .sh-pic):not(.lk-card) {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 14px; row-gap: 8px; align-content: start;
}
body:not(.vertical) .sh-card:has(> .sh-art, > .sh-pic):not(.lk-card) > * { grid-column: 2; }
body:not(.vertical) .sh-card:not(.lk-card) > :is(.sh-art, .sh-pic) {
  position: static; grid-column: 1; grid-row: 1 / span 3; align-self: start; display: flex; align-items: center; justify-content: center;
  width: 150px; height: 150px; border-radius: 14px; opacity: 1; background: radial-gradient(circle at 50% 40%, #f2b75a, #a8641c 62%, #6a3c14);
  box-shadow: inset 0 0 0 2px rgba(255, 230, 170, 0.5);
}
body:not(.vertical) .sh-card:not(.lk-card) > :is(.sh-art, .sh-pic) > :is(svg, img) { width: 128px; height: 128px; object-fit: contain; }
body:not(.vertical) .sh-card:has(> .sh-art, > .sh-pic):not(.lk-card) > :is(.ft, .sh-track) { grid-column: 1 / -1; }
/* облики: картинка сверху во всю ширину карточки */
body:not(.vertical) .sh-rail > .lk-card { display: flex; flex-direction: column; }
body:not(.vertical) .lk-card > .lk-pic { position: static; align-self: stretch; width: auto; height: 190px; opacity: 1; display: flex; align-items: center; justify-content: center; }
body:not(.vertical) .lk-card > .lk-pic > :is(img, svg) { width: 170px; height: 170px; }
body:not(.vertical) .lk-card .hd, body:not(.vertical) .lk-card .lk-eff { padding-right: 0; }
body:not(.vertical) .lk-card > .sh-note, body:not(.vertical) .lk-card > .lk-title { margin-right: 0; }
/* товары лавок лёжа: ячейка 120 (≈ 69 px экрана), 6–7 плиток в ряд */
body.phone-land .sh-tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
body.phone-land .sh-tile .sh-tic .ic-cell { --ic: 120px; }
/* картинка набора по главному предмету: число и ступень — наклейками на ней */
body.vertical .sh-card > .sh-art.sub, body:not(.vertical) .sh-card:not(.lk-card) > .sh-art.sub { position: relative; }
.sh-art .sh-atag {
  position: absolute; top: 6px; inset-inline-start: 6px; padding: 2px 8px; border-radius: 10px; background: rgba(20, 30, 46, 0.85);
  color: #fff; font: 700 18px/1.1 var(--sans); text-shadow: 0 1px 1px #000;
}
body.vertical .sh-art :is(.sh-atag, .sh-an) { font-size: 22px; }
body.vertical .sv-on, body.vertical .sv-off { font-size: var(--fs-min); }
body.vertical .sh-card .sh-note :is(svg, img.ico-art) { width: 26px; height: 26px; vertical-align: -5px; }

/* окно заказа (shop.js askBuy, kazna-28): картинка товара крупно, что внутри, цена на золотой кнопке — её касание
   подтверждает покупку (тестовая оплата, крупная трата золота) */
.sh-order { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.sh-order .sh-obanner { width: auto; height: 220px; min-height: 0; border-radius: 14px; }
.sh-obanner > img { width: 200px; height: 200px; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(40, 20, 6, 0.5)); }
.sh-oart { position: relative; display: flex; align-items: center; justify-content: center; width: 200px; height: 200px; }
.sh-oart > img, .sh-oart > .sh-dpic { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(40, 20, 6, 0.5)); }
.sh-oart.sh-art .sh-aimg { width: 100%; height: 100%; object-fit: contain; }
.sh-order > .sh-loot { justify-content: center; }
.sh-order .sh-test { text-align: center; margin: 0; }
.sh-obtns { display: flex; justify-content: center; }
.sh-obtns .btn.cta { min-width: 220px; gap: 8px; }
.sh-obtns .btn :is(svg, img.ico-art) { flex: none; }
html:not(.kod-still) .sh-orderwin .sh-obanner > * { animation: lk-in 0.45s cubic-bezier(.2, .8, .3, 1.15) both; }
body.vertical .sh-order { gap: 16px; }
body.vertical .sh-order .sh-obanner { height: 300px; }
body.vertical .sh-obanner > img, body.vertical .sh-oart { width: 270px; height: 270px; }
body.vertical .sh-obtns .btn.cta { min-width: 320px; height: 80px; font-size: var(--fs-btn); }
body.vertical .sh-obtns .btn :is(svg, img.ico-art) { width: 38px; height: 38px; }
body.phone-land .sh-order .sh-obanner { height: 200px; }
body.phone-land .sh-obanner > img, body.phone-land .sh-oart { width: 180px; height: 180px; }
body.vertical .sh-order .ic-cell { --ic: 96px; }
body.vertical .sh-order .sh-test { font-size: var(--fs-min); }
body.phone-land .sh-order .ic-cell { --ic: 80px; }
/* кубик на «Шансы» в Казне и Лавках — крупнее (icon('dice', 15) — картинка: правило heroes.css для svg её не растит) */
body.vertical .sh-modal .od-btn :is(svg, img.ico-art) { width: 30px; height: 30px; vertical-align: -7px; }
body.phone-land .sh-modal .od-btn :is(svg, img.ico-art) { width: 26px; height: 26px; vertical-align: -6px; }
