body {
  font-family: 'Microsoft JhengHei', Arial, sans-serif;
  background: #f0f8ff;
  margin: 0;
  padding: 0;
}
.container {
  max-width: 600px;
  margin: 30px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 24px;
}
h1 {
  text-align: center;
  color: #2a5d84;
}
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.1em;
}
.game-board {
  display: grid;
  grid-template-columns: repeat(4, 60px);
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
  min-height: 140px;
}
.card {
  width: 60px;
  height: 80px;
  background: #b3d8f7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  cursor: pointer;
  user-select: none;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.card.flipped, .card.matched {
  background: #fffbe7;
  cursor: default;
}
.card.matched {
  border: 2px solid #4caf50;
}
.player-area {
  background: #e6f7ff;
  border-radius: 8px;
  padding: 12px;
}
.player-area h2 {
  margin-top: 0;
  font-size: 1.1em;
  color: #2a5d84;
}
#matchedArea {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
} 