/* Mantel.css - Versión corregida y extendida (cartas grandes) */

.tirada-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.mantel-area {
  background-color: #f6e8d5;
  border: 2px dashed #c9ad92;
  padding: 20px;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  min-height: 250px;
  flex: 1 1 50%;
}

.resultado-area {
  background: #fffaf3;
  border: 1px solid #e0d5c1;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex: 1 1 40%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  margin-top: 0;
}


@media (max-width: 768px) {
  .tirada-container {
    flex-direction: column;
  }

  .mantel-area, .resultado-area {
    flex: 1 1 100%;
  }
}

.carta-container {
  width: 200px;
  height: 300px;
  perspective: 1000px;
  margin: 10px;
}

.carta-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  cursor: pointer;
}

.carta-inner.flipped {
  transform: rotateY(180deg);
}

.carta-front, .carta-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.carta-back {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carta-front {
  transform: rotateY(180deg);
}

.tirada-btn {
  background-color: #b03e2e;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tirada-btn:hover {
  background-color: #922c1e;
}

.titulo-resultado {
  font-weight: bold;
  font-size: 1.25rem;
  color: #502e1b;
  margin-bottom: 8px;
}