/* 🛒 Витрина магазина (20.10.2026). Префикс sf-. Зелёного нет. Подробности — storefront.js. */

/* ------------------------------------------------------------------ баланс */
.sf-bal { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
span.sf-bal-chip { cursor: default; color: var(--ink); }
.sf-bal-chip .icon-inline { width: 16px; height: 16px; flex: none; }
.sf-cos { display: flex; flex-direction: column; gap: 12px; }
.sf-cos .cs-grid { margin: 0; }
.sf-bal-chip { display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--panel-line); }
.sf-bal-chip b { font: 700 14px/1 var(--serif); font-variant-numeric: tabular-nums; }
.sf-bal-chip .coin-svg, .sf-bal-chip .star-svg { width: 18px; height: 18px; }
.sf-bal-add { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid rgba(255, 198, 92, .5); background: rgba(255, 198, 92, .12); color: #ffc65c; font: 700 21px/1 var(--serif); }
.sf-bal-add:active { transform: scale(.94); }

.sf-kicker { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--t, var(--pink)); }

/* ------------------------------------------------------------------ реклама (общий магазин) */
.sf-promo { margin: 0 0 14px; min-width: 0; max-width: 100%; overflow: hidden; border-radius: 24px; }
.sf-promo-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sf-promo-track::-webkit-scrollbar { display: none; }
.sf-promo-card { position: relative; flex: 0 0 100%; scroll-snap-align: center; min-height: 176px; overflow: hidden; cursor: pointer;
  border-radius: 24px; padding: 18px 18px 16px; border: 1px solid var(--ta);
  background: radial-gradient(110% 100% at 100% 0%, var(--ta), transparent 62%), linear-gradient(135deg, var(--t2d), #120816 78%);
  box-shadow: 0 12px 30px var(--tc); }
.sf-promo-card::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .13) 50%, transparent 62%); transform: translateX(-120%); animation: sf-shine 5.5s ease-in-out infinite; }
@keyframes sf-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.sf-promo-art { position: absolute; right: -6px; top: 8px; width: 132px; height: 132px; transform: rotate(8deg); animation: sf-float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 22px var(--ta)); opacity: .96; }
.sf-promo-art .item-svg { width: 100%; height: 100%; }
@keyframes sf-float { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-6px); } }
/* нарисованный арт: чёрный фон растворяется (screen), края — мягкой маской */
.sf-promo-art.pic, .sf-chest-art.pic { filter: none; transform: none; animation: none; }
.sf-promo-art.pic { right: -36px; top: 2px; width: 196px; height: 196px; }
.sf-promo-card .sf-promo-body { max-width: 58%; }
.sf-promo-card .sf-promo-title { font-size: 22px; }
.sf-promo-art.pic img, .sf-chest-art.pic img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%); mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
  animation: sf-bob 4.6s ease-in-out infinite; }
