/* The rewards on the score screen and the unlock gallery: big gold stars,
   the streak line, the new-unlock banner and the grid of blasters and skins. */

.rewards__stars {
  margin: 0;
  font-size: var(--font-size-title);
  line-height: 1;
  letter-spacing: var(--space-1);
  color: var(--color-accent);
}

.rewards__line {
  margin: 0;
  font-size: var(--font-size-body);
}

.rewards__unlock {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--color-success);
  font-size: var(--font-size-body);
  font-weight: bold;
}

.rewards__unlock[hidden] {
  display: none;
}

.rewards__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.rewards-gallery {
  justify-content: flex-start;
  overflow-y: auto;
  background: var(--color-text);
}

.rewards__heading {
  margin: 0;
  font-size: var(--font-size-large);
}

.rewards__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--space-2);
  width: 100%;
  max-width: 40rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rewards__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-body);
}

.rewards__item[data-unlocked="false"] .rewards__image {
  filter: grayscale(1);
  opacity: 0.4;
}

.rewards__image {
  width: 4rem;
  height: 4rem;
}

.rewards__name {
  max-width: 100%;
  font-weight: bold;
  line-height: 1.1;
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (max-height: 480px) {
  .rewards__stars {
    font-size: var(--font-size-large);
  }

  .game__overlay[data-game-end] {
    justify-content: flex-start;
    overflow-y: auto;
  }
}
