*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

ul {
  padding: 0;
  list-style: "";
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: "Overpass", sans-serif;
  background-color: #131518;
}

body::before {
  content: "";
  flex: 1 0 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.card {
  width: min(100% - 3rem, 20.4375rem);
  min-height: 22.5rem;
  margin-inline: auto;
  display: grid;
  align-items: center;
  padding: 1.5rem;
  border-radius: 0.9375rem;
  background: radial-gradient(ellipse 100% 100% at 50% 0, #232a34, #181e27);
}
@media (min-width: 48em) {
  .card {
    width: 25.75rem;
    min-height: 26rem;
    padding: 2rem 1.90625rem;
    border-radius: 1.875rem;
  }
}

.card__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
@media (min-width: 48em) {
  .card__title {
    font-size: 1.75rem;
  }
}

.card__text {
  font-size: 0.875rem;
  line-height: 1.5714;
  color: #969fad;
}
@media (min-width: 48em) {
  .card__text {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
}

.rating {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.badge {
  width: 2.5rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-block-end: 0.5rem;
  border-radius: 50%;
  background-color: #262e38;
}
.badge img {
  width: 0.875rem;
  height: auto;
}
@media (min-width: 48em) {
  .badge {
    width: 3rem;
    margin-block-end: 1rem;
  }
  .badge img {
    width: 1.0625rem;
  }
}

.rating__options {
  --size: 2.625rem;
  --gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}
@media (min-width: 48em) {
  .rating__options {
    --size: 3.1875rem;
    --gap: 1.5rem;
  }
}
.rating__options li {
  width: max(2rem, min(var(--size), (100% - 4 * var(--gap)) / 5));
}

.rating__option {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: #262e38;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1336em;
  padding-inline-start: 0.1336em;
  color: #969fad;
  cursor: pointer;
}
@media (min-width: 48em) {
  .rating__option {
    font-size: 1rem;
    letter-spacing: 0.0125em;
    padding-inline-start: 0.0125em;
  }
}

.button {
  min-height: 2.8125rem;
  margin-block-start: 0.5rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 1.40625rem;
  background-color: #fc7614;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1336em;
  text-transform: uppercase;
  color: #131518;
}
@media (min-width: 48em) {
  .button {
    margin-block-start: 1rem;
  }
}

@media (hover: hover) {
  .rating__option:hover {
    background-color: #fc7614;
    color: #262e38;
  }
  .button:hover {
    background-color: #fff;
  }
}
:checked + .rating__option {
  background-color: #fff;
  color: #262e38;
}

:focus + .rating__option,
.button:focus-visible {
  outline: 2px solid #fc7614;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .rating__option,
  .button {
    transition: background-color 0.2s, color 0.2s;
  }
}
.thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.thanks .card__title {
  margin-block-end: -0.5rem;
}
@media (min-width: 48em) {
  .thanks {
    gap: 2rem;
    width: min(100%, 21.25rem);
    margin-inline: auto;
  }
  .thanks .card__title {
    margin-block-end: -1rem;
  }
}

.thanks__illustration {
  width: 9rem;
  height: auto;
}
@media (min-width: 48em) {
  .thanks__illustration {
    width: 10.125rem;
  }
}

.thanks__pill {
  padding: 0.25rem 0.75rem;
  border-radius: 1.40625rem;
  background-color: #262e38;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: #fc7614;
}
@media (min-width: 48em) {
  .thanks__pill {
    padding-inline: 1.1875rem;
    font-size: 0.9375rem;
  }
}

.attribution {
  flex: 1 0 0;
  display: grid;
  align-content: end;
  font-size: 0.6875rem;
  line-height: 1.5;
  text-align: center;
  color: #969fad;
}
.attribution p {
  padding: 2rem 1rem 1rem;
}
.attribution a {
  color: #fff;
  text-underline-offset: 2px;
}
