.homepage-challenge {
  padding: 24px 0 6px;
  background: #fff;
}

.homepage-challenge-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 25px 28px 25px 32px;
  border: 1px solid #e4e0d8;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(237, 106, 42, 0.09), transparent 35%),
    linear-gradient(135deg, #fbfaf7 0%, #f6f2eb 100%);
  box-shadow: 0 16px 40px rgba(13, 34, 58, 0.08);
}

.homepage-challenge-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #ed6a2a;
}

.homepage-challenge-copy {
  min-width: 0;
}

.homepage-challenge-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #6e7781;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.homepage-challenge-kicker b {
  padding: 5px 8px;
  border-radius: 7px;
  background: #0d223a;
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.09em;
}

.homepage-challenge-card h2 {
  max-width: 720px;
  margin: 0;
  color: #0d223a;
  font-size: clamp(22px, 2.3vw, 31px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.homepage-challenge-card p {
  max-width: 700px;
  margin: 9px 0 0;
  color: #687380;
  font-size: 14px;
  line-height: 1.55;
}

.homepage-challenge-actions {
  min-width: 225px;
  display: grid;
  justify-items: stretch;
  gap: 8px;
}

.homepage-challenge-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border: 1px solid #c54d14;
  border-radius: 13px;
  background: #ed6a2a;
  box-shadow: 0 10px 22px rgba(197, 77, 20, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.homepage-challenge-button:hover {
  background: #d85a1e;
  box-shadow: 0 12px 26px rgba(197, 77, 20, 0.25);
  transform: translateY(-1px);
}

.homepage-challenge-button:active {
  background: #c54d14;
  transform: translateY(0);
}

.homepage-challenge-button span {
  font-size: 18px;
  line-height: 1;
}

.homepage-challenge-actions small {
  color: #79838d;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.memory-challenge-link {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding: 9px 12px;
  border: 1px solid rgba(13, 34, 58, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  color: #0d223a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.memory-challenge-link:hover {
  border-color: rgba(237, 106, 42, 0.6);
  background: #fff;
}

.memory-challenge-link strong {
  color: #c54d14;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.memory-challenge-link span {
  color: #ed6a2a;
  font-size: 16px;
  line-height: 1;
}

.homepage-challenge-button:focus-visible,
.memory-challenge-link:focus-visible {
  outline: 3px solid #2674c7;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .homepage-challenge {
    padding: 16px 0 4px;
  }

  .homepage-challenge-card {
    grid-template-columns: 1fr;
    gap: 19px;
    padding: 22px 18px 20px 22px;
    border-radius: 18px;
  }

  .homepage-challenge-kicker {
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 9px;
    font-size: 10px;
  }

  .homepage-challenge-card h2 {
    font-size: clamp(21px, 6.2vw, 27px);
  }

  .homepage-challenge-card p {
    margin-top: 8px;
    font-size: 13px;
  }

  .homepage-challenge-actions {
    min-width: 0;
  }

  .homepage-challenge-button {
    width: 100%;
  }

  .memory-challenge-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-challenge-button,
  .memory-challenge-link {
    transition: none;
  }
}

.minimal-storefront .hero-challenge-button {
  border-color: #c54d14;
  background: #ed6a2a;
  box-shadow: 0 12px 26px rgba(197, 77, 20, 0.24);
}

.minimal-storefront .minimal-hero-actions {
  display: grid;
  justify-items: start;
  gap: 0.55rem;
}

.minimal-storefront .hero-action-row {
  display: flex;
  align-items: stretch;
  gap: 1rem;
}

.minimal-storefront .hero-challenge-button,
.minimal-storefront .hero-books-button {
  min-height: 54px;
}

.minimal-storefront .hero-books-button {
  justify-content: center;
  padding: 0 1.2rem;
  border: 1px solid #d4dbe4;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(13, 34, 58, 0.07);
  text-decoration: none;
}

.minimal-storefront .hero-books-button:hover {
  border-color: #aeb9c7;
  background: #f8fafc;
}

.minimal-storefront .hero-challenge-note {
  margin: 0;
  color: #68758b;
  font-size: 0.82rem;
  font-weight: 650;
}

.minimal-storefront .hero-challenge-button:hover {
  border-color: #b84410;
  background: #d85a1e;
  box-shadow: 0 14px 30px rgba(197, 77, 20, 0.29);
}

.hero-challenge-button:focus-visible {
  outline: 3px solid #2674c7;
  outline-offset: 3px;
}

.minimal-storefront .hero-books-button:focus-visible {
  outline: 3px solid #2674c7;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .minimal-storefront .minimal-hero-actions {
    justify-items: center;
  }

  .minimal-storefront .hero-action-row {
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .minimal-storefront .hero-action-row {
    width: 100%;
    flex-direction: column;
    gap: 0.65rem;
  }

  .minimal-storefront .hero-action-row .hero-challenge-button,
  .minimal-storefront .hero-action-row .hero-books-button {
    width: 100%;
  }

  .minimal-storefront .hero-challenge-note {
    text-align: center;
  }
}

