/* ═══════════════════════════════════════════════════════
   CHALLENGE — head-to-head page + inbox
═══════════════════════════════════════════════════════ */

/* ── CHALLENGE HERO ── */
.ch-hero {
  position: relative;
  background: #04050c;
  padding-bottom: 40px;
  overflow: hidden;
}
.ch-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 15% 50%, rgba(212,175,55,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 85% 50%, rgba(192,57,43,0.07) 0%, transparent 60%);
}
.ch-hero__status-wrap {
  position: relative; z-index: 2;
  padding-top: 28px;
  display: flex; align-items: center; gap: 16px;
}
.ch-status {
  display: inline-block; padding: 5px 14px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
}
.ch-status--pending   { background: rgba(212,175,55,0.12); color: var(--c-gold); border: 1px solid rgba(212,175,55,0.25); }
.ch-status--accepted  { background: rgba(45,189,122,0.12); color: #2DBD7A;      border: 1px solid rgba(45,189,122,0.3); }
.ch-status--completed { background: rgba(100,100,255,0.10); color: #9090ff;     border: 1px solid rgba(100,100,255,0.3); }
.ch-status--declined  { background: rgba(224,92,76,0.10); color: #E05C4C;       border: 1px solid rgba(224,92,76,0.25); }
.ch-status--expired   { background: rgba(255,255,255,0.05); color: var(--c-text-35); border: 1px solid rgba(255,255,255,0.1); }

.ch-inbox-link { font-size: 12px; color: var(--c-gold); text-decoration: none; }

/* ── DUEL ROW ── */
.ch-duel {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  gap: 0;
  align-items: center;
  padding-top: 36px;
}

/* ── SIDE ── */
.ch-side {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 24px 16px;
  border-radius: 16px;
  transition: background 0.3s;
}
.ch-side--winner {
  background: rgba(212,175,55,0.07);
  box-shadow: inset 0 0 0 1px rgba(212,175,55,0.2);
}
.ch-side--loser { opacity: 0.55; }

.ch-avatar-link { display: block; }
.ch-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; display: block;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08), 0 8px 32px rgba(0,0,0,0.5);
}
.ch-avatar--initials {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 32px; font-weight: 900; color: white;
}

.ch-side__label {
  font-size: 9px; font-weight: 800; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--c-text-35);
}
.ch-side__name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900; color: var(--c-text-100);
  text-align: center;
}

/* Pick pill */
.ch-pick {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; width: 100%; max-width: 240px;
}
.ch-pick__silk {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6); flex-shrink: 0;
}
.ch-pick__horse { font-size: 13px; font-weight: 700; color: var(--c-text-100); }
.ch-pick__odds  { font-size: 12px; font-weight: 700; color: var(--c-gold); }

