/* ============================================================================
 * [운명귀환 #20033 삼태할매의 아기점지 복단지 전용]
 * 모바일 390px 백자 한지 매거진 결과 뷰어 & 10대 스크롤 모션 스타일시트
 * ============================================================================ */

.st-mag-shell {
  --st-bg: #FFFFFF;
  --st-outer-bg: #F4F4F6;
  --st-card-bg: #F7F6F3;
  --st-card-border: #E5E2DC;
  --st-memo-bg: #FAF6EC;
  --st-memo-border: #E9D9B4;
  --st-table-border: #C5B8A8;
  --st-ink: #121317;
  --st-reading: #16171B;
  --st-secondary: #3A3C42;
  --st-muted: #6B6E76;
  --st-crimson: #A8352A;
  --st-crimson-deep: #8B1A1A;
  --st-jade: #216654;
  --st-jade-bg: rgba(46, 139, 114, 0.13);
  --st-gold: #B8831A;
  --st-gutter: 26px;

  min-height: 100vh;
  background: var(--st-outer-bg);
  color: var(--st-ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.st-mag-column {
  max-width: 512px;
  width: 100%;
  margin: 0 auto;
  background: var(--st-bg);
  padding-bottom: 118px;
  position: relative;
  overflow-x: clip;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
}

/* 상단 플로팅 미니멀 네비바 */
.st-hero-topbar {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.st-hero-nav-pill {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(18, 19, 23, 0.44);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

/* 1. 상단 풀캔버스 무테두리 히어로 (원본 사진 비율 보존 + 하단 심리스 페이드) */
.st-hero-wrap {
  position: relative;
  width: 100%;
  background: #1B1815;
  overflow: hidden;
}

.st-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 0;
}

.st-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 19, 23, 0.24) 0%,
    rgba(18, 19, 23, 0) 24%,
    rgba(18, 19, 23, 0) 64%,
    rgba(18, 19, 23, 0.72) 88%,
    #FFFFFF 100%
  );
  pointer-events: none;
}

.st-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 22px 22px;
  z-index: 2;
}

.st-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.st-hero-badge {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(18, 19, 23, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: -0.01em;
}

.st-hero-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  margin: 0 0 6px;
  word-break: keep-all;
}

.st-hero-sub {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  margin: 0 0 14px;
  word-break: keep-all;
}

.st-hero-halmae-bubble {
  position: relative;
  z-index: 3;
  margin: -10px 18px 18px;
  background: #FFFFFF;
  border: 1px solid var(--st-card-border);
  border-left: 4px solid var(--st-crimson);
  border-radius: 16px;
  padding: 15px 16px;
  box-shadow: 0 10px 26px rgba(18, 19, 23, 0.08);
  color: var(--st-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.66;
  word-break: keep-all;
}

/* 2. 상단 고정 스크롤 추적 목차 캡슐바 (Sticky TOC) */
.st-sticky-toc {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 16px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.st-sticky-toc::-webkit-scrollbar {
  display: none;
}

.st-toc-pill {
  flex: 0 0 auto;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #E2E4E9;
  background: #FFFFFF;
  color: #4B4E57;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.st-toc-pill.is-active {
  background: #121317;
  border-color: #121317;
  color: #FFFFFF;
  font-weight: 700;
}

/* 3. 공통 위젯 섹션 & 매거진 챕터 컨테이너 */
.st-widget-wrap {
  padding: 34px 16px 44px;
  border-bottom: 8px solid #F4F4F6;
}

.st-widget-card {
  background: var(--st-card-bg);
  border: 1px solid var(--st-card-border);
  border-radius: 20px;
  padding: 22px 16px 20px;
}

.st-widget-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--st-crimson);
  margin-bottom: 5px;
}

.st-widget-h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--st-ink);
  margin: 0 0 6px;
  word-break: keep-all;
}

.st-widget-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--st-muted);
  margin: 0 0 16px;
  word-break: keep-all;
}

