:root{
  --ink: #0f172a;
  --muted: rgba(15,23,42,.68);
  --line-soft: rgba(15,23,42,.10);
  --line: rgba(15,23,42,.14);

  --surface: #ffffff;
  --surface2: #fbfbfd;
  --shadow: 0 16px 40px rgba(15,23,42,.10);
  --shadow2: 0 8px 22px rgba(15,23,42,.10);

  --gold-bg: rgba(255,247,220,.92);
  --gold-bd: rgba(184,134,11,.22);
  --gold-tx: #7a5a10;

  --amber-bg: rgba(245,158,11,.16);
  --amber-bd: rgba(245,158,11,.30);
  --amber-tx: #8a5a00;

  --green-bg: rgba(22,163,74,.12);
  --green-bd: rgba(22,163,74,.22);
  --green-tx: #14532d;

  --purple-bg: rgba(109,40,217,.10);
  --purple-bd: rgba(109,40,217,.22);

  --pink-bg: rgba(219,39,119,.10);
  --pink-bd: rgba(219,39,119,.20);

  --cyan-bg: rgba(14,165,233,.10);
  --cyan-bd: rgba(14,165,233,.20);
}

/* helpers */
.desktopOnly{ display:flex; }
@media (max-width:760px){ .desktopOnly{ display:none !important; } }

/* =========================================================
   ✅ HARD FORCE BOLD (because global css is overriding)
   This guarantees comp_name, date, pills, mode_label etc.
========================================================= */

/* Cards + all text inside cards must be bold */
#upcomingCarousel .cCard,
#ongoingCarousel .cCard,
#pastCarousel .cCard,
#featuredWrap .featuredCard{
  font-weight: 1000 !important;
}

#upcomingCarousel .cCard *,
#ongoingCarousel .cCard *,
#pastCarousel .cCard *,
#featuredWrap .featuredCard *{
  font-weight: 1000 !important;
}

/* But keep icons/emoji normal if needed */
#upcomingCarousel .cCard .brandMark,
#ongoingCarousel .cCard .brandMark,
#pastCarousel .cCard .brandMark{
  font-weight: 400 !important;
}

