body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f06, #9f6);
  color: #fff;
}

h1 {
  margin: 20px 0;
  font-size: 2.5rem;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  width: 300px;
  margin: 20px 0;
}

.cell {
  width: 100px;
  height: 100px;
  background-color: #fff;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #333;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s;
}

.cell:hover {
  background-color: #eaeaea;
}

.status {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

button {
  background-color: #007bff;
  color: #fff;
  font-size: 1rem;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0056b3;
}

/* Result screen (modal) */
.result-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #fff;
}

.result-message {
  font-size: 2rem;
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .board {
    width: 90%;
  }
  .cell {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
}
