/* Khooti hub — VK-style minimal skin.
 * Scoped to the portal "Play Cards" hub (#tab-khooti .khooti-hub--vk) only.
 * Does NOT affect the in-game screen (khooti/web) or the play iframe/modals. */

#tab-khooti .khooti-hub--vk {
  --vk-bg: #f0f2f5;
  --vk-card: #ffffff;
  --vk-line: #e1e3e6;
  --vk-text: #000000;
  --vk-muted: #818c99;
  --vk-blue: #2787f5;
  --vk-green: #4bb34b;
  --vk-red: #e64646;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--vk-text);
  background: var(--vk-bg);
  box-shadow: none;
  border-radius: 12px;
  padding: 12px;
}
#tab-khooti .khooti-hub--vk *,
#tab-khooti .khooti-hub--vk *::before,
#tab-khooti .khooti-hub--vk *::after {
  text-shadow: none;
  animation: none;
}

/* ---------- Header card ---------- */
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__profile {
  margin: 0;
  padding: 16px;
  gap: 16px;
  background: var(--vk-card);
  border: 1px solid var(--vk-line);
  border-radius: 12px;
  box-shadow: none;
}
#tab-khooti .khooti-hub--vk .khooti-hub__profile::before,
#tab-khooti .khooti-hub--vk .khooti-hub__profile::after { display: none; }
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__icon {
  width: 64px; height: 64px;
  border-radius: 12px;
  border: 1px solid var(--vk-line);
  background: var(--vk-bg);
  box-shadow: none;
  transform: none;
}
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__title {
  margin: 0 0 6px;
  font-size: 20px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--vk-text);
  background: none; -webkit-text-fill-color: currentColor;
}
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__subtitle { gap: 6px; margin: 0; }
#tab-khooti .khooti-hub--vk .kh-chip {
  padding: 4px 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--vk-text);
  background: var(--vk-bg);
  border: 0; border-radius: 8px; box-shadow: none;
}
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__play {
  min-height: 36px;
  padding: 8px 20px;
  font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: #fff;
  background: var(--vk-blue);
  border: 0; border-radius: 8px; box-shadow: none; transform: none;
}
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__play::before,
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__play::after { display: none; }
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__play:hover { background: #1f7ae0; transform: none; filter: none; }
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__play:active { background: #1a6dc9; transform: none; }
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__play:focus-visible { outline: 2px solid rgba(39,135,245,.4); outline-offset: 2px; }
#tab-khooti .khooti-hub--vk .khooti-hub__play-icon { background: none; box-shadow: none; color: inherit; width: auto; height: auto; margin-right: 6px; }
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__online {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--vk-text);
  background: var(--vk-bg);
  border: 0; border-radius: 8px; box-shadow: none; transform: none;
}
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__online:hover { background: #e5e8ec; }
#tab-khooti .khooti-hub--vk .khooti-hub__online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--vk-green); box-shadow: none;
}

/* ---------- Cards (panels) ---------- */
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__body { gap: 12px; margin-top: 12px; padding: 0; }
#tab-khooti .khooti-hub--vk .khooti-hub__main,
#tab-khooti .khooti-hub--vk .khooti-hub__aside { gap: 12px; }
#tab-khooti .khooti-hub--vk .khooti-hub__panel.khooti-hub__panel--game {
  margin: 0;
  padding: 16px;
  color: var(--vk-text);
  background: var(--vk-card);
  border: 1px solid var(--vk-line);
  border-radius: 12px;
  box-shadow: none;
}
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__panel + .khooti-hub__panel { margin-top: 12px; }
#tab-khooti .khooti-hub--vk .khooti-hub__panel--game::before,
#tab-khooti .khooti-hub--vk .khooti-hub__panel--game::after { display: none; }
#tab-khooti .khooti-hub--vk .khooti-hub__panel--game .khooti-hub__panel-title {
  display: block;
  min-width: 0;
  margin: 0 0 12px;
  padding: 0;
  text-align: left;
  font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--vk-text);
  background: none; border: 0; border-radius: 0; box-shadow: none;
}
#tab-khooti .khooti-hub--vk .khooti-hub__panel-title::before,
#tab-khooti .khooti-hub--vk .khooti-hub__panel-title::after { display: none; }
#tab-khooti .khooti-hub--vk .khooti-lb__empty,
#tab-khooti .khooti-hub--vk .khooti-lb__err,
#tab-khooti .khooti-hub--vk .muted { color: var(--vk-muted); }

