.hx-partner-card {
  display: grid;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.hx-partner-media {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
  background: #0c0b11;
}

.hx-partner-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(5, 5, 8, 0.62));
  pointer-events: none;
}

.hx-partner-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.hx-partner-media:hover img {
  transform: scale(1.025);
}

.hx-partner-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.75rem;
}

.hx-partner-label {
  color: rgba(245, 208, 254, 0.82);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hx-partner-copy h3 {
  margin-top: 0.65rem;
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.hx-partner-copy p {
  max-width: 42rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
}

.hx-partner-action {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: #fff;
  color: #18181b !important;
  font-size: 0.875rem;
  font-weight: 800;
  transition: background-color 180ms ease, transform 180ms ease;
}

.hx-partner-action:hover {
  background: #fae8ff;
  transform: translateY(-1px);
}

@media (min-width: 900px) {
  .hx-partner-card {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  }

  .hx-partner-copy {
    padding: 2.5rem;
  }
}

/* Route identity */
.hx-themed-hero {
  position: relative;
  isolation: isolate;
  border-color: color-mix(in srgb, var(--hx-route-accent) 34%, transparent) !important;
  background:
    radial-gradient(circle at 82% 35%, color-mix(in srgb, var(--hx-route-accent) 18%, transparent), transparent 34%),
    linear-gradient(115deg, color-mix(in srgb, var(--hx-route-accent-2) 10%, #0b0911), #09080e 55%, #071017) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 90px rgba(0, 0, 0, 0.2);
}

.hx-themed-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
  pointer-events: none;
}

.hx-themed-hero > :not(.hx-route-emblem) {
  position: relative;
  z-index: 2;
}

.hx-route-emblem {
  position: absolute;
  top: 50%;
  right: 5%;
  z-index: 1;
  width: clamp(130px, 18vw, 250px);
  aspect-ratio: 1;
  color: var(--hx-route-accent);
  opacity: 0.2;
  filter: drop-shadow(0 0 34px color-mix(in srgb, var(--hx-route-accent) 38%, transparent));
  pointer-events: none;
  transform: translateY(-50%) rotate(-5deg);
}

.hx-route-emblem svg {
  width: 100%;
  height: 100%;
}

.hx-route-about main article {
  border-radius: 8px 28px 8px 28px !important;
}

.hx-route-streams main article,
.hx-route-socials main article {
  border-bottom-color: color-mix(in srgb, var(--hx-route-accent) 34%, transparent) !important;
}

.hx-route-guides main article {
  border-left: 3px solid color-mix(in srgb, var(--hx-route-accent) 62%, transparent) !important;
}

.hx-route-clan main article {
  border-radius: 10px !important;
  border-color: color-mix(in srgb, var(--hx-route-accent) 30%, transparent) !important;
}

.hx-route-support main article {
  border-radius: 28px 8px 28px 8px !important;
}

.hx-route-advertising main article {
  border-top: 2px solid color-mix(in srgb, var(--hx-route-accent) 42%, transparent) !important;
}

.hx-route-giveaways main article {
  box-shadow: inset 0 0 60px color-mix(in srgb, var(--hx-route-accent) 7%, transparent);
}

.hx-route-portfolio main article {
  border-color: color-mix(in srgb, var(--hx-route-accent) 30%, transparent) !important;
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.18);
}

.hx-route-videos .hx-themed-hero {
  background:
    linear-gradient(90deg, rgba(6, 6, 10, 0.97), rgba(6, 6, 10, 0.64)),
    url("/images/backgrounds/thebattleclub-cta.webp") center 43% / cover !important;
}

.hx-route-clan .hx-themed-hero {
  background:
    linear-gradient(90deg, rgba(7, 5, 8, 0.98), rgba(7, 5, 8, 0.58)),
    url("/images/hero/main.webp") center / cover !important;
}

.hx-route-partners .hx-themed-hero {
  background:
    linear-gradient(90deg, rgba(8, 6, 10, 0.97), rgba(8, 6, 10, 0.7)),
    url("/images/partners/thebattleclub-nostalgia-x10.webp") center / cover !important;
}

.hx-route-play .hx-themed-hero {
  background:
    linear-gradient(90deg, rgba(6, 6, 9, 0.98), rgba(6, 6, 9, 0.5)),
    url("/images/backgrounds/thebattleclub-cta.webp") center / cover !important;
}

/* BattleClub home CTA */
.hx-battleclub-cta {
  position: relative;
  padding: 1.25rem 1rem 3.5rem;
}

.hx-battleclub-stage {
  position: relative;
  display: flex;
  min-height: 520px;
  max-width: 88rem;
  align-items: center;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(5, 5, 8, 0.98) 0%, rgba(5, 5, 8, 0.86) 39%, rgba(5, 5, 8, 0.18) 75%),
    linear-gradient(0deg, rgba(5, 5, 8, 0.52), transparent 48%),
    url("/images/backgrounds/thebattleclub-cta.webp") 55% center / cover;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hx-battleclub-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, rgba(245, 158, 11, 0.08), transparent 42%);
  pointer-events: none;
}

