/* Монеты: магазин (.shop-), кошелёк в профиле (.wal-), ставки зрителя на дуэли (.bet-).
   Только токены base.css; золото монет — var(--gold). */

/* ---------- магазин ---------- */

.shop-page { align-items: start; }

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 40px;
  background:
    radial-gradient(60% 140% at 85% 0%, rgba(255, 210, 63, .14), transparent 60%),
    radial-gradient(120% 110px at 50% 0, rgba(190, 255, 170, .055), transparent),
    var(--felt),
    var(--card);
}
.shop-hero-l { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.shop-hero-l .display { margin: 2px 0 4px; }
/* реплика Валеры — общий маскот (.mc из mascot.css); тут только ширина пузыря */
.shop-say { max-width: 520px; }

.shop-hero-r { display: flex; align-items: stretch; gap: 14px; }
.shop-wallet,
.shop-me {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, .26);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 2px 10px rgba(0, 0, 0, .25);
}
.shop-wallet { min-width: 220px; box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .32), inset 0 2px 10px rgba(0, 0, 0, .25), 0 0 30px rgba(255, 210, 63, .08); }
.shop-bal { display: flex; align-items: center; gap: 10px; }
.shop-coin { font-size: 38px; line-height: 1; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.shop-bal b {
  font: 400 clamp(32px, 3.6vw, 44px)/1 var(--font-logo);
  letter-spacing: -.02em;
  word-spacing: -.35em;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 210, 63, .45), 0 3px 0 rgba(0, 0, 0, .35);
}
.shop-hist { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 13px; color: var(--muted); text-decoration: none; }
.shop-hist:hover { color: var(--orange-2); }
.shop-me { flex-direction: row; justify-content: flex-start; align-items: center; gap: 14px; padding-right: 22px; }
.shop-me-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.shop-me-txt b { font-weight: 800; font-size: 16px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.shop-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.shop-tabs { align-self: flex-start; }
.shop-tabs .tab { min-width: 150px; }
.shop-tab-n {
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 99px;
  font: 800 11px/1 var(--font-ui);
  background: rgba(0, 0, 0, .25);
}
.shop-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--orange-2);
  font-weight: 600;
  font-size: 14px;
  background: rgba(255, 157, 28, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 157, 28, .35);
}
.shop-note svg { flex: none; color: var(--gold); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.shop-grid > .skel { border-radius: var(--r-xl); }

.shop-item { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 16px; transition: transform .18s var(--ease-out), border-color .18s, box-shadow .2s; }
.shop-item:hover { transform: translateY(-3px); border-color: var(--line-2); }
.shop-item.owned { border-color: rgba(61, 220, 106, .28); }
.shop-item.on {
  border-color: rgba(255, 157, 28, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 1px rgba(255, 157, 28, .35), 0 0 26px rgba(255, 157, 28, .18), 0 12px 30px rgba(0, 0, 0, .22);
}
.shop-st { position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 11px; }

/* примерочная: прожектор сверху и тёмный пол */
.shop-prev {
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: 18px;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(255, 220, 150, .2), transparent 70%),
    radial-gradient(60% 30% at 50% 100%, rgba(0, 0, 0, .45), transparent),
    linear-gradient(180deg, #0F5A1B, #07300E);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 -12px 24px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.shop-prev.title { grid-auto-flow: column; justify-content: center; gap: 12px; padding: 0 14px; }
.shop-prev-who { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.shop-prev-who b { font-weight: 800; font-size: 15px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-prev-who .chip { max-width: 100%; white-space: nowrap; }

.shop-item-txt { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; flex: 1; }
.shop-item-nm { margin: 0; font: 400 15px/1.15 var(--font-logo); text-transform: uppercase; word-spacing: -.3em; letter-spacing: .01em; }
.shop-item-d { margin: 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.shop-item-ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px; }
.shop-price { font-size: 14px; color: var(--gold); gap: .3em; }
.shop-price span { font-size: 1.05em; }
.shop-paid { font: 700 11px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--good); }
.shop-need { opacity: .72; font-size: 12px; text-transform: none; letter-spacing: 0; }

.shop-aside { gap: 16px; }
.shop-earn-list { list-style: none; margin: 4px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.shop-earn-li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .18); }
.shop-earn-ico { font-size: 20px; text-align: center; }
.shop-earn-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-earn-t b { font-size: 14px; font-weight: 700; line-height: 1.2; }
.shop-earn-t small { font-size: 12px; color: var(--muted); line-height: 1.25; }
.shop-earn-v { font-size: 11.5px; white-space: nowrap; }
.shop-stats { display: flex; flex-direction: column; gap: 8px; }
.shop-stats p { margin: 0; }
.shop-stats-n { display: flex; align-items: baseline; gap: 8px; }
.shop-stats-n b { font: 400 34px/1 var(--font-logo); color: var(--orange); text-shadow: 0 0 14px rgba(255, 157, 28, .45); }
.shop-stats-n span { color: var(--muted); font-weight: 700; }
.shop-stats .btn { align-self: flex-start; }

.shop-new { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.shop-new .shop-prev { min-height: 170px; }
.shop-new p { margin: 0; }
.shop-err { max-width: 640px; margin: 24px auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

@media (max-width: 1200px) {
  .shop-hero { grid-template-columns: minmax(0, 1fr); }
  .shop-hero-r { flex-wrap: wrap; }
}
@media (max-width: 899px) {
  .shop-hero { gap: 18px; }
  .shop-hero-r { flex-direction: column; gap: 10px; }
  .shop-wallet { min-width: 0; padding: 14px 16px; }
  .shop-me { padding: 10px 14px; }
  .shop-me .ava { --s: 56px !important; }
  .shop-tabs { align-self: stretch; }
  .shop-tabs .tab { min-width: 0; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop-item { padding: 10px 10px 12px; gap: 10px; border-radius: 20px; }
  .shop-prev { min-height: 118px; border-radius: 14px; }
  .shop-prev.title { grid-auto-flow: row; justify-items: center; padding: 12px 8px; gap: 8px; }
  .shop-prev-who { align-items: center; text-align: center; }
  .shop-prev-who b { max-width: 120px; font-size: 13px; }
  .shop-prev-who .chip { white-space: normal; text-align: center; justify-content: center; }
  .shop-item-nm { font-size: 13px; }
  .shop-item-d { font-size: 12px; }
  .shop-item-ft { flex-direction: column; align-items: stretch; gap: 8px; }
  .shop-item-ft .price, .shop-paid { align-self: flex-start; }
  .shop-item-ft .btn { width: 100%; }
  .shop-st { top: 8px; right: 8px; }
}

/* ---------- кошелёк в профиле ---------- */

.wal { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.wal-bal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: radial-gradient(90% 90% at 50% 0%, rgba(255, 210, 63, .12), transparent 70%), rgba(0, 0, 0, .22);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .3);
}
.wal-bal .shop-bal b { font-size: 40px; }
.wal-bal .row { gap: 8px; }
.wal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wal-li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px var(--line); }
.wal-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 18px; background: var(--cell-face); box-shadow: var(--cell-bevel); }
.wal-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wal-t b { font-weight: 700; font-size: 14px; line-height: 1.2; }
.wal-t small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wal-d { font: 400 15px/1 var(--font-logo); letter-spacing: -.02em; word-spacing: -.3em; white-space: nowrap; }
.wal-d.up { color: var(--gold); text-shadow: 0 0 12px rgba(255, 210, 63, .35); }
.wal-d.down { color: #FFB0A6; }
@media (max-width: 899px) {
  .wal { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ---------- ставки зрителя на дуэли ---------- */

.dm-bets.bet {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  border: 1px solid rgba(255, 210, 63, .35);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255, 210, 63, .1), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 210, 63, .03) 0 10px, transparent 10px 20px),
    rgba(0, 0, 0, .2);
}
.bet-head { display: flex; align-items: center; gap: 10px; }
.bet-head .dm-bets-ico { font-size: 24px; }
.bet-head b { flex: 1; font: 400 14px/1.2 var(--font-logo); text-transform: uppercase; word-spacing: -.3em; color: var(--gold); }
.bet-head .pill { min-height: 26px; font-size: 12px; }
.bet-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bet-side {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 3px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  text-align: left;
  color: var(--text);
  font: inherit;
  background: var(--cell-face);
  box-shadow: var(--cell-bevel), 0 2px 0 var(--cell-edge);
  cursor: pointer;
  transition: box-shadow .15s, transform .08s, background .15s;
}
.bet-side .ava { grid-row: 1 / 3; }
.bet-side b { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bet-side small { font-size: 12px; line-height: 1.3; color: var(--muted); font-weight: 600; }
.bet-side small .num { color: var(--gold); font-weight: 800; }
.bet-side:hover:not(:disabled) { background: linear-gradient(180deg, #179A31 0%, var(--cell-hi) 55%, #0F7022 100%); }
.bet-side:active:not(:disabled) { transform: translateY(1px); }
.bet-side.on { box-shadow: var(--cell-bevel), 0 2px 0 var(--cell-edge), 0 0 0 2px var(--orange), 0 0 20px rgba(255, 157, 28, .35); }
.bet-side.mine::after {
  content: 'твоя';
  position: absolute;
  top: -7px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 99px;
  font: 800 10px/1.3 var(--font-ui);
  color: var(--orange-ink);
  background: var(--gold);
}
.bet-side:disabled { cursor: default; }
.bet-bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: rgba(0, 0, 0, .35); }
.bet-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FFC66E, var(--orange)); transition: width .4s var(--ease-out); }
.bet-bar i + i { background: linear-gradient(90deg, #7DD6FF, var(--cyan)); }
.bet-amts { display: flex; flex-wrap: wrap; gap: 6px; }
.bet-amt {
  flex: 1 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  font: 400 12px/1 var(--font-logo);
  word-spacing: -.3em;
  color: var(--gold);
  background: rgba(0, 0, 0, .3);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .3);
  cursor: pointer;
}
.bet-amt:hover:not(:disabled) { box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .7); }
.bet-amt.on { color: var(--orange-ink); background: linear-gradient(180deg, #FFE27A, var(--gold) 60%, #E0A92A); box-shadow: 0 2px 0 #9A6F0C, 0 0 16px rgba(255, 210, 63, .35); }
.bet-amt:disabled { opacity: .35; cursor: default; }
.bet-go { width: 100%; }
.bet-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.bet-foot b { color: var(--gold); }
.bet-mine { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; background: rgba(255, 210, 63, .1); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .3); }
.bet-mine.won { background: rgba(61, 220, 106, .13); box-shadow: inset 0 0 0 1px rgba(61, 220, 106, .4); color: #BDF7CB; }
.bet-mine.lost { background: rgba(224, 48, 30, .12); box-shadow: inset 0 0 0 1px rgba(224, 48, 30, .4); color: #FFC9C1; }
.bet-mine b { color: var(--gold); }
.bet-empty { margin: 0; font-size: 13px; color: var(--muted); }
.dm-s-done .dm-bets.bet, .dm-s-cancelled .dm-bets.bet { margin-top: 16px; }
/* монеты игрока на итогах дуэли — рядом с опытом. Тёмная плашка с золотом: на золотой подложке жёлтая 🪙 пропадала */
.dl-d.coin { color: var(--gold); background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .5); }
@media (max-width: 640px) {
  .bet-side { padding: 8px 10px; column-gap: 8px; }
  .bet-foot span + span { display: none; }
  .bet-amt { padding: 0 8px; }
}

/* выбор рамки в настройках профиля: плитка-ссылка «Ещё в магазине» */
.prof-frame.prof-frame-shop { color: var(--gold); text-decoration: none; }
.prof-frame-shop .pf-shop {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 210, 63, .5);
  background: rgba(255, 210, 63, .07);
}
.prof-frame-shop:hover .pf-shop { border-style: solid; background: rgba(255, 210, 63, .14); }
.prof-frame-shop .pf-nm { color: var(--gold); }
