:root {
  --bg: #04060d;
  --bg-2: #0a0f1e;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.1);
  --stroke: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.72);
  --muted: rgba(255, 255, 255, 0.5);
  --ps-blue: #0070d1;
  --ps-blue-2: #1f8fff;
  --ps-blue-glow: rgba(0, 112, 209, 0.55);
  --sale: #ff4069;
  --plus: #ffb800;
  --ok: #3ddc97;
  --tri: #3ee0c0;
  --cir: #ff5a6e;
  --crs: #7da7ff;
  --sqr: #f59bd6;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --gutter: 16px;
  --safe-top: var(--tg-content-safe-area-inset-top, 0px);
  --safe-bottom: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  background:
    radial-gradient(120% 60% at 100% -10%, rgba(0, 112, 209, 0.35), transparent 60%),
    radial-gradient(90% 50% at -20% 10%, rgba(80, 40, 200, 0.22), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
svg { display: block; }

.page { max-width: 760px; margin: 0 auto; padding: calc(10px + var(--safe-top)) 0 calc(32px + var(--safe-bottom)); }
.page.with-bar { padding-bottom: calc(120px + var(--safe-bottom)); }
.pad { padding: 0 var(--gutter); }
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- верхняя панель ---------- */
.appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-top)) var(--gutter) 10px;
  margin-top: calc(-10px - var(--safe-top));
  background: linear-gradient(var(--bg) 40%, rgba(4, 6, 13, 0));
}
.appbar.glass {
  background: rgba(4, 6, 13, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--stroke);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-shapes { display: grid; grid-template-columns: 11px 11px; gap: 3px; }
.logo-shapes svg { width: 11px; height: 11px; }
.logo-text { line-height: 1.05; }
.logo-text small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .18em; color: var(--muted); }
.logo-text b { font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.appbar .spacer { flex: 1; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--stroke); transition: transform .15s, background .15s;
}
.icon-btn:active { transform: scale(.92); background: var(--glass-2); }
.icon-btn svg { width: 20px; height: 20px; }
.appbar h1 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- промо ---------- */
.hero { position: relative; margin: 6px var(--gutter) 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.6; max-height: 560px; width: calc(100% - 2 * var(--gutter)); background: var(--bg-2); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; text-align: left; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s ease; }
.hero-slide.active img { transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 13, 0) 35%, rgba(4, 6, 13, .55) 60%, rgba(4, 6, 13, .96) 100%);
}
.hero-info { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--sale); margin-bottom: 10px;
}
.hero-info h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
/* Баннеры акций квадратные и со своей надписью внизу: показываем целиком, подпись — сверху */
.hero.promo { aspect-ratio: 1 / 1; }
.hero.promo .hero-slide::after { background: linear-gradient(180deg, rgba(4, 6, 13, .85) 0%, rgba(4, 6, 13, .35) 28%, rgba(4, 6, 13, 0) 45%); }
.hero.promo .hero-info { top: 16px; bottom: auto; }
.hero.promo .hero-info h2 { font-size: 22px; display: flex; align-items: center; gap: 4px; }
.hero.promo .hero-info h2 svg { width: 22px; height: 22px; flex: none; }
.hero.promo .hero-dots { bottom: 16px; }
.hero-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.hero-price b { font-size: 22px; font-weight: 800; }
.hero-price del { color: var(--text-2); }
.hero-dots { position: absolute; right: 18px; bottom: 26px; z-index: 3; display: flex; gap: 5px; }
.hero-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.35); transition: width .3s, background .3s; }
.hero-dots i.on { width: 18px; background: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--ps-blue); box-shadow: 0 8px 28px var(--ps-blue-glow); }
.btn-light { background: #fff; color: #000; }
.btn-ghost { background: var(--glass); border: 1px solid var(--stroke); }
.btn-block { width: 100%; height: 54px; font-size: 16px; }
.btn:disabled { opacity: .5; box-shadow: none; }

/* ---------- поиск ---------- */
.search {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; margin: 14px var(--gutter) 0;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--stroke); transition: border-color .2s, background .2s;
}
.search:focus-within { border-color: var(--ps-blue-2); background: rgba(0, 112, 209, .12); }
.search svg { width: 18px; height: 18px; opacity: .7; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.search .clear { width: 24px; height: 24px; border-radius: 50%; background: var(--glass-2); font-size: 14px; line-height: 1; }

/* ---------- категории ---------- */
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--gutter) 2px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--stroke); font-weight: 600; font-size: 14px;
}
.cat svg { width: 14px; height: 14px; }
.cat:active { background: var(--glass-2); }

