/* ============================================================
   살풀이 : 천기(天機) — 정밀 사주 · 타로 · 프리미엄 리포트
   ============================================================ */
:root {
  --ink: #06050a;
  --ink-2: #0d0a14;
  --panel: rgba(19, 15, 27, 0.82);
  --gold: #d9b978;
  --gold-2: #f6e3ad;
  --gold-3: #8d6f3c;
  --gold-dim: rgba(217, 185, 120, 0.22);
  --plum: #3a1b3f;
  --text: #ece6da;
  --muted: #9c9488;
  --ok: #7ac9a4;
  --warn: #e2a35e;
  --bad: #d9756e;
  --w-wood: #4ade80;
  --w-fire: #f87171;
  --w-earth: #f0b429;
  --w-metal: #d6dbe4;
  --w-water: #60a5fa;
  --r: 18px;
  --serif: 'Noto Serif KR', 'Gowun Batang', serif;
  --sans: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
body.locked { overflow: hidden; height: 100vh; }
.serif { font-family: var(--serif); }
img { display: block; max-width: 100%; }
button { font-family: inherit; color: inherit; }
::selection { background: rgba(217, 185, 120, .3); }

/* 배경 광원 */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(89, 47, 96, 0.35), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(58, 27, 63, 0.3), transparent 70%),
    linear-gradient(180deg, #08060d 0%, #06050a 40%, #040308 100%);
}

/* ---------- 안개 캔버스 ---------- */
#fogCanvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: .9; }
#grainCanvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; opacity: .055; mix-blend-mode: overlay; }
body.clearing #fogCanvas { opacity: .62; transition: opacity 1.8s ease; }

/* ---------- 사운드 토글 ---------- */
#soundBtn {
  position: fixed; top: 16px; right: 16px; z-index: 70;
  display: none; align-items: center; gap: 7px;
  padding: 8px 14px 8px 12px;
  background: rgba(12, 9, 18, .72);
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  font-size: 11.5px; letter-spacing: .04em; color: var(--gold-2);
  cursor: pointer; backdrop-filter: blur(10px);
  transition: .25s ease;
}
body.opened #soundBtn { display: flex; }
@media (max-width: 620px) {
  #soundBtn { top: auto; bottom: 16px; right: 12px; padding: 6px 11px 6px 9px; font-size: 10.5px; z-index: 68; opacity: .82; }
}
#soundBtn:hover { border-color: var(--gold); background: rgba(30, 22, 40, .9); }
#soundBtn .bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
#soundBtn .bars i { width: 2px; background: var(--gold); border-radius: 1px; animation: eq 1.1s ease-in-out infinite; }
#soundBtn .bars i:nth-child(1) { height: 5px; animation-delay: 0s; }
#soundBtn .bars i:nth-child(2) { height: 10px; animation-delay: .18s; }
#soundBtn .bars i:nth-child(3) { height: 7px; animation-delay: .34s; }
#soundBtn.off .bars i { animation-play-state: paused; height: 3px; opacity: .5; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 12px; } }

/* ---------- 금박 비단 커튼 ---------- */
.curtain {
  filter: blur(3px);
  position: fixed; top: 0; bottom: 0; width: 51.5%; z-index: 60;
  background:
    repeating-linear-gradient(90deg,
      rgba(0, 0, 0, .55) 0px,
      rgba(96, 24, 34, .92) 22px,
      rgba(46, 10, 17, .97) 46px,
      rgba(120, 34, 44, .88) 70px,
      rgba(30, 6, 12, .98) 92px),
    linear-gradient(180deg, #24080d 0%, #4a0f18 45%, #170407 100%);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .95), 0 0 60px rgba(0, 0, 0, .7);
  transition: transform 2.2s cubic-bezier(.45, .05, .35, 1), filter 1.4s ease;
  will-change: transform;
}
.curtain::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg,
    rgba(217, 185, 120, .0) 0px, rgba(217, 185, 120, .10) 14px,
    rgba(0, 0, 0, .25) 30px, rgba(217, 185, 120, .0) 46px);
  opacity: .55;
}
.curtain::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(217, 185, 120, .18), transparent 18%, transparent 82%, rgba(217, 185, 120, .12));
}
.curtain-left { left: 0; border-right: 2px solid rgba(217, 185, 120, .45); }
.curtain-right { right: 0; border-left: 2px solid rgba(217, 185, 120, .45); }
.curtain .tie {
  position: absolute; top: 0; bottom: 0; width: 26px;
  background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(217,185,120,.16), rgba(0,0,0,.6));
  opacity: .8;
}
.curtain-left .tie { right: 0; }
.curtain-right .tie { left: 0; }
.curtain .rod {
  position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: linear-gradient(180deg, #4d3a18, #b08a45 45%, #3a2a11);
  box-shadow: 0 2px 14px rgba(0,0,0,.8);
}
.curtain .fringe {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background:
    repeating-linear-gradient(90deg, rgba(217,185,120,.55) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, transparent, rgba(120, 34, 44, .9));
  opacity: .55;
}
body.opened .curtain-left { transform: translateX(-103%) skewX(1.5deg); filter: brightness(.55); pointer-events: none; }
body.opened .curtain-right { transform: translateX(103%) skewX(-1.5deg); filter: brightness(.55); pointer-events: none; }
body.opened .curtain { pointer-events: none; }

/* ---------- 구름 장막 (입장 시 좌우로 걷힘) ---------- */
#cloudVeil { position: fixed; inset: 0; z-index: 66; pointer-events: none; overflow: hidden; }
#cloudVeil .half {
  position: absolute; top: -18%; bottom: -18%; width: 100%;
  transition: transform 1.15s cubic-bezier(.16, .84, .24, 1), opacity 1s ease .05s;
  will-change: transform, opacity;
}
/* 1층 — 크고 부드러운 구름 덩어리 */
#cloudVeil .half span {
  position: absolute; inset: 0; display: block;
  filter: blur(8px) brightness(1.22) saturate(.95);
  mix-blend-mode: screen;
  animation: veilDrift 17s ease-in-out infinite alternate;
}
/* 2층 — 작고 촘촘한 구름 겹 */
#cloudVeil .half::after {
  content: ''; position: absolute; inset: 0; display: block;
  filter: blur(5px) brightness(1.3);
  mix-blend-mode: screen; opacity: .85;
  animation: veilDrift2 24s ease-in-out infinite alternate;
}
/* 3층 — 화면 중앙을 가로지르는 옅은 안개 */
#cloudVeil::before {
  content: ''; position: absolute; left: -6%; right: -6%; top: 4%; bottom: 4%;
  background:
    radial-gradient(ellipse 44% 16% at 50% 14%, rgba(236, 232, 248, .30) 0%, rgba(220, 216, 240, .14) 55%, transparent 80%),
    radial-gradient(ellipse 34% 10% at 34% 26%, rgba(244, 241, 254, .24) 0%, transparent 78%),
    radial-gradient(ellipse 46% 15% at 46% 86%, rgba(232, 228, 246, .28) 0%, rgba(216, 212, 238, .12) 55%, transparent 80%);
  filter: blur(24px);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: veilDrift 23s ease-in-out infinite alternate-reverse;
}
body.opened #cloudVeil::before { opacity: 0; transform: scale(1.16); transition: opacity .85s ease, transform 1.2s ease; }
#cloudVeil .left { left: -22%; }
#cloudVeil .right { right: -22%; }
#cloudVeil .left span {
  background:
    radial-gradient(ellipse 27% 8% at 72% 15%, rgba(255,253,255,.78) 0%, rgba(243,239,252,.55) 38%, rgba(214,210,236,.22) 66%, transparent 84%),
    radial-gradient(ellipse 23% 7% at 94% 22%, rgba(252,250,255,.66) 0%, rgba(238,234,250,.45) 38%, rgba(210,206,234,.18) 66%, transparent 84%),
    radial-gradient(ellipse 25% 8% at 54% 30%, rgba(250,248,255,.52) 0%, rgba(234,230,248,.35) 40%, rgba(206,202,232,.14) 68%, transparent 86%),
    radial-gradient(ellipse 28% 9% at 26% 38%, rgba(252,250,255,.62) 0%, rgba(236,232,250,.42) 40%, rgba(208,204,234,.16) 68%, transparent 86%),
    radial-gradient(ellipse 24% 8% at 78% 48%, rgba(255,254,255,.56) 0%, rgba(240,236,250,.38) 40%, rgba(212,208,236,.15) 68%, transparent 86%),
    radial-gradient(ellipse 27% 9% at 44% 60%, rgba(250,248,255,.5) 0%, rgba(232,228,246,.34) 40%, rgba(204,200,230,.13) 68%, transparent 86%),
    radial-gradient(ellipse 26% 8% at 88% 70%, rgba(255,253,255,.64) 0%, rgba(240,236,250,.44) 38%, rgba(212,208,236,.18) 66%, transparent 84%),
    radial-gradient(ellipse 28% 9% at 32% 82%, rgba(252,250,255,.6) 0%, rgba(236,232,250,.4) 40%, rgba(208,204,234,.16) 68%, transparent 86%),
    radial-gradient(ellipse 24% 8% at 64% 91%, rgba(250,248,255,.48) 0%, rgba(232,228,246,.32) 40%, rgba(204,200,230,.12) 68%, transparent 86%),
    radial-gradient(ellipse 28% 10% at 4% 58%, rgba(230,202,152,.14) 0%, transparent 80%);
}
#cloudVeil .right span {
  background:
    radial-gradient(ellipse 27% 8% at 28% 15%, rgba(255,253,255,.76) 0%, rgba(243,239,252,.53) 38%, rgba(214,210,236,.21) 66%, transparent 84%),
    radial-gradient(ellipse 23% 7% at 6% 22%, rgba(252,250,255,.64) 0%, rgba(238,234,250,.44) 38%, rgba(210,206,234,.17) 66%, transparent 84%),
    radial-gradient(ellipse 25% 8% at 46% 30%, rgba(250,248,255,.5) 0%, rgba(234,230,248,.34) 40%, rgba(206,202,232,.14) 68%, transparent 86%),
    radial-gradient(ellipse 28% 9% at 74% 38%, rgba(252,250,255,.6) 0%, rgba(236,232,250,.4) 40%, rgba(208,204,234,.15) 68%, transparent 86%),
    radial-gradient(ellipse 24% 8% at 22% 48%, rgba(255,254,255,.54) 0%, rgba(240,236,250,.37) 40%, rgba(212,208,236,.14) 68%, transparent 86%),
    radial-gradient(ellipse 27% 9% at 56% 60%, rgba(250,248,255,.48) 0%, rgba(232,228,246,.33) 40%, rgba(204,200,230,.12) 68%, transparent 86%),
    radial-gradient(ellipse 26% 8% at 12% 70%, rgba(255,253,255,.62) 0%, rgba(240,236,250,.43) 38%, rgba(212,208,236,.17) 66%, transparent 84%),
    radial-gradient(ellipse 28% 9% at 68% 82%, rgba(252,250,255,.58) 0%, rgba(236,232,250,.39) 40%, rgba(208,204,234,.15) 68%, transparent 86%),
    radial-gradient(ellipse 24% 8% at 36% 91%, rgba(250,248,255,.46) 0%, rgba(232,228,246,.31) 40%, rgba(204,200,230,.12) 68%, transparent 86%),
    radial-gradient(ellipse 28% 10% at 96% 58%, rgba(230,202,152,.13) 0%, transparent 80%);
  animation-direction: alternate-reverse;
  animation-duration: 20s;
}
#cloudVeil .left::after {
  background:
    radial-gradient(ellipse 17% 5% at 86% 11%, rgba(255,254,255,.55) 0%, rgba(240,236,250,.32) 48%, transparent 82%),
    radial-gradient(ellipse 15% 5% at 63% 22%, rgba(252,250,255,.45) 0%, rgba(234,230,248,.26) 48%, transparent 82%),
    radial-gradient(ellipse 18% 5% at 92% 34%, rgba(255,254,255,.5) 0%, rgba(238,234,250,.28) 48%, transparent 82%),
    radial-gradient(ellipse 16% 5% at 40% 45%, rgba(250,248,255,.42) 0%, rgba(232,228,246,.24) 50%, transparent 84%),
    radial-gradient(ellipse 15% 5% at 74% 57%, rgba(255,254,255,.46) 0%, rgba(238,234,250,.26) 48%, transparent 82%),
    radial-gradient(ellipse 17% 5% at 52% 73%, rgba(252,250,255,.4) 0%, rgba(232,228,246,.22) 50%, transparent 84%),
    radial-gradient(ellipse 16% 5% at 90% 85%, rgba(255,254,255,.48) 0%, rgba(238,234,250,.26) 48%, transparent 82%);
}
#cloudVeil .right::after {
  background:
    radial-gradient(ellipse 17% 5% at 14% 12%, rgba(255,254,255,.53) 0%, rgba(240,236,250,.31) 48%, transparent 82%),
    radial-gradient(ellipse 15% 5% at 37% 23%, rgba(252,250,255,.44) 0%, rgba(234,230,248,.25) 48%, transparent 82%),
    radial-gradient(ellipse 18% 5% at 8% 35%, rgba(255,254,255,.48) 0%, rgba(238,234,250,.27) 48%, transparent 82%),
    radial-gradient(ellipse 16% 5% at 60% 46%, rgba(250,248,255,.4) 0%, rgba(232,228,246,.23) 50%, transparent 84%),
    radial-gradient(ellipse 15% 5% at 26% 58%, rgba(255,254,255,.44) 0%, rgba(238,234,250,.25) 48%, transparent 82%),
    radial-gradient(ellipse 17% 5% at 48% 74%, rgba(252,250,255,.38) 0%, rgba(232,228,246,.21) 50%, transparent 84%),
    radial-gradient(ellipse 16% 5% at 10% 86%, rgba(255,254,255,.46) 0%, rgba(238,234,250,.25) 48%, transparent 82%);
  animation-direction: alternate-reverse;
}
@media (max-width: 480px) {
  #cloudVeil .half { width: 112%; top: -20%; bottom: -20%; }
  #cloudVeil .left { left: -30%; }
  #cloudVeil .right { right: -30%; }
  #cloudVeil .half span { filter: blur(7px) brightness(1.42) saturate(.95); }
  #cloudVeil .half::after { filter: blur(4px) brightness(1.34); }
  #cloudVeil::before { left: -10%; right: -10%; filter: blur(20px) brightness(1.06); }
}
@media (min-width: 900px) {
  #cloudVeil .half span { filter: blur(11px) brightness(1.02) saturate(.95); }
  #cloudVeil .half::after { filter: blur(7px) brightness(.94); opacity: .7; }
  #cloudVeil::before { filter: blur(30px) brightness(.9); }
}
@keyframes veilDrift2 {
  0% { transform: translate3d(0, 0, 0) scale(1.03); }
  100% { transform: translate3d(-2.6%, 1.8%, 0) scale(1.1); }
}
@keyframes veilDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2.4%, -1.6%, 0) scale(1.07); }
}
body.opened #cloudVeil .left { transform: translateX(-124%) scale(1.1, 1.18); opacity: 0; }
body.opened #cloudVeil .right { transform: translateX(124%) scale(1.1, 1.18); opacity: 0; }
body.opened #cloudVeil { visibility: hidden; transition: visibility 0s linear 1.3s; }

/* ---------- 입장 게이트 ---------- */
#gate {
  position: fixed; inset: 0; z-index: 67;
  display: flex; flex-direction: column; align-items: center;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
  /* 구름 장막이 게이트 뒤에서 비쳐 보이도록 배경은 가장자리 · 글자 뒤만 은은하게 */
  background:
    radial-gradient(ellipse 58% 40% at 50% 46%, rgba(6, 5, 10, .78) 0%, rgba(6, 5, 10, .52) 54%, rgba(6, 5, 10, .16) 78%, rgba(6, 5, 10, 0) 92%),
    radial-gradient(ellipse 112% 104% at 50% 50%, rgba(4, 3, 8, 0) 56%, rgba(4, 3, 8, .3) 84%, rgba(3, 2, 6, .55) 100%);
  transition: opacity .32s ease, visibility .32s;
}
body.opened #gate { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .55s ease, visibility .55s; }
.gate-inner { text-align: center; max-width: 520px; position: relative; z-index: 2; margin: auto 0; width: 100%; }
.crest {
  width: 78px; height: 78px; margin: 0 auto 22px;
  border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 30px; color: var(--gold-2);
  box-shadow: 0 0 34px rgba(217, 185, 120, .26), inset 0 0 20px rgba(217, 185, 120, .14);
  animation: crest 4.5s ease-in-out infinite;
  position: relative;
}
.crest::after {
  content: ''; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px solid rgba(217, 185, 120, .18);
  border-top-color: rgba(217, 185, 120, .55);
  animation: spinSlow 14s linear infinite;
}
@keyframes crest {
  0%, 100% { box-shadow: 0 0 22px rgba(217,185,120,.2), inset 0 0 16px rgba(217,185,120,.12); transform: scale(1); }
  50% { box-shadow: 0 0 48px rgba(217,185,120,.45), inset 0 0 26px rgba(217,185,120,.2); transform: scale(1.03); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.gate-brand {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(21px, 5.4vw, 27px); line-height: 1.3;
  color: var(--gold-2); letter-spacing: .16em; text-indent: .16em;
  margin-bottom: 12px;
  text-shadow: 0 0 26px rgba(217, 185, 120, .38), 0 2px 18px rgba(0, 0, 0, .8);
}
.gate-brand span { display: inline-block; margin: 0 .44em; color: var(--gold); opacity: .7; transform: translateY(-2px); }
.gate-sub {
  font-size: 10.5px; letter-spacing: .5em; color: var(--gold);
  margin-bottom: 14px; text-indent: .5em; opacity: .85;
}
.gate-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(24px, 6.1vw, 36px); line-height: 1.55;
  letter-spacing: .012em; word-break: keep-all;
  color: #fff; margin-bottom: 14px;
  text-shadow: 0 2px 30px rgba(217, 185, 120, .18);
}
.gate-title em { font-style: normal; color: var(--gold-2); }
.gate-desc {
  font-size: clamp(12.8px, 3.4vw, 14px); color: #c2b7a4; line-height: 1.95;
  letter-spacing: .015em; margin-bottom: 20px; word-break: keep-all;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .85), 0 0 28px rgba(0, 0, 0, .55);
}
.gate-master {
  word-break: keep-all;
  max-width: 372px; margin: 0 auto 28px;
  font-size: 11.5px; line-height: 1.95; letter-spacing: .01em;
  color: rgba(222, 213, 196, .8);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .85), 0 0 26px rgba(0, 0, 0, .55);
}
.gate-master .gm-rule {
  display: block; width: 46px; height: 1px; margin: 0 auto 12px;
  background: linear-gradient(90deg, transparent, rgba(217, 185, 120, .55), transparent);
}
.gate-master .gm-rule:last-child { margin: 12px auto 0; }
.enter-btn {
  position: relative; overflow: hidden;
  padding: 17px 46px; border-radius: 999px;
  border: 1px solid #f2cf95;
  background: linear-gradient(135deg, #e0823d 0%, #c45c1e 60%, #9e4212 100%);
  color: #120a07; font-size: 17px; font-weight: 700; letter-spacing: .06em;
  cursor: pointer;
  text-shadow: 0 1px 1px rgba(28, 9, 1, .34);
  box-shadow:
    0 0 0 3px rgba(16, 8, 2, .92),
    0 0 0 4px rgba(240, 201, 143, .38),
    0 10px 26px rgba(0, 0, 0, .55),
    0 0 34px rgba(224, 130, 61, .38),
    inset 0 1px 0 rgba(255, 236, 205, .55),
    inset 0 -2px 8px rgba(112, 42, 6, .45);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.enter-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 3px rgba(16, 8, 2, .92),
    0 0 0 4px rgba(240, 201, 143, .55),
    0 14px 34px rgba(0, 0, 0, .6),
    0 0 54px rgba(224, 130, 61, .55),
    inset 0 1px 0 rgba(255, 236, 205, .6),
    inset 0 -2px 8px rgba(112, 42, 6, .45);
}
.enter-btn:active { transform: translateY(0) scale(.99); }
.enter-btn:focus-visible { outline: 2px solid #f6e3ad; outline-offset: 6px; }
.enter-btn::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 246, 226, .18), transparent);
  animation: sheen 3.6s ease-in-out infinite;
}
@keyframes sheen { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.gate-foot { margin-top: 26px; font-size: 11px; color: #c2b6a2; line-height: 1.8; text-shadow: 0 1px 10px rgba(0, 0, 0, .95), 0 0 22px rgba(0, 0, 0, .85), 0 0 40px rgba(0, 0, 0, .6); }
/* 법적 고지 — 오프닝 화면 맨 아래, 신비감을 해치지 않게 아주 작고 흐리게 */
.gate-legal {
  /* 절대 위치를 쓰지 않는다 — 좁은 인앱 브라우저에서도 버튼과 절대 겹치지 않도록 문서 흐름에 둔다 */
  position: static; flex: none;
  margin: 18px auto 0; padding: 0 6px; max-width: 560px; width: 100%; text-align: center;
  font-size: 9.5px; line-height: 1.65; letter-spacing: 0;
  word-break: keep-all; text-wrap: pretty;
  color: rgba(202, 194, 180, .38);
  pointer-events: none; user-select: none; z-index: 3;
}
/* 좁은 화면(인앱 브라우저 포함) 게이트 압축 — 흐름 배치라 버튼과 절대 겹치지 않는다 */
@media (max-height: 760px) {
  #gate { padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
  .gate-inner { margin: 0 auto; }
  .crest { width: 62px; height: 62px; margin-bottom: 14px; font-size: 24px; }
  .gate-brand { font-size: 26px; }
  .gate-sub { margin-bottom: 14px; }
  .gate-title { font-size: 21px; margin-bottom: 10px; }
  .gate-desc { font-size: 12.5px; line-height: 1.7; margin-bottom: 12px; }
  .gate-master { font-size: 11px; line-height: 1.75; margin-bottom: 16px; }
  .enter-btn { padding: 14px 40px; font-size: 13.5px; }
  .gate-foot { margin-top: 16px; }
  .gate-legal { margin-top: auto; padding-top: 14px; }
}
@media (max-height: 640px) {
  .gate-master { display: none; }
  .crest { width: 54px; height: 54px; font-size: 21px; margin-bottom: 10px; }
  .gate-title { font-size: 19px; }
  .gate-foot { display: none; }
}

#gate::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 132px;
  background: linear-gradient(180deg, rgba(4, 3, 8, 0) 0%, rgba(4, 3, 8, .45) 55%, rgba(3, 2, 6, .82) 100%);
  pointer-events: none; z-index: 1;
}

/* ---------- 메인 ---------- */
#main { position: relative; z-index: 10; opacity: 0; filter: blur(3px) saturate(.85); transform: scale(1.012); transition: opacity 1.2s ease .35s, filter 1.2s ease .35s, transform 1.6s cubic-bezier(.2,.8,.2,1) .3s; }
body.opened #main { opacity: 1; filter: none; transform: none; }
.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* 히어로 */
.hero {
  position: relative; width: 100%; max-width: 720px; margin: 0 auto;
  padding: 14px 16px 0;
}
.hero-frame {
  position: relative; overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(217, 185, 120, .24);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .85), inset 0 0 60px rgba(0,0,0,.5);
  aspect-ratio: 16 / 11;
}
@media (max-width: 560px) { .hero-frame { aspect-ratio: 4 / 5; } }
.hero-slides { position: absolute; inset: 0; }
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%;
  filter: brightness(.62) contrast(1.06) saturate(.95);
  transform: scale(1.06); opacity: 0;
  transition: opacity 1.5s ease, transform 4s cubic-bezier(.19,1,.22,1), filter 2.4s ease;
}
.hero-img.on { opacity: 1; }
body.opened .hero-img { transform: scale(1); filter: brightness(.95) contrast(1.05); }