/* =========================================================
   Controls / Filters
========================================================= */
.controlsCard{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow2);
  padding:14px;
  background: var(--surface);
}
.controlsTop{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.searchWrap{ display:flex; gap:10px; flex:1 1 520px; }
.searchInput{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:11px 12px;
  font-weight:1000 !important;
  color: var(--ink);
  background: var(--surface2);
}

.filtersPanel{ margin-top:12px; border-top:1px dashed var(--line-soft); padding-top:12px; }
.filtersGrid{
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr .8fr;
  gap:12px;
}
@media (max-width:760px){ .filtersGrid{ grid-template-columns:1fr; } }

.filterBlock{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background: var(--surface);
}
.filterLabel{
  font-weight:1100 !important;
  margin-bottom:8px;
  color: var(--ink);
}
.chipRow{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{
  border:1px solid var(--line);
  background: var(--surface2);
  padding:8px 12px;
  border-radius:999px;
  font-weight:1100 !important;
  cursor:pointer;
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 10px 18px rgba(0,0,0,.05);
}
.chip.on{ background: rgba(15,23,42,.06); }

.select{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  font-weight:1000 !important;
  background: var(--surface2);
  color: var(--ink);
}
.filtersMeta{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.muted{ color: var(--muted) !important; font-weight:1000 !important; }

/* =========================================================
   Featured
========================================================= */
.featuredWrap{ margin-top:16px; }
.featuredCard{
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:18px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:16px;
  align-items:center;
  background: var(--surface);
}
@media (max-width:760px){ .featuredCard{ grid-template-columns:1fr; } }

.poster{
  border-radius:18px;
  border:1px solid var(--line);
  aspect-ratio:2/1;
  overflow:hidden;
  background: var(--surface2);
}
.poster img{ width:100%; height:100%; object-fit:cover; display:block; }

.fName{
  font-size:28px;
  font-weight:1200 !important;
  margin:0;
  color: var(--ink);
}
.fDate{
  margin-top:6px;
  font-weight:1200 !important;
  color:#db2777;
}
.fHook{ margin-top:8px; font-weight:1100 !important; color: var(--muted); }
.fPrize{
  margin:10px 0;
  padding:10px 12px;
  border-radius:14px;
  background: var(--gold-bg);
  border:1px solid var(--gold-bd);
  color: var(--gold-tx);
  font-weight:1200 !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
}
.fGrid{ display:flex; flex-wrap:wrap; gap:10px; }
.fItem{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  font-weight:1100 !important;
  color: var(--ink);
  background: var(--surface2);
}
.bannerActions{ margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; }
.bannerActions .btn{ padding:12px 14px; border-radius:16px; font-weight:1100 !important; }

/* =========================================================
   Mode label (mode_label)
========================================================= */
.modeBox{
  padding:6px 10px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.16);
  background: rgba(15,23,42,.04);
  font-size:12px;
  font-weight:1300 !important; /* ✅ extra hard */
  letter-spacing:.35px;
  text-transform:uppercase;
  color: var(--ink);
}

/* =========================================================
   Layout sections
========================================================= */
.twoCols{
  margin-top:16px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px;
}
@media (max-width:760px){ .twoCols{ grid-template-columns:1fr; } }

.colCard{
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
  box-shadow: var(--shadow2);
  background: var(--surface);
}
.colHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.colTitle{
  font-size:20px;
  font-weight:1300 !important;
  margin:0;
  color: var(--ink) !important;
}

/* arrows */
.arrowGroup{ display:flex; gap:10px; align-items:center; }
.arrowBtn{
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(15,23,42,.10);
  font-weight:1300 !important;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.arrowBtn:hover{ transform: translateY(-1px); background: var(--surface2); box-shadow: 0 14px 30px rgba(15,23,42,.12); }
.arrowBtn:active{ transform: translateY(0px) scale(.98); }

/* =========================================================
   Carousel + Cards
========================================================= */
.carousel{
  display:flex;
  gap:14px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:6px;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar{ height:10px; }
.carousel::-webkit-scrollbar-thumb{ background: rgba(15,23,42,.18); border-radius:999px; }

/* full-width cards for upcoming/ongoing */
#upcomingCarousel .cCard,
#ongoingCarousel .cCard{
  flex: 0 0 100%;
  max-width: 100%;
}

/* past size desktop */
#pastCarousel .cCard{
  flex: 0 0 360px;
  max-width: 360px;
}

/* mobile swipe width */
@media (max-width:760px){
  #upcomingCarousel .cCard,
  #ongoingCarousel .cCard,
  #pastCarousel .cCard{
    flex: 0 0 88vw;
    max-width: 88vw;
  }
}

.cCard{
  scroll-snap-align:start;
  border:1px solid var(--line);
  border-radius:20px;
  padding:14px;
  box-shadow: var(--shadow2);
  display:flex;
  flex-direction:column;
  gap:10px;
  background: var(--surface);
}

/* comp_name */
.cTitle{
  font-size:19px;
  font-weight:1400 !important; /* ✅ strongest */
  margin:0;
  color: var(--ink) !important;
  letter-spacing: .2px;
}

/* comp_date */
.cDate{
  font-weight:1300 !important;
  color:#db2777;
}

/* meta lines */
.cMeta{
  font-weight:1100 !important;
  line-height:1.28;
  color: var(--muted);
}

/* prizes inline gold */
.prizeInline{
  color: var(--gold-tx);
  font-weight:1300 !important;
}

/* pills */
.badgesRow{ display:flex; flex-wrap:wrap; gap:8px; }
.pill{
  padding:7px 11px;
  border-radius:999px;
  font-size:12px;
  font-weight:1400 !important; /* ✅ strongest */
  border:1px solid var(--line);
  background: var(--surface2);
  color: var(--ink);
  letter-spacing:.25px;
  text-transform:uppercase;
}
.pill.cyan{ background: var(--cyan-bg); border-color: var(--cyan-bd); }
.pill.violet{ background: var(--purple-bg); border-color: var(--purple-bd); }
.pill.pink{ background: var(--pink-bg); border-color: var(--pink-bd); }
.pill.green{ background: var(--green-bg); border-color: var(--green-bd); color: var(--green-tx); }
.pill.amber{ background: var(--amber-bg); border-color: var(--amber-bd); color: var(--amber-tx); }

/* actions */
#upcomingCarousel .cActions,
#ongoingCarousel .cActions,
#pastCarousel .cActions{
  margin-top:10px !important;
  padding-top:10px;
  border-top:1px dashed var(--line-soft);
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
#upcomingCarousel .btn,
#ongoingCarousel .btn,
#pastCarousel .btn{
  padding:10px 12px;
  border-radius:14px;
  font-weight:1200 !important;
}


