@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Press Start 2P', monospace;
  background: radial-gradient(circle, #580876, #1c5899, #127186);
  color: #fff;
  overflow-y: auto;
  overflow-x: auto;
  text-align: center;
}

#tsparticles {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
}

.game-container {
  position: relative;
  z-index: 2;
  padding: 40px;
}

h1 {
  font-size: 24px;
  color: #0ff;
  text-shadow: 0 0 10px #0ff;
}

.instructions {
  margin: 10px 0;
  color: #ccc;
  font-size: 12px;
}

.level-select {
  margin: 20px;
}

.level-select select {
  padding: 8px;
  font-size: 12px;
  font-family: inherit;
  border-radius: 6px;
  border: none;
}

.grid {
  display: grid;
  gap: 15px;
  justify-content: center;
  margin: 30px auto;
  max-width: 600px;
}

.grid.easy {
  grid-template-columns: repeat(3, 80px);
}

.grid.medium {
  grid-template-columns: repeat(4, 70px);
}

.grid.hard {
  grid-template-columns: repeat(5, 60px);
}

.number {
  background-color: #1a002b;
  border: 2px solid cyan;
  border-radius: 10px;
  box-shadow: 0 0 10px cyan;
  color: white;
  font-size: 16px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.number:hover {
  transform: scale(1.1);
  background-color: #00ffff;
  color: #140033;
}

.hidden {
  display: none;
}

#win-message {
  margin-top: 20px;
  animation: fadeIn 1s ease-in-out;
}

#win-message button {
  background: #00f7ff;
  color: #000;
  font-family: 'Press Start 2P', monospace;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 10px #00f7ff;
  cursor: pointer;
}

#restart-btn {
  background: #ff00ff;
  box-shadow: 0 0 10px #ff00ff;
  color: white;
  font-family: 'Press Start 2P', monospace;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