/* Result badge */
.ch-result-badge {
  padding: 5px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 800;
}
.ch-result-badge--win  { background: rgba(212,175,55,0.2); color: var(--c-gold); }
.ch-result-badge--loss { background: rgba(255,255,255,0.05); color: var(--c-text-35); }
.ch-result-badge--draw { background: rgba(150,150,255,0.15); color: #9090ff; }

/* ── VS CENTRE ── */
.ch-vs {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 8px;
}
.ch-vs__ring {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid rgba(212,175,55,0.3);
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,175,55,0.06);
}
.ch-vs__text {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 900;
  background: linear-gradient(135deg, var(--c-gold), #e05c4c);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ch-vs__race { font-size: 11px; color: var(--c-text-35); text-align: center; }
.ch-vs__message {
  font-size: 12px; font-style: italic; color: var(--c-text-55);
  text-align: center; max-width: 160px;
}
.ch-vs__timer { font-size: 11px; color: var(--c-text-35); text-align: center; }

/* ── ACTIONS (accept/decline) ── */
.ch-actions-wrap { padding: 24px 0; }
.ch-actions {
  background: rgba(45,189,122,0.06);
  border: 1px solid rgba(45,189,122,0.2);
  border-radius: 12px; padding: 24px;
  text-align: center;
}
.ch-actions__heading { font-size: 16px; color: var(--c-text-75); margin-bottom: 16px; }
.ch-actions__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.ch-waiting { padding: 20px 0; }
.ch-waiting__inner {
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 10px; padding: 16px 20px;
  font-size: 14px; color: var(--c-text-55); text-align: center;
}

/* ── BUTTONS ── */
.ch-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border-radius: 8px;
  font-weight: 700; font-size: 14px;
  border: none; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); transition: all 0.2s;
}
.ch-btn--sm { padding: 8px 16px; font-size: 12px; }
.ch-btn--accept  { background: rgba(45,189,122,0.15); color: #2DBD7A; border: 1px solid rgba(45,189,122,0.35); }
.ch-btn--accept:hover { background: rgba(45,189,122,0.25); }
.ch-btn--decline { background: rgba(255,255,255,0.05); color: var(--c-text-35); border: 1px solid rgba(255,255,255,0.1); }
.ch-btn--decline:hover { background: rgba(224,92,76,0.12); color: #E05C4C; }
.ch-btn--view    { background: rgba(212,175,55,0.1); color: var(--c-gold); border: 1px solid rgba(212,175,55,0.25); }
.ch-btn--view:hover { background: rgba(212,175,55,0.18); }

/* ── HORSE COMPARISON ── */
.ch-comparison { padding: 40px 0; }
.ch-section-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900; color: var(--c-text-100);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ch-compare-grid {
  display: grid; grid-template-columns: 160px 1fr 1fr;
  border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; overflow: hidden;
}
.ch-compare-col { display: flex; flex-direction: column; }
.ch-compare-col--label { background: rgba(255,255,255,0.02); }
.ch-compare-col--left  { border-left: 1px solid rgba(212,175,55,0.15); }
.ch-compare-col--right { border-left: 1px solid rgba(192,57,43,0.15); }
.ch-compare-row {
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px; color: var(--c-text-75);
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  min-height: 44px;
}
.ch-compare-row:last-child { border-bottom: none; }
.ch-compare-row--header {
  font-family: var(--font-display); font-weight: 900; font-size: 15px;
  color: var(--c-text-100); background: rgba(255,255,255,0.03);
}
.ch-compare-val--gold { color: var(--c-gold); font-weight: 700; }
.ch-compare-form { gap: 3px; }
.ch-form-char {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 4px; font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,0.06); color: var(--c-text-55);
}
.ch-form-1 { background: rgba(45,189,122,0.2); color: #2DBD7A; }
.ch-form-2,.ch-form-3 { background: rgba(212,175,55,0.15); color: var(--c-gold); }
.ch-form-F,.ch-form-R,.ch-form-U { background: rgba(224,92,76,0.15); color: #E05C4C; }
.ch-form-P,.ch-form-B { background: rgba(150,80,200,0.15); color: #c084fc; }

/* ── SHARE ── */
.ch-share { padding: 0 0 48px; }
.ch-share-btn {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 10px 20px; cursor: pointer;
  font-size: 13px; color: var(--c-text-55); font-family: var(--font-body);
  transition: all 0.2s;
}
.ch-share-btn:hover { background: rgba(255,255,255,0.09); color: var(--c-text-100); }

/* ── CHALLENGE FORM on profile ── */
.cub-challenge-form { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 340px; }
.cub-challenge-msg {
  width: 100%; padding: 9px 13px; border-radius: 7px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--c-text-100); font-family: var(--font-body); font-size: 13px;
  outline: none; box-sizing: border-box;
}
.cub-challenge-msg:focus { border-color: rgba(212,175,55,0.3); }
.cub-profile__btn--challenge {
  background: linear-gradient(135deg, rgba(192,57,43,0.18), rgba(212,175,55,0.12));
  color: var(--c-gold); border: 1px solid rgba(212,175,55,0.3);
  width: 100%;
}
.cub-profile__btn--challenge:hover { background: rgba(212,175,55,0.2); }
.cub-profile__btn--view-challenge {
  background: rgba(212,175,55,0.1); color: var(--c-gold);
  border: 1px solid rgba(212,175,55,0.25);
}
.cub-profile__btn--challenges {
  background: rgba(192,57,43,0.1); color: #e07060;
  border: 1px solid rgba(192,57,43,0.25);
}
.cub-profile__own-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cub-pending-badge {
  background: var(--c-gold); color: #03040a;
  border-radius: 10px; padding: 1px 7px; font-size: 11px;
}

/* ── INBOX ── */
.ch-inbox-wrap { max-width: 760px; margin: 0 auto; padding: 40px var(--space-7) 80px; }
.ch-inbox-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; flex-wrap: wrap; gap: 10px; }
.ch-inbox-title { font-family: var(--font-display); font-size: 32px; font-weight: 900; color: var(--c-text-100); }
.ch-inbox-profile-link { font-size: 13px; color: var(--c-gold); text-decoration: none; }

.ch-inbox-section { margin-bottom: 36px; }
.ch-inbox-section--urgent .ch-inbox-section__title { color: var(--c-gold); }
.ch-inbox-section__title {
  font-family: var(--font-display); font-size: 18px; font-weight: 900;
  color: var(--c-text-100); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.ch-inbox-badge {
  background: var(--c-gold); color: #03040a;
  border-radius: 12px; padding: 1px 9px; font-size: 12px; font-family: var(--font-body);
}

.ch-inbox-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; margin-bottom: 8px;
}
.ch-inbox-card--pending  { border-color: rgba(212,175,55,0.25); }
.ch-inbox-card--active   { border-color: rgba(45,189,122,0.2); }
.ch-inbox-card--link     { text-decoration: none; color: inherit; cursor: pointer; transition: border-color 0.2s; }
.ch-inbox-card--link:hover { border-color: rgba(212,175,55,0.35); }

.ch-inbox-card__avatar img,
.ch-inbox-initials {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.ch-inbox-initials {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 16px; font-weight: 900; color: white;
}
.ch-inbox-card__info    { flex: 1; min-width: 0; }
.ch-inbox-card__who     { font-size: 14px; font-weight: 600; color: var(--c-text-100); margin-bottom: 3px; }
.ch-inbox-card__picks   { font-size: 12px; color: var(--c-text-55); margin-bottom: 3px; }
.ch-inbox-card__msg     { font-size: 12px; font-style: italic; color: var(--c-text-35); }
.ch-inbox-card__time    { font-size: 11px; color: var(--c-text-35); }
.ch-inbox-card__actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.ch-inbox-card__race    { font-size: 12px; color: var(--c-text-35); }
.ch-inbox-card__arrow   { color: var(--c-text-35); font-size: 18px; }
.ch-pick-name           { font-weight: 700; color: var(--c-text-100); }

.ch-inbox-card__vs {
  display: flex; align-items: center; gap: 12px; flex: 1;
}
.ch-inbox-card__side { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--c-text-75); }
.ch-inbox-vs { font-family: var(--font-display); font-size: 14px; font-weight: 900; color: var(--c-gold); padding: 0 4px; }

.ch-inbox-result { font-size: 13px; font-weight: 700; margin-top: 3px; }
.ch-inbox-result--win  { color: var(--c-gold); }
.ch-inbox-result--loss { color: var(--c-text-35); }
.ch-inbox-result--draw { color: #9090ff; }

.ch-inbox-empty { text-align: center; padding: 60px 0; color: var(--c-text-35); }
.ch-inbox-empty p { font-size: 16px; margin-bottom: 16px; }

/* ── ADMIN management command hint ── */
.ch-admin-note { font-size: 12px; color: var(--c-text-35); font-style: italic; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .ch-duel { grid-template-columns: 1fr; gap: 0; }
  .ch-vs { flex-direction: row; padding: 12px 0; }
  .ch-vs__race, .ch-vs__message { display: none; }
  .ch-compare-grid { grid-template-columns: 100px 1fr 1fr; }
  .ch-inbox-card { flex-wrap: wrap; }
  .ch-inbox-card__actions { width: 100%; justify-content: flex-end; }
}


/* --- Challenge app polish --- */
.ch-inbox-empty--hero {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 18px;
  padding: 48px 24px;
}
.ch-empty-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  color: var(--c-text-100);
  margin: 0 0 10px;
}
.ch-empty-copy {
  max-width: 560px;
  margin: 0 auto 18px;
  color: var(--c-text-55);
  font-size: 15px;
}
@media (max-width: 700px) {
  .ch-inbox-wrap { padding: 28px 16px 56px; }
  .ch-inbox-title { font-size: 28px; }
  .ch-side__name { font-size: 18px; }
  .ch-pick { max-width: 100%; }
  .ch-actions { padding: 18px; }
  .ch-compare-grid { grid-template-columns: 1fr; }
  .ch-compare-col--label { display:none; }
  .ch-compare-col--left, .ch-compare-col--right { border-left:none; }
  .ch-compare-row { min-height: auto; }
}


/* ── UPGRADES ─────────────────────────────────────────────────── */

/* Mobile horse comparison: show data-label as inline prefix instead
   of hiding context entirely */
@media (max-width: 700px) {
  .ch-compare-col--left  .ch-compare-row[data-label]::before,
  .ch-compare-col--right .ch-compare-row[data-label]::before {
    content: attr(data-label) ": ";
    font-size: 11px;
    color: var(--c-text-35);
    font-weight: 700;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 2px;
  }
  /* Keep race name visible in the VS ring on mobile */
  .ch-vs__race  { display: block; font-size: 10px; }
}

/* AJAX action feedback */
.ch-action-feedback {
  margin-top: 10px;
  font-size: 13px;
  color: #E05C4C;
  min-height: 18px;
  text-align: center;
}

/* Character counter on message inputs */
.ch-msg-counter {
  font-size: 11px;
  color: var(--c-text-35);
  text-align: right;
  margin-top: 3px;
}
.ch-msg-counter--warn {
  color: #E05C4C;
}

/* Disabled state for accept/decline buttons during AJAX */
.ch-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}


/* ═══════════════════════════════════════════════════════
   PUBLIC CHALLENGES PAGE  (guest / unauthenticated)
   All classes prefixed chp- to avoid collisions.
═══════════════════════════════════════════════════════ */

/* ── Shared utilities ─────────────────────────────── */
.chp-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--c-gold);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.chp-section-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 16px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.chp-section-head--centre { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.chp-section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px); font-weight: 900;
  color: var(--c-text-100); margin: 0 0 6px;
}
.chp-section-sub { font-size: 14px; color: var(--c-text-55); margin: 0; }

