.game-intro {
  max-width: 500px;
  margin: 20px auto 0;
  text-align: center;
  font-family: "Nunito", sans-serif;
}
.game-intro h1 {
  font-family: "Fredoka One", cursive;
  color: #4f46e5;
  font-size: 2.5rem;
}
.game-container {
  max-width: 600px;
  margin: 20px auto 40px;
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  min-height: 400px;
}
.stats {
  display: flex;
  justify-content: center;
  font-family: "Fredoka One", cursive;
  font-size: 1.4rem;
  color: #4f46e5;
  margin-bottom: 20px;
}
.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 20px auto;
}
.letter-tile {
  aspect-ratio: 1/1;
  background: #f3f4f6;
  border: 3px solid #e5e7eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fredoka One", cursive;
  font-size: 1.8rem;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.letter-tile:hover {
  background: #eef2ff;
  border-color: #4f46e5;
  transform: scale(1.05);
}
.letter-tile.selected {
  background: #4f46e5;
  color: white;
  border-color: #312e81;
}
.letter-tile.correct {
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}
#restart-btn,
#game-over button,
#start-menu button {
  background: #4f46e5;
  color: #ffffff;
  border: 2px solid #4f46e5;
  padding: 10px 25px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: "Fredoka One", cursive;
}
#start-menu,
#game-over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border-radius: 20px;
}
#new-record-badge {
  background: #9333ea;
  color: white;
  padding: 8px 20px;
  border-radius: 12px;
  font-family: "Fredoka One", cursive;
  margin-bottom: 15px;
}
.reset-scores-container {
  margin-top: 25px;
  border-top: 1px dashed #e5e7eb;
  padding-top: 15px;
}
#reset-alphabet-btn {
  background: transparent;
  color: #111827;
  border: 1px solid #111827;
  padding: 5px 15px;
  font-size: 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
}
.how-to-play {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  font-family: "Nunito", sans-serif;
}
.instructions-grid {
  display: grid;
  gap: 10px;
}
.step {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background: #f9fafb;
  border-radius: 12px;
  text-align: left;
}
.step-number {
  background: #4f46e5;
  color: white;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: "Fredoka One", cursive;
  flex-shrink: 0;
}
.hidden {
  display: none !important;
}
@media (max-width: 500px) {
  .puzzle-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .letter-tile {
    font-size: 1.4rem;
  }
}
