.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: 450px;
}
.stats {
  display: flex;
  justify-content: center;
  font-family: "Fredoka One", cursive;
  font-size: 1.4rem;
  color: #4f46e5;
  margin-bottom: 20px;
}
#counting-area {
  background: #f9fafb;
  border: 3px dashed #e5e7eb;
  border-radius: 15px;
  margin: 20px 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.object-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  font-size: 3.5rem;
}
.options-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.option-btn {
  background: #ffffff;
  border: 3px solid #4f46e5;
  color: #4f46e5;
  padding: 15px;
  font-family: "Fredoka One", cursive;
  font-size: 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.option-btn:hover {
  background: #4f46e5;
  color: white;
  transform: translateY(-3px);
}
#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;
  /* padding: 20px; */
}
#new-record-badge {
  background: #9333ea;
  color: white;
  padding: 8px 20px;
  border-radius: 12px;
  font-family: "Fredoka One", cursive;
  margin-bottom: 15px;
}
button#start-btn,
#game-over button,
#start-menu button {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: "Fredoka One", cursive;
  margin-top: 15px;
}
.reset-scores-container {
  margin-top: 25px;
  border-top: 1px dashed #e5e7eb;
  padding-top: 15px;
}
#reset-counting-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;
  transition: all 0.2s;
}
#reset-counting-btn:hover {
  color: #ef4444;
  border-color: #fca5a5;
  background: #fef2f2;
}
.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;
}
