/* ==========================================
   スマホ
========================================== */

@media (max-width: 768px) {

  .fortune-list-modal {
    padding: 14px;
  }

  .fortune-list-modal-inner {
    width: 100%;
    max-height: 86vh;

    padding:
      30px
      16px
      24px;

    border-radius: 16px;
  }

  .fortune-list-modal-inner h3 {
    margin-bottom: 22px;

    font-size: 19px;
  }

}
/* /* ==============================
   15. タロットアニメーション本体
============================== */

.tarot-loading-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(120, 70, 180, 0.35), transparent 45%),
    rgba(8, 5, 18, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2147483647 !important;
}

.tarot-animation-area {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tarot-back-card {
  margin: 20px auto;
  width: 112px;
  height: 172px;
  border: 1px solid rgba(242, 215, 142, 0.9);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(242, 215, 142, 0.22), transparent 30%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 4px,
      transparent 4px,
      transparent 10px
    ),
    linear-gradient(160deg, #2c2052, #0f0b1f);
  box-shadow:
    0 0 22px rgba(212, 175, 55, 0.35),
    0 16px 30px rgba(0, 0, 0, 0.45);
  animation: tarotFloatFlip 1.25s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes tarotFloatFlip {
  0% {
    transform: translateY(0) rotateY(0deg) rotateZ(-2deg);
  }
  50% {
    transform: translateY(-12px) rotateY(180deg) rotateZ(2deg);
  }
  100% {
    transform: translateY(0) rotateY(360deg) rotateZ(-2deg);
  }
}

.tarot-loading-box {
  position: relative;
  width: min(92vw, 520px);
  height: 520px;
}

.tarot-flying-card,
.tarot-deck-card,
.tarot-animation-result-card {
  position: absolute;
  width: 74px;
  height: 116px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1b1638, #080713);
  border: 1px solid rgba(218, 180, 92, 0.9);
  box-shadow:
    0 0 12px rgba(218, 180, 92, 0.35),
    inset 0 0 12px rgba(218, 180, 92, 0.18);
}

.tarot-flying-card::before,
.tarot-deck-card::before {
  content: "✦";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(218, 180, 92, 0.55);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d8b45c;
  font-size: 24px;
}

.tarot-flying-card {
  left: 50%;
  top: 50%;
  opacity: 0;
  width: 90px;
  height: 150px;
  border-radius: 10px;
  background-image: url("/wp-content/themes/hello-elementor/images/tarot/99.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: tarotFlyMix 3.0s ease-in-out forwards;
}

@keyframes tarotFlyMix {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.5);
  }
  25% {
    opacity: 1;
    transform:
      translate(calc(-50% + var(--x1)), calc(-50% + var(--y1)))
      rotate(var(--r1))
      scale(1);
  }
  65% {
    opacity: 1;
    transform:
      translate(calc(-50% + var(--x2)), calc(-50% + var(--y2)))
      rotate(var(--r2))
      scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.7);
  }
}

.tarot-deck {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 90px;
  height: 130px;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: tarotDeckAppear 1s ease forwards;
  animation-delay: 2.7s;
}

.tarot-deck-card {
  left: 0;
  top: 0;
  background-image: url("/wp-content/themes/hello-elementor/images/tarot/99.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tarot-deck-card:nth-child(1) {
  transform: translate(0, 0) rotate(-2deg);
}

.tarot-deck-card:nth-child(2) {
  transform: translate(4px, 3px) rotate(1deg);
}

.tarot-deck-card:nth-child(3) {
  transform: translate(8px, 6px) rotate(3deg);
}

@keyframes tarotDeckAppear {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.tarot-animation-result-card {
  left: 50%;
  top: 45%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  width: 100px !important;
  height: 150px !important;
  border-radius: 12px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  perspective: 1000px;
  overflow: visible;
}

.tarot-animation-result-card::before {
  content: none !important;
  display: none !important;
}

.tarot-animation-result-card.card-1 {
  animation: tarotDrawCard1 1.1s ease forwards;
  animation-delay: 4.0s;
}

.tarot-animation-result-card.card-2 {
  animation: tarotDrawCard2 1.1s ease forwards;
  animation-delay: 5.1s;
}

.tarot-animation-result-card.card-3 {
  animation: tarotDrawCard3 1.1s ease forwards;
  animation-delay: 6.2s;
}

.tarot-animation-result-card.single-card {
  left: 50%;
  top: 50%;
  width: 100px !important;
  height: 150px !important;
  animation: tarotDrawSingleCard 1.1s ease forwards;
  animation-delay: 4.0s;
}

@keyframes tarotDrawCard1 {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform: translate(-185%, -20%) scale(1.05) rotate(-8deg);
  }
  100% {
    opacity: 1;
    transform: translate(-185%, 65%) scale(1) rotate(0deg);
  }
}

@keyframes tarotDrawCard2 {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -20%) scale(1.05) rotate(6deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 65%) scale(1) rotate(0deg);
  }
}

