/* ===== 캐릭터 조회 요약 카드 (info 페이지용) ===== */
.fortune_summary_card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 3px solid #94a3b8;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: #1f2937;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.fortune_summary_card[data-mood="very_good"] { border-left-color: #0d6efd; }
.fortune_summary_card[data-mood="good"] { border-left-color: #198754; }
.fortune_summary_card[data-mood="normal"] { border-left-color: #0aa2c0; }
.fortune_summary_card[data-mood="bad"] { border-left-color: #ffc107; }
.fortune_summary_card[data-mood="danger"] { border-left-color: #dc3545; }

#character_fortune_wrap[hidden],
.fortune_summary_card[hidden] {
  display: none !important;
}

.fortune_summary_card__body { flex: 1; min-width: 0; }

.fortune_summary_card__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.fortune_summary_card__title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #111827;
}

.fortune_summary_text {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  color: #374151;
}

.fortune_summary_card__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.fortune_summary_card__cta:hover {
  background: #bae6fd;
  color: #075985;
}

.fortune_summary_card .fortune_disclaimer {
  margin: 0.25rem 0 0;
  color: #9ca3af;
}

@media (max-width: 575.98px) {
  .fortune_summary_card {
    flex-direction: column;
    align-items: stretch;
  }
  .fortune_summary_card__cta { justify-content: center; }
}

/* ===== 공통 배지 ===== */
.fortune_mood {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.3rem 0.55rem;
  border-radius: 0.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.fortune_mood--very_good {
  background: #cfe2ff;
  color: #052c65;
  border: 1px solid #9ec5fe;
}
.fortune_mood--good {
  background: #d1e7dd;
  color: #0a3622;
  border: 1px solid #a3cfbb;
}
.fortune_mood--normal {
  background: #cff4fc;
  color: #055160;
  border: 1px solid #9eeaf9;
}
.fortune_mood--bad {
  background: #fff3cd;
  color: #664d03;
  border: 1px solid #ffe69c;
}
.fortune_mood--danger {
  background: #f8d7da;
  color: #58151c;
  border: 1px solid #f1aeb5;
}

.fortune_disclaimer {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ===== 페이지 레이아웃 (밝은 톤) ===== */
#fortune_page {
  --fortune-sky: #0ea5e9;
  --fortune-ink: #1f2937;
  --fortune-muted: #6b7280;
  --fortune-line: rgba(15, 23, 42, 0.08);
  --fortune-soft: #f8fafc;
  color: var(--fortune-ink);
  padding-bottom: 2.5rem;
}

#fortune_page .input-group > .form-control {
  border-radius: 0.375rem 0 0 0.375rem;
}

#fortune_page .input-group > .btn {
  border-radius: 0 0.375rem 0.375rem 0;
}

#fortune_page .fortune_head {
  position: relative;
}

#fortune_page .fortune_head__sub {
  color: var(--fortune-muted);
  margin-top: 0.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

#fortune_page .fortune_panel {
  max-width: 920px;
  margin: 0.75rem auto 0;
}

#fortune_page .fortune_panel__title {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 1.15rem 0 0.65rem;
  letter-spacing: -0.01em;
}

#fortune_page .fortune_char_card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

#fortune_page .fortune_share_open {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-sizing: border-box;
  min-height: 32px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.75);
  color: #374151;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

#fortune_page .fortune_share_open:hover,
#fortune_page .fortune_share_open:focus {
  border-color: #9ec5fe;
  color: #0d6efd;
  background: #f8fbff;
}

#fortune_page .fortune_share_open[hidden] {
  display: none !important;
}

/* 캐릭터 카드 + 영상광고 */
#fortune_page .fortune_char_card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  width: 100%;
  margin-bottom: 0.25rem;
  padding: 1.05rem 1.15rem;
  border-radius: 1.1rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.94), rgba(255,255,255,0.82)),
    url('/upload/asset/background/단풍나무언덕.png') center / cover;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 28px rgba(15, 23, 42, 0.08);
  text-align: left;
}

#fortune_page .fortune_char_card__visual {
  flex-shrink: 0;
}

#fortune_page .fortune_char_card__thumb_wrap {
  width: 110px;
  height: 130px;
  overflow: hidden;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* character.css #character_summary .img_character 와 동일 배율 */