/* CTA states */
.btn.primary.disabled{
  opacity: .55;
  pointer-events: none;
  filter: grayscale(.2);
}


/* =========================================================
   ✅ HOME-CLEAN GLOBAL THEME OVERRIDES (applied across pages)
   - Keeps your existing selectors + logic intact
   - Unifies tokens so all pages instantly match the home-clean vibe
========================================================= */
:root{
  --ink:#0f172a;
  --muted: rgba(15,23,42,.68);
  --line-soft: rgba(15,23,42,.10);
  --line: rgba(15,23,42,.14);

  --bg:#f7f9fc;
  --surface:#ffffff;
  --surface2:#fbfbfd;

  --shadow: 0 16px 40px rgba(15,23,42,.10);
  --shadow2: 0 8px 22px rgba(15,23,42,.10);

  --r:22px;
  --r2:16px;

  --violet:#6d28d9;
  --cyan:#0891b2;
  --pink:#db2777;

  --goldBg: rgba(255,247,220,.92);
  --goldBd: rgba(184,134,11,.22);
  --goldTx: #7a5a10;

  --amberBg: rgba(245,158,11,.16);
  --amberBd: rgba(245,158,11,.30);
  --amberTx: #8a5a00;

  --greenBg: rgba(22,163,74,.12);
  --greenBd: rgba(22,163,74,.22);
  --greenTx: #14532d;

  --purpleBg: rgba(109,40,217,.10);
  --purpleBd: rgba(109,40,217,.22);

  --pinkBg: rgba(219,39,119,.10);
  --pinkBd: rgba(219,39,119,.20);

  --cyanBg: rgba(14,165,233,.10);
  --cyanBd: rgba(14,165,233,.20);
}

/* Global base feel */
html, body{
  background: var(--bg);
  color: var(--ink);
}

/* Keep your bold-heavy aesthetic consistent */
body, body *{
  letter-spacing: .02px;
}

/* Generic cards/buttons/pills fallback (non-destructive) */
.card, .panel, .box,
.detailCard, .rulesCard,
.cvCard, .rkCard, .resCard,
.psCard{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
}

.btn, button, .button, .rkTab, .resChip, .rkChip, .psBtn{
  border-radius: 14px;
}

.pill, .chip, .rkChip, .resChip{
  border-radius: 999px;
}


/* =========================================================
   ✅ HOME-CLEAN THEME — STRONG OVERRIDES (V3)
   Purpose: make the change UNMISSABLE even if other CSS wins.
   - Uses !important on tokens + base elements
   - Gives a very clear background + card style
========================================================= */
:root{
  --ink:#0f172a !important;
  --muted: rgba(15,23,42,.68) !important;
  --line-soft: rgba(15,23,42,.10) !important;
  --line: rgba(15,23,42,.14) !important;

  /* UNMISSABLE page background */
  --bg:#f7f9fc !important;
  --surface:#ffffff !important;
  --surface2:#fbfbfd !important;

  --shadow: 0 16px 40px rgba(15,23,42,.10) !important;
  --shadow2: 0 8px 22px rgba(15,23,42,.10) !important;

  --r:22px !important;
  --r2:16px !important;

  --violet:#6d28d9 !important;
  --cyan:#0891b2 !important;
  --pink:#db2777 !important;

  /* map hc vars so if any page uses them, it still matches */
  --hc-bg: var(--bg) !important;
  --hc-card: var(--surface) !important;
  --hc-text: var(--ink) !important;
  --hc-muted: #52627a !important;
  --hc-accent: #2563eb !important;
  --hc-accent2: var(--violet) !important;
  --hc-yellow: #ffd400 !important;
  --hc-gold: #d7b100 !important;
  --hc-border: rgba(15, 23, 42, 0.10) !important;
  --hc-shadow: 0 8px 24px rgba(2, 6, 23, 0.08) !important;
  --hc-radius: 18px !important;
}

