/* Магазин (/shop) і сторінка результату оплати (/shop/result), 24.10 — у стилі лобі: фон-арт шахти, темні панелі,
   золото. Каркас статичний: картка VIP і п'ять пакетів мають розмір наперед; рядок підказки (sh-note) — висоту наперед. */
.sh-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(180deg, rgba(11, 8, 5, .5) 0%, rgba(11, 8, 5, .76) 40%, rgba(11, 8, 5, .93) 100%),
    var(--art-lobby, none), radial-gradient(ellipse at 50% -10%, #4a3112 0%, #1a1009 45%, #0b0805 80%);
  background-size: cover; background-position: center top; background-repeat: no-repeat; }
.sh-wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 28px 20px 52px; color: #eadfc8; }
.sh-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; margin-bottom: 10px; }
.sh-h { margin: 0 0 10px; font: 400 44px/1 var(--display); color: #fff3da; text-shadow: 0 2px 0 #000, 0 0 30px rgba(255, 209, 102, .35); }
.sh-sub { margin: 0; max-width: 560px; color: #d4c7aa; font-size: 15px; line-height: 1.5; text-shadow: 0 1px 2px #000; }
.sh-me { display: flex; align-items: center; gap: 12px; padding: 12px 18px; min-width: 250px; height: 64px; box-sizing: border-box; }
.sh-me .coin { font-size: 30px; }
.sh-me-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sh-me-t b { font: 800 22px/1 var(--font); color: #ffe7a8; font-variant-numeric: tabular-nums; }
.sh-me-t span { color: #a89c84; font-size: 12.5px; }
.sh-me-vip { margin-left: auto; color: #ffd166; font: 700 13px/1.2 var(--font); text-align: right; max-width: 130px; }
.sh-note { margin: 0 0 12px; min-height: 22px; line-height: 22px; color: #ffcf7a; font-weight: 600; text-shadow: 0 1px 2px #000; }
.sh-note a { color: #ffd166; }
/* «оплата скоро запрацює» — спокійна інформація, не помилка */
.sh-note.info { color: #e8dcc2; }
.sh-note.info::before { content: 'ⓘ'; color: #ffd166; margin-right: 7px; font-weight: 800; }
.sh-note.pulse { animation: sh-pulse .9s ease-out; }
@keyframes sh-pulse { 0% { color: #fff3da; text-shadow: 0 0 14px rgba(255, 209, 102, .9); } 100% { text-shadow: 0 1px 2px #000; } }
.sh-cur { color: #a89c84; font-size: 12px; font-weight: 700; letter-spacing: .06em; }

.sh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 18px; align-items: start; }

/* ---------- VIP ---------- */
.sh-vip { overflow: hidden; min-height: 470px; display: flex; flex-direction: column; border-color: rgba(255, 209, 102, .4); }
.sh-vip-art { position: relative; height: 150px; flex: none; background: var(--art-royale, none) center 35% / cover, linear-gradient(#5a3a12, #1a1009); }
.sh-vip-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(23, 16, 9, .97)); }
.sh-crown { position: absolute; z-index: 1; left: 18px; bottom: 12px; padding: 7px 14px; border-radius: 999px; background: linear-gradient(180deg, #ffe39a, #ffb43f);
  color: #2b1800; font: 800 15px/1 var(--font); letter-spacing: .1em; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.sh-vip-body { padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.sh-vip-h { margin: 0; font: 800 22px/1.2 var(--font); color: #fff3da; }
.sh-perks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sh-perks li { position: relative; padding-left: 26px; color: #e8dcc2; font-size: 15px; line-height: 1.4; }
.sh-perks li::before { content: '✓'; position: absolute; left: 2px; top: 0; color: #ffd166; font-weight: 800; }
.sh-vip-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.sh-price { display: flex; flex-direction: column; gap: 2px; }
.sh-price b { font: 400 34px/1 var(--display); color: #fff3da; font-variant-numeric: tabular-nums; }
.sh-price small { color: #a89c84; font-size: 13px; }
.sh-vip-buy .btn { min-width: 190px; }
.sh-vip-state { margin: 0; min-height: 20px; color: #8ff0bf; font: 700 14px/20px var(--font); }
.sh-vip-state.forever { color: #ffd166; }

/* ---------- пакети коінів ---------- */
.sh-packs-h { margin: 0 0 6px; font: 400 28px/1.1 var(--display); color: #fff3da; text-shadow: 0 2px 0 #000; }
.sh-packs-get { margin: -8px 0 14px; color: #c9bc9f; font-size: 13.5px; line-height: 1.45; text-shadow: 0 1px 2px #000; }
.sh-packs-sub { margin: 0 0 14px; color: #d4c7aa; font-size: 14.5px; line-height: 1.45; text-shadow: 0 1px 2px #000; }
.sh-pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sh-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 12px 14px; height: 248px; box-sizing: border-box; text-align: center; }
/* останній (найбільший) пакет — на дві колонки ЗАВЖДИ (3 колонки: 50·100·500 / 1000·5000; 2 колонки: … / 5000): розкладка
   не залежить від даних; «найвигідніший» — лише підсвітка й мітка */
.sh-pack:last-child { grid-column: span 2; }
.sh-pack:last-child .btn { max-width: 300px; }
.sh-pack.best { border-color: rgba(255, 209, 102, .65); box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 26px rgba(255, 209, 102, .18);
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 209, 102, .14), transparent 65%), rgba(23, 16, 9, .92); }
/* мітки — окремим рядом над монетами (висота наперед): нічого не налазить */
.sh-tags { display: flex; align-self: stretch; justify-content: space-between; gap: 6px; height: 22px; }
.sh-best, .sh-save { height: 22px; padding: 0 8px; border-radius: 999px; font: 800 12px/22px var(--font); white-space: nowrap; visibility: hidden; }
.sh-save { margin-left: auto; color: #0f2a1d; background: #8ff0bf; }
.sh-best { color: #2b1800; background: linear-gradient(180deg, #ffe39a, #ffb43f); }
.sh-save.on, .sh-best.on { visibility: visible; }
.sh-pile { position: relative; display: block; width: 74px; height: 50px; margin-top: 6px; }
/* 24.10 вечір: купка — арт Сари (public/art/coins.css, .coin-pack[data-n]); <i>-монетки CSS лишились запасом для старої розмітки */
.sh-pile.coin-pack { width: 104px; height: 74px; margin: -8px 0 -6px; }
.sh-pile i { position: absolute; width: 30px; height: 30px; border-radius: 50%; bottom: 0;
  background: radial-gradient(circle at 35% 30%, #fff3c4 0 14%, transparent 15%), radial-gradient(circle, #ffd56a 0 52%, #e3a21c 53% 62%, #ffcf4d 63% 100%);
  box-shadow: inset 0 0 0 1px rgba(122, 74, 0, .55), 0 2px 0 rgba(0, 0, 0, .4); }
.sh-pile i:nth-child(1) { left: 22px; }
.sh-pile i:nth-child(2) { left: 6px; bottom: 3px; }
.sh-pile i:nth-child(3) { left: 38px; bottom: 4px; }
.sh-pile i:nth-child(4) { left: 22px; bottom: 16px; }
.sh-pile i:nth-child(5) { left: 30px; bottom: 26px; width: 26px; height: 26px; }
.sh-n { font: 400 30px/1 var(--display); color: #ffe7a8; font-variant-numeric: tabular-nums; margin-top: 4px; }
.sh-nw { color: #a89c84; font-size: 13px; }
.sh-pp { font: 800 18px/1 var(--font); color: #fff3da; margin-top: 6px; font-variant-numeric: tabular-nums; }
.sh-pack > .sh-cur { margin: 2px 0 auto; }
.sh-pack .btn { width: 100%; height: 40px; }
.sh-skins { display: inline-block; margin-top: 12px; color: #ffd166; font-weight: 600; text-shadow: 0 1px 2px #000; }
/* ---------- як проходить покупка ---------- */
.sh-how { margin-top: 22px; padding: 18px 20px; }
.sh-how h2 { margin: 0 0 12px; font: 800 18px/1.2 var(--font); color: #ffe7a8; }
.sh-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: sh-step; }
.sh-steps li { position: relative; padding: 12px 14px 12px 50px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 209, 102, .14);
  display: flex; flex-direction: column; gap: 4px; counter-increment: sh-step; }
.sh-steps li::before { content: counter(sh-step); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(180deg, #ffe39a, #ffb43f); color: #2b1800; font: 800 14px/26px var(--font); text-align: center; }
.sh-steps b { color: #fff3da; font: 800 15px/1.3 var(--font); }
.sh-steps span { color: #c9bc9f; font-size: 13.5px; line-height: 1.45; }
.sh-contact { margin: 14px 0 0; color: #c9bc9f; font-size: 14px; line-height: 1.5; }
.sh-contact a { color: #ffd166; font-weight: 600; }
.sh-legal { margin: 22px 0 0; color: #a89c84; font-size: 13px; line-height: 1.55; text-shadow: 0 1px 2px #000; max-width: 820px; }
.sh-legal a { color: #ffd166; }
.sh-page .btn[disabled] { opacity: .45; cursor: default; filter: grayscale(.4); }
.sh-page .btn.busy { opacity: .7; cursor: progress; }

/* ---------- результат оплати ---------- */
.sr-card { min-height: 360px; }
.sr-card .acc-icon.spin { animation: sr-pulse 1.1s ease-in-out infinite; }
@keyframes sr-pulse { 50% { transform: scale(.92); opacity: .7; } }
.sr-what { margin: 0; color: #ffe7a8; font: 800 20px/1.3 var(--font); min-height: 26px; }
.sr-ref { margin: 0; color: #8f846e; font-size: 12.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .sh-grid { grid-template-columns: minmax(0, 1fr); }
  .sh-vip { min-height: 0; }
}
@media (max-width: 600px) {
  .sh-wrap { padding: 16px 12px 36px; }
  .sh-top { grid-template-columns: minmax(0, 1fr); }
  .sh-h { font-size: 32px; }
  .sh-me { min-width: 0; }
  /* підказка на телефоні — до двох рядків; місце під них є завжди (клік «Купити» без кредів нічого не зсуває) */
  .sh-note { min-height: 44px; font-size: 14px; }
  .sh-vip-art { height: 120px; }
  .sh-vip-buy { flex-direction: column; align-items: stretch; }
  .sh-vip-buy .btn { min-width: 0; width: 100%; }
  .sh-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sh-pack { height: 236px; padding: 10px 10px 12px; }
  .sh-n { font-size: 26px; }
  .sh-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sh-how { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .sr-card .acc-icon.spin { animation: none; } }

/* ---------- Xsolla (25.10) ---------- */
/* рядок «ціни для: країна · від Xsolla» під заголовком — висота наперед (вітрина довантажується, нічого не стрибає) */
.sh-where { margin: 8px 0 0; min-height: 20px; color: #a89c84; font-size: 13px; line-height: 20px; text-shadow: 0 1px 2px #000; }
/* пісочниця Xsolla — бачить лише адмін, коли оплата в тестовому режимі */
.sh-sandbox { margin: 0 0 12px; padding: 9px 14px; border: 1px dashed rgba(143, 240, 191, .55); border-radius: 10px; color: #bff5d8; background: rgba(20, 60, 40, .35); font-size: 14px; }
.sh-sandbox[hidden] { display: none; }
.sh-seller { margin: 14px 0 0; color: #c9bc9f; font-size: 13.5px; line-height: 1.5; }
.sh-seller a { color: #ffd166; font-weight: 600; }
.sh-page .btn:disabled { filter: grayscale(.55); }

/* ---------- ads-product (24.10) ---------- */
/* Телефон, українська: «Купити за $8.90» / «$16.90» не влазили в кнопку пакета й переносились під обріз (Саша). Напис —
   одним рядком: менший шрифт і поля на вузькому, у крайньому разі — три крапки замість переносу. */
.sh-pack .btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; padding-right: 8px; }
@media (max-width: 600px) { .sh-pack .btn { font-size: clamp(12.5px, 3.7vw, 15px); padding-left: 6px; padding-right: 6px; } }
/* «Стати VIP» з вікна в лобі веде на /shop#vip — картка VIP підсвічена (кільце, що дихає двічі) */
.sh-vip:target { border-color: #ffd166; box-shadow: 0 0 0 3px rgba(255, 209, 102, .55), 0 18px 46px rgba(0, 0, 0, .55); scroll-margin-top: 190px; }
.sh-vip:target::after { content: ''; position: absolute; inset: -3px; border-radius: inherit; border: 3px solid #ffd166; pointer-events: none;
  animation: sh-vip-hl 1.4s ease-out 2; opacity: 0; }
.sh-vip { position: relative; }
@keyframes sh-vip-hl { from { opacity: .95; transform: scale(1); } to { opacity: 0; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .sh-vip:target::after { animation: none; } }
html.fx-off .sh-vip:target::after { animation: none; }
