/* 🌌 Global Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  background: radial-gradient(#000428, #004e92); /* space-style gradient */
  color: white;
  height: 100vh;
  overflow-x: hidden;
}

/* 🎮 Main Container */
.container {
  text-align: center;
  margin-top: 20px;
}

/* 🏆 Game Title */
.game-title {
  text-align: center;
  font-size: 3em;
  margin-bottom: 20px;
  color: #00ffe7;
  text-shadow: 0 0 12px #0ff;
  font-family: 'Orbitron', sans-serif;
}

/* 👤 Player Info */
.players {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 15px;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
}

.turn-indicator {
  width: 60px;
  height: 10px;
  background: yellow;
  border-radius: 10px;
}

/* 🎯 Game Status Text */
#game-status {
  font-size: 1.5em;
  margin-bottom: 20px;
}

/* 🧩 Game Board */
.board {
  display: grid;
  grid-template-columns: repeat(3, 90px);
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

/* 🕹️ Cells */
.cell {
  width: 90px;
  height: 90px;
  font-size: 2em;
  border: 2px solid #0ff;
  color: #00ffe7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.cell:hover {
  background-color: rgba(0, 255, 255, 0.2);
  transform: scale(1.05);
}

/* 🟢 Winning Cells Animation */
.win {
  border: 3px solid red;
  border-radius: 50%;
  animation: win-glow 1s ease-in-out infinite;
}

@keyframes win-glow {
  0%, 100% {
    box-shadow: 0 0 10px 5px #0ff;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px 10px #ff0040;
    transform: scale(1.1);
  }
}

/* 🔁 Reset Button */
#reset-btn {
  padding: 10px 20px;
  background-color: #00ffe7;
  border: none;
  font-size: 1.2em;
  color: #000;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 0 10px #0ff;
  transition: 0.3s;
}

#reset-btn:hover {
  background-color: #0ff;
  transform: scale(1.05);
}

/* 🎉 Celebration Emojis */
.celebration {
  position: fixed;
  font-size: 4rem;
  display: none;
  z-index: 999;
  animation: emoji-pop 1s ease infinite alternate;
}

.celebration-top-left    { top: 10px; left: 10px; }
.celebration-top-right   { top: 10px; right: 10px; }
.celebration-bottom-left { bottom: 10px; left: 10px; }
.celebration-bottom-right{ bottom: 10px; right: 10px; }

@keyframes emoji-pop {
  from { transform: scale(1); }
  to   { transform: scale(1.3) rotate(10deg); }
}

/* 🏁 You Won the Game Message */
.win-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3em;
  color: #00ffe7;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px #0ff, 0 0 20px #00ffe7;
  z-index: 1000;
  animation: win-bounce 1s ease-in-out infinite alternate;
}

@keyframes win-bounce {
  from {
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    transform: translate(-50%, -50%) scale(1.1);
  }
}
