:root {
  --bg: #111216;
  --surface: #1c1d22;
  --surface-2: #25262c;
  --surface-3: #2f3037;
  --line: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: #8d8f9a;
  --primary-1: #9787ff;
  --primary-2: #6c58f0;
  --ton: #0098ea;
  --green: #34c77b;
  --red: #ff5a5f;
  --orange: #ff7a2e;
  --safe-bottom: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: inherit;
}

button:active { transform: scale(0.97); }
[hidden] { display: none !important; }

/* системные стрелки числовых полей не вписываются в дизайн - убираем */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* в мини-аппе скроллбары не нужны (особенно в Telegram Desktop) */
html, .screen, .sheet { scrollbar-width: none; }
html::-webkit-scrollbar, .screen::-webkit-scrollbar, .sheet::-webkit-scrollbar { display: none; }
body.locked { overflow: hidden; }
img { display: block; }
svg { fill: currentColor; }

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(110px + var(--safe-bottom));
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.12s, opacity 0.2s;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  color: #fff;
  box-shadow: 0 6px 20px rgba(108, 88, 240, 0.35);
}

.btn-primary:disabled {
  background: var(--surface-3);
  color: var(--muted);
  box-shadow: none;
  transform: none;
  cursor: default;
}

.btn-sm { padding: 10px 14px; font-size: 14px; border-radius: 12px; }
.btn-lg { width: 100%; height: 54px; font-size: 16px; }
.btn-white { background: #fff; color: #111; flex: 1; height: 48px; }
.btn-glass { background: rgba(255, 255, 255, 0.16); color: #fff; flex: 1; height: 48px; backdrop-filter: blur(8px); }

/* ---------- Header ---------- */

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
}

.logo-tile {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo-tile img { width: 44px; height: 44px; object-fit: contain; }

.balance-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.balance-label { font-size: 12px; color: var(--muted); font-weight: 500; }

.balance-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 19px;
  font-weight: 800;
}

.ton-ic { width: 20px; height: 20px; }

/* ---------- Pages ---------- */

.page { display: none; padding: 0 16px; animation: fadeUp 0.28s ease; }
.page.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.page-title { font-size: 26px; font-weight: 800; margin: 6px 0 16px; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; }
.section-head h2 { font-size: 18px; font-weight: 800; }

/* ---------- Live ---------- */

.live {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 14px;
}

.live-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  padding: 4px 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 199, 123, 0.25);
  animation: blink 1.6s ease infinite;
}

@keyframes blink { 50% { opacity: 0.35; } }

.live-track {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: 64px;
}

.live-track::-webkit-scrollbar { display: none; }

.live-item {
  flex: 0 0 62px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--c) 30%, var(--surface-2)));
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.live-item.new { animation: popIn 0.35s ease; }

.live-item img { width: 24px; height: 24px; filter: drop-shadow(0 2px 6px var(--c)); }
.live-item span { font-size: 11.5px; font-weight: 800; }

.live-empty {
  flex: 1;
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  text-align: center;
}

@keyframes popIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }

/* ---------- Banner ---------- */

.banner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2170 / 725;
  border-radius: 20px;
  overflow: hidden;
  background: #2f86ff;
}

.banner img { width: 100%; height: 100%; object-fit: cover; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
}

.chip svg { width: 14px; height: 14px; }

