body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f9f9f9, #e3f2fd);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  color: #333;
}

h1 {
  margin-bottom: 20px;
  font-size: 2.5rem;
  color: #1976d2;
}

#game-board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 10px;
  margin-bottom: 20px;
}

.cell {
  width: 100px;
  height: 100px;
  background: #ffffff;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background 0.3s, transform 0.2s;
}

.cell:hover {
  background: #e3f2fd;
  transform: scale(1.05);
}

.controls {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  background: #1976d2;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: #1565c0;
  transform: translateY(-2px);
}

button:active {
  background: #0d47a1;
  transform: translateY(0);
}

#status {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #444;
}

#scoreboard {
  font-size: 1rem;
  margin-top: 10px;
  color: #1976d2;
}

.turn-box {
  display: flex;
  gap: 20px;
  margin: 10px 0;
}

.turn-box div {
  padding: 8px 20px;
  border-radius: 20px;
  background: #ccc;
  color: #fff;
  font-weight: bold;
  transition: 0.3s;
}

.turn-box .active {
  background: #1976d2;
}

.win-animation {
  animation: pop 0.5s ease-in-out infinite alternate;
}

@keyframes pop {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}