#fortune_page .fortune_char_card__thumb,
#fortune_page .fortune_char_card__thumb.img_character {
  height: 130px;
  width: auto;
  pointer-events: none;
  scale: 3;
  object-position: 1px -5px;
}

#fortune_page .fortune_char_card__body {
  flex: 1;
  min-width: 0;
}

#fortune_page .fortune_char_card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

#fortune_page .fortune_pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #374151;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

#fortune_page .fortune_pill img {
  width: 1em;
  height: 1em;
  vertical-align: text-top;
}

#fortune_page .fortune_pill--job {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.28);
  color: #0369a1;
}

#fortune_page .fortune_char_card__name_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-bottom: 0.25rem;
}

#fortune_page .fortune_char_card__name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

#fortune_page .fortune_guild_badge {
  display: inline-flex;
  align-items: center;
  max-width: 12rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#fortune_page .fortune_guild_badge[hidden] {
  display: none !important;
}

#fortune_page .fortune_age_badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.32);
  font-variant-numeric: tabular-nums;
}

#fortune_page .fortune_age_badge[hidden] {
  display: none !important;
}

#fortune_page .fortune_char_card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.65rem;
}

#fortune_page .fortune_char_card__meta b {
  color: #111827;
}

#fortune_page .fortune_dot {
  color: #cbd5e1;
  font-weight: 700;
}

#fortune_page .fortune_char_card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-sizing: border-box;
  min-height: 32px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  color: #0284c7;
  text-decoration: none;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(14, 165, 233, 0.25);
  transition: background 0.15s ease, color 0.15s ease;
}

#fortune_page .fortune_char_card__link:hover {
  color: #0369a1;
  background: rgba(224, 242, 254, 0.95);
  text-decoration: none;
}

#fortune_page .fortune_char_card__ad {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
  line-height: 0;
}

#fortune_page .fortune_char_card__ad #vm_video {
  margin: 0;
  max-width: 320px;
}

@media (max-width: 1024px) {
  #fortune_page .fortune_char_card__ad {
    display: none;
  }
}

#fortune_page .fortune_result_box {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

@media (max-width: 575.98px) {
  #fortune_page .fortune_char_card {
    flex-direction: column;
    text-align: center;
  }
  #fortune_page .fortune_char_card__pills,
  #fortune_page .fortune_char_card__meta,
  #fortune_page .fortune_char_card__name_row,
  #fortune_page .fortune_char_card__actions {
    justify-content: center;
  }
  #fortune_page .fortune_guild_badge {
    max-width: 14rem;
  }
}

/* ===== 운세 결과 본문 ===== */
.fortune_result_root {
  text-align: left;
  color: #1f2937;
  animation: fortune_fade_in 0.35s ease both;
}

@keyframes fortune_fade_in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.fortune_overall_line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0 0 0.7rem;
  padding: 0.85rem 1rem;
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 600;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left-width: 3px;
  border-left-color: #cbd5e1;
  border-radius: 0.9rem;
}