.banner .chip { position: absolute; top: 12px; left: 12px; }
.chip-soon { background: #fff; color: var(--orange); }
.chip-live { background: #fff; color: #111; gap: 6px; padding: 6px 12px 6px 10px; }
.chip-live .live-dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(52, 199, 123, 0.3); }
.ic-orange { background: rgba(255, 122, 46, 0.15); color: #ff9a5c; }

/* ---------- Mines ---------- */

.banner + .banner { margin-top: 10px; }
.banner-mines { background: #ff8a1e; }

.mines-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 10px;
}

.mines-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 16px;
  background: var(--surface);
}

.mines-stat-label { font-size: 11.5px; font-weight: 600; color: var(--muted); }

.mines-stat-value {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s;
}

.mines-stat-value img { width: 16px; height: 16px; }
.mines-stat-value.next { color: #ffc23d; }
.mines-stat-value.win { color: var(--green); }
.mines-stat-value.lose { color: #ff6b70; }
.mines-stat-value.bump { animation: amountPop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }

.mines-ladder {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 10px;
  scroll-behavior: smooth;
}

.mines-ladder::-webkit-scrollbar { display: none; }

.mines-ladder span {
  flex: none;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: all 0.25s;
}

.mines-ladder span.done { color: #8a6a22; background: rgba(255, 194, 61, 0.08); }
.mines-ladder span.current { color: #1a1304; background: linear-gradient(135deg, #ffe066, #ffad0d); box-shadow: 0 4px 14px rgba(255, 173, 13, 0.35); }

.mines-board-wrap {
  position: relative;
  padding: 10px;
  border-radius: 22px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 150, 30, 0.14), transparent 70%),
    linear-gradient(180deg, #23201c, #17171c);
  border: 1px solid rgba(255, 170, 60, 0.18);
}

.mines-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.mtile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #3a3631, #2b2824);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.12s, background 0.25s, opacity 0.3s;
}

.mtile img { width: 62%; height: 62%; pointer-events: none; }
.mines-board.playing .mtile.hidden { cursor: pointer; }
.mines-board.playing .mtile.hidden:active { transform: scale(0.92); }
.mines-board.playing .mtile.hidden:hover { background: linear-gradient(180deg, #45403a, #322e29); }
.mines-board:not(.playing) .mtile.hidden { opacity: 0.55; }

.mtile.pending { animation: tilePending 0.6s ease infinite; }
@keyframes tilePending { 50% { transform: scale(0.9); filter: brightness(1.3); } }

.mtile.gem {
  background: radial-gradient(circle at 50% 40%, rgba(255, 210, 63, 0.35), transparent 65%), linear-gradient(180deg, #4a3a14, #2c2410);
  box-shadow: inset 0 0 0 1.5px rgba(255, 194, 61, 0.55);
}

.mtile.mine {
  background: radial-gradient(circle at 50% 45%, rgba(255, 70, 70, 0.4), transparent 70%), linear-gradient(180deg, #4a1a1d, #2a1214);
  box-shadow: inset 0 0 0 1.5px rgba(255, 90, 95, 0.5);
}

.mtile.hit { box-shadow: inset 0 0 0 2px #ff5a5f, 0 0 22px rgba(255, 70, 70, 0.6); z-index: 1; }
.mtile.dim { opacity: 0.38; transform: scale(0.94); }
.mtile.flip img { animation: tileFlip 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes tileFlip { from { transform: scale(0.2) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }

.mines-boom {
  position: absolute;
  width: 130px;
  height: 130px;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}

.mines-boom.show { opacity: 1; }

.mines-play { margin-bottom: 12px; }
.mines-count { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.mines-count img { width: 26px; height: 26px; }

.stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 4px;
}

.stepper button {
  width: 36px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-3);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.stepper span { min-width: 30px; text-align: center; font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }

.mines-chips { margin: 10px 0 14px; }
.mines-chips button.active { background: var(--surface-3); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

.mines-actions { display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px; }
.mines-actions .btn-soft { margin: 0; height: 60px; gap: 6px; }
.mines-actions .btn-soft svg { width: 20px; height: 20px; color: #ffc23d; }

/* ---------- Crash game ---------- */

.crash-history {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 6px 0 10px;
  min-height: 30px;
}

.crash-history::-webkit-scrollbar { display: none; }

.hist-chip {
  flex: none;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--hc) 16%, var(--surface));
  color: var(--hc);
}

.hist-chip.new { animation: popIn 0.35s ease; }

.crash-stage {
  position: relative;
  height: 280px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 15% 100%, rgba(108, 88, 240, 0.4), transparent 60%),
    radial-gradient(80% 70% at 100% 0%, rgba(47, 155, 255, 0.22), transparent 60%),
    linear-gradient(180deg, #1a1540, #111118);
  border: 1px solid var(--line);
  transition: box-shadow 0.3s;
}

.crash-stage::before {
  content: "";
  position: absolute;
  inset: -200px 0 0 -200px;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 90px 120px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 150px 60px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 60px 170px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 180px 190px, rgba(255, 255, 255, 0.5), transparent);
  background-size: 200px 200px;
  opacity: 0.6;
}

.crash-stage.flying::before { animation: stars 3s linear infinite; }
@keyframes stars { to { transform: translate(200px, 200px); } }

.crash-stage.crashed {
  box-shadow: inset 0 0 80px rgba(255, 70, 70, 0.35);
}

#crashCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.crash-rocket,
.crash-boom {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  will-change: transform;
}

.crash-rocket { width: 96px; height: 96px; }
.crash-boom { width: 140px; height: 140px; opacity: 0; transition: opacity 0.15s; z-index: 1; }
.crash-boom.show { opacity: 1; }

.crash-center {
  position: absolute;
  left: 18px;
  top: 14px;
  pointer-events: none;
  z-index: 2;
}

.crash-mult {
  font-size: 50px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.crash-mult.dim { opacity: 0.35; }

.crash-countdown {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.crash-countdown.show { display: flex; }

.crash-count {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.crash-count-label { font-size: 14px; font-weight: 700; color: #c9cbe0; margin-top: 6px; }
.crash-stage.crashed .crash-mult { color: #ff5a5f; }
.crash-status { font-size: 14px; font-weight: 700; color: #c9cbe0; margin-top: 2px; }
.crash-stage.crashed .crash-status { color: #ff8a8e; }

.crash-progress {
  width: 150px;
  height: 5px;
  border-radius: 5px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.crash-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--primary-1), #2f9bff); transform-origin: left; }

.bet-panel {
  background: var(--surface);
  border-radius: 20px;
  padding: 14px;
  margin-top: 12px;
}

.bet-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border-radius: 14px;
  padding: 5px;
}

.bet-step {
  width: 48px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface-3);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.bet-input { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.bet-input img { width: 22px; height: 22px; }

.bet-input input {
  width: 100%;
  max-width: 130px;
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  text-align: left;
}

.bet-chips { margin: 10px 0 12px; }

.auto-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.auto-label { flex: 1; font-weight: 700; font-size: 14.5px; }

.auto-input {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 0 12px;
  height: 42px;
  width: 104px;
}

.auto-input input {
  width: 100%;
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.auto-input span { color: var(--muted); font-weight: 800; }
.auto-row.off .auto-input { opacity: 0.45; }

.toggle { position: relative; width: 46px; height: 28px; flex-shrink: 0; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }

.toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--surface-3);
  transition: background 0.2s;
  cursor: pointer;
}

.toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.toggle input:checked + span { background: var(--primary-2); }
.toggle input:checked + span::after { transform: translateX(18px); }

.crash-action { flex-direction: column; gap: 0; height: 60px; line-height: 1.2; }
.crash-action small { font-size: 12px; font-weight: 600; opacity: 0.8; }

.crash-action.is-cashout {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  box-shadow: 0 6px 22px rgba(34, 197, 94, 0.4);
}

.crash-action.is-cancel { background: var(--surface-3); color: #ff8a8e; box-shadow: none; }
.crash-action.is-done { background: rgba(52, 199, 123, 0.15); color: var(--green); box-shadow: none; }


.crash-tabs { margin-top: 16px; }

.crash-bets-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin: 2px 4px 8px;
}

.cbets { display: flex; flex-direction: column; gap: 6px; }
.cbets .empty { background: var(--surface); border-radius: 16px; }

.cbet {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 16px;
}

.cbet.me {
  background: color-mix(in srgb, var(--primary-1) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--primary-1) 50%, transparent);
}

.cbet .user-ava { width: 38px; height: 38px; font-size: 15px; }
.cbet-main { flex: 1; min-width: 0; }

.cbet-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; }
.cbet-name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cbet-you {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(151, 135, 255, 0.18);
  color: var(--primary-1);
}

.cbet-amount {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.cbet-amount img { width: 14px; height: 14px; }

.cbet-res { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }

.cbet-x {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--surface-2);
  color: var(--muted);
}

.cbet-x.win { background: rgba(52, 199, 123, 0.15); color: var(--green); }
.cbet-x.lose { background: rgba(255, 90, 95, 0.12); color: #ff6b70; }
.cbet-x.wait i { width: 6px; height: 6px; border-radius: 50%; background: #ffc23d; animation: blink 1.4s ease infinite; }
.cbet-win { font-size: 14px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }

.cbet-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
}

.cbet-icon svg { width: 20px; height: 20px; }
.cbet-icon.win { background: rgba(52, 199, 123, 0.15); color: var(--green); }
.cbet-icon.lose { background: rgba(255, 90, 95, 0.12); color: #ff6b70; }

.fair-result {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.fair-formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: #c9cbe0;
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px 14px;
}
.chip-free { background: rgba(52, 199, 123, 0.16); color: var(--green); }

/* ---------- Case card ---------- */

.case-card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 46% 1fr;
  align-items: center;
  gap: 6px;
  padding: 12px 16px 12px 6px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 22% 50%, rgba(47, 134, 255, 0.45), transparent 62%),
    linear-gradient(135deg, #1d2a4a, #181a22 70%);
  border: 1px solid rgba(80, 150, 255, 0.28);
}

.case-card-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 120, 255, 0.45));
  animation: float 4s ease-in-out infinite;
}

@keyframes float { 50% { transform: translateY(-6px) rotate(-1.5deg); } }

.case-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.case-card-title { font-size: 24px; font-weight: 900; letter-spacing: -0.3px; }
.case-card-sub { font-size: 13px; color: #b7bccb; line-height: 1.4; }

.case-card-btn {
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd23f, #ffad0d);
  color: #2b1d00;
  box-shadow: 0 6px 18px rgba(255, 180, 20, 0.35);
  font-variant-numeric: tabular-nums;
}

.case-card-btn.wait { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: none; }

/* ---------- Paid cases ---------- */

.pcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.pcase {
  --a: #8b5cf6;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 40%, color-mix(in srgb, var(--a) 40%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--a) 18%, #1a1b20), #17181d);
  border: 1px solid color-mix(in srgb, var(--a) 45%, transparent);
}

.pcase-art { padding: 14px 10px 4px; }

.pcase-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px color-mix(in srgb, var(--a) 55%, transparent));
}

.pcase-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 10px 14px;
  background: rgba(0, 0, 0, 0.28);
}

.pcase-name { font-weight: 800; font-size: 15px; }

.pcase-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a) 80%, #fff), var(--a));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--a) 45%, transparent);
}

.pcase-price img { width: 16px; height: 16px; }

/* ---------- Segmented tabs ---------- */

.seg {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--surface);
  border-radius: 14px;
  margin-bottom: 10px;
}

.seg button {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.seg button.active { background: var(--surface-3); color: #fff; }
.seg button img { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-right: 2px; }

/* ---------- Stars deposit ---------- */


.stars-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.step { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: #d6d8e4; }

.step-n {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  background: rgba(255, 194, 61, 0.16);
  color: #ffc23d;
}

.btn-soft { background: var(--surface-2); color: #fff; margin-bottom: 16px; height: 50px; }

.case-note.bonus { color: #ffc23d; font-weight: 700; }

/* ---------- Deposit flow ---------- */

.dep-sheet { max-height: 92vh; overflow-y: auto; }
.dep-pane { animation: paneIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dep-pane.back { animation-name: paneBack; }
@keyframes paneIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes paneBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

.dep-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px;
  margin: 6px 0 16px;
  border-radius: 16px;
  background: var(--surface-2);
}

.dep-switch-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 4);
  border-radius: 12px;
  background: var(--surface-3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.3, 1.3, 0.5, 1), background 0.3s;
}

.dep-switch.gift .dep-switch-thumb { transform: translateX(0); background: #3a2a1c; }
.dep-switch.ton .dep-switch-thumb { transform: translateX(100%); }
.dep-switch.usdt .dep-switch-thumb { transform: translateX(200%); background: #1c3a30; }
.dep-switch.stars .dep-switch-thumb { transform: translateX(300%); background: #3a2f1c; }

.dep-switch button {
  position: relative;
  z-index: 1;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.25s;
}

.dep-switch button.active { color: #fff; }
.dep-switch button img { width: 20px; height: 20px; }

.amount-hero {
  --hc: 0, 152, 234;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px 16px 18px;
  text-align: center;
  background: linear-gradient(160deg, rgba(var(--hc), 0.16), rgba(var(--hc), 0.04) 60%), var(--surface-2);
  border: 1px solid rgba(var(--hc), 0.3);
  transition: border-color 0.4s, background 0.4s;
}

.amount-hero.stars { --hc: 255, 176, 32; }
.amount-hero.usdt { --hc: 38, 161, 123; }

.pay-card.pay-usdt {
  background: radial-gradient(80% 120% at 50% 0%, rgba(38, 161, 123, 0.3), transparent 70%), var(--surface-2);
  border-color: rgba(38, 161, 123, 0.35);
}

.net-dot.trc { background: #ff3b3b; box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.3); }
.tx-wrap input { font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tx-wrap.invalid { border-color: rgba(255, 90, 95, 0.7); }

.amount-glow {
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(var(--hc), 0.28) 60deg, transparent 140deg, transparent 220deg, rgba(var(--hc), 0.18) 290deg, transparent 360deg);
  animation: spin 9s linear infinite;
  pointer-events: none;
}

.amount-label, .amount-row, .amount-sub { position: relative; }
.amount-label { font-size: 13px; font-weight: 600; color: #b9bccb; }

.amount-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 6px;
}

.amount-cur {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 16px rgba(var(--hc), 0.55));
  animation: float 3.5s ease-in-out infinite;
}

#depAmount {
  width: 3ch;
  min-width: 1.5ch;
  max-width: 70%;
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  font: inherit;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
  caret-color: rgb(var(--hc));
}

#depAmount::placeholder { color: rgba(255, 255, 255, 0.25); }

.amount-sub { font-size: 13.5px; font-weight: 600; color: #b9bccb; min-height: 19px; }
.amount-sub b { color: #fff; }
.amount-hero.pop .amount-row { animation: amountPop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.amount-hero.shake { animation: shake 0.42s ease; border-color: rgba(255, 90, 95, 0.7); }

@keyframes amountPop { 40% { transform: scale(1.08); } }
@keyframes shake {
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

.dep-chips { margin: 14px 0 16px; }
.dep-chips button { display: flex; align-items: center; justify-content: center; gap: 4px; transition: background 0.2s, color 0.2s; }
.dep-chips button img { width: 14px; height: 14px; }
.dep-chips button.active { background: var(--surface-3); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite;
}

@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

.dep-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 12px -6px;
  padding: 6px 10px 6px 4px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.dep-back svg { width: 22px; height: 22px; }

.pay-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 22px;
  padding: 18px 16px;
  margin-bottom: 16px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(0, 152, 234, 0.3), transparent 70%),
    var(--surface-2);
  border: 1px solid rgba(0, 152, 234, 0.3);
}

.pay-card.pay-stars {
  background: radial-gradient(80% 120% at 50% 0%, rgba(255, 176, 32, 0.28), transparent 70%), var(--surface-2);
  border-color: rgba(255, 176, 32, 0.32);
}

.pay-label { font-size: 13px; font-weight: 600; color: #b9bccb; }

.pay-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 8px;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1px;
}

.pay-amount img { width: 36px; height: 36px; }
.pay-amount small { font-size: 22px; font-weight: 800; opacity: 0.75; }

.pay-net {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #cfd2e6;
  background: rgba(0, 0, 0, 0.25);
  padding: 5px 11px;
  border-radius: 999px;
}

.pay-net b { color: #fff; }
.net-dot { width: 7px; height: 7px; border-radius: 50%; background: #0098ea; box-shadow: 0 0 0 3px rgba(0, 152, 234, 0.3); }

.copy-memo { box-shadow: inset 0 0 0 1px rgba(255, 194, 61, 0.45); }
.copy-memo span { color: #ffd66b; font-size: 17px; letter-spacing: 0.5px; }

.pay-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary-1);
  animation: spin 0.9s linear infinite;
}

.stars-receiver { white-space: nowrap; }
#starsSubmit { margin-top: 0; }

.dep-done { text-align: center; padding: 10px 0 4px; }

.done-burst {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 8px auto 18px;
  display: grid;
  place-items: center;
}

.done-check { width: 92px; height: 92px; }

.done-check circle {
  fill: rgba(52, 199, 123, 0.14);
  stroke: var(--green);
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw 0.6s ease forwards;
}

.done-check path {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: draw 0.4s 0.5s ease forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.done-burst i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: var(--c, var(--green));
  opacity: 0;
  animation: burst 0.9s 0.35s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.done-burst i:nth-child(1) { --dx: 0px; --dy: -62px; --c: #ffd23f; }
.done-burst i:nth-child(2) { --dx: 44px; --dy: -44px; --c: #34c77b; }
.done-burst i:nth-child(3) { --dx: 62px; --dy: 0px; --c: #9787ff; }
.done-burst i:nth-child(4) { --dx: 44px; --dy: 44px; --c: #2f9bff; }
.done-burst i:nth-child(5) { --dx: 0px; --dy: 62px; --c: #ffd23f; }
.done-burst i:nth-child(6) { --dx: -44px; --dy: 44px; --c: #34c77b; }
.done-burst i:nth-child(7) { --dx: -62px; --dy: 0px; --c: #9787ff; }
.done-burst i:nth-child(8) { --dx: -44px; --dy: -44px; --c: #2f9bff; }

@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) scale(0.6); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); }
}

.done-title { font-size: 22px; font-weight: 800; }
.done-sub { color: var(--muted); font-size: 15px; font-weight: 600; margin: 6px 0 22px; line-height: 1.45; }
.done-sub b { color: var(--green); font-size: 20px; }

.inline-star { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }

/* ---------- Dock (нижняя навигация) ---------- */

.dock-fade {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(110px + var(--safe-bottom));
  background: linear-gradient(180deg, transparent, var(--bg) 65%);
  pointer-events: none;
  z-index: 40;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: calc(14px + var(--safe-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 50;
}

.dock-group {
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(30, 31, 36, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.dock-btn {
  width: 62px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #e9e9ee;
  transition: background 0.2s, color 0.2s;
}

.dock-btn svg { width: 24px; height: 24px; }
.dock-btn.active { background: #34353c; color: #8d8f9a; }

.dock-solo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(30, 31, 36, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.dock-solo.active { background: #34353c; }

.dock.has-admin { gap: 8px; }
.dock.has-admin .dock-group .dock-btn { width: 52px; }
.dock.has-admin .dock-solo { width: 56px; height: 56px; }
#adminDockBtn { color: #ffc23d; }
#adminDockBtn.active { color: #b08a2a; }
#adminDockBtn { position: relative; }
#adminDockBtn.has-dot::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 13px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5a5f;
  box-shadow: 0 0 0 2px #1e1f24;
}

/* ---------- Admin ---------- */

.adm-self { margin-top: 12px; }
.section-count { color: var(--muted); font-size: 14px; font-weight: 600; }

.search-wrap { margin-bottom: 10px; }
.search-wrap svg { width: 20px; height: 20px; color: var(--muted); margin-right: 8px; flex-shrink: 0; }

.user-row { width: 100%; }
.user-row:active { transform: none; opacity: 0.7; }

.user-ava {
  position: relative;
  overflow: hidden;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-1) 55%, var(--surface-3)), var(--surface-3));
}

.user-ava img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-admin {
  display: inline-block;
  margin-left: 6px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 194, 61, 0.15);
  color: #ffc23d;
  vertical-align: 2px;
}

.grant-user {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 6px 0 16px;
}

.chips-row { display: flex; gap: 8px; margin: 10px 0 18px; }

.chips-row button {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.boost-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: none;
  border: none;
  color: transparent;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
}

.case-boost { margin: 0 0 12px; }
.boost-seg { margin-bottom: 6px; background: var(--surface-2); }
.boost-seg button.active { background: rgba(255, 122, 46, 0.25); color: #ffb36b; }
.badge-boost { background: rgba(255, 122, 46, 0.16); color: #ff9a5c; }

.grant-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.grant-actions .btn { height: 54px; font-size: 16px; }
.btn-dark { background: var(--surface-3); color: #ff8a8e; }
.btn-green { background: linear-gradient(135deg, #4ade80, #16a34a); color: #fff; box-shadow: 0 6px 18px rgba(34, 197, 94, 0.3); }

.adm-tabs { margin: 16px 0 12px; }
.adm-subtabs { background: none; padding: 0; gap: 8px; margin-bottom: 12px; }
.adm-subtabs button { background: var(--surface); height: 36px; font-size: 13.5px; }
.adm-subtabs button.active { background: var(--surface-3); }

.adm-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: #ff5a5f;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  vertical-align: 1px;
}

.dreq {
  background: var(--surface);
  border-radius: 18px;
  padding: 12px;
  animation: fadeUp 0.25s ease;
}

.dreq.removing { opacity: 0; transform: scale(0.97); transition: all 0.25s ease; }
.dreq-top { display: flex; align-items: center; gap: 12px; }
.dreq-top .user-ava { width: 40px; height: 40px; }
.dreq-user { flex: 1; min-width: 0; text-align: left; }
.dreq-user:active { transform: none; opacity: 0.7; }

.dreq-amount { text-align: right; flex-shrink: 0; }
.dreq-amount-main { display: flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: 16px; font-weight: 800; }
.dreq-amount-main img { width: 18px; height: 18px; }
.dreq-amount-sub { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 2px; }

.dreq-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.dreq-meta span { background: var(--surface-2); padding: 4px 8px; border-radius: 8px; }
.dreq-meta .memo { color: #ffd66b; }
.dreq-meta .tx-link {
  background: rgba(255, 59, 59, 0.12);
  color: #ff8a8e;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dreq-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 12px; }
.dreq-actions .btn { height: 44px; font-size: 14.5px; border-radius: 12px; }

/* ---------- Case screen ---------- */

.screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--bg);
  overflow-y: auto;
  padding: 0 16px calc(28px + var(--safe-bottom));
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen.open { transform: none; }
.screen > * { max-width: 448px; margin-left: auto; margin-right: auto; }

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 4px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
}

.icon-btn svg { width: 24px; height: 24px; }
.screen-title { font-size: 17px; font-weight: 800; }

.balance-mini {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-size: 14px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 999px;
}

.balance-mini img { width: 16px; height: 16px; }

.case-hero {
  --a: #2f86ff;
  display: grid;
  place-items: center;
  padding: 4px 0 8px;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--a) 38%, transparent), transparent 70%);
}

.case-hero img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  animation: float 4s ease-in-out infinite;
}

.roulette-wrap { position: relative; margin-bottom: 16px; }

.roulette {
  height: 124px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.roulette-track {
  display: flex;
  gap: 8px;
  height: 100%;
  align-items: center;
  will-change: transform;
}

.roulette-marker {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: #ffd23f;
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(255, 210, 63, 0.8);
  pointer-events: none;
}

.roulette-marker::before,
.roulette-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
}

.roulette-marker::before { top: -2px; border-top-color: #ffd23f; }
.roulette-marker::after { bottom: -2px; border-bottom-color: #ffd23f; }

.case-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ---------- Prize tiles ---------- */

.tile {
  --c: #8e9bb3;
  flex: 0 0 96px;
  height: 104px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-2) 30%, color-mix(in srgb, var(--c) 32%, var(--surface-2)));
  border-bottom: 3px solid var(--c);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.tile img { width: 40px; height: 40px; filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--c) 70%, transparent)); }
.tile .tile-amount { font-size: 14px; font-weight: 800; }
.tile .tile-chance { position: absolute; top: 7px; right: 8px; font-size: 10.5px; font-weight: 700; color: var(--muted); }

.tile.win {
  box-shadow: 0 0 0 2px var(--c), 0 0 26px color-mix(in srgb, var(--c) 70%, transparent);
  animation: winPulse 0.6s ease 2;
}

@keyframes winPulse { 50% { transform: scale(1.06); } }

.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.prize-grid .tile { height: 112px; }

/* ---------- Wallet ---------- */

.balance-card {
  position: relative;
  border-radius: 24px;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 50%),
    linear-gradient(135deg, #2f9bff, #6c58f0);
  box-shadow: 0 14px 36px rgba(70, 110, 255, 0.3);
}

.balance-card-label { font-size: 14px; font-weight: 600; opacity: 0.85; }

.balance-card-value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 36px;
  font-weight: 900;
  margin: 6px 0 20px;
  letter-spacing: -0.5px;
}

.balance-card-value img { width: 34px; height: 34px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); border-radius: 50%; }
.balance-card-value .unit { font-size: 20px; opacity: 0.8; font-weight: 800; }
.balance-card-actions { display: flex; gap: 10px; }

.list {
  background: var(--surface);
  border-radius: 20px;
  padding: 4px 14px;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child { border-bottom: 0; }
.list-row-main { flex: 1; min-width: 0; }
.list-row-title { font-weight: 700; font-size: 15px; }
.list-row-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.list-row-end { text-align: right; }
.list-row-amount { font-weight: 800; font-size: 15px; }
.list-row-amount.plus { color: var(--green); }

.status { font-size: 11.5px; font-weight: 700; margin-top: 3px; }
.status-pending { color: #ffc23d; }
.status-approved, .status-completed { color: var(--green); }
.status-rejected { color: var(--red); }

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
}

.pager-btn svg { width: 20px; height: 20px; }
.pager-btn:disabled { opacity: 0.35; transform: none; cursor: default; }
.pager-page { color: var(--muted); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.historyList-loading { opacity: 0.5; transition: opacity 0.15s; }

.empty { color: var(--muted); font-size: 14px; text-align: center; padding: 26px 0; }

.odds-row .tile { flex: 0 0 44px; height: 44px; border-radius: 12px; gap: 0; border-bottom-width: 2px; }
.odds-row .tile img { width: 22px; height: 22px; }

.odds-bar { height: 6px; background: var(--surface-3); border-radius: 6px; margin-top: 7px; overflow: hidden; }
.odds-bar span { display: block; height: 100%; border-radius: 6px; background: var(--c); }

/* ---------- Info ---------- */

.info-list { display: flex; flex-direction: column; gap: 10px; }

.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: 18px;
  padding: 14px;
}

.info-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-ic svg, .info-ic img { width: 22px; height: 22px; }
.ic-green { background: rgba(52, 199, 123, 0.15); color: var(--green); }
.ic-blue { background: rgba(0, 152, 234, 0.15); color: #3fb4ff; }
.ic-purple { background: rgba(151, 135, 255, 0.15); color: var(--primary-1); }

.info-title { font-weight: 800; font-size: 15px; }
.info-text { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 3px; }

.support-btn {
  margin-top: 16px;
  width: 100%;
  height: 52px;
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.support-btn svg { width: 20px; height: 20px; color: var(--primary-1); }

/* ---------- Profile ---------- */

.profile-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 20px;
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary-1), #2f9bff);
  margin-bottom: 12px;
}

.avatar img, .avatar .avatar-letter {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
}

.avatar .avatar-letter {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font-size: 34px;
  font-weight: 800;
}

.profile-name { font-size: 22px; font-weight: 800; }
.profile-username { color: var(--muted); font-size: 14px; margin-top: 2px; }

.id-chip {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 999px;
}

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.stat { background: var(--surface); border-radius: 18px; padding: 14px; }

.stat-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 800;
}

.stat-value img { width: 18px; height: 18px; }
.stat-label { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

.menu { margin-top: 16px; background: var(--surface); border-radius: 20px; padding: 4px 12px; }

.menu-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.menu-row:last-child { border-bottom: 0; }
.menu-row:active { transform: none; opacity: 0.7; }
.menu-label { flex: 1; font-weight: 700; font-size: 15px; }
.chev { width: 22px; height: 22px; color: var(--muted); }

/* ---------- Sheets ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 100;
}

.backdrop.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(22px + var(--safe-bottom));
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.32s;
  z-index: 110;
}

.sheet.open { transform: none; visibility: visible; transition-delay: 0s; }

.sheet-handle { width: 40px; height: 5px; border-radius: 5px; background: var(--surface-3); margin: 0 auto 14px; }
.sheet-title { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.sheet-text { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; }
.sheet-text.small { font-size: 12.5px; margin: 12px 0 0; text-align: center; }

.field-label { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 7px 2px; }
.field-hint { font-size: 12.5px; color: var(--muted); margin: 7px 0 16px 2px; }

.copy-field {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}

.copy-field span { flex: 1; word-break: break-all; text-align: left; }
.copy-field svg { width: 20px; height: 20px; color: var(--primary-1); flex-shrink: 0; }

.warn {
  background: rgba(255, 122, 46, 0.12);
  color: #ffa36b;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 0 6px 0 14px;
  transition: border-color 0.2s;
}

.input-wrap:focus-within { border-color: var(--primary-1); }

.input-wrap input {
  flex: 1;
  min-width: 0;
  height: 52px;
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
}

.input-wrap + .btn { margin-top: 18px; }

.max-btn {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(151, 135, 255, 0.16);
  color: var(--primary-1);
  font-size: 13px;
  font-weight: 800;
}

/* ---------- Result ---------- */

.result {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(8, 8, 12, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.result.show { display: flex; }

.result-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border-radius: 28px;
  padding: 34px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  animation: resultIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes resultIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }

.result-rays {
  position: absolute;
  top: -110px;
  left: 50%;
  width: 360px;
  height: 360px;
  margin-left: -180px;
  background: repeating-conic-gradient(from 0deg, var(--rc, rgba(255, 210, 63, 0.16)) 0 10deg, transparent 10deg 30deg);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 65%);
  mask-image: radial-gradient(circle, #000 20%, transparent 65%);
  animation: spin 14s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.tile-xl { flex: none; width: 128px; height: 136px; border-radius: 22px; position: relative; }
.tile-xl img { width: 60px; height: 60px; }
.tile-xl .tile-amount { font-size: 18px; }

.result-title { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 20px; position: relative; }
.result-amount { font-size: 34px; font-weight: 900; margin: 4px 0 22px; position: relative; color: var(--green); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  top: calc(14px + var(--tg-content-safe-area-inset-top, 0px));
  transform: translate(-50%, -20px);
  background: var(--surface-3);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 300;
  max-width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ======================================================================
   Валюты, NFT-подарки, инвентарь, редактор кейсов
   ====================================================================== */

.money { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.money img { width: 1.05em; height: 1.05em; flex: none; }
.balance-value .money img { width: 20px; height: 20px; }
.stat-value .money img { width: 18px; height: 18px; }
.dep-switch button { font-size: 14px; gap: 5px; }
.dep-switch button img { width: 18px; height: 18px; }

.cur-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 38px;
  padding: 0 4px 0 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 800;
  flex-shrink: 0;
}
.cur-btn img { width: 20px; height: 20px; }
.cur-chev { width: 16px; height: 16px; fill: var(--muted); }

.cur-row { width: 100%; text-align: left; }
.cur-row:disabled { opacity: 0.4; }
.cur-row .info-ic { background: var(--surface-2); }
.cur-row.active .list-row-title { color: var(--primary-1); }
.cur-check { width: 22px; height: 22px; fill: var(--primary-1); }

.menu-count { color: var(--muted); font-weight: 700; font-size: 14px; }

/* ---- плитки подарков ---- */

.tile .gift-img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--c) 55%, transparent)); }
.tile-gift { gap: 2px; padding: 4px 4px 6px; }
.tile .tile-name {
  max-width: 100%;
  padding: 0 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #cfd2de;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile .tile-amount { display: flex; align-items: center; }
.tile .tile-amount .money img { width: 13px; height: 13px; filter: none; }
.tile-gift .tile-amount { font-size: 12.5px; }
.prize-grid .tile-gift { padding-top: 18px; height: 124px; }
.prize-grid .tile-gift .gift-img { width: 54px; height: 54px; }
.odds-row .tile .gift-img { width: 34px; height: 34px; }
.odds-val { color: var(--muted); font-weight: 600; font-size: 13px; }
.tile-xl .gift-img { width: 96px; height: 96px; }
.tile-xl.tile-gift { gap: 6px; }

.live-item .gift-img { width: 34px; height: 34px; object-fit: contain; }
.live-gift { gap: 1px; }
.live-item .money img { width: 11px; height: 11px; filter: none; }
.live-item span { display: inline-flex; align-items: center; }

.pcase-price .money img { width: 16px; height: 16px; }
.dreq-amount-main .gift-img { width: 26px; height: 26px; object-fit: contain; }
.info-ic .gift-img { width: 30px; height: 30px; object-fit: contain; }

/* ---- окно выигрыша ---- */

.result-amount.gift { color: #fff; font-size: 24px; }
.result-actions { display: flex; gap: 10px; width: 100%; position: relative; }
.result-actions .btn { flex: 1; }
.result-actions .btn-dark { color: #fff; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.result-actions .btn-dark small { font-size: 12px; font-weight: 700; color: var(--muted); }

/* ---- инвентарь ---- */

.inv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 159, 67, 0.22), transparent 60%), var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.inv-head .btn { height: 44px; padding: 0 18px; flex: none; width: auto; }
.inv-total { font-size: 26px; font-weight: 900; margin-top: 4px; }
.inv-total .money img { width: 24px; height: 24px; }
.inv-count { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 2px; }

.inv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.inv-card {
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeUp 0.25s ease;
}
.inv-card.busy { opacity: 0.6; }
.inv-art {
  width: 100%;
  aspect-ratio: 1.25;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(151, 135, 255, 0.22), transparent 70%);
}
.inv-art .gift-img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45)); }
.inv-name { font-weight: 800; font-size: 14px; margin-top: 6px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-price { font-weight: 700; font-size: 13px; color: #cfd2de; margin: 3px 0 8px; }
.inv-price .money img { width: 14px; height: 14px; }
.inv-actions { display: flex; gap: 6px; width: 100%; }
.inv-btn {
  height: 36px;
  border-radius: 11px;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 800;
  flex: 0 0 40px;
}
.inv-btn svg { width: 18px; height: 18px; fill: currentColor; }
.inv-btn.sell { flex: 1; background: linear-gradient(135deg, var(--primary-1), var(--primary-2)); }
.inv-btn:disabled { opacity: 0.5; }
.inv-status { height: 36px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--orange); }
.inv-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 34px 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.inv-empty img { width: 52px; height: 52px; opacity: 0.8; }
[data-page="inventory"] .support-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---- пополнение NFT ---- */

.dep-gift { animation: fadeUp 0.25s ease; }
.gift-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  margin-bottom: 10px;
  border: 1.5px solid;
}
.gift-rule.ok { border-color: rgba(52, 199, 123, 0.55); background: rgba(52, 199, 123, 0.08); }
.gift-rule.no { border-color: rgba(255, 90, 95, 0.5); background: rgba(255, 90, 95, 0.07); }
.gift-rule-art { flex: none; width: 84px; height: 56px; position: relative; display: flex; align-items: center; justify-content: center; }
.gift-rule-art img { width: 40px; height: 40px; object-fit: contain; }
.gift-rule-art .gift-img { width: 46px; height: 46px; margin: 0 -10px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.gift-rule.no .gift-rule-art img { opacity: 0.55; }
.gift-rule.no .gift-rule-art::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid #ff4d6d;
  box-sizing: border-box;
  background: linear-gradient(45deg, transparent 45%, #ff4d6d 45%, #ff4d6d 55%, transparent 55%);
}
.gift-rule-title { font-weight: 800; font-size: 16px; }
.gift-rule-sub { font-size: 13px; font-weight: 700; margin-top: 3px; }
.gift-rule.ok .gift-rule-sub { color: var(--green); }
.gift-rule.no .gift-rule-sub { color: #ff6b81; }
.dep-gift .stars-steps { margin-top: 16px; }
.dep-gift .btn-primary { margin-bottom: 6px; }
.nft-wrap.invalid { border-color: rgba(255, 90, 95, 0.7); }
.nft-wrap input { font-size: 14px; }
.nft-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 13px;
}
.nft-preview .gift-img { width: 44px; height: 44px; object-fit: contain; }
.nft-preview-main { display: flex; flex-direction: column; gap: 2px; }
.nft-preview-main span { color: var(--muted); }
.nft-bad { color: #ff8a8e; font-weight: 600; }
#giftSubmit { margin-top: 4px; }

/* ---- админка: кейсы ---- */

.adm-case-sum {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  margin: 12px 0;
  border-radius: 14px;
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
}
.adm-case-sum b { color: #fff; }
.adm-case-sum .ok-text { color: var(--green); }
.adm-case-sum .warn-text { color: #ffc23d; }
.adm-case-sum .bad-text { color: var(--red); }
.adm-prize { gap: 10px; }
.adm-prize-ic { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); }
.adm-prize-ic img { width: 30px; height: 30px; object-fit: contain; }
.adm-prize .list-row-title { font-size: 14px; }
.mini-input {
  width: 72px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  text-align: right;
  padding: 0 8px;
  outline: none;
}
.mini-input:focus { border-color: var(--primary-1); }
.adm-gram, .adm-chance { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
.adm-chance .mini-input { width: 92px; font-size: 13px; }
.adm-gram .mini-input { width: 64px; }
.adm-del { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); color: #ff8a8e; font-size: 20px; line-height: 1; display: grid; place-items: center; text-align: center; flex: none; }
.adm-case-actions { display: flex; gap: 10px; margin-top: 14px; }
.adm-case-actions .btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; }
#admCaseTabs { overflow-x: auto; scrollbar-width: none; display: flex; }
#admCaseTabs::-webkit-scrollbar { display: none; }
#admCaseTabs button { flex: 1 0 auto; padding: 0 12px; }

.gift-picker { max-height: 86vh; overflow-y: auto; }
.gift-pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.gift-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 14px;
  background: var(--surface-2);
  text-align: center;
  min-width: 0;
}
.gift-pick .gift-img { width: 56px; height: 56px; object-fit: contain; }
.gift-pick-name { font-size: 12px; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift-pick-price { font-size: 11.5px; color: var(--muted); font-weight: 600; }

.balance-label { white-space: nowrap; }
.balance-value { white-space: nowrap; }

/* ---- модели подарков ---- */

.inv-model { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 1px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-card > .inv-btn.sell { width: 100%; flex: none; }
.nft-preview-main .nft-value { font-size: 16px; color: var(--green); }
.nft-warn { color: #ffc23d !important; }
.nft-preview { align-items: flex-start; }
.nft-preview .gift-img { width: 56px; height: 56px; flex: none; }
#openGiftReceiver { margin-top: 14px; }
.pick-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pick-head .sheet-title { margin-bottom: 0; }
.pick-back { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.pick-back svg { width: 22px; height: 22px; fill: #fff; }
.gift-pick-any { border: 1.5px solid var(--primary-1); }

/* ---- ставка подарками ---- */

.gift-bet-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 10px 0 0; height: 46px; font-weight: 800; }
.gift-bet-btn svg { width: 20px; height: 20px; fill: #ff9f43; }
#grantGift { margin-top: 12px; }
.stake-pick { position: relative; border: 1.5px solid transparent; }
.stake-pick.on { border-color: var(--primary-1); background: color-mix(in srgb, var(--primary-1) 18%, var(--surface-2)); }
.stake-pick.on::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-1);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.stake-pick:disabled { opacity: 0.35; }
.stake-submit { position: sticky; bottom: 0; margin-top: 14px; box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.45); }
.mines-stat-value img[data-cur-icon] { width: 16px; height: 16px; }