@keyframes sf-bob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.025); } }
/* живой пример украшений на рекламе сундука красоты: аватар с рамкой и ник со стилем меняются каждые 2 с */
.sf-promo-card.has-sample { min-height: 192px; }
.sf-promo-card.has-sample .sf-promo-art.pic { top: auto; bottom: -34px; right: -30px; width: 116px; height: 116px; opacity: .9; }
.sf-sample { position: absolute; z-index: 2; right: 10px; top: 18px; width: 38%; display: flex; flex-direction: column; align-items: center; gap: 7px; pointer-events: none; }
.sf-sample .pf-ava { width: 66px; height: 66px; font-size: 24px; }
.sf-sample-nick { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 16px/1.25 var(--serif); }
.sf-sample-cap { padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  color: var(--c, #fff); background: rgba(0, 0, 0, .42); border: 1px solid var(--c, rgba(255, 255, 255, .3)); transition: color .3s, border-color .3s; }
.sf-promo-card.has-bg { background: linear-gradient(90deg, rgba(14, 8, 20, .94) 12%, rgba(14, 8, 20, .35) 75%), var(--bg) center / cover; }
.sf-chest-art.pic { width: 116px; height: 116px; margin: -10px 0 -8px -12px; }
.sf-badge { position: absolute; left: 14px; top: 12px; padding: 3px 9px; border-radius: 999px; font: 800 10px/1.4 var(--sans, inherit);
  letter-spacing: .1em; text-transform: uppercase; color: #1b0d10; background: linear-gradient(90deg, #ffe08a, #ffb347); z-index: 2; }
.sf-promo-body { position: relative; z-index: 1; max-width: 66%; display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.sf-promo-card:has(.sf-badge) .sf-promo-body { padding-top: 22px; }
.sf-promo-title { font: 700 24px/1.08 var(--serif); }
.sf-promo-text { font-size: 12.5px; line-height: 1.4; color: var(--ink-dim); }
.sf-cta { align-self: flex-start; margin-top: 6px; padding: 10px 16px; border: 0; border-radius: 14px; cursor: pointer; font: 800 13px/1 var(--sans, inherit); color: #1a0c14;
  display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #fff1c4, var(--t, #ffc65c)); box-shadow: 0 6px 18px var(--tb); }
.sf-cta .star-svg, .sf-cta .coin-svg { width: 16px; height: 16px; }
.sf-cta:active { transform: scale(.97); }
.sf-dots { display: flex; justify-content: center; gap: 6px; margin-top: 9px; }
.sf-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .2); transition: width .2s, background .2s; }
.sf-dots i.on { width: 20px; background: var(--pink); }

/* ------------------------------------------------------------------ вкладки игр: сегменты */
#screen-shop .list { min-width: 0; }
#screen-shop .list > * { min-width: 0; max-width: 100%; }

/* ------------------------------------------------------------------ магазин катаны: шапка и сундуки */
#screen-shop.sf-chop .screen-title { color: #ffd9d0; }
#screen-shop.sf-chop .screen-title .ui-svg { color: #ff6b5e; }
.sf-forge { position: relative; height: 148px; margin: 0 0 12px; overflow: hidden; border-radius: 24px; border: 1px solid rgba(255, 107, 94, .4);
  background: radial-gradient(90% 120% at 100% 100%, rgba(255, 94, 82, .32), transparent 60%), linear-gradient(135deg, #3b0f1a, #150810 72%); }
.sf-forge::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(255, 255, 255, .025) 14px 15px); pointer-events: none; }
.sf-forge-canvas { position: absolute; left: 22%; top: 0; width: 78%; height: 100%; }
.sf-forge-body { position: relative; z-index: 1; padding: 18px; max-width: 58%; display: flex; flex-direction: column; gap: 5px; }
.sf-forge .sf-kicker { color: #ff8b7e; }
.sf-forge-title { font: 700 26px/1.05 var(--serif); }
.sf-forge-text { font-size: 12.5px; line-height: 1.4; color: rgba(255, 224, 218, .72); }

.sf-chests { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.sf-chest { position: relative; overflow: hidden; text-align: left; cursor: pointer; color: var(--ink); font: inherit; min-height: 176px; padding: 14px;
  border-radius: 22px; border: 1px solid var(--ta);
  background: radial-gradient(120% 90% at 50% 0%, var(--ta), transparent 65%), linear-gradient(180deg, var(--t2d), #120816 85%);
  box-shadow: 0 10px 26px var(--tc); display: flex; flex-direction: column; gap: 4px; }
.sf-chest::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .12) 50%, transparent 62%); transform: translateX(-120%); animation: sf-shine 6s ease-in-out infinite; }
.sf-chest:active { transform: scale(.98); }
.sf-chest-art { width: 74px; height: 74px; margin: 0 0 6px; filter: drop-shadow(0 0 18px var(--ta)); animation: sf-float 4.2s ease-in-out infinite; }
.sf-chest-art .item-svg { width: 100%; height: 100%; }
.sf-chest-name { font: 700 19px/1.05 var(--serif); }
.sf-chest-hook { font-size: 12px; color: var(--ink-dim); }
.sf-chest-price { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px;
  font: 800 13px/1 var(--sans, inherit); color: #ffe7a8; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 198, 92, .45); }
.sf-chest-price .star-svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ баннеры разделов (арт fal, один стиль) */
.sf-banner, .sf-sechead { position: relative; display: block; width: 100%; overflow: hidden; text-align: left; cursor: pointer; color: var(--ink); font: inherit; padding: 0;
  border-radius: 24px; border: 1px solid var(--ta); background: #130a18; box-shadow: 0 10px 28px var(--tc); }
.sf-banner { height: 132px; margin: 0 0 12px; }
.sf-sechead { height: 112px; margin: 0 0 12px; cursor: default; }
.sf-banner::before, .sf-sechead::before { content: ''; position: absolute; inset: 0; background: var(--bg) right center / cover no-repeat; }
.sf-banner.flip::before, .sf-sechead.flip::before { transform: scaleX(-1); }
.sf-banner::after, .sf-sechead::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 8, 20, .94) 4%, rgba(14, 8, 20, .62) 44%, rgba(14, 8, 20, .04) 82%); }
.sf-banner:active { transform: scale(.985); }
.sf-banner-body { position: absolute; z-index: 1; left: 18px; right: 70px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; }
.sf-sechead .sf-banner-body { left: 66px; }
.sf-banner-title { font: 700 24px/1.05 var(--serif); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.sf-banner-sub { font-size: 12px; line-height: 1.35; color: rgba(255, 238, 248, .78); max-width: 62%; }
.sf-banner-stat { margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--t, var(--pink)); display: flex; align-items: center; gap: 4px; }
.sf-banner-stat .star-svg, .sf-banner-stat .coin-svg { width: 14px; height: 14px; }
.sf-banner-go { position: absolute; z-index: 1; right: 14px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .4); border: 1px solid var(--ta); }
.sf-banner-go .ui-svg { width: 14px; height: 14px; }
.sf-sechead-back { position: absolute; z-index: 2; left: 14px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; padding: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .45); border: 1px solid var(--ta); color: var(--ink); }
.sf-sechead-back .ui-svg { width: 15px; height: 15px; transform: rotate(180deg); }
.sf-sechead .sf-banner-sub { max-width: 80%; }

