.home-review-badge {
  --review-diameter: 162px;
  position: absolute;
  z-index: 5;
  inset: 118px max(4vw, 28px) auto auto;
  box-sizing: border-box;
  width: var(--review-diameter);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .3rem;
  margin: 0;
  border: 1px solid #ffffff73;
  border-radius: 50%;
  background: var(--accent-button);
  box-shadow: 0 5px 20px #142c3826;
  color: #fff;
  text-align: center;
}

.home-review-badge[hidden] {
  display: none;
}

.home-review-stars {
  font: .67rem/1 var(--sans);
  letter-spacing: .14em;
}

.home-review-badge h2 {
  max-width: calc(var(--review-diameter) - 23px);
  margin: 0;
  color: inherit;
  font: 500 .95rem/1.14 var(--serif);
}

.home-review-scores {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: .4rem;
  row-gap: .12rem;
  padding: 0;
  margin: .12rem 0 0;
  list-style: none;
  font: 500 .64rem/1.15 var(--sans);
  white-space: nowrap;
}

.home-review-scores li {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: baseline;
}

.home-review-scores li > :first-child {
  text-align: left;
}

.home-review-scores a {
  color: inherit;
  text-decoration-color: #ffffffa6;
  text-underline-offset: .2em;
}

.home-review-scores strong {
  font-size: 1.18rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 1280px) {
  .home-review-badge {
    --review-diameter: 150px;
    top: 174px;
    right: 24px;
  }
}

@media (max-width: 1024px) {
  .home-review-badge {
    --review-diameter: 142px;
  }
}

@media (max-width: 760px) {
  .home-review-badge {
    --review-diameter: 130px;
    top: 140px;
    right: 18px;
    gap: .23rem;
    padding-bottom: 10px;
  }

  .home-review-scores {
    column-gap: .5rem;
  }

  .home-review-scores li {
    grid-column: auto;
    grid-template-columns: auto;
    justify-items: center;
  }
}

@media (max-width: 760px), (min-width: 761px) and (max-width: 800px) and (max-height: 650px) {
  .home-review-badge h2 {
    font-size: .75rem;
  }

  .home-review-scores {
    font-size: .6rem;
  }

  .home-review-scores strong {
    font-size: 1.02rem;
  }
}

@media (min-width: 761px) and (max-width: 1280px) and (max-height: 650px) {
  .home-review-badge {
    top: auto;
    bottom: 70px;
  }
}

@media (max-width: 480px) and (max-height: 740px) {
  .hero:has(.home-review-badge:not([hidden])) .hero-copy {
    padding-top: 280px;
  }
}

@media (min-width: 761px) and (max-width: 800px) and (max-height: 650px) {
  .hero:has(.home-review-badge:not([hidden])) {
    min-height: max(100svh, 565px);
  }

  .home-review-badge {
    --review-diameter: 116px;
    right: 14px;
    bottom: 16px;
  }
}
