* { box-sizing: border-box; }

[hidden] { display: none !important; }

.kuku-rank-page {
  margin: 0;
  min-height: 100vh;
  background: #10171c;
  color: #f7fafc;
  font-family: sans-serif;
}

.kuku-rank-page__main {
  width: min(48rem, calc(100% - 2rem));
  margin-inline: auto;
  padding: 2rem 0 4rem;
}

.kuku-rank-page h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.kuku-rank-page__description {
  margin: 0 0 1.5rem;
  color: #b8c7d1;
}

.kuku-rank-page__actions {
  margin: 0 0 1.5rem;
}

.kuku-rank-page__challenge-button {
  display: inline-block;
  border: .12rem solid #66f08f;
  border-radius: 1rem;
  padding: .7em 1em;
  background: linear-gradient(180deg, #258c4c, #126532);
  color: #f4fff7;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  box-shadow: 0 0 .4rem #38df70, inset 0 .08em .12em #75f49d;
  transition: transform 100ms ease, box-shadow 100ms ease;
}

.kuku-rank-page__challenge-button:hover,
.kuku-rank-page__challenge-button:focus-visible {
  outline: none;
  transform: scale(1.04);
  box-shadow: 0 0 .75rem #5dff91, inset 0 .08em .12em #9affb8;
}

.kuku-rank-page__challenge-button:active {
  transform: scale(.97);
}

.kuku-rank-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid #52636f;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: .8rem;
  background: #182127;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
}

.kuku-rank-table th,
.kuku-rank-table td {
  border-bottom: 1px solid #394852;
  padding: .7rem 1rem;
  text-align: left;
}

.kuku-rank-table th:last-child,
.kuku-rank-table td:last-child {
  width: 9rem;
  text-align: right;
}

.kuku-rank-table tbody tr:nth-child(even) {
  background: #202c34;
}

.kuku-rank-table tbody tr:last-child td {
  border-bottom: 0;
}

.kuku-rank-table tr.is-hard {
  background: #4b111a;
  color: #ffb6bc;
  font-weight: 800;
  text-shadow: 0 0 .45rem #d00024;
}

.kuku-rank-table tbody tr.is-hard:nth-child(even) {
  background: #5c1520;
}

.kuku-rank-page__error {
  border: 2px solid #ff4d5b;
  border-radius: .75rem;
  padding: 1rem;
  color: #ffc2c7;
  font-weight: 700;
}

@media (max-width: 30rem) {
  .kuku-rank-table th,
  .kuku-rank-table td {
    padding: .6rem .75rem;
  }

  .kuku-rank-table th:last-child,
  .kuku-rank-table td:last-child {
    width: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kuku-rank-page__challenge-button {
    transition: none;
  }
}