/* 4. 부부 듀얼 전환 탭 & 인터랙티브 10행 사주원국 명식표 */
.st-person-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #ECEAE4;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.st-person-btn {
  padding: 10px 8px;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--st-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.st-person-btn.is-active {
  background: #FFFFFF;
  color: var(--st-ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.st-rel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.st-rel-pill {
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #D5D0C5;
  background: #FFFFFF;
  color: var(--st-ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.st-rel-pill.is-active {
  background: var(--st-ink);
  border-color: var(--st-ink);
  color: #FFFFFF;
}

.st-rel-explain {
  background: var(--st-memo-bg);
  border: 1px solid var(--st-memo-border);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--st-ink);
  margin-bottom: 12px;
  word-break: keep-all;
}

.st-bazi-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #FFFFFF;
  border-top: 1.5px solid var(--st-ink);
  border-left: 1px solid var(--st-table-border);
}

.st-bazi-table th,
.st-bazi-table td {
  width: 21%;
  border-right: 1px solid var(--st-table-border);
  border-bottom: 1px solid var(--st-table-border);
  text-align: center;
  vertical-align: middle;
  padding: 8px 3px;
  transition: opacity 0.28s ease, filter 0.28s ease;
}

.st-bazi-table th:first-child,
.st-bazi-table td:first-child {
  width: 16%;
}

.st-bazi-table .st-col-dimmed {
  opacity: 0.25;
  filter: grayscale(0.4);
}

.st-bazi-row-label {
  background: #F7F6F3;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--st-secondary);
  line-height: 1.3;
}

.st-bazi-head-ko {
  font-size: 16px;
  font-weight: 700;
  color: var(--st-ink);
  line-height: 1.2;
}

.st-bazi-head-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--st-muted);
  margin-top: 2px;
}

.st-bazi-ship {
  font-size: 15px;
  font-weight: 700;
  color: var(--st-ink);
}

.st-glyph-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
}

.st-el-목 { background: #4A9B9B; color: #FFFFFF; }
.st-el-화 { background: #C45C4A; color: #FFFFFF; }
.st-el-토 { background: #D4B896; color: #121317; }
.st-el-금 { background: #E8E8E8; color: #121317; }
.st-el-수 { background: #1D1D1D; color: #FFFFFF; }
.st-el-미상 { background: #F7F6F3; color: #9A9CA3; }

.st-glyph-hanja {
  font-family: "Noto Serif KR", "Gowun Batang", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.st-glyph-sub {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  opacity: 0.92;
}

.st-bazi-cell-sm {
  font-size: 13px;
  font-weight: 600;
  color: var(--st-ink);
  line-height: 1.38;
  word-break: keep-all;
}

/* 5. 오행 오각형 도미노 차트 & 태궁 조후 밸런스 */
.st-fe-chip {
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition: opacity 0.48s ease, transform 0.48s cubic-bezier(0.2, 0.85, 0.2, 1);
}
.st-inview .st-fe-chip-0 { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.05s; }
.st-inview .st-fe-chip-1 { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.23s; }
.st-inview .st-fe-chip-2 { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.41s; }
.st-inview .st-fe-chip-3 { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.59s; }
.st-inview .st-fe-chip-4 { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.77s; }

.st-gauge-track {
  height: 10px;
  background: #E7E2D8;
  border-radius: 999px;
  overflow: hidden;
}

.st-gauge-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 6. 신강·신약 S-커브 스트로크 애니메이션 & 득령·득지·득시·득세 4타일 */
.st-sinyak-curve {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  transition: stroke-dashoffset 0.95s ease-out;
}
.st-inview .st-sinyak-curve {
  stroke-dashoffset: 0;
}

.st-deuk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.st-deuk-tile {
  min-height: 64px;
  border-radius: 12px;
  border: 1px solid #E2DED5;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
}

.st-deuk-tile.is-gained {
  border-color: var(--st-crimson);
  background: rgba(168, 53, 42, 0.06);
}

.st-proof-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.st-proof-details summary {
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  color: var(--st-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.st-proof-details summary::-webkit-details-marker {
  display: none;
}

/* 7. 사주 희귀도 76px 카운트다운 & 100인 실루엣 군중 */
.st-rarity-big {
  font-size: 68px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--st-ink);
}

.st-crowd-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  margin-top: 16px;
}

.st-crowd-dot {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  border-radius: 5px;
  background: #E5E2DC;
  transition: background-color 0.45s ease, transform 0.45s ease;
}

.st-crowd-dot.is-me {
  background: var(--st-crimson);
  transform: scale(1.08);
}

.st-crowd-dot.is-peer {
  background: #D49B94;
}

/* 8. 향후 3개년 착상 적기 슬롯머신 오도미터(Odometer) 숫자 롤링 */
.st-odo-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 12px;
}

.st-odo-Viewport {
  height: 86px;
  overflow: hidden;
  display: inline-flex;
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.st-odo-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.7s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.st-odo-digit {
  height: 86px;
  line-height: 86px;
  font-size: 82px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--st-ink);
}

/* 9. 매거진 본문 챕터 (338px 텍스트 컬럼 · 27px H2 · 112px 한자 워터마크 · 23px 타자기 · 16px 본문) */
.st-mag-chapter {
  padding: 42px var(--st-gutter) 44px;
  border-bottom: 8px solid #F4F4F6;
  position: relative;
}

.st-ch-head {
  position: relative;
  margin-bottom: 24px;
}

.st-ch-watermark {
  position: absolute;
  right: -8px;
  top: -14px;
  font-family: "Noto Serif KR", serif;
  font-size: 104px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(18, 19, 23, 0.03);
  -webkit-text-stroke: 0.8px rgba(18, 19, 23, 0.11);
  pointer-events: none;
  user-select: none;
}

.st-ch-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--st-muted);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.st-ch-h2 {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.33;
  letter-spacing: -0.025em;
  color: var(--st-ink);
  margin: 0;
  word-break: keep-all;
  position: relative;
  z-index: 1;
}

.st-summary-box {
  margin: 22px 0 30px;
}

.st-summary-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--st-muted);
  margin-bottom: 8px;
}

.st-typer-stage {
  position: relative;
  font-size: 22.5px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: var(--st-ink);
  word-break: keep-all;
}

.st-typer-ghost {
  visibility: hidden;
  pointer-events: none;
}

.st-typer-live {
  position: absolute;
  inset: 0;
}

.st-typer-live b,
.st-typer-ghost b {
  color: var(--st-crimson);
  font-weight: 900;
}

.st-typer-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--st-crimson);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: stCaretBlink 1s steps(1) infinite;
}

@keyframes stCaretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.st-summary-rule {
  width: 44px;
  height: 3px;
  background: var(--st-ink);
  margin-top: 18px;
}

.st-sec-block {
  margin-top: 34px;
}

.st-sec-h3-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 14px;
}