/* широкая карточка сундука внутри раздела */
.sf-wide { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; overflow: hidden; cursor: pointer; text-align: left; color: var(--ink); font: inherit;
  margin: 0 0 12px; padding: 10px 12px 10px 4px; border-radius: 22px; border: 1px solid var(--ta);
  background: radial-gradient(100% 140% at 0% 50%, var(--ta), transparent 62%), linear-gradient(135deg, var(--t2d), #120816 82%); box-shadow: 0 10px 26px var(--tc); }
.sf-wide::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .11) 50%, transparent 62%); transform: translateX(-120%); animation: sf-shine 6.5s ease-in-out infinite; }
.sf-wide:active { transform: scale(.985); }
.sf-wide-art { width: 104px; height: 104px; flex: none; }
.sf-wide-art img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; animation: sf-bob 4.6s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 72%); mask-image: radial-gradient(circle, #000 52%, transparent 72%); }
.sf-wide-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sf-wide-hook { font: 700 19px/1.1 var(--serif); }
.sf-wide-text { font-size: 11.5px; line-height: 1.35; color: var(--ink-dim); }
.sf-wide-price { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; font: 800 14px/1 var(--sans, inherit); color: #ffe7a8; }
.sf-wide-price .star-svg { width: 15px; height: 15px; vertical-align: -2px; }
/* 29.10.2026: число и звезда — одной строкой (раньше колонка flex ставила звезду отдельной строкой под числом) */
.sf-wide-price .sf-wp-n { display: inline-flex; align-items: center; gap: 4px; font-style: normal; }
.sf-wide-price span { padding: 7px 12px; border-radius: 12px; color: #1a0c14; font-size: 12px; background: linear-gradient(135deg, #fff1c4, var(--t, #ffc65c)); }

/* 🎁 подарочные сундуки (14.11.2026): неоткрытые, подаренные за уровни сада — карточка «ДОСТУПНО N», золотая кромка, нажатие открывает */
.sf-gifts { display: flex; flex-direction: column; }
.sf-gifts:empty { display: none; }
.sf-gift { border-color: rgba(255, 214, 120, .85); box-shadow: 0 0 0 1px rgba(255, 214, 120, .5), 0 0 26px rgba(255, 200, 90, .32); animation: sf-gift-glow 2.6s ease-in-out infinite; }
.sf-gift .sf-wide-hook { font-size: 16px; line-height: 1.18; }
.sf-gift-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sf-gift-chip { padding: 3px 8px; border-radius: 999px; font: 800 9.5px/1 var(--sans, inherit); letter-spacing: .14em; color: #1a0c14; background: linear-gradient(135deg, #fff1c4, #ffc65c); }
.sf-gift .sf-wide-price .sf-wp-n { font-size: 12px; letter-spacing: .07em; text-align: center; line-height: 1.15; }
@keyframes sf-gift-glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 214, 120, .45), 0 0 18px rgba(255, 200, 90, .24); } 50% { box-shadow: 0 0 0 1px rgba(255, 214, 120, .8), 0 0 32px rgba(255, 200, 90, .5); } }

.sf-mine { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px; padding: 12px 14px; border-radius: 20px; cursor: pointer; text-align: left; color: var(--ink); font: inherit;
  background: var(--panel); border: 1px solid var(--panel-line); }
.sf-mine-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 13px; background: rgba(255, 143, 208, .12); border: 1px solid rgba(255, 143, 208, .3); }
.sf-mine-ico .item-svg { width: 24px; height: 24px; }
.sf-mine-text { flex: 1; min-width: 0; }
.sf-mine-text b { display: block; font: 700 15px/1.1 var(--serif); }
.sf-mine-text i { display: block; margin-top: 3px; font-style: normal; font-size: 11.5px; color: var(--ink-dim); }
.sf-mine > .ui-svg { width: 14px; height: 14px; opacity: .7; }

