body {
  background: #f9fafc;
  color: #333;
  font-family: "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #3f51b5;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

header nav a {
  color: #fff;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

#game {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

#grid {
  display: grid;
  grid-template-columns: repeat(5, 50px);
  gap: 5px;
  margin: 1rem 0;
}

.cell {
  width: 50px;
  height: 50px;
  background: #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  border-radius: 6px;
}

.correct {
  background: #4caf50 !important;
  color: white;
}

.partial {
  background: #ff9800 !important;
  color: white;
}

.wrong {
  background: #ccc !important;
}

input, button {
  margin: 0.5rem;
  padding: 0.5rem;
  font-size: 1rem;
}

button {
  background: #3f51b5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #303f9f;
}

footer {
  background: #eee;
  text-align: center;
  padding: 1rem;
}
