.game-board {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.collector-game-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}


.game-card-stack {
  position: relative;
  width: 150px;
  height: 220px;
  cursor: pointer;
}

.game-card-stack.revealed {
  opacity: 1;
  transform: scale(1.05);
}

.game-card-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: top 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

/* Décalage progressif des cartes empilées 
.game-card-stack .game-card-img:nth-child(1) { top: 0; }
.game-card-stack .game-card-img:nth-child(2) { top: 8px; }
.game-card-stack .game-card-img:nth-child(3) { top: 16px; }
.game-card-stack .game-card-img:nth-child(4) { top: 24px; }
.game-card-stack .game-card-img:nth-child(5) { top: 32px; }
*/
/* (tu peux augmenter si certaines piles contiennent + de cartes) */
.btn-reveal {
  padding: 10px 20px;
  background: linear-gradient(135deg, #2e89ff, #6fd3ff);
  border: none;
  border-radius: 8px;
  color: white;
}



/* Carte active mise au premier plan */
.game-card-img.active {
  z-index: 10;
  top: -5px;
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Effet visuel pour les cartes possédées */
/*
.card_success {
  outline: 3px solid #2ecc71;
  outline-offset: 3px;
  border-radius: 12px;
}
*/
.card-name {
    position: absolute;
    bottom: 6px;
    width: 100%;
    text-align: center;
    color: white;
    font-weight: bold;
    z-index: 5;
    font-size: 1rem;
    text-shadow: 0 0 4px rgba(0,0,0,0.8);
}