/* Force background + base typography */
html, body{ background: var(--bg) !important; color: var(--ink) !important; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji" !important;
}

/* Force common containers to look like home-clean */
.container, .wrap, .shell, .page, .main, .rkWrap, .resWrap, .psPage, .cvShell{
  background: transparent !important;
}

/* Force cards across your app */
.card, .panel, .box,
.detailCard, .rulesCard,
.cvCard, .rkCard, .resCard,
.psCard,
.controlsCard, .featuredCard,
.compCard, .wideSliderArea,
.psCompCard, .psH2HMatch,
.rkTableWrap, .rkList, .resTableWrap{
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r) !important;
  box-shadow: var(--shadow2) !important;
}

/* Buttons */
.btn, button, .button, a.btn, input[type="button"], input[type="submit"]{
  border-radius: 14px !important;
  border: 1px solid rgba(15,23,42,.14) !important;
  background: rgba(255,255,255,.92) !important;
  color: var(--ink) !important;
  box-shadow: 0 10px 18px rgba(2,6,23,.06) !important;
}
.btn.primary, button.primary, .button.primary{
  background: linear-gradient(135deg, rgba(37,99,235,.92), rgba(109,40,217,.90)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* Pills/Chips */
.pill, .chip, .rkChip, .resChip, .psPill, .psChip, .hc-pill, .hc-chip{
  border-radius: 999px !important;
  border: 1px solid rgba(15,23,42,.14) !important;
  background: rgba(15,23,42,.04) !important;
  color: rgba(15,23,42,.92) !important;
}
.pill.registered{ background: rgba(22,163,74,.12) !important; border-color: rgba(22,163,74,.22) !important; color: #14532d !important; }
.pill.closed{ background: rgba(239,68,68,.10) !important; border-color: rgba(239,68,68,.22) !important; color: #7f1d1d !important; }

/* Headings get tighter tracking like home-clean */
h1, h2, h3{ letter-spacing: -0.02em !important; }

/* Optional: subtle top glow so you can instantly tell CSS loaded */
body::before{
  content:"";
  position: fixed;
  left:0; right:0; top:0;
  height: 240px;
  pointer-events:none;
  background:
    radial-gradient(900px 240px at 20% 0%, rgba(37,99,235,.10), transparent 55%),
    radial-gradient(900px 240px at 85% 0%, rgba(109,40,217,.10), transparent 55%);
  z-index: 0;
}
/* keep page content above glow */
body > *{ position: relative; z-index: 1; }

/* =========================================================
   HOME-CLEAN THEME OVERLAY (NON-DESTRUCTIVE)
   - Appended to the existing competitions.css
   - DOES NOT remove/replace any prior rules, only overrides visuals
   - Keeps all existing IDs/classes intact for competitions.js
========================================================= */

/* If home-clean is loaded elsewhere, these vars already exist.
   This mapping ensures competitions.css uses the same palette. */
:root{
  /* Map to home-clean tokens */
  --ink: var(--hc-text, #0f172a);
  --muted: var(--hc-muted, #52627a);
  --line-soft: var(--hc-border, rgba(15, 23, 42, 0.10));
  --line: var(--hc-border, rgba(15, 23, 42, 0.10));

  --bg: var(--hc-bg, #f7f9fc);
  --surface: var(--hc-card, #ffffff);
  --surface2: rgba(255,255,255,0.85);

  --shadow: var(--hc-shadow, 0 8px 24px rgba(2, 6, 23, 0.08));
  --shadow2: 0 10px 22px rgba(2, 6, 23, 0.06);

  --r: var(--hc-radius, 18px);
  --r2: 14px;

  --hc-accent: var(--hc-accent, #2563eb);
  --hc-accent2: var(--hc-accent2, #6d28d9);
  --hc-yellow: var(--hc-yellow, #ffd400);
  --hc-gold: var(--hc-gold, #d7b100);
}

/* Page background + spacing */
html, body{ background: var(--bg) !important; color: var(--ink) !important; }
.container.section{ padding-top: 28px; padding-bottom: 44px; }

/* Featured hero card style */
#featuredWrap .featuredCard{
  background:
    radial-gradient(900px 500px at 25% 20%, rgba(37, 99, 235, 0.08), transparent 60%),
    radial-gradient(900px 500px at 75% 40%, rgba(109, 40, 217, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff, #f4f8ff) !important;
  border: 1px solid var(--line) !important;
  border-radius: calc(var(--r) + 6px) !important;
  box-shadow: var(--shadow) !important;
}
#featuredWrap .poster{
  border-radius: 16px !important;
  border: 1px solid var(--line-soft) !important;
  overflow: hidden;
}
#featuredWrap .fName{
  letter-spacing: -0.02em;
}
#featuredWrap .fDate{ color: var(--hc-accent) !important; }
#featuredWrap .fPrize{
  background: rgba(255, 212, 0, 0.18) !important;
  border-color: rgba(255, 212, 0, 0.35) !important;
}
#featuredWrap .fItem{
  border-color: rgba(37, 99, 235, 0.18) !important;
  background: rgba(37, 99, 235, 0.07) !important;
}

/* Controls / filters card */
.controlsCard{
  background: rgba(255,255,255,0.85) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r) !important;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.06) !important;
}
.searchInput, .select{
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 14px !important;
}
.chip{
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}
.chip.on{
  background: linear-gradient(90deg, var(--hc-accent), var(--hc-accent2)) !important;
  color:#fff !important;
  border-color: transparent !important;
}

/* Section cards */
.colCard{
  background: rgba(255,255,255,0.85) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r) !important;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.06) !important;
}
.colTitle{ letter-spacing: -0.02em; }

/* Arrow buttons */
.arrowBtn{
  border-radius: 14px !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.06) !important;
}

/* Competition cards */
.cCard{
  border-radius: var(--r) !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.06) !important;
}
.cTitle{ letter-spacing: -0.01em; }
.cDate{ color: var(--hc-accent2) !important; }

/* Pills */
.pill{
  border-radius: 999px !important;
  border-color: rgba(37, 99, 235, 0.20) !important;
  background: rgba(37, 99, 235, 0.08) !important;
  color: var(--hc-accent, #2563eb) !important;
}
.pill.green, .pill.registered{
  border-color: rgba(16,185,129,.28) !important;
  background: rgba(16,185,129,.12) !important;
  color: rgba(6,95,70,1) !important;
}
.pill.pink, .pill.closed{
  border-color: rgba(239,68,68,.30) !important;
  background: rgba(239,68,68,.12) !important;
  color: rgba(127,29,29,1) !important;
}
.pill.amber{
  border-color: rgba(180, 83, 9, .25) !important;
  background: rgba(251, 191, 36, .18) !important;
  color: rgba(120, 53, 15, 1) !important;
}

/* Buttons: keep your existing .btn logic, just align styling */
.btn, .btn.primary, .btn.ghost, .btn.dark{
  border-radius: 14px !important;
}
.btn.primary{
  background: linear-gradient(90deg, var(--hc-accent), var(--hc-accent2)) !important;
  border-color: transparent !important;
  color:#fff !important;
}
.btn.primary.disabled{
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: rgba(15, 23, 42, 0.65) !important;
}

/* Footer light */
.footerLight{
  background: transparent !important;
  border-top: 1px solid rgba(15, 23, 42, 0.10) !important;
}
