/* H2H matchup treatment (t449). Loaded only on /contest and /my-contests. Red = left lane, blue = right lane. */
:root { --h2m-red: #E3263B; --h2m-blue: #3B7BE3; --h2m-gold: #D4A72C; }
.h2m-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.h2m-chip { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pc-ink); border: 1px solid var(--pc-line); border-radius: 999px; padding: 4px 10px; background: var(--pc-panel-2); }
.h2m-when { font-size: 12px; color: var(--pc-ink-2); margin-left: 2px; }
.h2m { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; margin: 16px 0; border: 1px solid var(--pc-line); border-radius: 14px; overflow: hidden; background: var(--pc-panel); }
.h2m-side { padding: 18px 14px; min-width: 0; text-align: center; position: relative; }
.h2m-side--red { background: linear-gradient(90deg, rgba(227,38,59,.16), rgba(227,38,59,0)); box-shadow: inset 4px 0 0 var(--h2m-red); }
.h2m-side--blue { background: linear-gradient(270deg, rgba(59,123,227,.16), rgba(59,123,227,0)); box-shadow: inset -4px 0 0 var(--h2m-blue); }
.h2m-lane { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.h2m-side--red .h2m-lane { color: #ff6b7c; }
.h2m-side--blue .h2m-lane { color: #7fa9f0; }
.h2m-name { font-family: var(--pc-display, inherit); font-weight: 800; font-size: 18px; color: var(--pc-ink); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2m-side.is-empty .h2m-name { color: var(--pc-ink-2); font-size: 14px; font-weight: 600; font-family: inherit; white-space: normal; }
.h2m-side.is-loss .h2m-name { color: var(--pc-ink-2); }
.h2m-win { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--h2m-gold); border: 1px solid rgba(212,167,44,.45); border-radius: 999px; padding: 3px 9px; }
.h2m-mid { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10px 12px; border-left: 1px solid var(--pc-line); border-right: 1px solid var(--pc-line); min-width: 92px; }
.h2m-score { font-family: var(--pc-mono); font-weight: 800; font-size: 28px; color: var(--pc-ink); line-height: 1; }
.h2m-status { font-size: 11px; color: var(--pc-ink-2); margin-top: 6px; text-align: center; max-width: 110px; }
.h2m-result { margin: -4px 0 16px; padding: 12px 14px; border-radius: 10px; font-weight: 800; font-size: 15px; border: 1px solid var(--pc-line); }
.h2m-result--win { border-color: rgba(212,167,44,.5); color: var(--h2m-gold); background: rgba(212,167,44,.08); }
.h2m-result--loss { color: var(--pc-ink-2); }
.h2m-th--red { color: #ff6b7c; } .h2m-th--blue { color: #7fa9f0; }
.h2m-w--red { color: #ff6b7c; font-weight: 800; } .h2m-w--blue { color: #7fa9f0; font-weight: 800; }
.h2m-mini { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; font-weight: 700; font-size: 15px; color: var(--pc-ink); min-width: 0; }
.h2m-mini__vs { font-family: var(--pc-mono); font-size: 12px; color: var(--pc-ink-2); border: 1px solid var(--pc-line); border-radius: 6px; padding: 2px 6px; }
.h2m-mini__opp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2m-mini__opp.is-empty { color: var(--pc-ink-2); font-weight: 500; }
/* brand: primary actions on these pages use PTL red, not green */
.mc-btn.primary { background: var(--h2m-red); color: #fff; }
.mc-btn.primary:hover { filter: brightness(1.08); }
@media (max-width: 420px) {
  .h2m-side { padding: 14px 8px; } .h2m-name { font-size: 15px; } .h2m-mid { min-width: 70px; padding: 8px 6px; } .h2m-score { font-size: 22px; }
}
/* brand: replace neon green accents on these two pages (wins = gold, selection = red, neutral otherwise) */
.mc-chip--score { color: var(--pc-ink); border-color: var(--pc-line); }
.mc-econ__i .v.hero, .cd-econ__i .v.hero { color: var(--pc-ink); }
.mc-outcome--win, .cd-outcome--win, .mc-out--win { color: var(--h2m-gold); }
.cd-tl .dot { background: var(--pc-ink-2); box-shadow: none; }
.mc-fchip.on { background: var(--h2m-red); color: #fff; border-color: var(--h2m-red); }
.mc-fchip:focus-visible, .mc-hcard:focus-visible { outline-color: #fff; }
#cd-root .cd-econ__i .v.hero, #psh-feed .mc-econ__i .v.hero, .mc-econ__i .v.hero.free { color: var(--pc-ink); }
.h2m-name { overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .h2m-lx { display: none; }
  .h2m-name { white-space: normal; font-size: 14px; }
  .h2m-mid { min-width: 64px; }
  .h2m-status { font-size: 10px; }
}