/* ---------- полки ---------- */
.shelf { margin-top: 26px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); margin-bottom: 12px; }
.shelf-head h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.shelf-head h3 svg { width: 16px; height: 16px; }
.shelf-head button { color: var(--ps-blue-2); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 2px; }
.shelf-head button svg { width: 16px; height: 16px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 12px;
  overflow-x: auto; padding: 4px var(--gutter) 10px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* ---------- карточка игры ---------- */
.tile { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.tile-art {
  position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--bg-2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45); transition: transform .2s ease, box-shadow .2s ease;
}
.tile-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.tile:active .tile-art { transform: scale(.96); box-shadow: 0 0 0 2px #fff, 0 10px 30px var(--ps-blue-glow); }
.tile-art img { width: 100%; height: 100%; object-fit: cover; }
.tile-art .disc {
  position: absolute; left: 8px; top: 8px; padding: 3px 7px; border-radius: 8px;
  background: var(--sale); font-size: 12px; font-weight: 800;
}
.tile-art .pre { background: var(--ps-blue); }
.tile-art .ru {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 6px; font-size: 10px; font-weight: 800;
  background: rgba(4, 6, 13, .75); backdrop-filter: blur(6px); letter-spacing: .04em;
}
.tile-name { margin-top: 9px; font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.tile-price { margin-top: 4px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tile-price b { font-size: 15px; font-weight: 800; }
.tile-price del { font-size: 12px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 12px; padding: 4px var(--gutter) 0; }

.sk { border-radius: var(--r-md); background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 70%); background-size: 300% 100%; animation: sk 1.3s linear infinite; }
.sk-tile { aspect-ratio: 1; }
.sk-line { height: 12px; margin-top: 10px; width: 80%; border-radius: 6px; }
.sk-line.short { width: 45%; }
@keyframes sk { to { background-position: -150% 0; } }

/* ---------- как купить ---------- */
.steps { margin: 30px var(--gutter) 0; padding: 18px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--stroke); }
.steps h3 { margin: 0 0 14px; font-size: 17px; font-weight: 800; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step + .step { margin-top: 14px; }
.step .shape { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.step .shape svg { width: 15px; height: 15px; }
.step b { display: block; font-size: 14px; }
.step span { color: var(--text-2); font-size: 13px; }

/* ---------- раздел ---------- */
.segment {
  display: flex; gap: 4px; padding: 4px; margin: 10px var(--gutter) 6px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--stroke);
}
.segment button { flex: 1; height: 34px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s; }
.segment button.active { background: #fff; color: #000; }
.status { text-align: center; color: var(--muted); font-size: 13px; padding: 26px var(--gutter); display: flex; align-items: center; justify-content: center; gap: 10px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.15); border-top-color: var(--ps-blue-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 50px 24px; color: var(--text-2); }
.empty .shape-big { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; opacity: .8; }
.empty .shape-big svg { width: 22px; height: 22px; }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

/* ---------- страница игры ---------- */
.game-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.game-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px) saturate(140%); transform: scale(1.3); opacity: .45; }
.game-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,6,13,.2), var(--bg) 70%); }
.game-top { position: relative; padding: 0 var(--gutter); }
.game-cover { width: 100%; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.6); background: var(--bg-2); }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-title { padding: 20px var(--gutter) 0; }
.platforms { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.pill { padding: 4px 9px; border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: .04em; background: #fff; color: #000; }
.pill.dark { background: var(--glass-2); color: #fff; }
.pill.blue { background: var(--ps-blue); color: #fff; }
.game-title h1 { margin: 0; font-size: 26px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.game-title .sub { margin-top: 6px; color: var(--text-2); font-size: 13px; }

.panel { margin: 16px var(--gutter) 0; padding: 16px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid var(--stroke); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.price-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price-main b { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.price-main del { color: var(--muted); font-size: 16px; }
.price-main .disc { padding: 4px 9px; border-radius: 9px; background: var(--sale); font-weight: 800; font-size: 14px; }
.price-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.price-meta .timer { color: var(--plus); font-weight: 600; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px var(--gutter) 0; }
.fact { padding: 12px 14px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--stroke); }
.fact small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.fact b { font-size: 14px; font-weight: 700; }
.fact .yes { color: var(--ok); }
.fact .no { color: var(--text-2); }
.fact .soon { color: #f5c451; }

.block-title { margin: 26px var(--gutter) 12px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.editions { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; padding: 2px var(--gutter) 6px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.editions::-webkit-scrollbar { display: none; }
.edition {
  scroll-snap-align: start; display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md);
  background: var(--glass); border: 2px solid transparent; text-align: left; transition: border-color .2s, background .2s;
}
.edition.active { border-color: var(--ps-blue-2); background: rgba(0, 112, 209, .16); }
.edition img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; flex: none; }
.edition div { min-width: 0; }
.edition span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.3; }
.edition b { display: block; margin-top: 4px; font-size: 15px; }

.desc { margin: 0 var(--gutter); color: var(--text-2); white-space: pre-line; font-size: 14px; line-height: 1.55; }
.desc.collapsed { max-height: 110px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.more { margin: 8px var(--gutter) 0; color: var(--ps-blue-2); font-weight: 600; font-size: 14px; }

.comment {
  display: block; width: calc(100% - 2 * var(--gutter)); margin: 0 var(--gutter); min-height: 80px; padding: 14px; resize: vertical;
  border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--stroke); outline: 0; font-size: 15px;
}
.comment:focus { border-color: var(--ps-blue-2); }
.comment::placeholder { color: var(--muted); }

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px var(--gutter) calc(12px + var(--safe-bottom));
  background: rgba(4, 6, 13, 0.8); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-top: 1px solid var(--stroke);
}
.buybar-inner { max-width: 728px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.buybar-price { flex: none; line-height: 1.15; }
.buybar-price small { display: block; font-size: 11px; color: var(--muted); }
.buybar-price b { font-size: 20px; font-weight: 800; }
.buybar .btn { flex: 1; height: 52px; }

/* ---------- заказы ---------- */
.order { display: flex; gap: 14px; align-items: center; padding: 12px; margin: 0 var(--gutter); border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--stroke); }
.order + .order { margin-top: 10px; }
.order img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.order .info { flex: 1; min-width: 0; }
.order .title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.order .status-pill { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--glass-2); }

/* ---------- успех ---------- */
.success { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 0 24px; }
.success-icon { position: relative; width: 112px; height: 112px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(0,112,209,.5), rgba(0,112,209,0) 70%); }
.success-icon svg { width: 54px; height: 54px; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.success h1 { margin: 0; font-size: 26px; font-weight: 800; }
.success p { color: var(--text-2); margin: 10px 0 28px; }
.stack { display: grid; gap: 10px; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); transform: translateX(-50%); z-index: 50;
  width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 18px; font-size: 14px; font-weight: 500; text-align: center;
  background: rgba(30, 40, 60, .92); backdrop-filter: blur(12px); border: 1px solid var(--stroke); box-shadow: 0 12px 30px rgba(0,0,0,.5);
}

/* ---------- админка ---------- */
.admin-btn { position: relative; margin-right: 8px; }
.admin-btn .dot {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--ps-blue); font-style: normal; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.pick-btn { flex: none !important; padding: 0 16px; }
.pick-btn svg { width: 16px; height: 16px; }
.pick-btn.on { border-color: var(--ps-blue-2); color: var(--ps-blue-2); }

.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field span { font-size: 12px; color: var(--muted); font-weight: 600; }
.field input, .target-form input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .25);
  border: 1px solid var(--stroke); outline: 0; font-size: 17px; font-weight: 600;
}
.field input:focus, .target-form input:focus { border-color: var(--ps-blue-2); }
#rate { height: 60px; font-size: 28px; font-weight: 800; }
.field-row { display: flex; gap: 10px; margin-top: 14px; }
.hint { margin: 10px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.hint.pad { margin: -4px var(--gutter) 10px; }

.bands { display: grid; gap: 12px; }
.band { display: flex; gap: 10px; align-items: flex-end; }
.band .icon-btn { flex: none; margin-bottom: 4px; }
.band .icon-btn svg, .pick .icon-btn svg, .queued .icon-btn svg { width: 16px; height: 16px; }
.bands > .btn { justify-self: start; height: 40px; }
.bands > .btn svg { width: 16px; height: 16px; }

.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panel .examples { margin-top: 14px; }
.panel .bands { margin-top: 6px; }
.ex { padding: 12px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .25); }
.ex span { display: block; font-size: 12px; color: var(--muted); }
.ex b { font-size: 18px; }

.target { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.target span { color: var(--muted); font-size: 13px; }
.target .more { margin: 0 0 0 auto; }
.target-form { display: flex; gap: 8px; margin-top: 12px; }
.target-form input { flex: 1; font-size: 15px; font-weight: 500; }
.target-form .btn { height: 48px; flex: none; }
.style { margin-top: 12px; }
.style summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ps-blue-2); list-style: none; }
.style summary::-webkit-details-marker { display: none; }
.style .comment { width: 100%; margin: 10px 0; }

