.hd3-oracle {
  text-align: center;
  margin: 30px auto;
  font-family: 'Inter', sans-serif;
  color: #333;
  max-width: 1100px;
}

/* Tombol */
.hd3-oracle .js-hd3-draw {
  display: block;
  margin: 15px auto 25px auto;
  background: #00aaff;
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.hd3-oracle .js-hd3-draw:hover { background:#0088cc; transform:scale(1.05); }

/* Stage shuffle */
#hd3-shuffle-stage { text-align:center; margin-bottom:30px; }
.hd3-single-card { 
  width:260px;
  height:400px;
  margin:0 auto;
  perspective:1000px; 
  cursor: grab; /* Kursor genggam */
}
.hd3-single-card.is-dragging, .hd3-single-card:active {
  cursor: grabbing; /* Kursor saat menggenggam */
}
.hd3-hint { font-size:14px;color:#666;font-style:italic;margin:10px 0 20px; }

.hd3-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* MODIFIKASI: Transisi dipindahkan dari sini agar bisa di-override */
}

/* BARU: Transisi untuk snap-back dan flip */
.hd3-card-inner {
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
.hd3-card-inner.is-dragging {
    transition: none; /* Hapus transisi saat digeser agar responsif */
}

.hd3-card-inner.is-flipped {
  transform: rotateY(180deg);
}

.hd3-card-back, .hd3-card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  backface-visibility: hidden;
  overflow: hidden;
}

.hd3-card-back {
  background: url("https://www.humandesignindonesia.com/wp-content/uploads/2025/09/Kartu-Matriks-Desain-Manusia.png") no-repeat center center;
  background-size: contain;
  background-color: #0a0a0a;
}

.hd3-card-front {
  transform: rotateY(180deg);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
}

/* Deck */
.hd3-deck {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  perspective: 1200px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hd3-card {
  width: 260px;
  height: 400px;
  cursor: pointer;
}

/* Isi depan kartu */
.hd3-role {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin: 4px 0;
}
.hd3-front-title {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0;
  color: #222;
  text-align: center;
}
.hd3-card-img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: 10px;
}

/* Interpretasi */
#hd3-interpretations {
  text-align: left;
  padding: 0 20px;
}
.hd3-interpret-block {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
.hd3-interpret-block h4 {
  font-size: 17px;
  font-weight: 600;
  color: #005c99;
  margin-bottom: 6px;
}
.hd3-interpret-block p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Wobble effect */
.is-wobble { animation:hd3-wobble .5s ease; }
@keyframes hd3-wobble {
  0%   { transform:translate3d(0,0,0) rotate(0deg); }
  25%  { transform:translate3d(-6px,0,0) rotate(-2deg); }
  50%  { transform:translate3d(6px,0,0) rotate(2deg); }
  75%  { transform:translate3d(-3px,0,0) rotate(-1deg); }
  100% { transform:translate3d(0,0,0) rotate(0deg); }
}

/* Responsive */
@media(max-width:900px){
  .hd3-deck{ gap:18px; }
  .hd3-card{ width:220px; height:340px; }
}
@media(max-width:700px){
  .hd3-deck{ flex-direction:column; }
  .hd3-card{ width:80%; max-width:280px; }
}