.mm-game {
  display: grid;
  grid-template-columns: repeat(4, 80px);
  gap: 12px;
  justify-content: center;
  margin: 30px auto;
  max-width: 400px;
}

.mm-card {
  width: 80px;
  height: 80px;
  background-color: #34495e;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: transparent;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
  user-select: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  perspective: 1000px;
}

.mm-card:hover {
  transform: translateY(-2px);
  background-color: #2c3e50;
}

.mm-card.flipped {
  background-color: #ecf0f1;
  color: #2c3e50;
  transform: rotateY(180deg);
  cursor: default;
}

.mm-card.matched {
  background-color: #27ae60;
  color: #fff;
  cursor: default;
  animation: mm-match 0.5s ease-out;
}

@keyframes mm-match {
  0% { transform: scale(1) rotateY(180deg); }
  50% { transform: scale(1.1) rotateY(180deg); }
  100% { transform: scale(1) rotateY(180deg); }
}

.mm-stats {
  text-align: center;
  margin: 20px 0;
  font-family: inherit;
}

.mm-stat-val {
  font-weight: bold;
  color: #e67e22;
  font-size: 1.2em;
}

.mm-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}

.mm-btn:hover {
  background-color: #2980b9;
}
