  /* 배경 */
  .tarot-board-bg {
    background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #09090b 100%);
    min-height: calc(100vh - 120px);
    position: relative;
  }

  .tarot-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.3);
    backdrop-filter: blur(8px);
  }

  .drop-shadow-gold {
    text-shadow: 0 2px 10px rgba(234, 179, 8, 0.35);
  }

  /* 매트 */
  .tarot-table-mat {
    background: radial-gradient(circle at center, #2e1065 0%, #1e1b4b 75%, #0f172a 100%);
    border: 1.5px solid rgba(234, 179, 8, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(234, 179, 8, 0.1);
    overflow: hidden;
  }

  .mystic-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.15) 0%, rgba(79, 70, 229, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
  }

  /* 카드 크기 및 호버 */
  .tarot-card-link {
    display: inline-block;
  }

  .tarot-card-item {
    width: 135px;
    height: 215px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .tarot-card-item:hover {
    transform: translateY(-10px) scale(1.03);
  }

  .tarot-card-back {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    border: 2px solid #eab308;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }

  .tarot-card-item:hover .tarot-card-back {
    border-color: #fde047;
    box-shadow: 0 12px 30px rgba(234, 179, 8, 0.35);
  }

  .card-ornament-border {
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(234, 179, 8, 0.6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #312e81 0%, #1e1b4b 100%);
  }

  .card-inner-pattern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }

  .center-symbol {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.6));
    margin-bottom: 4px;
  }

  .card-theme-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fde047;
    margin-top: 4px;
  }

  .card-theme-desc {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    word-break: keep-all;
    line-height: 1.2;
  }

  /* 하단 블로그 아티클 가이드 */
  .tarot-guide-article {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
  }





/* ==========================================
   2단 오버랩 타로 덱 (카드 확대 & 간격 확장)
   ========================================== */
.two-tier-deck {
  display: flex;
  flex-direction: column;
  gap: 45px;
  /* 상하 덱 줄 간격 확장 */
  margin: 20px auto;
  width: 100%;
  max-width: 1000px;
  /* 전체 최대 폭 확장 */
}

.deck-row {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 25px 0;
}

/* PC: 대형 카드 (135px x 215px) & 겹침 완화 (-22px) */
.deck-card-item {
  position: relative;
  width: 135px;
  /* 기존 110px -> 135px 확대 */
  height: 215px;
  /* 기존 180px -> 215px 확대 */
  /* 음수 마진을 -22px로 줄여 카드가 덜 겹치고 넓게 퍼지도록 설정 */
  margin-left: -22px;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.25, 1), z-index 0.05s;
}

.deck-card-item:first-child {
  margin-left: 0;
}

/* 호버 시 위로 솟아오름 */
.deck-card-item:hover {
  z-index: 9999 !important;
  transform: translateY(-50px) scale(1.18) !important;
  transition: transform 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) !important;
}

.deck-card-item .tarot-card-back {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.deck-card-item:hover .tarot-card-back {
  border-color: #fde047;
  box-shadow: 0 20px 45px rgba(234, 179, 8, 0.6), 0 0 25px rgba(253, 224, 71, 0.45);
}

.deck-card-item.card-preview {
  z-index: 9999 !important;
  transform: translateY(-55px) scale(1.2) !important;
  transition: transform 0.4s cubic-bezier(0.1, 0.9, 0.2, 1) !important;
}

.deck-card-item.card-preview .tarot-card-back {
  border-color: #fde047 !important;
  box-shadow: 0 25px 50px rgba(234, 179, 8, 0.65), 0 0 25px rgba(253, 224, 71, 0.5) !important;
}

.tarot-slots-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px auto 35px;
  max-width: 700px;
}

.tarot-slot-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.slot-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fde047;
  letter-spacing: 0.5px;
}

.slot-frame {
  width: 95px;
  height: 155px;
  border: 2px dashed rgba(253, 224, 71, 0.4);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.slot-frame.active {
  border-color: #fde047;
  box-shadow: 0 0 15px rgba(253, 224, 71, 0.35);
}

.slot-frame.filled {
  border-style: solid;
  border-color: #eab308;
}

.slot-frame .slot-placeholder-num {
  font-size: 1.2rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.2);
}

/* 덱에서 이미 뽑힌 카드는 반투명 처리 및 클릭 비활성화 */
.deck-card-item.selected-card {
  opacity: 0.25;
  pointer-events: none;
  transform: scale(0.9) !important;
}



/* 3D 카드 뒤집기 컨테이너 */
.tarot-flip-scene {
  perspective: 1000px;
  width: 180px;
  height: 295px;
  margin: 0 auto;
  cursor: pointer;
}

.tarot-flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tarot-flip-card.is-flipped {
  transform: rotateY(180deg);
}

/* 카드 앞면/뒷면 공통 */
.tarot-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
}

/* 뒷면 (처음 보이는 면) */
.tarot-face-back {
  transform: rotateY(0deg);
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.3);
}

/* 앞면 (뒤집힌 후 보이는 면) */
.tarot-face-front {
  transform: rotateY(180deg);
  box-shadow: 0 0 35px rgba(253, 224, 71, 0.5);
}

/* 쪼으는 긴장감 진동 효과 */
@keyframes mysticTremble {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  20% {
    transform: translate(-2px, 1px) rotate(-1deg) scale(1.02);
  }

  40% {
    transform: translate(2px, -1px) rotate(1deg) scale(1.02);
  }

  60% {
    transform: translate(-1px, -2px) rotate(-0.5deg) scale(1.03);
  }

  80% {
    transform: translate(2px, 1px) rotate(0.5deg) scale(1.03);
  }

  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

.tremble-suspense {
  animation: mysticTremble 0.6s infinite ease-in-out;
}

/* 결과 텍스트 서서히 등장 */
.reveal-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.6s, transform 1s ease 0.6s;
}

.reveal-content.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   모바일 최적화 (72px x 120px)
   ========================================== */
@media (max-width: 768px) {
  .tarot-slots-container {
      gap: 10px;
      margin-bottom: 20px;
  }

  .slot-frame {
    width: 65px;
    height: 105px;
    border-radius: 8px;
  }

  .slot-label {
    font-size: 0.7rem;
  }
  .two-tier-deck {
    gap: 25px;
    max-width: 100%;
  }

  .deck-card-item {
    width: 72px;
    /* 기존 60px -> 72px로 확대 */
    height: 120px;
    /* 기존 100px -> 120px로 확대 */
    margin-left: -36px;
    /* 모바일 폭에 맞춘 최적 겹침 간격 */
  }

  .deck-card-item:hover,
  .deck-card-item:active {
    transform: translateY(-35px) scale(1.22) !important;
  }

  .deck-card-item .center-symbol {
    font-size: 1.2rem !important;
  }
  .deck-card-item.card-preview {
    transform: translateY(-40px) scale(1.25) !important;
  }
}