/* 장면 인디케이터 */
.hero-dots { position: absolute; top: 13px; right: 13px; z-index: 3; display: flex; gap: 6px; }
.hero-dot {
  width: 20px; height: 4px; border: 0; padding: 0; border-radius: 3px; cursor: pointer;
  background: rgba(246, 227, 173, .22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4);
  transition: width .35s ease, background .35s ease, box-shadow .35s ease;
}
.hero-dot:hover { background: rgba(246, 227, 173, .55); }
.hero-dot.on { width: 28px; background: var(--gold-2); box-shadow: 0 0 12px rgba(246, 227, 173, .6); }
.hero-dot:focus-visible { outline: 1px solid var(--gold-2); outline-offset: 3px; }
.hero-vig {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,5,10,.42) 0%, rgba(6,5,10,0) 30%, rgba(6,5,10,.72) 78%, rgba(6,5,10,.98) 100%),
    radial-gradient(ellipse 70% 60% at 50% 40%, transparent 40%, rgba(4,3,8,.6) 100%);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(246, 227, 173, .16), transparent 55%);
  mix-blend-mode: screen;
}
.hero-text { position: absolute; left: 18px; right: 18px; bottom: 18px; text-align: center; }
.badge-master {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--serif);
  font-size: 10.5px; letter-spacing: .2em; color: var(--gold-2);
  border: 1px solid var(--gold-dim); background: rgba(8, 6, 12, .72);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 10px;
  backdrop-filter: blur(6px);
}
.badge-master i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.dialogue {
  font-family: var(--serif); font-size: clamp(15px, 3.9vw, 20px);
  line-height: 1.68; letter-spacing: .012em; font-weight: 500; color: #fff; min-height: 3.2em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .95);
  transition: opacity .5s ease, transform .5s ease, filter .5s ease;
}
.dialogue.swap { opacity: 0; transform: translateY(10px); filter: blur(5px); }
.dialogue .cursor { display: inline-block; width: 1px; height: 1em; background: var(--gold-2); vertical-align: -2px; animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 탭 ---------- */
.tabs {
  position: sticky; top: 0; z-index: 30;
  display: flex; gap: 4px; justify-content: center;
  margin: 22px auto 0; padding: 8px 12px;
  background: linear-gradient(180deg, rgba(6,5,10,.96), rgba(6,5,10,.78));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 185, 120, .12);
}
.tab {
  flex: 1; max-width: 190px;
  padding: 11px 8px; border: 1px solid transparent; border-radius: 12px;
  background: none; color: var(--muted); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: .22s ease; letter-spacing: .02em;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tab span { font-size: 9.5px; letter-spacing: .12em; opacity: .6; }
.tab:hover { color: var(--gold-2); }
.tab.active {
  color: #1a1206;
  background: linear-gradient(135deg, #cba75e, #f6e3ad);
  box-shadow: 0 4px 18px rgba(217, 185, 120, .22);
}
.tab.active span { opacity: .7; }
.panel { display: none; padding: 22px 0 40px; animation: fadeUp .5s ease; scroll-margin-top: 76px; }
.panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 카드/섹션 공통 ---------- */
.card {
  background: linear-gradient(170deg, rgba(24, 19, 33, .9), rgba(12, 9, 18, .92));
  border: 1px solid var(--gold-dim);
  border-radius: var(--r);
  padding: 22px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .03);
  backdrop-filter: blur(10px);
}
.card + .card { margin-top: 16px; }
.card { scroll-margin-top: 76px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--gold-2);
  letter-spacing: .02em;
}
.section-head .en { font-size: 10px; letter-spacing: .2em; color: var(--muted); }

