/* SkinDrop — «оружейный кейс»: сталь, латунь и цвета редкостей CS2 */
:root {
  --bg: #060a13;         /* фон: сине-чёрный */
  --panel: #0e1526;      /* панели */
  --panel-2: #152038;    /* вложенные элементы */
  --line: #1c2843;
  --line-2: #2a3a5e;
  --text: #eaf0ff;
  --muted: #8090b2;
  --acc: #3d7bff;        /* главный акцент — кобальтовый синий */
  --acc-hi: #39c8ff;     /* голубой край градиента */
  --acc-lo: #2a56d6;
  --on-acc: #ffffff;
  --grad: linear-gradient(120deg, #3a6cff 0%, #3d8bff 45%, #36c6ff 100%);
  --coin: #f2c14e;       /* монеты — единственный тёплый цвет */
  --danger: #ff5d73;
  --r-milspec: #4b69ff;
  --r-restricted: #8847ff;
  --r-classified: #d32ce6;
  --r-covert: #eb4b4b;
  --r-gold: #e4ae39;
  --st: #ff8a3d;
  --card-w: 98px;
  --card-gap: 8px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(90% 45% at 50% -8%, rgba(61,123,255,.22) 0%, transparent 70%),
    radial-gradient(70% 40% at 100% 30%, rgba(57,200,255,.06) 0%, transparent 70%),
    var(--bg);
  min-height: 100vh;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.ico { width: 18px; height: 18px; flex: none; }
.coin { color: var(--coin); }
.muted { color: var(--muted); font-weight: 400; }
[hidden] { display: none !important; }

#app { max-width: 520px; margin: 0 auto; min-height: 100vh; padding: 10px 16px calc(100px + var(--safe-b)); }

/* ── Верхняя панель ───────────────────────────────── */
.topbar { display: flex; gap: 6px; align-items: stretch; margin-bottom: 10px; }
.topbar .chip-stat { flex: 1; min-width: 0; }
.xpline { display: flex; align-items: center; gap: 10px; margin: 0 2px 14px; }
.xpline__bar { flex: 1; height: 4px; background: var(--panel-2); border-radius: 2px; overflow: hidden; }
.xpline__bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 2px; transition: width .5s; }
.xpline small { font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip-stat, .chip-lvl, .icon-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 12px 0 8px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)), var(--panel);
  border: 1px solid var(--line);
}
.chip-stat .coin { margin-left: 4px; width: 20px; height: 20px; }
.chip-stat__txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.chip-stat__txt b { font-family: var(--display); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.chip-stat__txt small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }

