/* Add these new/updated styles to your existing CSS */

.settings-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.setting-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.setting-group label {
  font-size: 0.8rem;
  font-weight: bold;
  color: #666;
  text-transform: uppercase;
}

.active-turn {
  position: relative;
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.active-turn::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
}

/* Ensure buttons in mode-selector look consistent */
.mode-selector button {
  font-size: 0.7rem;
  padding: 5px 12px;
}

.score-board {
  display: flex;
  gap: 20px;
  background: white;
  padding: 15px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 1.2rem;
}

.score-item { min-width: 60px; text-align: center; }

.mode-selector { margin-bottom: 15px; display: flex; gap: 10px; }

.mode-selector button {
  padding: 8px 16px;
  border: 2px solid #007bff;
  background: white;
  color: #007bff;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

.mode-selector button.active { background: #007bff; color: white; }

.controls { display: flex; gap: 10px; }

.clear-scores { background-color: #6c757d !important; }

/* Keep your existing .game, .square, .board-grid, etc. from before */
.game {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.status-badge {
  margin-bottom: 20px;
  padding: 10px 20px;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  font-size: 1.5rem;
  font-weight: bold;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 10px;
  background: #343a40;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.square {
  width: 100px;
  height: 100px;
  background: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2.5rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
}

.square:hover {
  background: #e9ecef;
  transform: scale(1.02);
}

.square.winner {
  background-color: #28a745 !important;
  color: white !important;
  animation: winPulse 1s infinite;
}

.x-text { color: #2196F3; }
.o-text { color: #f44336; }

@keyframes winPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.reset-btn {
  margin-top: 30px;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  background: #007bff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.reset-btn:hover { background: #0056b3; }