/* ------------------------------------------------------------------ вкладка «Сад» */
.sf-garden { display: flex; flex-direction: column; gap: 12px; }
.sf-gshop { position: relative; overflow: hidden; min-height: 158px; border-radius: 24px; padding: 0; text-align: left; cursor: pointer; color: var(--ink); font: inherit;
  border: 1px solid rgba(255, 143, 208, .4); background: #14101f; }
.sf-gshop-img { position: absolute; inset: 0; background: url(/static/hub/garden.webp) center / cover; }
.sf-gshop::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(14, 8, 20, .96) 4%, rgba(14, 8, 20, .5) 55%, rgba(14, 8, 20, .08)); }
.sf-gshop-body { position: absolute; z-index: 2; left: 16px; right: 60px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.sf-gshop-title { font: 700 25px/1.05 var(--serif); }
.sf-gshop-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-gshop-chips span { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.sf-gshop-go { position: absolute; z-index: 2; right: 14px; bottom: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 143, 208, .2); border: 1px solid rgba(255, 143, 208, .5); }
.sf-gshop-go .ui-svg { width: 14px; height: 14px; }
.sf-gshop:active { transform: scale(.985); }

.sf-gstars { position: relative; overflow: hidden; border-radius: 24px; padding: 18px; border: 1px solid var(--ta);
  background: radial-gradient(110% 100% at 100% 0%, var(--ta), transparent 62%), linear-gradient(135deg, var(--t2d), #120816 78%); box-shadow: 0 12px 30px var(--tc); }
.sf-gstars .sf-badge { position: static; display: inline-block; margin-bottom: 10px; }
.sf-gstars-title { font: 700 23px/1.1 var(--serif); margin: 4px 0 12px; }
.sf-gstars-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sf-gstars-list li { display: flex; align-items: center; gap: 12px; padding: 9px 11px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .08); }
.sf-gstars-list i { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.sf-gstars-list i .item-svg { width: 26px; height: 26px; }
.sf-gstars-list b { display: block; font-size: 13.5px; }
.sf-gstars-list em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-dim); margin-top: 2px; }
.sf-gstars .sf-cta .ui-svg { width: 12px; height: 12px; }

/* ------------------------------------------------------------------ сетка разделов */
.sf-grid .nav-card { border-radius: 20px; }
/* плитка раздела с нарисованной картинкой: картинка на весь фон, внизу затемнение под подпись */
.sf-grid .sf-tile { height: 124px; }
.sf-tile-img { position: absolute; inset: 0; background: #130a18 center / cover no-repeat; transition: transform .35s; }
.sf-tile:active .sf-tile-img { transform: scale(1.04); }
.sf-tile::after { background: linear-gradient(0deg, rgba(14, 8, 20, .95) 6%, rgba(14, 8, 20, .5) 46%, rgba(14, 8, 20, .02) 100%) !important; }
.sf-tile .nav-card-title { text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.sf-grid .sf-tile:last-child:nth-child(odd) { height: 124px; }
#screen-shop.sf-chop .sf-grid .nav-card { border-color: rgba(255, 107, 94, .26); }
#screen-shop.sf-all .sf-grid .nav-card { border-color: rgba(255, 143, 208, .3); }
#screen-shop.sf-chop .sf-grid .nav-card-arrow .ui-svg { color: #ff8b7e; }

/* ------------------------------------------------------------------ раздел со списком товаров */
.sf-cathead { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.sf-back { width: 38px; height: 38px; border-radius: 50%; flex: none; cursor: pointer; padding: 0; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--panel-line); color: var(--ink); }
.sf-back .ui-svg { width: 15px; height: 15px; transform: rotate(180deg); }
.sf-cathead-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 15px; background: rgba(255, 255, 255, .06); border: 1px solid var(--panel-line); }
.sf-cathead-ico .item-svg, .sf-cathead-ico .tool-svg, .sf-cathead-ico .ui-svg { width: 28px; height: 28px; }
.sf-cathead-text b { display: block; font: 700 21px/1.1 var(--serif); }
.sf-cathead-text i { display: block; margin-top: 3px; font-style: normal; font-size: 12px; color: var(--ink-dim); }

#shopList .row { padding: 12px; border-radius: 20px; gap: 12px; border-color: rgba(255, 255, 255, .09);
  background: linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); }