/* ── HERO ─────────────────────────────────────────── */
.chp-hero {
  position: relative; overflow: hidden;
  padding: 80px 0 72px;
  background: var(--c-midnight);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chp-hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 80% at 10% 40%, rgba(212,175,55,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 45% 70% at 90% 60%, rgba(192,57,43,0.06) 0%, transparent 55%);
}
.chp-hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px; align-items: center;
}
.chp-hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900; color: var(--c-text-100);
  letter-spacing: -0.02em; line-height: 1.02;
  margin: 0 0 18px;
}
.chp-hero__sub {
  font-size: 16px; line-height: 1.75;
  color: var(--c-text-55); max-width: 480px;
  margin-bottom: 24px;
}
.chp-hero__stats {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 28px;
}
.chp-hero__stat { display: flex; flex-direction: column; gap: 2px; }
.chp-hero__stat-num {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900; color: var(--c-gold); line-height: 1;
}
.chp-hero__stat-lbl {
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--c-text-35);
}
.chp-hero__stat-sep { color: var(--c-text-35); font-size: 16px; }
.chp-hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* Mock duel card */
.chp-mock {
  background: var(--c-navy-card);
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.chp-mock__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(212,175,55,0.05);
}
.chp-mock__status {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.1em; color: var(--c-gold);
}
.chp-mock__race { font-size: 11px; color: var(--c-text-35); }
.chp-mock__duel {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 0; padding: 20px 16px;
}
.chp-mock__side {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px; padding: 8px;
}
.chp-mock__side--gold { background: rgba(212,175,55,0.04); border-radius: 10px; }
.chp-mock__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px;
  font-weight: 900; color: white;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
}
.chp-mock__name { font-size: 13px; font-weight: 700; color: var(--c-text-100); }
.chp-mock__pick {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px; padding: 8px 10px; width: 100%;
}
.chp-mock__silk {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: white;
}
.chp-mock__horse { font-size: 12px; font-weight: 700; color: var(--c-text-100); }
.chp-mock__odds  { font-size: 11px; color: var(--c-gold); font-weight: 700; }
.chp-mock__vs { display: flex; align-items: center; justify-content: center; }
.chp-mock__vs-ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.06);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 11px;
  font-weight: 900; color: var(--c-gold);
}
.chp-mock__footer {
  padding: 12px 18px; text-align: center;
  font-size: 11px; color: var(--c-text-35);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-style: italic;
}

