/* ==========================================================================
   MMO11 — KUPA HIRSIZI PAGE (hub view #hubViewCupThief) — on the event page base (eventPage.css)
   Hero (night stadium, gold cup, match tries) · banner (live match / stolen cup / result) · left: the group table ·
   right: the day's prizes and the last matches. Text colours are explicit on every surface.
   ========================================================================== */
#cupThiefPage {
  --kh-gold: #f6c343;
  --kh-gold-2: #ffdf7e;
  --kh-warm: #f97316;
  --kh-night: #0b1a2e;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kh-cup { width: 22px; height: 22px; flex: 0 0 auto; }
.kh-cup.xs { width: 20px; height: 20px; }
.kh-cup.sm { width: 40px; height: 40px; }

/* ---------------------------------------------------------------- hero */
.kh-hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 16px 22px;
  color: #f8fafc;
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(246, 195, 67, 0.3) 0%, rgba(246, 195, 67, 0) 45%),
    linear-gradient(135deg, #0b1a2e 0%, #2a1a3f 55%, #6b2d0f 100%);
  border: 1px solid rgba(246, 195, 67, 0.35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  display: flex; flex-direction: column; gap: 12px;
}
.kh-hero.legend {
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(255, 223, 126, 0.45) 0%, rgba(255, 223, 126, 0) 50%),
    linear-gradient(135deg, #1a1030 0%, #4c1d95 50%, #a16207 100%);
}
.kh-hero.hard { border-color: #f97316; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(249, 115, 22, 0.55); }
.kh-hard { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 12px; letter-spacing: 0.08em; color: #ffffff; background: linear-gradient(180deg, #fb923c, #dc2626); }
.kh-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kh-hero-side { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kh-pill {
  padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; white-space: nowrap;
  color: #f8fafc; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
}
.kh-hero-main { display: flex; align-items: center; gap: 18px; }
.kh-hero-cup {
  flex: 0 0 auto; width: 92px; height: 92px; border-radius: 24px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 223, 126, 0.35), rgba(255, 223, 126, 0) 70%), rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 223, 126, 0.35);
}
.kh-hero-cup .kh-cup { width: 66px; height: 66px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.kh-hero-text { flex: 1; min-width: 0; }
.kh-kicker { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; color: var(--kh-gold-2); }
.kh-title { margin: 2px 0; font-size: 34px; line-height: 1.05; font-weight: 900; color: #ffffff; }
.kh-lead { margin: 0; font-size: 16px; color: #e2e8f0; }
.kh-tries {
  flex: 0 0 auto; min-width: 170px; padding: 10px 16px; border-radius: 16px; text-align: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.kh-tries-label { font-size: 13px; font-weight: 700; color: #cbd5e1; }
.kh-tries b { font-size: 28px; font-weight: 900; color: var(--kh-gold-2); line-height: 1; }
.kh-tries-dots { display: flex; gap: 5px; }
.kh-tries-dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.kh-tries-dots i.on { background: linear-gradient(180deg, #ffe08a, #f6c343); box-shadow: 0 0 8px rgba(246, 195, 67, 0.6); }
.kh-tries small { font-size: 13px; color: #e2e8f0; min-height: 16px; }

/* ---------------------------------------------------------------- banner */
.kh-banner {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 16px;
  background: #ffffff; color: #1f2937; border: 2px solid #e2e8f0; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.kh-banner > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kh-banner b { font-size: 18px; color: #0f172a; }
.kh-banner small { font-size: 14px; color: #475569; }
.kh-banner.stolen { border-color: #fb923c; background: #fff7ed; }
.kh-banner.live { border-color: #22c55e; background: #f0fdf4; }
.kh-banner.legend { border-color: #a855f7; background: #faf5ff; }
.kh-banner.done { border-color: #f6c343; background: #fffbeb; }
.kh-live-dot { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 900; color: #ffffff; background: #dc2626; }

/* ---------------------------------------------------------------- layout + cards */
.kh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 14px; align-items: start; }
.kh-main, .kh-aside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kh-card { background: #ffffff; color: #1f2937; border-radius: 18px; padding: 16px 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); border: 1px solid #e8eef5; }
.kh-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.kh-card-head h3 { margin: 0; font-size: 20px; font-weight: 900; color: #0f172a; }
.kh-sub { font-size: 14px; color: #64748b; }
.kh-empty { margin: 0; font-size: 15px; color: #475569; }
.kh-closed { font-size: 17px; color: #1f2937; text-align: center; padding: 30px; }

/* the group table */
.kh-table { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kh-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px;
  background: #f8fafc; border: 1px solid #e2e8f0;
}
.kh-row.top { background: #fffbeb; border-color: #fde68a; }
.kh-row.mine { background: #eff6ff; border-color: #60a5fa; box-shadow: inset 0 0 0 1px #60a5fa; }
.kh-rank { flex: 0 0 30px; font-size: 18px; font-weight: 900; color: #334155; text-align: center; }
.kh-row.top .kh-rank { color: #a16207; }
.kh-crest {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 15px; font-weight: 900; color: #ffffff; background: linear-gradient(135deg, #1e3a8a, #0f766e);
}
.kh-club { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.kh-club b { font-size: 17px; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kh-cols { display: flex; justify-content: flex-end; gap: 12px; padding: 0 12px 4px; font-size: 13px; font-weight: 800; color: #64748b; text-transform: uppercase; }
.kh-cols span:nth-child(1) { flex: 0 0 64px; text-align: center; }
.kh-cols span:nth-child(2) { flex: 0 0 64px; text-align: right; }
.kh-cols span:nth-child(3) { flex: 0 0 130px; }
/* OVR: the shared scale (OvrColor.className, Docs/PlayerOvrColors.md) on a dark pill, readable on the light row */
.kh-ovr { flex: 0 0 64px; display: flex; justify-content: center; }
.kh-ovr b { min-width: 48px; padding: 4px 8px; border-radius: 10px; text-align: center; font-size: 18px; font-weight: 900; background: #0f172a; color: #ffffff; }
.kh-ovr .ovr-mutant { color: #d946ef; }
.kh-ovr .ovr-red { color: #ef4444; }
.kh-ovr .ovr-orange { color: #f97316; }
.kh-ovr .ovr-yellow { color: #facc15; }
.kh-ovr .ovr-green { color: #38bdf8; }
.kh-ovr .ovr-grey, .kh-ovr .ovr-white { color: #ffffff; }
.kh-cups { flex: 0 0 64px; display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.kh-cups b { font-size: 20px; font-weight: 900; color: #a16207; }
.kh-cups.none { font-size: 18px; font-weight: 800; color: #94a3b8; }
.kh-me-tag { flex: 0 0 130px; text-align: center; font-size: 15px; font-weight: 900; color: #1d4ed8; }

/* buttons */
.kh-btn {
  font-family: inherit; cursor: pointer; border: none; border-radius: 12px; padding: 10px 18px;
  font-size: 16px; font-weight: 900; white-space: nowrap;
}
.kh-btn.sm { flex: 0 0 130px; padding: 8px 10px; font-size: 15px; }
.kh-btn.warm { color: #ffffff; background: linear-gradient(180deg, #fb923c, #ea580c); box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35); }
.kh-btn.green { color: #ffffff; background: linear-gradient(180deg, #4ade80, #16a34a); }
.kh-btn.ghost { color: #334155; background: #f1f5f9; border: 1px solid #cbd5e1; }
.kh-btn:disabled { cursor: default; color: #64748b; background: #e2e8f0; box-shadow: none; }

/* prizes */
.kh-prizes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kh-prize { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.kh-prize.p1 { background: #fffbeb; border-color: #fcd34d; }
.kh-medal { flex: 0 0 52px; text-align: center; font-size: 17px; font-weight: 900; color: #0f172a; }
.kh-prize-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kh-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; font-size: 14px; font-weight: 800; color: #1f2937; background: #ffffff; border: 1px solid #e2e8f0; }
.kh-chip img { width: 20px; height: 20px; }
.kh-points img { width: 18px; height: 18px; margin-right: -2px; }
.kh-points b { margin-left: 4px; color: #15803d; }

/* feed */
.kh-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.kh-feed li { display: flex; gap: 8px; font-size: 14px; color: #334155; padding: 6px 8px; border-radius: 10px; background: #f8fafc; }
.kh-feed li b { color: #0f172a; }
.kh-feed li.good { background: #f0fdf4; }
.kh-feed li.bad { background: #fff7ed; }
.kh-time { flex: 0 0 auto; font-weight: 800; color: #64748b; }


@media (max-width: 1100px) {
  .kh-layout { grid-template-columns: 1fr; }
}
