body {
  background-color: #000;
  color: #40E0D0;
  font-family: 'Cinzel Decorative', 'Playfair Display', serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

.barra {
  background-color: #111;
  padding: 12px;
  box-shadow: 0 0 15px #40E0D0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.barra button {
  background-color: #40E0D0;
  border: none;
  border-radius: 25px;
  padding: 18px 40px;       /* pulsanti più alti e larghi */
  color: #111;
  font-weight: bold;
  font-size: 22px;          /* testo più grande */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px #40E0D0;
}


.barra button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px #40E0D0;
}

/* Layout principale */
.area-lettura {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.slot-container {
  display: flex;
  justify-content: space-between;
  width: 900px;
  margin-bottom: 60px;
}

/* 🔮 Slot delle carte rivelate */
.slot {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 300px;         /* dimensione coerente */
  height: 500px;
  border: 2px solid #40E0D0;
  border-radius: 15px;
  box-shadow: 0 0 20px #40E0D0;
  background-color: rgba(0, 0, 0, 0.4);
  margin: 10px;
}


.slot h3 {
  color: #40E0D0;
  margin-top: 10px;
  text-shadow: 0 0 2px #40E0D0;
  /* font-family rimosso per ereditare il font globale */
}

/* Mazzo */
.area-mazzo {
  width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.riga-carte {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.carta {
  width: 120px;
  height: 201px; /* proporzione corretta 1:1.68 */
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 0 10px #40E0D0;
  transition: transform 0.8s ease;
}


.carta:hover {
  transform: scale(1.08);
}

/* 🔮 Carte scoperte */
.carta-scoperta {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 15px #40E0D0;
  transition: transform 0.4s ease;
}

/* === Effetto "impila sulla prima" === */
.mazzo.animazione img {
  position: absolute;
  top: 0;
  left: 0;
  transition: all 1s ease-in-out;
}

.mazzo.animazione img.impilata {
  left: 0;
  top: 0;
  transform: translate(0, 0);
  z-index: 50;
}

.mazzo.ridistribuita img {
  transition: all 1s ease-in-out;
}
button {
  font-size: 22px !important;
  padding: 16px 40px !important;
  border-radius: 20px !important;
}
