.number-match-container {
  padding: 1rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NEW: Regras / How to Play
   ───────────────────────────────────────────────────────────────────────────── */
.rules {
  background-color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.rules h2 {
  font-size: 1.6rem;
  color: #002847;
  margin-bottom: 0.75rem;
}

.rules ul {
  list-style-type: disc;
  padding-left: 1.25rem;
}

.rules li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #333;
}


.number-match-container h1 {
  font-size: 1.8rem;
  text-align: center;
  color: #002847;
  margin-bottom: 0.75rem;
}

.info-panel {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
}

.board {
  display: grid;
  gap: 8px;
  background-color: #e8eaf6;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.cell {
  background-color: #fff;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #3f51b5;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
  aspect-ratio: 1 / 1;
  position: relative;
}

.cell span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cell.selected {
  background-color: #c5cae9;
}

.cell.removed {
  background-color: transparent;
  pointer-events: none;
}

#restart-button {
  display: block;
  margin: 0 auto;
  padding: 8px 16px;
  border: none;
  background-color: #3f51b5;
  color: #fff;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

#restart-button:hover {
  background-color: #303f9f;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NEW: About Number Match
   ───────────────────────────────────────────────────────────────────────────── */
.game-story {
  background-color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 1.5rem;
}

.game-story h2 {
  font-size: 1.6rem;
  color: #002847;
  margin-bottom: 0.75rem;
}

.game-story p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

@media (max-width: 768px) {
  .number-match-container {
    padding: 0.5rem;
  }

  .rules,
  .game-story {
    padding: 0.75rem 1rem;
  }

  .info-panel {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  #restart-button {
    width: 100%;
  }
}