.picks, .found, .queue, .drafts { grid-template-columns: minmax(0, 1fr); }
.picks, .found { display: grid; gap: 8px; }
.found { padding: 12px var(--gutter) 0; }
.pick { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); }
.pick img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.pick div { flex: 1; min-width: 0; }
.pick b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick span { font-size: 13px; color: var(--text-2); }
.pick .icon-btn { flex: none; }
.pick .icon-btn.on { background: var(--ps-blue); border-color: var(--ps-blue); }

.drafts { display: grid; gap: 16px; padding: 0 var(--gutter); }
.draft { border-radius: var(--r-lg); overflow: hidden; background: var(--glass); border: 1px solid var(--stroke); }
.draft img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-2); }
.draft .caption { padding: 14px 16px 4px; white-space: pre-line; font-size: 14px; line-height: 1.5; }
.draft .caption s { color: var(--muted); }
.draft-actions { display: flex; gap: 8px; padding: 10px 16px 16px; }
.draft-actions .btn { flex: 1; height: 40px; font-size: 14px; padding: 0 10px; }
.draft-actions .btn[data-drop] { flex: none; width: 48px; }
.draft img { aspect-ratio: 1; }

.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ps-blue); font-weight: 700; font-size: 14px; }
.chip-btn:active { transform: scale(.96); }
.pick .one-btn { flex: none; height: 34px; padding: 0 12px; font-size: 13px; }
.draft-send { padding-top: 0; }
.draft-when { padding: 0 16px 16px; margin-top: 0; }
.draft-when input { color-scheme: dark; }

