#invincible-hero {
  position: relative;
  width: 100%;
  min-height: 700px;
  background: url("https://assets.corsair.com/image/upload/v1776790855/pages/INVINCIBLE-LP/invincible-bg.png")
    center/cover no-repeat;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 3rem;
  color: #fff;
}

/* --- Background text layer --- */
#invincible-hero .invincible-text-layer {
  max-width: 1400px;
  position: relative;
  pointer-events: auto;
  cursor: crosshair;
}

#invincible-hero .invincible-text-layer .invincible-text-base {
  width: 100%;
  height: auto;
  display: block;
}

/* Red text reveal canvas overlay */
#invincible-hero canvas.invincible-text-reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Mobile scroll reveal (hidden on desktop) */
#invincible-hero .invincible-text-scroll-reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  display: none;
  --reveal-p: 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(var(--reveal-p) * 100%),
    transparent calc(var(--reveal-p) * 100%)
  );
          mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(var(--reveal-p) * 100%),
    transparent calc(var(--reveal-p) * 100%)
  );
}

/* --- Character layer --- */
#invincible-hero .character-layer {
  position: absolute;
  bottom: 0;
  left: 50%;
  max-width: 1300px;
  transform: translateX(-50%);
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

#invincible-hero .character-layer img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Bottom content --- */
#invincible-hero .hero-bottom-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Logos bar (combined image with yellow line, CORSAIR x InvincibleVS) */
#invincible-hero .logos-bar {
  width: 100%;
  margin-bottom: 0.5rem;
}

#invincible-hero .logos-bar img {
  width: 100%;
  height: auto;
  display: block;
}

/* Featured label */
#invincible-hero .featured-label {
  color: #ece81a;
  text-align: center;
  font-family: Saira;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 2px;
}

/* Headline */
#invincible-hero .hero-headline {
  color: #fff;
  text-align: center;
  font-family: "Saira Expanded";
  font-size: 48px;
  font-style: normal;
  font-weight: 300;
  line-height: 52px;
}

/* Description */
#invincible-hero .hero-description {
  color: #8c8c8e;
  text-align: center;
  font-family: Saira;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  max-width: 750px;
}

/* --- Ember particles --- */
#invincible-hero .ember-container {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

#invincible-hero .ember {
  position: absolute;
  width: var(--ember-w, 6px);
  height: var(--ember-h, 3px);
  background: radial-gradient(
    ellipse at center,
    #ff4500 0%,
    #ff6a00 40%,
    transparent 100%
  );
  border-radius: 50%;
  opacity: 0;
  filter: blur(var(--ember-blur, 1px));
  box-shadow: 0 0 var(--ember-glow, 8px) 2px rgba(255, 69, 0, 0.5);
  transform: rotate(var(--ember-angle, -35deg));
  animation: ember-drift linear forwards;
}

@keyframes ember-drift {
  0% {
    opacity: 0;
    translate: 0 0;
  }
  8% {
    opacity: var(--ember-peak-opacity, 0.9);
  }
  70% {
    opacity: var(--ember-peak-opacity, 0.9);
  }
  100% {
    opacity: 0;
    translate: var(--dx) var(--dy);
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  #invincible-hero {
    min-height: 500px;
    padding-bottom: 2rem;
  }
  #invincible-hero .hero-bottom-content {
    gap: 0;
    padding: 0 1rem;
  }
  #invincible-hero .invincible-text-layer {
    width: 100%;
    top: 2%;
  }

  #invincible-hero .hero-headline {
    font-size: 1.5rem;
    line-height: 32px;
  }

  #invincible-hero .hero-description {
    font-size: 0.75rem;
  }

  /* Hide desktop canvas reveal, show mobile scroll reveal */
  #invincible-hero canvas.invincible-text-reveal {
    display: none;
  }

  #invincible-hero .invincible-text-scroll-reveal {
    display: block;
  }

  #invincible-hero .invincible-text-layer {
    cursor: default;
  }
}