.st-sec-num {
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: var(--st-ink);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.st-sec-h3 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--st-ink);
  margin: 0;
  word-break: keep-all;
}

.st-prose p {
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.88;
  letter-spacing: -0.005em;
  color: var(--st-reading);
  margin: 0;
  word-break: keep-all;
}

.st-prose p + p {
  margin-top: 18px;
}

.st-prose-subtag {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--st-ink);
  margin: 24px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--st-crimson);
  line-height: 1.42;
  word-break: keep-all;
}

/* 주홍 만년필 밑줄 1.2초 드로잉 액션 */
.st-ink-strong {
  font-weight: 750;
  color: var(--st-ink);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--st-crimson), var(--st-crimson));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 1.2s cubic-bezier(0.45, 0, 0.25, 1);
}

.st-ink-strong.is-drawn {
  background-size: 100% 2px;
}

/* 사주 용어 원터치 옥색 점선 버튼 */
.st-term-btn {
  appearance: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--st-jade);
  background: var(--st-jade-bg);
  border-radius: 4px;
  padding: 0 4px;
  text-decoration: underline dotted 1.5px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.st-term-dot {
  font-size: 10px;
  vertical-align: super;
  margin-left: 1px;
  color: var(--st-jade);
}

/* 10. '말아 두기' 입체 3D 두루마리 사주 근거 메모지 */
.st-memo-wrap {
  position: relative;
  margin: 32px 0 10px;
  background: var(--st-memo-bg);
  border: 1px solid var(--st-memo-border);
  border-radius: 14px;
  padding: 20px 16px 16px;
  background-image: radial-gradient(rgba(184, 131, 26, 0.14) 1px, transparent 1px);
  background-size: 16px 16px;
  transition: all 0.35s ease;
}

.st-memo-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  width: 86px;
  height: 20px;
  background: rgba(233, 217, 180, 0.78);
  border: 1px solid rgba(184, 131, 26, 0.22);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.st-memo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.st-memo-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--st-gold);
}

