/* ==============================
   18. スマホ対応
============================== */

@media (max-width: 820px) {
  #settingsBtn {
    left: auto;
    right: 12px;
    top: 12px;
  }
}

@media (max-width: 768px) {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
      linear-gradient(
        rgba(20,10,35,0.35),
        rgba(20,10,35,0.35)
      ),
      url("https://tm-meguri.com/wp-content/uploads/2026/05/ChatGPT-Image-2026%E5%B9%B45%E6%9C%8821%E6%97%A5-11_16_27.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
  }

  .fortune-mypage {
    max-width: 100%;
    padding: 0 14px 60px;
  }

  .mypage-title-image img {
    height: 150px;
    margin: 0px auto -20px;
  }

  .summary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 18px;
  }

  .summary-title,
  .point-label {
    font-size: 12px;
  }

  .summary-main {
    font-size: 14px;
  }

  .summary-sub {
    font-size: 14px;
  }

  /* .point-actions {
    flex-direction: column;
    gap: 4px;
  }

  .point-actions button {
    width: 100%;
    padding: 5px 6px;
    font-size: 10px;
  } */

  .fortune-grid {
    grid-template-columns: 1fr;
  }

  .plan-guide-card {
    padding: 22px 16px;
  }

  .tag-slider-wrap::before,
  .tag-slider-wrap::after {
    display: none;
  }

  .tag-slider-arrow {
    display: none;
  }

  .summary-row-bottom {
    padding: 4px 14px;
  }

  .summary-row-bottom .today-card {
    width: 100%;
    max-width: 320px;
  }

  .today-tarot-modal-inner {
    padding: 26px 16px 28px;
  }

  .mypage-tarot-card {
    width: 96px;
  }

  .mypage-tarot-card-face {
    min-height: 132px;
    font-size: 12px;
  }

  .mypage-tarot-text {
    font-size: 13px;
  }

  .line-share-referral-btn {
    width: 100%;
  }
  
  
  .summary-row-bottom {
  min-height: 150px;

  position: relative;
  overflow: hidden;

  border-radius: 12px;
  padding: 4px 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 30px;
}
/* ==============================
   スマホ：サイドメニュー背景
============================== */

@media (max-width: 768px) {

  .settings-menu {
    background: rgba(18, 12, 34, .18);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-left: 1px solid rgba(255,255,255,.12);

    box-shadow:
      -10px 0 35px rgba(0,0,0,.18);
  }

}

}
@media (max-width: 768px) {

  .fortune-mypage .tag-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .fortune-mypage .tag-btn {
    width: 100% !important;
    height: 80px;
    font-size: 14px;
  }

}
.referral-input-box{
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.15);
}

.referral-input-box h3{
  margin-bottom:10px;
  text-align:center;
}

.referral-input-box p{
  font-size:14px;
  text-align:center;
  line-height:1.6;
}

#referralInput{
  width:100%;
  margin-top:12px;
  padding:12px;
  border-radius:10px;
  border:none;
  box-sizing:border-box;
}

#applyReferralBtn{
  width:100%;
  margin-top:12px;
  padding:12px;
  border:none;
  border-radius:10px;
  cursor:pointer;
}

#referralApplyMessage{
  margin-top:10px;
  text-align:center;
  font-size:13px;
}

/**/
/* ==========================================
   今日のタロット ヘッダー
========================================== */

.today-tarot-modal-inner {
  position: relative;

  width: min(94vw, 560px);
  max-height: 88vh;

  overflow-y: auto;

  padding: 38px 30px 34px;

  border-radius: 24px;

  border: 1px solid rgba(225, 196, 110, 0.5);

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(138, 94, 210, 0.36),
      transparent 42%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(212, 175, 55, 0.08),
      transparent 36%
    ),
    linear-gradient(
      180deg,
      rgba(25, 17, 48, 0.99),
      rgba(8, 6, 20, 0.99)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 40px rgba(118, 79, 190, .22),
    0 30px 80px rgba(0,0,0,.62);

  color: #fff;
}


/* 上部の小さな英字 */
.today-tarot-modal-inner::before {
  content: "✦  TODAY'S TAROT  ✦";

  display: block;

  margin-bottom: 10px;

  color: rgba(245, 220, 150, .72);

  font-size: 11px;
  font-weight: 600;

  letter-spacing: .28em;

  text-align: center;
}


/* 今日のタロット */
.today-tarot-modal-inner h2 {
  position: relative;

  margin: 0;

  padding-bottom: 13px;

  font-size: 27px;
  font-weight: 700;

  letter-spacing: .1em;

  text-align: center;

  background: linear-gradient(
    180deg,
    #fff6cc 0%,
    #f7d774 45%,
    #c89b32 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  text-shadow:
    0 0 20px rgba(247,215,116,.15);
}


/* タイトル下の飾り */
.today-tarot-modal-inner h2::after {
  content: "";

  display: block;

  width: 90px;
  height: 1px;

  margin: 14px auto 0;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(247,215,116,.85),
    transparent
  );
}