/* About + modes */
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__about {
  margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--vk-text);
}
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__modes { gap: 8px; }
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__modes li {
  padding: 12px 8px;
  background: var(--vk-bg);
  border: 0; border-radius: 10px; box-shadow: none; transform: none;
}
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__modes li:hover { background: #e9ecf0; transform: none; }
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__modes i { filter: none; }
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__modes strong { color: var(--vk-text); font-weight: 600; font-size: 14px; letter-spacing: 0; text-transform: none; }
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__modes span { color: var(--vk-muted); font-size: 12px; }

/* Rules */
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__rules { gap: 8px; margin: 0 0 12px; }
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__rules li {
  padding: 0; font-size: 14px; line-height: 1.45; color: var(--vk-text);
  background: none; border: 0; box-shadow: none;
}
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__rules li::before {
  width: 22px; height: 22px;
  font-size: 12px; font-weight: 600;
  color: var(--vk-muted);
  background: var(--vk-bg);
  border: 0; box-shadow: none;
}
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__points { gap: 6px; padding: 0; background: none; border: 0; }
#tab-khooti .khooti-hub--vk .khooti-hub__points-label { color: var(--vk-muted); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
#tab-khooti .khooti-hub--vk .kh-val,
#tab-khooti .khooti-hub--vk .kh-val:nth-child(odd) {
  background: var(--vk-bg); border: 0; border-radius: 8px; box-shadow: none; transform: none;
  color: var(--vk-text);
}
#tab-khooti .khooti-hub--vk .kh-val i { color: var(--vk-muted); }
#tab-khooti .khooti-hub--vk .kh-val b { color: var(--vk-text); background: none; }
#tab-khooti .khooti-hub--vk .kh-val--ace i { color: var(--vk-text); }

/* Updates / requests lists */
#tab-khooti .khooti-hub--vk .khooti-upd__row,
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-pending-row {
  background: none; border: 0; border-bottom: 1px solid var(--vk-line); border-radius: 0; box-shadow: none;
  color: var(--vk-text);
}
#tab-khooti .khooti-hub--vk .khooti-upd__row:last-child,
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-pending-row:last-child { border-bottom: 0; }
#tab-khooti .khooti-hub--vk .khooti-upd__name,
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-pending-row__meta strong { color: var(--vk-text); }
#tab-khooti .khooti-hub--vk .khooti-upd__meta,
#tab-khooti .khooti-hub--vk .khooti-upd__verb,
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-pending-row__meta .muted { color: var(--vk-muted); }
#tab-khooti .khooti-hub--vk .kh-battle__line,
#tab-khooti .khooti-hub--vk .kh-vs,
#tab-khooti .khooti-hub--vk .kh-tag { background: none; box-shadow: none; border-color: var(--vk-line); }
#tab-khooti .khooti-hub--vk .kh-fighter__name { color: var(--vk-text); }
#tab-khooti .khooti-hub--vk .kh-fighter__crown { display: none; }
#tab-khooti .khooti-hub--vk .kh-vs { color: var(--vk-muted); }
#tab-khooti .khooti-hub--vk .kh-tag--win { color: var(--vk-green); background: none; }
#tab-khooti .khooti-hub--vk .kh-tag--lose { color: var(--vk-muted); background: none; }
#tab-khooti .khooti-hub--vk .kh-battle__meta { color: var(--vk-muted); }
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__panel--game .khooti-hub__more-btn {
  width: 100%; margin-top: 8px; padding: 8px 12px;
  font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--vk-blue);
  background: var(--vk-bg);
  border: 0; border-radius: 8px; box-shadow: none;
}
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__panel--game .khooti-hub__more-btn:hover { background: #e5e8ec; }
#tab-khooti .khooti-hub--vk .kh-btn,
#tab-khooti .khooti-hub--vk .kh-btn-green {
  border: 0; border-radius: 8px; box-shadow: none; background-image: none; text-transform: none; letter-spacing: 0; font-weight: 500;
}
#tab-khooti .khooti-hub--vk .kh-btn::after,
#tab-khooti .khooti-hub--vk .kh-btn-green::after { display: none; }
#tab-khooti .khooti-hub--vk .kh-btn--green,
#tab-khooti .khooti-hub--vk .kh-btn-green { background: var(--vk-blue); color: #fff; }
#tab-khooti .khooti-hub--vk .kh-btn--red { background: var(--vk-bg); color: var(--vk-red); }

