* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: bgAnimation 10s infinite alternate;
  background: linear-gradient(45deg, #ff5f6d, #ffc371, #24c6dc, #514a9d, #ff512f);
  background-size: 500% 500%;
}

@keyframes bgAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

h1 {
  margin-bottom: 15px;
  color: #fff;
}

.status {
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 8px;
  margin-bottom: 20px;
}

.cell {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  font-size: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s, transform 0.1s;
}

.cell:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.winner {
  background: #4caf50 !important;
  color: white;
}

button {
  padding: 12px 25px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background: #fff;
  color: #333;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

@media (max-width: 500px) {
  .board {
    grid-template-columns: repeat(3, 70px);
    grid-template-rows: repeat(3, 70px);
  }
  .cell {
    font-size: 2rem;
  }
}
