@media (min-width: 1280px) {
  header > .ftf-container-wide {
    position: relative;
  }

  header .ftf-nav-capsule {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  #home .ftf-container-wide > div > div:first-child {
    top: calc(min(15.73vw, 302px) - min(2.5vw, 50px));
  }

  #home .ftf-container-wide > div > div:nth-child(2) {
    left: 29.6%;
    top: calc(min(23.9vw, 459px) - min(2.5vw, 50px));
  }

  #home .ftf-container-wide > div > div:nth-child(3) {
    right: 6%;
  }
}

/* Keep the custom metric artwork aligned with the original 60px icon slots. */
#how-you-earn .flex.flex-wrap:has(> .flex.flex-col.items-start) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  column-gap: clamp(12px, 1.5vw, 28px) !important;
}

#how-you-earn .flex.flex-wrap:has(> .flex.flex-col.items-start)
  > .flex.flex-col.items-start {
  width: 100%;
  min-width: 0;
}

#how-you-earn .ftf-metric-icon-frame {
  position: relative;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  margin-right: 0;
}

#how-you-earn .ftf-metric-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88.8px;
  height: 88.8px;
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.18))
    drop-shadow(0 0 12px rgba(11, 128, 233, 0.45));
}

/* Mobile: two balanced stats, then a full-width explanation card. */
@media (max-width: 767px) {
  #how-you-earn .flex.flex-wrap:has(> .flex.flex-col.items-start) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px !important;
    max-width: 480px;
    margin: 32px auto 0 !important;
    align-items: stretch;
  }

  #how-you-earn .flex.flex-wrap:has(> .flex.flex-col.items-start)
    > .flex.flex-col.items-start {
    align-items: center;
    padding: 20px 12px;
    text-align: center;
    border: 1px solid rgba(124, 180, 255, 0.2);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(55, 115, 198, 0.10), rgba(24, 46, 103, 0.07));
  }

  #how-you-earn .ftf-metric-icon-frame {
    margin-inline: 0 !important;
  }

  #how-you-earn .ftf-metric-icon {
    width: 78px;
    height: 78px;
  }

  #how-you-earn .flex.flex-wrap > .flex.flex-col.items-start > p:first-of-type {
    margin-top: 12px !important;
    font-size: clamp(32px, 9vw, 40px) !important;
    line-height: 1.05 !important;
  }

  #how-you-earn .flex.flex-wrap > .flex.flex-col.items-start > p:last-of-type {
    max-width: 100% !important;
    margin-top: 10px !important;
    font-size: clamp(15px, 3.8vw, 16px) !important;
    line-height: 1.5 !important;
    text-wrap: balance;
  }

  #how-you-earn .flex.flex-wrap:has(> .flex.flex-col.items-start)
    > .flex.flex-col.items-start:nth-child(3) {
    grid-column: 1 / -1;
    width: 100%;
  }

  #how-you-earn .flex.flex-wrap > .flex.flex-col.items-start:nth-child(3) > p:last-of-type {
    max-width: 30ch !important;
  }
}

/* Compensate for the original site's whole-page zoom on small phones. */
@media (max-width: 360px) {
  #how-you-earn .flex.flex-wrap:has(> .flex.flex-col.items-start)
    > .flex.flex-col.items-start {
    padding-inline: 6px;
  }
  #how-you-earn .flex.flex-wrap > .flex.flex-col.items-start > p:last-of-type {
    font-size: 17px !important;
  }
}

/* Give the three action checklist rows slightly more presence as a unit. */
#how-you-earn ul:has(> li.ftf-glass-edge) {
  width: 100%;
  min-width: 0;
}

@media (min-width: 1280px) {
  #how-you-earn ul:has(> li.ftf-glass-edge) {
    width: 107.5%;
    max-width: none;
  }
}

#how-you-earn ul:has(> li.ftf-glass-edge) > li.ftf-glass-edge {
  padding: calc(var(--check-py) + 1px) calc(var(--check-px) + 1.25px) !important;
  gap: calc(var(--check-gap) + 1px) !important;
  border-radius: calc(var(--check-r) + 1px) !important;
  font-size: calc(var(--text-micro) + 1px) !important;
  line-height: calc(var(--lh-micro) + 1.5px) !important;
}

#how-you-earn ul:has(> li.ftf-glass-edge) > li.ftf-glass-edge img {
  width: calc(var(--check-box) + 1.75px) !important;
  height: calc(var(--check-box) + 1.75px) !important;
}