/* ---------- Your stats ---------- */
#tab-khooti .khooti-hub--vk .kh-me__lv {
  background: var(--vk-bg); color: var(--vk-text);
  border: 0; border-radius: 12px; clip-path: none; box-shadow: none; filter: none;
}
#tab-khooti .khooti-hub--vk .kh-me__lv small { color: var(--vk-muted); }
#tab-khooti .khooti-hub--vk .kh-me__lv b { color: var(--vk-text); }
#tab-khooti .khooti-hub--vk .kh-me__xp-top { color: var(--vk-muted); }
#tab-khooti .khooti-hub--vk .kh-me__xp-top strong { color: var(--vk-text); }
#tab-khooti .khooti-hub--vk .kh-me__bar {
  height: 6px; background: var(--vk-bg); border: 0; border-radius: 3px; box-shadow: none;
}
#tab-khooti .khooti-hub--vk .kh-me__bar span { background: var(--vk-blue); border-radius: 3px; box-shadow: none; }
#tab-khooti .khooti-hub--vk .kh-me__rank {
  background: var(--vk-bg); border: 0; border-radius: 10px; box-shadow: none;
}
#tab-khooti .khooti-hub--vk .kh-me__rank-text small { color: var(--vk-muted); letter-spacing: 0; text-transform: none; }
#tab-khooti .khooti-hub--vk .kh-me__rank-text b { color: var(--vk-text); }
#tab-khooti .khooti-hub--vk .kh-me__ring {
  background:
    radial-gradient(closest-side, var(--vk-card) 80%, transparent 81%),
    conic-gradient(var(--vk-blue) calc(var(--pct) * 1%), var(--vk-bg) 0);
  box-shadow: none;
}
#tab-khooti .khooti-hub--vk .kh-me__ring b { color: var(--vk-text); font-weight: 600; }
#tab-khooti .khooti-hub--vk .kh-me__ring small,
#tab-khooti .khooti-hub--vk .kh-me__tile small { color: var(--vk-muted); letter-spacing: 0; text-transform: none; }
#tab-khooti .khooti-hub--vk .kh-me__tile {
  background: var(--vk-bg); border: 0; border-radius: 10px; box-shadow: none;
}
#tab-khooti .khooti-hub--vk .kh-me__tile b { color: var(--vk-text); font-weight: 600; }
#tab-khooti .khooti-hub--vk .kh-me__tile--win b { color: var(--vk-green); }
#tab-khooti .khooti-hub--vk .kh-me__tile--loss b { color: var(--vk-red); }
#tab-khooti .khooti-hub--vk .kh-me__hint { color: var(--vk-muted); }

/* Neutral rank badges (replace gold/silver/bronze coins) */
#tab-khooti .khooti-hub--vk .kh-coin,
#tab-khooti .khooti-hub--vk .kh-coin--gold,
#tab-khooti .khooti-hub--vk .kh-coin--silver,
#tab-khooti .khooti-hub--vk .kh-coin--bronze {
  color: var(--vk-muted);
  background: var(--vk-bg);
  border: 0; box-shadow: none;
  font-weight: 600;
}

/* ---------- Leaderboard ---------- */
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__panel--game .khooti-hub__my-rank {
  margin: 0 0 8px; padding: 10px 12px;
  color: var(--vk-text);
  background: var(--vk-bg); border: 0; border-radius: 10px; box-shadow: none;
}
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__panel--game .khooti-hub__my-rank strong { color: var(--vk-text); }
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__panel--game .khooti-hub__my-rank span { color: var(--vk-muted); }

/* Podium flattened into plain rows: 1, 2, 3 */
#tab-khooti .khooti-hub--vk .kh-podium {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  margin: 0; padding: 0; background: none; border: 0; box-shadow: none; min-height: 0;
}
#tab-khooti .khooti-hub--vk .kh-podium__slot {
  display: flex; flex-direction: row; align-items: center; gap: 12px;
  width: auto; min-height: 0; padding: 8px 0;
  text-align: left;
  border-bottom: 1px solid var(--vk-line);
  background: none; box-shadow: none; transform: none; opacity: 1; filter: none;
}
#tab-khooti .khooti-hub--vk .kh-podium__slot--gold { order: 1; }
#tab-khooti .khooti-hub--vk .kh-podium__slot--silver { order: 2; }
#tab-khooti .khooti-hub--vk .kh-podium__slot--bronze { order: 3; }
#tab-khooti .khooti-hub--vk .kh-podium__slot--empty { display: none; }
#tab-khooti .khooti-hub--vk .kh-podium__crown,
#tab-khooti .khooti-hub--vk .kh-podium__base { display: none; }
#tab-khooti .khooti-hub--vk .kh-podium__avatar { display: flex; flex-direction: row-reverse; align-items: center; gap: 12px; position: static; }
#tab-khooti .khooti-hub--vk .kh-podium__avatar .kh-coin { position: static; transform: none; width: 24px; height: 24px; font-size: 12px; }
#tab-khooti .khooti-hub--vk .kh-podium__avatar .kh-ring { --kh-ring: 44px !important; }
#tab-khooti .khooti-hub--vk .kh-podium__name {
  flex: 1 1 auto; min-width: 0; max-width: none;
  font-size: 15px; font-weight: 500; color: var(--vk-text); text-align: left;
}
#tab-khooti .khooti-hub--vk .kh-podium__pts { margin-left: auto; color: var(--vk-muted); font-size: 13px; background: none; }