/* ---------- 카테고리 소개 배너 (탭을 누르면 맨 위에 붙는 안내) ---------- */
.cat-intro {
  position: relative;
  margin: 0 0 14px; padding: 14px 16px 13px;
  border-radius: var(--r);
  border: 1px solid rgba(217, 185, 120, .32);
  background: linear-gradient(168deg, rgba(58, 27, 63, .55) 0%, rgba(17, 12, 24, .94) 62%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(246, 227, 173, .08);
  overflow: hidden;
}
.cat-intro::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 10% -20%, rgba(217, 185, 120, .22), transparent 58%);
}
.ci-head { position: relative; display: flex; align-items: center; gap: 10px; }
.ci-emoji {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px; line-height: 1;
  border: 1px solid rgba(217, 185, 120, .45);
  background: radial-gradient(circle at 50% 28%, rgba(217, 185, 120, .24), rgba(217, 185, 120, .03));
  box-shadow: 0 0 16px rgba(217, 185, 120, .16);
}
.ci-titles { display: block; min-width: 0; }
.ci-kicker { display: block; font-size: 9.5px; letter-spacing: .18em; color: var(--gold); }
.ci-title {
  display: block; margin-top: 3px;
  font-size: 15.5px; line-height: 1.42; font-weight: 600; color: #fff3d6;
  letter-spacing: .01em; word-break: keep-all;
}
.ci-desc {
  position: relative; margin: 9px 0 0;
  font-size: 12.5px; line-height: 1.75; color: #d3c9b7; word-break: keep-all;
}
.ci-chips { position: relative; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.ci-chips span {
  font-size: 10.5px; line-height: 1.2; color: #f0dcb2;
  padding: 4px 8px; border-radius: 999px;
  border: 1px solid rgba(217, 185, 120, .26);
  background: rgba(217, 185, 120, .08);
  white-space: nowrap;
}
@media (max-width: 420px) {
  .cat-intro { padding: 12px 13px 11px; margin-bottom: 12px; }
  .ci-emoji { width: 30px; height: 30px; font-size: 14px; }
  .ci-title { font-size: 14.5px; line-height: 1.38; }
  .ci-desc { margin-top: 7px; font-size: 12px; line-height: 1.68; }
  .ci-chips { margin-top: 8px; gap: 4px; }
  .ci-chips span { font-size: 10px; padding: 3px 7px; }
}
.hr-gold {
  height: 1px; margin: 18px 0;
  background: linear-gradient(90deg, transparent, rgba(217,185,120,.35), transparent);
}

/* ---------- 폼 ---------- */
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
/* ---------- 키·몸무게 공통 (메인 폼 · 외모·점 탭) ---------- */
.body-pair { margin-top: 2px; }
.body-cell { display: flex; flex-direction: column; gap: 6px; }
.body-cell-k { font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }
.body-cell-k b { font-weight: 400; font-size: 9.5px; color: var(--gold-3); letter-spacing: .06em; margin-left: 2px; }
.body-pair .inp { text-align: center; font-size: 16px; letter-spacing: .02em; }
/* 숫자 입력 기본 증감 화살표 숨김 — 모바일 키패드만 뜨게 */
.body-pair .inp::-webkit-outer-spin-button,
.body-pair .inp::-webkit-inner-spin-button,
.gw-inputs .inp::-webkit-outer-spin-button,
.gw-inputs .inp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.body-pair .inp,
.gw-inputs .inp { -moz-appearance: textfield; appearance: textfield; }
.field-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--gold-2); margin-bottom: 9px; font-weight: 500;
}
.field-label b { font-weight: 400; font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.inp {
  width: 100%; padding: 13px 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(217, 185, 120, .22);
  border-radius: 12px; color: #fff; font-size: 15px;
  outline: none; transition: .2s;
  font-family: inherit;
}
.inp:focus { border-color: var(--gold); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 3px rgba(217,185,120,.08); }
.inp::placeholder { color: #6f685e; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
select.inp option { background: #16111f; color: #fff; }

.seg { display: grid; gap: 7px; }
.seg-2 { grid-template-columns: 1fr 1fr; }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg-4 { grid-template-columns: repeat(4, 1fr); }
.seg-btn {
  padding: 11px 6px; border-radius: 11px; cursor: pointer;
  background: rgba(255, 255, 255, .028);
  border: 1px solid rgba(217, 185, 120, .18);
  color: var(--muted); font-size: 13px; text-align: center;
  transition: .18s ease; position: relative;
}
.seg-btn small { display: block; font-size: 9.5px; opacity: .65; margin-top: 2px; letter-spacing: .02em; }
.seg-btn:hover { border-color: rgba(217, 185, 120, .4); color: var(--text); }
.seg-btn.active {
  background: linear-gradient(160deg, rgba(217, 185, 120, .22), rgba(217, 185, 120, .07));
  border-color: var(--gold); color: var(--gold-2); font-weight: 600;
  box-shadow: 0 0 18px rgba(217, 185, 120, .16), inset 0 1px 0 rgba(255,255,255,.08);
}
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.time-grid .seg-btn { padding: 9px 4px; font-size: 12.5px; }
.time-grid .seg-btn small { font-size: 9px; }
.date-row { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 8px; }
.hint { font-size: 11px; color: #756e63; margin-top: 8px; line-height: 1.6; }
.leap-toggle {
  display: none; margin-top: 8px; align-items: center; gap: 8px;
  font-size: 12px; color: var(--gold-2); cursor: pointer;
}
.leap-toggle.show { display: flex; }
.leap-toggle input { accent-color: #d9b978; }

.btn-gold {
  width: 100%; padding: 16px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, #b08a45 0%, #f6e3ad 48%, #a97f36 100%);
  color: #180f04; font-size: 15.5px; font-weight: 700; letter-spacing: .02em;
  cursor: pointer; box-shadow: 0 10px 30px rgba(217, 185, 120, .25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-gold:active { transform: scale(.985); }
.btn-gold:disabled { opacity: .55; cursor: default; }
.btn-ghost {
  padding: 12px 18px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--gold-dim);
  color: var(--gold-2); font-size: 13.5px;
}
.btn-ghost:hover { border-color: var(--gold); }

/* ---------- 로딩 ---------- */
.loading { display: none; text-align: center; padding: 34px 10px; }
.loading.show { display: block; }
.spin-ring {
  width: 62px; height: 62px; margin: 0 auto 20px; position: relative;
}
.spin-ring::before, .spin-ring::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(217, 185, 120, .18);
}
.spin-ring::before { border-top-color: var(--gold-2); animation: spin 1.3s linear infinite; }
.spin-ring::after { inset: 9px; border-right-color: var(--gold); animation: spin 2.1s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { font-family: var(--serif); color: var(--gold-2); font-size: 15.5px; margin-bottom: 6px; }
.loading small { color: var(--muted); font-size: 12px; }

/* ---------- 결과: 명식 ---------- */
#resultPanel { display: none; scroll-margin-top: 76px; }
#resultPanel.show { display: block; animation: fadeUp .6s ease; }
.result-title { text-align: center; }
.result-brand {
  font-size: 11px; color: var(--gold); opacity: .9;
  letter-spacing: .24em; text-indent: .24em; margin-bottom: 9px;
}
.result-title h2 {
  font-family: var(--serif); font-size: 21px; color: #fff; font-weight: 400; letter-spacing: .02em;
}
.result-title p { font-size: 11.5px; color: var(--muted); margin-top: 6px; letter-spacing: .04em; }

.pillar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px;
  margin: 20px 0 8px;
}
.pillar {
  border-radius: 14px; padding: 12px 5px 10px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid rgba(217, 185, 120, .16);
  position: relative; overflow: hidden;
}
.pillar.is-day { border-color: rgba(217, 185, 120, .5); box-shadow: 0 0 22px rgba(217,185,120,.12); }
.pillar .p-label { font-size: 10px; color: var(--muted); letter-spacing: .1em; margin-bottom: 8px; }
.pillar .p-label em { font-style: normal; color: var(--gold); }
.pillar .gan, .pillar .ji {
  font-family: var(--serif); font-size: 27px; line-height: 1.15; font-weight: 700;
  display: block; position: relative;
}
.pillar .han {
  font-size: 10.5px; color: var(--muted); margin-top: 2px; letter-spacing: .06em;
}
.pillar .tg {
  font-size: 10px; margin-top: 7px; padding: 2px 0; border-radius: 6px;
  background: rgba(255,255,255,.05); color: #cfc7b8;
}
.pillar .elem-dot {
  position: absolute; top: 9px; right: 8px; width: 5px; height: 5px; border-radius: 50%;
}
.pillar .jjg {
  margin-top: 7px; font-size: 9px; color: #6f685e; line-height: 1.5;
  border-top: 1px dashed rgba(255,255,255,.08); padding-top: 6px;
}
.pillar.unknown .gan, .pillar.unknown .ji { color: #4b4640; }

.legend { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.legend span { font-size: 10px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.legend i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.term-line {
  margin-top: 12px; padding: 9px 12px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px dashed rgba(217,185,120,.2);
  font-size: 11px; color: var(--muted); line-height: 1.7; text-align: center;
}
.term-line b { color: var(--gold-2); font-weight: 500; }

/* 오행 분석 */
.oheng-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 6px; }
@media (min-width: 560px) { .oheng-wrap { grid-template-columns: 150px 1fr; align-items: center; } }
.radar-box { display: grid; place-items: center; }
.oheng-rows { display: grid; gap: 9px; }
.oheng-row { display: grid; grid-template-columns: 46px 1fr 38px; align-items: center; gap: 9px; font-size: 11.5px; }
.oheng-row .nm { color: var(--muted); letter-spacing: .02em; }
.oheng-track { height: 7px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.oheng-fill { height: 100%; border-radius: 99px; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.oheng-row .pc { text-align: right; color: #cfc7b8; font-variant-numeric: tabular-nums; }

/* 강약 게이지 */
.gauge-box { margin-top: 4px; }
.gauge-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: -8px; }
.gauge-verdict { text-align: center; margin-top: 10px; }
.gauge-verdict strong { color: var(--gold-2); font-size: 15px; font-weight: 600; }
.gauge-verdict span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* 용신 */
.yongshin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.ys-item { text-align: center; padding: 11px 6px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); }
.ys-item .k { font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.ys-item .v { font-family: var(--serif); font-size: 19px; margin-top: 3px; }
.ys-item.main { background: linear-gradient(180deg, rgba(217,185,120,.16), rgba(217,185,120,.03)); border-color: rgba(217,185,120,.35); }

/* 무료 요약 */
.free-read {
  font-size: 13.5px; line-height: 1.9; color: #ded6c8;
  background: linear-gradient(180deg, rgba(217, 185, 120, .06), rgba(217, 185, 120, .015));
  border-left: 2px solid var(--gold);
  padding: 16px 16px 16px 18px; border-radius: 0 12px 12px 0;
}
.free-read p { margin-bottom: 13px; }
.free-read p:last-child { margin-bottom: 0; }
.free-read strong { color: var(--gold-2); font-weight: 600; }

/* 세운 / 대운 요약 */
.saeun-line { display: flex; align-items: center; gap: 12px; }
.saeun-ganji {
  font-family: var(--serif); font-size: 22px; color: var(--gold-2);
  border: 1px solid var(--gold-dim); border-radius: 12px; padding: 8px 12px; line-height: 1.2;
  text-align: center;
}
.saeun-ganji small { display: block; font-size: 9px; color: var(--muted); letter-spacing: .1em; font-family: var(--sans); }
.saeun-text { font-size: 12.5px; color: #cfc7b8; line-height: 1.7; }
.dw-strip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.dw-strip::-webkit-scrollbar { display: none; }
.dw-item {
  flex: 0 0 auto; min-width: 62px; text-align: center; padding: 8px 6px;
  border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
}
.dw-item .g { font-family: var(--serif); font-size: 15px; color: #ded6c8; }
.dw-item .a { font-size: 9.5px; color: #6f685e; margin-top: 3px; }
.dw-item.cur { border-color: var(--gold); background: rgba(217,185,120,.14); }
.dw-item.cur .g { color: var(--gold-2); }

/* 잠금 프리미엄 */
.lock-box {
  position: relative; overflow: hidden;
  border-radius: 16px; border: 1px solid rgba(217, 185, 120, .3);
  background: linear-gradient(170deg, rgba(58, 27, 63, .5), rgba(16, 11, 22, .95));
  padding: 20px 16px 18px;
}
.lock-box::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(217,185,120,.14), transparent 60%);
}
.lock-title { text-align: center; font-size: 11px; letter-spacing: .18em; color: var(--gold); margin-bottom: 12px; }
.blur-list { filter: blur(4.2px); opacity: .55; user-select: none; font-size: 12.5px; line-height: 1.9; color: #b9b1a4; }
.blur-list li { list-style: none; margin-bottom: 4px; }
.blur-list li::before { content: '· '; color: var(--gold); }
.lock-cta { margin-top: 16px; }

/* ---------- 타로 ---------- */
.cat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cat-btn {
  padding: 10px 4px; border-radius: 11px; cursor: pointer; text-align: center;
  background: rgba(255, 255, 255, .028); border: 1px solid rgba(217, 185, 120, .16);
  color: var(--muted); font-size: 11.5px; transition: .18s;
}
.cat-btn .ic { display: block; font-size: 14px; margin-bottom: 2px; color: var(--gold); opacity: .7; }
.cat-btn.active { border-color: var(--gold); color: var(--gold-2); background: rgba(217,185,120,.12); }

/* 타로 무대 — 다크 버건디 벨벳 : 카드가 배경에서 확실히 도드라지도록 */
#panel-tarot > .card {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(66, 29, 40, .9) 0%, rgba(30, 14, 21, .96) 55%, rgba(15, 8, 12, .99) 100%);
  border-color: rgba(217, 185, 120, .26);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(246, 227, 173, .06);
}
.deck-stage {
  position: relative; height: 300px; margin: 18px 0 6px;
  perspective: 1400px;
  border-radius: 18px;
  background: radial-gradient(ellipse 74% 78% at 50% 52%, #4c2434 0%, #2a1118 46%, #170a10 100%);
  border: 1px solid rgba(217, 185, 120, .26);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(246, 227, 173, .08), 0 14px 34px rgba(0, 0, 0, .45);
}
.deck-stage::before {
  content: ''; position: absolute; left: 50%; top: 52%;
  width: 74%; height: 62%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(246, 227, 173, .16), transparent 68%);
  pointer-events: none;
}
@media (max-width: 420px) { .deck-stage { height: 240px; } }
.deck-fan { position: absolute; inset: 0; display: grid; place-items: center; }
.fan-card {
  position: absolute; left: 50%; top: 50%;
  width: clamp(64px, 17.5vw, 86px); aspect-ratio: 2 / 3; border-radius: 9px;
  transform-origin: 50% 50%;
  transition: transform .55s cubic-bezier(.2,.8,.25,1), opacity .4s, filter .3s;
  cursor: pointer; will-change: transform;
  box-shadow: 0 8px 22px rgba(0,0,0,.7), 0 0 0 1px rgba(217,185,120,.32);
}
.fan-card:hover { filter: brightness(1.2) drop-shadow(0 0 14px rgba(217,185,120,.6)); z-index: 300 !important; transform: translate(calc(-50% + var(--fx, 0px)), calc(-50% + var(--fy, 0px) - 12px)) rotate(var(--fr, 0deg)) !important; }
.fan-card.picked { opacity: 0; pointer-events: none; transform: translateY(-40px) scale(.9); }
.fan-card svg { width: 100%; height: 100%; border-radius: 9px; }

.slot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; scroll-margin-top: 88px; }
.deck-stage { scroll-margin-top: 88px; }
.reading { scroll-margin-top: 88px; }
.slot { text-align: center; }
.slot .pos { font-size: 10.5px; color: #f0d39b; letter-spacing: .12em; margin-bottom: 6px; min-height: 34px; text-shadow: 0 1px 10px rgba(0,0,0,.8); }
.slot .pos small { display: block; color: #a89c8b; font-size: 9.5px; letter-spacing: 0; margin-top: 1px; }
.slot-card {
  position: relative; width: 100%; aspect-ratio: 2 / 3; max-width: 150px; margin: 0 auto;
  perspective: 900px;
}
.slot-card .inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .95s cubic-bezier(.3,.9,.25,1);
}
.slot-card.flipped .inner { transform: rotateY(180deg); }
.slot-card .face {
  position: absolute; inset: 0; border-radius: 10px; overflow: hidden;
  backface-visibility: hidden; box-shadow: 0 10px 26px rgba(0,0,0,.6);
}
.slot-card .face.back {
  background: linear-gradient(160deg, #231430 0%, #0e0913 100%);
  border: 1px solid rgba(217, 185, 120, .42);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .72), inset 0 0 22px rgba(217, 185, 120, .09);
}
.slot-card .face.back svg { width: 100%; height: 100%; }
.slot-card .face.front::before {
  content: ''; position: absolute; inset: 5px; border-radius: 7px;
  border: 1px solid rgba(217, 185, 120, .16); pointer-events: none;
}
.slot-card .face.front {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 50% 30%, rgba(89, 47, 96, .5), transparent 70%),
    linear-gradient(180deg, #171022, #0b0712);
  border: 1px solid rgba(217, 185, 120, .35);
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 4px;
}
.slot-card .front .numeral { font-size: 9px; letter-spacing: .18em; color: var(--gold); opacity: .8; }
.slot-card .front .art-wrap { flex: 1 1 0; min-height: 0; width: 100%; display: grid; place-items: center; overflow: hidden; }
.slot-card .front .art-wrap svg { width: 100%; height: 100%; max-height: 100%; }
.slot-card .front .cname { font-family: var(--serif); font-size: 12px; color: var(--gold-2); }
.slot-card .front .cen { font-size: 7px; letter-spacing: .1em; color: #7d7568; margin-top: 1px; }
.slot-card .front .rev-mark { display: none; }
.slot-card.reversed .front .rev-mark {
  display: block; position: absolute; top: 6px; right: 6px;
  font-size: 8px; color: #f0c8a0; border: 1px solid rgba(240,200,160,.5);
  border-radius: 4px; padding: 0 3px; letter-spacing: .05em;
}
.slot-card.reversed .front { background: linear-gradient(180deg, #2a1320, #100812); }
.slot-card.empty .inner { opacity: .8; }
.slot-card.empty .face.back {
  background: rgba(246, 227, 173, .055);
  border: 1px dashed rgba(217, 185, 120, .55);
  box-shadow: inset 0 0 26px rgba(217, 185, 120, .07);
}
.slot-card.empty .face.front { display: none; }

.reading { margin-top: 18px; display: grid; gap: 12px; }
.read-item {
  border-left: 2px solid var(--gold);
  padding: 12px 14px; border-radius: 0 12px 12px 0;
  background: rgba(255,255,255,.03);
}
.read-item h4 { font-size: 12px; color: var(--gold); letter-spacing: .08em; font-weight: 500; margin-bottom: 6px; }
.read-item h4 b { font-family: var(--serif); font-size: 15px; color: #fff; font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.read-item .dir { font-size: 10px; padding: 1px 6px; border-radius: 5px; margin-left: 6px; vertical-align: 1px; }
.read-item .dir.up { background: rgba(122,201,164,.16); color: var(--ok); }
.read-item .dir.rev { background: rgba(217,117,110,.16); color: var(--bad); }
.read-item p { font-size: 13px; line-height: 1.8; color: #ded6c8; }
.read-item .cat { margin-top: 6px; font-size: 12.5px; color: #b7afa2; }
.read-item .key { margin-top: 7px; font-size: 10.5px; color: #7d7568; letter-spacing: .04em; }

.read-summary {
  margin-top: 14px; padding: 16px; border-radius: 14px;
  background: linear-gradient(170deg, rgba(58, 27, 63, .55), rgba(14, 10, 20, .9));
  border: 1px solid rgba(217, 185, 120, .26);
  font-size: 13px; line-height: 1.85; color: #e6ded0;
}
.read-summary strong { color: var(--gold-2); }

/* ---------- 프리미엄 ---------- */
.price-list { display: grid; gap: 12px; }
.price-item {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 16px 16px; border-radius: 16px;
  background: linear-gradient(170deg, rgba(28, 21, 38, .9), rgba(13, 10, 20, .95));
  border: 1px solid rgba(217, 185, 120, .2);
  transition: .2s;
}
.price-item:hover { border-color: rgba(217, 185, 120, .45); }
.price-item.featured { border-color: rgba(217, 185, 120, .5); box-shadow: 0 0 34px rgba(217,185,120,.12); }
.price-item .info h3 { font-size: 14.5px; font-weight: 600; color: #fff; line-height: 1.45; }
.price-item .info p { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.price-item .info .tagline {
  display: inline-block; font-size: 9.5px; letter-spacing: .08em;
  color: var(--gold-2); border: 1px solid var(--gold-dim); border-radius: 999px;
  padding: 1px 7px; margin-bottom: 6px;
}
.price-item .price { text-align: right; }
.price-item .price .num { font-family: var(--serif); font-size: 19px; color: var(--gold-2); display: block; white-space: nowrap; }
.price-item .price button {
  margin-top: 7px; padding: 8px 14px; border-radius: 10px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #cba75e, #f6e3ad); color: #171004;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.price-item.owned .price button { background: rgba(122,201,164,.18); color: var(--ok); border: 1px solid rgba(122,201,164,.35); }
/* 👯 2인 동반 패키지 */
.price-item.duo { border-color: rgba(217,185,120,.48); background: linear-gradient(165deg, rgba(58,33,20,.55), rgba(13,10,20,.96) 62%); }
.price-item.duo::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #f6e3ad, #cba75e 60%, rgba(203,167,94,0));
}
.price-item.duo .info h3 { color: #fff3d6; }
.price-item.duo .price .num { font-size: 17.5px; }
.price-item .duo-unit { margin-top: 6px; font-size: 11px; color: #d6b97a; line-height: 1.5; }
.price-item .duo-used { margin-top: 6px; font-size: 11px; color: #9fd6b8; line-height: 1.55; word-break: keep-all; }
.price-item .duo-used b { color: #c8efd9; }
@media (max-width: 430px) {
  .price-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .price-item .price { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
  .price-item .price .num { font-size: 17px; }
  .price-item .price button { margin-top: 0; padding: 8px 13px; }
  .price-item.duo .price .num { font-size: 16px; }
}

/* 프리미엄 리포트 문서 */
.report-doc { margin-top: 18px; }
.report-head {
  text-align: center; padding: 4px 0 20px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(217, 185, 120, .22);
}
.report-brand {
  font-family: var(--serif); font-size: 19px; color: var(--gold-2);
  letter-spacing: .2em; text-indent: .2em; line-height: 1.4;
}
.report-brand span { color: var(--gold); opacity: .7; margin: 0 .3em; }
.report-brand-sub {
  font-size: 9.5px; letter-spacing: .42em; text-indent: .42em;
  color: var(--gold); opacity: .72; margin: 7px 0 16px;
}
.report-title {
  font-family: var(--serif); font-weight: 400; font-size: 20px; color: #fff;
  letter-spacing: .01em; margin-bottom: 9px;
}
.report-head .report-meta { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; margin: 0; }
.report-doc h3 {
  font-family: var(--serif); font-size: 16.5px; color: var(--gold-2); font-weight: 400;
  margin: 26px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(217, 185, 120, .18);
  letter-spacing: .01em;
}
.report-doc h3:first-child { margin-top: 0; }
.report-doc p { font-size: 13.5px; line-height: 1.95; color: #ded6c8; margin-bottom: 12px; word-break: keep-all; }
.report-doc h3 { word-break: keep-all; }
.report-doc strong { color: var(--gold-2); font-weight: 600; }
.m-table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 11.5px; }
.m-table th {
  text-align: left; font-weight: 500; color: var(--muted); font-size: 10.5px;
  padding: 7px 6px; border-bottom: 1px solid rgba(217, 185, 120, .2); letter-spacing: .04em;
}
.m-table td { padding: 8px 6px; border-bottom: 1px solid rgba(255, 255, 255, .05); color: #ded6c8; vertical-align: middle; }
.m-table tr.cur td { background: rgba(217, 185, 120, .1); color: var(--gold-2); }
.tag { font-size: 9.5px; padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.tag.good { background: rgba(122, 201, 164, .16); color: var(--ok); }
.tag.mid { background: rgba(255, 255, 255, .07); color: #b7afa2; }
.tag.bad { background: rgba(217, 117, 110, .16); color: var(--bad); }

/* ---------- 결제 모달 ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(3, 2, 6, .82); backdrop-filter: blur(10px);
  padding: 0;
}
@media (min-width: 560px) { .modal-bg { align-items: center; padding: 20px; } }
.modal-bg.show { display: flex; }
.modal {
  width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto;
  background: linear-gradient(180deg, #1a1424, #0e0b16);
  border: 1px solid rgba(217, 185, 120, .35);
  border-radius: 22px 22px 0 0;
  padding: 22px 18px 26px;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .8);
  animation: sheetUp .32s cubic-bezier(.2,.9,.3,1);
}
@media (min-width: 560px) { .modal { border-radius: 22px; } }
@keyframes sheetUp { from { transform: translateY(30px); opacity: .4; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.modal-head h3 { font-family: var(--serif); font-size: 18px; color: #fff; font-weight: 400; }
.modal-x { background: none; border: none; font-size: 20px; color: var(--muted); cursor: pointer; line-height: 1; padding: 2px 6px; }
.modal-prod { font-size: 12.5px; color: var(--muted); margin: 6px 0 16px; line-height: 1.6; }
.modal-prod b { color: var(--gold-2); }
.pay-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 14px; border-radius: 12px; background: rgba(217,185,120,.08); margin: 14px 0; }
.pay-sum span { font-size: 12px; color: var(--muted); }
.pay-sum b { font-family: var(--serif); font-size: 21px; color: var(--gold-2); }
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.pay-note { font-size: 10.5px; color: #6f685e; line-height: 1.7; margin-top: 12px; }
.demo-badge { display: inline-block; font-size: 10px; color: var(--warn); border: 1px solid rgba(226,163,94,.4); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
/* 💡 결제 모달 1클릭 업셀 (1인 9,900원 → 2인 17,900원) */
.pay-upsell {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; cursor: pointer;
  padding: 11px 12px; margin: 0 0 14px; border-radius: 12px;
  border: 1px solid rgba(217,185,120,.5);
  background: linear-gradient(120deg, rgba(224,141,60,.2), rgba(217,185,120,.08));
  font-family: inherit;
}
.pay-upsell:hover { border-color: rgba(246,227,173,.75); }
.pu-ico { font-size: 17px; line-height: 1; flex: 0 0 auto; }
.pu-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.pu-tx b { font-size: 12.5px; color: #ffe9c6; line-height: 1.4; word-break: keep-all; }
.pu-tx i { font-style: normal; font-size: 10.5px; color: #d6cbb6; line-height: 1.45; word-break: keep-all; }
.pu-go { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #1b1206; background: linear-gradient(135deg, #cba75e, #f6e3ad); border-radius: 999px; padding: 5px 9px; white-space: nowrap; }
.pay-downsell {
  display: block; width: 100%; margin: -6px 0 12px; padding: 7px 6px; cursor: pointer;
  background: none; border: none; font-size: 11px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.pay-downsell:hover { color: var(--gold-2); }
/* 👯 이용 현황 배지 (프리미엄 리포트 카드) */
.duo-status {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px;
  margin: 10px 0 4px; padding: 9px 11px; border-radius: 11px;
  border: 1px solid rgba(122,201,164,.32); background: rgba(122,201,164,.08);
  font-size: 11.5px; line-height: 1.5; word-break: keep-all;
}
.duo-status[hidden] { display: none; }
.ds-tag { font-size: 10px; font-weight: 700; color: #0d1a13; background: linear-gradient(135deg, #8fd8b4, #d7f4e3); border-radius: 999px; padding: 2px 8px; }
.ds-count { color: #d9fbec; font-size: 12px; }
.ds-names { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; color: #a9beaf; font-size: 11px; }
.ds-x {
  margin-left: 3px; padding: 0 4px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px;
  background: none; color: #9c9488; font-size: 9.5px; line-height: 1.5; cursor: pointer;
}
.ds-x:hover { color: var(--bad); border-color: rgba(217,117,110,.5); }
/* 👯 사주 화면 3번째 명식 안내 */
.duo-notice {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start;
  margin: 14px 0 0; padding: 13px 14px; border-radius: 14px;
  border: 1px solid rgba(224,141,60,.5);
  background: linear-gradient(150deg, rgba(224,141,60,.16), rgba(20,14,22,.9));
}
.duo-notice[hidden] { display: none; }
.dn-ico { font-size: 19px; line-height: 1.2; }
.dn-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dn-tx b { font-size: 13px; color: #ffe9c6; word-break: keep-all; }
.dn-tx span { font-size: 11.5px; color: #d6cbb6; line-height: 1.55; word-break: keep-all; }
.dn-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.dn-btn {
  flex: 1 1 140px; padding: 9px 11px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.16); background: none;
  color: #d6cbb6; font-size: 11.5px; font-weight: 600; line-height: 1.35;
}
.dn-btn.gold { border: none; background: linear-gradient(135deg, #cba75e, #f6e3ad); color: #171004; }
.dn-btn:hover { border-color: rgba(217,185,120,.5); color: var(--gold-2); }
.dn-btn.gold:hover { color: #171004; }
.pay-step { text-align: center; padding: 26px 10px; }
.pay-step .big { font-family: var(--serif); font-size: 19px; color: var(--gold-2); margin-bottom: 8px; }
.pay-step p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.done-icon {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  border: 1px solid var(--gold); display: grid; place-items: center;
  color: var(--gold-2); font-size: 24px; box-shadow: 0 0 30px rgba(217,185,120,.3);
  animation: crest 3s ease-in-out infinite;
}

/* ---------- 토스트 ---------- */
#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  z-index: 100; padding: 11px 18px; border-radius: 12px;
  background: rgba(24, 18, 33, .96); border: 1px solid var(--gold-dim);
  color: var(--text); font-size: 12.5px; opacity: 0; pointer-events: none;
  transition: .35s ease; max-width: 90vw; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 푸터 ---------- */
footer {
  margin-top: 30px; padding: 26px 18px 40px; text-align: center;
  border-top: 1px solid rgba(217, 185, 120, .1);
}
footer .brand { font-family: var(--serif); font-size: 14px; color: var(--gold); letter-spacing: .2em; text-indent: .2em; }
footer p { font-size: 10.5px; color: #635d54; line-height: 1.8; margin-top: 8px; }
footer .credit { font-size: 10px; color: #514c45; line-height: 1.7; margin-top: 12px; letter-spacing: .005em; }

/* ---------- 유틸 ---------- */
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; } .mt20 { margin-top: 20px; }
.mb0 { margin-bottom: 0; }
.small { font-size: 11.5px; color: var(--muted); }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
@media (max-width: 380px) {
  .pillar .gan, .pillar .ji { font-size: 23px; }
  .tab { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   v3 — 점사 의식 로딩 · 타로 플립 · 부적 갤러리 · 결과 정돈
   ============================================================ */

/* ---------- 점사(點沙) 의식 ---------- */
.ritual-overlay {
  position: fixed; inset: 0; z-index: 88; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(24, 16, 32, .93) 0%, rgba(6, 5, 11, .965) 58%, rgba(3, 2, 6, .985) 100%);
  backdrop-filter: blur(7px);
  opacity: 0; transition: opacity .28s ease;
}
.ritual-overlay.show { display: flex; opacity: 1; animation: veilIn .3s ease both; }
.ritual-overlay.out { opacity: 0; }
.ritual-overlay .ritual { width: min(92vw, 420px); min-height: 300px; padding-top: 26px; }
.ritual-overlay .ritual::before {
  content: '살풀이 : 천기'; position: absolute; top: 0; left: 0; right: 0;
  font-family: var(--serif); font-size: 10px; letter-spacing: .42em; text-indent: .42em;
  color: var(--gold); opacity: .5;
}
.ritual-overlay .ritual-seal { width: 168px; height: 168px; margin-top: 12px; }
.ritual-overlay .ritual-candle { top: 150px; transform: translateX(-50%) scale(1.12); }
.ritual-overlay .ritual-line { margin-top: 26px; font-size: 16px; }
@media (max-height: 620px) {
  .ritual-overlay .ritual-seal { width: 132px; height: 132px; }
  .ritual-overlay .ritual-candle { top: 116px; }
  .ritual-overlay .ritual { min-height: 250px; }
}
@keyframes veilIn { from { opacity: 0; } }
.ritual-host { display: none; }
.ritual-host.show { display: block; }

.ritual {
  position: relative; min-height: 214px; padding: 10px 12px 6px;
  text-align: center; overflow: hidden;
}
.ritual-halo {
  position: absolute; left: 50%; top: 84px; width: 280px; height: 280px;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(246, 227, 173, .16) 0%, rgba(217, 185, 120, .05) 42%, transparent 70%);
  animation: haloPulse 2.6s ease-in-out infinite;
}
.ritual-seal {
  position: relative; width: 136px; height: 136px; margin: 6px auto 0;
  animation: sealSpin 18s linear infinite;
  filter: drop-shadow(0 0 16px rgba(246, 227, 173, .3));
}
.ritual-seal-svg { width: 100%; height: 100%; }
.ritual-candle {
  position: absolute; left: 50%; top: 118px; width: 16px; height: 26px;
  transform: translateX(-50%);
}
.ritual-candle .wax {
  position: absolute; left: 3px; bottom: 0; width: 10px; height: 16px;
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(180deg, #f3e3c0, #c9a24d 70%, #6d5327);
  box-shadow: 0 0 12px rgba(246, 227, 173, .35);
}
.ritual-candle .wick {
  position: absolute; left: 7.4px; bottom: 15px; width: 1.2px; height: 4px;
  background: #3a2d1c;
}
.ritual-candle .flame {
  position: absolute; left: 50%; bottom: 18px; width: 10px; height: 18px;
  transform: translateX(-50%);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 70%, #fff6d8 0%, #ffd27a 38%, #e08a2e 68%, rgba(224, 138, 46, 0) 100%);
  filter: blur(.3px);
  transform-origin: 50% 100%;
  animation: flameFlicker 1.5s ease-in-out infinite;
}
.ritual-candle .candle-glow {
  position: absolute; left: 50%; bottom: 8px; width: 90px; height: 90px;
  transform: translate(-50%, 0); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 205, 120, .22), transparent 66%);
  animation: haloPulse 2.2s ease-in-out infinite;
}
.ritual-line {
  position: relative; margin-top: 16px; min-height: 26px;
  font-size: 15px; letter-spacing: .01em; color: #f6e3ad;
  opacity: 0; transform: translateY(7px); transition: opacity .42s ease, transform .42s ease;
  text-shadow: 0 0 20px rgba(246, 227, 173, .25);
}
.ritual-line.in { opacity: 1; transform: none; }
.ritual-dots { margin-top: 10px; display: flex; justify-content: center; gap: 6px; }
.ritual-dots i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
  opacity: .25; animation: dotPulse 1.4s ease-in-out infinite;
}
.ritual-dots i:nth-child(2) { animation-delay: .2s; }
.ritual-dots i:nth-child(3) { animation-delay: .4s; }

@keyframes sealSpin { to { transform: rotate(360deg); } }
@keyframes haloPulse { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .95; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes flameFlicker {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(-1deg); }
  35% { transform: translateX(-50%) scale(1.08, .92) rotate(2deg); }
  70% { transform: translateX(-50%) scale(.94, 1.06) rotate(-2deg); }
}
@keyframes dotPulse { 0%, 100% { opacity: .2; transform: translateY(0); } 50% { opacity: .85; transform: translateY(-2px); } }

/* ---------- 결과 스르륵 열림 ---------- */
#resultPanel.reveal .card { animation: cardUnfurl .62s cubic-bezier(.2, .8, .25, 1) both; }
#resultPanel.reveal .card:nth-child(2) { animation-delay: .06s; }
#resultPanel.reveal .card:nth-child(3) { animation-delay: .12s; }
#resultPanel.reveal .card:nth-child(4) { animation-delay: .18s; }
#resultPanel.reveal .card:nth-child(5) { animation-delay: .24s; }
@keyframes cardUnfurl {
  from { opacity: 0; transform: translateY(16px) scale(.994); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- 타로 : 카드가 날아와 3D 플립 ---------- */
.fly-card {
  position: fixed; z-index: 400; border-radius: 9px; overflow: hidden;
  pointer-events: none;
  box-shadow: 0 26px 48px rgba(0, 0, 0, .78), 0 0 0 1px rgba(217, 185, 120, .55), 0 0 30px rgba(246, 227, 173, .18);
}
.fly-card svg { width: 100%; height: 100%; display: block; }
.slot-burst {
  position: absolute; inset: -4px; border-radius: 13px; pointer-events: none;
  border: 1px solid rgba(246, 227, 173, .75);
  animation: burstRing .95s cubic-bezier(.2, .7, .3, 1) forwards;
}
.slot-burst::after {
  content: ''; position: absolute; inset: -10px; border-radius: 18px;
  border: 1px solid rgba(246, 227, 173, .32);
  animation: burstRing 1.15s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes burstRing {
  0% { transform: scale(.86); opacity: .95; }
  100% { transform: scale(1.42); opacity: 0; }
}
.slot-card.flipped .face.front { box-shadow: 0 14px 30px rgba(0, 0, 0, .68), 0 0 22px rgba(246, 227, 173, .12); }
.slot-card .face.front::after {
  content: ''; position: absolute; inset: 3px; border-radius: 8px; pointer-events: none;
  background: linear-gradient(115deg, rgba(246, 227, 173, .16) 0%, rgba(246, 227, 173, 0) 32%, rgba(246, 227, 173, 0) 72%, rgba(246, 227, 173, .1) 100%);
  mix-blend-mode: screen;
}
.slot-card .front .cname { letter-spacing: .02em; }
.slot-card .front .cen { opacity: .85; }

/* ---------- 타로 해석 ---------- */
.reading-head { margin: 2px 0 6px; }
.rh-cat {
  display: inline-block; font-size: 10.5px; letter-spacing: .14em;
  color: var(--gold-2); border: 1px solid var(--gold-dim);
  border-radius: 999px; padding: 2px 10px;
}
.rh-frame { font-size: 12px; color: #a89c8b; line-height: 1.75; margin-top: 9px; }
.reading.unfold { animation: readingIn .7s cubic-bezier(.2, .8, .25, 1) both; }
@keyframes readingIn { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }
.read-item {
  position: relative; animation: readItemIn .6s cubic-bezier(.2, .8, .25, 1) both;
  animation-delay: calc(var(--i, 0) * .12s);
}
@keyframes readItemIn { from { opacity: 0; transform: translateY(10px); } }
.ri-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; }
.ri-pos { font-size: 10.5px; letter-spacing: .1em; color: #f0d39b; }
.read-item h4 { display: flex; align-items: baseline; gap: 8px; font-size: 17px; color: #fff; margin-bottom: 9px; font-weight: 600; }
.ri-en { font-size: 8.5px; letter-spacing: .18em; color: #7d7568; font-family: var(--sans); font-weight: 400; }
.ri-frame {
  font-size: 11.5px; color: #a89c8b; line-height: 1.72;
  padding-left: 10px; border-left: 1px solid rgba(217, 185, 120, .28);
  margin-bottom: 10px;
}
.ri-bridge { font-size: 12.5px; color: #e2c07a; line-height: 1.7; margin-bottom: 9px; }
.ri-bridge::before { content: '↳ '; opacity: .7; }
.read-item .ri-main { font-size: 13.5px; line-height: 1.85; color: #ded6c8; }
.read-item .ri-deep {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .028); border: 1px dashed rgba(217, 185, 120, .18);
  font-size: 12.5px; line-height: 1.8; color: #b9b1a4;
}
.read-item .ri-cat { margin-top: 9px; font-size: 12.5px; color: #b7afa2; line-height: 1.7; }
.ri-act {
  margin-top: 11px; padding: 10px 12px; border-radius: 10px;
  background: rgba(217, 185, 120, .07); border: 1px solid rgba(217, 185, 120, .16);
  font-size: 12px; line-height: 1.7; color: #d8cfbd;
}
.ri-act b { display: block; font-size: 9.5px; letter-spacing: .12em; color: var(--gold); margin-bottom: 4px; font-weight: 500; }

.sum-eyebrow { font-size: 10px; letter-spacing: .3em; color: var(--gold); opacity: .8; margin-bottom: 9px; }
.sum-lead { font-size: 14px !important; line-height: 1.9; }
.sum-strong { color: #f0e4c8; }
.sum-act {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(217, 185, 120, .14), rgba(217, 185, 120, .04));
  border: 1px solid rgba(217, 185, 120, .3); font-size: 12.5px; line-height: 1.75; color: #efe6d2;
}
.sum-act b { display: block; font-size: 9.5px; letter-spacing: .14em; color: var(--gold); margin-bottom: 5px; font-weight: 500; }
.sum-note { margin-top: 12px; font-size: 10.5px !important; color: #6f685e !important; line-height: 1.7; }

/* ---------- 공유 ---------- */
.hero-share {
  position: absolute; top: 13px; left: 13px; z-index: 4;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px 5px 9px; border-radius: 999px; cursor: pointer;
  background: rgba(10, 7, 16, .58); border: 1px solid rgba(217, 185, 120, .3);
  color: var(--gold-2); font-size: 10px; letter-spacing: .04em;
  backdrop-filter: blur(8px); transition: .2s;
}
.hero-share svg { width: 13px; height: 13px; }
.hero-share:hover { border-color: var(--gold); background: rgba(24, 16, 32, .8); }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  margin-top: 12px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(217, 185, 120, .32); background: rgba(217, 185, 120, .06);
  color: var(--gold-2); font-size: 11.5px; letter-spacing: .02em; transition: .2s;
}
.share-btn svg { width: 14px; height: 14px; }
.share-btn:hover { border-color: var(--gold); background: rgba(217, 185, 120, .13); }
.foot-share { margin-top: 14px; }

/* ---------- 격국 · 십성 지도 ---------- */
.gk-line {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(160deg, rgba(217, 185, 120, .13), rgba(217, 185, 120, .03));
  border: 1px solid rgba(217, 185, 120, .22);
}
.gk-badge {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid rgba(217, 185, 120, .5); border-radius: 50%;
  color: var(--gold-2); font-size: 15px; letter-spacing: -1px;
  box-shadow: inset 0 0 14px rgba(217, 185, 120, .12);
}
.gk-line b { display: block; font-size: 15.5px; color: #fff; font-weight: 600; }
.gk-line span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tg-row { display: grid; grid-template-columns: 86px 1fr 30px; align-items: center; gap: 10px; margin-bottom: 10px; }
.tg-row .nm { font-size: 11.5px; color: #cfc7b8; }
.tg-row .nm small { display: block; font-size: 9px; color: #6f685e; letter-spacing: 0; margin-top: 1px; }
.tg-track { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.tg-track i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, rgba(217, 185, 120, .45), #f6e3ad);
  animation: tgGrow 1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes tgGrow { from { width: 0 !important; } }
.tg-row .v { text-align: right; font-size: 11px; color: #cfc7b8; font-variant-numeric: tabular-nums; }
.tg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tg-chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: 11px; color: var(--gold-2);
  border: 1px solid rgba(217, 185, 120, .28); background: rgba(217, 185, 120, .06);
}
.tg-chip em { font-style: normal; font-size: 9px; color: #8d8168; }

/* ---------- 명식 기둥 : 십이운성 ---------- */
.pillar .stage {
  margin-top: 6px; display: inline-flex; align-items: baseline; gap: 4px;
  padding: 1px 7px; border-radius: 999px;
  border: 1px solid rgba(217, 185, 120, .2); background: rgba(217, 185, 120, .05);
}
.pillar .stage em { font-style: normal; font-size: 10px; color: #e6cf9e; letter-spacing: .04em; }
.pillar .stage span { font-size: 8.5px; color: #8d8168; }

/* ---------- 세운 : 잡을 달 · 피할 달 ---------- */
.saeun-months { display: grid; gap: 8px; margin-top: 14px; }
.mon-good, .mon-bad { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mon-good .mk, .mon-bad .mk { font-size: 9.5px; letter-spacing: .06em; color: var(--muted); width: 66px; flex: none; }
.mchip {
  font-size: 11px; padding: 3px 9px; border-radius: 8px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); color: #cfc7b8;
}
.mon-good .mchip { border-color: rgba(122, 201, 164, .3); color: #c6ecdb; background: rgba(122, 201, 164, .07); }
.mon-bad .mchip { border-color: rgba(217, 117, 110, .3); color: #f0c9c5; background: rgba(217, 117, 110, .07); }
.mchip b { margin-left: 6px; font-family: var(--serif); font-weight: 400; opacity: .85; }

/* ---------- 부적 갤러리 ---------- */
.talisman-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
@media (min-width: 620px) { .talisman-grid { grid-template-columns: repeat(4, 1fr); } }
.tal-item {
  cursor: pointer; margin: 0; border-radius: 13px; overflow: hidden;
  background: rgba(255, 255, 255, .025); border: 1px solid rgba(217, 185, 120, .16);
  transition: .24s;
}
.tal-item:hover { border-color: rgba(217, 185, 120, .45); transform: translateY(-2px); }
.tal-item.fit { border-color: rgba(217, 185, 120, .5); box-shadow: 0 0 24px rgba(217, 185, 120, .12); }
.tal-img { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #0a0710; }
.tal-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .25, 1); }
.tal-item:hover .tal-img img { transform: scale(1.06); }
.tal-fit {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 9px; font-weight: 700; letter-spacing: .02em;
  padding: 2px 7px; border-radius: 999px;
  background: linear-gradient(135deg, #cba75e, #f6e3ad); color: #1a1104;
}
.tal-zoom {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 0 8px;
  text-align: center; font-size: 10.5px; letter-spacing: .06em; color: #f6e3ad;
  background: linear-gradient(transparent, rgba(6, 5, 10, .9));
  opacity: 0; transition: .3s;
}
.tal-item:hover .tal-zoom { opacity: 1; }
.tal-item figcaption { padding: 9px 10px 11px; }
.tal-title { display: flex; align-items: baseline; gap: 5px; }
.tal-title b { font-size: 13px; color: #fff; font-weight: 600; }
.tal-title em { font-style: normal; font-size: 9.5px; color: var(--gold); }
.tal-sub { display: block; font-size: 9.5px; color: #7d7568; line-height: 1.5; margin-top: 3px; }
.tal-state { display: block; font-size: 9.5px; color: #8d8168; margin-top: 6px; letter-spacing: .02em; }
.tal-state.on { color: var(--ok); }

.tal-view {
  position: fixed; inset: 0; z-index: 95; display: none;
  align-items: center; justify-content: center; padding: 18px;
  background: rgba(3, 2, 6, .9); backdrop-filter: blur(14px);
}
.tal-view.show { display: flex; }
body.tal-open { overflow: hidden; }
.tal-view-inner {
  position: relative; width: 100%; max-width: 420px; max-height: 94vh;
  display: flex; flex-direction: column; gap: 10px;
  animation: sheetUp .3s cubic-bezier(.2, .9, .3, 1);
}
.tal-close {
  position: absolute; top: -6px; right: 0; z-index: 3;
  background: none; border: none; color: #cfc7b8; font-size: 20px; cursor: pointer; padding: 4px 8px;
}
.tal-view-frame {
  border-radius: 16px; overflow: hidden; border: 1px solid rgba(217, 185, 120, .35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .8); background: #0a0710;
}
.tal-view-img { width: 100%; max-height: 68vh; object-fit: contain; display: block; }
.tal-view-bar { padding: 4px 2px 0; text-align: center; }
.tv-meta b { display: block; font-size: 16px; color: #fff; }
.tv-meta b em { font-style: normal; font-size: 10px; color: var(--gold); margin-left: 4px; }
.tv-meta span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.tv-meta small { display: block; font-size: 9.5px; color: #6f685e; margin-top: 5px; }
.tv-actions { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tv-actions .btn-gold, .tv-actions .btn-ghost { width: 100%; max-width: 300px; text-align: center; text-decoration: none; display: block; }
.tv-note { font-size: 10px; color: #6f685e; }

/* ---------- 계좌이체 ---------- */
.deposit-box {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 4px;
  background: rgba(217, 185, 120, .06); border: 1px solid rgba(217, 185, 120, .2);
}
.dep-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 4px 0; }
.dep-row span { color: var(--muted); }
.dep-row b { color: #f6e3ad; font-weight: 500; }
.dep-note { font-size: 10.5px; color: #8d8168; line-height: 1.7; margin-top: 6px; }

/* ---------- 리포트 표지 ---------- */
.report-seal {
  width: 54px; height: 54px; margin: 2px auto 14px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(217, 185, 120, .55); color: var(--gold-2);
  font-size: 22px; letter-spacing: 0;
  box-shadow: inset 0 0 18px rgba(217, 185, 120, .12), 0 0 26px rgba(217, 185, 120, .1);
}
.report-pillars { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.report-pillars .rp {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 52px; padding: 8px 6px 6px; border-radius: 10px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(217, 185, 120, .18);
}
.report-pillars .rp b { font-size: 8.5px; color: #7d7568; font-weight: 400; letter-spacing: .1em; }
.report-pillars .rp i { font-style: normal; font-family: var(--serif); font-size: 17px; line-height: 1.2; color: #f0e4c8; }
.report-pillars .rp .g { color: #f6e3ad; }
.report-pillars .rp.empty i { color: #4b4640; }
.free-tease {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: rgba(217, 185, 120, .06); border: 1px solid rgba(217, 185, 120, .2);
  font-size: 12px; color: #cfc7b8;
}
.m-table tr.row-good td { background: rgba(122, 201, 164, .06); }

/* ---------- 좁은 화면 보정 ---------- */
@media (max-width: 380px) {
  .ritual-seal { width: 118px; height: 118px; }
  .ritual-candle { top: 104px; }
  .tg-row { grid-template-columns: 74px 1fr 26px; }
  .tal-title b { font-size: 12px; }
}

/* ---------- 인쇄(PDF 저장) ---------- */
@media print {
  @page {
    margin: 14mm 12mm 20mm;
    @bottom-center {
      content: "살풀이 : 천기(天機)";
      font-family: 'Gowun Batang', 'Noto Serif KR', serif;
      font-size: 8pt; letter-spacing: .3em; color: #a4967a;
    }
  }
  body { background: #fff !important; color: #111 !important; }
  body::before { display: none !important; }
  #fogCanvas, #grainCanvas, .curtain, #cloudVeil, #gate, .hero, .tabs, #soundBtn, .share-fab, .share-btn,
  #panel-saju, #panel-tarot, #panel-premium .card:first-child, #talismanCard, #reportCard > .section-head, footer, #printRow, #reportLocked, #toast, .modal-bg, .tal-view, .ritual-host { display: none !important; }
  #main { opacity: 1 !important; }
  #panel-premium { display: block !important; }
  .wrap { max-width: none; padding: 0; }
  .card { background: none !important; border: none !important; box-shadow: none !important; padding: 0 !important; backdrop-filter: none !important; }
  .report-doc h3 { color: #111 !important; border-bottom: 1px solid #999 !important; page-break-after: avoid; }
  .report-head { border-bottom: 1px solid #bbb !important; padding-bottom: 14px !important; page-break-after: always; padding-top: 40mm !important; }
  .report-seal { border-color: #7a5c1e !important; color: #7a5c1e !important; box-shadow: none !important; }
  .report-pillars .rp { border-color: #bbb !important; background: none !important; }
  .report-pillars .rp i { color: #111 !important; }
  .report-pillars .rp b { color: #555 !important; }
  .report-brand, .report-brand span { color: #7a5c1e !important; }
  .report-brand-sub { color: #8a7a55 !important; }
  .report-title { color: #111 !important; }
  .report-head .report-meta { color: #555 !important; }
  .report-doc p, .report-doc strong { color: #111 !important; }
  .m-table th { color: #444 !important; border-color: #bbb !important; }
  .m-table td { color: #111 !important; border-color: #ddd !important; }
  .m-table tr.cur td { background: #eee !important; color: #000 !important; }
  .tag { border: 1px solid #888; color: #333 !important; background: none !important; }
}

/* ============================================================
   v4 — 궁합 · 오늘 · 신살·귀인 · 신년 · 재물 · 택일
   ============================================================ */

/* ---------- 메뉴 탭 (10개) ---------- */
.tabs {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  max-width: 1100px;
  width: 100%;
  justify-content: stretch;
  padding: 8px 12px;
}
.tab { flex: none; max-width: none; min-width: 0; padding: 9px 3px; font-size: 12.5px; white-space: nowrap; }
.tab span { font-size: 8.5px; letter-spacing: .06em; }
@media (max-width: 840px) {
  .tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    overflow: visible;
    padding: 7px 8px;
    scroll-snap-type: none;
  }
  .tab { min-width: 0; padding: 7px 2px; font-size: 12px; border-radius: 9px; scroll-snap-align: none; }
  .tab span { font-size: 8px; letter-spacing: .04em; }
  .panel { scroll-margin-top: 112px; }
  .card { scroll-margin-top: 112px; }
}
@media (max-width: 360px) {
  .tab { min-width: 0; padding: 6px 1px; font-size: 11px; }
  .tab span { font-size: 7.5px; }
}

/* ---------- 입력 공유 바 ---------- */
.pf-slot { margin-bottom: 14px; }
.pf-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid rgba(217, 185, 120, .22);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(217, 185, 120, .08), rgba(255, 255, 255, .02));
}
.pf-seal {
  flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid rgba(217, 185, 120, .5); border-radius: 8px;
  color: var(--gold-2); font-size: 14px;
}
.pf-txt { flex: 1 1 auto; min-width: 0; }
.pf-txt b { display: block; font-size: 12.5px; color: var(--gold-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-txt small { display: block; font-size: 10.5px; color: var(--muted); }
.pf-edit {
  flex: 0 0 auto; font-size: 11px; color: var(--gold-2);
  background: none; border: 1px solid rgba(217, 185, 120, .3);
  border-radius: 999px; padding: 5px 10px; cursor: pointer;
}
.pf-edit:hover { border-color: var(--gold); background: rgba(217, 185, 120, .1); }

/* ---------- 궁합 폼 ---------- */
.seg-rel { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 520px) { .seg-rel { grid-template-columns: repeat(4, 1fr); } }
.gg-form-pair { display: grid; gap: 14px; margin-top: 6px; }
@media (min-width: 720px) { .gg-form-pair { grid-template-columns: 1fr 1fr; gap: 18px; } }
.gg-person {
  border: 1px solid rgba(217, 185, 120, .18); border-radius: 14px;
  padding: 14px 12px 4px; background: rgba(255, 255, 255, .018);
}
.gg-person .field { margin-bottom: 13px; }
.gg-person .field-label { font-size: 11.5px; margin-bottom: 7px; }
.gg-person .inp { padding: 11px 12px; font-size: 14px; }
.gg-person .seg-btn { padding: 9px 4px; font-size: 12px; }
.gg-p-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.gg-p-tag {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(217, 185, 120, .55); color: var(--gold-2); font-size: 10.5px;
}
.gg-p-head b { font-size: 15px; color: var(--gold-2); font-weight: 400; }
.gg-p-head em { font-style: normal; font-size: 10.5px; color: var(--muted); margin-left: auto; }

/* ---------- 궁합 결과 ---------- */
#ggResult.reveal .card { animation: cardUnfurl .62s cubic-bezier(.2, .8, .25, 1) both; }
#ggResult.reveal .card:nth-child(2) { animation-delay: .06s; }
#ggResult.reveal .card:nth-child(3) { animation-delay: .12s; }
#ggResult.reveal .card:nth-child(4) { animation-delay: .18s; }
#ggResult.reveal .card:nth-child(5) { animation-delay: .24s; }
.gg-hero .result-title { text-align: center; }
.gg-score-wrap { position: relative; width: 154px; height: 154px; margin: 14px auto 8px; }
.gg-ring { width: 154px; height: 154px; display: block; }
.gg-score-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gg-score-txt b { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--gold-2); letter-spacing: -.02em; }
.gg-score-txt span { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.gg-score-txt em { font-style: normal; font-size: 10.5px; color: var(--gold); margin-top: 6px; letter-spacing: .02em; }
.gg-verdict { font-size: 15.5px; line-height: 1.85; color: #f2e5c6; text-align: center; margin: 8px auto 0; max-width: 560px; word-break: keep-all; }
.gg-lead { font-size: 12px; line-height: 1.85; color: var(--muted); text-align: center; margin: 12px auto 0; max-width: 560px; word-break: keep-all; }
.gg-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.gg-chip {
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(217, 185, 120, .28); color: var(--gold-2); background: rgba(217, 185, 120, .06);
}
.gg-chip.bad { border-color: rgba(217, 117, 110, .38); color: #e8a9a3; background: rgba(217, 117, 110, .07); }
.gg-natal { display: grid; gap: 10px; }
@media (min-width: 620px) { .gg-natal { grid-template-columns: 1fr 1fr; } }
.gg-natal-card { border: 1px solid rgba(217, 185, 120, .16); border-radius: 14px; padding: 12px 11px; background: rgba(255, 255, 255, .02); }
.gg-nc-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.gg-nc-tag {
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(217, 185, 120, .45); font-size: 9.5px; color: var(--gold);
}
.gg-nc-head b { font-size: 14.5px; color: var(--gold-2); font-weight: 400; }
.gg-nc-meta { font-size: 10px; color: var(--muted); margin-left: auto; }
.gg-nc-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0 8px; }
.gg-nc-p { text-align: center; border: 1px solid rgba(255, 255, 255, .05); border-radius: 8px; padding: 5px 2px; background: rgba(0, 0, 0, .16); }
.gg-nc-p em { display: block; font-style: normal; font-size: 9px; color: var(--muted); }
.gg-nc-p b { display: block; font-family: var(--serif); font-weight: 400; font-size: 16px; line-height: 1.35; }
.gg-nc-p.day { border-color: rgba(217, 185, 120, .4); background: rgba(217, 185, 120, .08); }
.gg-nc-p.unknown b { color: #57524b; }
.gg-nc-line { font-size: 11px; line-height: 1.75; color: var(--muted); }
.gg-nc-line b { color: var(--text); font-weight: 500; }
.gg-oh-legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.gg-oh-legend i.dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.gg-oh-legend i.dot.a { background: linear-gradient(90deg, #d9b978, #f6e3ad); }
.gg-oh-legend i.dot.b { background: rgba(150, 130, 190, .85); }
.gg-oh-row { display: grid; grid-template-columns: 44px 1fr 54px; align-items: center; gap: 8px; margin-bottom: 7px; }
.gg-oh-nm { font-size: 12px; color: var(--text); }
.gg-oh-nm em { font-style: normal; font-size: 9.5px; color: var(--muted); margin-left: 3px; }
.gg-oh-bars { display: flex; flex-direction: column; gap: 3px; }
.gg-oh-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.gg-oh-bar i { display: block; height: 100%; border-radius: 99px; }
.gg-oh-bar.a i { opacity: .95; }
.gg-oh-bar.b i { opacity: .48; }
.gg-oh-pct { text-align: right; font-size: 10.5px; color: var(--muted); }
.gg-oh-pct b { color: var(--gold-2); font-weight: 500; }
.gg-oh-pct em { font-style: normal; margin-left: 4px; color: #a89ac6; }
.gg-oh-note { font-size: 11.5px; line-height: 1.8; color: var(--muted); margin-top: 12px; }
.gg-oh-note b { display: block; color: var(--gold-2); font-weight: 500; margin-top: 6px; }
.gg-axes { display: grid; gap: 14px; }
.gg-axis-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.gg-axis-head b { font-size: 14px; color: var(--gold-2); font-weight: 400; }
.gg-axis-head em { font-style: normal; font-size: 9px; letter-spacing: .16em; color: var(--muted); }
.gg-axis-head span { margin-left: auto; font-size: 13px; color: var(--text); }
.gg-axis-track { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.gg-axis-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8d6f3c, #d9b978, #f6e3ad); }
.gg-axis p { font-size: 11.5px; line-height: 1.75; color: var(--muted); margin-top: 6px; word-break: keep-all; }
.gg-inter { list-style: none; margin-top: 16px; border-top: 1px solid rgba(217, 185, 120, .12); padding-top: 12px; }
.gg-inter li { font-size: 11.5px; line-height: 1.8; color: var(--muted); padding-left: 10px; position: relative; margin-bottom: 6px; }
.gg-inter li::before { content: ''; position: absolute; left: 0; top: 8px; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.gg-inter li b { color: var(--gold-2); font-weight: 500; }
.gg-inter li.bad b { color: #e8a9a3; }
.gg-sec { padding-top: 18px; }
.gg-sec:first-of-type { padding-top: 0; }
.gg-sec + .gg-sec { border-top: 1px solid rgba(217, 185, 120, .12); margin-top: 18px; }
.gg-sec-head { display: flex; gap: 9px; align-items: baseline; margin-bottom: 10px; }
.gg-no { font-family: var(--serif); color: var(--gold); font-size: 15px; }
.gg-sec-head h3 { font-size: 15.5px; font-weight: 400; color: var(--gold-2); line-height: 1.5; word-break: keep-all; }
.gg-read p { font-size: 13.5px; line-height: 1.95; color: #ded7ca; margin-bottom: 11px; word-break: keep-all; }
.gg-read p b { color: #f6e3ad; font-weight: 500; }
.gg-rx { margin: 4px 0 12px 18px; }
.gg-rx li { font-size: 13px; line-height: 1.9; color: #ded7ca; margin-bottom: 7px; word-break: keep-all; }
.gg-word { font-size: 15px !important; line-height: 1.9; color: #f6e3ad !important; border-left: 2px solid rgba(217, 185, 120, .5); padding-left: 12px; margin: 14px 0; }
.gg-caption { font-size: 11px !important; color: var(--muted) !important; }
.gg-share-card { text-align: center; }
.gg-disclaim { font-size: 11px; line-height: 1.8; color: var(--muted); margin-bottom: 14px; }
.gg-actions { display: flex; flex-direction: column; gap: 9px; align-items: center; }
.gg-actions .share-btn, .gg-actions .btn-ghost { width: 100%; max-width: 300px; justify-content: center; }
.pl-share-row { margin-top: 16px; text-align: center; }
.pl-share-row .share-btn { display: inline-flex; }

/* ---------- 신살 · 귀인 ---------- */
.pl-summary { font-size: 14px; line-height: 1.9; color: #f0e2c0; word-break: keep-all; }
.sn-counts { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.sn-counts span { font-size: 11px; color: var(--muted); border: 1px solid rgba(217, 185, 120, .2); border-radius: 999px; padding: 4px 12px; }
.sn-counts b { color: var(--gold-2); font-size: 13px; margin-right: 3px; }
.sn-item { padding: 14px 0; border-bottom: 1px solid rgba(217, 185, 120, .1); }
.sn-item:last-child { border-bottom: 0; padding-bottom: 0; }
.sn-head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-bottom: 6px; }
.sn-head b { font-size: 15px; color: var(--gold-2); font-weight: 400; }
.sn-head em { font-style: normal; font-size: 10.5px; color: var(--gold); opacity: .8; }
.sn-tag { font-size: 9.5px; color: var(--muted); border: 1px solid rgba(217, 185, 120, .25); border-radius: 999px; padding: 2px 7px; }
.sn-item.noble .sn-tag { color: var(--gold-2); border-color: rgba(217, 185, 120, .4); }
.sn-pos { margin-left: auto; font-size: 10px; color: var(--muted); }
.sn-mean { font-size: 12.5px; line-height: 1.85; color: #ded7ca; word-break: keep-all; }
.sn-use { font-size: 11.5px; line-height: 1.85; color: var(--muted); margin-top: 6px; word-break: keep-all; }
.sn-use b { color: var(--gold-2); font-weight: 500; margin-right: 4px; }
.sn-note { font-size: 12px; line-height: 1.9; color: var(--muted); word-break: keep-all; }
.sn-note b { color: var(--gold-2); font-weight: 500; }

/* ---------- 오늘의 운세 ---------- */
.td-reasons { list-style: none; margin-top: 12px; display: grid; gap: 4px; }
.td-reasons li { font-size: 11.5px; color: var(--muted); padding-left: 9px; position: relative; }
.td-reasons li::before { content: '·'; position: absolute; left: 0; color: var(--gold); }
.td-lines { display: grid; gap: 12px; }
.td-line { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; }
.td-k {
  font-family: var(--serif); font-size: 12px; color: var(--gold-2);
  border: 1px solid rgba(217, 185, 120, .25); border-radius: 8px; text-align: center; padding: 4px 0;
}
.td-line p { font-size: 12.5px; line-height: 1.85; color: #ded7ca; word-break: keep-all; }
.td-hours { display: grid; gap: 10px; }
.td-hour { border: 1px solid rgba(217, 185, 120, .16); border-radius: 12px; padding: 10px 12px; background: rgba(255, 255, 255, .02); }
.td-hour > span { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 4px; }
.td-hour b { display: inline-block; font-size: 12px; font-weight: 400; color: var(--gold-2); margin-right: 10px; }
.td-hour.good { border-color: rgba(122, 201, 164, .3); }
.td-hour.bad { border-color: rgba(217, 117, 110, .28); }
.td-hour.bad b { color: #e8a9a3; }
.td-luck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.td-luck-item { border: 1px solid rgba(217, 185, 120, .16); border-radius: 12px; padding: 10px 8px; text-align: center; position: relative; }
.td-luck-item span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.td-luck-item b { display: block; font-family: var(--serif); font-size: 12.5px; color: var(--gold-2); font-weight: 400; line-height: 1.5; }
.td-luck-item small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.td-swatch { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; }
.td-note { font-size: 11.5px; line-height: 1.85; color: var(--muted); margin-top: 14px; word-break: keep-all; }
.td-note b { color: var(--gold-2); }

/* ---------- 신년 · 12개월 ---------- */
.yr-theme { font-size: 17px; color: var(--gold-2); line-height: 1.6; margin-bottom: 8px; }
.yr-body { font-size: 12.5px; line-height: 1.9; color: #ded7ca; word-break: keep-all; }
.yr-jr { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.yr-jr b { color: #e2a35e; font-weight: 500; }
.yr-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; align-items: end; height: 152px; margin-top: 6px; }
.yr-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 2px; }
.yr-bar i { width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, rgba(217, 185, 120, .5), rgba(217, 185, 120, .12)); }
.yr-bar.best i { background: linear-gradient(180deg, #f6e3ad, #c9a24d); box-shadow: 0 0 12px rgba(246, 227, 173, .3); }
.yr-bar.worst i { background: linear-gradient(180deg, rgba(217, 117, 110, .6), rgba(217, 117, 110, .16)); }
.yr-b-val { font-size: 8px; color: var(--muted); }
.yr-b-m { font-size: 7.5px; color: #6f685e; line-height: 1.3; text-align: center; height: 24px; }
.yr-legend { display: flex; gap: 14px; justify-content: center; font-size: 10px; color: var(--muted); margin-top: 10px; }
.yr-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.yr-legend i.best { background: #f6e3ad; }
.yr-legend i.worst { background: rgba(217, 117, 110, .7); }
.yr-picks { display: grid; gap: 10px; }
@media (min-width: 620px) { .yr-picks { grid-template-columns: 1fr 1fr; } }
.yr-pick { border: 1px solid rgba(217, 185, 120, .18); border-radius: 12px; padding: 11px 12px; }
.yr-pick.good { border-color: rgba(122, 201, 164, .3); }
.yr-pick.bad { border-color: rgba(217, 117, 110, .28); }
.yr-pick span { display: block; font-size: 12px; color: var(--gold-2); margin-bottom: 5px; }
.yr-pick span b { color: var(--text); font-weight: 500; margin-left: 4px; }
.yr-pick p { font-size: 11.5px; line-height: 1.8; color: var(--muted); word-break: keep-all; }
.yr-quarters { display: grid; gap: 12px; }
.yr-q-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.yr-q-head span { font-size: 10.5px; color: var(--gold); border: 1px solid rgba(217, 185, 120, .3); border-radius: 999px; padding: 2px 8px; }
.yr-q-head b { font-size: 14px; color: var(--gold-2); font-weight: 400; }
.yr-q-head em { font-style: normal; font-size: 10.5px; color: var(--muted); margin-left: auto; }
.yr-q p { font-size: 11.5px; line-height: 1.8; color: var(--muted); }
.yr-q p b { color: var(--text); }

/* ---------- 재물 · 적성 ---------- */
.wl-bar { height: 14px; border-radius: 99px; background: rgba(150, 130, 190, .35); overflow: hidden; }
.wl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8d6f3c, #d9b978, #f6e3ad); border-radius: 99px; }
.wl-ratio-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 8px; }
.wl-ratio-legend b { font-size: 14px; color: var(--gold-2); font-weight: 500; margin-right: 4px; }
.wl-verdict { font-size: 14.5px; line-height: 1.85; color: #f0e2c0; margin-top: 14px; word-break: keep-all; }
.wl-scores { margin-top: 14px; display: grid; gap: 7px; }
.wl-scores > div { display: grid; grid-template-columns: 40px 1fr 30px; align-items: center; gap: 8px; }
.wl-scores span { font-size: 11px; color: var(--muted); }
.wl-scores i { display: block; height: 6px; border-radius: 99px; background: linear-gradient(90deg, rgba(217, 185, 120, .3), var(--gold)); }
.wl-scores em { font-style: normal; font-size: 11px; color: var(--gold-2); text-align: right; }
.wl-caution { margin: 0 0 0 16px; }
.wl-caution li { font-size: 12.5px; line-height: 1.85; color: #ded7ca; margin-bottom: 8px; word-break: keep-all; }
.wl-timing { display: grid; gap: 10px; }
.wl-t { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; border: 1px solid rgba(217, 185, 120, .16); border-radius: 12px; padding: 10px; }
.wl-t-g { font-size: 19px; color: var(--gold-2); text-align: center; letter-spacing: 1px; }
.wl-t b { display: block; font-size: 12.5px; color: var(--text); font-weight: 500; }
.wl-t span { font-size: 10.5px; color: var(--muted); }
.wl-t em { font-style: normal; font-size: 10px; color: var(--gold); border: 1px solid rgba(217, 185, 120, .3); border-radius: 999px; padding: 2px 8px; }

/* ---------- 택일 ---------- */
.tk-tip { font-size: 12px; line-height: 1.85; color: var(--muted); word-break: keep-all; }
.tk-list { display: grid; gap: 10px; }
.tk-day { display: grid; grid-template-columns: 64px 1fr; gap: 12px; border: 1px solid rgba(217, 185, 120, .16); border-radius: 14px; padding: 12px; background: rgba(255, 255, 255, .02); }
.tk-day.top { border-color: rgba(246, 227, 173, .45); background: linear-gradient(160deg, rgba(217, 185, 120, .1), rgba(255, 255, 255, .02)); }
.tk-date { text-align: center; border-right: 1px solid rgba(217, 185, 120, .14); }
.tk-date b { display: block; font-family: var(--serif); font-size: 20px; color: var(--gold-2); font-weight: 400; }
.tk-date span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.tk-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 6px; }
.tk-head em { font-style: normal; font-size: 10px; color: var(--gold); }
.tk-grade { font-size: 10.5px; color: var(--muted); border: 1px solid rgba(217, 185, 120, .25); border-radius: 999px; padding: 2px 8px; }
.tk-grade.great { color: #1a1206; background: linear-gradient(135deg, #cba75e, #f6e3ad); border-color: transparent; font-weight: 600; }
.tk-ten { margin-left: auto; font-size: 10px; color: var(--muted); }
.tk-body ul { list-style: none; }
.tk-body li { font-size: 11.5px; line-height: 1.75; color: var(--muted); padding-left: 9px; position: relative; word-break: keep-all; }
.tk-body li::before { content: '·'; position: absolute; left: 0; color: var(--gold); }
.tk-avoid { display: grid; gap: 9px; }
.tk-av { border: 1px solid rgba(217, 117, 110, .22); border-radius: 11px; padding: 10px 12px; }
.tk-av b { font-size: 12.5px; color: #e8a9a3; font-weight: 500; margin-right: 6px; }
.tk-av span { font-size: 10.5px; color: var(--muted); }
.tk-av p { font-size: 11px; color: var(--muted); margin-top: 3px; }

@media (max-width: 380px) {
  .gg-oh-row { grid-template-columns: 38px 1fr 46px; }
  .td-luck { grid-template-columns: 1fr 1fr; }
  .tk-day { grid-template-columns: 56px 1fr; gap: 9px; }
  .tk-date b { font-size: 18px; }
}

/* ---------- 스크롤 정렬 — 고정 탭바에 제목이 가리지 않게 ---------- */
#ggResult, #ggFormCard, #reportCard, #todayBody, #sinsalBody, #yearlyBody, #wealthBody, #taekilBody {
  scroll-margin-top: 84px;
}

/* 오늘의 운세 — 근거 목록과 총평 사이 호흡 */
.td-hero .td-reasons + .pl-summary {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(217, 185, 120, .14);
}

/* ============================================================
   v5 — 개운 처방 (체형 · 헤어 · 점 · 말투)
   ============================================================ */

/* ---------- 입력 ---------- */
.gw-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gw-inputs .field { margin-bottom: 0; }
.gw-inputs .inp { text-align: center; font-size: 16px; letter-spacing: .02em; }

/* ---------- 히어로 ---------- */
.gw-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.gw-tag {
  font-size: 10.5px; color: var(--gold-2); padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(217, 185, 120, .28); background: rgba(217, 185, 120, .06);
}
.gw-tag.main { color: #1a1206; background: linear-gradient(135deg, #cba75e, #f6e3ad); border-color: transparent; font-weight: 600; }
.gw-lead { font-size: 13.5px; line-height: 1.95; color: #f0e2c0; word-break: keep-all; margin-top: 10px; }
.gw-hero-num { font-size: 13px; line-height: 1.9; color: var(--text); margin-top: 12px; word-break: keep-all; }
.gw-hero-num b { color: var(--gold-2); font-weight: 600; }
.gw-hero-keys {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(217, 185, 120, .14);
}
.gw-hero-keys > div { text-align: center; }
.gw-hero-keys span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; letter-spacing: .02em; }
.gw-hero-keys b { font-family: var(--serif); font-size: 16px; color: var(--gold-2); font-weight: 400; line-height: 1.2; }
.gw-hero-keys b.sm { font-size: 15px; }
.gw-hero-keys small { font-size: 10px; color: var(--muted); margin-left: 2px; font-family: var(--sans); }

/* ---------- ① 체형 ---------- */
.gw-avg-note {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 14px; padding: 12px 14px; border-radius: 13px;
  border: 1px solid rgba(226, 163, 94, .5);
  background: linear-gradient(150deg, rgba(226, 163, 94, .17), rgba(226, 163, 94, .04));
  box-shadow: 0 0 22px rgba(226, 163, 94, .09);
}
.gw-avg-tx b { display: block; font-size: 12.5px; color: #f3c88a; font-weight: 600; line-height: 1.5; word-break: keep-all; }
.gw-avg-tx p { font-size: 11px; line-height: 1.7; color: #c9b9a0; margin-top: 4px; word-break: keep-all; }
.gw-avg-tx p b { display: inline; font-family: var(--sans); font-size: 11px; color: #f3c88a; }
.gw-avg-btn {
  flex: 0 0 auto; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(246, 227, 173, .5); background: rgba(246, 227, 173, .13);
  color: var(--gold-2); font-size: 11.5px; font-family: inherit; white-space: nowrap;
  transition: .18s ease;
}
.gw-avg-btn:hover { background: rgba(246, 227, 173, .22); }
@media (max-width: 480px) {
  .gw-avg-note { flex-direction: column; align-items: stretch; gap: 10px; }
  .gw-avg-note .gw-avg-btn { align-self: flex-end; padding: 8px 14px; }
}
.gw-type-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border: 1px solid rgba(217, 185, 120, .22); border-radius: 14px;
  background: linear-gradient(150deg, rgba(217, 185, 120, .08), rgba(255, 255, 255, .02));
}
.gw-type-badge b { display: block; font-size: 20px; color: var(--gold-2); font-weight: 400; letter-spacing: .02em; }
.gw-type-badge span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.gw-type-meta { display: flex; gap: 14px; }
.gw-type-meta > div { text-align: right; }
.gw-type-meta span { display: block; font-size: 9.5px; color: var(--muted); }
.gw-type-meta b { font-family: var(--serif); font-size: 14px; color: var(--gold-2); font-weight: 400; }
.gw-type-meta em { font-style: normal; font-size: 9px; color: var(--muted); font-family: var(--sans); }

.gw-figs { margin: 16px 0 4px; }
.gw-fig-svg { width: 100%; height: auto; display: block; }
.gw-fig-ground { stroke: rgba(217, 185, 120, .18); stroke-width: 1; stroke-dasharray: 2 5; }
.gw-fig-head, .gw-fig-neck { fill: rgba(217, 185, 120, .04); stroke: rgba(217, 185, 120, .5); stroke-width: 1.1; }
.gw-fig-body, .gw-fig-limbs { fill: rgba(217, 185, 120, .035); stroke: rgba(217, 185, 120, .55); stroke-width: 1.2; stroke-linejoin: round; }
.gw-fig-axis { stroke: rgba(217, 185, 120, .28); stroke-width: .8; stroke-dasharray: 2 4; }
.gw-fig.is-risk .gw-fig-body, .gw-fig.is-risk .gw-fig-limbs, .gw-fig.is-risk .gw-fig-head, .gw-fig.is-risk .gw-fig-neck {
  stroke: rgba(217, 117, 110, .55); fill: rgba(217, 117, 110, .03);
}
.gw-fig.is-ideal .gw-fig-body, .gw-fig.is-ideal .gw-fig-limbs, .gw-fig.is-ideal .gw-fig-head, .gw-fig.is-ideal .gw-fig-neck {
  stroke: #f6e3ad; fill: rgba(246, 227, 173, .07);
  filter: drop-shadow(0 0 6px rgba(217, 185, 120, .35));
}
.gw-fig-label { font-family: var(--sans); font-size: 9.5px; fill: var(--muted); letter-spacing: .04em; }
.gw-fig-label.is-gold { fill: var(--gold-2); }

.gw-gauge { width: 100%; height: auto; display: block; margin: 2px 0 10px; }
.gw-gauge-track { fill: rgba(255, 255, 255, .05); }
.gw-gauge-band { opacity: .85; }
.gw-gauge-line { stroke: rgba(217, 185, 120, .5); stroke-width: 1; stroke-dasharray: 2 3; }
.gw-gauge-line.ceil { stroke: rgba(217, 117, 110, .55); }
.gw-gauge-t { font-family: var(--sans); font-size: 9px; fill: var(--muted); }
.gw-gauge-cur line { stroke: var(--gold-2); stroke-width: 1.4; }
.gw-gauge-cur circle { fill: var(--gold-2); }
.gw-gauge-cur text { font-family: var(--sans); font-size: 10px; fill: var(--gold-2); font-weight: 500; }

.gw-kg-triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 16px; }
.gw-kg-cell {
  text-align: center; padding: 11px 6px; border-radius: 12px;
  border: 1px solid rgba(217, 185, 120, .16); background: rgba(255, 255, 255, .02);
}
.gw-kg-cell span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.gw-kg-cell b { display: block; font-family: var(--serif); font-size: 19px; color: var(--gold-2); font-weight: 400; line-height: 1.2; }
.gw-kg-cell small { font-size: 10px; color: var(--muted); margin-left: 1px; font-family: var(--sans); }
.gw-kg-cell em { display: block; font-style: normal; font-size: 9px; color: var(--muted); margin-top: 5px; line-height: 1.5; word-break: keep-all; }
.gw-kg-cell.band { border-color: rgba(217, 185, 120, .42); background: linear-gradient(160deg, rgba(217, 185, 120, .15), rgba(217, 185, 120, .03)); }
.gw-kg-cell.low b { color: #cbb98f; }
.gw-kg-cell.ceil b { color: #e8a9a3; }

.gw-numline { font-size: 13.5px; line-height: 1.95; color: var(--gold-2); word-break: keep-all; padding: 14px; border-radius: 12px; background: rgba(217, 185, 120, .05); border: 1px solid rgba(217, 185, 120, .14); }
.gw-numline b { color: #fff5d8; font-weight: 600; }

.gw-status { margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px solid rgba(217, 185, 120, .2); background: rgba(255, 255, 255, .02); }
.gw-status b { display: block; font-size: 14px; color: var(--gold-2); font-weight: 400; }
.gw-status p { font-size: 12px; line-height: 1.85; color: var(--muted); margin-top: 6px; word-break: keep-all; }
.gw-status p b { display: inline; font-size: 12px; color: var(--gold-2); font-family: var(--sans); }
.gw-status.in { border-color: rgba(122, 201, 164, .35); background: rgba(122, 201, 164, .05); }
.gw-status.in b { color: var(--ok); }
.gw-status.thin, .gw-status.over { border-color: rgba(217, 117, 110, .38); background: rgba(217, 117, 110, .05); }
.gw-status.thin b, .gw-status.over b { color: #e8a9a3; }
.gw-status.near, .gw-status.low { border-color: rgba(226, 163, 94, .34); }
.gw-status.near b, .gw-status.low b { color: var(--warn); }

.gw-actions { display: grid; gap: 10px; margin-top: 16px; }
.gw-act { display: flex; gap: 11px; align-items: flex-start; }
.gw-act > span {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(217, 185, 120, .4); color: var(--gold); font-size: 9.5px; font-family: var(--serif);
}
.gw-act b { font-size: 11.5px; color: var(--gold-2); font-weight: 500; letter-spacing: .02em; }
.gw-act p { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 2px; word-break: keep-all; }

.gw-fine { font-size: 11.5px; line-height: 1.85; color: var(--muted); margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(217, 185, 120, .12); word-break: keep-all; }
.gw-note { font-size: 10.5px; line-height: 1.8; color: #7d766c; margin-top: 14px; word-break: keep-all; }
.gw-note b { color: var(--gold); font-weight: 500; }

/* ---------- ② 헤어 ---------- */
.gw-hair-svg-wrap { margin: 4px 0 8px; }
.gw-hair-svg { width: 100%; height: auto; display: block; }
.gw-hair-mass path { fill: rgba(217, 185, 120, .10); stroke: rgba(217, 185, 120, .45); stroke-width: 1.1; }
.gw-hair-line { fill: none !important; stroke: rgba(217, 185, 120, .3) !important; stroke-width: .8 !important; }
.gw-hair-face { fill: rgba(217, 185, 120, .05); stroke: rgba(217, 185, 120, .45); stroke-width: 1; }
.gw-hair-shoulder { fill: rgba(217, 185, 120, .04); stroke: rgba(217, 185, 120, .3); stroke-width: 1; }
.gw-hair-feat path { fill: none; stroke: rgba(246, 227, 173, .5); stroke-width: 1.1; stroke-linecap: round; }
.gw-bust.is-pick .gw-hair-mass path { fill: rgba(246, 227, 173, .16); stroke: #f6e3ad; stroke-width: 1.4; }
.gw-bust.is-pick .gw-hair-face { stroke: rgba(246, 227, 173, .75); }
.gw-bust.is-pick { filter: drop-shadow(0 0 8px rgba(217, 185, 120, .3)); }
.gw-bust-tag { font-family: var(--sans); font-size: 8.5px; fill: #1a1206; }
.gw-hair-cap { font-family: var(--sans); font-size: 9.5px; fill: var(--muted); }
.gw-hair-cap.is-gold { fill: var(--gold-2); }

.gw-pick-line { display: flex; align-items: baseline; gap: 9px; margin: 4px 0 8px; padding: 10px 12px; border-radius: 11px; border: 1px solid rgba(217, 185, 120, .3); background: rgba(217, 185, 120, .07); }
.gw-pick-line span { font-size: 9.5px; color: var(--muted); letter-spacing: .06em; }
.gw-pick-line b { font-size: 15px; color: var(--gold-2); font-weight: 400; }
.gw-body-text { font-size: 12.5px; line-height: 1.9; color: var(--text); word-break: keep-all; }

.gw-hair-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.gw-fact { border-left: 1px solid rgba(217, 185, 120, .25); padding-left: 10px; }
.gw-fact span { display: block; font-size: 9.5px; color: var(--muted); letter-spacing: .06em; margin-bottom: 3px; }
.gw-fact p { font-size: 11.5px; line-height: 1.8; color: var(--muted); word-break: keep-all; }

.gw-swatch-row { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 16px; padding: 12px; border-radius: 12px; border: 1px solid rgba(217, 185, 120, .16); }
.gw-swatch { display: flex; gap: 3px; }
.gw-swatch i, .gw-live-colors i { display: block; width: 18px; height: 28px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.gw-swatch.avoid i { width: 24px; height: 28px; opacity: .55; }
.gw-swatch-txt b { display: block; font-size: 11px; color: var(--gold-2); font-weight: 500; line-height: 1.4; }
.gw-swatch-txt span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 1px; }

.gw-care { display: grid; gap: 8px; margin-top: 14px; }
.gw-care p { display: flex; gap: 9px; font-size: 11.5px; line-height: 1.8; color: var(--muted); word-break: keep-all; }
.gw-care p span { flex: none; font-family: var(--serif); font-size: 10px; color: var(--gold); }

/* ---------- ③ 점 ---------- */
.gw-dot-legend-top { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 16px; }
.gw-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(217, 185, 120, .16); }
.gw-chip i { width: 8px; height: 8px; border-radius: 50%; }
.gw-chip.good i { background: #f0d79a; box-shadow: 0 0 7px rgba(240, 215, 154, .8); }
.gw-chip.bad i { background: #d9756e; box-shadow: 0 0 7px rgba(217, 117, 110, .7); }

.gw-face-wrap { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); gap: 18px; align-items: center; }
.gw-face { width: 100%; height: auto; display: block; }
.gw-face-hair { fill: #15111d; stroke: rgba(217, 185, 120, .22); stroke-width: 1; }
.gw-face-oval { stroke: rgba(217, 185, 120, .42); stroke-width: 1.1; }
.gw-face-ear { fill: rgba(217, 185, 120, .04); stroke: rgba(217, 185, 120, .35); stroke-width: 1; }
.gw-face-feat path, .gw-face-feat ellipse { fill: none; stroke: rgba(246, 227, 173, .4); stroke-width: 1.2; stroke-linecap: round; }
.gw-face-feat ellipse { fill: none; }
.gw-face-pupil { fill: rgba(246, 227, 173, .5) !important; stroke: none !important; }

.gw-dot-halo { fill: rgba(230, 200, 132, .26); animation: gwPulse 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.gw-dot-core { fill: #f0d79a; stroke: #8d6f3c; stroke-width: .8; }
.gw-dot-no { font-family: var(--sans); font-size: 8.5px; fill: #1a1206; font-weight: 700; }
.gw-dot.bad .gw-dot-halo { fill: rgba(217, 117, 110, .22); animation-delay: -1.2s; }
.gw-dot-x { stroke: #ff9a92; stroke-width: 2; stroke-linecap: round; }
.gw-dot-no.bad { fill: #ff9a92; font-size: 9px; }
@keyframes gwPulse { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: .95; transform: scale(1.3); } }

.gw-face-side { display: grid; gap: 14px; }
.gw-legend-col { display: grid; gap: 10px; }
.gw-legend-h { display: flex; align-items: baseline; gap: 7px; padding-bottom: 6px; border-bottom: 1px solid rgba(217, 185, 120, .18); }
.gw-legend-h b { font-size: 12px; color: var(--gold-2); font-weight: 500; letter-spacing: .04em; }
.gw-legend-h span { font-size: 9px; color: var(--muted); }
.gw-legend-col.bad .gw-legend-h b { color: #e8a9a3; }
.gw-legend-item { display: flex; gap: 8px; align-items: flex-start; }
.gw-legend-no {
  flex: none; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
  font-size: 9px; font-weight: 700; color: #1a1206; background: #f0d79a; margin-top: 1px;
}
.gw-legend-col.bad .gw-legend-no, .gw-ml-item.bad .gw-legend-no { background: #d9756e; color: #1a0a09; }
.gw-legend-txt b { font-size: 11.5px; color: var(--gold-2); font-weight: 500; display: block; }
.gw-legend-txt b em { font-style: normal; font-size: 9.5px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.gw-legend-txt p { font-size: 10.5px; line-height: 1.75; color: var(--muted); margin-top: 3px; word-break: keep-all; }
.gw-legend-txt p.gw-legend-act { color: #cbb98f; padding-left: 7px; border-left: 1px solid rgba(217, 185, 120, .3); }

.gw-body-marks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gw-mark-box { border: 1px solid rgba(217, 185, 120, .14); border-radius: 14px; padding: 12px; background: rgba(255, 255, 255, .015); }
.gw-mark-h { display: flex; align-items: baseline; gap: 7px; margin-bottom: 4px; }
.gw-mark-h b { font-size: 13px; color: var(--gold-2); font-weight: 400; }
.gw-mark-h span { font-size: 8.5px; color: var(--muted); letter-spacing: .14em; }
.gw-hand, .gw-neck { width: 100%; max-width: 190px; height: auto; display: block; margin: 0 auto; }
.gw-hand-shape path, .gw-neck-shape path { fill: rgba(217, 185, 120, .045); stroke: rgba(217, 185, 120, .42); stroke-width: 1.1; stroke-linejoin: round; }
.gw-hand-shape .gw-hand-line, .gw-neck-shape .gw-neck-line { fill: none; stroke: rgba(246, 227, 173, .25); stroke-width: .9; }
.gw-mark-list { display: grid; gap: 9px; margin-top: 8px; }
.gw-ml-item { display: flex; gap: 8px; align-items: flex-start; }
.gw-ml-item b { font-size: 11px; color: var(--gold-2); font-weight: 500; }
.gw-ml-item em { font-style: normal; font-size: 8.5px; color: var(--muted); margin-left: 4px; }
.gw-ml-item p { font-size: 10px; line-height: 1.7; color: var(--muted); margin-top: 2px; word-break: keep-all; }

/* ---------- ④ 말투 ---------- */
.gw-ten-bars { display: grid; gap: 7px; margin: 16px 0 18px; }
.gw-ten-bar { display: grid; grid-template-columns: 40px 1fr 42px; align-items: center; gap: 8px; }
.gw-ten-bar span { font-size: 10.5px; color: var(--muted); }
.gw-ten-bar i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.gw-ten-bar i b { display: block; height: 100%; border-radius: 3px; background: rgba(217, 185, 120, .35); }
.gw-ten-bar em { font-style: normal; font-size: 9.5px; color: var(--muted); text-align: right; }
.gw-ten-bar.on span { color: var(--gold-2); }
.gw-ten-bar.on i b { background: linear-gradient(90deg, #cba75e, #f6e3ad); }
.gw-ten-bar.on em { color: var(--gold-2); }

.gw-voice-grid { display: grid; gap: 10px; }
.gw-voice { border: 1px solid rgba(217, 185, 120, .16); border-radius: 12px; padding: 12px; }
.gw-voice > span { display: inline-block; font-size: 9px; color: #1a1206; background: rgba(217, 185, 120, .75); padding: 2px 7px; border-radius: 999px; letter-spacing: .04em; }
.gw-voice p { font-size: 12px; line-height: 1.85; color: var(--text); margin-top: 8px; word-break: keep-all; }
.gw-voice em { display: block; font-style: normal; font-size: 10.5px; line-height: 1.75; color: var(--muted); margin-top: 6px; word-break: keep-all; }

.gw-say-list { display: grid; gap: 14px; }
.gw-say { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(217, 185, 120, .1); }
.gw-say:last-child { border-bottom: 0; padding-bottom: 0; }
.gw-say-no { font-family: var(--serif); font-size: 12px; color: var(--gold); padding-top: 2px; }
.gw-say-bad, .gw-say-good { padding: 9px 11px; border-radius: 10px; }
.gw-say-bad { border: 1px solid rgba(217, 117, 110, .28); background: rgba(217, 117, 110, .05); }
.gw-say-good { border: 1px solid rgba(122, 201, 164, .28); background: rgba(122, 201, 164, .05); margin-top: 6px; }
.gw-say-bad span, .gw-say-good span { display: block; font-size: 9px; letter-spacing: .04em; margin-bottom: 3px; }
.gw-say-bad span { color: #e8a9a3; }
.gw-say-good span { color: var(--ok); }
.gw-say-bad b, .gw-say-good b { font-size: 12.5px; font-weight: 500; line-height: 1.6; display: block; word-break: keep-all; }
.gw-say-bad b { color: #f0d2cf; }
.gw-say-good b { color: #dff3ea; }
.gw-say-body > p { font-size: 10.5px; line-height: 1.8; color: var(--muted); margin-top: 7px; word-break: keep-all; }

/* ---------- ⑤ 생활 ---------- */
.gw-live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.gw-live { border: 1px solid rgba(217, 185, 120, .16); border-radius: 13px; padding: 13px; background: rgba(255, 255, 255, .015); }
.gw-live > span { display: block; font-size: 9.5px; color: var(--muted); letter-spacing: .05em; margin-bottom: 7px; }
.gw-live > b { display: block; font-family: var(--serif); font-size: 13px; color: var(--gold-2); font-weight: 400; line-height: 1.5; word-break: keep-all; }
.gw-live p { font-size: 10.5px; line-height: 1.8; color: var(--muted); margin-top: 7px; word-break: keep-all; }
.gw-live-colors { display: flex; gap: 4px; margin-bottom: 8px; }
.gw-live-colors i { width: 26px; height: 18px; }
.gw-hours { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(217, 185, 120, .12); }
.gw-hours b { font-size: 10px; color: var(--gold); letter-spacing: .06em; }
.gw-hours p { font-size: 10.5px; line-height: 1.8; color: var(--muted); margin-top: 3px; word-break: keep-all; }

/* ---------- 반응형 ---------- */
@media (max-width: 860px) {
  .gw-face-wrap { grid-template-columns: 1fr; gap: 14px; }
  .gw-face { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .gw-type-row { flex-wrap: wrap; }
  .gw-type-meta { width: 100%; justify-content: space-between; }
  .gw-body-marks { grid-template-columns: 1fr; }
  .gw-live-grid { grid-template-columns: 1fr; }
  .gw-hair-facts { grid-template-columns: 1fr; }
  .gw-hours { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .gw-hero-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .gw-kg-triple { grid-template-columns: 1fr; }
  .gw-kg-cell { display: grid; grid-template-columns: 76px 1fr; align-items: center; text-align: left; column-gap: 10px; padding: 10px 12px; }
  .gw-kg-cell span { margin: 0; }
  .gw-kg-cell b { font-size: 17px; }
  .gw-kg-cell em { grid-column: 2; margin-top: 2px; }
  .gw-swatch-row { grid-template-columns: auto 1fr; row-gap: 10px; }
  .gw-inputs { gap: 9px; }
}

/* v5 보정 — 도해 크기와 스크롤 정렬 */
.gw-fig-svg { max-width: 430px; margin: 0 auto; }
#gaewunBody { scroll-margin-top: 124px; }
#gwFormCard { scroll-margin-top: 124px; }
@media (max-width: 840px) {
  #gaewunBody, #gwFormCard { scroll-margin-top: 122px; }
}

/* 점 이름표 */
.gw-dot-lab {
  font-family: var(--sans); font-size: 8.5px; fill: #f4e7c8; letter-spacing: .01em;
  paint-order: stroke; stroke: #0b0811; stroke-width: 2.8px; stroke-linejoin: round;
}
.gw-dot-lab.bad { fill: #f2b6b0; }
.gw-dot-xno { font-family: var(--sans); font-size: 8px; fill: #ff9a92; paint-order: stroke; stroke: #0b0811; stroke-width: 2.6px; }
.gw-face-line { fill: none; stroke: rgba(246, 227, 173, .18); stroke-width: 1; }
.gw-face-feat path, .gw-face-feat ellipse { stroke: rgba(246, 227, 173, .55); }
.gw-neck-head { fill: rgba(217, 185, 120, .05); stroke: rgba(217, 185, 120, .4); stroke-width: 1.1; }
.gw-hair-feat ellipse { fill: rgba(246, 227, 173, .18); stroke: rgba(246, 227, 173, .55); stroke-width: .9; }
.gw-bust.is-pick .gw-hair-feat ellipse { fill: rgba(246, 227, 173, .3); }
.gw-face-oval { fill: url(#gwFace); }

/* ============================================================
   v6 — 탭 11개 · 개명/작명 · 소름 돋아요
   ============================================================ */
.tabs { grid-template-columns: repeat(11, minmax(0, 1fr)); }
@media (max-width: 840px) {
  .tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tab { font-size: 11.5px; padding: 7px 1px; }
  .tab span { font-size: 7.6px; }
}
@media (max-width: 360px) {
  .tab { font-size: 10.5px; padding: 6px 1px; }
  .tab span { font-size: 7px; letter-spacing: .02em; }
}

/* ---------- 개명 · 아기 작명 ---------- */
.nm-sur-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
@media (max-width: 420px) { .nm-sur-row { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; } }
.nm-verdict { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 4px; letter-spacing: .02em; }
.nm-need {
  border: 1px solid rgba(217, 185, 120, .22); border-radius: 12px;
  padding: 11px 13px; background: rgba(217, 185, 120, .05);
  font-size: 13px; line-height: 1.85; color: #f0e2c0; margin-top: 14px; word-break: keep-all;
}
.nm-rows-head, .nm-row {
  display: grid; grid-template-columns: 42px 34px minmax(0, 1fr) 38px 50px;
  gap: 8px; align-items: center;
}
.nm-rows-head {
  font-size: 9.5px; color: var(--muted); padding: 0 2px 8px;
  border-bottom: 1px solid rgba(217, 185, 120, .12);
}
.nm-row { padding: 8px 2px; border-bottom: 1px solid rgba(217, 185, 120, .06); }
.nm-elem { font-size: 12.5px; color: var(--text); white-space: nowrap; }
.nm-elem small { font-size: 9.5px; opacity: .65; margin-left: 2px; }
.nm-mark {
  font-size: 9px; color: var(--muted); border: 1px solid rgba(217, 185, 120, .18);
  border-radius: 999px; padding: 1px 5px; text-align: center; white-space: nowrap;
}
.nm-mark.yong { color: #1a1206; background: linear-gradient(135deg, #cba75e, #f6e3ad); border-color: transparent; font-weight: 700; }
.nm-mark.hee { color: var(--gold-2); border-color: rgba(246, 227, 173, .4); }
.nm-mark.gi { color: #e8a9a3; border-color: rgba(217, 117, 110, .35); }
.nm-bar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.nm-bar i { display: block; height: 100%; border-radius: 99px; opacity: .85; }
.nm-pct { font-size: 10.5px; color: var(--muted); text-align: right; }
.nm-dots { display: flex; gap: 3px; justify-content: flex-end; }
.nm-dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(217, 185, 120, .35); }
.nm-dots i.on { background: var(--gold-2); border-color: transparent; }
.nm-legend { display: grid; gap: 4px; margin: 12px 0 8px; }
.nm-legend span { font-size: 10.5px; color: var(--muted); }
.nm-legend b { font-weight: 500; margin-right: 6px; }
.nm-legend b.yong { color: var(--gold-2); }
.nm-legend b.hee { color: #e2a35e; }
.nm-legend b.gi { color: #d9756e; }

.nm-para { font-size: 13.5px; line-height: 1.95; color: #ede5d6; margin-bottom: 12px; word-break: keep-all; }
.nm-blk-title { display: block; font-size: 12px; letter-spacing: .04em; margin-bottom: 7px; }
.nm-issues, .nm-goods { margin-top: 14px; border-radius: 12px; padding: 12px 13px; }
.nm-issues { border: 1px solid rgba(217, 117, 110, .24); background: rgba(217, 117, 110, .05); }
.nm-issues .nm-blk-title { color: #e8a9a3; }
.nm-goods { border: 1px solid rgba(122, 201, 164, .2); background: rgba(122, 201, 164, .04); }
.nm-goods .nm-blk-title { color: var(--ok); }
.nm-issues ul, .nm-goods ul { list-style: none; }
.nm-issues li, .nm-goods li {
  font-size: 12px; line-height: 1.85; padding-left: 10px; position: relative;
  margin-bottom: 6px; word-break: keep-all;
}
.nm-issues li { color: #e8c8c4; }
.nm-goods li { color: #cfe6d8; }
.nm-issues li:last-child, .nm-goods li:last-child { margin-bottom: 0; }
.nm-issues li::before { content: '·'; position: absolute; left: 0; color: #d9756e; }
.nm-goods li::before { content: '·'; position: absolute; left: 0; color: var(--ok); }

.nm-pitch .nm-para { color: #f0e2c0; }
.nm-points { list-style: none; margin: 14px 0; display: grid; gap: 10px; }
.nm-points li { font-size: 11.5px; line-height: 1.85; color: var(--muted); word-break: keep-all; }
.nm-points b { display: block; font-size: 12.5px; color: var(--gold-2); font-weight: 500; margin-bottom: 2px; }

.nm-lock-list { display: grid; gap: 8px; margin-top: 14px; }
.nm-lock-row {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto;
  gap: 10px; align-items: center;
  border: 1px solid rgba(217, 185, 120, .13); border-radius: 12px; padding: 10px 12px;
}
.nm-lock-row b { font-size: 17px; color: var(--text); font-weight: 400; }
.nm-lock-row em { font-style: normal; font-size: 11.5px; color: var(--gold); opacity: .5; letter-spacing: .12em; }
.nm-lock-score { font-size: 12px; color: var(--gold-2); }
.nm-preview {
  position: relative; margin-top: 14px; overflow: hidden; max-height: 138px;
  border: 1px solid rgba(217, 185, 120, .16); border-radius: 12px; padding: 12px;
}
.nm-preview-tag { font-size: 10px; color: var(--gold); letter-spacing: .04em; }
.nm-preview p { font-size: 12px; line-height: 1.85; color: #ded7ca; margin-top: 6px; word-break: keep-all; }
.nm-preview-veil {
  position: absolute; left: 0; right: 0; bottom: 0; height: 74%;
  display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding-bottom: 12px;
  font-size: 11.5px; color: var(--gold-2);
  background: linear-gradient(180deg, rgba(6, 5, 10, 0), rgba(6, 5, 10, .95) 58%);
}
.nm-cta { margin-top: 16px; text-align: center; }
.nm-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.nm-price s { font-size: 12px; color: var(--muted); }
.nm-price b { font-size: 23px; color: var(--gold-2); font-family: var(--serif); font-weight: 400; }
.nm-price span { font-size: 9.5px; color: #1a1206; background: linear-gradient(135deg, #cba75e, #f6e3ad); border-radius: 999px; padding: 2px 8px; }
.nm-cta .btn-gold { width: 100%; }
.nm-demo-btn { width: 100%; margin-top: 9px; }
.nm-cta .small { margin-top: 10px; text-align: center; }

.nm-gain {
  border: 1px solid rgba(246, 227, 173, .3); border-radius: 11px; padding: 9px 12px;
  font-size: 12px; color: var(--muted); margin-bottom: 12px; text-align: center;
}
.nm-gain b { color: var(--gold-2); font-family: var(--serif); font-size: 15px; font-weight: 400; }
.nm-gain span { color: var(--ok); font-size: 11.5px; }
.nm-cand {
  border: 1px solid rgba(217, 185, 120, .16); border-radius: 14px; padding: 14px;
  margin-top: 14px; background: rgba(255, 255, 255, .02);
}
.nm-cand.top {
  border-color: rgba(246, 227, 173, .42);
  background: linear-gradient(160deg, rgba(217, 185, 120, .1), rgba(255, 255, 255, .02));
}
.nm-cand-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nm-rank { font-size: 9.5px; color: var(--gold); border: 1px solid rgba(217, 185, 120, .3); border-radius: 999px; padding: 2px 8px; }
.nm-cand-name { font-size: 24px; color: var(--gold-2); line-height: 1.25; }
.nm-cand-name small { font-size: 12px; color: var(--gold); margin-left: 6px; letter-spacing: .08em; }
.nm-cand-score { margin-left: auto; font-size: 11px; color: var(--muted); }
.nm-cand-score b { font-size: 21px; color: var(--gold-2); font-family: var(--serif); font-weight: 400; }
.nm-cand-headline { font-size: 12.5px; color: #f0e2c0; margin-top: 3px; word-break: keep-all; }
.nm-flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 11px 0 4px; }
.nm-chip {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 44px;
  padding: 5px 8px; border-radius: 10px; border: 1px solid var(--ec); background: rgba(255, 255, 255, .03);
}
.nm-chip b { font-family: var(--serif); font-size: 17px; color: var(--ec); font-weight: 400; line-height: 1.15; }
.nm-chip small { font-size: 8.5px; color: var(--muted); line-height: 1.3; }
.nm-rel { font-size: 9px; color: var(--muted); white-space: nowrap; letter-spacing: .02em; }
.nm-rel.sang { color: var(--ok); }
.nm-rel.geuk, .nm-rel.yeok { color: var(--bad); }
.nm-hanja-line { font-size: 11.5px; color: var(--muted); margin-top: 6px; letter-spacing: .02em; }
.nm-gyeok { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.nm-gyeok-item { border: 1px solid rgba(217, 185, 120, .14); border-radius: 10px; padding: 6px 3px; text-align: center; }
.nm-gyeok-item span { display: block; font-size: 9px; color: var(--muted); }
.nm-gyeok-item b { font-family: var(--serif); font-size: 16px; color: var(--text); font-weight: 400; }
.nm-gyeok-item em { display: block; font-style: normal; font-size: 8px; color: var(--muted); line-height: 1.35; }
.nm-gyeok-item.g3 b { color: var(--gold-2); }
.nm-gyeok-item.g0 b { color: var(--bad); }
.nm-gyeok-item.g0 { border-color: rgba(217, 117, 110, .25); }
.nm-why { list-style: none; margin-top: 11px; }
.nm-why li {
  font-size: 11.5px; line-height: 1.85; color: #ded7ca; padding-left: 10px;
  position: relative; margin-bottom: 5px; word-break: keep-all;
}
.nm-why li::before { content: '·'; position: absolute; left: 0; color: var(--gold); }
.nm-cand-foot { font-size: 10px; color: var(--muted); margin-top: 8px; letter-spacing: .02em; }

/* ---------- 🔥 소름 돋아요 ---------- */
.like-row { margin-top: 10px; display: flex; justify-content: center; }
.like-inline { display: inline-block; margin-top: 12px; margin-left: 8px; vertical-align: bottom; }
.like-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(217, 117, 110, .35); background: rgba(217, 117, 110, .07);
  color: #f0c9b8; font-size: 12px; font-family: inherit; letter-spacing: .02em; transition: .2s;
}
/* hover 에서도 금색 그라데이션 유지 — 반투명 배경으로 덮으면 어두운 글자가 묻힙니다(터치 기기의 붙는 hover 포함) */
.like-btn:hover { border-color: #e2a35e; }
.like-btn .like-fire { font-size: 14px; line-height: 1; }
.like-btn .like-num { font-size: 13px; color: var(--gold-2); font-variant-numeric: tabular-nums; font-weight: 500; }
.like-btn.liked {
  border-color: rgba(246, 227, 173, .5); cursor: default; color: var(--gold-2);
  background: linear-gradient(135deg, rgba(217, 185, 120, .22), rgba(226, 163, 94, .12));
}
.like-btn.liked .like-fire { filter: drop-shadow(0 0 7px rgba(246, 227, 173, .85)); }
.like-btn.pulse, .like-top-btn.pulse { animation: likePulse .9s ease; }
@keyframes likePulse { 0% { transform: scale(1); } 32% { transform: scale(1.09); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .like-btn.pulse, .like-top-btn.pulse { animation: none; } }
#nmResult { scroll-margin-top: 140px; }
/* 원격(조상운)은 참고용 — 흉수라도 눈에 덜 띄게 */
.nm-gyeok .nm-gyeok-item:first-child { opacity: .62; }
.nm-gyeok .nm-gyeok-item:first-child b { color: var(--muted); }

/* ============================================================
   v9 — 소름 돋아요(상단 고정 배지 + 결과 맨 끝 강조) · 외모·점
   ============================================================ */

/* ---------- 상단 고정 바 (탭 + 소름 돋아요 배지) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  margin: 22px auto 0;
  background: linear-gradient(180deg, rgba(6,5,10,.975) 0%, rgba(6,5,10,.92) 58%, rgba(6,5,10,.72) 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217,185,120,.12);
  padding-bottom: 2px;
}
.topbar .tabs {
  position: static; top: auto; z-index: auto;
  margin: 0 auto;
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 0;
}
.like-top-bar { display: flex; justify-content: center; padding: 3px 12px 9px; }
.like-top-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; max-width: 560px; padding: 9px 14px; border-radius: 999px;
  border: 1.4px solid transparent; cursor: pointer;
  background:
    linear-gradient(rgba(30,17,9,.96), rgba(22,12,7,.96)) padding-box,
    linear-gradient(118deg, #f6e3ad 0%, #e08d3c 42%, #d9b978 72%, #fff0c8 100%) border-box;
  color: #ffe9c6; font-family: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: .01em; line-height: 1.25; text-align: center;
  box-shadow: 0 8px 24px rgba(224,141,60,.20), inset 0 0 22px rgba(224,141,60,.10);
  animation: likeTopGlow 3.4s ease-in-out infinite;
  transition: transform .18s ease;
}
.like-top-btn:active { transform: scale(.985); }
.like-top-btn .like-fire { font-size: 16px; line-height: 1; filter: drop-shadow(0 0 7px rgba(255,150,60,.8)); }
.like-top-btn .like-lead { color: #f0cfa0; opacity: .85; font-weight: 500; }
.like-top-btn .like-num {
  font-size: 15px; font-weight: 800; color: #ffd79a;
  font-variant-numeric: tabular-nums; margin: 0 1px;
  text-shadow: 0 0 12px rgba(255,190,110,.55);
}
.like-top-btn .like-tail { color: #ffe9c6; }
.like-top-btn.liked { animation: none; border-color: rgba(246,227,173,.62); }
.like-top-btn.liked .like-fire { filter: drop-shadow(0 0 11px rgba(255,196,96,.95)); }
@keyframes likeTopGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(224,141,60,.18), inset 0 0 22px rgba(224,141,60,.08); }
  50% { box-shadow: 0 11px 32px rgba(224,141,60,.36), inset 0 0 28px rgba(224,141,60,.17); }
}
@media (prefers-reduced-motion: reduce) { .like-top-btn { animation: none; } }

/* ---------- 결과 맨 끝 소름 돋아요 — 크고 선명하게 ---------- */
.like-row { margin-top: 16px; display: flex; justify-content: center; }
.like-inline { display: inline-block; margin-top: 14px; vertical-align: bottom; }
.like-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-width: 258px; padding: 16px 30px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,238,196,.6);
  background: linear-gradient(135deg, #e08d3c 0%, #f0b56a 40%, #f6e3ad 100%);
  color: #2b1708; font-size: 16.5px; font-weight: 700; font-family: inherit;
  letter-spacing: .015em; line-height: 1.1;
  box-shadow: 0 12px 30px rgba(224,141,60,.36),
              0 0 0 1px rgba(255,240,200,.30) inset,
              0 0 26px rgba(240,181,106,.24);
  transition: transform .18s ease, box-shadow .22s ease, filter .22s ease;
}
.like-btn:hover {
  filter: brightness(1.07); transform: translateY(-1px);
  box-shadow: 0 15px 36px rgba(224,141,60,.48), 0 0 0 1px rgba(255,240,200,.38) inset;
}
.like-btn .like-fire { font-size: 19px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(120,50,0,.35)); }
.like-btn .like-txt { white-space: nowrap; }
.like-btn .like-sep { opacity: .5; font-weight: 800; }
.like-btn .like-num { font-size: 18px; font-weight: 800; color: #241303; font-variant-numeric: tabular-nums; }
.like-btn.liked {
  cursor: default;
  background: linear-gradient(135deg, #f6e3ad 0%, #e8c382 52%, #e0b878 100%);
  border-color: rgba(255,246,220,.8);
  box-shadow: 0 10px 26px rgba(217,185,120,.34), 0 0 0 1px rgba(255,244,210,.4) inset;
}
.like-btn.liked:hover { transform: none; filter: none; }
.like-btn.liked .like-fire { filter: drop-shadow(0 0 8px rgba(214,110,20,.7)); }
@media (max-width: 400px) {
  .like-btn { min-width: 0; width: 100%; max-width: 300px; padding: 15px 22px; font-size: 15.5px; gap: 8px; }
  .like-btn .like-num { font-size: 17px; }
  .like-inline { display: block; margin: 14px auto 0; }
  .like-inline .like-btn { width: 100%; max-width: 300px; }
}

/* ---------- 결과 맨 끝 카드(사주) ---------- */
.end-like-card { text-align: center; margin-top: 16px; }
.end-like-lead {
  font-size: 13.5px; line-height: 1.8; color: #f0e2c0;
  word-break: keep-all; margin: 0 auto 2px; max-width: 460px;
}

/* ---------- 외모 · 점 입력 바 (첫 화면에 결과까지 보이게 압축) ---------- */
.gw-quick { padding: 0 2px; margin-bottom: 4px; }
.gw-quick .gw-inputs { margin-top: 0; }
.gw-quick .hint { margin-top: 6px; font-size: 10.5px; line-height: 1.55; }
.gw-quick .pf-slot { margin: 9px 0 4px; }
.gw-quick .pf-bar { padding: 7px 10px; gap: 8px; border-radius: 11px; }
.gw-quick .pf-seal { flex: 0 0 24px; width: 24px; height: 24px; font-size: 12px; border-radius: 6px; }
.gw-quick .pf-txt b { font-size: 11.5px; }
.gw-quick .pf-txt small { display: none; }
.gw-quick .pf-edit { font-size: 10.5px; padding: 4px 8px; }
@media (max-width: 400px) {
  .gw-quick .gw-inputs { gap: 9px; }
  .gw-quick .gw-inputs .inp { font-size: 15px; padding: 10px 8px; }
}

/* 탭바 + 배지가 같이 고정되므로 스크롤 여백을 늘린다 */
.panel, .card, #resultPanel { scroll-margin-top: 132px; }
@media (max-width: 840px) {
  .panel, .card, #resultPanel { scroll-margin-top: 176px; }
  #nmResult { scroll-margin-top: 176px; }
}

/* ============================================================
   v10 — 블러 + 자물쇠 퍼널 · 아이 사주 · 2차 업셀 · 12탭
   ============================================================ */

/* ---------- 탭 12개 ---------- */
.tabs { grid-template-columns: repeat(12, minmax(0, 1fr)); }
@media (max-width: 840px) {
  .tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tab { font-size: 11.5px; padding: 6px 1px; }
  .tab span { font-size: 7.4px; }
  .tab .tab-emoji { font-size: 11px; }
}
@media (max-width: 360px) {
  .tab { font-size: 10.5px; padding: 5px 1px; }
  .tab span { font-size: 6.8px; letter-spacing: .01em; }
}
.tab .tab-emoji { display: inline-block; margin-right: 2px; font-size: 12px; line-height: 1; }

/* ---------- 맛보기 카드 ---------- */
.taste-wrap { margin-top: 4px; }
.taste-lead {
  font-size: 14.5px; line-height: 1.95; color: #efe6d4; word-break: keep-all;
}
.taste-lead strong { color: var(--gold-2); font-weight: 600; }
.taste-body {
  font-size: 14px; line-height: 2; color: #ddd4c4; margin-top: 12px; word-break: keep-all;
}
.taste-charm {
  margin-top: 16px; padding: 14px 15px; border-radius: 14px;
  border: 1px solid rgba(217,185,120,.26);
  background: linear-gradient(160deg, rgba(217,185,120,.12), rgba(217,185,120,.03));
}
.taste-charm span {
  display: inline-block; font-size: 10.5px; letter-spacing: .16em; color: var(--gold);
  margin-bottom: 6px;
}
.taste-charm p { font-size: 13.5px; line-height: 1.95; color: #f3e8cf; word-break: keep-all; }
.taste-next {
  margin-top: 16px; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); letter-spacing: .02em;
}
.taste-next i { flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, rgba(217,185,120,.5), transparent); }
.taste-next b { color: var(--gold-2); font-weight: 500; }

/* ---------- 잠금(블러) 구역 ---------- */
.vault { position: relative; }
.vault-inner { display: block; }
.vault.is-locked .vault-inner {
  max-height: var(--vault-h, 560px);
  overflow: hidden;
  filter: blur(7px) saturate(.85);
  transform: scale(1.008);
  user-select: none; -webkit-user-select: none;
  pointer-events: none;
  padding-top: 2px;
}
.vault-fade {
  display: none; position: absolute; left: 0; right: 0; top: 0;
  height: var(--vault-h, 560px); pointer-events: none; border-radius: 20px;
  background: linear-gradient(180deg, rgba(6,5,10,0) 0%, rgba(6,5,10,.35) 42%, rgba(6,5,10,.86) 78%, #06050a 100%);
}
.vault.is-locked .vault-fade { display: block; }
.vault.is-locked .vault-lock { display: block; }
.vault-lock { display: none; position: relative; margin-top: -110px; z-index: 3; }
.vault.is-locked .vault-inner + .vault-fade + .vault-lock { animation: vaultRise .5s ease both .15s; }
@keyframes vaultRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.vault-lock-in {
  position: relative; overflow: hidden;
  border-radius: 22px; border: 1px solid rgba(217,185,120,.42);
  background: linear-gradient(168deg, rgba(58,27,63,.94), rgba(16,11,22,.985) 62%);
  box-shadow: 0 26px 60px rgba(0,0,0,.62), inset 0 1px 0 rgba(246,227,173,.1);
  padding: 22px 18px 18px; text-align: center;
}
.vault-lock-in::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(217,185,120,.2), transparent 62%);
}
.vl-lock {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; font-size: 23px;
  border: 1px solid rgba(217,185,120,.5);
  background: radial-gradient(circle at 50% 30%, rgba(217,185,120,.28), rgba(217,185,120,.04));
  box-shadow: 0 0 26px rgba(217,185,120,.24);
}
.vl-kicker { font-size: 10px; letter-spacing: .2em; color: var(--gold); margin-bottom: 8px; }
.vault-lock-in h3 {
  font-size: 18px; line-height: 1.5; color: #fff3d6; font-weight: 600; word-break: keep-all;
}
.vl-list {
  display: grid; gap: 5px; margin: 14px auto 0; max-width: 420px; text-align: left;
}
.vl-list li {
  list-style: none; font-size: 12.5px; line-height: 1.7; color: #d6cbb6;
  display: flex; gap: 7px; align-items: flex-start;
}
.vl-list li::before { content: '·'; color: var(--gold); flex: 0 0 auto; }
.vl-price {
  margin-top: 15px; display: flex; align-items: baseline; justify-content: center; gap: 9px;
  font-family: var(--sans);
}
.vl-price s { font-size: 12.5px; color: #8a8276; }
.vl-price b { font-size: 19px; color: var(--gold-2); letter-spacing: -.01em; }
.vl-badge {
  display: inline-block; margin-top: 11px; padding: 7px 12px; border-radius: 999px;
  font-size: 11.5px; line-height: 1.45; color: #ffe9c6;
  border: 1px solid rgba(224,141,60,.55);
  background: linear-gradient(120deg, rgba(224,141,60,.22), rgba(217,185,120,.1));
}
.vl-badge span { color: #ffcf8f; font-weight: 700; margin-right: 3px; }
.vault-lock .vl-share {
  margin: 15px auto 0; width: 100%; max-width: 440px; display: block;
  font-size: 14px; padding: 15px 12px; line-height: 1.35;
}
.vl-sub { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 11px; }
.vl-mini {
  font-size: 11.5px; color: var(--muted); background: none; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 7px 12px;
  font-family: inherit;
}
.vl-mini:hover { color: var(--gold-2); border-color: rgba(217,185,120,.4); }
.vl-fine { margin-top: 11px; font-size: 10.5px; color: #8b8378; line-height: 1.6; }
/* 👯 잠금 카드 안 2인 동반 패키지 */
.vl-duo {
  margin: 14px auto 0; max-width: 440px; padding: 12px 13px 13px; text-align: left;
  border-radius: 13px; border: 1px solid rgba(217,185,120,.42);
  background: linear-gradient(150deg, rgba(58,33,20,.55), rgba(20,14,22,.9));
}
.vl-duo[hidden] { display: none; }
.vl-duo-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.vl-duo-tag {
  font-size: 9.5px; letter-spacing: .06em; color: #1b1206; font-weight: 700;
  background: linear-gradient(135deg, #cba75e, #f6e3ad); border-radius: 999px; padding: 2px 8px;
}
.vl-duo-title { font-size: 13px; color: #fff3d6; font-weight: 700; }
.vl-duo-price { margin-left: auto; font-size: 13px; color: var(--gold-2); font-family: var(--serif); white-space: nowrap; }
.vl-duo-price s { font-size: 10.5px; color: #8a8276; margin-right: 4px; }
.vl-duo-desc { margin-top: 6px; font-size: 11px; color: #d6cbb6; line-height: 1.6; word-break: keep-all; }
.vl-duo-btn {
  width: 100%; margin-top: 9px; padding: 11px 10px; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #cba75e, #f6e3ad); color: #171004;
  font-size: 12.5px; font-weight: 700; line-height: 1.35;
}
.vl-duo-btn:hover { filter: brightness(1.05); }
.vl-duo-note { margin-top: 8px; font-size: 10.5px; color: #ffcf8f; line-height: 1.55; }
@media (max-width: 420px) {
  .vl-duo-price { margin-left: 0; width: 100%; font-size: 12px; }
  .vl-duo-title { font-size: 12.5px; }
}
.vl-duo-note[hidden] { display: none; }
.vault.just-opened .vault-inner { animation: vaultOpen .9s ease both; }
@keyframes vaultOpen {
  0% { filter: blur(7px); opacity: .6; }
  60% { filter: blur(1.5px); }
  100% { filter: blur(0); opacity: 1; }
}
.vault.is-open .vault-fade { display: none; }

/* ---------- 2차 업셀 ---------- */
.upsell { margin-top: 18px; }
.upsell-head { text-align: center; margin-bottom: 12px; }
.upsell-head h3 { font-size: 16px; color: var(--gold-2); font-weight: 500; }
.upsell-head p { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.upsell-grid { display: grid; gap: 10px; }
@media (min-width: 700px) { .upsell-grid { grid-template-columns: repeat(3, 1fr); } }
.up-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 14px; border-radius: 16px; cursor: pointer; font-family: inherit;
  border: 1px solid rgba(217,185,120,.2);
  background: linear-gradient(150deg, rgba(255,255,255,.045), rgba(255,255,255,.014));
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.up-card:hover { border-color: rgba(217,185,120,.5); transform: translateY(-2px); background: linear-gradient(150deg, rgba(217,185,120,.12), rgba(255,255,255,.02)); }
.up-ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; border: 1px solid rgba(217,185,120,.26); background: rgba(217,185,120,.07); }
.up-txt { flex: 1 1 auto; min-width: 0; }
.up-txt b { display: block; font-size: 13.5px; color: #f2e7cf; font-weight: 600; }
.up-txt span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.up-price { flex: 0 0 auto; font-size: 12px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.up-price s { display: block; font-size: 10px; color: #7d766c; text-align: right; }
.upsell-note { text-align: center; font-size: 10.5px; color: #7f786e; margin-top: 10px; }

/* ---------- PDF 리포트 카드(잠금 구역 안) ---------- */
.pdf-card { display: flex; align-items: center; gap: 14px; }
.pdf-ico { flex: 0 0 46px; width: 46px; height: 56px; border-radius: 8px; display: grid; place-items: center; border: 1px solid rgba(217,185,120,.4); background: linear-gradient(160deg, rgba(217,185,120,.18), rgba(217,185,120,.04)); font-size: 20px; }
.pdf-txt { flex: 1 1 auto; min-width: 0; }
.pdf-txt b { display: block; font-size: 14.5px; color: var(--gold-2); font-weight: 600; }
.pdf-txt span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-top: 3px; }
.pdf-card .btn-ghost { flex: 0 0 auto; font-size: 12px; padding: 10px 13px; }
@media (max-width: 430px) {
  .pdf-card { flex-wrap: wrap; }
  .pdf-card .btn-ghost { width: 100%; }
}

/* ---------- 아이 사주 ---------- */
.baby-form-note { font-size: 12px; color: var(--muted); line-height: 1.85; margin-top: 2px; }
.baby-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.baby-chip {
  padding: 8px 12px; border-radius: 999px; cursor: pointer; font-family: inherit;
  font-size: 12px; color: var(--muted); background: rgba(255,255,255,.03);
  border: 1px solid rgba(217,185,120,.18); transition: .16s;
}
.baby-chip.on { color: var(--gold-2); border-color: var(--gold); background: rgba(217,185,120,.14); }
.baby-hero-tag { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.baby-hero-tag span {
  font-size: 11px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(217,185,120,.3); color: var(--gold-2); background: rgba(217,185,120,.06);
}
.baby-taste-card { text-align: left; }
.baby-say {
  margin-top: 10px; padding: 12px 13px; border-radius: 13px;
  border-left: 2px solid rgba(217,185,120,.6); background: rgba(217,185,120,.06);
}
.baby-say p { font-size: 13px; line-height: 1.9; color: #efe5d0; }
.baby-say em { display: block; font-style: normal; font-size: 10.5px; color: var(--gold); letter-spacing: .08em; margin-bottom: 5px; }
.baby-say-line { font-size: 13.5px; color: #fdf1d6; }
.baby-say-line::before { content: '“'; color: var(--gold); }
.baby-say-line::after { content: '”'; color: var(--gold); }
.baby-block { border: 1px solid rgba(217,185,120,.16); border-radius: 15px; padding: 14px 14px 4px; background: rgba(255,255,255,.02); margin-top: 12px; }
.baby-block h4 { font-size: 14px; color: var(--gold-2); font-weight: 600; margin-bottom: 8px; }
.baby-block h4 small { font-size: 10px; color: var(--muted); font-weight: 400; margin-left: 6px; letter-spacing: .08em; }
.baby-block p { font-size: 13px; line-height: 1.95; color: #ded5c5; margin-bottom: 11px; word-break: keep-all; }
.baby-kv { display: grid; gap: 8px; margin-bottom: 12px; }
.baby-kv > div { display: flex; gap: 10px; align-items: flex-start; }
.baby-kv span { flex: 0 0 74px; font-size: 11px; color: var(--gold); padding-top: 2px; }
.baby-kv b { flex: 1 1 auto; font-size: 13px; font-weight: 400; color: #ecdfc6; line-height: 1.85; }
.baby-swatch { display: inline-flex; align-items: center; gap: 7px; }
.baby-swatch i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.naming-link { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px; border-radius: 16px; border: 1px dashed rgba(217,185,120,.4); background: rgba(217,185,120,.05); }
.naming-link .nl-txt { flex: 1 1 auto; }
.naming-link b { display: block; font-size: 14px; color: var(--gold-2); font-weight: 600; }
.naming-link span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-top: 3px; }
.naming-link .btn-gold { flex: 0 0 auto; padding: 11px 14px; font-size: 12.5px; }
@media (max-width: 430px) {
  .naming-link { flex-wrap: wrap; }
  .naming-link .btn-gold { width: 100%; }
}

/* ---------- 리포트 8쪽 ---------- */
.rep-page { position: relative; }
.rep-page + .rep-page { margin-top: 22px; }
.rep-page-tag {
  display: inline-block; font-size: 10px; letter-spacing: .2em; color: var(--gold);
  margin-bottom: 4px;
}
.rep-page-lead { font-size: 13px; line-height: 1.9; color: #c8bfae; margin-bottom: 10px; }
.rep-cover { text-align: center; padding: 8px 0 4px; }
.rep-cover-note { font-size: 12px; color: var(--muted); line-height: 1.9; margin-top: 10px; }
.rep-quote {
  margin: 12px 0; padding: 13px 15px; border-radius: 13px;
  border-left: 2px solid rgba(217,185,120,.6); background: rgba(217,185,120,.06);
  font-size: 13.5px; line-height: 1.95; color: #f6e9cc;
}
.rep-quote small { display: block; font-size: 10.5px; color: var(--gold); letter-spacing: .1em; margin-bottom: 5px; }
@media print {
  .rep-page { page-break-after: always; break-after: page; }
  .rep-page:last-child { page-break-after: auto; break-after: auto; }
  .upsell, .vault-lock, .vault-fade { display: none !important; }
  .rep-quote { border: 1px solid #bbb !important; background: none !important; }
  .rep-quote small { color: #7a5c1e !important; }
  .rep-page-tag { color: #7a5c1e !important; }
}

/* ============================================================
   v11 — 인앱 공유 바텀시트 (OS 공유창이 없거나 안 뜰 때의 확실한 대안)
   ============================================================ */
body.ss-open { overflow: hidden; }
.ss-back {
  position: fixed; inset: 0; z-index: 9000; display: none;
  background: rgba(3,2,6,.7);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.ss-back.show { display: flex; align-items: flex-end; justify-content: center; animation: ssFade .18s ease both; }
@keyframes ssFade { from { opacity: 0; } to { opacity: 1; } }
.ss-sheet {
  width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(217,185,120,.34); border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #1a1224 0%, #120d1a 46%, #09060e 100%);
  box-shadow: 0 -20px 70px rgba(0,0,0,.78), inset 0 1px 0 rgba(246,227,173,.1);
  animation: ssUp .3s cubic-bezier(.2,.85,.2,1) both;
}
@keyframes ssUp { from { transform: translateY(34px); opacity: .35; } to { transform: none; opacity: 1; } }
.ss-grab { width: 38px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.2); margin: 4px auto 12px; }
.ss-head { text-align: center; padding: 0 4px 4px; }
.ss-kicker { display: block; font-size: 9.5px; letter-spacing: .24em; color: var(--gold); margin-bottom: 6px; }
.ss-head h3 { font-size: 19px; line-height: 1.45; color: #fff3d6; font-weight: 600; word-break: keep-all; }
.ss-note { margin-top: 6px; font-size: 12px; line-height: 1.7; color: #b7aa96; word-break: keep-all; }
.ss-list { display: grid; gap: 9px; margin-top: 15px; }
.ss-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 14px; border-radius: 16px; cursor: pointer; font-family: inherit;
  border: 1px solid rgba(217,185,120,.26);
  background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.ss-item:active { transform: scale(.985); }
.ss-item:hover { border-color: rgba(217,185,120,.55); background: linear-gradient(150deg, rgba(217,185,120,.13), rgba(255,255,255,.02)); }
.ss-item[hidden] { display: none !important; }
.ss-item.busy { opacity: .6; pointer-events: none; }
.ss-ico { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px;
  border: 1px solid rgba(217,185,120,.28); background: rgba(217,185,120,.09); }
.ss-tx { flex: 1 1 auto; min-width: 0; }
.ss-tx b { display: block; font-size: 14px; font-weight: 600; color: #f6ead4; }
.ss-tx i { display: block; font-style: normal; font-size: 11px; line-height: 1.55; color: #a29786; margin-top: 3px; }
.ss-go { flex: 0 0 auto; font-size: 20px; line-height: 1; color: rgba(217,185,120,.6); }
.ss-kakao { border-color: rgba(247,203,86,.42); background: linear-gradient(150deg, rgba(247,203,86,.12), rgba(255,255,255,.015)); }
.ss-kakao .ss-ico { border-color: rgba(247,203,86,.5); background: rgba(247,203,86,.16); }
.ss-raw-wrap { margin-top: 12px; padding: 11px 12px; border-radius: 13px; border: 1px dashed rgba(217,185,120,.4); background: rgba(0,0,0,.34); }
.ss-raw-wrap p { font-size: 11px; line-height: 1.6; color: #ffd9a2; margin-bottom: 7px; }
.ss-raw {
  width: 100%; border: 0; border-radius: 9px; padding: 9px 10px; resize: none;
  font-family: inherit; font-size: 12px; line-height: 1.6; color: #f2e8d6;
  background: rgba(255,255,255,.06);
}
.ss-fine { margin-top: 12px; text-align: center; font-size: 10.5px; line-height: 1.65; color: #857c6f; }
.ss-close {
  display: block; width: 100%; margin-top: 10px; padding: 12px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.14);
  background: none; color: #c9bfae; font-family: inherit; font-size: 13px; cursor: pointer;
}
.ss-close:hover { color: var(--gold-2); border-color: rgba(217,185,120,.45); }
@media (min-width: 700px) {
  .ss-back.show { align-items: center; }
  .ss-sheet { border-radius: 24px; border-bottom: 1px solid rgba(217,185,120,.34); padding-bottom: 16px; }
}

/* ============================================================
   👑 관리자 프리패스 뱃지 (vault.js가 주입)
   ============================================================ */
.admin-badge {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 9800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(217, 185, 120, .62);
  background: rgba(14, 10, 20, .93);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .3) inset;
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  line-height: 1;
  color: #f6ead4;
  white-space: nowrap;
}
.admin-badge[hidden] { display: none !important; }
.admin-badge .ab-crown { font-size: 14px; line-height: 1; }
.admin-badge b { font-weight: 600; letter-spacing: .01em; color: var(--gold-2, #f6e3ad); }
.admin-badge a.ab-dash {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(217, 185, 120, .38);
  color: #f6e3ad;
  font-size: 11px;
  text-decoration: none;
  background: rgba(217, 185, 120, .1);
}
.admin-badge a.ab-dash:hover { background: rgba(217, 185, 120, .2); }
.admin-badge button.ab-off {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: none;
  color: #c9bfae;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}
.admin-badge button.ab-off:hover { color: #fff; border-color: rgba(217, 185, 120, .55); }
body.admin-mode .vault-lock { display: none !important; }
body.admin-mode .vault.is-locked .vault-fade { display: none !important; }
body.admin-mode .vault.is-locked .vault-inner { filter: none !important; }

/* ============================================================
   인쇄(PDF) 정리 — 관리자 뱃지·상점 영역은 종이에 찍히지 않게
   ============================================================ */
@media print {
  .admin-badge,
  .cat-intro,
  #priceList,
  .pay-note,
  #talismanCard,
  #upsellReport,
  #talismanGridVault { display: none !important; }
}

@media print {
  /* 결제 가격표 카드(머리말 포함)는 PDF에서 완전히 제외 */
  #panel-premium .card:has(#priceList) { display: none !important; }
}

@media print {
  /* 인쇄 여백·행간을 살짝 조여 리포트가 딱 8쪽(표지+7장)에 담기게 */
  @page { margin: 12mm 11mm 16mm; }
  .report-doc p, .report-doc li { line-height: 1.58 !important; margin-bottom: .42em !important; }
  .report-doc h3 { margin-top: .5em !important; }
}

/* ---------- PDF 바로 저장 (v12) ---------- */
.pdf-actions {
  display: grid;
  gap: 9px;
  max-width: 420px;
  margin: 0 auto;
}
.pdf-actions .pdf-save-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; max-width: none;
}
.pdf-btn-ico { font-size: 16px; line-height: 1; }
.pdf-hint {
  font-size: 11px; line-height: 1.7; color: var(--muted);
  text-align: center; word-break: keep-all; margin: 0;
}
.pdf-hint b { color: var(--gold-2); font-weight: 600; }
.pdf-print-btn {
  justify-self: center;
  font-size: 12px; padding: 9px 14px;
  background: none; border-style: dashed;
  color: #b9ad96;
}
@media (max-width: 400px) {
  .pdf-actions .pdf-save-btn { font-size: 15px; padding: 15px 12px; }
}

/* ============================================================
   오픈 기념 한정 이벤트 팝업 (11/28 토요일까지)
   ============================================================ */
.promo-bg {
  position: fixed; inset: 0; z-index: 9400;
  display: none; align-items: center; justify-content: center;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(58, 27, 63, .55), rgba(3, 2, 6, .88) 70%);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
}
.promo-bg.show { display: flex; }
.promo-bg[hidden] { display: none !important; }

.promo-card {
  position: relative;
  width: 100%; max-width: 392px;
  margin-top: 6px;
  max-height: 88vh; overflow-y: auto;
  padding: 30px 22px 22px;
  border-radius: 24px;
  border: 1px solid rgba(217, 185, 120, .45);
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(217, 185, 120, .18), transparent 62%),
    linear-gradient(180deg, #1c1428 0%, #130e1d 46%, #08060d 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .82), inset 0 1px 0 rgba(246, 227, 173, .16);
  text-align: center;
  animation: promoIn .34s cubic-bezier(.2, .85, .25, 1) both;
}
@keyframes promoIn { from { transform: translateY(18px) scale(.97); opacity: .25; } }
.promo-card::before {
  content: '';
  position: absolute; inset: 7px;
  border: 1px solid rgba(217, 185, 120, .16);
  border-radius: 18px;
  pointer-events: none;
}
.promo-glow {
  position: absolute; left: 50%; top: -46px; width: 190px; height: 190px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(246, 227, 173, .22), transparent 66%);
  pointer-events: none;
}

/* ✕ 닫기 — 우측 상단 */
.promo-x {
  position: absolute; top: 10px; right: 10px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  padding: 0; margin: 0;
  border: 1px solid rgba(217, 185, 120, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: #e9d9b4;
  font-size: 15px; line-height: 1;
  cursor: pointer;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.promo-x:hover, .promo-x:active {
  background: rgba(217, 185, 120, .18);
  border-color: rgba(217, 185, 120, .65);
  color: #fff6e0;
}

.promo-badge {
  position: relative;
  display: inline-block;
  max-width: calc(100% - 6px);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(217, 185, 120, .45);
  background: rgba(217, 185, 120, .12);
  font-size: 11px; letter-spacing: .02em;
  color: #f6e3ad;
  word-break: keep-all;
}
.promo-title {
  position: relative;
  margin: 16px 0 14px;
  font-size: 22px; line-height: 1.42; font-weight: 600;
  color: #fff3d6;
  letter-spacing: -.01em;
  word-break: keep-all;
}
.promo-seal {
  position: relative;
  width: 52px; height: 52px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border: 1px solid rgba(217, 185, 120, .55);
  border-radius: 50%;
  color: #f6e3ad;
  font-size: 21px;
  box-shadow: inset 0 0 16px rgba(217, 185, 120, .14), 0 0 24px rgba(217, 185, 120, .12);
}
.promo-body {
  position: relative;
  font-size: 13px; line-height: 1.92;
  color: #d8cfc1;
  word-break: keep-all;
  margin-bottom: 18px;
}
.promo-body b { color: #f6e3ad; font-weight: 600; }
.promo-cta { position: relative; width: 100%; font-size: 15px; padding: 15px 12px; }
.promo-note {
  position: relative;
  margin-top: 11px;
  font-size: 10.5px; line-height: 1.7;
  color: #8f8677;
  word-break: keep-all;
}
@media (max-width: 360px) {
  .promo-card { padding: 26px 16px 18px; }
  .promo-title { font-size: 20px; }
  .promo-body { font-size: 12.4px; }
}

/* ---------- 💬 내 카톡에 저장해 두기 (재방문 유도) ---------- */
.save-kakao-btn {
  border-color: rgba(247, 203, 86, .45);
  color: #f7d98a;
}
.save-kakao-btn:hover { border-color: rgba(247, 203, 86, .8); background: rgba(247, 203, 86, .1); }
.save-kakao-note {
  margin-top: 10px;
  font-size: 11px; line-height: 1.7;
  color: var(--muted); text-align: center; word-break: keep-all;
}
.foot-actions { display: grid; gap: 8px; justify-items: center; margin-top: 10px; }

/* ---------- 2026 월별 운세 표 (리포트 9쪽) ---------- */
.month-table { font-size: 11px; }
.month-table td { vertical-align: top; line-height: 1.6; padding: 7px 5px; }
.month-table .mo-when { width: 64px; white-space: nowrap; }
.month-table .mo-when b { font-size: 11.5px; color: var(--gold-2); font-weight: 500; }
.month-table .mo-when span { font-size: 9.5px; color: var(--muted); }
.month-table .mo-flow { width: 66px; white-space: nowrap; }
.month-table .mo-tg { font-size: 9.5px; color: var(--muted); }
.month-table .mo-vibe { color: #ded6c8; }
.month-table .mo-watch { color: #e4b7ab; }
.m-note { font-size: 10.5px; line-height: 1.75; color: var(--muted); margin-top: 8px; }
@media (max-width: 430px) {
  .month-table { font-size: 10px; }
  .month-table td { padding: 6px 3px; }
  .month-table .mo-when { width: 52px; }
  .month-table .mo-flow { width: 54px; }
}

/* ============================================================
   v11 — 두 해 달력 배지 · 쉬운 말 사전 · 재미 코너
   ============================================================ */

/* ---------- 쉬운 말 사전 (무료 풀이 안) ---------- */
.easy-dic {
  margin-top: 14px; padding: 12px 14px;
  border: 1px dashed rgba(217, 185, 120, .38);
  border-radius: 14px; background: rgba(217, 185, 120, .05);
}
.easy-dic > summary {
  cursor: pointer; list-style: none;
  font-size: 12.5px; font-weight: 700; color: var(--gold-2);
}
.easy-dic > summary::-webkit-details-marker { display: none; }
.easy-dic > summary::after { content: ' ＋'; color: var(--gold); }
.easy-dic[open] > summary::after { content: ' －'; }
.easy-dic ul { margin: 10px 0 0; display: grid; gap: 8px; list-style: none; }
.easy-dic li { font-size: 11.5px; line-height: 1.8; color: var(--muted); word-break: keep-all; }
.easy-dic li b { display: block; color: var(--gold-2); font-weight: 700; font-size: 12px; margin-bottom: 1px; }
.easy-dic li span { display: block; }
.easy-dic-note { margin-top: 10px; font-size: 10.5px; color: #7d766a; line-height: 1.7; }

/* ---------- 달력: 배지 · 한눈에 ---------- */
.yr-cal-lead { font-size: 10.5px; color: var(--muted); margin: 2px 0 12px; line-height: 1.9; word-break: keep-all; }
.yr-viewseg { display: flex; gap: 6px; margin-bottom: 12px; }
.yr-viewseg button {
  flex: 1; padding: 9px 6px; border-radius: 11px; cursor: pointer;
  border: 1px solid rgba(217, 185, 120, .22); background: rgba(255, 255, 255, .03);
  font-size: 11.5px; color: var(--muted); font-family: inherit;
}
.yr-viewseg button.active {
  color: #221a0d; border-color: transparent; font-weight: 700;
  background: linear-gradient(150deg, #f6e3ad, #d9b978 70%, #c3a469);
}
.yr-cal { display: grid; gap: 8px; }
.yr-row {
  padding: 9px 10px 10px; border-radius: 14px;
  border: 1px solid rgba(217, 185, 120, .16);
  background: rgba(255, 255, 255, .022);
  display: grid; gap: 7px;
}
.yr-row.jackpot { border-color: rgba(246, 227, 173, .55); background: linear-gradient(160deg, rgba(246, 227, 173, .1), rgba(255, 255, 255, .02)); }
.yr-row.good { border-color: rgba(122, 201, 164, .38); }
.yr-row.warn { border-color: rgba(226, 163, 94, .4); }
.yr-row.bad { border-color: rgba(217, 117, 110, .45); background: rgba(217, 117, 110, .05); }
.yr-row-h { display: flex; align-items: baseline; gap: 8px; }
.yr-row-h b { font-family: var(--serif); font-size: 15px; color: var(--gold-2); letter-spacing: .02em; }
.yr-row-h span { font-size: 12px; color: var(--text); }
.yr-row-h em { font-style: normal; font-size: 10px; color: var(--muted); margin-left: auto; }
.yr-cell { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .22); }
.yr-year { font-size: 9.5px; letter-spacing: .1em; color: var(--muted); border: 1px solid rgba(217, 185, 120, .3); border-radius: 999px; padding: 1px 7px; }
.yr-sc { margin-left: auto; font-size: 13px; color: var(--gold-2); font-weight: 700; }
.yr-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700; line-height: 1.4;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.yr-badge.jackpot { color: #ffe9a8; background: rgba(246, 227, 173, .16); border-color: rgba(246, 227, 173, .6); }
.yr-badge.good { color: #a9ecc9; background: rgba(122, 201, 164, .14); border-color: rgba(122, 201, 164, .45); }
.yr-badge.calm { color: #cfd8c6; background: rgba(180, 200, 170, .1); border-color: rgba(180, 200, 170, .3); }
.yr-badge.warn { color: #ffca92; background: rgba(226, 163, 94, .14); border-color: rgba(226, 163, 94, .5); }
.yr-badge.bad { color: #ffb0a8; background: rgba(217, 117, 110, .16); border-color: rgba(217, 117, 110, .55); }
.yr-keep, .yr-avoid, .yr-mood { flex-basis: 100%; font-size: 11.5px; line-height: 1.75; word-break: keep-all; }
.yr-keep { color: #ded7ca; }
.yr-keep b { color: #8fe0b4; font-weight: 700; margin-right: 5px; font-size: 10.5px; }
.yr-avoid { color: #cfc6b5; }
.yr-avoid b { color: #ffa79f; font-weight: 700; margin-right: 5px; font-size: 10.5px; }
.yr-mood { color: #8d877c; font-size: 10.5px; font-style: italic; }
.yr-cal[data-view="both"] .yr-mood { display: none; }
.yr-cal:not([data-view="both"]) .yr-year { display: none; }
.yr-cal[data-view="2026"] .yr-cell.y2027, .yr-cal[data-view="2027"] .yr-cell.y2026 { display: none; }
@media (min-width: 620px) {
  .yr-row { grid-template-columns: 118px 1fr 1fr; align-items: start; gap: 10px; }
  .yr-row-h { flex-direction: column; gap: 2px; }
  .yr-row-h em { margin-left: 0; }
}
.yr-cal-sum { display: grid; gap: 8px; margin-top: 14px; }
.yr-cal-sum.mini { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.yr-cal-sum > div { border: 1px solid rgba(217, 185, 120, .16); border-radius: 12px; padding: 9px 11px; background: rgba(255, 255, 255, .02); }
.yr-cal-sum span { display: block; font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.yr-cal-sum b { display: block; font-size: 13px; color: var(--gold-2); font-weight: 600; margin-top: 2px; }
.yr-cal-sum em { display: block; font-style: normal; font-size: 10.5px; color: #9c9488; margin-top: 1px; }
@media (min-width: 620px) { .yr-cal-sum { grid-template-columns: repeat(4, 1fr); } .yr-cal-sum.mini { grid-template-columns: 1fr 1fr; } }

/* 그래프 막대 — 배지 색과 맞춘다 */
.yr-bar.jackpot i { background: linear-gradient(180deg, #ffe9a8, #c9a24d); box-shadow: 0 0 12px rgba(246, 227, 173, .35); }
.yr-bar.good i { background: linear-gradient(180deg, rgba(122, 201, 164, .85), rgba(122, 201, 164, .25)); }
.yr-bar.calm i { background: linear-gradient(180deg, rgba(200, 210, 190, .45), rgba(200, 210, 190, .12)); }
.yr-bar.warn i { background: linear-gradient(180deg, rgba(226, 163, 94, .75), rgba(226, 163, 94, .2)); }
.yr-bar.bad i { background: linear-gradient(180deg, rgba(217, 117, 110, .8), rgba(217, 117, 110, .2)); }
.yr-legend i.jackpot { background: #ffe9a8; }
.yr-legend i.good { background: rgba(122, 201, 164, .85); }
.yr-legend i.calm { background: rgba(200, 210, 190, .5); }
.yr-legend i.warn { background: rgba(226, 163, 94, .8); }
.yr-legend i.bad { background: rgba(217, 117, 110, .8); }
.yr-pick.jackpot { border-color: rgba(246, 227, 173, .45); }
.yr-pick.good { border-color: rgba(122, 201, 164, .4); }
.yr-pick.calm { border-color: rgba(200, 210, 190, .2); }
.yr-pick.warn { border-color: rgba(226, 163, 94, .4); }
.yr-pick.bad { border-color: rgba(217, 117, 110, .45); }
.yr-pick span .yr-badge { margin-left: 6px; font-size: 10px; }
.yr-pick p b { color: var(--gold-2); font-weight: 700; margin-right: 4px; }

/* ---------- 💘 한눈팔 확률 (재미 코너) ---------- */
.gg-fun {
  border-color: rgba(255, 160, 200, .3) !important;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(255, 120, 170, .12), transparent 65%),
    var(--panel) !important;
}
.gg-fun-kicker { font-size: 10px; letter-spacing: .18em; color: #f3a6c4; margin-bottom: 6px; }
.gg-fun-title { font-size: 19px; color: #ffe3ee; line-height: 1.45; word-break: keep-all; }
.gg-fun-disclaim {
  margin-top: 10px; padding: 9px 12px; border-radius: 11px;
  border: 1px dashed rgba(255, 160, 200, .5); background: rgba(255, 120, 170, .07);
  font-size: 11.5px; line-height: 1.75; color: #ffd7e6; word-break: keep-all;
}
.gg-wander { display: flex; align-items: center; gap: 16px; margin: 18px 0 6px; }
.gg-wander-num { text-align: center; min-width: 92px; }
.gg-wander-num b { font-size: 46px; line-height: 1; color: #fff3d6; letter-spacing: -.02em; }
.gg-wander-num span { font-size: 16px; color: var(--gold); margin-left: 1px; }
.gg-wander-num em { display: block; font-style: normal; font-size: 10.5px; color: #f3a6c4; margin-top: 4px; }
.gg-gauge { flex: 1; }
.gg-gauge-track { position: relative; height: 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.gg-gauge-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7ac9a4, #f0b429 55%, #d9756e); }
.gg-gauge-pin { position: absolute; top: 0; width: 2px; height: 14px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .9); }
.gg-gauge-legend { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); margin-top: 5px; }
.gg-fun-hero { margin-top: 14px; padding: 13px 14px; border-radius: 14px; border: 1px solid rgba(255, 160, 200, .28); background: rgba(255, 255, 255, .035); }
.gg-fun-hero b { display: block; font-size: 15px; color: #ffe3ee; margin-bottom: 5px; }
.gg-fun-hero p { font-size: 12.5px; line-height: 1.85; color: #e6dcdcd8; word-break: keep-all; }
.gg-fun-tier { margin-top: 10px; font-size: 12px; line-height: 1.85; color: #ded7ca; word-break: keep-all; }
.gg-wander-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.gg-wc { font-size: 10.5px; line-height: 1.6; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); color: var(--muted); }
.gg-wc.up { border-color: rgba(217, 117, 110, .4); color: #ffb0a8; }
.gg-wc.down { border-color: rgba(122, 201, 164, .4); color: #a9ecc9; }
.gg-fun-rx { margin-top: 16px; padding: 13px 14px; border-radius: 14px; border: 1px solid rgba(217, 185, 120, .38); background: rgba(217, 185, 120, .07); }
.gg-fun-rx b { display: block; font-size: 12.5px; color: var(--gold-2); margin-bottom: 6px; }
.gg-fun-rx p { font-size: 12px; line-height: 1.85; color: #e6ddcd; word-break: keep-all; }
.gg-fun-watch { display: block; margin-top: 8px; font-size: 10.5px; color: #e2a35e; }
.gg-fun-side { margin-top: 14px; font-size: 11.5px; line-height: 1.85; color: var(--muted); word-break: keep-all; }
.gg-fun-side b { color: var(--gold-2); }
.gg-fun-note { margin-top: 10px; font-size: 10px; line-height: 1.8; color: #7d766a; word-break: keep-all; }

/* 리포트 안 달력 배지 (화면용) */
.pbadge { display: inline-block; font-size: 10px; font-weight: 700; line-height: 1.5; padding: 2px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.pbadge.jackpot { color: #ffe9a8; background: rgba(246, 227, 173, .16); border-color: rgba(246, 227, 173, .55); }
.pbadge.good { color: #a9ecc9; background: rgba(122, 201, 164, .14); border-color: rgba(122, 201, 164, .45); }
.pbadge.calm { color: #cfd8c6; background: rgba(180, 200, 170, .1); border-color: rgba(180, 200, 170, .3); }
.pbadge.warn { color: #ffca92; background: rgba(226, 163, 94, .14); border-color: rgba(226, 163, 94, .5); }
.pbadge.bad { color: #ffb0a8; background: rgba(217, 117, 110, .16); border-color: rgba(217, 117, 110, .55); }
.m-table .mo-keep { color: #ded7ca; }
.m-table .mo-keep b { color: var(--gold-2); margin-right: 3px; }

/* 명식 표 아래 — 어려운 글씨 안내 */
.pillar-hint { margin-top: 8px; font-size: 10.5px; line-height: 1.8; color: #8d877c; word-break: keep-all; }
.pillar-hint b { color: var(--gold-2); font-weight: 600; }

/* 잡을 달 · 피할 달 칩에 배지 색 */
.mchip em { display: block; font-style: normal; font-size: 9.5px; margin-top: 2px; color: var(--muted); }
.mchip.jackpot { border-color: rgba(246, 227, 173, .55); }
.mchip.jackpot em { color: #ffe9a8; }
.mchip.good { border-color: rgba(122, 201, 164, .45); }
.mchip.good em { color: #a9ecc9; }
.mchip.calm em { color: #cfd8c6; }
.mchip.warn { border-color: rgba(226, 163, 94, .45); }
.mchip.warn em { color: #ffca92; }
.mchip.bad { border-color: rgba(217, 117, 110, .5); }
.mchip.bad em { color: #ffb0a8; }

/* 라벨이 좁은 화면에서 두 줄로 깨지지 않게 (키 · 체중 등) */
.field-label { flex-wrap: wrap; row-gap: 3px; word-break: keep-all; }
.field-label .fl-main { white-space: nowrap; flex: 0 0 auto; flex-shrink: 0; }
.field-label > b { min-width: 0; }

/* 리포트 안 쉬운 말 박스 */
.rep-gloss { margin-top: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(217, 185, 120, .3); background: rgba(217, 185, 120, .06); }
.rep-gloss > b { display: block; font-size: 12px; color: var(--gold-2); margin-bottom: 6px; }
.rep-gloss ul { list-style: none; display: grid; gap: 4px; }
.rep-gloss li { font-size: 11.5px; line-height: 1.7; color: #ded7ca; word-break: keep-all; }
.rep-gloss li strong { color: var(--gold-2); font-weight: 700; margin-right: 4px; }
.rep-gloss p { margin-top: 6px; font-size: 10.5px; color: #8d877c; }

/* 🔥 소름 돋아요 — 눌린 상태에서도 글자가 또렷하게 (금색 배경 위 어두운 글자) */
.like-btn.liked { color: #1d1206; }
.like-btn.liked .like-txt,
.like-btn.liked .like-sep,
.like-btn.liked .like-lead,
.like-btn.liked .like-tail { color: #1d1206; }
.like-btn.liked .like-num { color: #4a2a05; }
.like-btn.liked .like-fire { filter: drop-shadow(0 1px 2px rgba(120,50,0,.35)); }

/* 사전 접이식 제목 태그 */
.easy-dic-tag {
  display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px;
  font-size: 9.5px; letter-spacing: .06em; color: #221a0d; font-weight: 800;
  background: linear-gradient(150deg, #f6e3ad, #d9b978);
}
