/* Reset + base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #fff;
  font-family: 'Segoe UI', sans-serif;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

/* Container styling */
.container {
  text-align: center;
  max-width: 550px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 2rem;
  color: #e60073; /* Fallback for non-WebKit */
  background: linear-gradient(to right, #e60073, #000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}


/* Scoreboard */
.scoreboard {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 1rem;
}

/* Game board */
.game-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  background-color: black;
  padding: 5px;
  margin: 0 auto 1rem;
  width: fit-content;
  border-radius: 12px;
}

.cell {
  width: 100px;
  height: 100px;
  background-color: #fff;
  font-size: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  user-select: none;

}

.cell:hover {
  background-color: #ffe6f0;
}

/* Tokens */
.cell.heart-light {
  color: #e60073;
}

.cell.heart-dark {
  color: #000;
}

/* Winner glow effect */
.winner-glow {
  animation: glow 0.8s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 10px #ffaad4;
  }
  to {
    box-shadow: 0 0 20px #ffaad4, 0 0 40px #ffaad4;
  }
}

/* Message */
.message {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Buttons */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-radius: 999px;
}

button {
  background-color: #e60073;
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(230, 0, 115, 0.4);
}

.mode-label {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

button:hover {
  background-color: #cc0066;
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .cell {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .buttons {
    gap: 0.4rem;
  }
}