#shopList .row:active { transform: scale(.985); }
#shopList .row .row-emoji { width: 52px; height: 52px; border-radius: 16px; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .08); }
#shopList .row .row-title { font-size: 14.5px; }
#shopList .row .row-sub { font-size: 12px; line-height: 1.35; }
/* нарисованные картинки товаров (fal): крупная скруглённая рамка, картинка чуть приближена */
#shopList .row .row-emoji.pic { width: 68px; height: 68px; border-radius: 18px; overflow: hidden; padding: 0; background: #1d1128;
  border: 1px solid rgba(255, 143, 208, .3); box-shadow: 0 0 14px rgba(255, 126, 182, .12); }
#shopList .row .row-emoji.pic img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.sheet-emoji img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
#shopList .row .pill { padding: 8px 12px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  color: #ffe7a8; background: linear-gradient(135deg, rgba(255, 198, 92, .2), rgba(255, 143, 80, .12)); border: 1px solid rgba(255, 198, 92, .42); }
#shopList .row .pill .star-svg, #shopList .row .pill .coin-svg { width: 16px; height: 16px; }
#screen-shop.sf-chop #shopList .row { border-left: 3px solid rgba(255, 107, 94, .55); }

@media (prefers-reduced-motion: reduce) {
  .sf-promo-card::after, .sf-chest::after, .sf-promo-art, .sf-chest-art { animation: none; }
}
button.sf-bal-chip { cursor: pointer; color: var(--ink); font: inherit; transition: transform .12s; }
button.sf-bal-chip:active { transform: scale(.95); }

