/* Doscoin leaderboard — игровой стиль поверх общей темы */

/* ── настройка сезона Level Up ── */
.season-box { padding: 14px 18px; margin-bottom: 14px; }
.season-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.season-head h3 { margin: 0; font-size: 15px; }
.season-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.btn-sm { font-size: 11.5px; padding: 5px 12px; }
.btn-sm:disabled { opacity: .45; cursor: default; }
.btn-sm:disabled:hover { background: var(--surface); color: var(--ink-2); }
.btn-sm.btn-primary:disabled:hover { background: var(--green); color: #fff; }
.season-state {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.season-state.ok { color: var(--ok); background: var(--ok-bg); }
.season-state.dirty { color: var(--mid); background: var(--mid-bg); }
.th-input {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; color: var(--ink-3); margin-left: 8px;
}
.th-input input {
  font: inherit; font-size: 11.5px; font-weight: 700; width: 52px; text-align: center;
  padding: 3px 6px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface); color: var(--ink); font-variant-numeric: tabular-nums;
}
.th-input input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.season-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
.season-prog { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.season-name { font-size: 12.5px; font-weight: 700; margin-bottom: 7px; }
.season-name small { font-weight: 500; color: var(--ink-3); margin-left: 6px; font-size: 11px; }
.season-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.ex-toggle {
  font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-3);
}
.ex-toggle:hover { border-color: var(--green); color: var(--ink); }
.ex-toggle.on { background: var(--green); border-color: var(--green); color: #fff; }

/* ── карточки doscoin ── */
.cc {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 6px 1px 2px; border-radius: 999px; margin: 1px;
  background: var(--surface-2); border: 1px solid var(--line-2);
}
.cc img { width: 17px; height: 17px; display: block; }
.cc b { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cc-combo { background: #f3ecfb; border-color: #e0d0f5; }
.cc-combo b { color: #6a3fb0; }
.cc-levelUp { background: #eaf4fd; border-color: #cfe4f7; }
.cc-levelUp b { color: #1b6fb8; }
.lb-cards { min-width: 130px; }
.pod-cards { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; margin: 2px 0; }

/* ── легенда крафта ── */
.craft h4 { margin: 0 0 8px; font-size: 14px; }
.craft-list { display: flex; flex-direction: column; gap: 6px; }
.craft-i {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px; border-radius: 10px; background: var(--surface-2);
  font-size: 12.5px; color: var(--ink-2);
}
.craft-i img { width: 24px; height: 24px; }
.craft-i span { flex: 1; }
.craft-i b { color: var(--ink); }
.craft-i em {
  font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--green-dark); font-size: 13px;
}
.craft-i.combo { background: #f6f0fd; }
.craft-i.combo em { color: #6a3fb0; }

.prog-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.prog-btn {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 10px 24px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(16,22,19,.05);
  transition: background .12s, color .12s, border-color .12s, box-shadow .12s, transform .08s;
}
.prog-btn:hover { border-color: #b8c4be; background: var(--surface-2); color: var(--ink); }
.prog-btn:active { transform: translateY(1px); }
.prog-btn.on {
  background: var(--green); border-color: var(--green); color: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.18);
}

#board { display: flex; flex-direction: column; gap: 16px; }

/* ── подиум ── */
.podium {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  align-items: end;
}
@media (max-width: 720px) { .podium { grid-template-columns: 1fr; } }
.pod {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #ffffff, #f3f6f3);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 12px 14px; position: relative;
  box-shadow: 0 2px 8px -4px rgba(16,22,19,.18);
  transition: transform .12s, box-shadow .12s;
}
.pod:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(16,22,19,.3); }
.pod-1 { padding-top: 24px; border-color: #e8c65a; background: linear-gradient(180deg, #fffdf3, #fdf3d6); }
.pod-2 { border-color: #cdd6da; background: linear-gradient(180deg, #ffffff, #eef2f4); }
.pod-3 { border-color: #e2b58c; background: linear-gradient(180deg, #fffaf6, #f8e8d9); }
.pod-place {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 800;
  background: var(--ink); color: #fff; border: 2px solid #fff;
}
.pod-1 .pod-place { background: linear-gradient(180deg,#ffd75e,#d79a11); color: #4a3400; }
.pod-2 .pod-place { background: linear-gradient(180deg,#e8eef1,#9fadb5); color: #2b3238; }
.pod-3 .pod-place { background: linear-gradient(180deg,#e9b184,#b96f36); color: #40230d; }
.pod-badge { margin-top: 2px; line-height: 0; }
.pod-name { font-size: 14px; font-weight: 700; text-align: center; letter-spacing: -.01em; }
.pod-group { font-size: 11.5px; color: var(--ink-3); }
.pod-total { font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pod-rank { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }

/* фото */
.lb-photo {
  width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line); flex-shrink: 0;
}
.lb-photo.big { width: 62px; height: 62px; border-radius: 16px; }
.lb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-photo.no-photo {
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
  color: var(--green-dark); background: var(--green-soft); border-color: var(--green-line);
}
.lb-photo.big.no-photo { font-size: 20px; }

/* ── таблица ── */
.lb-table { font-size: 13px; }
.lb-table th { padding: 8px 10px; font-size: 11px; }
.lb-table td { padding: 5px 10px; vertical-align: middle; }
.lb-place { width: 42px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.lb-row.top .lb-place { color: var(--green-dark); }
.lb-badge { width: 42px; line-height: 0; }
.lb-who a { font-weight: 600; }
.lb-who small { display: block; color: var(--ink-3); font-size: 11px; }
.lb-total { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-table .dim { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lb-row:hover td { background: #fbfcfb; }
.lb-rank { min-width: 150px; }
.rk-label { font-size: 11.5px; font-weight: 700; display: block; }
.rank-badge { display: block; object-fit: contain; }
.lb-badge .rank-badge { filter: drop-shadow(0 1px 2px rgba(16,22,19,.25)); }
.pod-badge .rank-badge { filter: drop-shadow(0 2px 5px rgba(16,22,19,.3)); }
.rk-bar { display: block; height: 4px; border-radius: 2px; background: var(--surface-2); margin: 3px 0 2px; overflow: hidden; }
.rk-bar i { display: block; height: 100%; background: var(--green); border-radius: 2px; }
.lb-rank small { font-size: 10px; color: var(--ink-3); }
.cnt { font-size: 12px; color: var(--ink-3); font-weight: 500; }

/* ── легенда дәрежелер ── */
.tiers-legend { padding: 18px 22px; }
.tiers-legend h3 { margin: 0 0 2px; font-size: 15px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin-top: 12px; }
.tier-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 6px; border-radius: 14px; background: var(--surface-2);
  border: 1px solid transparent;
}
.tier-item.tg-challenger { background: #fbf4ec; border-color: #ecdcc7; }
.tier-item.tg-master     { background: #fdf0ef; border-color: #f2d7d4; }
.tier-item.tg-champion   { background: #eef4fb; border-color: #d6e4f4; }
.tier-item.tg-legend     { background: #f5eefc; border-color: #e5d5f6; }
.tier-ic { line-height: 0; }
.tier-name { font-size: 11.5px; font-weight: 700; }
.tier-range { font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
