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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #1a1a2e;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #eee;
}

.container {
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #e94560;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.controls {
  margin-bottom: 20px;
}

.controls label {
  font-size: 1rem;
  margin-right: 8px;
}

.controls select {
  padding: 8px 16px;
  font-size: 1rem;
  border: 2px solid #e94560;
  border-radius: 8px;
  background: #16213e;
  color: #eee;
  cursor: pointer;
  outline: none;
}

.controls select:focus {
  border-color: #0f3460;
  box-shadow: 0 0 8px #e94560;
}

.status {
  font-size: 1.4rem;
  margin-bottom: 20px;
  min-height: 40px;
  line-height: 40px;
  color: #ccc;
}

.status.winner {
  color: #e94560;
  font-weight: bold;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 120px);
  grid-template-rows: repeat(3, 120px);
  gap: 6px;
  margin: 0 auto 30px;
  width: fit-content;
}

.cell {
  width: 120px;
  height: 120px;
  background: #16213e;
  border: 2px solid #0f3460;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  user-select: none;
}

.cell:hover {
  background: #1a2744;
  transform: scale(1.04);
}

.cell.x {
  color: #e94560;
}

.cell.o {
  color: #0f9b8e;
}

.cell.win {
  background: #0f3460;
  box-shadow: 0 0 16px #e94560;
  transform: scale(1.08);
}

.cell.disabled {
  cursor: default;
  pointer-events: none;
}

.scoreboard {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
}

.score {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-label {
  font-size: 0.9rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-value {
  font-size: 2rem;
  font-weight: bold;
  color: #e94560;
}

.reset-btn {
  padding: 12px 32px;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  background: #e94560;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 1px;
}

.reset-btn:hover {
  background: #c73650;
  transform: scale(1.05);
}
