* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #000000, #000000);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  
}


h1 {
  margin-bottom: 20px;
  font-size: 2.5rem;
  color: #2c3e50;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}


.scoreboard {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  font-size: 18px;
}

.score {
  font-weight: bold;
  color: #007bff;
}


.game__board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  gap: 15px;
  margin-bottom: 25px;
  perspective: 800px; 
}

.game__tile {
  width: 100px;
  height: 100px;
  font-size: 36px;
  font-weight: bold;
  color: #333;
  background-color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game__tile:hover {
  transform: translateY(-5px) rotateX(5deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


.btn-reset {
  font-size: 16px;
  background-color: #6b447b52;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease;
}

.btn-reset:hover {
  background-color: #ffffff;
}


@media (max-width: 500px) {
  .game__board {
    grid-template-columns: repeat(3, 70px);
    gap: 10px;
  }

  .game__tile {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