.fortune_result_root[data-mood="very_good"] .fortune_overall_line { border-left-color: #0d6efd; }
.fortune_result_root[data-mood="good"] .fortune_overall_line { border-left-color: #198754; }
.fortune_result_root[data-mood="normal"] .fortune_overall_line { border-left-color: #0aa2c0; }
.fortune_result_root[data-mood="bad"] .fortune_overall_line { border-left-color: #ffc107; }
.fortune_result_root[data-mood="danger"] .fortune_overall_line { border-left-color: #dc3545; }

.fortune_overall_line__badge {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 3.2rem;
}

.fortune_score {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.05rem;
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #1f2937;
  line-height: 1.1;
}

.fortune_score small {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

.fortune_overall_line__badge .fortune_mood {
  margin: 0;
}

.fortune_overall_line__text {
  flex: 1 1 14rem;
  min-width: 0;
  font-weight: 600;
  line-height: 1.55;
  color: #1f2937;
}

.fortune_overall_line .fortune_date {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.fortune_chip_row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.fortune_chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.4rem 0.65rem;
  border-radius: 0.85rem;
  background: var(--fortune-soft);
  border: 1px solid #e5e7eb;
  text-align: center;
  min-width: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.fortune_chip:hover {
  transform: translateY(-1px);
}

.fortune_chip:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.fortune_chip[data-mood="very_good"] {
  background: #e7f1ff;
  border-color: #9ec5fe;
}
.fortune_chip[data-mood="good"] {
  background: #e8f6ee;
  border-color: #a3cfbb;
}
.fortune_chip[data-mood="normal"] {
  background: #e7f9fc;
  border-color: #9eeaf9;
}
.fortune_chip[data-mood="bad"] {
  background: #fff8e1;
  border-color: #ffe69c;
}
.fortune_chip[data-mood="danger"] {
  background: #fdecee;
  border-color: #f1aeb5;
}

.fortune_chip__icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: #e5e7eb;
  color: #4b5563;
}

.fortune_chip[data-mood="very_good"] .fortune_chip__icon {
  background: #cfe2ff;
  color: #0d6efd;
}
.fortune_chip[data-mood="good"] .fortune_chip__icon {
  background: #d1e7dd;
  color: #198754;
}
.fortune_chip[data-mood="normal"] .fortune_chip__icon {
  background: #cff4fc;
  color: #087990;
}
.fortune_chip[data-mood="bad"] .fortune_chip__icon {
  background: #fff3cd;
  color: #997404;
}
.fortune_chip[data-mood="danger"] .fortune_chip__icon {
  background: #f8d7da;
  color: #dc3545;
}

.fortune_chip__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #111827;
}

.fortune_chip .fortune_mood {
  font-size: 0.65rem;
  padding: 0.22rem 0.4rem;
}

.fortune_section_grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.fortune_section {
  text-align: left;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #cbd5e1;
  border-radius: 0.9rem;
  padding: 1rem 1.05rem 1.05rem;
  color: #1f2937;
  min-height: 100%;
  scroll-margin-top: 5rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.15s ease;
}

.fortune_section:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.fortune_section[data-mood="very_good"] { border-left-color: #0d6efd; }
.fortune_section[data-mood="good"] { border-left-color: #198754; }
.fortune_section[data-mood="normal"] { border-left-color: #0aa2c0; }
.fortune_section[data-mood="bad"] { border-left-color: #ffc107; }
.fortune_section[data-mood="danger"] { border-left-color: #dc3545; }

.fortune_section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #f1f5f9;
}

.fortune_section__title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  color: #111827;
  letter-spacing: -0.01em;
}

.fortune_section__title i {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: #f3f4f6;
  color: #4b5563;
}

.fortune_section[data-mood="very_good"] .fortune_section__title i {
  background: #cfe2ff;
  color: #0d6efd;
}
.fortune_section[data-mood="good"] .fortune_section__title i {
  background: #d1e7dd;
  color: #198754;
}
.fortune_section[data-mood="normal"] .fortune_section__title i {
  background: #cff4fc;
  color: #087990;
}
.fortune_section[data-mood="bad"] .fortune_section__title i {
  background: #fff3cd;
  color: #997404;
}
.fortune_section[data-mood="danger"] .fortune_section__title i {
  background: #f8d7da;
  color: #dc3545;
}

.fortune_section__summary {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.65;
  color: #1f2937;
}

.fortune_detail_toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem 0.15rem;
  border: 0;
  background: transparent;
  color: #4b5563;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.fortune_detail_toggle i {
  font-size: 0.7rem;
  transition: transform 0.15s ease;
}

.fortune_detail_toggle.is-open i {
  transform: rotate(180deg);
}

.fortune_section__detail {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #e5e7eb;
}

.fortune_item_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.fortune_item {
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.fortune_item__head {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  max-width: 100%;
}

.fortune_item__title {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.fortune_item__help {
  font-size: 0.85em;
  font-weight: 400;
  color: #94a3b8;
  cursor: help;
  line-height: 1;
}

.fortune_item__help:hover {
  color: #f59e0b;
}

.fortune_stars {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.02rem;
  font-size: 0.78rem;
  line-height: 1;
  transform: translateY(-0.5px);
}

.fortune_star {
  color: #e5e7eb;
}

.fortune_star.is-on {
  color: #f59e0b;
}

.fortune_item__line {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #4b5563;
}

.fortune_empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 140px;
  padding: 1.25rem 1rem;
  color: #9ca3af;
  text-align: center;
}

.fortune_empty__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 1.1rem;
}

.fortune_empty__title {
  font-weight: 700;
  color: #6b7280;
  font-size: 0.95rem;
}

.fortune_empty__desc {
  font-size: 0.82rem;
  max-width: 18rem;
  line-height: 1.4;
  color: #9ca3af;
}

.fortune_loading {
  display: grid;
  gap: 0.65rem;
  padding: 0.25rem 0;
}

.fortune_skel {
  height: 4.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, #f3f4f6, #e5e7eb, #f3f4f6);
  background-size: 200% 100%;
  animation: fortune_shimmer 1.2s ease-in-out infinite;
}

.fortune_skel--chips { height: 3.8rem; }

@keyframes fortune_shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.fortune_daily_row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 1.15rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  overflow: hidden;
}

.fortune_daily {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.85rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  color: inherit;
}

.fortune_daily + .fortune_daily {
  border-left: 1px solid #eef2f7;
}

.fortune_daily__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: inherit;
}

.fortune_daily__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: inherit;
  word-break: keep-all;
}

.fortune_daily__swatch {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {
  .fortune_chip_row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fortune_daily_row {
    grid-template-columns: 1fr;
  }
  .fortune_daily + .fortune_daily {
    border-left: none;
    border-top: 1px solid #eef2f7;
  }
  .fortune_section__summary,
  .fortune_item__line {
    font-size: 0.88rem;
    line-height: 1.62;
  }
}

/* ===== 다크모드 ===== */
[data-bs-theme="dark"] #fortune_page {
  --fortune-ink: var(--bs-body-color);
  --fortune-muted: #94a3b8;
  --fortune-line: rgba(255, 255, 255, 0.1);
  --fortune-soft: rgba(255, 255, 255, 0.04);
  color: var(--bs-body-color);
  background: none;
}

[data-bs-theme="dark"] #fortune_page .fortune_panel__title,
[data-bs-theme="dark"] #fortune_page .fortune_head__sub {
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] #fortune_page .maple_speaker_swiper_wrap.bg-white {
  background-color: #1b2230 !important;
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] #fortune_page .fortune_char_card {
  background:
    linear-gradient(145deg, rgba(17, 22, 32, 0.9), rgba(17, 22, 32, 0.78)),
    url('/upload/asset/background/단풍나무언덕.png') center / cover;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

[data-bs-theme="dark"] #fortune_page .fortune_char_card__thumb_wrap {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] #fortune_page .fortune_pill {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}

[data-bs-theme="dark"] #fortune_page .fortune_pill--job {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(125, 211, 252, 0.35);
  color: #bae6fd;
}

[data-bs-theme="dark"] #fortune_page .fortune_char_card__name {
  color: #f8fafc;
  text-shadow: none;
}

