section#ganhadores {
  display: grid;
  row-gap: 2rem;
  justify-content: center;
  align-items: center;
  justify-items: center;
}

menu.ganhadores--modalidade {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

menu.ganhadores--modalidade button:not(.active) {
  opacity: 0.4;
  background-color: #1d3176;
  color: #ffda00;
}

menu.ganhadores--modalidade button:not(.active):hover {
  opacity: 1;
  background-color: #eac700;
  color: #1d3175;
}

.ganhadores--container {
  display: none;
}

section:has([data-ganhadores="kit"].active) .ganhadores--container[data-ganhadores="kit"],
section:has([data-ganhadores="sorteio"].active) .ganhadores--container[data-ganhadores="sorteio"] {
  display: grid;
  justify-items: center;
}

.table .table--header {
  display: none;
}

tr.table--content__default.loading td span {
  color: #ffda00;
}

tr.table--content__default span {
  color: #1d3175;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

section#ganhadores .ganhadores--container p.descricao {
    font-weight: bold;
    background-color: #1d3175;
    color: #fff;
    text-transform: lowercase;
    padding-block: 0.8rem;
    padding-inline: 2rem;
    border-radius: 1.4rem;
    font-size: 1.4rem;
    text-align: center;
    width: fit-content;
    margin-top: -0.8rem;
    z-index: -1;
  }

@media screen and (max-width: 768px) {
  section#ganhadores {
    padding-block: 2rem 4rem;
  }

  section#ganhadores .title-page {
    max-width: 80vw;
    text-wrap: pretty;
  }

  menu.ganhadores--modalidade {
    margin-inline: 4rem;
  }

  menu.ganhadores--modalidade button {
    max-width: 320px;
    width: 100%;
  }

  table {
    width: 80vw;
    max-width: 500px;
  }

  tbody tr {
    display: grid;
    margin-block: 2rem;
    padding-block: 2rem;
    border-radius: 10px;
    background-color: #ffda00;
  }

  tbody tr td {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-block: 0.7rem;
    word-wrap: break-word;
    text-align: center;
    color: #1d3175;
    font-weight: bold;
    font-family: "Roboto", sans-serif;
  }

  tbody tr td::before {
    content: attr(data-header);
    font-weight: bold;
    font-family: "All Round Gothic", sans-serif;
    font-size: 1.8rem;
  }

  tbody tr td:first-of-type {
    border-top-left-radius: 0.8rem;
    border-top-right-radius: 0.8rem;
  }

  tbody tr td:last-of-type {
    border-bottom-left-radius: 0.8rem;
    border-bottom-right-radius: 0.8rem;
  }

  h1.section-title {
    width: 80vw;
  }

  tr.table--content__default.loading {
    height: 380px;
    align-items: center;
    font-size: 2rem;
    padding-inline: 4rem;
    position: relative;
  }

  tr.table--content__default.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(218, 218, 218, 0.5) 25%, rgba(233, 233, 233, 0.5) 50%, rgba(222, 222, 222, 0.5) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 2s infinite linear;
    z-index: 1;
    border-radius: 0.8rem;
  }
}

@media screen and (min-width: 768px) {
  section#ganhadores {
    padding-block: 4rem;
    margin-inline: 4rem;
  }
  .table {
    border-spacing: 0 1rem;
    border-collapse: separate;
    max-width: 1000px;
    width: 100%;
  }

  .table--content tr {
    background-color: #ffda00;
    color: #1d3176;
    margin-bottom: 2rem;
  }
  tbody tr {
    align-items: center;
  }
  thead tr th,
  tbody tr td {
    padding: 2rem;
  }
  .table .table--content td {
    text-align: left;
    padding-inline: 4rem;
    font-family: "All Round Gothic", sans-serif;
    font-size: 2.4rem;
  }
  .table .table--content td[data-header] {
    max-width: 250px;
  }
  .table td[data-header]::before {
    content: attr(data-header);
    margin-bottom: 1rem;
    font-family: "Roboto", sans-serif;
    display: block;
    font-size: 1.6rem;
  }
  tr th:first-child,
  tr td:first-child {
    border-radius: 1rem 0 0 1rem;
  }

  tr th:last-child,
  tr td:last-child {
    border-radius: 0 1rem 1rem 0;
  }

  .table tr.table--content__default td {
    border-radius: 1rem;
    text-align: center;
  }

  tr.table--content__default.loading td span {
    position: relative;
  }

  tr.table--content__default.loading td span::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(90deg, rgba(218, 218, 218, 0.75) 25%, rgba(233, 233, 233, 0.75) 50%, rgba(222, 222, 222, 0.75) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 2s infinite linear;
    z-index: 1;
  }

  .ganhadores--container img {
    margin-top: 4rem;
  }

  .ganhadores--container img.premio-final {
    max-width: 440px;
    width: 100%;
  }
}
