/* Layout: 모바일 앱 프레임(최대 480px) 가운데 정렬, 밤 시장 배경 위에 등불 금빛 하나로 강조 */
:root {
  --night: #100d1c;
  --ink: #17132a;
  --ink-2: #211b3b;
  --ink-3: #2c2550;
  --line: rgba(232, 222, 255, 0.09);
  --line-2: rgba(232, 222, 255, 0.16);
  --text: #f1ecfa;
  --muted: #a9a0c6;
  --faint: #7a7198;
  --gold: #eab65c;
  --gold-2: #f6d595;
  --gold-ink: #2a1c05;
  --rose: #ef7f98;
  --jade: #5fc3a6;
  --sky: #7fa8ff;
  --danger: #ff6b6b;
  --el-wood: #57c27e;
  --el-fire: #ff7a59;
  --el-earth: #d9a441;
  --el-metal: #c9cfdc;
  --el-water: #5b8cff;
  --f-display: 'Hahmlet', 'DBY Hanja Serif', 'Noto Serif KR', serif;
  --f-body: 'IBM Plex Sans KR', 'DBY Hanja Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --f-hanja: 'DBY Hanja Serif', 'Hahmlet', 'Noto Serif KR', serif;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; max-width: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--f-body); font-size: 15px; line-height: 1.6; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  word-break: keep-all; overflow-wrap: anywhere;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.backdrop { position: fixed; inset: 0; z-index: 0; background:
  linear-gradient(rgba(16,13,28,.72), rgba(16,13,28,.86)), url(img/bg_market.webp) center / cover no-repeat, var(--night); }
.home-wrap { position: relative; }
.home-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 560px; background: url(img/bg_market.webp) center 30% / cover no-repeat; opacity: .38; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%); mask-image: linear-gradient(180deg, #000 20%, transparent 100%); pointer-events: none; }
.home-wrap > * { position: relative; }
.loading::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(23,19,42,.55), var(--ink) 85%), url(img/bg_room.webp) center / cover no-repeat; }
.loading > * { position: relative; }
.promo { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3.4; max-width: 100%; margin-bottom: 14px; }
.promo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(23,19,42,.95)); }
.promo .cap { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; }
.promo .cap .ttl { font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -.04em; }
#app { overflow-x: clip; position: relative; z-index: 1; max-width: 480px; margin: 0 auto; min-height: 100%; background: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.5); }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.view { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); min-height: 100vh; }
.view.no-nav { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

/* 헤더 */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(23,19,42,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 10px; height: 56px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.logo svg { width: 26px; height: 26px; }
.logo small { font-family: var(--f-body); font-weight: 500; font-size: 10px; color: var(--muted); letter-spacing: .12em; display: block; line-height: 1; margin-top: 2px; }
.top-row .grow { flex: 1; }
.coin-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: var(--ink-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.coin-chip i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--gold-2), var(--gold) 60%, #b07d2a); box-shadow: inset 0 0 0 3px rgba(0,0,0,.0); position: relative; }
.coin-chip i::after { content: ""; position: absolute; inset: 4px; background: var(--ink-2); border-radius: 1px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; }
.icon-btn:hover { background: var(--ink-2); }
.icon-btn svg { width: 22px; height: 22px; }
.back-row { display: flex; align-items: center; gap: 4px; height: 52px; }
.back-row h1 { font-size: 16px; font-weight: 600; margin: 0; flex: 1; text-align: center; padding-right: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tabs { display: flex; gap: 0; justify-content: space-between; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 1 auto; text-align: center; white-space: nowrap; padding: 9px 4px 11px; font-size: 14px; letter-spacing: -0.03em; color: var(--muted); position: relative; font-weight: 500; }
.tab[aria-selected="true"] { color: var(--text); font-weight: 700; }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: var(--gold); border-radius: 2px; }

/* 하단 탭바 */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 40; background: rgba(20,16,36,.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.nav button { display: grid; justify-items: center; gap: 2px; padding: 9px 0 8px; font-size: 11px; color: var(--faint); }
.nav button svg { width: 23px; height: 23px; }
.nav button[aria-current="page"] { color: var(--gold); }

/* 섹션 */
.sec { padding-top: 30px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-h h2 { margin: 0; font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; text-wrap: balance; }
.eyebrow { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; color: var(--gold); margin-bottom: 4px; font-family: var(--f-body); }
.more { font-size: 13px; color: var(--muted); white-space: nowrap; }
.divider { height: 8px; background: var(--night); margin-top: 30px; }

/* 히어로 캐러셀 */
.hero { position: relative; margin-top: 14px; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; padding: 0 max(16px, env(safe-area-inset-left, 0px)); scroll-padding: 0 16px; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-card { flex: 0 0 86%; scroll-snap-align: center; position: relative; aspect-ratio: 9 / 13; max-width: 100%; border-radius: var(--r-l); overflow: hidden; background: var(--ink-2); text-align: left; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .8s ease; }
.hero-card:hover img { transform: scale(1.03); }
.hero-card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,13,28,0) 35%, rgba(16,13,28,.65) 62%, rgba(16,13,28,.96) 100%); }
.hero-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 20px 22px; }
.hero-card .who { font-family: var(--f-display); font-size: 15px; color: var(--gold-2); font-weight: 600; }
.hero-card .ttl { font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -0.04em; margin: 2px 0 8px; text-shadow: 0 2px 20px rgba(0,0,0,.6); text-wrap: balance; }
.hero-card .hk { font-size: 14px; color: #ddd5ef; }
.pick { position: absolute; top: 14px; left: 14px; display: grid; place-items: center; width: 44px; height: 52px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); font-weight: 800; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%); line-height: 1; padding-bottom: 8px; }
.pick small { display: block; font-size: 8.5px; letter-spacing: .1em; font-weight: 700; }
.pick b { font-size: 19px; font-family: var(--f-display); }
.badge-new { position: absolute; top: 16px; right: 14px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; letter-spacing: .04em; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--ink-3); transition: width .3s, background .3s; }
.dots i.on { width: 18px; background: var(--gold); }

/* 가로 스크롤 카드 */
.hscroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 0 max(16px, env(safe-area-inset-left, 0px)) 4px; scroll-snap-type: x proximity; }
.hscroll::-webkit-scrollbar { display: none; }
.pcard { flex: 0 0 148px; scroll-snap-align: start; text-align: left; min-width: 0; }
.pcard .thumb { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-m); overflow: hidden; background: var(--ink-2); }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.pcard .thumb .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(16,13,28,.9)); }
.pcard .thumb .in-ttl { position: absolute; left: 10px; right: 10px; bottom: 9px; font-family: var(--f-display); font-weight: 800; font-size: 17px; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.pcard .meta { padding: 8px 2px 0; }
.pcard .t { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .h { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-size: 13px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.price .free { color: var(--jade); }
.chip-free { position: absolute; top: 8px; left: 8px; background: var(--jade); color: #06231a; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.grid2 .pcard { flex: none; }

/* 목록형 */
.list { display: grid; gap: 4px; }
.row { display: flex; align-items: center; gap: 14px; padding: 10px 0; text-align: left; width: 100%; }
.row .rank { width: 22px; font-family: var(--f-display); font-weight: 800; font-size: 18px; color: var(--gold); text-align: center; flex: none; }
.row .ava { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; flex: none; background: var(--ink-2); }
.row .ava img { width: 100%; height: 100%; object-fit: cover; }
.row .tx { flex: 1; min-width: 0; }
.row .tx b { display: block; font-size: 15px; font-weight: 600; }
.row .tx span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .go { color: var(--faint); flex: none; }

/* 캐릭터 라인업 */
.cast { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 2px max(16px, env(safe-area-inset-left, 0px)) 4px; }
.cast::-webkit-scrollbar { display: none; }
.cast button { flex: none; width: 68px; text-align: center; }
.cast .ring { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; padding: 2px; background: conic-gradient(from 200deg, var(--c, var(--gold)), transparent 60%, var(--c, var(--gold))); }
.cast .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); }
.cast b { display: block; font-size: 12.5px; font-weight: 600; margin-top: 6px; white-space: nowrap; }
.cast span { display: block; font-size: 10.5px; color: var(--faint); white-space: nowrap; }

/* 오늘의 운세 스트립 */
.today-strip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-m); background: linear-gradient(120deg, #2a2150, #1d1838); border: 1px solid var(--line-2); text-align: left; width: 100%; }
.score-ring { --v: 70; width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--v) * 1%), rgba(255,255,255,.08) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #221b42; }
.score-ring b { position: relative; font-family: var(--f-display); font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.today-strip .tx { flex: 1; min-width: 0; }
.today-strip .tx small { display: block; color: var(--gold); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; }
.today-strip .tx b { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 16px; width: 100%; transition: transform .1s ease, filter .2s; }
.btn:active { transform: scale(.985); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: 0 8px 24px rgba(234,182,92,.25); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--ink-2); border: 1px solid var(--line-2); color: var(--text); }
.btn-sm { height: 40px; font-size: 14px; border-radius: 11px; padding: 0 14px; width: auto; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* 상품 상세(비주얼노벨형) */
.stage { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.stage > .bg { position: absolute; inset: 0; }
.stage > .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.stage > .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,13,28,.55) 0%, rgba(16,13,28,0) 18%, rgba(16,13,28,0) 42%, rgba(16,13,28,.85) 66%, var(--ink) 92%); }
.stage .float-top { position: absolute; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 6px max(8px, env(safe-area-inset-left, 0px)) 0; }
.stage .float-top .icon-btn { background: rgba(16,13,28,.45); backdrop-filter: blur(6px); }
.stage .body { position: relative; z-index: 2; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
.stage .who { font-family: var(--f-display); color: var(--gold-2); font-size: 17px; font-weight: 600; text-align: center; }
.stage .ttl { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1.05; letter-spacing: -0.05em; text-align: center; margin: 6px 0 10px; text-shadow: 0 4px 30px rgba(0,0,0,.7); text-wrap: balance; }
.stage .hk { text-align: center; color: #e6def5; font-size: 15px; margin-bottom: 20px; }
.lines { display: grid; gap: 8px; margin-bottom: 18px; }
.vn-line { background: rgba(23,19,42,.78); border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px; padding: 12px 16px; font-size: 15px; line-height: 1.55; animation: rise .5s both; }
.vn-line .nm { display: block; font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 2px; letter-spacing: .04em; }
@keyframes rise { from { transform: translateY(8px); opacity: .0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; } }

.detail { padding-top: 8px; }
.detail .card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: ch; }
.toc li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.toc li:last-child { border-bottom: 0; }
.toc li .n { font-family: var(--f-display); color: var(--gold); font-weight: 700; font-size: 13px; width: 38px; flex: none; }
.toc li .lk { margin-left: auto; color: var(--faint); font-size: 12px; flex: none; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.facts div { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: center; }
.facts b { display: block; font-family: var(--f-display); font-size: 18px; font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.facts span { font-size: 11.5px; color: var(--muted); }
.price-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-box .p { font-family: var(--f-display); font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.price-box .p small { font-family: var(--f-body); font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.sticky-cta { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 45; padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(23,19,42,0), rgba(23,19,42,.96) 30%); }
.sticky-cta .inner { display: flex; gap: 8px; align-items: center; }
.sticky-cta .inner .btn { flex: 1; }
.coupon-tip { font-size: 12px; text-align: center; color: var(--gold-2); margin-bottom: 6px; }

/* 입력 단계 */
.ask { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.ask .bg { position: absolute; inset: 0; }
.ask .bg img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; }
.ask .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,13,28,.4), rgba(16,13,28,.1) 20%, rgba(16,13,28,.75) 48%, var(--ink) 78%); }
.ask .float-top { position: relative; z-index: 3; display: flex; align-items: center; gap: 8px; padding-top: 6px; }
.ask .float-top .icon-btn { background: rgba(16,13,28,.45); }
.progress { flex: 1; height: 3px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--gold); transition: width .4s; }
.ask .body { position: relative; z-index: 2; margin-top: auto; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.inp { height: 52px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(33,27,59,.9); padding: 0 16px; font-size: 16px; width: 100%; min-width: 0; }
.inp:focus { outline: none; border-color: var(--gold); }
select.inp { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 23px, calc(100% - 15px) 23px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: rgba(33,27,59,.9); border: 1px solid var(--line-2); border-radius: 14px; padding: 4px; }
.seg button { height: 44px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.row3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: start; font-size: 14px; line-height: 1.55; color: var(--muted); text-align: left; }
.check > span { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.check .more.lnk, .more.lnk { display: inline; padding: 0; margin: 0; font-size: inherit; line-height: inherit; text-decoration: underline; color: var(--text); white-space: normal; vertical-align: baseline; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; margin-top: 1px; }
.err { color: var(--danger); font-size: 13px; min-height: 1em; }
.saved { display: grid; gap: 8px; }
.saved button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(33,27,59,.92); border: 1px solid var(--line-2); text-align: left; }
.saved button b { font-size: 15px; }
.saved button span { font-size: 12.5px; color: var(--muted); }

/* 로딩 */
.loading { min-height: 100vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.loading .ava-xl { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--gold), 0 0 60px rgba(234,182,92,.35); animation: glow 2s ease-in-out infinite; }
.loading .ava-xl img { width: 100%; height: 100%; object-fit: cover; }
@keyframes glow { 50% { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--gold-2), 0 0 90px rgba(234,182,92,.5); } }
.steps { display: grid; gap: 8px; margin-top: 18px; text-align: left; width: min(280px, 100%); margin-left: auto; margin-right: auto; }
.steps div { font-size: 14px; color: var(--faint); display: flex; gap: 8px; align-items: center; }
.steps div.on { color: var(--text); }
.steps div.on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.steps div:not(.on)::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }

