body {
  background: linear-gradient(135deg, #0a0a2a, #2a0a4a);
  color: #fff;
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 20px;
  min-height: 100vh;
  margin: 0;
}

h1 {
  color: #c77dff;
}

.subtitle {
  color: #ccc;
  margin-bottom: 20px;
}

.modes button {
  background: #7b2cbf;
  color: #fff;
  border: none;
  padding: 10px 16px;
  margin: 5px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}

.modes button.active {
  background: #c77dff;
  color: #1a0033;
}

#board {
  display: grid;
  grid-template-columns: repeat(3, 90px);
  grid-template-rows: repeat(3, 90px);
  gap: 6px;
  justify-content: center;
  margin: 20px auto;
}

.cell {
  background: #1a0838;
  border: 2px solid #9d4edd;
  border-radius: 8px;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}

.cell:hover {
  background: #2a1155;
}

.cell.win {
  background: #7b2cbf;
  border-color: #ffd166;
  color: #ffd166;
  animation: pulse-win 0.6s ease-in-out infinite alternate;
}

@keyframes pulse-win {
  from {
    box-shadow: 0 0 6px #ffd166;
    transform: scale(1);
  }
  to {
    box-shadow: 0 0 18px #ffd166;
    transform: scale(1.06);
  }
}

#status {
  font-size: 18px;
  margin: 10px;
  min-height: 26px;
  color: #e0aaff;
}

#reset {
  background: #9d4edd;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

#reset:hover {
  background: #c77dff;
}