[data-bs-theme="dark"] #fortune_page .fortune_char_card__meta,
[data-bs-theme="dark"] #fortune_page .fortune_char_card__meta b,
[data-bs-theme="dark"] #fortune_page .fortune_dot {
  color: #e5e7eb;
}

[data-bs-theme="dark"] #fortune_page .fortune_char_card__link {
  color: #7dd3fc;
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(125, 211, 252, 0.35);
}

[data-bs-theme="dark"] #fortune_page .fortune_char_card__link:hover {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.2);
}

[data-bs-theme="dark"] .fortune_summary_card {
  background: #1b2230;
  color: var(--bs-body-color);
  border-top-color: rgba(255, 255, 255, 0.1);
  border-right-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

[data-bs-theme="dark"] .fortune_summary_card[data-mood="very_good"] { border-left-color: #6ea8fe; }
[data-bs-theme="dark"] .fortune_summary_card[data-mood="good"] { border-left-color: #75b798; }
[data-bs-theme="dark"] .fortune_summary_card[data-mood="normal"] { border-left-color: #6edff6; }
[data-bs-theme="dark"] .fortune_summary_card[data-mood="bad"] { border-left-color: #ffda6a; }
[data-bs-theme="dark"] .fortune_summary_card[data-mood="danger"] { border-left-color: #ea868f; }

[data-bs-theme="dark"] .fortune_summary_card__title,
[data-bs-theme="dark"] .fortune_summary_text {
  color: inherit;
}

[data-bs-theme="dark"] .fortune_summary_card__cta {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(125, 211, 252, 0.35);
  color: #7dd3fc;
}

[data-bs-theme="dark"] .fortune_summary_card__cta:hover {
  background: rgba(14, 165, 233, 0.26);
  color: #e0f2fe;
}

[data-bs-theme="dark"] .fortune_result_root,
[data-bs-theme="dark"] .fortune_overall_line,
[data-bs-theme="dark"] .fortune_section,
[data-bs-theme="dark"] .fortune_section__title,
[data-bs-theme="dark"] .fortune_section__summary,
[data-bs-theme="dark"] .fortune_overall_line__text,
[data-bs-theme="dark"] .fortune_score,
[data-bs-theme="dark"] .fortune_item__title,
[data-bs-theme="dark"] .fortune_item__help,
[data-bs-theme="dark"] .fortune_item__line,
[data-bs-theme="dark"] .fortune_detail_toggle,
[data-bs-theme="dark"] .fortune_chip,
[data-bs-theme="dark"] .fortune_chip__label,
[data-bs-theme="dark"] .fortune_daily,
[data-bs-theme="dark"] .fortune_daily__kicker,
[data-bs-theme="dark"] .fortune_daily__value {
  color: inherit;
}

[data-bs-theme="dark"] .fortune_section__detail {
  border-top-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .fortune_item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .fortune_star {
  color: #4b5563;
}

[data-bs-theme="dark"] .fortune_star.is-on {
  color: #fbbf24;
}

[data-bs-theme="dark"] .fortune_overall_line,
[data-bs-theme="dark"] .fortune_daily_row {
  background: #1b2230;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .fortune_result_root[data-mood="very_good"] .fortune_overall_line { border-left-color: #6ea8fe; }
[data-bs-theme="dark"] .fortune_result_root[data-mood="good"] .fortune_overall_line { border-left-color: #75b798; }
[data-bs-theme="dark"] .fortune_result_root[data-mood="normal"] .fortune_overall_line { border-left-color: #6edff6; }
[data-bs-theme="dark"] .fortune_result_root[data-mood="bad"] .fortune_overall_line { border-left-color: #ffda6a; }
[data-bs-theme="dark"] .fortune_result_root[data-mood="danger"] .fortune_overall_line { border-left-color: #ea868f; }

[data-bs-theme="dark"] .fortune_overall_line .fortune_date,
[data-bs-theme="dark"] .fortune_disclaimer,
[data-bs-theme="dark"] .fortune_summary_card .fortune_disclaimer {
  color: #94a3b8;
}

[data-bs-theme="dark"] .fortune_section {
  background: #1b2230;
  border-top-color: rgba(255, 255, 255, 0.1);
  border-right-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

[data-bs-theme="dark"] .fortune_section[data-mood="very_good"] { border-left-color: #6ea8fe; }
[data-bs-theme="dark"] .fortune_section[data-mood="good"] { border-left-color: #75b798; }
[data-bs-theme="dark"] .fortune_section[data-mood="normal"] { border-left-color: #6edff6; }
[data-bs-theme="dark"] .fortune_section[data-mood="bad"] { border-left-color: #ffda6a; }
[data-bs-theme="dark"] .fortune_section[data-mood="danger"] { border-left-color: #ea868f; }

[data-bs-theme="dark"] .fortune_daily {
  background: transparent;
  box-shadow: none;
}

[data-bs-theme="dark"] .fortune_daily + .fortune_daily {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .fortune_section__head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .fortune_chip[data-mood="very_good"] { background: rgba(13, 110, 253, 0.16); border-color: rgba(110, 168, 254, 0.4); }
[data-bs-theme="dark"] .fortune_chip[data-mood="good"] { background: rgba(25, 135, 84, 0.16); border-color: rgba(117, 183, 152, 0.4); }
[data-bs-theme="dark"] .fortune_chip[data-mood="normal"] { background: rgba(13, 202, 240, 0.14); border-color: rgba(110, 223, 246, 0.4); }
[data-bs-theme="dark"] .fortune_chip[data-mood="bad"] { background: rgba(255, 193, 7, 0.14); border-color: rgba(255, 218, 106, 0.4); }
[data-bs-theme="dark"] .fortune_chip[data-mood="danger"] { background: rgba(220, 53, 69, 0.16); border-color: rgba(234, 134, 143, 0.4); }

[data-bs-theme="dark"] .fortune_mood--very_good { background: rgba(13, 110, 253, 0.22); color: #9ec5fe; border-color: rgba(110, 168, 254, 0.45); }
[data-bs-theme="dark"] .fortune_mood--good { background: rgba(25, 135, 84, 0.22); color: #75b798; border-color: rgba(117, 183, 152, 0.45); }
[data-bs-theme="dark"] .fortune_mood--normal { background: rgba(13, 202, 240, 0.18); color: #9eeaf9; border-color: rgba(110, 223, 246, 0.45); }
[data-bs-theme="dark"] .fortune_mood--bad { background: rgba(255, 193, 7, 0.18); color: #ffda6a; border-color: rgba(255, 218, 106, 0.45); }
[data-bs-theme="dark"] .fortune_mood--danger { background: rgba(220, 53, 69, 0.22); color: #ea868f; border-color: rgba(234, 134, 143, 0.45); }

[data-bs-theme="dark"] .fortune_empty__icon,
[data-bs-theme="dark"] .fortune_section__title i,
[data-bs-theme="dark"] .fortune_chip__icon {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

[data-bs-theme="dark"] .fortune_chip[data-mood="very_good"] .fortune_chip__icon,
[data-bs-theme="dark"] .fortune_section[data-mood="very_good"] .fortune_section__title i {
  background: rgba(13, 110, 253, 0.24);
  color: #9ec5fe;
}
[data-bs-theme="dark"] .fortune_chip[data-mood="good"] .fortune_chip__icon,
[data-bs-theme="dark"] .fortune_section[data-mood="good"] .fortune_section__title i {
  background: rgba(25, 135, 84, 0.24);
  color: #75b798;
}
[data-bs-theme="dark"] .fortune_chip[data-mood="normal"] .fortune_chip__icon,
[data-bs-theme="dark"] .fortune_section[data-mood="normal"] .fortune_section__title i {
  background: rgba(13, 202, 240, 0.22);
  color: #9eeaf9;
}
[data-bs-theme="dark"] .fortune_chip[data-mood="bad"] .fortune_chip__icon,
[data-bs-theme="dark"] .fortune_section[data-mood="bad"] .fortune_section__title i {
  background: rgba(255, 193, 7, 0.2);
  color: #ffda6a;
}
[data-bs-theme="dark"] .fortune_chip[data-mood="danger"] .fortune_chip__icon,
[data-bs-theme="dark"] .fortune_section[data-mood="danger"] .fortune_section__title i {
  background: rgba(220, 53, 69, 0.24);
  color: #ea868f;
}

[data-bs-theme="dark"] .fortune_skel {
  background: linear-gradient(90deg, #243044, #2c3a52, #243044);
  background-size: 200% 100%;
}

[data-bs-theme="dark"] .fortune_guild_badge {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(252, 211, 77, 0.35);
}

[data-bs-theme="dark"] .fortune_age_badge {
  color: #5eead4;
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(94, 234, 212, 0.35);
}

[data-bs-theme="dark"] #fortune_page .fortune_share_open {
  background: rgba(15, 23, 42, 0.55);
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.16);
}

[data-bs-theme="dark"] #fortune_page .fortune_share_open:hover,
[data-bs-theme="dark"] #fortune_page .fortune_share_open:focus {
  color: #9ec5fe;
  border-color: rgba(158, 197, 254, 0.7);
  background: #243044;
}

/* ===== 공유 카드 (캡처용, 테마와 무관하게 밝은 종이) ===== */
.fortune_share_modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
}

.fortune_share_modal.is-open {
  display: block;
}

.fortune_share_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, 0.72);
}

.fortune_share_panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 24px));
  max-height: min(94vh, 900px);
  overflow: hidden;
  background: #16181f;
  color: #e8edf4;
  border-radius: 18px;
  padding: 0.7rem 0.85rem 0.9rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.fortune_share_handle {
  display: none;
  width: 36px;
  height: 4px;
  margin: 0.1rem auto 0.65rem;
  border-radius: 999px;
  background: #6c757d;
}

.fortune_share_title {
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 0.7rem;
}

.fortune_share_card_scroll {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.fortune_share_card {
  width: 360px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 0.85rem 0.7rem;
  border-radius: 16px;
  background: #fffdf8;
  color: #1f2937;
  border: 1px solid #eadfce;
  font-family: 'NEXON Lv2 Gothic', sans-serif;
  text-align: left;
}

.fortune_share_card__brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.fortune_share_card__logo {
  width: 22px;
  height: 22px;
}

.fortune_share_card__brand_name {
  font-size: 0.92rem;
  color: #111827;
}

.fortune_share_card__date {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
}

.fortune_share_card__who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  border: 1px solid #f0e2cc;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(255, 247, 234, 0.86)),
    url('/upload/asset/background/단풍나무언덕.png') center 28% / cover;
}

.fortune_share_card__thumb_wrap {
  flex: 0 0 auto;
  width: 84px;
  height: 100px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 10px rgba(120, 72, 24, 0.12);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.fortune_share_card__thumb_wrap[hidden] {
  display: none !important;
}

.fortune_share_card__thumb {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.fortune_share_card__who_body {
  flex: 1;
  min-width: 0;
}

.fortune_share_card__name_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem 0.4rem;
}

.fortune_share_card__name {
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  word-break: break-all;
  color: #111827;
}

.fortune_share_card__guild {
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #b45309;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.34);
}

.fortune_share_card__guild[hidden] {
  display: none !important;
}

.fortune_share_card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.4rem;
}

.fortune_share_pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #374151;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
}

.fortune_share_pill img {
  width: 0.9rem;
  height: 0.9rem;
  object-fit: contain;
}

.fortune_share_pill.is-job {
  background: rgba(14, 165, 233, 0.14);
  border-color: rgba(14, 165, 233, 0.32);
  color: #0369a1;
}

.fortune_share_pill.is-day {
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(20, 184, 166, 0.32);
  color: #0f766e;
}

.fortune_share_card__overall {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #f0e6d6;
  border-left-width: 4px;
  border-left-color: #0aa2c0;
}

.fortune_share_card[data-mood="very_good"] .fortune_share_card__overall { border-left-color: #0d6efd; }
.fortune_share_card[data-mood="good"] .fortune_share_card__overall { border-left-color: #198754; }
.fortune_share_card[data-mood="normal"] .fortune_share_card__overall { border-left-color: #0aa2c0; }
.fortune_share_card[data-mood="bad"] .fortune_share_card__overall { border-left-color: #ffc107; }
.fortune_share_card[data-mood="danger"] .fortune_share_card__overall { border-left-color: #dc3545; }

.fortune_share_card__overall .fortune_overall_line__badge {
  margin-top: 0.05rem;
  min-width: 2.8rem;
}

.fortune_share_card__overall .fortune_score {
  font-size: 1rem;
}

.fortune_share_card__summary {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.7;
  font-weight: 700;
  color: #1f2937;
}

.fortune_share_card__dailies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.fortune_share_card__dailies[hidden] {
  display: none !important;
}

.fortune_share_daily {
  min-width: 0;
  padding: 0.4rem 0.3rem 0.45rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #f0e6d6;
  text-align: center;
}

.fortune_share_daily span {
  display: block;
  font-size: 0.62rem;
  color: #6b7280;
  margin-bottom: 0.15rem;
}

.fortune_share_daily strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: #111827;
  line-height: 1.25;
}

.fortune_share_swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex: 0 0 auto;
}

.fortune_share_sec {
  margin: 0 0 0.45rem;
  padding: 0.45rem 0.55rem 0.4rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #f0e6d6;
  border-left-width: 4px;
  border-left-color: #0aa2c0;
}

.fortune_share_sec[data-mood="very_good"] { border-left-color: #0d6efd; }
.fortune_share_sec[data-mood="good"] { border-left-color: #198754; }
.fortune_share_sec[data-mood="normal"] { border-left-color: #0aa2c0; }
.fortune_share_sec[data-mood="bad"] { border-left-color: #ffc107; }
.fortune_share_sec[data-mood="danger"] { border-left-color: #dc3545; }

.fortune_share_sec__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.fortune_share_sec__head h4 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #111827;
}

.fortune_share_sec__lines p {
  margin: 0;
  padding: 0.28rem 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #374151;
  border-top: 1px solid #f6efe4;
}

.fortune_share_sec__lines p:first-child {
  border-top: 0;
  font-weight: 700;
  color: #1f2937;
}

.fortune_share_card .fortune_mood--very_good,
[data-bs-theme="dark"] .fortune_share_card .fortune_mood--very_good {
  background: #cfe2ff;
  color: #052c65;
  border-color: #9ec5fe;
}
.fortune_share_card .fortune_mood--good,
[data-bs-theme="dark"] .fortune_share_card .fortune_mood--good {
  background: #d1e7dd;
  color: #0a3622;
  border-color: #a3cfbb;
}
.fortune_share_card .fortune_mood--normal,
[data-bs-theme="dark"] .fortune_share_card .fortune_mood--normal {
  background: #cff4fc;
  color: #055160;
  border-color: #9eeaf9;
}
.fortune_share_card .fortune_mood--bad,
[data-bs-theme="dark"] .fortune_share_card .fortune_mood--bad {
  background: #fff3cd;
  color: #664d03;
  border-color: #ffe69c;
}
.fortune_share_card .fortune_mood--danger,
[data-bs-theme="dark"] .fortune_share_card .fortune_mood--danger {
  background: #f8d7da;
  color: #58151c;
  border-color: #f1aeb5;
}

.fortune_share_card__cta {
  margin: 0.7rem 0 0;
  padding: 0.45rem 0.55rem;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 600;
  color: #8a5a2b;
  background: rgba(255, 244, 220, 0.85);
  border: 1px solid rgba(214, 168, 96, 0.35);
  border-radius: 8px;
}

.fortune_share_card__note {
  margin: 0.4rem 0 0;
  font-size: 0.66rem;
  line-height: 1.4;
  color: #9ca3af;
}

.fortune_share_card__foot {
  margin-top: 0.3rem;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: #9ca3af;
}

.fortune_share_actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.fortune_share_action {
  border: 0;
  border-radius: 10px;
  padding: 0.7rem 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.fortune_share_action.is-image,
.fortune_share_action.is-link {
  background: #2b3038;
  color: #e9ecef;
}

.fortune_share_action.is-kakao {
  background: #FEE500;
  color: #191919;
}

.fortune_share_close {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  border: 0;
  background: transparent;
  color: #9aa3ad;
  font-weight: 600;
  padding: 0.45rem;
  cursor: pointer;
}

.fortune_capture_preview {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(8, 10, 16, 0.72);
}

.fortune_capture_preview.is-open {
  display: block;
}

.fortune_capture_panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(92vh, 760px);
  overflow: auto;
  background: #16181f;
  color: #e8edf4;
  border-radius: 18px 18px 0 0;
  padding: 0.75rem 1rem calc(0.95rem + env(safe-area-inset-bottom));
}

.fortune_capture_title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.3rem;
}

.fortune_capture_hint {
  font-size: 0.78rem;
  color: #9aa3ad;
  text-align: center;
  margin-bottom: 0.7rem;
}

.fortune_capture_img {
  display: block;
  width: 100%;
  max-height: 52vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fffdf8;
}

.fortune_capture_actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.fortune_capture_actions button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 0.72rem 0.5rem;
  font-weight: 700;
  cursor: pointer;
}

.fortune_capture_share {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.fortune_capture_save {
  background: #2b3038;
  color: #e9ecef;
}

.fortune_capture_close {
  background: #3a4046;
  color: #ced4da;
}

body.fortune-share-open {
  overflow: hidden;
}

body.fortune-share-open #overlay {
  z-index: 2147483002;
}

body.fortune-share-open iframe[id^="p_"] {
  display: none !important;
}

@media (max-width: 768px) {
  .fortune_share_panel {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: auto;
    max-height: min(94vh, 900px);
    border-radius: 18px 18px 0 0;
    padding-bottom: calc(0.9rem + env(safe-area-inset-bottom));
  }
  .fortune_share_handle {
    display: block;
  }
}
