:root {
  --countdown: 'Sale Ends In:';
}

main {
  padding-block-end: 8rem;
}

#watchModal .modal-close {
  font-size: 36px;
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#watchModal .modal-close::after {
  content: 'Fechar';
  font-size: 0.5em;
  text-transform: uppercase;
  font-weight: bold;
}

#watchModal iframe {
  display: block;
  aspect-ratio: 16/9;
  width: 100%;
  height: 100%;
}

@media (height <= 540px) {
  #watchModal {
    width: 67%;
  }
}

.attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: flex-start;
  margin-block: 2rem;
}

.attributes button {
  width: 6.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.attributes button span {
  text-wrap: balance;
}

.tooltips [popover] {
  padding: 1em;
}

.tooltips [popover] *:not(:last-child) {
  margin-block-end: 0.5em;
}

.rewards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.rewards figure {
  max-width: 100%;
}

.rewards figcaption,
.rewards img {
  margin-inline: auto;
}

.rewards figcaption {
  text-align: center;
}

main section:first-of-type {
  margin-block-start: 4rem;
}

main section:not(:last-of-type) {
  margin-block-end: 4rem;
}

main section h2,
main section h3,
main section p {
  text-align: center;
}

main section h2,
main section h3 {
  margin-block: 1em;
}

main section h2 + .heading,
main section h3 + .heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


main section p {
  font-size: 18px;
}

main section figcaption,
main section span {
  margin-block-start: 0.5rem;
  font-size: small;
}

#top-ui,
#top-ui .countdown {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

#top-ui .countdown::before {
  flex: 1 0 100%;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.5em;
}

#top-ui .countdown span::after {
  text-transform: uppercase;
  font-size: 0.5em;
  font-weight: bold;
}

button.cta {
  padding: 0.5em;
  font-size: 1.5rem;
}

@media (width <= 600px) {
  button.cta,
  a:has(button.cta) {
    width: 100%;
  }
}

header picture {
  position: relative;
  width: 100%;
}

header picture img {
  width: 100%;
}

[debug] {
  header picture,
  .attributes button {
    outline: 1px solid gray;
  }
  .attributes button img,
  .rewards img,
  button.cta {
    outline: 1px solid red;
  }
  .tooltips [popover] {
    outline: 1px solid black;
  }
}