/* 결과(웹툰·대화형) */
.r-hero { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink); }
.r-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.r-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,13,28,.3), transparent 30%, rgba(23,19,42,.7) 70%, var(--ink)); }
.r-hero .cap { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; text-align: center; }
.r-hero .cap .who { color: var(--gold-2); font-family: var(--f-display); font-weight: 600; }
.r-hero .cap h1 { font-family: var(--f-display); font-weight: 800; font-size: 30px; letter-spacing: -0.04em; margin: 2px 0 0; line-height: 1.15; text-wrap: balance; }
.r-hero .cap p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.chap { padding-top: 34px; }
.chap-h { text-align: center; margin-bottom: 18px; }
.chap-h .no { display: inline-block; font-family: var(--f-display); font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .2em; border: 1px solid rgba(234,182,92,.35); border-radius: 99px; padding: 3px 12px; }
.chap-h h2 { font-family: var(--f-display); font-weight: 800; font-size: 23px; letter-spacing: -0.035em; margin: 10px 0 0; line-height: 1.3; text-wrap: balance; }
.say { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.say .av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; border: 1.5px solid var(--c, var(--gold)); }
.say .av img { width: 100%; height: 100%; object-fit: cover; }
.say .bub { background: var(--ink-2); border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; padding: 12px 15px; font-size: 15px; line-height: 1.7; min-width: 0; max-width: 100%; }
.say .bub .nm { display: block; font-size: 12px; font-weight: 700; color: var(--c, var(--gold)); margin-bottom: 3px; }
.say .bub b, .say .bub strong { color: var(--gold-2); font-weight: 700; }
.say.me { flex-direction: row-reverse; }
.say.me .bub { background: #3a2f6a; border-radius: 18px 4px 18px 18px; }
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; margin: 14px 0; }
.panel h3 { margin: 0 0 10px; font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.panel h3::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--gold); }
.panel p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.75; color: #e3dcf2; }
.panel p:last-child { margin-bottom: 0; }
.panel ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; color: #e3dcf2; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: var(--ink-3); color: #ddd5f0; }
.tag.gold { background: rgba(234,182,92,.16); color: var(--gold-2); }

