/* Saga Member V40 — a memory-only Reward target with honest Points progress. */
.v40-reward-target {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  margin: 14px 12px 18px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgb(42 29 24 / 18%);
  border-radius: 24px;
  background: #2b1b16;
  box-shadow: 0 12px 28px rgb(42 29 24 / 12%);
  color: #fffaf0;
}

.v40-reward-target::after {
  position: absolute;
  right: -28px;
  bottom: -32px;
  width: 104px;
  height: 104px;
  border: 1px solid rgb(201 239 114 / 28%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.v40-reward-target-mark {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgb(201 239 114 / 48%);
  border-radius: 50%;
  background: #c9ef72;
  color: #2b1b16;
}

.v40-reward-target-mark i {
  position: absolute;
  right: -2px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid #2b1b16;
  border-radius: 50%;
  background: #fffaf0;
}

.v40-reward-target-copy {
  min-width: 0;
}

.v40-reward-target-copy .eyebrow {
  margin: 1px 0 5px;
  color: #c9ef72;
  font-size: 0.6875rem;
}

.v40-reward-target-copy h2 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(1.2rem, 5.5vw, 1.45rem);
  line-height: 1.08;
}

.v40-reward-target-copy h2:focus-visible {
  outline: 0;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.v40-reward-target-copy > p:last-child {
  margin: 7px 0 0;
  color: #e7ddd4;
  font-size: 0.78rem;
  line-height: 1.45;
}

.v40-reward-meter {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border: 1px solid rgb(255 250 240 / 25%);
  border-radius: 999px;
  background: #4a3830;
}

.v40-reward-meter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #c9ef72;
  transform-origin: left center;
}

.v40-reward-target-balance {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid rgb(255 250 240 / 15%);
}

.v40-reward-target-balance span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 0;
}

.v40-reward-target-balance span + span {
  padding-left: 12px;
  border-left: 1px solid rgb(255 250 240 / 15%);
}

.v40-reward-target-balance small {
  color: #c8bbb1;
  font-size: 0.67rem;
}

.v40-reward-target-balance strong {
  color: #fffaf0;
  font-size: 0.84rem;
}

.member-view .v40-reward-target-note {
  grid-column: 1 / -1;
  margin: -1px 0 0;
  color: #f0e7df;
  font-size: 0.72rem;
  line-height: 1.45;
}

.v40-reward-target-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 8px;
}

.v40-reward-target-actions .button {
  min-height: 46px;
  padding-inline: 12px;
}

.v40-reward-target-actions .button:first-child {
  border-color: #c9ef72;
  background: #c9ef72;
  color: #2b1b16;
}

.v40-reward-target-actions .button.secondary {
  border-color: rgb(255 250 240 / 36%);
  background: transparent;
  color: #fffaf0;
}

.v40-target-action {
  min-height: 44px;
}

.v40-target-active {
  border-color: #365f2f;
  background: #e8f7c8;
  color: #2d522c;
}

.v41-home-reward-card {
  gap: 10px;
  border-color: rgb(201 239 114 / 30%);
  background-position: right -18px top -22px;
  box-shadow: 0 16px 34px rgb(42 29 24 / 16%);
}

.v41-home-reward-route {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
}

.v41-home-reward-route span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid rgb(255 250 240 / 22%);
  border-radius: 50%;
  background: rgb(255 250 240 / 8%);
  color: #fffaf0;
}

.v41-home-reward-route span:first-child {
  border-color: #c9ef72;
  background: #c9ef72;
  color: #2b1b16;
}

.v41-home-reward-route i {
  width: 28px;
  height: 1px;
  background: rgb(255 250 240 / 32%);
}

.v41-home-reward-card h3 {
  max-width: 13ch;
}

.v41-home-reward-meter {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 1px solid rgb(255 250 240 / 20%);
  border-radius: 999px;
  background: rgb(255 250 240 / 10%);
}

.v41-home-reward-meter span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  border-radius: inherit;
  background: #c9ef72;
}

.v41-home-reward-card footer button {
  min-width: 44px;
  justify-content: flex-end;
}

@media (max-width: 340px) {
  .v41-home-reward-card footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .v41-home-reward-card footer button {
    justify-content: flex-start;
  }
}

@media (max-width: 340px) {
  .v40-reward-target-actions {
    grid-template-columns: 1fr;
  }
}

@media (forced-colors: active) {
  .v40-reward-target,
  .v40-reward-target-mark,
  .v40-reward-meter,
  .v40-reward-target-actions .button {
    border: 1px solid CanvasText;
    forced-color-adjust: auto;
  }

  .v40-reward-meter span {
    background: Highlight;
  }

  .v41-home-reward-card,
  .v41-home-reward-route span,
  .v41-home-reward-meter {
    border: 1px solid CanvasText;
    forced-color-adjust: auto;
  }

  .v41-home-reward-meter span {
    background: Highlight;
  }
}
