/*
 * Rewards: compact Halloween showcase
 * Kept separate from the base stylesheet so this presentation is easy to
 * maintain without changing the original page theme.
 */
body.halloween-theme-active .rewards-section,
.rewards-section {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 3.125rem;
  color: #fff;
  background: #294793 !important;
}

.rewards-section .shell {
  position: relative;
}

.rewards-section .rewards-heading {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start !important;
  align-items: baseline;
  gap: 0;
  min-height: 6.15rem;
  margin: 0 0 1.25rem;
  padding: 0 10rem 0 0;
  text-align: left;
}

.rewards-section .rewards-heading__title {
  flex: 0 0 100%;
  margin: 0 0 0.32rem;
}

.rewards-section .rewards-heading__title .eyebrow {
  margin: 0 0 0.38rem;
  color: #e7edff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.rewards-section .rewards-heading__title h2 {
  margin: 0;
  color: #fff;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 2.45rem);
  line-height: 1.13;
}

.rewards-section .rewards-heading .rewards-points {
  display: inline-block;
  min-height: 0;
  margin: 0 0.55rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: none;
}

.rewards-section .rewards-heading .rewards-points b {
  color: #fff;
}

/* The live Halloween script adds this Luvo image to the heading.  Take it
   out of the document flow so it sits neatly at the panel's top-right. */
.rewards-section .luvo-rewards-art,
.rewards-section .hw-rewards-pumpkin {
  position: absolute;
  z-index: 2;
  top: -0.8rem;
  right: 0.15rem;
  left: auto;
  bottom: auto;
  display: block;
  width: 8.7rem;
  height: 8.7rem;
  margin: 0;
  pointer-events: none;
}

.rewards-section .luvo-rewards-art img,
.rewards-section .hw-rewards-pumpkin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rewards-section .reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.rewards-section .reward-grid article {
  --reward-ink: #192e68;
  /* The exact compact Halloween cobweb used on the member-tier cards. */
  --reward-web: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20d%3D%22M100%200L100.00%2098.00M100%200L62.50%2090.54M100%200L30.70%2069.30M100%200L9.46%2037.50M100%200L2.00%200.00M100.00%2023.00Q96.28%2018.72%2091.20%2021.25Q89.39%2015.87%2083.74%2016.26Q84.13%2010.61%2078.75%208.80Q81.28%203.72%2077.00%200.00M100.00%2047.00Q92.39%2038.26%2082.01%2043.42Q78.33%2032.44%2066.77%2033.23Q67.56%2021.67%2056.58%2017.99Q61.74%207.61%2053.00%200.00M100.00%2072.00Q88.34%2058.61%2072.45%2066.52Q66.80%2049.69%2049.09%2050.91Q50.31%2033.20%2033.48%2027.55Q41.39%2011.66%2028.00%200.00M100.00%2098.00Q84.13%2079.78%2062.50%2090.54Q54.81%2067.63%2030.70%2069.30Q32.37%2045.19%209.46%2037.50Q20.22%2015.87%202.00%200.00%22%20fill%3D%22none%22%20stroke%3D%22%23dccaf6%22%20stroke-opacity%3D%22.34%22%20stroke-width%3D%221.15%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  position: relative;
  isolation: isolate;
  min-height: 13.94rem;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0;
  padding: 1.65rem 1.75rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 0.9rem;
  color: var(--reward-ink);
  background-color: #fff8eb;
  background-image: var(--reward-web);
  background-position: top right;
  background-repeat: no-repeat;
  background-size: 88px 88px;
  box-shadow: none;
}

.rewards-section .reward-grid article::before {
  content: none;
}

.rewards-section .reward-grid article > * {
  position: relative;
  z-index: 1;
}

.rewards-section .reward-grid .reward-icon {
  display: block;
  min-height: 1.45rem;
  margin: 0 0 0.65rem;
  color: var(--reward-ink);
  font-size: 1.45rem;
  line-height: 1;
}

.rewards-section .reward-grid article p {
  margin: 0;
  color: var(--reward-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
}

.rewards-section .reward-grid article h3 {
  margin: 0.78rem 0 1.32rem;
  color: var(--reward-ink);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.52rem);
  line-height: 1.16;
}

.rewards-section .reward-grid article button {
  min-height: 2.33rem;
  margin: 0;
  padding: 0.57rem 0.9rem;
  border: 0;
  border-radius: 0.45rem;
  color: #fff;
  background: #294a9e;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.rewards-section .reward-grid article button:hover,
.rewards-section .reward-grid article button:focus-visible {
  background: #173a8d;
}

.rewards-section .reward-grid article.featured {
  --reward-ink: #fff8eb;
  color: #fff8eb;
  background-color: #101727;
  border-color: rgba(225, 232, 255, 0.18);
}

/* Override the generic dark-card pumpkin/web decoration so the featured reward
   uses the exact same compact corner cobweb as the other reward cards. */
.halloween-season .rewards-section .reward-grid article.featured {
  background-image: var(--reward-web);
  background-position: top right;
  background-repeat: no-repeat;
  background-size: 88px 88px;
}

.rewards-section .reward-grid article.featured::after {
  position: absolute;
  z-index: 0;
  right: 0.65rem;
  bottom: 0.35rem;
  content: "🎃";
  font-size: 2.15rem;
  line-height: 1;
  filter: drop-shadow(0 0.2rem 0.25rem rgba(0, 0, 0, 0.24));
}

.rewards-section .reward-grid article.featured button {
  color: #1d294e;
  background: #ffc77f;
}

.rewards-section .reward-grid article.featured button:hover,
.rewards-section .reward-grid article.featured button:focus-visible {
  background: #ffda9f;
}

@media (max-width: 760px) {
  .rewards-section {
    padding: 1.8rem 0 2.45rem;
  }

  .rewards-section .rewards-heading {
    min-height: 0;
    margin-bottom: 1.25rem;
    padding-right: 5.8rem;
  }

  .rewards-section .rewards-heading__title h2 {
    font-size: clamp(1.72rem, 9vw, 2.1rem);
  }

  .rewards-section .luvo-rewards-art,
  .rewards-section .hw-rewards-pumpkin {
    top: -0.65rem;
    right: -0.2rem;
    width: 5.8rem;
    height: 5.8rem;
  }

  .rewards-section .reward-grid {
    grid-template-columns: 1fr;
  }

  .rewards-section .reward-grid article {
    min-height: 12.3rem;
  }
}

@media (max-width: 420px) {
  .rewards-section .rewards-heading {
    padding-right: 4.45rem;
  }

  .rewards-section .rewards-heading .rewards-points {
    font-size: 0.88rem;
  }

  .rewards-section .luvo-rewards-art,
  .rewards-section .hw-rewards-pumpkin {
    width: 4.75rem;
    height: 4.75rem;
  }
}


/* Standard-theme recovery: keep the seasonal featured styling scoped to Halloween only. */
html:not(.halloween-season) .rewards-section .reward-grid article.featured {
  --reward-ink: #fff;
  color: #fff;
  background-color: var(--deep);
  background-image: none;
  border-color: transparent;
}

html:not(.halloween-season) .rewards-section .reward-grid article.featured::after {
  content: none;
}

html:not(.halloween-season) .rewards-section .reward-grid article.featured button {
  color: #503a08;
  background: var(--gold);
}

html:not(.halloween-season) .rewards-section .reward-grid article.featured button:hover,
html:not(.halloween-season) .rewards-section .reward-grid article.featured button:focus-visible {
  background: #f4d77f;
}
