body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.game-container {
  background: #ffffff1a;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px 40px;
  text-align: center;
  width: 360px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-weight: 500;
}

.board {
  display: grid;
  grid-template-columns: repeat(4, 70px);
  grid-gap: 10px;
  justify-content: center;
  margin: 20px auto;
}

.tile {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background-color: #64b5f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.tile:hover {
  transform: scale(1.1);
  background-color: #42a5f5;
}

.tile.matched {
  background-color: #66bb6a;
  color: #fff;
  cursor: default;
  transform: scale(1.05);
}

.controls {
  margin-top: 10px;
}

button {
  background-color: #1565c0;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

button:hover {
  background-color: #0d47a1;
}

.game-over {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
}

.game-over h2 {
  margin-bottom: 20px;
}