.st-memo-roll-btn {
  border: 1px solid #DFCFA6;
  background: #FFFFFF;
  color: var(--st-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.st-memo-body {
  overflow: hidden;
  max-height: 520px;
  opacity: 1;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.st-memo-wrap.is-rolled .st-memo-body {
  max-height: 0;
  opacity: 0;
}

.st-memo-wrap.is-rolled::after {
  content: "";
  display: block;
  height: 14px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #F5ECD6 0%, #E2D0A7 55%, #C9B282 100%);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
}

/* 무테두리 에디토리얼 스토리보드 컷 (원본 비율 100% 그대로 · 프레임/테두리/안개 0%) */
.st-editorial-cut {
  position: relative;
  width: 100%;
  margin: 0;
  background: #FFFFFF;
}

.st-editorial-cut img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 0;
}

/* 각 사주 전환용 9:16 풀스크린 무테두리 표지 화보 + 정중앙 타이틀 각인 */
.st-book-cover-9x16 {
  position: relative;
  width: 100%;
  margin: 0;
  background: #1A1613;
  overflow: hidden;
}

.st-book-cover-9x16 img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 0;
}

.st-book-cover-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(14, 12, 10, 0.58) 0%, rgba(14, 12, 10, 0.28) 38%, rgba(14, 12, 10, 0) 72%),
    linear-gradient(180deg, rgba(14, 12, 10, 0.14) 0%, rgba(14, 12, 10, 0) 20%, rgba(14, 12, 10, 0) 84%, rgba(14, 12, 10, 0.28) 100%);
  pointer-events: none;
}

.st-book-cover-center {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
  z-index: 2;
  padding: 10px 8px;
}

.st-book-cover-center::before,
.st-book-cover-center::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: rgba(245, 223, 184, 0.72);
  margin: 0 auto;
}

.st-book-cover-center::before {
  margin-bottom: 14px;
}

.st-book-cover-center::after {
  margin-top: 14px;
}

.st-book-cover-vol {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Noto Serif KR", serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #F5DFB8;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.st-book-cover-title {
  font-family: "Noto Serif KR", "Gowun Batang", serif;
  font-size: clamp(27px, 8vw, 34px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.03em;
  color: #FFFDF9;
  margin: 0 0 10px;
  white-space: nowrap;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.9), 0 1px 6px rgba(0, 0, 0, 0.75);
}

.st-book-cover-sub {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(255, 253, 249, 0.92);
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.78);
  word-break: keep-all;
}

/* 6단계 가문 자손 복단지 회전 다이얼 */
.st-dial-needle {
  transform-origin: 160px 150px;
  transform: rotate(-78deg);
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.st-inview .st-dial-needle {
  transform: rotate(var(--st-dial-deg, 46deg));
}

/* 하단 고정 플로팅 바 */
.st-floating-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  width: calc(100% - 32px);
  max-width: 480px;
  z-index: 70;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 8px;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.st-floating-bar.is-hidden-at-bottom {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
}

@media (min-width: 1024px) {
  body:not(.force-mobile-view) .st-floating-bar {
    position: sticky;
    left: auto;
    transform: none;
    margin: -76px auto 14px;
  }
}

.st-cta-primary {
  height: 54px;
  border: none;
  border-radius: 16px;
  background: var(--st-crimson-deep);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 26px rgba(139, 26, 26, 0.34);
  cursor: pointer;
}

.st-cta-secondary {
  height: 54px;
  border: 1px solid #D5D0C5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  color: var(--st-ink);
  font-size: 14.5px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* 사주 용어 사전 바텀시트 모달 */
.st-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 19, 23, 0.52);
  z-index: 120;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.st-modal-backdrop.is-open {
  display: flex;
}

.st-modal-sheet {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 22px 22px 0 0;
  padding: 22px 22px 32px;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.18);
  animation: stSheetUp 0.26s cubic-bezier(0.2, 0.85, 0.2, 1);
}

@keyframes stSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media print {
  .st-sticky-toc,
  .st-floating-bar,
  .st-modal-backdrop {
    display: none !important;
  }
  .st-mag-column {
    max-width: 100%;
    box-shadow: none;
    padding-bottom: 0;
  }
}
