/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #4facfe, #00f2fe, #ff6600);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
  color: #fff;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.game-container {
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px #ff6600, 0 0 20px #00f2fe;
}

/* Mode Buttons */
.mode-buttons {
  margin-bottom: 1.5rem;
}

button {
  margin: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #4facfe, #00f2fe, #ff6600);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

button::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, #4facfe, #00f2fe, #ff6600);
  filter: blur(15px);
  opacity: 0;
  border-radius: 12px;
  z-index: -1;
  transition: opacity 0.4s ease-in-out;
}

button:hover::before {
  opacity: 1;
}

button:hover {
  transform: scale(1.05);
}

/* Board */
.board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 8px;
  margin: 20px auto;
}

.cell {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}

.cell:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.cell.X {
  color: #ff6600;
  text-shadow: 0 0 8px #ff9933, 0 0 15px #ff3300;
}

.cell.O {
  color: #00f2fe;
  text-shadow: 0 0 8px #4facfe, 0 0 15px #008cff;
}

.cell.win {
  background: rgba(255, 255, 255, 0.3);
  animation: winGlow 1s infinite alternate;
}

@keyframes winGlow {
  from { box-shadow: 0 0 5px #fff, 0 0 15px #ff6600; }
  to { box-shadow: 0 0 15px #fff, 0 0 25px #00f2fe; }
}

/* Status */
#status {
  margin: 15px 0;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 0 10px #00f2fe;
}

/* Scoreboard */
.scoreboard {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.scoreboard p {
  font-size: 1rem;
  margin: 8px 0;
}

.scoreboard span {
  font-weight: bold;
  color: #ff9933;
  text-shadow: 0 0 5px #ff6600, 0 0 10px #ff3300;
}
