.fcg-widget-wrapper { text-align: center; font-family: sans-serif; }
.game-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  max-width: 600px;
  margin: 20px auto;
}
.card {
  background: #3498db;
  color: white;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  perspective: 800px;
}
.card-inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
}
.card.flipped .card-inner {
  transform: rotateY(180deg);
}
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-front {
  background: #2980b9;
}
.card-back {
  background: #ecf0f1;
  color: #2c3e50;
  transform: rotateY(180deg);
  flex-direction: column;
}
.card-back img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-bottom: 5px;
}

.fcg-popup {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.popup-content {
  margin: 0 auto;
}