/* блоки магазина катаны (25.10.2026) */
.sf-h { margin: 18px 2px 10px; }
.sf-h b { font: 700 18px var(--serif); color: #ffe9c8; }

/* строка «Предложения» вверху магазина катаны: открывает окно с предложениями (25.10.2026) */
.sf-offers-btn { width: 100%; display: flex; align-items: center; gap: 12px; margin: 0 0 6px; padding: 11px 14px; border-radius: 16px; cursor: pointer; color: #ffe9c8; text-align: left;
  background: linear-gradient(165deg, rgba(255, 214, 150, .12), rgba(12, 8, 19, .55)); border: 1px solid rgba(255, 214, 150, .4); }
.sf-offers-btn[hidden] { display: none; }
.sf-offers-btn .sf-ob-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.sf-offers-btn .sf-ob-ico svg, .sf-offers-btn .sf-ob-ico img { width: 30px; height: 30px; }
.sf-ob-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sf-ob-t b { font: 700 15px var(--sans); }
.sf-ob-t i { font-style: normal; font-size: 11.5px; color: #cdb4d2; }
.sf-offers-btn em { font-style: normal; font: 700 12px var(--sans); color: #2a1408; background: linear-gradient(135deg, #ffe08a, #ffb347); border-radius: 99px; padding: 3px 9px; }
.sf-offers-btn > svg { width: 16px; height: 16px; opacity: .8; }

/* три вкладки магазина: САД · КАТАНА · ПРОФИЛЬ (25.10.2026) */
/* 25.10.2026: четыре вкладки (САД · КАТАНА · ПРОФИЛЬ · СУНДУКИ), компактнее — значок над подписью */
.sf-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 14px; }
.sf-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 2px 7px; border-radius: 12px; cursor: pointer; color: #cdb4d2; min-width: 0;
  font: 700 10px var(--sans); letter-spacing: .06em; background: rgba(255, 255, 255, .05); border: 1px solid var(--panel-line, rgba(255, 255, 255, .12)); }
.sf-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-tab svg { width: 22px; height: 22px; flex: none; }
.sf-tab.on svg { filter: drop-shadow(0 0 1.2px rgba(70, 30, 0, .85)); }          /* на золотой плашке светлые значки не теряются */
.sf-tab.on { color: #2a1408; background: linear-gradient(180deg, #ffe9a8, #e9b85c); border-color: transparent; box-shadow: 0 6px 18px rgba(255, 190, 90, .28); }

/* лавка сада внутри общего магазина (25.10.2026): те же классы, что в слое сада, плюс его цвета */
.sf-gs { --g-ink: #f4e9f4; --g-dim: #c3aec9; --g-faint: #93809b; --g-pink: #ff8fd0; display: flex; flex-direction: column; gap: 10px; }
.sf-gbal { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; color: var(--g-dim); padding: 2px 0 4px; }
.sf-gbal b { color: var(--g-pink); font-variant-numeric: tabular-nums; }
.sf-gbal .icon-inline { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; margin-left: 3px; }
.sf-gbal .gd-bal-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .22); margin: 0 7px; }
.sf-gbal .gd-bal-g { color: #cdb6ff; }
.sf-gs .gd-shop-tabs { margin-bottom: 0; }
.sf-glist { display: flex; flex-direction: column; gap: 8px; }
.sf-gs .gd-donate { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; text-align: left; color: #fff4c2;
  background: rgba(255, 210, 122, .1); border: 1px solid rgba(255, 210, 122, .4); cursor: pointer; }
.sf-gs .gd-donate.on { background: linear-gradient(135deg, rgba(201, 138, 46, .5), rgba(255, 210, 122, .24)); border-color: #ffd27a; box-shadow: 0 0 18px rgba(255, 210, 122, .32); }
.sf-gs .gd-donate .gd-tab-ico { width: 26px; height: 26px; }
.sf-gs .gd-donate em { font-style: normal; font-size: 18px; }

/* кнопки-разделы под вкладкой (25.10.2026) */
.sf-subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
/* разделы вкладки «Катана»: два ровных ряда по четыре (25.10.2026) */
.sf-subs:not(.sf-gtabs) { display: grid; grid-template-columns: repeat(4, 1fr); }
.sf-subs:not(.sf-gtabs) .sf-sub { padding: 9px 2px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.sf-sub { padding: 8px 13px; border-radius: 999px; cursor: pointer; font: 700 12px var(--sans); color: #cdb4d2; background: rgba(255, 255, 255, .05); border: 1px solid var(--panel-line, rgba(255, 255, 255, .12)); }
.sf-sub.on { color: #ffe9c8; background: rgba(255, 214, 150, .14); border-color: rgba(255, 214, 150, .65); box-shadow: 0 0 14px rgba(255, 214, 150, .18); }
/* рамки аватара за ⭐ */
.sf-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.sf-fr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; border-radius: 18px; cursor: pointer; color: #fff4e8;
  background: linear-gradient(165deg, rgba(255, 214, 150, .08), rgba(12, 8, 19, .55)); border: 1px solid rgba(255, 214, 150, .28); }
.sf-fr b { font: 700 14px var(--serif); text-align: center; }
.sf-fr .sf-fr-ava .pf-ava { width: 68px; height: 68px; font-size: 26px; margin: 0 auto; }
.sf-fr-price { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 99px; font: 700 13px var(--sans); color: #ffe9c8; background: rgba(255, 214, 150, .12); border: 1px solid rgba(255, 214, 150, .4); }
.sf-fr.own .sf-fr-price { color: #cdb4d2; border-color: var(--panel-line, rgba(255, 255, 255, .15)); background: rgba(255, 255, 255, .05); }

/* лавка сада в общем магазине: разделы — кнопки-таблетки, как у «Катаны» (25.10.2026) */
.sf-gs { gap: 8px; }
.sf-gs .sf-subs { margin: 0; }
.sf-sub.star { color: #ffe08a; border-color: rgba(255, 210, 122, .5); background: rgba(255, 210, 122, .1); }
.sf-sub.star.on { background: linear-gradient(135deg, rgba(201, 138, 46, .5), rgba(255, 210, 122, .24)); border-color: #ffd27a; color: #fff4c2; }
.sf-gbal { justify-content: flex-start; padding: 0 2px 4px; }

/* окно рамки с крупным просмотром (25.10.2026) */
.sf-fr-big { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 8px 14px; margin-bottom: 8px; border-radius: 18px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 143, 208, .16), rgba(12, 8, 19, .55) 70%); border: 1px solid rgba(255, 214, 150, .25); }
.sf-fr-big > b { font: 700 16px var(--serif); color: #fff4e8; }
.sf-fr-bigava .pf-ava { width: 120px; height: 120px; font-size: 44px; margin: 14px auto 6px; }
.sf-fr-small { display: flex; gap: 26px; margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); width: 100%; justify-content: center; }
.sf-fr-small span { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 8px; }
.sf-fr-small .pf-ava { width: 40px; height: 40px; font-size: 15px; }
.sf-fr-small em { font-style: normal; font-size: 11px; color: #cdb4d2; margin-top: 4px; }

/* 27.10.2026: окно просмотра ника / эффекта профиля (Storefront.cosSheet) */
.sf-fr-big > b.sf-cos-nick { font-size: 20px; letter-spacing: .01em; }
.sf-fr-big > b[class*="nk-"] { color: inherit; }
.sf-fr-big .cs-pfx-box.sf-cos-pfx { width: 100%; height: 210px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.sf-fr-big { padding-left: 8px; padding-right: 8px; }
.sf-cos-pfx .cs-pfx-who { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; max-width: 90%; }
.sf-cos-pfx .cs-pfx-who .pf-ava { width: 76px; height: 76px; font-size: 26px; }
.sf-cos-pfx .cs-pfx-who em { font: 700 17px/1.2 var(--serif); font-style: normal; color: #fff4e8; }
.cs-sheet-ico svg { width: 100%; height: 100%; }
.sf-fr-big.bare { background: none; border: 0; box-shadow: none; padding: 0; }

/* ---- «Предложение дня» (29.10.2026): окно на весь экран, золото и свечение ---- */
.of-pop {
  position: fixed; inset: 0; z-index: 9993; display: flex; align-items: center; justify-content: center; padding: 18px;
  background: radial-gradient(circle at 50% 38%, rgba(96, 40, 70, 0.78), rgba(10, 4, 18, 0.9)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: of-fade 0.25s ease-out both;
}
.of-sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.of-sparks i {
  position: absolute; bottom: -14px; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle, #fff3c4, #ffc65c 60%, transparent 70%);
  box-shadow: 0 0 10px rgba(255, 198, 92, 0.9); opacity: 0; transform: scale(var(--s, 1));
  animation: of-rise var(--d, 7s) linear var(--w, 0s) infinite;
}
.of-card {
  position: relative; width: min(360px, 100%); padding: 22px 16px 16px; border-radius: 28px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, #3a1d3c 0%, #231230 55%, #170d22 100%); border: 1.5px solid rgba(255, 198, 92, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 143, 208, 0.2), 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 60px rgba(255, 170, 70, 0.3);
  animation: of-in 0.55s cubic-bezier(0.2, 1.3, 0.4, 1) both, of-glow 2.6s ease-in-out 0.6s infinite;
}
.of-rays {
  position: absolute; left: 50%; top: -120px; width: 420px; height: 420px; margin-left: -210px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 198, 92, 0.2) 0deg 10deg, transparent 10deg 30deg);
  -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 62%); mask-image: radial-gradient(circle, #000 12%, transparent 62%);
  animation: of-spin 28s linear infinite;
}
.of-card > *:not(.of-rays) { position: relative; }
.of-kicker { font: 700 11px var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: #ffd27a; text-shadow: 0 0 12px rgba(255, 198, 92, 0.7); }
.of-title { margin-top: 6px; font: 700 28px/1.1 var(--serif); color: #fff4e8; text-wrap: balance; text-shadow: 0 0 22px rgba(255, 143, 208, 0.55); }
.of-sub { margin-top: 6px; font: 500 12.5px var(--sans); color: #cdb4e2; }
.of-list { display: grid; gap: 10px; margin-top: 16px; }
.of-offer {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; text-align: left; border-radius: 18px; color: #fff4e8;
  border: 1px solid color-mix(in srgb, var(--c, #ffd27a) 65%, #ffd27a); --c: #ffd27a;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 26%, #2a1636), rgba(24, 12, 38, 0.95));
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 28%, transparent);
}
.of-offer::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent); transform: skewX(-18deg); animation: of-shine 3.4s ease-in-out 1s infinite;
}
.of-ico { position: relative; flex: none; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 18px;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c) 45%, transparent), rgba(0, 0, 0, 0.35) 78%); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); }
.of-ico-in { display: block; width: 54px; height: 54px; }
.of-ico-in .cf-gem, .of-ico-in img, .of-ico-in svg { width: 54px; height: 54px; max-width: 54px; object-fit: contain; border-radius: 0; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55)); }
.of-ico em { position: absolute; right: -7px; bottom: -7px; padding: 2px 8px; border-radius: 99px; font: 800 13px var(--sans); font-style: normal; color: #2a1a05; background: linear-gradient(180deg, #ffe08a, #ffbf45); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.of-main { flex: 1; min-width: 0; }
.of-main b { display: block; font: 700 16px/1.2 var(--serif); }
.of-main span { display: block; margin-top: 3px; font: 600 12px var(--sans); color: #e2c6f0; }
.of-price {
  flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px; border-radius: 14px; font: 800 17px var(--sans); color: #2a1a05;
  background: linear-gradient(180deg, #ffe08a, #ffbf45); box-shadow: 0 4px 14px rgba(255, 191, 69, 0.45); animation: of-pulse 1.6s ease-in-out infinite;
}
.of-price svg { width: 17px; height: 17px; }
.of-close { display: block; width: 100%; margin-top: 14px; padding: 11px; border-radius: 14px; font: 600 13.5px var(--sans); color: #cdb4e2; background: transparent; border: 1px solid rgba(255, 255, 255, 0.14); }
@keyframes of-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes of-in { from { opacity: 0; transform: translateY(26px) scale(0.86); } to { opacity: 1; transform: none; } }
@keyframes of-glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 143, 208, 0.2), 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 170, 70, 0.22); } 50% { box-shadow: 0 0 0 1px rgba(255, 143, 208, 0.3), 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 78px rgba(255, 170, 70, 0.5); } }
@keyframes of-spin { to { transform: rotate(360deg); } }
@keyframes of-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes of-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes of-rise { 0% { transform: translateY(0) scale(var(--s, 1)); opacity: 0; } 12% { opacity: 0.9; } 100% { transform: translateY(-105vh) scale(var(--s, 1)); opacity: 0; } }

/* 30.10.2026: стрелка «назад» в магазине стояла левее, чем в экранах с баннером (x≈30 против ≈50): тот же отступ и размер кнопки */
#screen-shop > .screen-title:not(.u2-hero) { padding-left: 16px; }
#screen-shop > .screen-title:not(.u2-hero) .hub-back { width: 38px; height: 38px; }