/* BoostroGO — Homepage Activity Panel */
.bghap{--hap-ink:#131d4f;--hap-red:#ff0a4b;--hap-red-2:#ff5a2f;--hap-line:#dfe6f1;--hap-soft:#f5f8fc;--hap-green:#167d58;position:relative;isolation:isolate;width:100%;margin:28px auto;padding:28px;border:1px solid rgba(19,29,79,.09);border-radius:28px;background:linear-gradient(145deg,#fff 0%,#fff 66%,#fff5f7 100%);box-shadow:0 20px 50px rgba(26,39,78,.09);color:var(--hap-ink);overflow:hidden}.bghap::before{content:"";position:absolute;z-index:-1;inset:0 auto auto 0;width:38%;height:4px;background:linear-gradient(90deg,var(--hap-red),var(--hap-red-2),transparent)}.bghap *{box-sizing:border-box}.bghap a{text-decoration:none}.bghap-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}.bghap-head-copy{max-width:740px}.bghap-eyebrow{display:inline-flex;align-items:center;gap:8px;margin:0 0 7px;color:var(--hap-red);font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.bghap-eyebrow i{width:8px;height:8px;border-radius:999px;background:var(--hap-red);box-shadow:0 0 0 5px rgba(255,10,75,.09)}.bghap h2{margin:0;color:var(--hap-ink);font-size:clamp(28px,3.2vw,45px);line-height:1.02;letter-spacing:-.045em;word-break:normal;overflow-wrap:normal;hyphens:none}.bghap-head p{max-width:690px;margin:10px 0 0;color:#66708f;font-size:14px;line-height:1.55}.bghap-head-actions{flex:0 0 auto}.bghap-head-link{display:inline-flex;align-items:center;gap:10px;padding:12px 16px;border:1px solid rgba(19,29,79,.14);border-radius:999px;background:#fff;color:var(--hap-ink);font-size:12px;font-weight:900;transition:.2s ease}.bghap-head-link:hover{transform:translateY(-2px);border-color:var(--hap-red);color:var(--hap-red)}.bghap-head-link svg,.bghap-cta svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.bghap-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.bghap-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid rgba(19,29,79,.11);border-radius:22px;background:#fff;box-shadow:0 12px 28px rgba(24,37,76,.07);transition:transform .23s ease,box-shadow .23s ease,border-color .23s ease}.bghap-card:hover{transform:translateY(-4px);border-color:rgba(255,10,75,.28);box-shadow:0 20px 36px rgba(24,37,76,.12)}.bghap-media{position:relative;display:block;aspect-ratio:4/3;min-height:330px;overflow:hidden;background:linear-gradient(135deg,#141e50,#313d7c);color:#fff}.bghap-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}.bghap-card:hover .bghap-media img{transform:scale(1.035)}.bghap-type,.bghap-status{position:absolute;z-index:2;top:13px;display:inline-flex;align-items:center;min-height:28px;padding:7px 10px;border-radius:999px;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);font-size:9px;font-weight:900;line-height:1;letter-spacing:.055em;text-transform:uppercase;white-space:nowrap}.bghap-type{left:13px;background:rgba(255,255,255,.9);color:var(--hap-ink)}.bghap-status{right:13px;max-width:calc(100% - 120px);overflow:hidden;text-overflow:ellipsis;background:rgba(255,10,75,.92);color:#fff}.bghap-status.is-upcoming{border:1px solid rgba(105,224,169,.38);background:rgba(15,104,73,.78)}.bghap-status.is-active{background:rgba(255,10,75,.9)}.bghap-media-fallback{position:absolute;inset:0;display:grid;place-items:center;color:rgba(255,255,255,.13);font-size:72px;font-weight:1000;font-style:italic;letter-spacing:-.08em}.bghap-league-art{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(circle at 80% 15%,rgba(255,10,75,.26),transparent 32%),linear-gradient(135deg,#111a48 0%,#26336f 55%,#4e245d 100%);color:#fff}.bghap-league-art::before,.bghap-league-art::after{content:"";position:absolute;border:1px solid rgba(255,255,255,.12);border-radius:999px}.bghap-league-art::before{width:190px;height:190px}.bghap-league-art::after{width:130px;height:130px}.bghap-league-art i{position:absolute;top:17px;right:20px;color:var(--hap-red);font-size:12px;font-weight:1000;font-style:normal}.bghap-league-art strong{position:relative;z-index:1;font-size:42px;line-height:.9;letter-spacing:-.06em}.bghap-league-art small{position:relative;z-index:1;margin-top:7px;color:#ff4d78;font-size:11px;font-weight:900;letter-spacing:.22em}.bghap-card-body{display:flex;flex:1;min-width:0;flex-direction:column;padding:18px}.bghap-card-kicker{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.bghap-card-kicker>span:first-child{color:var(--hap-red);font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.bghap-card-kicker-right{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}.bghap-card-kicker strong{padding:5px 8px;border-radius:999px;background:#f2f5fa;color:var(--hap-ink);font-size:10px;white-space:nowrap}.bghap-mini-badge{display:block;flex:0 0 auto;width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 8px 10px rgba(28,36,75,.14));transition:transform .2s ease}.bghap-card:hover .bghap-mini-badge{transform:translateY(-1px) scale(1.04)}.bghap-card h3{margin:0;font-size:clamp(20px,1.8vw,27px);line-height:1.03;letter-spacing:-.035em;word-break:normal;overflow-wrap:normal;hyphens:none}.bghap-card h3 a{color:var(--hap-ink)}.bghap-card h3 a:hover{color:var(--hap-red)}.bghap-card-body>p{display:-webkit-box;min-height:54px;margin:11px 0 12px;overflow:hidden;color:#697391;font-size:12px;line-height:1.55;-webkit-line-clamp:3;-webkit-box-orient:vertical}.bghap-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:12px 14px;border-radius:13px;background:var(--hap-ink);color:#fff;font-size:11px;font-weight:900;transition:.2s ease}.bghap-cta:hover{background:var(--hap-red);color:#fff}.bghap-cta-league{background:linear-gradient(90deg,#26336f,#4e245d)}.bghap-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding-top:17px;border-top:1px solid rgba(19,29,79,.08);color:#7a849e;font-size:11px}.bghap-foot a{color:var(--hap-red);font-weight:900}.bghap-empty{padding:18px;border:1px dashed #cfd7e5;border-radius:16px;background:#fff;color:#697391;text-align:center}
.bghap-cards-7{grid-template-columns:repeat(3,minmax(0,1fr))}.bghap-cards-7 .bghap-media{min-height:330px}.bghap-cards-7 .bghap-card:last-child{grid-column:auto}
@media(max-width:1000px){.bghap{padding:24px}.bghap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.bghap{margin:20px auto;padding:18px;border-radius:22px}.bghap-head{align-items:flex-start;flex-direction:column}.bghap-head-actions{width:100%}.bghap-head-link{justify-content:center;width:100%}.bghap-grid{grid-template-columns:1fr}.bghap-card-body{padding:16px}.bghap-card-body>p{min-height:auto}.bghap-foot{align-items:flex-start;flex-direction:column}.bghap-status{max-width:62%;font-size:8px}.bghap h2{font-size:34px}}
@media(prefers-reduced-motion:reduce){.bghap-card,.bghap-media img,.bghap-head-link{transition:none}}

/* =========================================================
   RC59 — nagłówek „Dołącz do aktywności” w języku SaaS BoostroGO
========================================================= */
.bghap{
    padding:0 18px 18px;
}
.bghap::before{
    display:none;
}
.bghap-head{
    position:relative;
    overflow:hidden;
    align-items:center;
    min-height:112px;
    margin:0 -18px 20px;
    padding:22px 26px;
    background:
        radial-gradient(circle at 91% 8%,rgba(251,4,68,.28),transparent 31%),
        radial-gradient(circle at 8% 120%,rgba(80,215,255,.13),transparent 30%),
        linear-gradient(135deg,#11183d 0%,#263474 68%,#54275e 100%);
}
.bghap-head::after{
    content:"GO";
    position:absolute;
    right:18px;
    bottom:-36px;
    color:rgba(255,255,255,.045);
    font-size:116px;
    line-height:1;
    font-weight:950;
    letter-spacing:-.10em;
    pointer-events:none;
}
.bghap-head-copy,
.bghap-head-actions{
    position:relative;
    z-index:2;
}
.bghap-eyebrow{
    color:#ff8eac;
}
.bghap-eyebrow i{
    background:#fb0444;
    box-shadow:0 0 0 5px rgba(251,4,68,.12);
}
.bghap h2{
    color:#fff;
    font-size:clamp(32px,3.5vw,48px);
}
.bghap-head p{
    margin-top:8px;
    color:rgba(255,255,255,.72);
}
.bghap-head-link{
    border-color:rgba(255,255,255,.22);
    background:rgba(255,255,255,.10);
    color:#fff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
.bghap-head-link:hover{
    border-color:rgba(255,255,255,.42);
    background:#fff;
    color:var(--hap-ink);
}
@media(max-width:680px){
    .bghap{
        padding:0 12px 12px;
    }
    .bghap-head{
        min-height:0;
        margin:0 -12px 16px;
        padding:20px 18px;
    }
    .bghap-head::after{
        right:8px;
        bottom:-24px;
        font-size:86px;
    }
    .bghap h2{
        font-size:34px;
    }
}


/* =========================================================
   RC60 — większe grafiki i pełne wykorzystanie panelu aktywności
========================================================= */
@media(min-width:1001px){
  .bghap-cards-1 .bghap-grid{grid-template-columns:minmax(0,1fr)}
  .bghap-cards-2 .bghap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bghap-cards-2 .bghap-media{aspect-ratio:4/3;min-height:338px}
  .bghap-cards-2 .bghap-card h3{font-size:clamp(25px,2.15vw,32px)}
  .bghap-cards-2 .bghap-card-body{padding:20px}
}
@media(min-width:681px) and (max-width:1000px){
  .bghap-cards-2 .bghap-media{min-height:272px}
}


/* =========================================================
   RC64 — subtelny pasek postępu pod nagłówkami sekcji
   Wspólny detal wizualny zaczerpnięty z „Wybierz swój kierunek”.
========================================================= */
.bghap-head{
  position:relative;
}

.bghap-head::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:8;
  height:4px;
  background:linear-gradient(
    90deg,
    #fb0444 0%,
    #ff668e 43%,
    rgba(255,255,255,.22) 43%,
    rgba(255,255,255,.10) 100%
  );
  box-shadow:0 5px 16px rgba(251,4,68,.16);
  pointer-events:none;
}

@media(max-width:760px){
  .bghap-head::before{
    height:3px;
  }
}

/* =========================================================
   RC163 — Home: RUN FIVE + aktualna lub nadchodząca Liga jako dwa duże kafle
   Pierwszy rząd: 2 hero cards. Drugi rząd: 3 standardowe wyzwania.
========================================================= */
@media(min-width:1001px){
  .bghap-cards-5 .bghap-grid{
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:16px;
  }
  .bghap-cards-5 .bghap-card{
    grid-column:span 2;
  }
  .bghap-cards-5 .bghap-card:nth-child(-n+2){
    grid-column:span 3;
  }
  .bghap-cards-5 .bghap-card-featured .bghap-media{
    min-height:410px;
    aspect-ratio:16/10;
  }
  .bghap-cards-5 .bghap-card:not(.bghap-card-featured) .bghap-media{
    min-height:340px;
  }
  .bghap-cards-5 .bghap-card-featured .bghap-card-body{
    padding:20px;
  }
  .bghap-cards-5 .bghap-card-featured h3{
    font-size:clamp(24px,2vw,31px);
  }
}
@media(min-width:681px) and (max-width:1000px){
  .bghap-cards-5 .bghap-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .bghap-cards-5 .bghap-card-featured .bghap-media{
    min-height:320px;
  }
  .bghap-cards-5 .bghap-card:not(.bghap-card-featured) .bghap-media{
    min-height:270px;
  }
  .bghap-cards-5 .bghap-card:not(.bghap-card-featured):last-child{
    grid-column:1/-1;
  }
}


/* =========================================================
   RC182 — Homepage polish: CTA jak BoostroGO XP + ciaśniejszy rytm sekcji
   - usuwa zbędny slogan z footera (markup w HomeActivityPanelShortcode)
   - CTA kart dostaje ten sam język wizualny co banner BoostroGO XP
   - zmniejsza oddech pod panelem aktywności przed promo XP
========================================================= */
.bghap{
  margin-bottom:14px;
}
.bghap-cta{
  min-height:50px;
  margin-top:12px;
  padding:0 16px 0 17px;
  border:0;
  border-bottom:3px solid #ff1554;
  border-radius:14px;
  background:linear-gradient(110deg,#111a52,#1a2b69);
  box-shadow:0 12px 24px rgba(18,31,86,.14);
  color:#fff;
  font-size:11px;
  font-weight:950;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.bghap-cta svg{
  width:18px;
  height:18px;
  transition:transform .18s ease;
}
.bghap-cta:hover,
.bghap-cta:focus-visible{
  transform:translateY(-2px);
  background:linear-gradient(110deg,#111a52,#1a2b69);
  box-shadow:0 17px 31px rgba(18,31,86,.21);
  color:#fff;
  filter:brightness(1.025);
}
.bghap-cta:hover svg,
.bghap-cta:focus-visible svg{
  transform:translateX(3px);
}
/* Liga zachowuje delikatnie własny fioletowy akcent, ale ten sam komponent CTA. */
.bghap-cta-league{
  background:linear-gradient(110deg,#17205a,#4e245d);
}
.bghap-cta-league:hover,
.bghap-cta-league:focus-visible{
  background:linear-gradient(110deg,#17205a,#4e245d);
}
.bghap-foot{
  justify-content:flex-end;
  margin-top:14px;
  padding-top:13px;
}
.bghap-foot a{
  display:inline-flex;
  align-items:center;
  min-height:28px;
}
@media(max-width:680px){
  .bghap{
    margin-bottom:12px;
  }
  .bghap-cta{
    min-height:48px;
  }
  .bghap-foot{
    align-items:flex-end;
    margin-top:12px;
    padding-top:11px;
  }
}

@media(max-width:680px){.bghap-mini-badge{width:36px;height:36px}.bghap-card-kicker-right{gap:6px}}

/* =========================================================
   RC186 — Homepage rhythm: hero bliżej sekcji aktywności
   Zmniejsza sumę marginesów pomiędzy głównym bannerem i panelem kart.
========================================================= */
.bghap{
  margin-top:8px;
}
@media(max-width:680px){
  .bghap{
    margin-top:8px;
  }
}


/* =========================================================
   RC200 — nagłówek panelu aktywności jak redakcyjne sekcje Magazynu
   Ten sam rytm co „Najnowsze”: kompaktowy header, kicker, gradient,
   watermark i czerwony akcent #ff1554.
========================================================= */
.bghap{
  border-radius:30px;
}
.bghap-head{
  min-height:0;
  margin:0 -18px 18px;
  padding:20px 22px 18px;
  align-items:flex-end;
  background:
    radial-gradient(circle at 90% 12%,rgba(255,21,84,.22),transparent 25%),
    linear-gradient(120deg,#11194c 0%,#1a2b68 62%,#67215f 100%);
  border-top:5px solid #ff1554;
}
.bghap-head::after{
  content:"ACTIVITY";
  right:16px;
  bottom:-20px;
  color:rgba(255,255,255,.045);
  font-size:72px;
  font-weight:1000;
  letter-spacing:-.08em;
}
.bghap-head::before{
  height:4px;
  background:linear-gradient(90deg,#ff1554 0%,#ff668e 43%,rgba(255,255,255,.22) 43%,rgba(255,255,255,.10) 100%);
  box-shadow:0 5px 16px rgba(255,21,84,.16);
}
.bghap-head-copy{max-width:760px}
.bghap-eyebrow{
  margin-bottom:7px;
  color:#ff789a;
  font-size:10px;
  letter-spacing:.11em;
  font-weight:900;
}
.bghap-eyebrow i{
  width:8px;
  height:8px;
  background:#ff1554;
  box-shadow:0 0 0 5px rgba(255,21,84,.12);
}
.bghap h2{
  margin:0;
  color:#fff;
  font-size:clamp(30px,3.2vw,44px);
  line-height:.96;
  font-weight:950;
  letter-spacing:-.055em;
}
.bghap-head-link{
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:11px;
  font-weight:900;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
}
.bghap-head-link:hover,
.bghap-head-link:focus-visible{
  background:#fff;
  border-color:#fff;
  color:#172153;
}
@media(max-width:680px){
  .bghap-head{
    margin:0 -12px 15px;
    padding:18px 16px 16px;
    align-items:flex-start;
  }
  .bghap-head::after{right:10px;bottom:-14px;font-size:54px}
  .bghap h2{font-size:34px}
  .bghap-head-link{width:100%;justify-content:center}
}


/* =========================================================
   RC202 — domknięty header aktywności + ikona jak w pozostałych sekcjach
========================================================= */
.bghap{
  overflow:hidden;
  border-color:rgba(23,33,83,.08);
  background:#fff;
}
.bghap-head{
  width:auto;
  margin:-1px -19px 18px;
  padding:21px 24px 19px;
  border-radius:30px 30px 0 0;
  overflow:hidden;
  background:
    radial-gradient(circle at 90% 12%,rgba(255,21,84,.24),transparent 25%),
    linear-gradient(120deg,#11194c 0%,#1a2b68 62%,#67215f 100%);
}
.bghap-head-main{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:15px;
  min-width:0;
}
.bghap-head-icon{
  display:grid;
  place-items:center;
  flex:0 0 48px;
  width:48px;
  height:48px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.09);
  color:#ff6f94;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 12px 28px rgba(7,12,44,.14);
}
.bghap-head-icon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.bghap-head-copy{min-width:0}
@media(max-width:680px){
  .bghap-head{
    margin:-1px -13px 15px;
    padding:18px 16px 16px;
    border-radius:22px 22px 0 0;
  }
  .bghap-head-main{align-items:flex-start;gap:12px}
  .bghap-head-icon{flex-basis:42px;width:42px;height:42px;border-radius:14px}
  .bghap-head-icon svg{width:19px;height:19px}
}

/* =========================================================
   RC217 — Home: RUN FIVE + Liga, jeden premium standard kart
   - featured image jest głównym obrazem obu kart
   - lżejsze proporcje media i równy rytm treści
   - wyraźniejszy zakres ceny od–do
========================================================= */
@media(min-width:1001px){
  .bghap-cards-5 .bghap-card-featured .bghap-media{
    min-height:0;
    aspect-ratio:16/9;
  }
  .bghap-cards-5 .bghap-card-featured .bghap-card-body{
    min-height:244px;
    padding:22px 20px 20px;
  }
}
.bghap-card-featured .bghap-media img{
  object-fit:cover;
  object-position:center;
  transform:scale(1.001);
}
.bghap-card-featured:hover .bghap-media img{
  transform:scale(1.035);
}
.bghap-card-featured .bghap-card-kicker{
  min-height:34px;
  margin-bottom:10px;
}
.bghap-card-featured .bghap-card-kicker strong{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 11px;
  border:1px solid rgba(23,33,83,.08);
  background:#f4f7fb;
  color:#172153;
  font-size:10px;
  font-weight:950;
  letter-spacing:-.01em;
}
.bghap-card-featured h3{
  margin-top:2px;
}
.bghap-card-featured .bghap-card-body>p{
  min-height:56px;
  margin:12px 0 14px;
  font-size:13px;
  line-height:1.58;
}
.bghap-card-featured .bghap-cta{
  margin-top:auto;
}
.bghap-card-league.bghap-card-featured{
  border-color:rgba(67,43,132,.15);
}
.bghap-card-league.bghap-card-featured:hover{
  border-color:rgba(104,58,145,.30);
}
@media(max-width:1000px){
  .bghap-cards-5 .bghap-card-featured .bghap-media{
    min-height:0;
    aspect-ratio:16/9;
  }
}

/* =========================================================
   RC230 — zwarte domknięcie sekcji przed banerem BoostroGO XP
   Dolny odsyłacz do katalogu został usunięty z renderowanego HTML.
========================================================= */
.bghap{
  margin-bottom:6px;
}
@media(max-width:680px){
  .bghap{
    margin-bottom:6px;
  }
}

/* =========================================================
   RC257 — mobile: RUN FIVE wypełnia kafel i pozostaje na środku
   Kadr 16:9 jest niezależny od liczby kart, a centralny punkt
   obrazu nie przesuwa kreacji w lewo ani w prawo.
========================================================= */
@media(max-width:680px){
  .bghap-card-challenge.bghap-card-featured .bghap-media{
    min-height:0;
    aspect-ratio:16/9;
    background:#0c1239;
  }
  .bghap-card-challenge.bghap-card-featured .bghap-media img,
  .bghap-card-challenge.bghap-card-featured:hover .bghap-media img{
    object-fit:cover;
    object-position:50% 50%;
    transform:none;
  }
}

/* =========================================================
   RC262 — pełny podgląd grafik w sekcji „Dołącz do aktywności”
   Użytkownik chce zobaczyć całe key art / plakaty bez agresywnego cropa.
========================================================= */
.bghap-media{
  background:#edf2fb;
}
.bghap-media img{
  object-fit:contain;
  object-position:center center;
  background:#edf2fb;
}
.bghap-card:hover .bghap-media img{
  transform:scale(1.015);
}

/* =========================================================
   RC263 — sekcja „Dołącz do aktywności” jak kafle wpisów z „Najnowsze”
   Gdy pełny podgląd całej grafiki robi pustą szarą dziurę, wracamy do
   mocnego, editorialowego kafla: obraz u góry, czysta treść pod spodem.
========================================================= */
.bghap-grid{
  align-items:stretch;
}
.bghap-card{
  border-radius:24px;
  background:#fff;
}
.bghap-media{
  aspect-ratio:16/10;
  min-height:0;
  background:linear-gradient(135deg,#141e50,#313d7c);
}
.bghap-media img{
  object-fit:cover;
  object-position:center center;
  background:transparent;
}
.bghap-card:hover .bghap-media img{
  transform:scale(1.03);
}
.bghap-card-body{
  padding:18px 18px 20px;
}
.bghap-card-kicker{
  margin-bottom:10px;
}
.bghap-card h3{
  margin:0;
  color:var(--hap-ink);
  font-size:clamp(21px,1.9vw,27px);
  line-height:1.04;
  letter-spacing:-.04em;
}
.bghap-card-body>p{
  min-height:72px;
  margin:11px 0 14px;
  color:#6b7490;
  font-size:12.5px;
  line-height:1.58;
  font-weight:500;
  -webkit-line-clamp:4;
}
.bghap-cta{
  margin-top:auto;
}
@media(min-width:1001px){
  .bghap-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .bghap-media{
    aspect-ratio:1.12/1;
  }
}
@media(min-width:681px) and (max-width:1000px){
  .bghap-media{
    aspect-ratio:16/10;
  }
}
@media(max-width:680px){
  .bghap-card{
    border-radius:20px;
  }
  .bghap-media{
    aspect-ratio:16/10;
  }
  .bghap-card-body{
    padding:16px 16px 18px;
  }
  .bghap-card-body>p{
    min-height:auto;
    font-size:12px;
  }
}

/* =========================================================
   RC279 — Home: pełne grafiki wyzwań jak karty „Najnowsze”
   - stała, editorialowa rama 16:9,
   - właściwa grafika zawsze w całości (contain),
   - puste pasy wypełnia ta sama grafika jako miękkie tło,
   - Liga zachowuje dotychczasowy sposób kadrowania.
========================================================= */
.bghap-card-challenge .bghap-media{
  position:relative;
  isolation:isolate;
  aspect-ratio:16/9 !important;
  min-height:0 !important;
  overflow:hidden;
  background:#11183d;
}
.bghap-card-challenge .bghap-media::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:-18px;
  background-image:var(--bghap-art);
  background-repeat:no-repeat;
  background-position:center;
  background-size:cover;
  filter:blur(16px) brightness(.58) saturate(.92);
  opacity:.78;
  transform:scale(1.08);
  pointer-events:none;
}
.bghap-card-challenge .bghap-media::after{
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  background:linear-gradient(180deg,rgba(8,14,49,.06),rgba(8,14,49,.16));
  pointer-events:none;
}
.bghap-card-challenge .bghap-media img,
.bghap-card-challenge.bghap-card-featured .bghap-media img,
.bghap-card-challenge.bghap-card-featured:hover .bghap-media img{
  position:absolute;
  z-index:1;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  object-fit:contain !important;
  object-position:center center !important;
  background:transparent;
  transform:none;
}
.bghap-card-challenge:hover .bghap-media img{
  transform:scale(1.012);
}
.bghap-card-challenge .bghap-type,
.bghap-card-challenge .bghap-status{
  z-index:3;
}

@media(max-width:680px){
  .bghap-card-challenge .bghap-media{
    aspect-ratio:16/9 !important;
  }
}



/* =========================================================
   RC280 — Home activity cards: full art + compact body
   - ten sam sposób prezentacji grafiki dla wyzwań i Ligi,
   - pełny key art bez agresywnego cropa,
   - brak wielkich pustych pól między leadem a CTA,
   - karty w danym rzędzie mają równą wysokość, a CTA są wyrównane.
========================================================= */
.bghap-grid{
  align-items:stretch;
}
.bghap-card{
  height:100%;
  align-self:stretch;
}
.bghap-card .bghap-media{
  position:relative;
  isolation:isolate;
  aspect-ratio:16/9 !important;
  min-height:0 !important;
  overflow:hidden;
  background:#11183d;
}
.bghap-card .bghap-media::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:-18px;
  background-image:var(--bghap-art);
  background-repeat:no-repeat;
  background-position:center;
  background-size:cover;
  filter:blur(16px) brightness(.58) saturate(.92);
  opacity:.82;
  transform:scale(1.08);
  pointer-events:none;
}
.bghap-card .bghap-media::after{
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  background:linear-gradient(180deg,rgba(8,14,49,.04),rgba(8,14,49,.13));
  pointer-events:none;
}
.bghap-card .bghap-media img,
.bghap-card.bghap-card-featured .bghap-media img,
.bghap-card.bghap-card-featured:hover .bghap-media img{
  position:absolute;
  z-index:1;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  object-fit:contain !important;
  object-position:center center !important;
  background:transparent;
  transform:none;
}
.bghap-card:hover .bghap-media img{
  transform:scale(1.01);
}
.bghap-card .bghap-type,
.bghap-card .bghap-status{
  z-index:3;
}

/* Equal card heights within each row, with actions aligned at the bottom. */
.bghap-card-body{
  flex:1 1 auto;
  padding:18px 18px 18px;
}
.bghap-card-body>p,
.bghap-card-featured .bghap-card-body>p{
  min-height:0 !important;
  margin:10px 0 12px;
  -webkit-line-clamp:3;
}
.bghap-cta,
.bghap-card-featured .bghap-cta{
  margin-top:auto !important;
}

@media(min-width:1001px){
  .bghap-cards-5 .bghap-card-featured .bghap-media,
  .bghap-cards-5 .bghap-card:not(.bghap-card-featured) .bghap-media{
    aspect-ratio:16/9 !important;
    min-height:0 !important;
  }
  .bghap-cards-5 .bghap-card-featured .bghap-card-body{
    min-height:0 !important;
    padding:18px 18px 18px;
  }
}

@media(max-width:680px){
  .bghap-card .bghap-media{
    aspect-ratio:16/9 !important;
  }
  .bghap-card-body{
    padding:16px 16px 16px;
  }
}

/* Keep the media from shrinking as flex cards stretch to the row height. */
.bghap-card .bghap-media{flex:0 0 auto}
.bghap-card .bghap-card-kicker{min-height:40px}