.hx-battleclub-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
  padding: clamp(1.5rem, 5vw, 4.5rem);
}

.hx-battleclub-kicker {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 999px;
  background: rgba(15, 10, 4, 0.58);
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.hx-battleclub-copy h2 {
  max-width: 620px;
  margin-top: 1.25rem;
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  font-weight: 950;
  line-height: 0.96;
  text-wrap: balance;
}

.hx-battleclub-copy > p {
  max-width: 590px;
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.75;
}

.hx-battleclub-facts,
.hx-battleclub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hx-battleclub-facts span {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hx-battleclub-primary,
.hx-battleclub-secondary {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.hx-battleclub-primary {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #1c1204 !important;
  box-shadow: 0 16px 46px rgba(245, 158, 11, 0.24);
}

.hx-battleclub-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.32);
  color: #fff !important;
  backdrop-filter: blur(10px);
}

.hx-battleclub-primary:hover,
.hx-battleclub-secondary:hover {
  transform: translateY(-2px);
}

.hx-battleclub-primary:hover {
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.34);
}

/* Home card identity */
.hx-home-card {
  --hx-card-accent: #c084fc;
  border-color: color-mix(in srgb, var(--hx-card-accent) 26%, transparent) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hx-home-card::after {
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  z-index: 2;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--hx-card-accent), transparent);
  opacity: 0.72;
}

.hx-home-icon {
  border: 1px solid color-mix(in srgb, var(--hx-card-accent) 45%, transparent);
  background: color-mix(in srgb, var(--hx-card-accent) 23%, #101016) !important;
  color: #fff !important;
  box-shadow: 0 14px 38px color-mix(in srgb, var(--hx-card-accent) 18%, transparent) !important;
}

.hx-home-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.hx-home-card[data-hx-card="about"] { --hx-card-accent: #f472b6; }
.hx-home-card[data-hx-card="streams"] { --hx-card-accent: #fb7185; }
.hx-home-card[data-hx-card="videos"] { --hx-card-accent: #f59e0b; }
.hx-home-card[data-hx-card="socials"] { --hx-card-accent: #22d3ee; }
.hx-home-card[data-hx-card="guides"] { --hx-card-accent: #34d399; }
.hx-home-card[data-hx-card="clan"] { --hx-card-accent: #ef4444; }
.hx-home-card[data-hx-card="support"] { --hx-card-accent: #60a5fa; }
.hx-home-card[data-hx-card="advertising"] { --hx-card-accent: #a78bfa; }

@media (max-width: 760px) {
  .hx-route-emblem {
    top: 23%;
    right: -3%;
    width: 118px;
    opacity: 0.14;
  }

  .hx-battleclub-stage {
    min-height: 630px;
    align-items: flex-end;
    background:
      linear-gradient(0deg, rgba(5, 5, 8, 0.99) 0%, rgba(5, 5, 8, 0.86) 51%, rgba(5, 5, 8, 0.16) 100%),
      url("/images/backgrounds/thebattleclub-cta.webp") 62% top / auto 54%;
    background-repeat: no-repeat;
  }

  .hx-battleclub-copy {
    padding: 1.5rem;
  }

  .hx-battleclub-copy h2 {
    font-size: 2.7rem;
  }

  .hx-battleclub-actions {
    flex-direction: column;
  }

  .hx-battleclub-primary,
  .hx-battleclub-secondary {
    width: 100%;
  }
}