/* 本日の利用回数 */
.today-tarot-usage-count {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  margin: 10px auto 28px;
  padding: 7px 15px;

  border: 1px solid rgba(247,215,116,.28);
  border-radius: 999px;

  background: rgba(255,255,255,.045);

  color: rgba(255,255,255,.76);

  font-size: 12px;
  letter-spacing: .05em;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08);
}
/* ==========================================
   タロット 項目選択
========================================== */

.today-tarot-menu-area {
  margin-top: 4px;
}


/* 見出し */
.today-tarot-menu-title {
  margin: 22px 0 12px;

  color: rgba(255, 255, 255, .72);

  font-size: 12px;
  font-weight: 500;

  letter-spacing: .12em;

  text-align: center;
}


/* ==========================================
   メニューグリッド
========================================== */

.today-tarot-menu-buttons {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;

  width: 100%;
}


/* ==========================================
   通常状態
========================================== */

.today-tarot-menu-btn {
  position: relative;

  min-height: 52px;

  margin: 0;
  padding: 11px 10px;

  border:
    1px solid
    rgba(205, 184, 235, .22);

  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.07),
      rgba(125,85,180,.08)
    );

  color:
    rgba(255,255,255,.78);

  font-size: 13px;
  font-weight: 600;

  letter-spacing: .06em;

  cursor: pointer;

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.08);

  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease,
    color .2s ease,
    box-shadow .2s ease;
}


/* 小さな星 */
.today-tarot-menu-btn::before {
  content: "✦";

  margin-right: 6px;

  color:
    rgba(247,215,116,.4);

  font-size: 9px;

  transition:
    color .2s ease,
    text-shadow .2s ease;
}


/* Hover */
.today-tarot-menu-btn:hover {
  transform:
    translateY(-2px);

  border-color:
    rgba(247,215,116,.4);

  background:
    linear-gradient(
      145deg,
      rgba(247,215,116,.09),
      rgba(125,85,180,.13)
    );

  color: #fff;
}


/* ==========================================
   選択中
========================================== */

.today-tarot-menu-btn.active {
  border-color:
    rgba(247,215,116,.78);

  background:
    radial-gradient(
      circle at top,
      rgba(247,215,116,.18),
      transparent 65%
    ),
    linear-gradient(
      145deg,
      rgba(104,72,155,.72),
      rgba(31,22,57,.88)
    );

  color: #f8df8a;

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.16),

    0 0 13px
      rgba(247,215,116,.13),

    0 7px 20px
      rgba(0,0,0,.18);
}


.today-tarot-menu-btn.active::before {
  color: #f7d774;

  text-shadow:
    0 0 8px
      rgba(247,215,116,.7);
}


/* ==========================================
   最後の健康運
   7項目なので中央に配置
========================================== */

.today-tarot-menu-btn:last-of-type {
  grid-column:
    1 / -1;

  width: calc(50% - 5px);

  justify-self: center;
}


/* ==========================================
   押下時
========================================== */

.today-tarot-menu-btn:active {
  transform:
    scale(.98);
}


/* ==========================================
   Focus
========================================== */

.today-tarot-menu-btn:focus,
.today-tarot-menu-btn:focus-visible {
  outline: none;
}


/* ==========================================
   占うボタン
========================================== */

.draw-tarot-btn {
  grid-column:
    1 / -1;

  position: relative;

  width: min(100%, 320px);

  margin: 22px auto 2px;
  padding: 14px 22px;

  border:
    1px solid
    rgba(247,215,116,.78);

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #6f4b9e 0%,
      #3d285f 45%,
      #211735 100%
    );

  color: #fff3bd;

  font-size: 14px;
  font-weight: 700;

  letter-spacing: .08em;

  cursor: pointer;

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.18),

    0 0 18px
      rgba(247,215,116,.15),

    0 12px 28px
      rgba(0,0,0,.3);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}


.draw-tarot-btn::before {
  content: "✦";

  margin-right: 9px;

  color: #f7d774;
}


.draw-tarot-btn::after {
  content: "✦";

  margin-left: 9px;

  color: #f7d774;
}


.draw-tarot-btn:hover {
  transform:
    translateY(-2px);

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.22),

    0 0 25px
      rgba(247,215,116,.25),

    0 15px 32px
      rgba(0,0,0,.35);
}


.draw-tarot-btn:disabled {
  opacity: .45;

  cursor: not-allowed;

  transform: none;

  box-shadow: none;
}