/* ── HOW IT WORKS ─────────────────────────────────── */
.chp-how {
  padding: 72px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.chp-steps {
  display: flex; align-items: flex-start;
  gap: 0; margin-top: 32px;
}
.chp-step {
  flex: 1; text-align: center; padding: 0 24px;
}
.chp-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--c-gold); font-size: 11px; font-weight: 900;
  margin-bottom: 14px;
}
.chp-step__icon { font-size: 28px; margin-bottom: 12px; line-height: 1; }
.chp-step__title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 900;
  color: var(--c-text-100); margin: 0 0 8px;
}
.chp-step__body { font-size: 13px; line-height: 1.7; color: var(--c-text-55); }
.chp-step__connector {
  flex-shrink: 0; width: 40px;
  margin-top: 56px; /* aligns with icon centre */
  height: 1px;
  background: linear-gradient(to right, rgba(212,175,55,0.3), rgba(212,175,55,0.1));
}

/* ── LIVE DUELS ───────────────────────────────────── */
.chp-live { padding: 72px 0; }
.chp-live-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--c-emerald-lt);
  animation: chpDotPulse 2s ease-in-out infinite;
}
@keyframes chpDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}
.chp-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.chp-live-card {
  background: var(--c-navy-card);
  border: 1px solid rgba(45,189,122,0.18);
  border-radius: 12px; padding: 16px;
}
.chp-live-card__label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c-emerald-lt);
  margin-bottom: 12px;
}
.chp-live-card__duel {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 8px;
}
.chp-live-card__side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chp-live-card__av {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px;
  font-weight: 900; color: white;
}
.chp-live-card__av--img { object-fit: cover; }
.chp-live-card__info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chp-live-card__name  { font-size: 13px; font-weight: 700; color: var(--c-text-100); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chp-live-card__horse { font-size: 12px; color: var(--c-text-75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chp-live-card__odds  { font-size: 11px; color: var(--c-gold); font-weight: 700; }
.chp-live-card__vs {
  font-family: var(--font-display); font-size: 12px;
  font-weight: 900; color: var(--c-text-35); flex-shrink: 0;
}
.chp-live-card__race {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 11px; color: var(--c-text-35);
}

/* ── RECENT RESULTS ───────────────────────────────── */
.chp-results { padding: 72px 0; background: var(--c-navy); }
.chp-results-list { display: flex; flex-direction: column; gap: 6px; }
.chp-result-row {
  display: flex; align-items: center;
  gap: 16px; padding: 14px 18px;
  background: var(--c-navy-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; text-decoration: none; color: inherit;
  transition: border-color 0.2s;
}
.chp-result-row:hover { border-color: rgba(212,175,55,0.3); }
.chp-result-row__side {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 0;
}
.chp-result-row__side--right { justify-content: flex-end; }
.chp-result-row__av {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px;
  font-weight: 900; color: white;
}
.chp-result-row__name  { display: block; font-size: 13px; font-weight: 700; color: var(--c-text-100); }
.chp-result-row__horse { display: block; font-size: 11px; color: var(--c-text-35); }
.chp-result-row__badges { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.chp-result-row__vs { font-size: 10px; color: var(--c-text-35); font-weight: 700; letter-spacing: 0.08em; }
.chp-result-badge {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
}
.chp-result-badge--win  { background: rgba(212,175,55,0.15); color: var(--c-gold); }
.chp-result-badge--loss { background: rgba(255,255,255,0.05); color: var(--c-text-35); }
.chp-result-badge--draw { background: rgba(150,150,255,0.12); color: #9090ff; }
.chp-result-row__arrow { font-size: 16px; color: var(--c-text-35); flex-shrink: 0; }

/* ── TOP CUBS TEASE ───────────────────────────────── */
.chp-top-cubs { padding: 72px 0; }
.chp-top-grid { display: flex; flex-direction: column; gap: 6px; }
.chp-top-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--c-navy-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; text-decoration: none; color: inherit;
  transition: border-color 0.2s;
}
.chp-top-card:hover { border-color: rgba(212,175,55,0.3); }
.chp-top-card:first-child { border-color: rgba(212,175,55,0.25); background: rgba(212,175,55,0.04); }
.chp-top-card__rank {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 900; color: var(--c-text-35);
  width: 22px; text-align: center; flex-shrink: 0;
}
.chp-top-card:first-child .chp-top-card__rank { color: var(--c-gold); }
.chp-top-card__av {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 13px;
  font-weight: 900; color: white;
}
.chp-top-card__info { flex: 1; min-width: 0; }
.chp-top-card__name   { display: block; font-size: 14px; font-weight: 700; color: var(--c-text-100); }
.chp-top-card__record { display: block; font-size: 11px; color: var(--c-text-35); margin-top: 1px; }
.chp-top-card__wins {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 900; color: var(--c-gold); flex-shrink: 0;
}

/* ── FINAL CTA ────────────────────────────────────── */
.chp-cta {
  position: relative; overflow: hidden;
  padding: 80px 0; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.chp-cta__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 90% at 50% 50%, rgba(212,175,55,0.06) 0%, transparent 60%);
}
.chp-cta__inner { position: relative; z-index: 1; }
.chp-cta__icon { font-size: 32px; margin-bottom: 16px; line-height: 1; }
.chp-cta__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px); font-weight: 900;
  color: var(--c-text-100); margin: 0 0 14px;
}
.chp-cta__sub {
  font-size: 16px; color: var(--c-text-55);
  max-width: 520px; margin: 0 auto 32px;
  line-height: 1.7;
}
.chp-cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .chp-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .chp-hero { padding: 56px 0 52px; }
  .chp-hero__visual { max-width: 480px; margin: 0 auto; width: 100%; }
}
@media (max-width: 680px) {
  .chp-steps { flex-direction: column; align-items: center; }
  .chp-step__connector { width: 1px; height: 28px; margin: 0; background: linear-gradient(to bottom, rgba(212,175,55,0.3), rgba(212,175,55,0.1)); }
  .chp-how { padding: 52px 0; }
  .chp-live, .chp-results, .chp-top-cubs, .chp-cta { padding: 52px 0; }
  .chp-hero__ctas { flex-direction: column; }
  .chp-hero__ctas .btn { width: 100%; justify-content: center; }
  .chp-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .chp-result-row { flex-wrap: wrap; gap: 10px; }
  .chp-result-row__side--right { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .chp-mock__duel { grid-template-columns: 1fr auto 1fr; gap: 4px; }
  .chp-mock__pick { padding: 6px 8px; }
  .chp-mock__horse { font-size: 11px; }
}