@keyframes tarotDrawCard3 {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform: translate(85%, -20%) scale(1.05) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: translate(85%, 65%) scale(1) rotate(0deg);
  }
}

@keyframes tarotDrawSingleCard {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08) rotate(6deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -20%) scale(1) rotate(0deg);
  }
}

.tarot-result-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
}

.tarot-result-card-inner.is-revealed {
  animation: tarotCardFlipReveal 0.55s ease forwards;
}

@keyframes tarotCardFlipReveal {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(180deg);
  }
}

.tarot-result-card-back,
.tarot-result-card-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  backface-visibility: hidden;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tarot-result-card-back {
  background-image: url("/wp-content/themes/hello-elementor/images/tarot/99.png");
  transform: rotateY(0deg);
}

.tarot-result-card-front {
  transform: rotateY(180deg);
}
.tarot-animation-card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

/* .tarot-result-card-front.is-reversed {
  transform: rotateY(180deg) rotate(180deg);
}
   */
   .tarot-result-card-front.is-reversed img {
  transform: rotate(180deg);
}

.tarot-loading-text {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  color: #ead79a;
  font-family: serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(218, 180, 92, 0.65);
}

.tarot-loading-text span {
  animation: tarotTextFade 1.8s ease-in-out infinite;
}

@keyframes tarotTextFade {
  0%, 100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
} */
/* ==============================
   16. タロット結果表示
============================== */

.mypage-tarot-result {
  margin-top: 16px;
  text-align: left;
}

.mypage-tarot-result h3 {
  margin: 0 0 10px;
  text-align: center;
  color: #f3d98b;
  font-size: 20px;
}

.mypage-tarot-limit {
  margin: 0 0 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.mypage-tarot-cards {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0;
}

.mypage-tarot-card {
  width: 120px;
  text-align: center;
}

.mypage-tarot-position {
  margin: 0 0 6px;
  color: #f3d98b;
  font-size: 13px;
}

.mypage-tarot-card-face {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 11 / 18;
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.mypage-tarot-card-face.is-reversed {
  transform: rotate(180deg);
}

.mypage-tarot-card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.mypage-tarot-card-img.is-reversed {
  transform: rotate(180deg);
}

.mypage-tarot-card-title {
  margin-top: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #d4af37;
}

.mypage-tarot-card-orientation {
  margin-top: 4px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.mypage-tarot-orientation {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #d4af37;
  letter-spacing: 1px;
}

.mypage-tarot-card-name {
  display: block;
}

.mypage-tarot-text {
  margin-top: 18px;
  padding: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.9;
}

.mypage-tarot-lucky {
  margin: 18px auto;
  padding: 14px 16px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  color: #f3d98b;
  font-size: 14px;
  line-height: 1.8;
}

.mypage-tarot-lucky p {
  margin: 4px 0;
}
/* ==============================
   17. SNS・戻るボタン
============================== */

.sns-area {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.sns-area a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #efd7e3;
  background: #fff;
  color: #9b6b82;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(190, 135, 165, 0.14);
}

.mypage-home-back {
  text-align: center;
  margin: 32px 0 10px;
}

.mypage-home-btn {
  display: inline-block;
  padding: 12px 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d88cc8, #8f67c8);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(120, 80, 160, 0.28);
}
/* ==========================================
   今日のタロット：ポイント購入ボタン
========================================== */

#tarotPointPurchaseBtn {
  display: block;
  width: 100%;
  max-width: 280px;
  min-height: 44px;
  margin: 16px auto 0;
  padding: 10px 24px;

  background: linear-gradient(
    135deg,
    #FFF0B8,
    #F7D774
  ) !important;

  border: 1px solid #F7D774 !important;
  border-radius: 999px !important;

  color: #241A3A !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;

  box-shadow: 0 4px 16px rgba(247, 215, 116, 0.15) !important;
  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

#tarotPointPurchaseBtn:hover,
#tarotPointPurchaseBtn:focus-visible,
#tarotPointPurchaseBtn:active {
  background: linear-gradient(
    135deg,
    #FFF5CF,
    #FFE49A
  ) !important;

  border-color: #F7D774 !important;
  color: #241A3A !important;
  box-shadow: 0 4px 16px rgba(247, 215, 116, 0.2) !important;
}

#tarotPointPurchaseBtn:hover {
  transform: translateY(-2px);
}