* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(to bottom, #f8f9fa, #e0e0e0);
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 500px;
  margin: auto;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 30px;
  text-align: center;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

#status {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: bold;
}

button {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #45a049;
}

.restart-btn {
  margin-top: 20px;
  background-color: #2196F3;
}

.restart-btn:hover {
  background-color: #1976D2;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

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

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

footer {
  text-align: center;
  padding: 15px;
  font-size: 0.8rem;
  color: #777;
}
