:root {
  --bg: var(--tg-theme-bg-color, #0f1115);
  --bg-soft: var(--tg-theme-secondary-bg-color, #181b22);
  --card: #1d2029;
  --card-2: #242833;
  --text: var(--tg-theme-text-color, #e8eaf0);
  --text-muted: var(--tg-theme-hint-color, #8b93a7);
  --accent: var(--tg-theme-button-color, #ffb347);
  --accent-text: var(--tg-theme-button-text-color, #1a1a1a);
  --good: #4ade80;
  --bad: #f87171;
  --warn: #fbbf24;
  --border: rgba(255,255,255,.06);
  --shadow: 0 6px 18px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* ────────── Top bar ────────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--bg-soft), transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo { font-size: 26px; }
.brand-name { font-weight: 700; font-size: 16px; }
.brand-sub { font-size: 11px; color: var(--text-muted); }

.balance {
  display: flex; align-items: center; gap: 6px;
  background: var(--card);
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 600;
}
.coin { font-size: 16px; }
.coin-label { color: var(--text-muted); font-weight: 500; font-size: 12px; }

/* ────────── Tabs ────────── */
.tabs {
  display: flex; gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto;
  padding: 10px 14px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
.tab.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: transparent;
  transform: translateY(-1px);
}

main { padding: 6px 12px 90px; }
.panel { display: none; animation: fade .2s ease; }
.panel.active { display: block; }
@keyframes fade { from {opacity:0; transform: translateY(4px);} to {opacity:1; transform:none;} }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin: 8px 4px 10px;
}

/* ────────── Profile ────────── */
.profile-card { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb347, #ff7e5f);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.profile-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.profile-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  background: var(--card-2);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--border);
}
.profile-username { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ────────── Stats grid ────────── */
.grid { display: grid; gap: 10px; }
.stats-grid { grid-template-columns: repeat(2, 1fr); }
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex; align-items: center; gap: 10px;
}
.stat-icon { font-size: 22px; flex-shrink: 0; }
.stat-val { font-size: 18px; font-weight: 700; line-height: 1.1; }
.stat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ────────── Works ────────── */
.works-list { display: flex; flex-direction: column; gap: 10px; }
.work {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex; align-items: flex-start; gap: 12px;
}
.work-icon {
  font-size: 28px; line-height: 1; flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--card-2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.work-body { flex: 1; min-width: 0; }
.work-name { font-weight: 700; margin-bottom: 4px; }
.work-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.work-status { font-size: 12px; }
.work-status .ok { color: var(--good); font-weight: 600; }
.work-status .cd { color: var(--warn); font-weight: 600; }

/* ────────── Buttons & inputs ────────── */
.btn {
  background: var(--card-2); color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: transform .1s, opacity .15s, background .15s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.btn.warn { background: linear-gradient(135deg, #f59e0b, #ef4444); color: white; border-color: transparent; }
.btn.big { padding: 14px 22px; font-size: 16px; }

.row { display: flex; align-items: center; }
.row.gap { gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.row.center { justify-content: center; }
.field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 100px; }
.field span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.field input {
  background: var(--card-2); color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px; font-weight: 600;
  outline: none;
  -moz-appearance: textfield;
}
.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ────────── Subtabs ────────── */
.subtabs {
  display: flex; gap: 6px;
  background: var(--card); border-radius: 12px;
  padding: 4px; margin-bottom: 12px;
  border: 1px solid var(--border);
}
.subtab {
  flex: 1;
  padding: 10px;
  background: transparent;
  color: var(--text-muted);
  border: none; border-radius: 8px;
  font-weight: 600; font-size: 13px;
  cursor: pointer;
}
.subtab.active { background: var(--accent); color: var(--accent-text); }
.subpanel { display: none; }
.subpanel.active { display: block; }

/* ────────── Minesweeper ────────── */
.ms-info {
  display: flex; justify-content: space-around;
  margin-bottom: 12px;
  font-size: 13px; color: var(--text-muted);
}
.ms-info b { color: var(--text); }
.ms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.ms-cell {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #2c313e, #20242e);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  cursor: pointer;
  transition: transform .1s, background .15s;
  user-select: none;
}
.ms-cell:hover:not(.opened):not(.disabled) {
  background: linear-gradient(160deg, #353b4a, #262b37);
  transform: scale(1.03);
}
.ms-cell.opened {
  background: linear-gradient(160deg, #14532d, #166534);
  color: var(--good);
  cursor: default;
}
.ms-cell.mine {
  background: linear-gradient(160deg, #7f1d1d, #991b1b);
  color: white;
}
.ms-cell.mine.last {
  animation: shake .35s;
  box-shadow: 0 0 0 2px var(--bad);
}
.ms-cell.disabled { cursor: default; opacity: .8; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.hint {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 10px;
}
.hint.good { color: var(--good); border-color: rgba(74,222,128,.3); }
.hint.bad  { color: var(--bad);  border-color: rgba(248,113,113,.3); }

/* ────────── Casino ────────── */
.casino { text-align: center; }
.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #312e1f, #1d1b14);
  padding: 16px;
  border-radius: 14px;
  border: 2px solid #ffb34744;
}
.slot {
  background: linear-gradient(180deg, #fdf6e3, #e8dcb6);
  border-radius: 12px;
  padding: 18px 0;
  font-size: 48px;
  color: #1a1a1a;
  text-shadow: 0 2px 0 rgba(0,0,0,.1);
  height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.slot.spinning { animation: spin .08s linear infinite; }
@keyframes spin { from { transform: translateY(-3px);} to { transform: translateY(3px);} }

.paytable {
  background: var(--card-2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
  text-align: left;
}
.paytable-title { font-weight: 700; margin-bottom: 8px; font-size: 13px; }
.pay-row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--border);
}
.pay-row:last-child { border-bottom: none; }
.pay-row b { color: var(--accent); }

/* ────────── Toast ────────── */
.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--card);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: transform .25s, opacity .25s;
  max-width: 90%;
  text-align: center;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.good { border-color: var(--good); }
.toast.bad  { border-color: var(--bad); }

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

.muted { color: var(--text-muted); }
.btn.small { padding: 6px 10px; font-size: 12px; }

/* ────────── Section title с кнопкой справа ────────── */
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}

/* ────────── Бизнесы ────────── */
.biz-list { display: flex; flex-direction: column; gap: 10px; }
.biz {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex; align-items: flex-start; gap: 12px;
}
.biz.locked { opacity: 0.65; }
.biz-icon {
  font-size: 28px; line-height: 1; flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--card-2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.biz-icon.dim { filter: grayscale(0.7); }
.biz-body { flex: 1; min-width: 0; }
.biz-name { font-weight: 700; margin-bottom: 6px; }
.biz-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.biz-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.biz-pending { font-size: 13px; }

/* ────────── Котики ────────── */
.cats-list { display: flex; flex-direction: column; gap: 10px; }
.cat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex; align-items: flex-start; gap: 12px;
}
.cat.sad { border-color: rgba(239, 68, 68, 0.45); }
.cat-icon {
  font-size: 30px; line-height: 1; flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--card-2); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.cat-body { flex: 1; min-width: 0; }
.cat-name {
  font-weight: 700; margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.cat-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.cat-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.cat-actions .btn { padding: 8px 12px; font-size: 12px; }

/* ────────── Топы ────────── */
.top-list { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.top-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
}
.top-row.me { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.top-place {
  flex-shrink: 0;
  width: 32px; text-align: center;
  font-weight: 800; font-size: 16px;
}
.top-info { flex: 1; min-width: 0; }
.top-name {
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top-handle { font-size: 11px; }
.top-value { flex-shrink: 0; font-size: 13px; text-align: right; }

/* На больших экранах — сетка пошире */
@media (min-width: 520px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  main { max-width: 720px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─────────────── Онбординг ─────────────── */
.onboard {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: ob-fade .25s ease;
}
.onboard.hidden { display: none; }
.onboard-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.onboard-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px 22px 18px;
  box-shadow: 0 20px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
  animation: ob-pop .3s cubic-bezier(.2,.9,.3,1.2);
}
.onboard-close {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.06);
  color: var(--text-muted); font-size: 14px; cursor: pointer;
  transition: background .15s, color .15s;
}
.onboard-close:hover { background: rgba(255,255,255,.12); color: var(--text); }

.onboard-slides { position: relative; min-height: 230px; }
.ob-slide {
  display: none;
  text-align: center;
  padding: 8px 4px 4px;
  animation: ob-slide-in .35s ease;
}
.ob-slide.active { display: block; }
.ob-emoji {
  font-size: 56px; line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}
.ob-title {
  font-size: 22px; font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 0%, #c9b8ff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.ob-text {
  font-size: 15px; line-height: 1.5;
  color: var(--text-muted);
  padding: 0 4px;
}
.ob-text b { color: var(--text); }
.ob-text .coin { font-size: 14px; }

.ob-dots {
  display: flex; justify-content: center; gap: 8px;
  margin: 16px 0 18px;
}
.ob-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  transition: background .2s, transform .2s, width .2s;
}
.ob-dot.active {
  background: var(--accent, #8b6fff);
  width: 22px; border-radius: 4px;
}

.ob-actions {
  display: flex; gap: 10px; justify-content: space-between;
}
.ob-actions .btn { flex: 1; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn.ghost:hover { color: var(--text); border-color: rgba(255,255,255,.2); }

@keyframes ob-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ob-pop {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ob-slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ═══════════════════════════════════════════════════════
   WORK MINI-GAMES  (fishing / mining overlays)
═══════════════════════════════════════════════════════ */
.wg-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 8, 18, 0.97);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px;
}
.wg-overlay.hidden { display: none; }

.wg-screen {
  width: 100%; max-width: 360px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}
.wg-screen.hidden { display: none; }

.wg-title {
  font-size: 26px; font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #c9b8ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wg-subtitle {
  font-size: 16px; color: var(--text-muted); min-height: 26px;
  font-weight: 500;
}

/* ── FISHING: lake ────────────────────────────────────── */
.wg-lake-wrap { width: 100%; }
.wg-lake {
  width: 100%; height: 180px;
  background: linear-gradient(180deg, #0f2f6e 0%, #0a1e52 55%, #071440 100%);
  border-radius: 20px; position: relative; overflow: hidden;
}
/* animated wave bands */
.wg-lake::before {
  content: ''; position: absolute;
  left: -60%; top: 65px; width: 220%; height: 45px;
  background: rgba(100, 180, 255, 0.13); border-radius: 50%;
  animation: wg-wave 2.6s ease-in-out infinite;
}
.wg-lake::after {
  content: ''; position: absolute;
  left: -60%; top: 90px; width: 220%; height: 35px;
  background: rgba(80, 160, 240, 0.09); border-radius: 50%;
  animation: wg-wave 3.4s ease-in-out infinite reverse;
}
@keyframes wg-wave {
  0%,100% { transform: translateX(0); }
  50%      { transform: translateX(32px); }
}

/* fishing line */
.wg-fishing-line {
  position: absolute; left: 50%; top: 0;
  width: 1px; height: 55px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), rgba(255,255,255,.15));
  transform: translateX(-50%);
}

/* bobber */
.wg-bobber {
  position: absolute; left: 50%; top: 48px;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  background: linear-gradient(180deg, #ff3a3a 50%, #fff 50%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  animation: wg-float 1.8s ease-in-out infinite;
}
@keyframes wg-float {
  0%,100% { top: 48px; }
  50%      { top: 54px; }
}
.wg-bobber.biting {
  animation: wg-bite 0.18s ease-in-out infinite alternate;
}
@keyframes wg-bite {
  from { top: 52px; transform: translateX(-50%) rotate(-8deg); }
  to   { top: 64px; transform: translateX(-50%) rotate(8deg); }
}

/* tap / pull button */
.wg-tap-btn {
  min-width: 200px; padding: 16px 32px; font-size: 18px;
  animation: wg-pulse 0.4s ease-in-out infinite alternate;
}
@keyframes wg-pulse {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.wg-bite-msg {
  color: #ffcc00 !important; font-weight: 800; font-size: 20px !important;
  animation: wg-pulse 0.3s ease-in-out infinite alternate;
}

/* ── MINING: rock selection ───────────────────────────── */
.wg-mine-photo {
  width: 100%; max-width: 340px; border-radius: 14px;
  object-fit: cover; margin: 4px 0 12px;
}
.wg-rocks {
  display: flex; gap: 14px; justify-content: center; width: 100%;
  margin: 0 0 14px;
}
.wg-rock {
  flex: 1; max-width: 88px; aspect-ratio: 1;
  background: linear-gradient(135deg, #312840 0%, #221830 100%);
  border-radius: 16px; border: 2px solid rgba(255,255,255,.1);
  cursor: pointer; transition: transform .12s, box-shadow .12s;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 34px; color: var(--text); gap: 2px;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.wg-rock span {
  font-size: 12px; font-weight: 700; color: var(--text-muted); line-height: 1;
}
.wg-rock:active:not(:disabled) { transform: scale(0.90); }
.wg-rock:disabled { opacity: .6; cursor: default; }
.wg-rock.chosen-correct {
  background: linear-gradient(135deg, #1a5c1a 0%, #2daa2d 100%);
  border-color: #5dff5d; box-shadow: 0 0 16px rgba(93,255,93,.6);
}
.wg-rock.chosen-wrong {
  background: linear-gradient(135deg, #5c1a1a 0%, #aa2d2d 100%);
  border-color: #ff5d5d;
}
@keyframes wg-ore-hit {
  0%   { transform: scale(1.15); }
  60%  { transform: scale(.95); }
  100% { transform: scale(1); }
}
.wg-mine-bar-wrap {
  width: 100%; height: 8px;
  background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden;
}
.wg-mine-bar {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, #ff4400, #ffcc00);
  border-radius: 4px; transition: width 0.1s linear;
}

/* ── БИРЖА (ore market tab) ───────────────────────────── */
.market-card {
  background: var(--card); border-radius: 18px; padding: 16px; margin-bottom: 14px;
}
.market-top-row {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px;
}
.market-price-big { font-size: 34px; font-weight: 800; color: #ffcc00; line-height: 1; }
.market-ore-big   { font-size: 20px; font-weight: 800; color: var(--text); }
.market-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.market-sell-btns { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.market-sell-btn {
  background: linear-gradient(90deg, #b06500, #e08400);
  color: #fff; font-weight: 700; font-size: 14px;
  border: none; border-radius: 12px; padding: 13px;
  cursor: pointer; transition: opacity .15s; text-align: center;
}
.market-sell-btn:active { opacity: .8; }
.market-sell-btn:disabled { opacity: .4; cursor: not-allowed; }
.pick-card {
  background: var(--card); border-radius: 14px; padding: 14px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.pick-emoji { font-size: 32px; line-height: 1; }
.pick-info  { flex: 1; min-width: 0; }
.pick-name  { font-weight: 700; font-size: 15px; }
.pick-stats { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pick-price { font-size: 11px; color: #ffcc00; margin-top: 2px; font-weight: 600; }
.pick-buy-btn {
  background: var(--accent); color: #1a1a2e; font-weight: 700;
  font-size: 13px; border: none; border-radius: 10px;
  padding: 8px 12px; cursor: pointer; transition: opacity .15s;
  white-space: nowrap; flex-shrink: 0;
}
.pick-buy-btn:active { opacity: .8; }
.pick-buy-btn.owned  { background: #2d5c2d; color: #5dff5d; cursor: default; }

/* ── PUBLIC PROMOS tab ───────────────────────────────── */
.promo-pub-empty {
  text-align: center; padding: 48px 24px; color: var(--text-muted); font-size: 15px;
}
.promo-pub-header {
  background: var(--card); border-radius: 14px; padding: 12px 14px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5;
}
.promo-pub-header code { color: var(--accent); }
.promo-pub-card {
  background: var(--card); border-radius: 14px; padding: 14px 16px;
  margin-bottom: 12px; border-left: 4px solid var(--accent);
}
.promo-pub-card.done    { border-left-color: #4ade80; opacity: .7; }
.promo-pub-card.pending { border-left-color: #fbbf24; }
.promo-pub-top  { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.promo-pub-code { font-size: 18px; font-weight: 800; font-family: monospace; letter-spacing: .5px; }
.promo-pub-badge {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px;
  background: rgba(255,179,71,.15); color: var(--accent); white-space: nowrap;
}
.promo-pub-badge.done    { background: rgba(74,222,128,.15); color: #4ade80; }
.promo-pub-badge.pending { background: rgba(251,191,36,.15); color: #fbbf24; }
.promo-pub-reward { font-size: 15px; font-weight: 700; margin-top: 8px; }
.promo-pub-action { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.promo-pub-meta   { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.promo-pub-btn {
  margin-top: 10px; width: 100%; padding: 9px; border-radius: 10px; border: none;
  background: var(--accent); color: #1a1a2e; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: opacity .15s;
}
.promo-pub-btn:active { opacity: .8; }

/* ── ADMIN panel ─────────────────────────────────────── */
.admin-create-card {
  background: var(--card); border-radius: 16px; padding: 16px; margin-bottom: 4px;
}
.admin-form { display: flex; flex-direction: column; gap: 10px; }
.admin-input {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; color: var(--text);
  font-size: 14px; outline: none; width: 100%;
}
.admin-input:focus { border-color: var(--accent); }
.admin-input option { background: #1d2029; }

.promo-card {
  background: var(--card); border-radius: 14px; padding: 14px 16px;
  margin-bottom: 10px; border-left: 4px solid var(--accent);
}
.promo-card.inactive { border-left-color: var(--text-muted); opacity: .7; }
.promo-card.expired  { border-left-color: var(--bad); opacity: .6; }
.promo-code { font-size: 17px; font-weight: 800; letter-spacing: .5px; font-family: monospace; }
.promo-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.6; }
.promo-uses { font-size: 13px; font-weight: 600; margin-top: 6px; }
.promo-uses span { color: var(--accent); }
.promo-actions { display: flex; gap: 8px; margin-top: 10px; }
.promo-btn {
  flex: 1; padding: 8px; border-radius: 10px; border: none;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: opacity .15s;
}
.promo-btn:active { opacity: .75; }
.promo-btn.toggle { background: #2d4a2d; color: #7fff7f; }
.promo-btn.toggle.off { background: #3a2d0f; color: #ffb347; }
.promo-btn.del    { background: #4a1e1e; color: #ff7777; }

/* ── RESULT screen ────────────────────────────────────── */
.wg-result-icon  { font-size: 72px; line-height: 1; margin-bottom: 4px; }
.wg-result-title { font-size: 22px; font-weight: 800; color: var(--text); }
.wg-result-coins {
  font-size: 36px; font-weight: 800; color: #ffcc00;
  animation: wg-result-pop .4s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes wg-result-pop {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.wg-result-sub { font-size: 13px; color: var(--text-muted); }