.queue { display: grid; gap: 8px; }
.queued { display: flex; align-items: center; gap: 10px; }
.queued .when { flex: none; font-size: 12px; font-weight: 700; color: var(--ps-blue-2); min-width: 92px; }
.queued b { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queued .icon-btn { width: 32px; height: 32px; flex: none; }

.test-panel { margin-top: 16px; }
.test-panel .btn { width: 100%; margin-top: 12px; }
.draft-actions { flex-wrap: wrap; }

.draft-wait {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(0, 112, 209, .25), transparent 65%), var(--bg-2);
}
.draft-wait .spinner { width: 34px; height: 34px; border-width: 3px; }
.draft-wait b { font-size: 16px; }
.draft-wait span { color: var(--text-2); font-size: 13px; max-width: 260px; }

.footer-edit { font-size: 13px; line-height: 1.6; font-family: ui-monospace, "SF Mono", Menlo, monospace; min-height: 120px; }
.draft .caption a { color: var(--ps-blue-2); text-decoration: none; }
.draft .caption blockquote { margin: 0; padding: 6px 10px; border-left: 3px solid var(--ps-blue-2); border-radius: 6px; background: rgba(255,255,255,.05); }

/* Переключатель аккаунта (магазина): 🇹🇷 Турция / 🇺🇦 Украина */
.region-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 6px var(--gutter) 10px; padding: 4px;
  border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.region-switch button {
  height: 40px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .2s, color .2s;
}
.region-switch button.active { background: var(--ps-blue); color: #fff; box-shadow: 0 6px 18px rgba(0, 112, 209, .35); }
.buybar-price .bar-region { display: block; font-size: 11px; color: var(--text-2); margin-top: 2px; }