/* 사주 원국 */
.pillars { display: grid; grid-template-columns: 52px repeat(4, 1fr); gap: 4px; text-align: center; }
.pillars .h { font-size: 11.5px; color: var(--faint); padding: 4px 0; }
.pillars .lab { font-size: 11px; color: var(--faint); display: grid; place-items: center; }
.pillars .cell { border-radius: 12px; padding: 8px 2px 6px; display: grid; gap: 1px; justify-items: center; }
.pillars .cell .hz { font-family: var(--f-hanja); font-size: 30px; font-weight: 700; line-height: 1.1; }
.pillars .cell .ko { font-size: 11px; opacity: .85; }
.pillars .god { font-size: 11.5px; color: var(--muted); padding: 3px 0; }
.pillars .god.me { color: var(--gold); font-weight: 700; }
.pillars .unk { color: var(--faint); background: var(--ink-3) !important; }
.el-wood { background: rgba(87,194,126,.16); color: #9fe6b8; }
.el-fire { background: rgba(255,122,89,.16); color: #ffb39f; }
.el-earth { background: rgba(217,164,65,.17); color: #f0cd86; }
.el-metal { background: rgba(201,207,220,.14); color: #eef1f8; }
.el-water { background: rgba(91,140,255,.17); color: #a9c3ff; }
.elbars { display: grid; gap: 9px; }
.elbar { display: grid; grid-template-columns: 44px 1fr 30px; gap: 10px; align-items: center; font-size: 13px; }
.elbar .tr { height: 10px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.elbar .tr i { display: block; height: 100%; border-radius: 99px; }
.elbar b { text-align: right; font-variant-numeric: tabular-nums; }
.timeline { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.timeline::-webkit-scrollbar { display: none; }
.tl { flex: 0 0 74px; border-radius: 12px; padding: 10px 6px; text-align: center; background: var(--ink-3); border: 1px solid transparent; }
.tl.now { border-color: var(--gold); background: rgba(234,182,92,.1); }
.tl .a { font-size: 11.5px; color: var(--muted); }
.tl .p { font-family: var(--f-hanja); font-size: 22px; font-weight: 700; line-height: 1.2; }
.tl .g { font-size: 11px; color: var(--gold-2); }
.months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mo { background: var(--ink-3); border-radius: 12px; padding: 10px; }
.mo b { display: block; font-size: 13px; }
.mo span { font-size: 11.5px; color: var(--muted); }
.mo .sc { display: flex; gap: 2px; margin-top: 4px; }
.mo .sc i { width: 100%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); }
.mo .sc i.on { background: var(--gold); }
.mo.hi { background: rgba(234,182,92,.13); }
.mo.lo { background: rgba(255,107,107,.1); }
.scorebig { display: flex; align-items: center; gap: 16px; }
.scorebig .score-ring { width: 86px; height: 86px; }
.scorebig .score-ring::before { inset: 7px; background: var(--ink-2); }
.scorebig .score-ring b { font-size: 26px; }
.meter { display: grid; gap: 10px; }
.meter div { display: grid; grid-template-columns: 66px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; }
.meter .tr { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.meter .tr i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 99px; }
.meter b { text-align: right; font-variant-numeric: tabular-nums; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; border: 1px solid rgba(255,255,255,.2); }

/* 잠금 */
.locked { position: relative; }
.locked .ghost { display: grid; gap: 9px; padding: 16px; border-radius: var(--r-m); background: var(--ink-2); border: 1px solid var(--line); filter: blur(5px); user-select: none; pointer-events: none; }
.locked .ghost i { height: 11px; border-radius: 6px; background: rgba(255,255,255,.12); }
.locked .ghost i:nth-child(3n) { width: 72%; }
.locked .ghost i:nth-child(4n) { width: 88%; }
.locked .teaser { font-size: 14.5px; color: #e3dcf2; margin: 0 0 10px; line-height: 1.7; }
.locked .badge { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); background: rgba(16,13,28,.85); border: 1px solid var(--line-2); border-radius: 99px; padding: 8px 14px; font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.paywall { margin-top: 30px; border-radius: var(--r-l); padding: 22px 18px; background: radial-gradient(120% 80% at 50% 0%, rgba(234,182,92,.16), transparent 60%), var(--ink-2); border: 1px solid rgba(234,182,92,.35); }
.paywall h3 { font-family: var(--f-display); font-size: 21px; font-weight: 800; margin: 0 0 6px; text-align: center; letter-spacing: -0.03em; text-wrap: balance; }
.paywall .sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.paywall ol { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; }
.paywall ol li { display: flex; gap: 10px; font-size: 14px; align-items: baseline; }
.paywall ol li .n { color: var(--gold); font-family: var(--f-display); font-weight: 700; font-size: 12px; flex: none; width: 34px; }
.paywall .row-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.paywall .row-price s { color: var(--faint); font-size: 14px; }
.paywall .row-price b { font-family: var(--f-display); font-size: 28px; font-weight: 800; }
.paywall .row-price em { font-style: normal; color: var(--rose); font-weight: 800; }

/* 모달 시트 */
.sheet-wrap { overflow: hidden; position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; background: rgba(5,4,12,.6); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { box-sizing: border-box; width: 100%; min-width: 0; max-width: 480px; max-height: 92vh; overflow-y: auto; background: var(--ink); border-radius: 22px 22px 0 0; border: 1px solid var(--line-2); border-bottom: 0; padding: 8px max(18px, env(safe-area-inset-left, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)); animation: up .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet .grab { width: 40px; height: 4px; background: var(--ink-3); border-radius: 4px; margin: 4px auto 12px; }
.sheet h2 { font-size: 19px; font-weight: 700; margin: 0 0 14px; font-family: var(--f-display); }
.test-banner { background: rgba(95,195,166,.12); color: #9ee4cd; border: 1px solid rgba(95,195,166,.35); border-radius: 12px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 14px; }
.sumbox { background: var(--ink-2); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; font-size: 14px; }
.sumbox .l { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.sumbox .l span:first-child { color: var(--muted); }
.sumbox .tot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; font-weight: 800; font-size: 17px; }
.sumbox .tot span:last-child { color: var(--gold-2); }
.paygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.paygrid button { height: 52px; border-radius: 12px; background: var(--ink-2); border: 1.5px solid var(--line-2); font-weight: 600; font-size: 14px; }
.paygrid button[aria-pressed="true"] { border-color: var(--gold); background: rgba(234,182,92,.1); color: var(--gold-2); }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ink-2); font-size: 14px; }
.toast { position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 99; background: #f1ecfa; color: #1b1630; padding: 11px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: rise .25s both; max-width: calc(100% - 32px); text-align: center; }
.success { text-align: center; padding: 16px 0 6px; }
.success .mark { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(234,182,92,.15); color: var(--gold); }
.success .mark svg { width: 32px; height: 32px; }

/* 리뷰 */
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review .top2 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.review .stars { color: var(--gold); letter-spacing: 1px; }
.review p { margin: 6px 0 0; font-size: 14.5px; }
.review .pd { font-size: 12px; color: var(--gold-2); }
.sample-tag { font-size: 11px; font-weight: 700; color: #ffd3a1; background: rgba(255,170,90,.14); border-radius: 6px; padding: 2px 7px; }
.star-pick { display: flex; gap: 6px; justify-content: center; margin: 6px 0 12px; }
.star-pick button { font-size: 30px; color: var(--ink-3); line-height: 1; }
.star-pick button.on { color: var(--gold); }
textarea.inp { height: 96px; padding: 12px 14px; resize: vertical; }

/* 타로 */
.deck { position: relative; height: 260px; margin: 18px 0 8px; }
.deck .c { position: absolute; left: 50%; top: 20px; width: 92px; height: 156px; margin-left: -46px; transform-origin: 50% 180%; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .2s; cursor: pointer; }
.deck .c svg { width: 100%; height: 100%; border-radius: 9px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.deck .c:hover { filter: brightness(1.2); }
.deck .c.sel, .deck .c[disabled] { filter: brightness(.45); pointer-events: none; }
.shuffle .c { animation: shuf .5s ease-in-out 3 alternate; }
@keyframes shuf { to { transform: translateX(var(--sx, 30px)) rotate(var(--sr, 8deg)); } }
.spread { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.spread.one { grid-template-columns: minmax(0, 160px); justify-content: center; }
.slot { text-align: center; }
.slot .cardbox { aspect-ratio: 200 / 340; perspective: 900px; max-width: 100%; }
.slot .flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.slot .flip.on { transform: rotateY(180deg); }
.slot .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 10px; overflow: hidden; }
.slot .face svg { width: 100%; height: 100%; display: block; }
.slot .face.front { transform: rotateY(180deg); }
.slot .empty { border: 1.5px dashed var(--line-2); border-radius: 10px; height: 100%; display: grid; place-items: center; color: var(--faint); font-size: 12px; }
.slot .pos { font-size: 12px; color: var(--muted); margin-top: 6px; }
.slot .nm { font-size: 13px; font-weight: 700; }

/* 부적 */
.amulet-wrap { display: grid; justify-items: center; gap: 12px; }
.amulet-wrap canvas { width: min(320px, 100%); height: auto; border-radius: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }

/* 기타 */
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; font-family: var(--f-display); }
.searchbar { display: flex; gap: 8px; align-items: center; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 0 14px; height: 50px; }
.searchbar input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 16px; }
.trust { display: grid; gap: 10px; }
.trust > div { display: flex; gap: 12px; align-items: flex-start; }
.trust > div > div { display: block; min-width: 0; flex: 1; }
.trust span { display: block; margin-top: 2px; line-height: 1.55; }
.trust svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.trust b { display: block; font-size: 14.5px; }
.trust span { font-size: 13px; color: var(--muted); }
footer { padding-top: 30px; padding-bottom: 20px; font-size: 12px; color: var(--faint); line-height: 1.7; }
footer .links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0; }
footer .links button, footer .links a { color: var(--muted); font-size: 12px; text-decoration: underline; }
.doc { font-size: 14px; line-height: 1.8; color: #ddd6ee; }
.doc h3 { font-size: 15.5px; margin: 22px 0 6px; color: var(--text); }
.doc p, .doc li { margin: 0 0 8px; }
.drawer-list { display: grid; }
.drawer-list button { text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; }
.profile-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-m); background: var(--ink-2); border: 1px solid var(--line); }
.profile-card .hz { font-family: var(--f-hanja); font-size: 30px; font-weight: 700; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.stat-row button, .stat-row div { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.stat-row b { display: block; font-size: 18px; font-family: var(--f-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-row span { font-size: 12px; color: var(--muted); }
.lib-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.lib-item .ava { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: none; }
.lib-item .ava img { width: 100%; height: 100%; object-fit: cover; }
.lib-item .tx { flex: 1; min-width: 0; }
.lib-item .tx b { display: block; font-size: 14.5px; }
.lib-item .tx span { font-size: 12.5px; color: var(--muted); }
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; flex: none; }
.pill.open { background: rgba(95,195,166,.16); color: #8fe0c5; }
.pill.lock { background: rgba(234,182,92,.15); color: var(--gold-2); }
.pill.free { background: var(--ink-3); color: var(--muted); }
.qa { display: grid; gap: 10px; }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.likert button { height: 44px; border-radius: 10px; background: var(--ink-3); font-weight: 700; }
.likert button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.likert-lab { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); }
.dream-hit { padding: 14px 0; border-bottom: 1px solid var(--line); }
.dream-hit .k { display: flex; gap: 8px; align-items: center; }
.dream-hit .k b { font-size: 16px; }
.tone { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.tone.g { background: rgba(95,195,166,.16); color: #8fe0c5; }
.tone.b { background: rgba(255,107,107,.14); color: #ffa3a3; }
.tone.n { background: var(--ink-3); color: var(--muted); }
.ziwei-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, minmax(78px, auto)); gap: 4px; }
.zc { background: var(--ink-3); border-radius: 10px; padding: 6px; font-size: 11px; min-width: 0; }
.zc .pn { color: var(--muted); font-size: 10.5px; display: flex; justify-content: space-between; }
.zc .st { font-weight: 700; color: var(--text); font-size: 12px; line-height: 1.35; margin-top: 3px; }
.zc .st.sub { color: var(--faint); font-weight: 500; font-size: 10.5px; }
.zc.ming { background: rgba(234,182,92,.16); outline: 1px solid rgba(234,182,92,.5); }
.zcenter { grid-column: 2 / 4; grid-row: 2 / 4; display: grid; place-items: center; text-align: center; background: radial-gradient(circle, rgba(95,195,192,.12), transparent 70%); border-radius: 12px; padding: 8px; }

/* ===== v5 풀이 화면: 읽기 쉬운 카드형 구성 ===== */
.chap { padding-top: 26px; }
.chap > .chap-body { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); border: 1px solid var(--line); border-top: 3px solid var(--acc, var(--gold)); border-radius: 18px; padding: 6px 14px 14px; }
.chap:nth-of-type(6n+1) { --acc: #eab65c; } .chap:nth-of-type(6n+2) { --acc: #ff8fa3; } .chap:nth-of-type(6n+3) { --acc: #7fd4a8; }
.chap:nth-of-type(6n+4) { --acc: #8fb2ff; } .chap:nth-of-type(6n+5) { --acc: #c79bff; } .chap:nth-of-type(6n) { --acc: #ffb36b; }
.chap-h .no { color: var(--acc, var(--gold)); border-color: color-mix(in srgb, var(--acc, var(--gold)) 45%, transparent); background: color-mix(in srgb, var(--acc, var(--gold)) 10%, transparent); }
.chap-h h2 { font-size: 22px; }
.chap .say .bub { font-size: 15.5px; line-height: 1.8; }
.chap .say .bub b, .chap .panel b { color: var(--gold-2); background: linear-gradient(transparent 62%, rgba(234,182,92,.22) 0); padding: 0 1px; }
.gloss { font-size: .86em; color: #b9b0d6; font-weight: 400; }
.gloss::before { content: ""; }
.panel.tip { border-color: rgba(127,212,168,.35); background: rgba(127,212,168,.07); } .panel.tip h3::before { background: #7fd4a8; }
.panel.warn { border-color: rgba(255,143,163,.35); background: rgba(255,143,163,.07); } .panel.warn h3::before { background: #ff8fa3; }
.panel.key { border-color: rgba(234,182,92,.45); background: rgba(234,182,92,.08); } .panel.key h3::before { background: var(--gold); }
.panel.info { border-color: rgba(143,178,255,.35); background: rgba(143,178,255,.07); } .panel.info h3::before { background: #8fb2ff; }
/* 목차 */
.r-toc { margin: 18px 0 4px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 8px; }
.r-toc h3 { margin: 0 0 10px; font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--gold-2); }
.r-toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.r-toc li a { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.03); color: var(--text); text-decoration: none; font-size: 13px; line-height: 1.3; min-height: 44px; }
.r-toc li a .n { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: color-mix(in srgb, var(--acc, var(--gold)) 22%, transparent); color: var(--acc, var(--gold)); }
.r-toc li.lock a { opacity: .55; }
.r-toc li:nth-child(6n+1) { --acc: #eab65c; } .r-toc li:nth-child(6n+2) { --acc: #ff8fa3; } .r-toc li:nth-child(6n+3) { --acc: #7fd4a8; }
.r-toc li:nth-child(6n+4) { --acc: #8fb2ff; } .r-toc li:nth-child(6n+5) { --acc: #c79bff; } .r-toc li:nth-child(6n) { --acc: #ffb36b; }
/* 자미두수 명반 색상 */
.zw-ming { background: rgba(234,182,92,.18) !important; border: 1.5px solid var(--gold) !important; box-shadow: 0 0 18px rgba(234,182,92,.25); }
.zw-shen { background: rgba(199,155,255,.14) !important; border: 1px solid rgba(199,155,255,.6) !important; }
.zw-cai { background: rgba(127,212,168,.13) !important; border: 1px solid rgba(127,212,168,.55) !important; }
.zw-guan { background: rgba(143,178,255,.13) !important; border: 1px solid rgba(143,178,255,.55) !important; }
.zw-fu { background: rgba(255,143,163,.13) !important; border: 1px solid rgba(255,143,163,.55) !important; }
.star-good { color: #ffe08a; font-weight: 700; }
.star-strong { color: #ff9a8a; font-weight: 700; }
.star-aux { color: #9d93bd; font-weight: 400; }
.zw-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.zw-legend span { display: inline-flex; align-items: center; gap: 5px; }
.zw-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
/* 이용 후기 카드 */
.rv-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rv-grid::-webkit-scrollbar { display: none; }
.rv-card { flex: 0 0 78%; scroll-snap-align: start; background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 8px; align-content: start; }
.rv-card .st { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.rv-card p { margin: 0; font-size: 14px; line-height: 1.65; color: #e3dcf2; }
.rv-card .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.rv-card .meta img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.rv-sum { display: flex; align-items: center; gap: 14px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.rv-sum b { font-family: var(--f-display); font-size: 30px; color: var(--gold-2); }
/* 출석 도장 */
.stamp-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 10px; }
.stamp { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--ink-3); color: var(--faint); position: relative; border: 1.5px dashed rgba(255,255,255,.12); }
.stamp.on { background: radial-gradient(circle at 40% 35%, #ff8a7a, #c7372b 70%); color: #fff3e6; border: 2px solid #ffb1a3; transform: rotate(-8deg); box-shadow: 0 4px 12px rgba(199,55,43,.35); }
.stamp.on::after { content: "印"; font-family: var(--f-hanja); font-size: 15px; }
.stamp.on span { display: none; }
.stamp.today:not(.on) { border-color: var(--gold); color: var(--gold); }
.stamp.bonus:not(.on) { color: var(--gold-2); }
@keyframes stampIn { 0% { transform: scale(2.2) rotate(-25deg); opacity: 0; } 70% { transform: scale(.92) rotate(-6deg); opacity: 1; } 100% { transform: scale(1) rotate(-8deg); } }
.stamp.just { animation: stampIn .5s cubic-bezier(.2,.8,.3,1.2); }
/* 첫 화면 캐릭터 영상 */
.hero-card video, .stage .bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero-card video, .stage .bg video { display: none; } }
.pay-live .test-banner { display: none; }
/* 카카오톡 받기 */
.kakao-box { margin-top: 34px; background: rgba(254,229,0,.06); border: 1px solid rgba(254,229,0,.28); border-radius: 18px; padding: 14px; }
.kakao-box .kk-h { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.kakao-box .kk-h b { display: block; font-size: 15px; } .kakao-box .kk-h span { font-size: 12.5px; color: var(--muted); }
.kk-ico { width: 38px; height: 38px; border-radius: 12px; background: #FEE500; color: #191919; display: grid; place-items: center; flex: none; }
.kk-ico svg { width: 22px; height: 22px; }
.btn-kakao { background: #FEE500; color: #191919; font-weight: 700; }
.doc-table { overflow-x: auto; margin: 10px 0; }
.doc-table table { border-collapse: collapse; font-size: 12.5px; min-width: 520px; }
.doc-table th, .doc-table td { border: 1px solid var(--line-2); padding: 6px 8px; vertical-align: top; text-align: left; }
.doc-table th { background: var(--ink-3); }
/* 상품 페이지 목차: 색 칩 */
.toc li { align-items: center; }
.toc li .n { width: auto; min-width: 40px; text-align: center; padding: 3px 8px; border-radius: 8px; background: color-mix(in srgb, var(--acc, var(--gold)) 16%, transparent); color: var(--acc, var(--gold)); }
.toc li:nth-child(6n+1) { --acc: #eab65c; } .toc li:nth-child(6n+2) { --acc: #ff8fa3; } .toc li:nth-child(6n+3) { --acc: #7fd4a8; }
.toc li:nth-child(6n+4) { --acc: #8fb2ff; } .toc li:nth-child(6n+5) { --acc: #c79bff; } .toc li:nth-child(6n) { --acc: #ffb36b; }
/* 캐릭터 첫 화면 움직임 */
.stage > .bg { overflow: hidden; }
.stage > .bg.live img { animation: breathe 9s ease-in-out infinite alternate; transform-origin: 50% 30%; }
@keyframes breathe { 0% { transform: scale(1.0) translateY(0); filter: brightness(1); } 50% { filter: brightness(1.06); } 100% { transform: scale(1.06) translateY(-1.2%); filter: brightness(1); } }
.stage > .bg video { z-index: 0; }
.motes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.motes i { position: absolute; bottom: -10px; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, #ffe3a3, rgba(234,182,92,0) 70%); opacity: 0; animation: mote 8s linear infinite; }
.motes i:nth-child(3n) { width: 4px; height: 4px; } .motes i:nth-child(4n) { width: 9px; height: 9px; }
@keyframes mote { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translate(18px, -70vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stage > .bg.live img, .motes i { animation: none; } .motes { display: none; } }

.hero-card video { object-position: center top; z-index: 0; }
.stage .bg video { object-position: center 15%; }
.hero-card > .shade, .hero-card > .pick, .hero-card > .badge-new { z-index: 1; }
.hero-card > .cap { z-index: 2; }
.hero-card > .shade { z-index: 1; }
.hero-card > .pick, .hero-card > .badge-new { z-index: 2; }

/* 오행 순환도 */
.el-wheel { display: block; width: 100%; max-width: 340px; margin: 6px auto 0; }
.el-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 11.5px; color: var(--faint); margin: 4px 0 12px; }
.el-legend span { display: inline-flex; align-items: center; gap: 6px; }
.el-legend .ln { width: 18px; height: 0; border-top: 2px solid var(--gold-2); }
.el-legend .ln.dash { border-top: 1.5px dashed var(--faint); }
.el-legend .ring { width: 11px; height: 11px; border-radius: 50%; border: 2px dashed var(--gold-2); }
.el-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.el-cards div { border-radius: 10px; padding: 8px 4px; text-align: center; background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.el-cards b { display: block; font-size: 12.5px; color: var(--c); }
.el-cards span { display: block; font-size: 10.5px; line-height: 1.35; color: var(--muted, var(--faint)); margin-top: 3px; word-break: keep-all; }
@media (max-width: 360px) { .el-cards { grid-template-columns: repeat(3, 1fr); } }

/* 상인 가로 넘김 카드 */
.cast2 { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 2px max(16px, env(safe-area-inset-left, 0px)) 6px; scroll-padding: 0 max(16px, env(safe-area-inset-left, 0px)); -webkit-overflow-scrolling: touch; }
.cast2::-webkit-scrollbar { display: none; }
.cast2 > button { flex: none; width: 38%; max-width: 168px; aspect-ratio: 3 / 4; position: relative; border-radius: 16px; overflow: hidden; scroll-snap-align: start; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 8px 22px rgba(0,0,0,.35); text-align: left; padding: 0; background: var(--ink); transition: transform .2s; }
.cast2 > button:active { transform: scale(.97); }
.cast2 > button img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.cast2 > button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(16,13,28,.92)); }
.cast2 .cap { position: absolute; left: 10px; right: 8px; bottom: 9px; z-index: 1; }
.cast2 .cap b { display: block; font-family: var(--f-display); font-size: 15px; font-weight: 700; color: #fff; }
.cast2 .cap span { display: block; font-size: 11px; color: color-mix(in srgb, var(--c) 60%, #fff); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 상세 첫 화면: 인물 크기 줄이고 그림 전체(배경 포함)가 보이게 */
.stage > .bg img.bd { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(26px) brightness(.5) saturate(1.15); animation: none !important; }
.stage > .bg img.main, .stage > .bg video { position: absolute; top: 0; left: 0; width: 100%; height: auto; aspect-ratio: 3 / 4; max-height: 78%; object-fit: contain; object-position: center top; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
.stage > .bg.live img.main { animation: drift 14s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes drift { 0% { transform: scale(1) translate(0, 0); } 50% { transform: scale(1.025) translate(-0.6%, -0.4%); filter: brightness(1.05); } 100% { transform: scale(1.04) translate(0.6%, -0.8%); } }
@media (prefers-reduced-motion: reduce) { .stage > .bg.live img.main { animation: none; } }
.list > *, .row { min-width: 0; max-width: 100%; }
.el-cards b { background: none !important; padding: 0 !important; }

/* 세로형 큰 그림: 화면 가득, 인물은 위쪽, 아래는 어둡게 글자 자리 */
.stage > .bg.tall img.main { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: center top; -webkit-mask-image: none; mask-image: none; }
.stage > .bg.tall img.bd { display: none; }
.stage > .bg.tall::after { background: linear-gradient(180deg, rgba(16,13,28,.5) 0%, rgba(16,13,28,0) 14%, rgba(16,13,28,0) 40%, rgba(16,13,28,.55) 58%, rgba(16,13,28,.88) 76%, var(--ink) 94%); }
.stage:has(> .bg.tall) { min-height: max(100svh, 640px); }
.stage:has(> .bg.tall) .body { margin-top: calc(max(100svh, 640px) * 0.36); }

/* 모바일: 추천 카드 화면 꽉 차게 */
@media (max-width: 520px) {
  .hero-track { padding: 0; gap: 0; scroll-padding: 0; }
  .hero-card { flex: 0 0 100%; border-radius: 0; aspect-ratio: 9 / 14; }
}

/* 상세 첫 화면: 글자가 그림 위로 올라와 인물을 가리지 않게, 그림 높이만큼 아래에서 시작 */
.stage .body { margin-top: calc(min(100vw, 480px) * 1.3333 - 130px); }

@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #111 !important; }
  body::before, header.top, .nav, .float-top, .kakao-box, .btn, button, .toast, #sheet, .paywall, .r-toc, footer, .dots, .hero { display: none !important; }
  .r-hero { aspect-ratio: auto !important; max-height: 60mm; }
  .r-hero img { max-height: 60mm; object-fit: contain; }
  * { color: #111 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important; }
  .panel { border: 1px solid #bbb !important; break-inside: avoid; margin: 6px 0; }
  section.chap { break-inside: auto; }
  section.chap h2 { break-after: avoid; border-bottom: 1px solid #999; }
  a { text-decoration: none; }
}

/* ---- 검수 반영 ---- */
.sticky-cta { background: linear-gradient(180deg, rgba(23,19,42,0), rgba(23,19,42,.97) 16px); }
.sticky-cta .coupon-tip { padding-top: 4px; }
footer .links button, footer .links a { display: inline-block; min-height: 40px; padding: 10px 2px; }
.sec-h button, .sec-h a { min-height: 40px; padding: 0 4px; }
.tabs { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.sheet .row { padding: 10px 12px; }
.tag-chips .tag, .chips .tag { min-height: 36px; }

/* 도구 화면 상단 그림: 모든 화면에서 같은 높이·같은 구도, 첫 화면 안에 제목과 첫 입력이 들어오게 */
.r-hero { aspect-ratio: auto; height: clamp(300px, 42svh, 400px); }
.r-hero img { object-position: center 12%; }
.r-hero::after { background: linear-gradient(180deg, rgba(16,13,28,.35), transparent 26%, rgba(23,19,42,.55) 58%, var(--ink) 97%); }
.r-hero .cap { bottom: 6px; }
.r-hero .cap h1 { font-size: 28px; }

/* 세로형 첫 화면: 그림 높이를 화면 높이에 고정해서 글이 길어도 얼굴 높이가 화면마다 같게 */
.stage > .bg.tall { background-color: var(--ink); }
.stage > .bg.tall img.main { height: max(100svh, 640px); inset: auto; top: calc(max(100svh, 640px) * var(--up, 0) * -1); left: 0; width: 100%; }
/* 홈 바로가기 */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 4px; padding-top: 18px; }
.quick button { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; padding: 0; background: none; border: 0; color: inherit; }
.quick .ic { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; border: 2px solid color-mix(in srgb, var(--c) 70%, #fff 0%); box-shadow: 0 6px 16px rgba(0,0,0,.35); background: var(--ink-3); }
.quick .ic img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.quick .lb { font-size: 12.5px; font-weight: 600; letter-spacing: -0.03em; text-align: center; line-height: 1.25; word-break: keep-all; }
.quick button:active .ic { transform: scale(.94); }

/* ---------- 홈 v2: 한 화면 구조 ---------- */
.btn-my { padding: 6px 12px; border-radius: 999px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); font-weight: 700; font-size: 13px; margin-left: 4px; }
.hhero { position: relative; display: block; width: 100%; margin-top: 10px; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 3.6; border: 1px solid var(--line-2); text-align: left; }
.hhero img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hhero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(16,13,28,.92)); }
.hhero .cap { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 6px; justify-items: start; }
.hhero .cap b { font-family: var(--f-display); font-size: 23px; line-height: 1.3; }
.hhero .cap span:last-child { color: var(--muted); font-size: 13.5px; }
.hgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.hcard { display: grid; gap: 4px; padding: 10px 10px 12px; border-radius: var(--r-m); text-align: left; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 26%, var(--ink-2)), var(--ink)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.hcard .im { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; margin-bottom: 6px; box-shadow: 0 0 24px color-mix(in srgb, var(--c) 30%, transparent); }
.hcard .im picture { display: block; width: 100%; height: 100%; }
.hcard .im img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hcard .hd { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hcard .hd b { font-size: 15px; }
.hcard .hd em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(234,182,92,.18); color: var(--gold-2); white-space: nowrap; }
.hcard .hd em.fr { background: rgba(95,195,166,.2); color: var(--jade); }
.hcard .ds { font-size: 12px; color: var(--muted); line-height: 1.4; }
.hbanners { display: grid; gap: 10px; margin-top: 14px; }
.hbanner { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: var(--r-l); text-align: left; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 30%, var(--ink-2)), var(--ink-2)); border: 1px solid var(--line-2); min-height: 96px; }
.hbanner img { width: 68px; height: 68px; border-radius: 16px; object-fit: cover; flex: none; }
.hbanner .tx { display: grid; gap: 3px; padding-right: 36px; }
.hbanner .tx b { font-size: 16px; }
.hbanner .tx span { font-size: 12.5px; color: var(--muted); }
.free-b { position: absolute; top: 10px; right: 10px; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); }
.hshare { width: 100%; margin-top: 14px; display: flex; gap: 6px; justify-content: center; align-items: center; }
.hshare svg { width: 18px; height: 18px; }
.mq { overflow: hidden; margin-top: 10px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-track { display: flex; gap: 10px; width: max-content; animation: mq 40s linear infinite; }
.mq.rev .mq-track { animation-direction: reverse; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-card { width: 230px; flex: none; padding: 12px; border-radius: var(--r-m); background: var(--ink-2); border: 1px solid var(--line); }
.mq-card .st { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.mq-card p { margin: 4px 0; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mq-card small { color: var(--faint); font-size: 11px; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } .mq { overflow-x: auto; } }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 2px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.nav.pill { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 48px); max-width: 360px; border-radius: 999px; border: 1px solid var(--line-2); grid-template-columns: repeat(4, 1fr); padding-bottom: 0; box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.nav.pill button { padding: 8px 0 7px; }
.nav.pill button svg { width: 21px; height: 21px; }
.view { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.to-top { position: fixed; right: max(16px, calc(50% - 224px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 41; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); border: 1px solid var(--line-2); color: var(--gold); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 주문 흐름 v3 ---------- */
.who-sheet { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 22px 22px 16px 16px; padding: 10px 16px 18px; margin-top: 30vh; box-shadow: 0 -10px 40px rgba(0,0,0,.4); }
.who-sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto 12px; }
.who-sheet h2 { margin: 0 0 2px; font-family: var(--f-display); font-size: 20px; }
.who-sheet .add-p { margin-top: 10px; width: 100%; }
.rel { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(234,182,92,.18); color: var(--gold-2); margin-left: 4px; vertical-align: 1px; }
.pform { background: rgba(23,19,42,.92); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 16px; margin-top: 8px; }
.pform h2 { margin: 0 0 10px; font-family: var(--f-display); font-size: 20px; }
.pform .field { margin-top: 12px; }
.pform .field > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ink-3); color: var(--muted); font-size: 13.5px; }
.pills button[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); border-color: transparent; font-weight: 700; }
.city-btn { text-align: left; width: 100%; }
.city-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.city-list button { padding: 10px 6px; border-radius: 12px; background: var(--ink-3); border: 1px solid var(--line); }
.city-list button:first-child { grid-column: 1 / -1; }
.live { margin-top: 16px; padding: 12px; border-radius: var(--r-m); background: var(--ink); border: 1px dashed rgba(234,182,92,.35); }
.live-h { font-size: 13px; color: var(--gold-2); margin-bottom: 8px; font-weight: 700; }
.live-empty { font-size: 13px; color: var(--faint); text-align: center; padding: 14px 0; }
.concern { background: rgba(23,19,42,.92); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 18px; margin-top: 22vh; display: grid; gap: 10px; }
.concern h2 { margin: 0; font-family: var(--f-display); font-size: 21px; }
.concern textarea { resize: vertical; min-height: 110px; }
.order .o-prod { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.order .o-prod img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; flex: none; }
.order .o-prod div { display: grid; gap: 2px; }
.order .o-prod small { color: var(--gold-2); font-size: 12px; }
.order .o-prod b { font-size: 17px; }
.order .o-prod span { color: var(--muted); font-size: 13px; }
.o-list { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); columns: 1; }
.o-list li { margin: 3px 0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.r-who { display: grid; gap: 10px; margin-top: 10px; }
.r-who-1 { padding: 12px; border-radius: var(--r-m); background: var(--ink-2); border: 1px solid var(--line); }
.r-who-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin-bottom: 8px; }
.r-who-h span { font-size: 12px; color: var(--muted); }
.toc-fab { position: fixed; right: max(16px, calc(50% - 224px)); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 41; display: grid; justify-items: center; gap: 1px; width: 54px; height: 54px; border-radius: 50%; place-content: center; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); font-size: 10.5px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.toc-fab svg { width: 18px; height: 18px; }
/* v2.4.28 읽는 중(아래로 스크롤)에는 목차 버튼이 글을 가리지 않게 옆으로 숨기고, 위로 올리거나 멈추면 다시 보여요 */
.toc-fab { transition: transform .25s ease, opacity .25s ease; }
.toc-fab.away { transform: translateX(84px); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .toc-fab { transition: none; } }
.toc-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; max-height: 60vh; overflow: auto; }
.toc-list button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.toc-list button.lock { color: var(--faint); }
.toc-list .n { color: var(--gold); font-weight: 700; min-width: 20px; }
.next-blur { position: relative; display: block; width: 100%; margin-top: 22px; border-radius: var(--r-l); overflow: hidden; border: 1px solid rgba(234,182,92,.35); background: var(--ink-2); text-align: left; min-height: 190px; }
.next-blur .nb-body { padding: 16px; filter: blur(5px); opacity: .55; }
.next-blur .nb-cta { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; background: linear-gradient(180deg, rgba(16,13,28,.2), rgba(16,13,28,.75)); }
.next-blur .nb-cta small { color: var(--gold-2); }
.next-blur .nb-cta b { font-size: 17px; }
.next-blur .nb-cta span { font-size: 12.5px; color: var(--muted); }

/* ---------- 오늘의 운세 점수형 ---------- */
.ds { margin-top: 0; padding: 16px; border-radius: var(--r-l); background: radial-gradient(120% 90% at 20% 0%, rgba(234,182,92,.16), transparent 60%), var(--ink-2); border: 1px solid var(--line-2); }
.ds-top { display: flex; gap: 16px; align-items: center; }
.ds-ring { --v: 50; flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, var(--ink-2) 78%, transparent 80% 100%), conic-gradient(var(--gold) calc(var(--v) * 1%), var(--ink-3) 0); }
.ds-ring b { font-family: var(--f-display); font-size: 36px; line-height: 1; color: var(--gold-2); }
.ds-ring small { font-size: 11px; color: var(--muted); }
.ds-meta { display: grid; gap: 4px; min-width: 0; }
.ds-meta small { color: var(--faint); font-size: 11.5px; }
.ds-meta b { font-family: var(--f-display); font-size: 20px; }
.ds-meta span { font-size: 13px; color: var(--muted); }
.ds-bars { display: grid; gap: 8px; margin-top: 16px; }
.ds-bars div { display: grid; grid-template-columns: 38px 1fr 30px; align-items: center; gap: 8px; font-size: 13px; }
.ds-bars .tr { height: 8px; border-radius: 8px; background: var(--ink-3); overflow: hidden; }
.ds-bars .tr i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.ds-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.ds-lucky { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.ds-lucky div { display: grid; gap: 2px; padding: 8px 6px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); text-align: center; }
.ds-lucky small { font-size: 10.5px; color: var(--faint); }
.ds-lucky b { font-size: 12.5px; display: flex; gap: 4px; align-items: center; justify-content: center; word-break: keep-all; }
.ds-lucky .swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ds-rec { display: flex; gap: 12px; align-items: center; width: 100%; margin-top: 12px; padding: 12px; border-radius: var(--r-m); background: var(--ink-2); border: 1px solid rgba(234,182,92,.35); text-align: left; }
.ds-rec img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.ds-rec span { display: grid; gap: 2px; }
.ds-rec small { color: var(--muted); font-size: 11.5px; }
.ds-rec em { font-style: normal; color: var(--gold-2); font-weight: 700; font-size: 13px; }
.hgrid .hcard:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: 96px 1fr; align-items: center; column-gap: 12px; }
.hgrid .hcard:last-child:nth-child(odd) .im { grid-row: 1 / 3; margin: 0; }

/* v6: 잠긴 장 첫 문장 흐린 미리보기, 용어 접기, 동의 안내, 헤더 터치 타깃 */
.locked .peek { margin: 0 0 10px; font-size: 14.5px; line-height: 1.7; color: #e3dcf2; }
.locked .peek .bl { filter: blur(4px); user-select: none; }
details.howto { margin: 14px 0 4px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--ink-2); padding: 10px 14px; font-size: 13.5px; }
details.howto summary { cursor: pointer; color: var(--gold, #eab65c); font-weight: 600; min-height: 28px; display: flex; align-items: center; }
details.howto ul { margin: 8px 0 2px; padding-left: 18px; line-height: 1.7; opacity: .9; }
.note.legal { margin-top: 14px; font-size: 12.5px; opacity: .75; border-top: 1px dashed var(--line); padding-top: 10px; }
.consent-note { margin: -4px 0 12px; font-size: 12.5px; opacity: .85; }
.topbar .logo, .btn-my, .topbar .icon-btn { min-height: 44px; }
.btn-my { min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.topbar .icon-btn { min-width: 44px; }

.next-blur .nb-ava { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--gold), 0 0 24px rgba(234,182,92,.35); margin-bottom: 4px; }
.next-blur .nb-ava img { width: 100%; height: 100%; object-fit: cover; }
.next-blur .nb-cta span.nb-ava { font-size: 0; }

/* v10: 뒤로가기로 되돌린 화면은 등장 애니메이션 생략, 첫 화면 멘트는 지연 없이 */
#app.restored .vn-line, #app.restored .view, #app.restored [style*="animation-delay"] { animation: none !important; }
.stage .lines .vn-line { animation: none; }
.float-top .ft-l { display: flex; gap: 6px; align-items: center; }
.ask .float-top .home-btn, .stage .float-top .home-btn { background: rgba(16,13,28,.45); backdrop-filter: blur(6px); }
.back-row.has-home h1 { padding-right: 84px; }
.home-btn svg { width: 21px; height: 21px; }

.ref-panel .ref-code { display: flex; justify-content: space-between; align-items: center; background: var(--ink-3, #221b3a); border: 1px dashed rgba(234,182,92,.5); border-radius: 12px; padding: 10px 14px; margin: 8px 0 10px; }
.ref-panel .ref-code b { font-size: 20px; letter-spacing: .14em; color: var(--gold); }
.ref-panel .ref-prog { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 6px; }
.ref-panel .ref-prog i { display: block; height: 100%; background: linear-gradient(90deg, #e2b25a, #fff1c4); border-radius: 99px; }
.ref-panel b.gold { color: var(--gold); }
.ref-banner { display: grid; gap: 2px; width: 100%; margin-top: 12px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(234,182,92,.4); background: linear-gradient(120deg, rgba(234,182,92,.16), rgba(124,140,240,.10)); }
.ref-banner b { color: var(--gold); font-size: 14.5px; } .ref-banner span { font-size: 12.5px; color: var(--muted); }

/* v11 나만의 등불 8종 */
.lt-view { background: radial-gradient(120% 60% at 50% 0, #1a1640 0, #0b0a1d 60%) fixed; }
.lt-page { max-width: 1120px; margin: 0 auto; padding: 8px 14px 30px; }
.lt-head { text-align: center; padding: 10px 0 18px; }
.lt-head h2 { font-family: var(--f-display); font-size: 26px; margin: 6px 0 6px; background: linear-gradient(180deg, #fff6dc, #e9c27a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lt-head p { color: var(--muted); font-size: 13.5px; margin: 0; }
.lt-orn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.lt-orn svg { width: 26px; height: 26px; }
.lt-orn i { display: block; width: 70px; height: 1px; background: linear-gradient(90deg, transparent, #e2b25a); }
.lt-orn i:last-child { transform: scaleX(-1); }
.lt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .lt-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } .lt-head h2 { font-size: 32px; } }
.lt-card { display: flex; flex-direction: column; text-align: left; border-radius: 14px; overflow: hidden; background: #121030; border: 1px solid rgba(226,178,90,.35); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s, box-shadow .2s, border-color .2s; }
.lt-card:hover, .lt-card:focus-visible { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 14px 36px rgba(0,0,0,.45), 0 0 24px color-mix(in srgb, var(--c) 35%, transparent); }
.lt-art { position: relative; aspect-ratio: 272 / 424; overflow: hidden; background: #0b0a1d; }
.lt-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.lt-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, transparent, #121030); }
.lt-cap { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 4px; padding: 10px 12px 14px; align-items: center; }
.lt-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); background: rgba(255,255,255,.04); }
.lt-cap b { font-size: 15px; color: #f7ead0; }
.lt-cap small { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; color: var(--muted); }
.lt-note { text-align: center; margin-top: 16px; }
.lt-result { max-width: 460px; margin: 0 auto; padding-top: 8px; }
@media (min-width: 900px) { #app:has(.lt-view) { max-width: 1120px; } .lt-cap small { font-size: 12.5px; } }
/* v11 회원 */
.auth-sheet .field { margin-top: 12px; }
.auth-sheet .chk { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 4px; font-size: 13px; line-height: 1.5; }
.auth-sheet .chk input { margin-top: 3px; width: 18px; height: 18px; accent-color: #e2b25a; }
.auth-sheet .chk .more { font-size: 13px; text-decoration: underline; padding: 0; }
.auth-sheet .err { min-height: 20px; margin: 8px 0; color: #ff8a80; font-size: 13px; }
.auth-sheet .row2 .more { justify-self: center; }
.acct-card p b { color: #f7ead0; }

/* v12.1 소셜 로그인 */
.soc { display: grid; gap: 8px; margin: 6px 0 14px; }
.soc-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; font-weight: 700; font-size: 15px; width: 100%; }
.soc-btn .soc-ic { width: 18px; height: 18px; border-radius: 50%; position: absolute; left: 16px; }
.soc-kakao { background: #FEE500; color: rgba(0,0,0,.85); }
.soc-naver { background: #03C75A; color: #fff; }
.soc-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.soc-btn .soc-ic-kakao, .soc-btn .soc-ic-naver, .soc-btn .soc-ic-google { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: none !important; border-radius: 0; }
.soc-btn .soc-ic svg { display: block; flex: none; }
.soc-btn[disabled] { opacity: .55; cursor: not-allowed; }
.soc-btn em { position: absolute; right: 14px; font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,.18); }
.soc-inapp { margin: 2px 0 0; font-size: 12px; }
.soc-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin-top: 6px; }
.soc-or::before, .soc-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.12); }

/* v12.2 로그인 선택 화면 */
.alt-opts { display: grid; gap: 8px; margin: 4px 0 12px; }
.alt-btn { position: relative; height: 48px; border-radius: 12px; font-weight: 700; font-size: 15px; width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: var(--text); }
.alt-btn[disabled] { opacity: .55; cursor: not-allowed; }
.alt-btn em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,.25); }
.alt-email { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0 4px; }
.alt-email .more { text-decoration: underline; }

/* v12.3 이메일 가입 강조 */
.alt-email { display: grid; gap: 4px; justify-items: center; }
.alt-email-row { display: flex; align-items: center; gap: 10px; }
.alt-email-row i { color: var(--muted); font-style: normal; }
.em-signup { color: var(--gold, #f2c46b); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }

/* v12.3-prod 결제 준비 중 */
.pay-wait { display: none; text-align: center; font-weight: 700; padding: 14px; margin: 0 0 10px; }
html.pay-off .pay-wait { display: block; }
html.pay-off [data-act="payNow"], html.pay-off [data-act="orderPay"], html.pay-off #orderPin, html.pay-off label[for="orderPin"] { display: none !important; }
html.pay-off .test-banner, html.pay-off .paygrid { display: none !important; }

/* v12.4 친구 초대 이벤트 팝업 */
html.pay-off .pay-method-h { display: none !important; }
.evt-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(6,5,16,.72); backdrop-filter: blur(3px); animation: evtIn .25s ease-out; }
@keyframes evtIn { from { opacity: 0; } to { opacity: 1; } }
.evt { width: min(360px, 100%); border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #161335 0%, #0d0b22 100%); border: 1px solid rgba(242,196,107,.45); box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 40px rgba(242,196,107,.12); color: var(--text); animation: evtUp .3s ease-out; }
@keyframes evtUp { from { transform: translateY(14px); } to { transform: none; } }
.evt-art { position: relative; height: 190px; overflow: hidden; }
.evt-art img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.evt-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,11,34,0) 40%, #161335 100%); }
.evt-lantern { position: absolute; right: 14px; top: 10px; width: 64px; height: auto; border-radius: 10px; z-index: 1; filter: drop-shadow(0 0 14px rgba(255,190,90,.65)); }
.evt-badge { position: absolute; left: 14px; top: 14px; z-index: 1; font-size: 12px; font-weight: 700; color: #1b1406; background: linear-gradient(180deg, #f8d98f, #e7b552); padding: 4px 10px; border-radius: 99px; }
.evt-body { padding: 4px 20px 16px; text-align: center; }
.evt-kicker { margin: 0; color: #e8c07a; font-size: 13px; letter-spacing: .02em; }
.evt-body h2 { margin: 6px 0 12px; font-size: 21px; line-height: 1.4; font-weight: 700; }
.evt-body h2 b { color: #f6d58a; }
.evt-steps { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.evt-steps li { font-size: 12px; line-height: 1.35; color: #d9d3ea; background: rgba(255,255,255,.05); border: 1px solid rgba(242,196,107,.18); border-radius: 12px; padding: 8px 4px; }
.evt-steps i { display: block; margin: 0 auto 4px; width: 20px; height: 20px; line-height: 20px; border-radius: 50%; background: rgba(242,196,107,.2); color: #f6d58a; font-style: normal; font-weight: 700; font-size: 12px; }
.evt-note { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.evt-cta { width: 100%; }
.evt-foot { display: flex; border-top: 1px solid rgba(255,255,255,.08); }
.evt-foot button { flex: 1; padding: 13px 0; font-size: 13px; color: var(--muted); }
.evt-foot button + button { border-left: 1px solid rgba(255,255,255,.08); color: var(--text); }
.ref-sheet h3 { margin-top: 0; }

/* v12.5 무료 미리보기 후크 */
.cut-more { color: var(--muted); }
.cut-fade { position: relative; margin: -4px 0 6px; padding: 10px 0 2px; }
.cut-fade .ghost { filter: blur(3px); opacity: .5; }
.cut-fade .ghost i { display: block; height: 10px; margin: 8px 0; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.06)); }
.cut-fade .ghost i:nth-child(2) { width: 86%; } .cut-fade .ghost i:nth-child(3) { width: 64%; }
.cut-fade .badge { position: relative; display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--gold-2, #f2c46b); background: rgba(242,196,107,.1); border: 1px solid rgba(242,196,107,.3); padding: 6px 10px; border-radius: 99px; }
.pw-keys { text-align: left; margin: 12px 0 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(242,196,107,.2); }
.pw-k-h { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--gold-2, #f2c46b); }
.pw-what { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; }
.pw-k { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.pw-k li { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 8px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.18); }
.pw-k b { color: var(--gold-2, #f2c46b); }
.pw-k em { font-style: normal; letter-spacing: .1em; color: var(--muted); filter: blur(.6px); }

/* v12.5 팝업 모바일 비율 */
.evt-wrap { padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); overscroll-behavior: contain; }
.evt { width: min(400px, 100%); max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.evt-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 0; }
.evt-art { height: clamp(150px, 30vh, 200px); flex: none; }
.evt-body { padding: 2px 20px 18px; }
.evt-kicker { font-size: 13.5px; }
.evt-body h2 { font-size: clamp(20px, 5.6vw, 23px); line-height: 1.38; letter-spacing: -.01em; margin: 6px 0 14px; word-break: keep-all; }
.evt-steps { gap: 8px; margin-bottom: 12px; }
.evt-steps li { font-size: 13px; padding: 10px 4px; word-break: keep-all; }
.evt-note { font-size: 12.5px; line-height: 1.5; word-break: keep-all; }
.evt-cta { min-height: 52px; font-size: 16px; }
.evt-foot { flex: none; }
.evt-foot button { min-height: 50px; font-size: 14px; }
@media (max-width: 520px) {
  .evt-wrap { place-items: end center; }
  .evt { width: 100%; border-radius: 22px; }
}
@media (max-width: 370px) {
  .evt-body { padding: 2px 16px 16px; }
  .evt-steps li { font-size: 12px; }
}
@media (max-height: 640px) { .evt-art { height: 120px; } }
/* v12.6 좁은 화면 헤더: 로고·로그인 글자가 줄바꿈되지 않게 */
.top .logo, .top .logo span, .top .btn-my { white-space: nowrap; flex: none; }
.top .grow { min-width: 0; }
@media (max-width: 380px) {
  .top .logo span { font-size: 18px; }
  .top .icon-btn { width: 38px; height: 38px; }
  .top .btn-my { padding: 0 12px; height: 34px; font-size: 13px; }
}
@media (max-width: 330px) { .top .logo span { font-size: 16px; } .top .icon-btn { width: 34px; } }
/* ---- 버전2: 시작하기 화면 · 구매 단계 · 수다방 · 홈 이벤트 배너 ---- */
.login-page{padding-top:14px;padding-bottom:40px;max-width:480px;margin:0 auto}
.lp-hero{text-align:center;margin:18px 0 22px}.lp-hero svg{width:56px;height:56px}.lp-hero h2{margin:10px 0 4px;font-size:22px}
.lp-btns{display:grid;gap:10px}.lp-btns .soc-btn{width:100%;min-height:52px;justify-content:center;font-size:15.5px;font-weight:700;border-radius:14px}
.soc-email{background:#2a2346;color:#f3eefe;border:1px solid rgba(234,182,92,.35)}
.lp-terms{text-align:center;margin-top:16px;font-size:12.5px}.lp-h{font-size:19px;margin:16px 0 10px}
.lp-prod{margin:4px 0 6px}
.buy-steps{display:flex;gap:4px;list-style:none;padding:0;margin:10px 0 14px;font-size:11.5px;color:var(--muted)}
.buy-steps li{flex:1;min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px;white-space:nowrap}
.buy-steps i{font-style:normal;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);font-weight:700}
.buy-steps li.on{color:#eab65c;font-weight:700}.buy-steps li.on i{background:#eab65c;color:#1a1530}.buy-steps li.done i{background:rgba(234,182,92,.3)}
.evt-banner{display:grid;gap:4px;width:100%;text-align:left;margin:14px 0 10px;padding:14px 16px;border-radius:16px;border:1px solid rgba(234,182,92,.4);background:linear-gradient(135deg,#2b2152,#3a2a5e 60%,#5a3a2a);color:#f6efe0}
.evt-banner .eb-k{font-size:12px;color:#eab65c;font-weight:700}.evt-banner b{font-size:15.5px;line-height:1.35}.evt-banner .eb-s{font-size:13px;opacity:.85}
.free-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:6px}
.free-row button{text-align:left;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);color:inherit;display:grid;gap:2px;min-width:0}
.free-row b{font-size:15px}.free-row span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat{padding-bottom:110px}.chat-log{display:grid;gap:12px;margin:12px 0}
.chat-me{display:flex;justify-content:flex-end}.chat-me span{max-width:80%;background:#eab65c;color:#1a1530;padding:9px 13px;border-radius:16px 16px 4px 16px;overflow-wrap:anywhere}
.chat .bub{overflow-wrap:anywhere}
.chat-rec{display:grid;gap:2px;width:100%;text-align:left;margin-top:10px;padding:10px 12px;border-radius:12px;background:rgba(234,182,92,.12);border:1px solid rgba(234,182,92,.35);color:inherit}
.chat-rec span{font-size:12.5px;color:#eab65c}
.chat-quick{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.chat-quick button{padding:7px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:transparent;color:inherit;font-size:13px}
.chat-in{display:flex;gap:8px}.chat-in .inp{flex:1;min-width:0}
.lp-prod{display:flex;gap:12px;align-items:center;padding:12px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1)}
.lp-prod img{width:64px;height:64px;flex:none;object-fit:cover;border-radius:12px}
.lp-prod div{display:grid;gap:2px;min-width:0}.lp-prod small{color:var(--gold);font-size:12px}.lp-prod span{font-size:12.5px;color:var(--muted)}

/* v2.4 상단 뒤로가기·홈 상시 고정 */
.nav2 { display: inline-flex; gap: 2px; align-items: center; flex: none; }
.top-row .nav2 + .logo { margin-left: 2px; }
.back-row.has-home h1 { padding-right: 84px; }
.stage .float-top, .r-float { position: fixed !important; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: calc(6px + env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-left, 0px)) 6px; background: linear-gradient(180deg, rgba(16,13,28,.78), rgba(16,13,28,0)); pointer-events: none; }
.stage .float-top > *, .r-float > * { pointer-events: auto; }
.r-float .icon-btn { background: rgba(16,13,28,.5); }
.ask .float-top { position: sticky !important; top: 0; z-index: 40; padding-top: calc(6px + env(safe-area-inset-top, 0px)); padding-bottom: 6px; background: linear-gradient(180deg, rgba(16,13,28,.85), rgba(16,13,28,0)); }

.btn-preview { background: linear-gradient(180deg, #46d6a6, #23a97d); color: #08241a; font-weight: 800; border: 0; box-shadow: 0 6px 22px rgba(35,169,125,.35); display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.btn-preview svg { width: 20px; height: 20px; }
.btn-preview:disabled { background: var(--ink-3); color: var(--muted); box-shadow: none; }
.btn-preview-lg { min-height: 56px; font-size: 17px; border-radius: 16px; }
.pv-sub { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.cp-list { display: grid; gap: 8px; margin: 12px 0; }
.cp-item { display: grid; gap: 2px; padding: 12px 14px; border: 1px dashed var(--gold-2); border-radius: 12px; background: rgba(234,182,92,.06); }
.cp-item span { font-size: 12.5px; color: var(--muted); }
.share-count { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.share-count b { color: var(--gold-2); font-size: 15px; }

.chat-cta { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); color: var(--text); }

.el-note { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: rgba(234,182,92,.08); border: 1px solid rgba(234,182,92,.3); }
.el-note b { display: block; color: var(--gold-2); margin-bottom: 4px; }
.el-note p { margin: 0; }

.hjr { font-size: .78em; color: var(--muted); margin-left: 2px; font-weight: 500; }
.r-float .ft-l { display: flex; gap: 6px; align-items: center; }
.el-note b { background: none !important; padding: 0 !important; box-shadow: none !important; }

/* v2.4 캐릭터 루프 영상: 그림 위에 겹쳐 두고 재생이 시작될 때만 보여 레이아웃 이동·검은 화면 없음 */
.hhero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; opacity: 0; }
.stage > .bg video { opacity: 0; z-index: 1; background: transparent; }
.stage > .bg.tall video { position: absolute; height: max(100svh, 640px); inset: auto; top: calc(max(100svh, 640px) * var(--up, 0) * -1); left: 0; width: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: center top; -webkit-mask-image: none; mask-image: none; }
.hhero video.on, .stage > .bg video.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hhero video { display: none; } }
.share-total { min-height: 22px; margin: 16px 0 8px; text-align: center; font-size: 13.5px; color: var(--muted); }
.share-total b { color: var(--gold-2); }
/* v2.4.2 번쩍임 제거: 아래쪽 어둠 그라데이션이 영상(z-index 1) 밑에 깔려, 영상이 켜지는 순간 화면 아래가 확 밝아지던 문제 → 그라데이션을 영상 위로 */
.stage > .bg::after { z-index: 2; pointer-events: none; }
/* 느린 망에서 그림이 늦게 오면 빈 화면 → 그림이 '탁' 튀어나오지 않게 부드럽게 나타나요(이미 받은 그림은 바로 보임) */
.stage > .bg img.main.ld { opacity: 0; }
.stage > .bg img.main { transition: opacity .4s ease-out; }
.lp-or{margin:4px 0 0}

/* v2.4.3.3: 홈 유료 섹션 990원 가격 강조 */
.price-eyebrow { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 0 0 10px; padding: 6px 14px 6px 12px; border-radius: 999px; background: rgba(240,196,110,.12); border: 1px solid rgba(240,196,110,.55); color: #f6e6c4; font-family: var(--f-body); font-size: 14px; font-weight: 600; letter-spacing: .01em; line-height: 1.2; }
.price-big { font-size: 24px; font-weight: 800; color: #ffd27a; letter-spacing: -.01em; text-shadow: 0 0 14px rgba(255,200,100,.35); }
@media (min-width: 768px) { .price-eyebrow { font-size: 16px; padding: 7px 18px 7px 14px; } .price-big { font-size: 30px; } }
/* v2.4.3.4 홈 카드 가격 · 비회원 주문 · 제공 정보 */
.hcard .hd { align-items: flex-start; }
.hcard .hd b { min-width: 0; }
.hcard .hd em.hprice { flex: none; font-style: normal; font-size: 13px; font-weight: 800; color: #ffd27a; background: rgba(240,196,110,.14); border: 1px solid rgba(240,196,110,.45); border-radius: 999px; padding: 2px 8px; line-height: 1.35; white-space: nowrap; }
.hcard .hd em.hprice.free { color: #9fe3c4; background: rgba(110,220,170,.12); border-color: rgba(110,220,170,.45); }
.soc-guest { background: transparent; color: #f3eefe; border: 1px dashed rgba(234,182,92,.55); }
.lp-glookup { display: block; margin: 10px auto 0; text-decoration: underline; color: var(--gold); font-weight: 600; }
.gl-seg { margin: 12px 0 14px; }
.provide-info { margin: 12px 0; font-size: 13.5px; line-height: 1.6; }
.provide-info p { margin: 2px 0; }
.provide-info b { color: var(--gold); }
.guest-box .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.guest-box .check { margin-top: 6px; }

.test-note { font-size: 12px; opacity: .8; text-align: center; margin: 0 0 8px; }
/* v2.4.5 명식 카드·레이더·음양 저울 */
.mx-head { margin: 4px 0 16px; padding: 16px 12px 12px; border-radius: 20px; background: radial-gradient(120% 80% at 50% 0%, rgba(234,182,92,.16), rgba(23,19,42,.0) 60%), var(--ink-2); border: 1px solid rgba(234,182,92,.22); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.mx-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mx-cards { grid-template-rows: auto auto auto; row-gap: 6px; }
.mx-col { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 6px; align-items: stretch; text-align: center; min-width: 0; }
.mx-col > .mx-lb { align-self: end; word-break: keep-all; line-height: 1.35; }
.mx-col > .mx-c { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.mx-c .mx-g, .mx-c .mx-k { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: keep-all; line-height: 1.3; }
@supports not (grid-template-rows: subgrid) {
  .mx-col { grid-template-rows: 2.7em 1fr 1fr; grid-auto-rows: auto; }
  .mx-col > .mx-c { min-height: 104px; }
  .mx-cards.sm .mx-col > .mx-c { min-height: 88px; }
}
.mx-lb { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.mx-c { position: relative; border-radius: 14px; padding: 6px 2px 7px; background: linear-gradient(180deg, color-mix(in srgb, var(--ec) 30%, #17132a), color-mix(in srgb, var(--ec) 12%, #17132a)); border: 1px solid color-mix(in srgb, var(--ec) 55%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.mx-c b { display: block; font-family: var(--f-display); font-size: 30px; line-height: 1.15; color: var(--ec); text-shadow: 0 0 14px color-mix(in srgb, var(--ec) 45%, transparent); }
.mx-c .mx-g { display: block; font-size: 10.5px; color: var(--text); opacity: .85; min-height: 14px; }
.mx-c .mx-k { display: block; font-size: 10.5px; color: var(--muted); }
.mx-c.me { border: 2px solid var(--gold); box-shadow: 0 0 0 3px rgba(234,182,92,.18), 0 0 18px rgba(234,182,92,.35); }
.mx-c.me .mx-g { color: var(--gold-2); font-weight: 700; }
.mx-c.unk { --ec: #7a7198; opacity: .6; }
.mx-cards.sm .mx-c b { font-size: 22px; }
.mx-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; margin-top: 12px; }
.mx-box { background: rgba(16,13,28,.45); border-radius: 14px; padding: 8px 6px 4px; border: 1px solid var(--line); text-align: center; }
.mx-cap { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.mx-radar, .mx-tl svg { width: 100%; height: auto; display: block; }
.mx-note { font-size: 11.5px; color: var(--faint); margin: 8px 2px 0; line-height: 1.5; }
.mx-note i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin: 0 3px 0 6px; vertical-align: -1px; }
.mx-tl { margin: 10px 0; padding: 10px; border-radius: 16px; background: rgba(16,13,28,.45); border: 1px solid var(--line); }
.mx-live { margin: 12px 0 4px; transition: opacity .3s; }
.mx-live:empty { display: none; }
.story-h { font-family: var(--f-display); font-size: 19px; line-height: 1.45; color: var(--gold-2); margin: 2px 0 10px; }
.story p { line-height: 1.85; margin: 0 0 12px; }
.story .tip { background: rgba(95,195,166,.1); border: 1px solid rgba(95,195,166,.28); border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.story .tip b { color: var(--jade); }
.story .concern-q { border-left: 3px solid var(--gold); padding: 8px 12px; margin: 10px 0 14px; background: rgba(234,182,92,.08); border-radius: 0 12px 12px 0; font-size: 14px; }
.concern-net, .story .concern-net { font-size: 12.5px; color: var(--muted, #9aa3ad); margin: 6px 0 12px; line-height: 1.6; }
.cq-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.cq-chips button { border: 1px solid var(--line-2); background: var(--ink-2); color: var(--text); border-radius: 999px; padding: 7px 12px; font-size: 13px; }
.cq-chips button[aria-pressed="true"], .cq-chips button.on { border-color: var(--gold); color: var(--gold-2); background: rgba(234,182,92,.12); }
.deep-sep { margin: 22px 0 8px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
/* v2.4.5.6 명식 머리 그림: 이전 오행 바퀴, 가장자리 글자가 잘리지 않게 */
.mx-head .el-wheel { overflow: visible; display: block; width: calc(100% - 36px); max-width: 360px; margin: 6px auto 0; }

/* v2.4.7.2 고민 고르기 */
.cpk .cpk-h { display: block; margin: 14px 0 4px; font-weight: 600; font-size: 14px; color: var(--text); }
.cpk .cq-chips button { min-height: 36px; }
.cpk .cpk-note { margin: 6px 0 12px; font-size: 12.5px; line-height: 1.55; }
.cpk textarea { min-height: 76px; }
/* v2.4.7.5 타로 결과 맨 위 안전 한 줄 */
.tarot-net { margin: 10px 0 14px; padding: 10px 12px; border: 1px solid #e07a8f; border-radius: 10px; background: rgba(224,122,143,.10); font-size: 14px; line-height: 1.6; color: var(--text); }
.tarot-net b { color: #e07a8f; margin-right: 4px; }
.tt-chips { margin-bottom: 4px; }

/* v2.4.7.8 도움 페이지 번호: 눌러서 바로 걸기 */
.sc-help a.tel{color:inherit;font-weight:700;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.me-scene{background:rgba(255,214,120,.08);border-left:3px solid #d8a74a;padding:10px 12px;border-radius:8px;line-height:1.7}

/* v2.4.39 홈 상단 정렬: 숨김 뒤로가기 자리 제거, 좁은 화면 압축 */
.top-row { min-width: 0; overflow: hidden; }
@media (max-width: 430px) {
  .top-row { gap: 6px; }
  .top .icon-btn { width: 40px; min-width: 40px; height: 40px; }
  .top .btn-my { padding: 0 14px; height: 36px; margin-left: 0; }
}
/* v2.4.40 오늘의 운세 배너 · 누적 결제 수 · 내 사람들 */
.today-bn { display: grid; grid-template-columns: 40px 1fr 16px; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(214,176,92,.45); background: linear-gradient(120deg, rgba(214,176,92,.18), rgba(214,176,92,.04)); color: inherit; text-align: left; cursor: pointer; }
.today-bn .tb-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1a1408; font-size: 18px; animation: tbPulse 2.4s ease-in-out infinite; }
.today-bn .tb-tx { min-width: 0; } .today-bn b { display: block; font-size: 15px; } .today-bn .tb-tx span { font-size: 12.5px; opacity: .75; }
.today-bn .tb-go { font-size: 22px; opacity: .6; }
@keyframes tbPulse { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .today-bn .tb-ic { animation: none; } }
.paid-count { text-align: center; font-size: 13px; opacity: .8; margin: 18px 0 4px; } .paid-count b { color: var(--gold); }
.saved-h { font-size: 13px; font-weight: 700; opacity: .8; margin: 12px 0 6px; }
@media (max-width: 380px) { .today-bn { padding: 12px; gap: 10px; } .today-bn b { font-size: 14px; } }
/* v2.4.41 큰 운 표 · 여섯 달 달력 · 장 안의 소제목 */
.dtbl-wrap { overflow-x: auto; } .dtbl { width: 100%; border-collapse: collapse; font-size: 13px; } .dtbl th, .dtbl td { padding: 7px 6px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: center; } .dtbl th { font-weight: 700; opacity: .75; } .dtbl tr.now td { color: var(--gold); font-weight: 700; } .dtbl small { opacity: .6; }
.cal6 { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); } .cal6:last-child { border-bottom: 0; } .cal6 h4 { margin: 0 0 4px; font-size: 14px; } .cal6 p { margin: 2px 0; font-size: 13.5px; } .cal6 .g { color: var(--gold); margin-right: 4px; } .cal6 .c { color: #e59a8a; margin-right: 4px; }
h3.sub-ch { margin: 28px 0 10px; padding-top: 18px; border-top: 1px dashed rgba(234,182,92,.35); font-size: 16px; color: var(--gold-2); }
/* v2.4.42 결과 화면 찜·공유 떠 있는 버튼 · 무료 요약 · 추가 질문 */
.r-fab { position: fixed; right: max(14px, calc(50% - 226px)); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-direction: column; gap: 8px; }
.r-fab button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(234,182,92,.5); background: rgba(20,16,10,.88); color: var(--gold-2); display: grid; place-items: center; align-content: center; gap: 0; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.r-fab button b { font-size: 10.5px; font-weight: 700; margin-top: 2px; } .r-fab button.on { color: #ff8fa3; border-color: #ff8fa3; }
.free-sum p { margin: 6px 0; } .fq-box .chat-in { margin-top: 8px; }
@media (max-width: 380px) { .r-fab button { width: 46px; height: 46px; font-size: 16px; } }
/* v2.4.43 떠 있는 버튼 정리: 목차(아래) 위에 찜·공유를 간격 두고 쌓아요. 하단 탭·결제 버튼 위, 안전 영역 반영 */
.r-fab { bottom: calc(160px + env(safe-area-inset-bottom, 0px)); right: max(16px, calc(50% - 224px)); gap: 10px; z-index: 41; }
.r-fab button { width: 50px; height: 50px; }
.view.has-fab .chap, .view.has-fab .paywall { margin-right: 0; }
.to-top { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); width: 36px; height: 36px; opacity: .85; }
.view { padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px)); }
.today-bn { margin-top: 10px; }
@media (max-width: 380px) { .r-fab { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); } .r-fab button { width: 44px; height: 44px; } .toc-fab { width: 48px; height: 48px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chatq .say { margin-bottom: 12px; } .chatq .chat-me { margin: 0 0 10px; }
.r-prog { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: 3px; z-index: 50; background: rgba(255,255,255,.06); } .r-prog i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s linear; }
/* v2.4.44 장 머리 질문 · 한 줄 요약 상자 */
.ch-kicker { margin: 0 0 8px; font-size: 13px; color: var(--gold); font-weight: 700; letter-spacing: -.01em; }
.me-box { margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: rgba(234,182,92,.08); border: 1px solid rgba(234,182,92,.28); }
.me-box p { margin: 4px 0; } .me-box .me-k { font-size: 12px; opacity: .7; margin: 0; } .me-box b { font-size: 16px; color: var(--gold-2); } .me-box .me-t { font-size: 13px; opacity: .85; margin-top: 8px; }
.chap-body .me-t { margin-top: 16px; padding: 10px 14px; border-left: 3px solid var(--gold); background: rgba(234,182,92,.07); border-radius: 0 10px 10px 0; font-size: 14px; }
/* v2.4.45 번호 붙은 작은 카드 */
.mcards { display: grid; gap: 8px; margin: 0 0 18px; }
.mcard { position: relative; padding: 12px 14px 12px 44px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(234,182,92,.22); }
.mcard .mno { position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--gold); color: #1a1408; }
.mcard p { margin: 2px 0; font-size: 14.5px; line-height: 1.65; } .mcard .mh { font-size: 12px; opacity: .7; margin: 0 0 2px; } .mcard b { font-size: 16px; color: var(--gold-2); }
.chap-body { counter-reset: subc; } .chap-body h3.sub-ch { counter-increment: subc; } .chap-body h3.sub-ch::before { content: counter(subc, decimal) ". "; color: var(--gold); }

/* v2.4.49 홈: 오늘 카드 · 무료 배너 · 큰 숫자 */
.th-card{position:relative;margin-top:12px;padding:16px 16px 14px;border-radius:var(--r-l);background:linear-gradient(135deg,rgba(234,182,92,.16),rgba(120,90,200,.14));border:1px solid var(--line-2);min-height:150px}
.th-top{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}
.th-av{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:#241a08;font-weight:700;font-size:12px}
.th-line{margin:10px 96px 10px 0;font-size:15.5px;line-height:1.45;font-weight:600}
.th-sub{margin:0 0 10px;font-size:12.5px;color:var(--muted)}
.th-chips{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 10px;background:rgba(255,255,255,.06);border-radius:12px;padding:8px}
.th-chips span{display:flex;align-items:center;justify-content:center;gap:5px;font-size:12.5px;white-space:nowrap;overflow:hidden}
.th-chips i{font-style:normal;color:var(--gold)}.th-chips .sw{width:11px;height:11px;border-radius:50%;display:inline-block}
.th-score{position:absolute;right:14px;top:14px;width:78px;height:78px;border-radius:50%;display:grid;place-items:center;align-content:center;background:radial-gradient(circle,rgba(234,182,92,.3),rgba(234,182,92,.08));border:2px solid var(--gold)}
.th-score small{font-size:10px;color:var(--muted)}.th-score b{font-size:26px;line-height:1;color:var(--gold)}
.th-more{display:inline-block;padding:6px 12px;border-radius:999px;background:var(--gold);color:#241a08;font-size:12.5px;font-weight:700}
.fb-wrap{display:grid;gap:10px;margin-top:18px}
.fbn{position:relative;display:block;width:100%;height:150px;border-radius:var(--r-l);overflow:hidden;border:1px solid var(--line-2);text-align:left;background:linear-gradient(135deg,#2a2150,#4a2a55)}
.fbn img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 22%;opacity:.85}
.fbn em{position:absolute;right:10px;top:10px;font-style:normal;font-size:11px;font-weight:800;padding:3px 9px;border-radius:999px;background:var(--gold);color:#241a08}
.fbn-t{position:absolute;left:0;right:0;bottom:0;padding:26px 14px 12px;display:grid;gap:2px;background:linear-gradient(180deg,transparent,rgba(16,13,28,.9))}
.fbn-t b{font-size:15.5px}.fbn-t span{font-size:12.5px;color:var(--muted)}
.fbn.alt{background:linear-gradient(135deg,#1d3a5a,#4a2a6a 60%,#6a3a5a)}
.fbn-cards{position:absolute;left:50%;top:18px;transform:translateX(-50%);display:flex;gap:10px}
.fbn-cards i{width:46px;height:74px;border-radius:7px;background:linear-gradient(160deg,#f3d58a,#b8873a);border:2px solid rgba(255,255,255,.55);box-shadow:0 4px 12px rgba(0,0,0,.35)}
.fbn-cards i:nth-child(1){transform:rotate(-12deg) translateY(6px)}.fbn-cards i:nth-child(3){transform:rotate(12deg) translateY(6px)}
.big-count{margin:22px 0 4px;text-align:center;display:grid;gap:4px}
.big-count small{font-size:12.5px;color:var(--muted)}.big-count b{font-size:38px;letter-spacing:-.5px;font-weight:800}.big-count b span{font-size:16px;margin-left:3px}

.th-exp{margin:0 0 10px;font-size:11.5px;line-height:1.5;color:var(--muted)}
.share-total .share-num{display:block;text-align:center;font-size:38px;font-weight:800;letter-spacing:-.5px;color:var(--gold)}
.rv-empty{padding:18px 14px;border:1px dashed var(--line-2);border-radius:var(--r-l);font-size:13px;color:var(--muted);text-align:center}

/* v2.4.49.2 무료 타로 배너 카드: 테두리·장식·뒷면 무늬·그림 앞면 */
.fbn-cards i{position:relative;width:50px;height:82px;border-radius:7px;border:1.5px solid #e9c46a;box-shadow:0 4px 14px rgba(0,0,0,.45),inset 0 0 0 3px #2a1840,inset 0 0 0 4px rgba(233,196,106,.6);overflow:hidden}
.fbn-cards i.bk{background:radial-gradient(circle at 50% 50%,rgba(233,196,106,.35) 0 9px,transparent 10px),repeating-linear-gradient(45deg,rgba(233,196,106,.18) 0 1px,transparent 1px 7px),repeating-linear-gradient(-45deg,rgba(233,196,106,.18) 0 1px,transparent 1px 7px),linear-gradient(160deg,#3e1c4c,#1a1336)}
.fbn-cards i.bk b{position:absolute;inset:0;display:grid;place-items:center;color:#f3d58a;font-size:14px;text-shadow:0 0 6px rgba(243,213,138,.8)}
.fbn-cards i.bk::before,.fbn-cards i.bk::after{content:'';position:absolute;left:6px;right:6px;height:1px;background:rgba(233,196,106,.7)}
.fbn-cards i.bk::before{top:10px}.fbn-cards i.bk::after{bottom:10px}
.fbn-cards i.fc{width:56px;height:90px;transform:translateY(-4px);background:#2a1840;z-index:1}
.fbn-cards i.fc img{position:absolute;left:4px;right:4px;top:4px;width:calc(100% - 8px);height:calc(100% - 22px);object-fit:cover;border-radius:4px;border:1px solid rgba(233,196,106,.7)}
.fbn-cards i.fc s{position:absolute;left:0;right:0;bottom:2px;text-align:center;text-decoration:none;font-size:9.5px;font-weight:700;color:#f3d58a}