#tab-khooti .khooti-hub--vk .kh-lb-list { gap: 0; margin: 0; padding: 0; background: none; border: 0; }
#tab-khooti .khooti-hub--vk .kh-lb-row,
#tab-khooti .khooti-hub--vk .kh-lb-row--gold,
#tab-khooti .khooti-hub--vk .kh-lb-row--silver,
#tab-khooti .khooti-hub--vk .kh-lb-row--bronze {
  gap: 12px; padding: 8px 0;
  background: none; border: 0; border-bottom: 1px solid var(--vk-line); border-radius: 0; box-shadow: none; transform: none;
}
#tab-khooti .khooti-hub--vk .kh-lb-row:last-child { border-bottom: 0; }
#tab-khooti .khooti-hub--vk .kh-lb-row[data-kh-player]:hover,
#tab-khooti .khooti-hub--vk .kh-podium__slot[data-kh-player]:hover { background: #f7f8fa; }
#tab-khooti .khooti-hub--vk .kh-lb-row .kh-coin { width: 24px; height: 24px; font-size: 12px; }
#tab-khooti .khooti-hub--vk .kh-lb-row__name { color: var(--vk-text); font-weight: 500; font-size: 15px; }
#tab-khooti .khooti-hub--vk .kh-lb-row__rec { color: var(--vk-muted); font-size: 13px; }
#tab-khooti .khooti-hub--vk .kh-name--gold,
#tab-khooti .khooti-hub--vk .kh-name--silver,
#tab-khooti .khooti-hub--vk .kh-name--bronze { color: var(--vk-text) !important; background: none; -webkit-text-fill-color: currentColor; }
#tab-khooti .khooti-hub--vk .kh-pts-chip {
  color: var(--vk-muted); background: none; border: 0; box-shadow: none; font-weight: 500; font-size: 13px;
}

/* Avatars: plain circles, green online dot */
#tab-khooti .khooti-hub--vk .kh-ring,
#tab-khooti .khooti-hub--vk .kh-ring--gold,
#tab-khooti .khooti-hub--vk .kh-ring--silver,
#tab-khooti .khooti-hub--vk .kh-ring--bronze,
#tab-khooti .khooti-hub--vk .kh-ring--blue,
#tab-khooti .khooti-hub--vk .kh-ring--dim {
  padding: 0; background: none; border: 0; box-shadow: none;
}
#tab-khooti .khooti-hub--vk .kh-ring__img { width: 100%; height: 100%; border: 0; box-shadow: none; background: #e1e3e6; }
#tab-khooti .khooti-hub--vk .kh-ring__img--fallback { background: #e1e3e6; color: var(--vk-muted); }
#tab-khooti .khooti-hub--vk .kh-ring--online::after { background: var(--vk-green); border: 2px solid #fff; box-shadow: none; }

/* ---------- Fixes for heavier base rules ---------- */
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__title {
  display: block;
  font-size: 20px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.2;
  color: var(--vk-text);
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: none;
}
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__about { text-align: left; }
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__panel--game .khooti-hub__my-rank {
  text-align: left; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none;
}
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__panel--game .khooti-hub__my-rank span { display: inline; margin-left: 6px; font-size: 13px; }
#tab-khooti .khooti-hub--vk .kh-battle,
#tab-khooti .khooti-hub--vk .kh-player {
  background: none; border: 0; border-bottom: 1px solid var(--vk-line); border-radius: 0; box-shadow: none;
  padding: 8px 0;
}
#tab-khooti .khooti-hub--vk .kh-battle:last-child,
#tab-khooti .khooti-hub--vk .kh-player:last-child { border-bottom: 0; }
#tab-khooti .khooti-hub--vk .kh-lb-row:hover,
#tab-khooti .khooti-hub--vk .kh-player:hover { transform: none; border-color: var(--vk-line); }
#tab-khooti .khooti-hub--vk .kh-tag { border: 0; font-weight: 500; letter-spacing: 0; text-transform: none; }
#tab-khooti .khooti-hub--vk .kh-vs { font-weight: 500; font-size: 12px; border: 0; width: auto; height: auto; }
#tab-khooti .khooti-hub--vk .kh-podium__slot { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
#tab-khooti .khooti-hub--vk.khooti-hub--game .khooti-hub__panel--game .khooti-hub__my-rank strong { font-size: 14px; font-weight: 600; margin-left: 4px; }
