* {
  margin: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(#1b2a5c, #0a0f26);
  font-family: Georgia, serif;
  color: #fff3c4;
  text-align: center;
}

/* Text sits in the middle; taps pass through it to the stars */
main {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 20px;
  pointer-events: none;
}

#msg {
  max-width: 320px;
  line-height: 1.5;
  min-height: 60px;
}

/* Each tappable star */
.star {
  position: absolute;
  background: none;
  border: 0;
  font-size: 2rem;
  cursor: pointer;
  animation: twinkle 2s infinite alternate;
}

/* Added by JS once a star has been tapped */
.star.on {
  filter: drop-shadow(0 0 8px gold);
  animation: none;
}

@keyframes twinkle {
  to {
    opacity: 0.4;
    transform: scale(0.8);
  }
}