body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  background: linear-gradient(135deg, #e8bebe, #6c3e6c);
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  box-sizing: border-box;
}

h1 {
  margin-bottom: 20px;
  color: #333;
}

.controls {
  margin-bottom: 20px;
}

label, select, button {
  font-size: 1rem;
  margin: 0 5px;
}

#status {
  margin-top: 10px;
  font-weight: bold;
  color: #444;
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 15px;
  max-width: 450px;
  margin: 0 auto;
}

.card {
  width: 80px;
  height: 80px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease, background-color 0.3s;
}

.card:hover {
  transform: scale(1.05);
}

.card.flipped,
.card.matched {
  background-color: #f0f9ff;
  color: #222;
  box-shadow: inset 0 0 8px rgba(0, 150, 255, 0.2);
  pointer-events: none;
}

button {
  padding: 8px 16px;
  background-color: #0077ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #005fe0;
}

select {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
