body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  text-align: center;
  transition: 0.3s;
}

body.light {
  background: #f4f4f4;
  color: #222;
}

body.dark {
  background: #121212;
  color: #eee;
}

header {
  padding: 15px;
}

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

.cell {
  height: 110px;
  font-size: 2.8rem;
  background: white;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}

body.dark .cell {
  background: #1f1f1f;
}

.cell:hover {
  transform: scale(1.05);
}

.cell.win {
  background: #6ddf6d !important;
  animation: pulse 0.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.top-controls,
.bottom-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px;
  flex-wrap: wrap;
}

button, select {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