.regen { position: relative; width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.regen .ico { width: 15px; height: 15px; color: var(--acc-hi); }
.regen__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.regen__track { fill: none; stroke: var(--line-2); stroke-width: 3; }
.regen__fill {
  fill: none; stroke: var(--acc-hi); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 106.8; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear;
}
.chip-stat--spins.full .regen__fill { stroke: var(--line-2); }

.chip-lvl { width: 48px; padding: 0; justify-content: center; flex: none; }
.chip-lvl__n {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--on-acc);
  background: var(--grad);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.chip-lvl__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.chip-lvl__bar { height: 5px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.chip-lvl__bar i { display: block; height: 100%; width: 0; background: var(--acc); border-radius: 3px; transition: width .5s; }
.chip-lvl__body small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.icon-btn { width: 48px; padding: 0; justify-content: center; flex: none; color: var(--muted); }
.icon-btn--toggle.on { color: var(--on-acc); background: var(--grad); border-color: transparent; }

/* ── Ежедневный бонус ─────────────────────────────── */
.daily {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 10px 10px 10px 14px; margin-bottom: 12px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(61,123,255,.16), rgba(57,200,255,.04)), var(--panel);
  border: 1px solid rgba(61,123,255,.4);
}
.daily__gift { font-size: 24px; }
.daily__txt { flex: 1; min-width: 0; }
.daily__txt b { display: block; }
.daily__txt small { color: var(--muted); }
.daily__go { background: var(--grad); color: var(--on-acc); font-weight: 700; padding: 8px 14px; border-radius: 12px; }

/* ── Последний дроп ───────────────────────────────── */
.hero {
  --rc: var(--line-2);
  position: relative; padding: 18px 18px 20px; margin-bottom: 0;
  border-radius: 24px 24px 0 0; overflow: hidden;
  background:
    radial-gradient(90% 120% at 15% 0%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 70%),
    var(--panel);
  border: 1px solid var(--line); border-bottom: 0;
  transition: background .5s;
}
.hero[data-r="milspec"] { --rc: var(--r-milspec); }
.hero[data-r="restricted"] { --rc: var(--r-restricted); }
.hero[data-r="classified"] { --rc: var(--r-classified); }
.hero[data-r="covert"] { --rc: var(--r-covert); }
.hero[data-r="gold"] { --rc: var(--r-gold); }
.hero__rarity { font-weight: 700; font-size: 14px; color: color-mix(in srgb, var(--rc) 75%, white); }
.hero:not([data-r]) .hero__rarity { color: var(--muted); }
.hero__name {
  font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.2; margin: 6px 0 10px; letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.hero__name .st { color: var(--st); }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 13.5px; }
.hero__price { display: inline-flex; align-items: center; gap: 5px; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--text); }
.hero__price .ico { width: 18px; height: 18px; }
.hero.pop .hero__name { animation: heroIn .45s cubic-bezier(.2,1.2,.4,1); }
@keyframes heroIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ── Рулетка ──────────────────────────────────────── */
.roulette {
  position: relative; height: 150px; overflow: hidden;
  background: #050913;
  border: 1px solid var(--line); border-radius: 0 0 24px 24px;
  box-shadow: inset 0 10px 18px rgba(0,0,0,.45);
}
.roulette__track {
  position: absolute; top: 14px; left: 0; display: flex; gap: var(--card-gap);
  will-change: transform;
}
.roulette__marker {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; z-index: 3;
  background: var(--acc-hi); box-shadow: 0 0 14px var(--acc-hi);
}
.roulette__marker::before, .roulette__marker::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  border: 8px solid transparent;
}
.roulette__marker::before { top: 0; border-top-color: var(--acc-hi); }
.roulette__marker::after { bottom: 0; border-bottom-color: var(--acc-hi); }
.roulette__fade { position: absolute; top: 0; bottom: 0; width: 64px; z-index: 2; pointer-events: none; }
.roulette__fade--l { left: 0; background: linear-gradient(90deg, #050913, transparent); }
.roulette__fade--r { right: 0; background: linear-gradient(-90deg, #050913, transparent); }
.roulette .card { height: 122px; }
.roulette .card.win { box-shadow: 0 0 0 2px var(--rc), 0 0 26px color-mix(in srgb, var(--rc) 60%, transparent); }

/* ── Карточка скина ───────────────────────────────── */
.card {
  --rc: var(--r-milspec);
  position: relative; flex: none; width: var(--card-w); height: 132px;
  border-radius: 14px; overflow: hidden; text-align: left;
  background:
    linear-gradient(to top, color-mix(in srgb, var(--rc) 26%, transparent), transparent 62%),
    var(--panel-2);
  border: 1px solid color-mix(in srgb, var(--rc) 30%, var(--line));
  display: flex; flex-direction: column;
}
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc); }
.card[data-r="restricted"] { --rc: var(--r-restricted); }
.card[data-r="classified"] { --rc: var(--r-classified); }
.card[data-r="covert"] { --rc: var(--r-covert); }
.card[data-r="gold"] { --rc: var(--r-gold); }
.card__badges { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; justify-content: space-between; z-index: 1; pointer-events: none; }
.card__wear, .card__stt {
  font-size: 10px; font-weight: 700; line-height: 1; padding: 3px 5px; border-radius: 5px;
  background: rgba(0,0,0,.45); color: var(--muted);
}
.card__stt { color: var(--st); margin-left: auto; }
.card__img { flex: 1; display: grid; place-items: center; padding: 16px 6px 0; min-height: 0; }
.card__img img { max-width: 100%; max-height: 62px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.55)); }
.card__ph { font-family: var(--display); font-weight: 600; font-size: 11px; color: color-mix(in srgb, var(--rc) 65%, white); text-align: center; }
.card__txt { padding: 0 8px 9px; }
.card__w { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__n { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__p { font-size: 11.5px; font-weight: 700; display: flex; align-items: center; gap: 3px; margin-top: 1px; }
.card__p .ico { width: 12px; height: 12px; }

/* ── Управление ───────────────────────────────────── */
.controls { display: flex; gap: 8px; margin: 12px 0 10px; }
.seg { flex: 1; display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 4px; gap: 4px; }
.seg__b {
  flex: 1; height: 38px; border-radius: 10px; color: var(--muted);
  font-family: var(--display); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums;
  transition: background .15s, color .15s;
}
.seg__b.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 0 transparent; }
.seg__b.active { background: linear-gradient(180deg, rgba(61,123,255,.28), rgba(61,123,255,.12)); box-shadow: inset 0 0 0 1px rgba(61,123,255,.55); }

.spin {
  position: relative; box-sizing: border-box; width: 100%; height: 62px; min-height: 62px; max-height: 62px;
  border-radius: 20px; overflow: hidden;
  display: flex; align-items: center; gap: 12px; padding: 0 8px 0 22px; margin: 0;
  -webkit-appearance: none; appearance: none; line-height: 1;
  color: var(--on-acc); background: var(--grad);
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 12px 30px -10px rgba(61,123,255,.75);
  transition: transform .1s, filter .15s, background .2s;
}
.spin:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.spin__label {
  flex: 1 1 auto; min-width: 0; text-align: left;
  font-family: var(--display); font-weight: 600; font-size: clamp(14px, 4.2vw, 16px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spin__cost {
  flex: 0 0 auto; min-width: 68px; height: 46px; padding: 0 14px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 14px; background: rgba(6,10,19,.22);
  font-family: var(--display); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.spin.busy .spin__cost .ico { animation: rot 1s linear infinite; }
.spin.spin--empty { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.spin.spin--empty .spin__cost { background: var(--panel); color: var(--muted); }
.spin.skip { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(61,123,255,.55); }
.spin.skip .spin__cost { background: var(--grad); color: #fff; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ── Лента дропов ─────────────────────────────────── */
.feed { margin-top: 22px; }
.feed__title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,91,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255,107,91,0); } }
.feed__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.feed__list::-webkit-scrollbar { display: none; }
.feed__owner { font-size: 10.5px; color: var(--muted); }
.feed__empty { color: var(--muted); font-size: 14px; padding: 16px 0; }

/* ── Общие блоки экранов ──────────────────────────── */
.screen { display: none; }
.screen.active { display: block; }
.title { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 6px 0 4px; letter-spacing: -.01em; }
.sub { color: var(--muted); margin: 18px 0 10px; font-weight: 600; font-size: 14px; }
.note { color: var(--muted); font-size: 13px; margin-top: 12px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; min-width: 0; }
.stat small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.stat b { display: flex; align-items: center; gap: 5px; font-family: var(--display); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat b small { display: inline; margin: 0; font-family: "Onest", sans-serif; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.chip { height: 36px; padding: 0 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 600; white-space: nowrap; }
.chip.active { background: var(--panel-2); color: var(--text); border-color: var(--line-2); }
.chip--danger { color: var(--danger); margin-left: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.grid .card, .feed__list .card { cursor: pointer; }
.grid .card { width: auto; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* ── Топ ──────────────────────────────────────────── */
.toplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toprow, .me-rank {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
}
.me-rank { border-color: rgba(61,123,255,.5); background: linear-gradient(90deg, rgba(61,123,255,.14), transparent), var(--panel); margin-bottom: 10px; }
.me-rank:empty { display: none; }
.toprow__n { width: 28px; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.me-rank .toprow__n { color: var(--acc-hi); }
.toprow:nth-child(1) .toprow__n { color: var(--r-gold); }
.toprow:nth-child(2) .toprow__n { color: #c9d1dc; }
.toprow:nth-child(3) .toprow__n { color: #d08a52; }
.toprow__a { width: 36px; height: 36px; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.toprow__a img { width: 100%; height: 100%; object-fit: cover; }
.toprow__name { flex: 1; min-width: 0; }
.toprow__name b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toprow__name small { color: var(--muted); }
.toprow__v { display: flex; align-items: center; gap: 4px; font-family: var(--display); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }

/* ── Магазин ──────────────────────────────────────── */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pack {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px 8px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  transition: border-color .15s, transform .1s;
}
.pack:active { transform: scale(.98); }
.pack__n { font-family: var(--display); font-weight: 700; font-size: 22px; display: flex; align-items: center; gap: 6px; }
.pack__n .ico { width: 18px; height: 18px; color: var(--acc-hi); }
.pack small { color: var(--muted); }
.pack__price {
  margin-top: 10px; width: 100%; height: 38px; border-radius: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: var(--panel-2); border: 1px solid var(--line-2);
}
/* покупка за монеты — список строк */
.coin-list { display: grid; gap: 6px; }
.coin-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 10px 10px 14px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .1s;
}
.coin-row:active { transform: scale(.99); }
.coin-row__n { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 17px; min-width: 76px; }
.coin-row__n .ico { width: 18px; height: 18px; color: var(--acc-hi); }
.coin-row__label { flex: 1; color: var(--muted); font-size: 14px; }
.coin-row__price {
  display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 14px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.coin-row.cant { opacity: .5; }

/* ── Профиль ──────────────────────────────────────── */
.profile { text-align: center; padding-top: 8px; }
.profile .sub { margin-top: 0; }
.avatar {
  width: 84px; height: 84px; border-radius: 28px; margin: 0 auto 8px; background: var(--panel-2);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 30px; overflow: hidden;
  border: 1px solid var(--line-2);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.odds { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.odds__row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); }
.odds__row:first-child { border-top: 0; }
.odds__dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.odds__row b { margin-left: auto; font-variant-numeric: tabular-nums; }
.disclaimer { color: var(--muted); font-size: 12px; margin-top: 18px; line-height: 1.55; }

/* ── Навигация ────────────────────────────────────── */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: min(520px, 100%); display: flex; z-index: 20;
  padding: 6px 8px calc(6px + var(--safe-b));
  background: rgba(6,10,19,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tab {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0 6px; color: var(--muted); font-size: 11px; font-weight: 600;
}
.tab .ico { width: 22px; height: 22px; }
.tab.active { color: var(--text); }
.tab.active .ico { color: var(--acc-hi); }
.tab.active::before {
  content: ""; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--grad); box-shadow: 0 0 10px rgba(57,200,255,.6);
}

/* ── Модальное окно ───────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal__bg { position: absolute; inset: 0; background: rgba(3,6,12,.72); animation: fadebg .2s; }
@keyframes fadebg { from { opacity: 0; } }
.modal__sheet {
  position: relative; width: min(520px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 28px 28px 0 0; padding: 22px 18px calc(18px + var(--safe-b));
  animation: up .28s cubic-bezier(.2,.9,.3,1);
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.drop { text-align: center; }
.drop__glow { position: relative; height: 170px; display: grid; place-items: center; }
.drop__glow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 55% at 50% 50%, var(--rc), transparent 72%); opacity: .4; }
.drop__glow img { position: relative; max-width: 80%; max-height: 150px; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.6)); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.drop__ph { position: relative; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--rc); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.drop__rarity { font-size: 14px; font-weight: 700; color: color-mix(in srgb, var(--rc) 75%, white); margin-top: 6px; }
.drop__name { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.25; margin: 6px 0 4px; }
.drop__name .st { color: var(--st); }
.drop__meta { color: var(--muted); font-size: 13.5px; }
.drop__price { font-family: var(--display); font-weight: 700; font-size: 24px; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 16px; }
.drop__price .ico { width: 24px; height: 24px; }
.btns { display: flex; gap: 8px; }
.btn { flex: 1; height: 52px; border-radius: 16px; font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn--light { background: var(--grad); color: var(--on-acc); box-shadow: 0 10px 24px -12px rgba(61,123,255,.8); }
.btn--ghost { background: var(--panel-2); border: 1px solid var(--line-2); }
.multi__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.multi__head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; }
.multi__head b { display: inline-flex; align-items: center; gap: 5px; font-family: var(--display); font-weight: 600; font-size: 16px; }
.multi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.multi__grid .card { width: auto; animation: pop .35s backwards; cursor: pointer; }

.toast {
  position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 12px;
  font-weight: 700; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.45); max-width: calc(100% - 32px); text-align: center;
  animation: up .25s;
}
.toast.err { background: var(--danger); color: #fff; }

/* ── Админ-панель ─────────────────────────────────── */
.admin-entry {
  width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 14px;
  padding: 14px 16px; border-radius: 16px; text-align: left;
  background: var(--panel); border: 1px solid rgba(61,123,255,.4);
}
.admin-entry b { flex: 1; }
.back { color: var(--muted); font-weight: 600; padding: 4px 0; }
.stats--2x2 { grid-template-columns: 1fr 1fr; }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-top: 12px; display: grid; gap: 10px; }
.field-row { display: flex; gap: 8px; align-items: center; }
.field-row .field { flex: 1; min-width: 0; }
.field {
  height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; outline: none; width: 100%;
}
.field:focus { border-color: var(--acc-lo); }
select.field { appearance: none; }
.btn--sm { flex: none; height: 44px; padding: 0 16px; font-size: 15px; }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.check input { width: 18px; height: 18px; accent-color: var(--acc); }
.a-user { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--acc-lo); }
.a-user small { color: var(--muted); display: block; }
.a-skins { display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.a-skin { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; text-align: left; border: 1px solid transparent; }
.a-skin img { width: 52px; height: 36px; object-fit: contain; }
.a-skin i { width: 4px; align-self: stretch; border-radius: 2px; flex: none; }
.a-skin span { flex: 1; font-size: 13.5px; }
.a-skin.sel { border-color: var(--acc); background: rgba(61,123,255,.1); }
.a-log { display: grid; gap: 4px; }
.a-log div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.a-log small { color: var(--muted); white-space: nowrap; }

.lock {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(6,10,19,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lock__box {
  width: min(360px, 100%); text-align: center; padding: 28px 22px 20px;
  background: var(--panel); border: 1px solid var(--danger); border-radius: 22px;
}
.lock__ico { font-size: 40px; }
.lock__title { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 10px 0 8px; }
.lock__text { color: var(--muted); margin: 0 0 18px; }
.lock__box .btn { width: 100%; }
.lock__hint { color: var(--muted); font-size: 12px; margin: 12px 0 0; }

@media (max-width: 370px) {
  #app { padding-left: 12px; padding-right: 12px; }
  .chip-stat { padding-right: 8px; }
  .chip-stat__txt small { display: none; }
  .tab { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* вспышка счётчика монет при начислении */
.chip-stat.bump { border-color: rgba(242,193,78,.55); box-shadow: 0 0 0 3px rgba(242,193,78,.12); transition: border-color .2s, box-shadow .2s; }

/* ── Новый уровень (внутри окна дропа) ────────────── */
.lvlup {
  margin: 4px 0 14px; padding: 12px; border-radius: 18px;
  background: linear-gradient(120deg, rgba(61,123,255,.2), rgba(57,200,255,.06)), var(--panel-2);
  border: 1px solid rgba(61,123,255,.45);
  animation: pop .45s cubic-bezier(.2,1.3,.4,1) .2s backwards;
}
.lvlup__head { display: flex; align-items: center; gap: 12px; text-align: left; }
.lvlup__head b { display: block; font-family: var(--display); font-weight: 700; font-size: 16px; }
.lvlup__head small { color: var(--muted); }
.lvlup__badge {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; color: #fff; background: var(--grad);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.lvlup__items { display: flex; gap: 8px; margin-top: 10px; justify-content: center; }
.lvlup__tag { font-size: 10.5px; color: var(--acc-hi); font-weight: 700; }

/* ── Выбор скинов на продажу в мульти-дропе ───────── */
.multi__hint { color: var(--muted); font-size: 13px; margin: -6px 0 10px; }
.multi__grid .card { transition: transform .12s, opacity .12s; }
.multi__grid .card.picked { transform: scale(.95); }
.multi__grid .card.picked::before {
  content: "Продать"; position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: #fff;
  background: rgba(255,93,115,.42); border-radius: inherit; box-shadow: inset 0 0 0 2px var(--danger);
}

/* ── Быстрая продажа по категориям ────────────────── */
.chip--sell { margin-left: auto; color: var(--text); border-color: rgba(61,123,255,.5); background: linear-gradient(180deg, rgba(61,123,255,.22), rgba(61,123,255,.08)); }
.sheet-title { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.sellmenu { display: grid; gap: 6px; margin-bottom: 12px; }
.sellrow { text-align: left;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line);
}
.sellrow:has(input:checked) { border-color: var(--acc); background: linear-gradient(90deg, rgba(61,123,255,.16), transparent), var(--panel-2); }
.sellrow input { width: 20px; height: 20px; accent-color: var(--acc); flex: none; }
.sellrow.empty { opacity: .45; cursor: default; }
.sellrow__dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sellrow__name { flex: 1; min-width: 0; font-weight: 600; }
.sellrow__name small { display: block; color: var(--muted); font-weight: 400; }
.sellrow__v { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sellmenu__st { margin-bottom: 14px; }

/* ── Достижения ───────────────────────────────────── */
.entry {
  width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 14px;
  padding: 14px 16px; border-radius: 16px; text-align: left;
  background: var(--panel); border: 1px solid var(--line);
}
.entry b { flex: 1; }
.entry__badge, .tab.has-dot::after {
  background: var(--danger); color: #fff; font-size: 12px; font-weight: 800;
}
.entry__badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; }
.tab.has-dot::after { content: ""; position: absolute; top: 6px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; }
.ach-group { font-size: 14px; color: var(--muted); font-weight: 600; margin: 18px 0 8px; }
.ach {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; margin-bottom: 6px;
  border-radius: 18px; background: var(--panel); border: 1px solid var(--line);
}
.ach__ico { font-size: 26px; width: 34px; text-align: center; flex: none; }
.ach__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ach__body b { font-weight: 700; }
.ach__body small { color: var(--muted); font-size: 12.5px; }
.ach__bar { height: 5px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin: 7px 0 3px; }
.ach__bar i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.ach__num { font-variant-numeric: tabular-nums; font-size: 11.5px !important; }
.ach__reward { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.ach__reward .ico { width: 15px; height: 15px; }
.ach__claim { height: 38px; padding: 0 14px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(61,123,255,.9); }
.ach__state { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ach.is-ready { border-color: rgba(61,123,255,.55); background: linear-gradient(90deg, rgba(61,123,255,.14), transparent), var(--panel); }
.ach.is-claimed { opacity: .55; }
.ach.is-claimed .ach__ico { filter: grayscale(.3); }
.sell-quick {
  width: 100%; height: 46px; margin: -4px 0 12px; border-radius: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, rgba(61,123,255,.2), rgba(61,123,255,.07)); border: 1px solid rgba(61,123,255,.45);
}
.sellmenu__count { color: var(--muted); font-size: 13px; margin: -6px 0 12px; }
.btn { white-space: nowrap; }


/* ── Загрузочный экран ────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(60% 45% at 50% 45%, #0f1a33 0%, var(--bg) 70%);
  transition: opacity .4s ease, visibility .4s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__word { display: flex; gap: .14em; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 9vw, 40px); letter-spacing: .02em; }
.loader__word span { color: #3a4a6e; animation: shine 1.8s ease-in-out infinite; }
.loader__word span:nth-child(2) { animation-delay: .1s; }
.loader__word span:nth-child(3) { animation-delay: .2s; }
.loader__word span:nth-child(4) { animation-delay: .3s; }
.loader__word span:nth-child(5) { animation-delay: .4s; }
.loader__word span:nth-child(6) { animation-delay: .5s; }
.loader__word span:nth-child(7) { animation-delay: .6s; }
.loader__word span:nth-child(8) { animation-delay: .7s; }
@keyframes shine {
  0%, 60%, 100% { color: #3a4a6e; text-shadow: none; }
  25% { color: #eaf0ff; text-shadow: 0 0 18px rgba(57,200,255,.65); }
}
.loader__bar { width: min(200px, 55vw); height: 3px; border-radius: 2px; background: #1a2440; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 6%; background: var(--grad); border-radius: 2px; transition: width .35s ease; }
.loader__hint { color: var(--muted); font-size: 12.5px; min-height: 1em; }

/* ── Вкладки (топ, контракт) ──────────────────────── */
.seg--tabs { margin: 12px 0 0; }
.seg--tabs .seg__b { font-family: "Onest", sans-serif; font-weight: 700; font-size: 13px; padding: 0 4px; white-space: nowrap; }

/* ── Топ ──────────────────────────────────────────── */
.toprow { cursor: pointer; }
.toprow__item { width: 46px; height: 32px; object-fit: contain; flex: none; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--rc, transparent) 55%, transparent)); }
.me-rank { cursor: pointer; }
.toplist .empty { list-style: none; }

/* ── Витрина ──────────────────────────────────────── */
.showcase-head { display: flex; justify-content: space-between; align-items: baseline; }
.showcase-head .sub { margin-bottom: 10px; }
.link { color: var(--acc-hi); font-weight: 600; font-size: 13.5px; }
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.showcase .card { width: auto; cursor: pointer; }
.showcase__empty { height: 132px; border-radius: 14px; border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--muted); font-size: 12.5px; }
.line-btn { display: block; width: 100%; margin: -4px 0 12px; padding: 10px; border-radius: 14px; font-weight: 700; color: var(--acc-hi); background: rgba(61,123,255,.08); border: 1px solid rgba(61,123,255,.3); }

/* ── Переключатель звука ──────────────────────────── */
.entry--switch { cursor: pointer; }
.switch { -webkit-appearance: none; appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch:checked { background: var(--grad); border-color: transparent; }
.switch:checked::after { transform: translateX(18px); background: #fff; }

/* ── Профиль другого игрока ───────────────────────── */
.pp__head { display: flex; align-items: center; gap: 12px; }
.pp__head .sheet-title { margin: 0; }
.avatar--sm { width: 56px; height: 56px; border-radius: 18px; font-size: 22px; margin: 0; flex: none; }
.pp .stats { margin: 14px 0 0; }
.pp__best { display: flex; gap: 12px; align-items: center; }
.pp__best > div:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp__best .st { color: var(--st); }

/* ── Инвентарь: две кнопки ────────────────────────── */
.inv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: -4px 0 12px; }
.inv-actions .sell-quick { margin: 0; font-size: 14px; }
.inv-actions .sell-quick .ico:not(.coin) { color: var(--acc-hi); }

/* ── Контракт обмена ──────────────────────────────── */
.tu-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0; padding: 12px 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.tu-slots { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 50%; }
.tu-slots b { width: 100%; font-family: var(--display); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.tu-slots i { width: 12px; height: 12px; border-radius: 3px; background: var(--panel-2); border: 1px solid var(--line-2); }
.tu-out { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.tu-out span, .tu-out small { color: var(--muted); font-size: 12.5px; }
.tu-out small { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; }
.tu-out b { font-weight: 800; }
#tuGrid .card { cursor: pointer; transition: transform .12s; }
#tuGrid .card.picked-tu { transform: scale(.95); box-shadow: 0 0 0 2px var(--acc-hi), 0 0 18px rgba(57,200,255,.35); }
#tuGrid .card.picked-tu::before { content: "✓"; position: absolute; top: 6px; right: 6px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; font-weight: 800; font-size: 12px; }
.tu-actions { position: sticky; bottom: calc(76px + var(--safe-b)); display: flex; gap: 8px; margin-top: 14px; padding-top: 10px; background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 5; }

/* правки после проверки */
.toprow__name small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp .stat { padding: 10px 10px; }
.pp .stat b { font-size: 14px; gap: 3px; }
.pp .stat b .ico { width: 14px; height: 14px; }
.tu-slots { max-width: none; flex: 0 0 auto; gap: 3px; width: 137px; }
.tu-slots i { width: 11px; height: 11px; }
.tu-actions { background: var(--bg); padding-bottom: 6px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; border-top: 1px solid var(--line); }
.tu-actions .btn:disabled { opacity: 1; color: var(--muted); background: var(--panel-2); box-shadow: none; }

/* ── Промокоды ────────────────────────────────────── */
.promo-row .btn--sm { padding: 0 14px; }
.promo-list { display: grid; gap: 6px; }
.promo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.promo__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.promo__code { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .04em; cursor: pointer; }
.promo__main small { color: var(--muted); font-size: 12.5px; }
.promo .chip { flex: none; }
.promo.is-off { opacity: .55; }

/* ── Серия прокруток ×3/×5/×10 ────────────────────── */
.roulette__count {
  position: absolute; top: 8px; left: 10px; z-index: 4; padding: 3px 9px; border-radius: 9px;
  font-family: var(--display); font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums;
  background: rgba(6,10,19,.75); border: 1px solid var(--line-2); color: var(--text);
}
.hero__meta { min-height: 26px; }
.tray { display: flex; flex-wrap: wrap; gap: 4px; }
.tray__slot {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line);
}
.tray__slot.is-on {
  border-color: var(--rc); background: color-mix(in srgb, var(--rc) 22%, var(--panel-2));
  animation: trayIn .25s cubic-bezier(.2,1.4,.4,1);
}
.tray__slot img { width: 22px; height: 16px; object-fit: contain; }
@keyframes trayIn { from { transform: scale(.4); opacity: 0; } }

/* ── Топ: длинные названия не растягивают страницу ── */
/* Не даём странице уезжать вбок, не превращая body в отдельную прокручиваемую область:
   clip обрезает лишнее, но прокручивается по-прежнему само окно (важно для колеса мыши на ПК) */
#app { overflow-x: clip; }
.toplist { grid-template-columns: minmax(0, 1fr); }
.toprow, .me-rank { min-width: 0; }
.toprow__v { flex: none; }
.tray { flex-wrap: nowrap; width: 100%; }
.tray__slot { flex: 0 1 26px; min-width: 0; width: auto; height: auto; aspect-ratio: 1; }
.tray__slot img { width: 85%; height: auto; }

/* Иконки достижений вместо эмодзи */
.ach__ico {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px;
  font-size: 0; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-2);
}
.ach__ico .ico { width: 20px; height: 20px; }
.ach.is-ready .ach__ico { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 6px 16px -8px rgba(61,123,255,.9); }
.ach.is-claimed .ach__ico { color: var(--acc-hi); filter: none; }
.entry__ico { width: 28px; height: 28px; display: grid; place-items: center; color: var(--acc-hi); flex: none; }
.entry__ico .ico { width: 20px; height: 20px; }

/* ── Выдача скина в админке ───────────────────────── */
.flabel { color: var(--muted); font-size: 12.5px; font-weight: 600; margin: 4px 0 -4px; }
.a-user--sm { margin-top: 0; padding: 8px 12px; }
.a-user.is-err { border-color: var(--danger); }
.a-user.is-err small { color: var(--danger); }
.a-skin { width: 100%; min-width: 0; }
.a-skin__img { width: 52px; height: 36px; flex: none; display: grid; place-items: center; }
.a-skin__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.a-skin__name { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-picked { display: flex; align-items: center; gap: 8px; }
.a-picked .a-skin { flex: 1; cursor: default; }
.a-picked .link { flex: none; }
#aWear option:disabled { color: var(--muted); }
.check input:disabled + * , .check:has(input:disabled) { opacity: .5; }
.a-skin .a-skin__img { flex: 0 0 52px; }
.a-skin .a-skin__name { flex: 1 1 auto; text-align: left; }
.a-skin { justify-content: flex-start; text-align: left; }

/* ── Технические работы ───────────────────────────── */
.lock--maint { z-index: 110; }
.lock--maint .lock__box { border-color: var(--acc); }
.maint-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 10px; padding: 8px 8px 8px 14px; border-radius: 14px; font-size: 13px; font-weight: 600;
  background: linear-gradient(90deg, rgba(255,93,115,.18), rgba(255,93,115,.06)); border: 1px solid rgba(255,93,115,.5);
}
.maint-bar .chip { flex: none; height: 32px; }

/* ── Улучшения и автопродажа ──────────────────────── */
.feature { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px;
  background: linear-gradient(90deg, rgba(61,123,255,.14), transparent), var(--panel); border: 1px solid rgba(61,123,255,.45); }
.feature__ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--grad); color: #fff; }
.feature__ico .ico { width: 20px; height: 20px; color: #fff; }
.feature__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feature__body small { color: var(--muted); font-size: 12.5px; }
.feature__buy { flex: none; height: 38px; padding: 0 14px; border-radius: 12px; font-weight: 800; color: #fff; background: var(--grad); }
.feature__buy:disabled { background: var(--panel-2); color: var(--muted); opacity: 1; }
.autosell { margin-top: 14px; }
.autosell__head { display: flex; align-items: center; justify-content: space-between; }
.autosell__locked { display: grid; gap: 10px; }
.autosell__locked .btn { width: 100%; }
#asSettings { display: grid; gap: 10px; }
#asSettings[hidden] { display: none; }
.as-rarities { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.as-r { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; }
.as-r input { width: 16px; height: 16px; accent-color: var(--rc); margin: 0; }
.as-r.on, .as-r:has(input:checked) { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, var(--panel-2)); }
.autosold-note { text-align: center; margin: -4px 0 12px; font-weight: 700; color: var(--coin);
  display: flex; align-items: center; justify-content: center; gap: 4px; }
.autosold-note .ico { width: 16px; height: 16px; }
.multi__grid .card.is-autosold { opacity: .55; }
.multi__grid .card.is-autosold::before { content: "Продано"; position: absolute; top: 6px; right: 6px; z-index: 2;
  padding: 2px 6px; border-radius: 6px; background: rgba(242,193,78,.16);
  font-size: 10px; font-weight: 800; color: var(--coin); }

/* Админка: донат-привилегии */
.a-feats { display: grid; gap: 8px; }
.a-feat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px;
  border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line, rgba(255,255,255,.06)); }
.a-feat small { display: block; color: var(--muted); font-size: 12px; }
.a-feat small.is-on { color: var(--acc-hi); }
.a-feat .btn { width: auto; flex: none; }

/* Канал */
.channel { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.channel[hidden] { display: none; }
.channel__ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); }
.channel__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.channel__body small { color: var(--muted); font-size: 12.5px; }
.channel__btns { flex: none; display: flex; gap: 6px; }
.channel__btns .btn { width: auto; padding-left: 12px; padding-right: 12px; }
.lock--down { z-index: 120; }
.lock--down .lock__box { border-color: var(--acc); }
