/* 사주한입 휴대폰 화면: 모바일 웹 + 앱 (mobile.html) 전용 스타일
 * 공용 토큰·부품은 assets/tokens.css. 구형 웹뷰 규칙은 npm run check가 검사해요 (기준: 크롬 66).
 */
/* ───────── 페이지 전용 스타일 (mobile.html) ───────── */
html { font-size: 16px; font-size: clamp(14px, 4.1vw, 17px); height: 100%; } /* 구형 웹뷰: 16px → legacy.js가 같은 식으로 계산 */
/* 글자 크게 보기 (앱 마이 > 화면 > 글자 크기): 기준 글자를 115%로. 모든 크기가 rem이라 함께 커져요 (legacy.js도 같은 배율) */
html.text-lg { font-size: 18.4px; font-size: clamp(16.1px, 4.715vw, 19.55px); }
body { height: 100%; overflow: hidden; background: var(--ink-0); }
#app {
  position: relative; height: 100vh; height: 100dvh; max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column; overflow: hidden; background: var(--ink); isolation: isolate;
  padding-top: env(safe-area-inset-top);
}
@media (min-width: 481px) { #app { box-shadow: 0 0 0 1px var(--line), var(--shadow-xl); } }
[hidden] { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes scrInF { from { opacity: 0; transform: translateX(1.75rem); } to { opacity: 1; transform: none; } }
@keyframes scrInB { from { opacity: 0; transform: translateX(-1.75rem); } to { opacity: 1; transform: none; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-9deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes burst { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; } }
@keyframes floatUp { 0% { transform: translateY(.5rem); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-2.5rem); opacity: 0; } }
@keyframes printOut { from { transform: translateY(-101%); } to { transform: none; } }
@keyframes dropIn { 0% { transform: translateY(-14rem) rotate(-16deg) scale(1.2); opacity: 0; } 55% { opacity: 1; } 78% { transform: translateY(.4rem) rotate(-2deg) scale(1); } 100% { transform: translateY(0) rotate(-4deg) scale(1); opacity: 1; } }
@keyframes scanLine { 0% { top: 8%; } 50% { top: 88%; } 100% { top: 8%; } }
@keyframes dash { to { stroke-dashoffset: -40; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), .5); } 50% { box-shadow: 0 0 0 .5rem rgba(var(--gold-rgb), 0); } }
@keyframes ringPulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* ── 크롬: 브라우저 주소창 / 탭바 ── */
.urlbar { flex: none; display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1-5) var(--sp-3) var(--sp-2); background: var(--ink-0); border-bottom: 1px solid var(--line); z-index: var(--z-bar); }
.url-pill { flex: 1; height: 2.25rem; border-radius: var(--r-md); background: rgba(var(--white-rgb), .08); display: flex; align-items: center; justify-content: center; gap: var(--sp-1-5); font-size: var(--fs-13); color: var(--text-2); letter-spacing: var(--ls-wide); position: relative; }
.url-pill .ic { width: .85rem; height: .85rem; }
.url-pill .url-re { position: absolute; right: .625rem; color: var(--text-3); }
.url-pill .url-aa { position: absolute; left: .75rem; font-size: var(--fs-12); font-weight: 700; color: var(--text-3); }
.tabbar { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(var(--ink-rgb), 1); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: var(--z-bar); }
.tab { min-height: 3.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1); font-size: var(--fs-11); color: var(--text-3); font-weight: 500; transition: color var(--dur-2); }
.tab .ic { width: 1.45rem; height: 1.45rem; transition: transform var(--dur-2) var(--ease); }
.tab.on { color: var(--text); font-weight: 700; }
.tab.on .ic { color: var(--seal); transform: translateY(-1px); }
.tab:active .ic { transform: scale(.88); }

/* ── 스테이지 / 화면 ── */
#stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.screen { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; background: var(--ink); }
.screen::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 26rem; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 55% at 12% 0%, rgba(var(--seal-rgb), .12), transparent 70%), radial-gradient(55% 50% at 96% 4%, rgba(var(--b-rgb), .1), transparent 70%); }
.screen.in-fwd { animation: scrInF .34s var(--ease) both; }
.screen.in-back { animation: scrInB .34s var(--ease) both; }
.screen.in-fade { animation: fadeIn .28s ease both; }
.screen.out { animation: fadeOut .2s ease both; pointer-events: none; }
.scroll { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.pad { padding-left: var(--sp-5); padding-right: var(--sp-5); }
.spacer { height: 2.5rem; }
.cta-spacer { height: 9rem; }

/* ── 헤더 ── */
.appbar { position: relative; z-index: 3; flex: none; height: 3.5rem; display: grid; grid-template-columns: 3.25rem 1fr 3.25rem; align-items: center; padding: 0 var(--sp-1-5); }
.appbar-title { text-align: center; font-weight: 700; font-size: var(--fs-17); letter-spacing: var(--ls-snug); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-r { display: flex; justify-content: flex-end; }
.iconbtn { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; color: var(--text); transition: background var(--dur-1); position: relative; }
.iconbtn:active { background: rgba(var(--white-rgb), .08); }
.iconbtn .ic { width: 1.5rem; height: 1.5rem; }
.iconbtn .dot { position: absolute; top: .6rem; right: .65rem; width: .4rem; height: .4rem; border-radius: 50%; background: var(--seal); }
.bighead { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-4-5) var(--sp-5) var(--sp-2); }
.bighead h1 { margin: 0; font-size: var(--fs-24); font-weight: 900; letter-spacing: var(--ls-display); }
.bighead p { margin: var(--sp-1) 0 0; color: var(--text-3); font-size: var(--fs-14); }
.brandmark { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 900; font-size: var(--fs-18); letter-spacing: var(--ls-title); }
.brandmark .seal { --size: 1.75rem; border-radius: 28%; }

/* ── 섹션 / 공통 ── */
.sec { margin-top: var(--sp-8); }
.sec-h { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--sp-5); margin-bottom: var(--sp-3); gap: var(--sp-2); }
.sec-h h2 { margin: 0; font-size: var(--fs-18); font-weight: 800; letter-spacing: var(--ls-title); display: flex; align-items: center; gap: var(--sp-1-5); }
.sec-h .more { font-size: var(--fs-13); color: var(--text-3); display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--sp-0-5); min-height: 2.75rem; min-width: 2.75rem; padding-left: var(--sp-2); }
.sec-h .more .ic { width: 1rem; height: 1rem; }
.card.p { padding: var(--sp-5); }
.card.tap { transition: transform var(--dur-1) var(--ease), background var(--dur-2); text-align: left; display: block; width: 100%; }
.card.tap:active { transform: scale(.985); background: var(--night-2); }
.small { font-size: var(--fs-13); }
.tiny { font-size: var(--fs-12); }
.b { font-weight: 700; }
.row { display: flex; align-items: center; gap: var(--sp-3); }
.grow { flex: 1; min-width: 0; }
.heart { color: var(--seal); }
.heart.amp { color: var(--text-3); } /* 연인이 아닌 사이는 하트 대신 & */
.num { font-variant-numeric: tabular-nums; }
.chip .ic { width: .9rem; height: .9rem; }
.chip-ok { background: rgba(var(--ok-rgb), .16); border-color: rgba(var(--ok-rgb), .4); color: var(--ok-soft); }
.chip-sm { padding: var(--sp-1) var(--sp-2); font-size: var(--fs-11); font-weight: 700; }
.chip-blue { background: rgba(var(--b-rgb), .16); border-color: rgba(var(--b-rgb), .4); color: var(--b-soft); }
.btn .ic { width: 1.25rem; height: 1.25rem; }
.btn-sm { min-height: 2.75rem; padding: 0 var(--sp-4); font-size: var(--fs-14); }
.btn-md { min-height: 3.125rem; font-size: var(--fs-16); }
.btn-kakao { background: var(--brand-kakao); color: var(--brand-kakao-ink); }
.notice { display: flex; gap: var(--sp-2-5); align-items: flex-start; padding: var(--sp-3-5) var(--sp-4); border-radius: var(--r-md); background: rgba(var(--white-rgb), .04); border: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-13); line-height: var(--lh-relaxed); }
.notice .ic { width: 1.1rem; height: 1.1rem; margin-top: var(--sp-0-5); color: var(--text-3); }
.notice b { color: var(--text); }
.divider { height: .5rem; background: rgba(var(--black-rgb), .25); margin: var(--sp-8) 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* 도장 가독성: 밝은 오행 색 위 글자는 어둡게 */
.seal[data-el="metal"]:not(.outline), .seal[data-el="earth"]:not(.outline) { color: var(--night-2); }
.seal.sm { --size: 2.25rem; border-radius: 26%; }
.seal-stack { display: flex; }
.seal-stack .seal:nth-child(2) { margin-left: calc(var(--sp-2-5) * -1); transform: rotate(8deg); }
.seal-stack .seal:nth-child(1) { transform: rotate(-6deg); }

/* 엽전 (사각 구멍 동전) */
.yeop { --s: 1.25rem; width: var(--s); height: var(--s); border-radius: 50%; flex: none; position: relative; display: inline-block;
  background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold) 45%, var(--gold-2) 100%); box-shadow: inset 0 0 0 calc(var(--s) * .07) rgba(var(--coin-ring-rgb), .4), var(--shadow-xs); }
.yeop::after { content: ''; position: absolute; top: 36%; right: 36%; bottom: 36%; left: 36%; border-radius: 12%; background: rgba(var(--coin-shadow-rgb), .85); box-shadow: 0 0 0 calc(var(--s) * .05) rgba(var(--coin-hi-rgb), .5); }

/* 점수 링 래퍼 (링 자체가 mask라 숫자는 형제 요소로 겹침) */
.ringbox { position: relative; width: var(--size); height: var(--size); flex: none; }
.ringbox .ring { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.ringbox-in { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: var(--lh-none); }
.ringbox-in b { font-weight: 900; font-size: calc(var(--size) * .31); letter-spacing: var(--ls-display); font-variant-numeric: tabular-nums; }
.ringbox-in small { font-size: calc(var(--size) * .095); color: var(--text-2); margin-top: .35em; font-weight: 500; }
.ringbox.glow::before { content: ''; position: absolute; top: 12%; right: 12%; bottom: 12%; left: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--seal-2-rgb), .2), transparent 70%); }

/* 별점 */
.stars { display: inline-flex; gap: var(--sp-0-5); color: var(--gold); }
.stars .ic { width: .95rem; height: .95rem; }
.stars svg.on { fill: currentColor; }
.stars svg.off { color: rgba(var(--white-rgb), .16); }

/* 스위치 */
.switch { position: relative; width: 3.125rem; height: 1.875rem; border-radius: var(--r-pill); background: rgba(var(--white-rgb), .16); transition: background var(--dur-2); flex: none; }
.switch::after { content: ''; position: absolute; top: .1875rem; left: .1875rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; transition: transform var(--dur-2) var(--ease); box-shadow: var(--shadow-xs); }
.switch.on { background: var(--seal); }
.switch.on::after { transform: translateX(1.25rem); }

/* 세그먼트 */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(var(--white-rgb), .06); border-radius: var(--r-pill); padding: var(--sp-1); gap: var(--sp-1); }
.seg button { min-height: 2.75rem; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-15); color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1); transition: background var(--dur-2), color var(--dur-2); }
.seg button .ic { width: .95rem; height: .95rem; }
.seg button.on { background: var(--paper); color: var(--paper-ink); box-shadow: var(--shadow-sm); }

/* 막대 행 */
.subbars { display: grid; gap: var(--sp-3); }
.subbar { display: grid; grid-template-columns: 5.25rem 1fr 2rem; align-items: center; gap: var(--sp-3); font-size: var(--fs-14); }
.subbar span:first-child { color: var(--text-2); white-space: nowrap; }
.subbar b { text-align: right; font-variant-numeric: tabular-nums; }

/* 리스트 행 */
.list { display: grid; }
.li { display: flex; align-items: center; gap: var(--sp-3-5); min-height: 3.5rem; padding: var(--sp-2-5) 0; width: 100%; text-align: left; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li > .ic { color: var(--text-3); width: 1.1rem; height: 1.1rem; }
.li-ic { width: 2.5rem; height: 2.5rem; border-radius: var(--r-md); display: grid; place-items: center; background: rgba(var(--white-rgb), .06); flex: none; color: var(--text-2); }
.li-ic .ic { width: 1.25rem; height: 1.25rem; }
.li-t { font-weight: 600; font-size: var(--fs-15); }
.li-s { font-size: var(--fs-13); color: var(--text-3); margin-top: var(--sp-0-5); line-height: var(--lh-normal); }
button.li:active { opacity: .7; }

/* 오버레이 / 시트 */
.overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: var(--z-overlay); display: flex; align-items: flex-end; justify-content: center; background: rgba(var(--black-rgb), .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .25s ease both; }
.overlay.center { align-items: center; padding: var(--sp-5); }
.overlay.closing { animation: fadeOut .22s ease both; }
.sheet { width: 100%; max-height: 92%; overflow-y: auto; background: var(--ink-2); border-radius: var(--r-lg) var(--r-lg) 0 0; border-top: 1px solid var(--line-strong); padding: var(--sp-2-5) var(--sp-5) var(--sp-5); padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom)); animation: sheetUp .4s var(--ease) both; scrollbar-width: none; }
.overlay.closing .sheet { animation: sheetDown .22s ease both; }
[role="dialog"]:focus { outline: none; } /* 시트 자체에는 테두리 없이 (안의 버튼은 :focus-visible) */
.sheet-grip { width: 2.5rem; height: .3rem; border-radius: var(--r-pill); background: rgba(var(--white-rgb), .2); margin: 0 auto var(--sp-5); }
.sheet h3 { margin: 0; font-size: var(--fs-20); font-weight: 800; letter-spacing: var(--ls-title); }
.sheet-x { position: absolute; top: .5rem; right: .5rem; }
.modal { position: relative; width: 100%; max-width: 24rem; background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: var(--r-xl); padding: var(--sp-7) var(--sp-6) var(--sp-6); text-align: center; animation: pop .45s var(--ease) both; }
.overlay.closing .modal { animation: fadeOut .2s ease both; }
.toast { max-width: calc(100vw - 2.5rem); max-width: calc(min(100vw, 480px) - 2.5rem); white-space: normal; text-align: center; line-height: var(--lh-normal); }
.toast.lift { bottom: 5.25rem; bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
.toast.lift2 { bottom: 7.5rem; bottom: calc(7.5rem + env(safe-area-inset-bottom)); }

/* 하단 고정 CTA */
.cta-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: var(--sp-8) var(--sp-5) var(--sp-4); padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0) 0, rgba(var(--ink-rgb), .9) var(--sp-5), var(--ink) var(--sp-8)); pointer-events: none; } /* 위쪽 여백만 번지고, 글자 자리부터는 불투명 (결제 금액 줄이 아래 내용과 겹치지 않게) */
.cta-bar > * { pointer-events: auto; }
.cta-note { text-align: center; font-size: var(--fs-12); color: var(--text-3); margin-top: var(--sp-2); }
.cta-note b { color: var(--gold); font-weight: 700; }

/* 종이(영수증) 그림자: receipt는 mask라 box-shadow가 잘려서 래퍼에 drop-shadow */
.paper-wrap { filter: drop-shadow(0 1.1rem 1.6rem rgba(var(--black-rgb), .5)) drop-shadow(0 .2rem .5rem rgba(var(--black-rgb), .25)); }

/* ── 인덱스 ── */
.idx-hero { padding: var(--sp-8) var(--sp-5) var(--sp-5); }
.idx-hero h1 { margin: var(--sp-4) 0 var(--sp-1-5); font-size: var(--fs-24); font-weight: 900; letter-spacing: var(--ls-title); line-height: var(--lh-snug); }
.idx-hero p { margin: 0; color: var(--text-2); font-size: var(--fs-15); }
.idx-data { margin: 0 var(--sp-5); padding: var(--sp-4) var(--sp-4-5); display: flex; align-items: center; gap: var(--sp-3-5); }
.idx-data .grow b { display: block; font-size: var(--fs-16); }
.idx-data .grow span { font-size: var(--fs-13); color: var(--text-3); }
.idx-state { margin: var(--sp-3) var(--sp-5) 0; padding: var(--sp-4) var(--sp-4-5); display: grid; gap: var(--sp-3); }
.idx-state label { font-size: var(--fs-13); color: var(--text-3); font-weight: 700; display: block; margin-bottom: var(--sp-1-5); }
.idx-state .seg button { font-size: var(--fs-13); min-height: 2.75rem; }
.idx-flows { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2-5); padding: 0 var(--sp-5); }
.idx-flow { padding: var(--sp-4); border-radius: var(--r-lg); text-align: left; display: grid; gap: var(--sp-2); min-height: 7.5rem; align-content: space-between; transition: transform var(--dur-1) var(--ease); }
.idx-flow:active { transform: scale(.97); }
.idx-flow.f1 { background: linear-gradient(150deg, rgba(var(--seal-rgb), .3), rgba(var(--seal-2-rgb), .08)); border: 1px solid rgba(var(--seal-rgb), .4); }
.idx-flow.f2 { background: linear-gradient(150deg, rgba(var(--gold-rgb), .25), rgba(var(--gold-rgb), .06)); border: 1px solid rgba(var(--gold-rgb), .3); }
.idx-flow b { font-size: var(--fs-16); }
.idx-flow small { color: var(--text-2); font-size: var(--fs-12); line-height: var(--lh-normal); }
.idx-flow .ic { width: 1.5rem; height: 1.5rem; }
.idx-group { margin: 0 var(--sp-5); padding: var(--sp-1) var(--sp-4); }
.idx-row { display: flex; align-items: center; gap: var(--sp-3-5); width: 100%; min-height: 3.75rem; padding: var(--sp-2-5) 0; text-align: left; border-bottom: 1px solid var(--line); }
.idx-row:last-child { border-bottom: 0; }
.idx-row:active { opacity: .65; }
.idx-id { font-family: var(--f-mono); font-size: var(--fs-12); font-weight: 700; color: var(--gold); background: rgba(var(--gold-rgb), .1); border-radius: var(--r-sm); padding: var(--sp-1) var(--sp-2); flex: none; min-width: 3.1rem; text-align: center; }
.idx-row.web .idx-id { color: var(--b-soft); background: rgba(var(--b-rgb), .12); }
.idx-main { flex: 1; min-width: 0; display: grid; }
.idx-main b { font-size: var(--fs-15); font-weight: 700; }
.idx-main small { font-size: var(--fs-13); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idx-row > .ic { color: var(--text-3); width: 1.1rem; }

/* ── W-01 결제 ── */
.wtop { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5) 0; }
.pay-hero { padding: var(--sp-6) var(--sp-5) 0; text-align: center; display: grid; justify-items: center; gap: var(--sp-2); }
.pay-hero .seal-stack { margin-bottom: var(--sp-2); }
.pay-hero .seal { --size: 3.25rem; }
.pay-names { font-size: var(--fs-28); font-weight: 700; letter-spacing: var(--ls-title); line-height: var(--lh-tight); }
.pay-sub { color: var(--text-2); font-size: var(--fs-15); }
.pay-score { display: inline-flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-1); padding: var(--sp-2) var(--sp-3-5); border-radius: var(--r-pill); background: rgba(var(--white-rgb), .06); border: 1px solid var(--line); font-size: var(--fs-14); color: var(--text-2); }
.pay-score b { color: var(--text); font-size: var(--fs-16); }
.prods { display: grid; gap: var(--sp-3); padding: 0 var(--sp-5); }
.prod { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-3-5); align-items: center; width: 100%; text-align: left; padding: var(--sp-5) var(--sp-4-5); border-radius: var(--r-lg); background: var(--night); border: 1.5px solid var(--line); transition: border-color var(--dur-2), background var(--dur-2), transform var(--dur-1) var(--ease); }
.prod:active { transform: scale(.985); }
.prod.on { border-color: var(--gold); background: linear-gradient(160deg, rgba(var(--gold-rgb), .12), rgba(var(--gold-rgb), .04) 60%), var(--night); box-shadow: 0 .75rem 2rem rgba(var(--gold-rgb), .08); }
.prod-radio { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: transparent; transition: all var(--dur-2); }
.prod-radio .ic { width: .95rem; height: .95rem; stroke-width: 3; }
.prod.on .prod-radio { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.prod-title { display: block; font-weight: 800; font-size: var(--fs-17); letter-spacing: var(--ls-title); }
.prod-desc { display: block; font-size: var(--fs-13); color: var(--text-3); margin-top: var(--sp-1); line-height: var(--lh-normal); }
.prod-price { display: grid; justify-items: end; gap: var(--sp-0-5); }
.prod-price b { font-size: var(--fs-18); font-weight: 900; letter-spacing: var(--ls-title); }
.prod-price s { font-size: var(--fs-12); color: var(--text-3); }
.prod-price small { font-size: var(--fs-12); color: var(--gold); font-weight: 700; }
.prod-badge { position: absolute; top: -.7rem; left: 1rem; padding: var(--sp-1) var(--sp-2-5); border-radius: var(--r-pill); font-size: var(--fs-11); font-weight: 900; background: linear-gradient(135deg, var(--cta), var(--cta-2)); color: #fff; box-shadow: 0 .25rem .75rem rgba(var(--seal-rgb), .4); }
.prod-off { display: inline-block; margin-left: var(--sp-1-5); font-size: var(--fs-11); font-weight: 900; color: var(--seal-2); vertical-align: .1rem; }
.incl { margin: 0 var(--sp-5); padding: var(--sp-4-5) var(--sp-4-5) var(--sp-2); }
.incl-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-2); }
.incl-h b { font-size: var(--fs-15); }
.incl ol { list-style: none; margin: 0; padding: 0; }
.incl li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; font-size: var(--fs-15); border-top: 1px solid var(--line); }
.incl li:first-child { border-top: 0; }
.incl-no { font-family: var(--f-serif); font-weight: 700; color: var(--gold); width: 1.5rem; flex: none; font-size: var(--fs-14); }
.incl li.plus { color: var(--gold); font-weight: 700; }
.incl li.plus .incl-no { color: var(--gold); }
.incl li .ic { width: 1rem; height: 1rem; margin-left: auto; color: var(--ok); }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); padding: 0 var(--sp-5); }
.method { position: relative; min-height: 3.5rem; border-radius: var(--r-md); font-weight: 900; font-size: var(--fs-15); letter-spacing: var(--ls-title); transition: opacity var(--dur-2), transform var(--dur-1) var(--ease), box-shadow var(--dur-2); }
.method:active { transform: scale(.96); }
.method.kakao { background: var(--brand-kakao); color: var(--brand-kakao-ink); }
.method.toss { background: var(--brand-toss); color: #fff; }
.method.naver { background: var(--brand-naver); color: #fff; }
.methods.picked .method:not(.on) { opacity: .4; }
.method.on { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--text); }
.method-check { position: absolute; top: -.45rem; right: -.45rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--text); color: var(--ink); display: none; place-items: center; }
.method-check .ic { width: .8rem; height: .8rem; stroke-width: 3; }
.method.on .method-check { display: grid; }
.agree { display: flex; align-items: center; gap: var(--sp-3); width: 100%; text-align: left; min-height: 3.5rem; padding: var(--sp-2) var(--sp-5); }
.agree-box { width: 1.5rem; height: 1.5rem; border-radius: var(--r-sm); border: 2px solid var(--line-strong); display: grid; place-items: center; color: transparent; flex: none; transition: all var(--dur-2); }
.agree-box .ic { width: .95rem; height: .95rem; stroke-width: 3; }
.agree.on .agree-box { background: var(--seal); border-color: var(--seal); color: #fff; }
.agree-t { flex: 1; font-size: var(--fs-15); }
.agree-t em { font-style: normal; color: var(--seal-2); font-weight: 700; margin-right: var(--sp-1); }
.agree-more { font-size: var(--fs-13); color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
.legal { padding: 0 var(--sp-5); font-size: var(--fs-12); color: var(--text-3); line-height: var(--lh-relaxed); }
.pay-sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--sp-2-5); font-size: var(--fs-14); color: var(--text-2); }
.pay-sum b { color: var(--text); font-size: var(--fs-16); }
.pay-sum .per { color: var(--gold); font-weight: 700; font-size: var(--fs-13); }
/* 결제 진행 시트 */
.paying { text-align: center; padding: var(--sp-4) 0 var(--sp-2); min-height: 17rem; display: grid; align-content: center; justify-items: center; gap: var(--sp-3); }
.paying-method { padding: var(--sp-1-5) var(--sp-3-5); border-radius: var(--r-pill); font-weight: 900; font-size: var(--fs-14); }
.spinner { width: 3.5rem; height: 3.5rem; border-radius: 50%; border: .3rem solid rgba(var(--white-rgb), .1); border-top-color: var(--gold); animation: spin .8s linear infinite; margin: var(--sp-3) 0 var(--sp-1); }
.paying-t { font-size: var(--fs-18); font-weight: 800; }
.paying-s { font-size: var(--fs-14); color: var(--text-3); }
.done-check { position: relative; width: 5.5rem; height: 5.5rem; margin: var(--sp-1) 0 var(--sp-2); }
.done-check svg { width: 100%; height: 100%; }
.done-check circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .55s var(--ease) forwards; }
.done-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s .45s var(--ease) forwards; }
.done-check i { position: absolute; left: 50%; top: 50%; width: .45rem; height: .45rem; margin: calc(var(--sp-1) * -1); border-radius: 50%; background: var(--gold); animation: burst .9s .5s var(--ease) both; }
.done-t { font-size: var(--fs-24); font-weight: 900; letter-spacing: var(--ls-title); }
.done-s { color: var(--text-2); display: flex; align-items: center; gap: var(--sp-1-5); font-size: var(--fs-15); }
.done-s .ic { width: 1.1rem; height: 1.1rem; color: var(--gold); }

/* ── W-02 심층 (웹) ── */
.expire { flex: none; position: relative; z-index: 4; display: flex; align-items: center; gap: var(--sp-2-5); padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-5); background: linear-gradient(90deg, rgba(var(--gold-rgb), .2), rgba(var(--seal-rgb), .16)); border-bottom: 1px solid rgba(var(--gold-rgb), .25); font-size: var(--fs-13); color: var(--text); }
.expire > .ic { width: 1.05rem; height: 1.05rem; color: var(--gold); }
.expire b { font-family: var(--f-mono); font-weight: 700; color: var(--gold); font-size: var(--fs-14); letter-spacing: var(--ls-wide); }
.expire .btn { min-height: 2.75rem; padding: 0 var(--sp-3-5); font-size: var(--fs-13); margin-left: auto; }
.dhero { padding: var(--sp-7) var(--sp-5) var(--sp-2); text-align: center; display: grid; justify-items: center; gap: var(--sp-2-5); }
.dhero-names { font-size: var(--fs-24); font-weight: 700; }
.dhero-type { font-size: var(--fs-22); font-weight: 700; line-height: var(--lh-snug); margin-top: var(--sp-1); }
.dhero-line { color: var(--text-2); font-size: var(--fs-15); margin: 0; }
.toc { display: flex; gap: var(--sp-2); overflow-x: auto; padding: 0 var(--sp-5) var(--sp-1); scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc button { flex: none; min-height: 2.75rem; padding: 0 var(--sp-3-5); border-radius: var(--r-pill); background: rgba(var(--white-rgb), .06); border: 1px solid var(--line); font-size: var(--fs-13); color: var(--text-2); display: inline-flex; align-items: center; gap: var(--sp-1-5); }
.toc button span { font-family: var(--f-serif); color: var(--gold); font-weight: 700; }
.deep-body { padding: 0 var(--sp-5); }
.newyear { margin: var(--sp-5) var(--sp-5) 0; padding: var(--sp-5) var(--sp-5) var(--sp-5); background: linear-gradient(160deg, rgba(var(--gold-rgb), .16), rgba(var(--gold-rgb), .04) 55%), var(--night); border-color: rgba(var(--gold-rgb), .3); }
.newyear h3 { margin: var(--sp-3) 0 var(--sp-1-5); font-size: var(--fs-22); font-weight: 700; line-height: var(--lh-snug); }
.newyear p { margin: 0 0 var(--sp-4); color: var(--text-2); font-size: var(--fs-14); line-height: var(--lh-relaxed); }
.ny-tickets { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.ny-ticket { position: relative; padding: var(--sp-3-5) var(--sp-3-5) var(--sp-3); border-radius: var(--r-md); background: var(--paper); color: var(--paper-ink); }
.ny-ticket::before, .ny-ticket::after { content: ''; position: absolute; top: 50%; width: .9rem; height: .9rem; margin-top: calc(var(--sp-2) * -1); border-radius: 50%; background: var(--night-2); }
.ny-ticket::before { left: -.45rem; } .ny-ticket::after { right: -.45rem; }
.ny-ticket small { display: block; font-size: var(--fs-12); color: var(--paper-ink-2); font-weight: 700; letter-spacing: var(--ls-wide); }
.ny-ticket b { display: block; font-family: var(--f-serif); font-size: var(--fs-17); margin-top: var(--sp-0-5); }
button.ny-ticket { display: block; width: 100%; min-height: 4.5rem; text-align: left; }
.ny-ticket .ny-go { position: absolute; right: .6rem; bottom: .6rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper-ink); color: var(--paper); }
.ny-ticket .ny-go .ic { width: .9rem; height: .9rem; }
.ny-ticket .lock { position: absolute; right: .6rem; bottom: .6rem; width: 1.5rem; height: 1.5rem; background: rgba(var(--paper-ink-rgb),.08); color: var(--paper-ink); }

/* ── W-03 저장 랜딩 ── */
.save-hero { padding: var(--sp-7) var(--sp-5) var(--sp-1); text-align: center; }
.save-hero h1 { margin: var(--sp-3-5) 0 var(--sp-2); font-size: var(--fs-24); line-height: var(--lh-snug); font-weight: 700; letter-spacing: var(--ls-title); }
.save-hero p { margin: 0; color: var(--text-2); font-size: var(--fs-15); }
.printer { margin-top: var(--sp-6); }
.printer-slot { height: .875rem; margin: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--ink-0); box-shadow: inset 0 .2rem .35rem rgba(var(--black-rgb), .9), 0 1px 0 rgba(var(--white-rgb), .08); position: relative; z-index: 2; }
.printer-out { overflow: hidden; margin-top: calc(var(--sp-2) * -1); padding: 0 var(--sp-6) var(--sp-9); }
.printer-out .paper-wrap { animation: printOut 1.7s .25s cubic-bezier(.25, .75, .3, 1) both; }
.share-row { display: grid; grid-template-columns: 1fr 3.125rem; gap: var(--sp-2); padding: 0 var(--sp-5); }
.share-row .btn.sq { padding: 0; }
.share-row .btn { min-height: 3.125rem; font-size: var(--fs-15); padding: 0 var(--sp-3); }
.exp-pill { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); margin: var(--sp-4) var(--sp-5) 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-pill); background: rgba(var(--gold-rgb), .1); border: 1px solid rgba(var(--gold-rgb), .25); color: var(--gold); font-size: var(--fs-13); font-weight: 500; text-align: center; }
.exp-pill .ic { width: 1rem; height: 1rem; }
/* 앱 출시 알림: 저장 화면에서는 주 버튼(이미지 저장) 대신 아래 작은 줄로 */
.notify-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: rgba(var(--white-rgb), .04); border: 1px solid var(--line); }
.notify-row > .ic { width: 1.25rem; height: 1.25rem; color: var(--gold); flex: none; }
.notify-row span { flex: 1; font-size: var(--fs-14); color: var(--text-2); line-height: var(--lh-normal); }
.notify-row .btn { flex: none; min-height: 2.75rem; padding: 0 var(--sp-3-5); font-size: var(--fs-14); }
.rep { display: grid; gap: var(--sp-3); padding: 0 var(--sp-5); }
.rep-score .rep-top { display: flex; gap: var(--sp-4-5); align-items: center; }
.rep-type { font-size: var(--fs-20); font-weight: 700; line-height: var(--lh-snug); margin: var(--sp-1) 0 var(--sp-1); letter-spacing: var(--ls-snug); }
.rep-line { margin: 0; font-size: var(--fs-13); color: var(--text-2); line-height: var(--lh-normal); }
.kw-row { display: flex; flex-wrap: wrap; gap: var(--sp-1-5); margin-top: var(--sp-4); }
.kw-row .chip { font-size: var(--fs-13); padding: var(--sp-1) var(--sp-3); color: var(--seal-soft); background: rgba(var(--seal-rgb), .1); border-color: rgba(var(--seal-rgb), .25); }
.rep-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 var(--sp-4); }
.rep-h h3 { margin: 0; font-size: var(--fs-16); font-weight: 800; letter-spacing: var(--ls-title); }
.rep-h small { color: var(--text-3); font-size: var(--fs-12); }
.rep-good p { margin: 0; color: var(--text-2); font-size: var(--fs-15); line-height: var(--lh-loose); }
.rep-good .seal { --size: 2.25rem; font-size: var(--fs-18); }
.menu-tip { display: flex; gap: var(--sp-3); align-items: center; margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-3-5); border-radius: var(--r-md); background: rgba(var(--el-rgb), .12); font-size: var(--fs-14); line-height: var(--lh-normal); }
.menu-tip .seal { --size: 2rem; font-size: var(--fs-16); flex: none; }
/* 궁합 대화 카드 · 다음에 만나기 좋은 날 (간단 보고서 · 무료) */
.talk-why { margin: calc(var(--sp-2) * -1) 0 var(--sp-3-5); color: var(--text-2); font-size: var(--fs-13); line-height: var(--lh-relaxed); }
.talk { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.talk li { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) var(--sp-3-5); border-radius: var(--r-md); background: rgba(var(--white-rgb), .04); border: 1px solid var(--line); }
.talk-no { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-13); font-weight: 900; color: var(--seal-2); background: rgba(var(--seal-rgb), .12); }
.talk li > div { flex: 1; min-width: 0; }
.talk p { margin: var(--sp-0-5) 0 0; font-size: var(--fs-15); font-weight: 700; line-height: var(--lh-normal); }
.talk-el { display: inline-block; margin-top: var(--sp-2); font-size: var(--fs-12); font-weight: 700; padding: var(--sp-0-5) var(--sp-2); border-radius: var(--r-pill); color: var(--el); background: rgba(var(--el-rgb), .12); border: 1px solid rgba(var(--el-rgb), .4); }
.meet-list { display: grid; gap: var(--sp-2); }
.meet-row { display: flex; gap: var(--sp-3-5); align-items: center; padding: var(--sp-3) var(--sp-3-5); border-radius: var(--r-md); background: rgba(var(--white-rgb), .04); border: 1px solid var(--line); }
.meet-row.lucky { border-color: rgba(var(--gold-rgb), .5); background: linear-gradient(160deg, rgba(var(--gold-rgb), .12), rgba(var(--white-rgb), .04)); }
.meet-d { flex: none; width: 3.5rem; text-align: center; display: grid; }
.meet-d b { font-size: var(--fs-18); font-weight: 900; font-variant-numeric: tabular-nums; }
.meet-d small { font-size: var(--fs-12); color: var(--text-3); }
.meet-row p { margin: 0; font-size: var(--fs-13); color: var(--text-2); line-height: var(--lh-normal); }
.meet-tag { display: inline-block; margin-bottom: var(--sp-1); font-size: var(--fs-12); font-weight: 700; color: var(--gold); padding: 0 var(--sp-2); border-radius: var(--r-pill); border: 1px solid rgba(var(--gold-rgb), .4); }
.meet-cal { margin-top: var(--sp-3-5); }
/* W-05 우리 테이블 궁합 저장 */
.g-map { display: grid; justify-items: center; text-align: center; gap: var(--sp-1); }
.g-score { display: flex; align-items: baseline; gap: var(--sp-1); }
.g-score b { font-size: var(--fs-48); font-weight: 900; line-height: var(--lh-none); letter-spacing: var(--ls-display); }
.g-score small { font-size: var(--fs-16); color: var(--text-2); }
.g-type { font-size: var(--fs-20); font-weight: 700; line-height: var(--lh-snug); margin-top: var(--sp-1); }
.gmap { width: 100%; max-width: 20rem; height: auto; margin-top: var(--sp-2); }
.gm-edge { stroke: rgba(var(--white-rgb), .25); stroke-linecap: round; }
.gm-edge.best { stroke: var(--gold); }
.gm-edge.comp { stroke: var(--b); stroke-dasharray: 6 6; }
.gm-node circle { fill: var(--el); }
.gm-h { font-family: var(--f-hanja); font-weight: 900; font-size: var(--fs-32); fill: #fff; }
.gm-node[data-el="metal"] .gm-h, .gm-node[data-el="earth"] .gm-h { fill: var(--night-2); }
/* 지도가 칸 너비에 맞게 줄어들어서(약 0.8배) 이름 글자를 크게, 선 위에서도 읽히게 바탕색 테두리 */
.gm-name { font-size: var(--fs-22); font-weight: 700; fill: var(--text); paint-order: stroke; stroke: var(--night); stroke-width: 6px; stroke-linejoin: round; }
.gm-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-1) var(--sp-3); font-size: var(--fs-12); color: var(--text-3); }
.gm-legend .best { color: var(--gold); }
.gm-legend .comp { color: var(--b-soft); }
.g-kind { display: grid; gap: var(--sp-2); }
.g-kind > span { font-size: var(--fs-13); font-weight: 700; color: var(--text-2); padding-left: var(--sp-1); }
.g-num { font-weight: 900; color: var(--gold); }
.g-num.comp { color: var(--b-soft); }
.g-pair { display: block; font-size: var(--fs-17); margin-top: calc(var(--sp-2) * -1); }
.g-line { margin: var(--sp-2) 0 0; color: var(--text-2); font-size: var(--fs-14); line-height: var(--lh-relaxed); }
.g-roles { display: grid; gap: var(--sp-2); }
.g-role { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-3); border-radius: var(--r-md); background: rgba(var(--white-rgb), .04); }
.g-role .seal { --size: 2.25rem; font-size: var(--fs-18); flex: none; }
.g-role b { display: block; font-size: var(--fs-15); }
.g-role p { margin: var(--sp-0-5) 0 0; font-size: var(--fs-13); color: var(--text-2); line-height: var(--lh-normal); }
.g-all { display: flex; flex-wrap: wrap; gap: var(--sp-1-5); }
.g-all .chip { font-size: var(--fs-13); }
.g-all .chip b { color: var(--gold); margin-left: var(--sp-1); }
.share-row.one { grid-template-columns: minmax(0, 1fr); margin-top: var(--sp-4); }
.lockcard { padding: var(--sp-5); background: linear-gradient(170deg, rgba(var(--gold-rgb), .1), transparent 60%), var(--night); border-color: rgba(var(--gold-rgb), .2); }
.lockcard .rep-h h3 { display: flex; align-items: center; gap: var(--sp-2); }
.lockcard .btn { margin-top: var(--sp-4); }
.lockcard .price-note { text-align: center; font-size: var(--fs-12); color: var(--text-3); margin-top: var(--sp-2); }
.lockcard .price-note s { margin-right: var(--sp-1); }
/* 공유 9:16 */
.story-wrap { display: grid; justify-items: center; gap: var(--sp-4); }
.story { position: relative; width: 66vw; max-width: 16rem; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-xl), 0 0 0 1px var(--line-strong); }
.story-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(50% 35% at 15% 10%, rgba(var(--seal-rgb), .5), transparent 70%), radial-gradient(45% 30% at 90% 22%, rgba(var(--b-rgb), .4), transparent 70%), radial-gradient(60% 30% at 50% 100%, rgba(var(--gold-rgb), .3), transparent 70%); }
.story-top { position: absolute; left: 0; right: 0; top: 6%; text-align: center; color: #fff; }
.story-top small { display: block; font-size: var(--fs-11); letter-spacing: var(--ls-caps); color: rgba(var(--white-rgb), .7); font-weight: 700; }
.story-top b { display: block; font-family: var(--f-serif); font-size: var(--fs-17); margin-top: var(--sp-1); }
.story-rc { position: absolute; left: 6%; right: 6%; top: 17%; bottom: 13%; }
.story-scale { position: absolute; left: 50%; top: 0; width: 21rem; transform-origin: top center; }
.story-wm { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; opacity: .5; }
.story-mark { position: absolute; left: 0; right: 0; bottom: 4.5%; display: flex; align-items: center; justify-content: center; gap: var(--sp-1-5); font-size: var(--fs-11); font-weight: 900; color: rgba(var(--white-rgb), .9); letter-spacing: var(--ls-wide); }
.story-mark .seal { --size: 1.3rem; border-radius: 26%; }

/* ── 이미지 저장 시트 (영수증 그림 파일) ── */
.snap-box { display: grid; place-items: center; gap: var(--sp-3); min-height: 12rem; max-height: 55vh; overflow: auto; padding: var(--sp-3); border-radius: var(--r-md); background: rgba(var(--black-rgb), .25); }
.snap-img { display: block; width: 100%; height: auto; max-height: 52vh; object-fit: contain; -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
.snap-actions { margin-top: var(--sp-4); gap: var(--sp-2); }

/* ── W-04 앱 출시 알림 (파일럿) ── */
.wtop-gap { width: 2.75rem; flex: none; }
.nt-hero { padding: var(--sp-6) var(--sp-5) var(--sp-2); text-align: center; display: grid; justify-items: center; gap: var(--sp-3); }
.nt-hero h1 { margin: var(--sp-1) 0 0; font-size: var(--fs-24); font-weight: 700; line-height: var(--lh-snug); letter-spacing: var(--ls-title); }
.nt-hero p { margin: 0; color: var(--text-2); font-size: var(--fs-15); line-height: var(--lh-relaxed); }
.shot-body .seal { --size: 3rem; }
.appicon { width: 6rem; height: 6rem; border-radius: var(--r-lg); display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, var(--seal-2), var(--seal) 55%, var(--cta-2)); box-shadow: 0 .75rem 2rem rgba(var(--seal-rgb), .3), inset 0 0 0 1px rgba(var(--white-rgb), .2); }
.appicon::before { content: ''; position: absolute; top: .55rem; right: .55rem; bottom: .55rem; left: .55rem; border-radius: var(--r-md); border: 2px solid rgba(var(--white-rgb), .85); }
.appicon span { font-family: var(--f-hanja); font-weight: 900; color: #fff; font-size: var(--fs-28); letter-spacing: var(--ls-display); line-height: var(--lh-none); }
.appicon.sm { width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); }
.appicon.sm::before { top: .25rem; right: .25rem; bottom: .25rem; left: .25rem; border-radius: var(--r-sm); border-width: 1.5px; }
.appicon.sm span { font-size: var(--fs-14); }
.shots { display: flex; gap: var(--sp-3); overflow-x: auto; padding: 0 var(--sp-5) var(--sp-2); scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shot { flex: none; width: 9.5rem; aspect-ratio: 9 / 18; border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start; position: relative; display: flex; flex-direction: column; padding: var(--sp-3-5) var(--sp-3); gap: var(--sp-2); border: 1px solid var(--line); }
.shot-cap { font-size: var(--fs-13); font-weight: 800; line-height: var(--lh-snug); letter-spacing: var(--ls-title); }
.shot-body { flex: 1; border-radius: var(--r-md); background: rgba(var(--black-rgb), .25); position: relative; overflow: hidden; display: grid; place-items: center; }
.shot.s1 { background: linear-gradient(170deg, var(--deep-seal), var(--ink-2)); }
.shot.s2 { background: linear-gradient(170deg, var(--deep-water), var(--ink-2)); }
.shot.s3 { background: linear-gradient(170deg, var(--deep-earth), var(--ink-2)); }
.shot.s4 { background: linear-gradient(170deg, var(--deep-wood), var(--ink-2)); }
.mini-paper { width: 70%; background: var(--paper); border-radius: var(--r-xs); padding: var(--sp-2); display: grid; gap: var(--sp-1); transform: rotate(-4deg); box-shadow: var(--shadow-md); }
.mini-paper i { display: block; height: .25rem; border-radius: var(--r-xs); background: rgba(var(--paper-ink-rgb), .2); }
.mini-paper i.w6 { width: 60%; } .mini-paper i.w8 { width: 80%; }
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-1-5); width: 80%; }
.shot-grid i { aspect-ratio: 3 / 4; border-radius: var(--r-xs); background: var(--paper); transform: rotate(-3deg); opacity: .9; }
.shot-grid i:nth-child(even) { transform: rotate(3deg); }
.shot-grid i:last-child { background: transparent; border: 1.5px dashed rgba(var(--white-rgb), .3); }
.shot-list { display: grid; gap: var(--sp-1-5); width: 82%; }
.shot-list div { display: flex; align-items: center; gap: var(--sp-1-5); background: rgba(var(--white-rgb), .06); border-radius: var(--r-sm); padding: var(--sp-1); }
.shot-list span { width: 1.1rem; height: 1.1rem; border-radius: var(--r-xs); background: var(--c); }
.shot-list i { flex: 1; height: .25rem; border-radius: var(--r-xs); background: rgba(var(--white-rgb), .2); }

/* ── A-01 스플래시 ── */
.splash { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; justify-content: safe center; overflow-y: auto; scrollbar-width: none; align-items: center; padding: var(--sp-6) var(--sp-5) var(--sp-5); padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom)); overflow: hidden; }
.splash-orbs { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.splash-orbs i { position: absolute; border-radius: 50%; filter: blur(2.5rem); opacity: .5; animation: floaty 6s ease-in-out infinite; }
.splash-logo { display: grid; justify-items: center; gap: var(--sp-3-5); transition: transform var(--dur-4) var(--ease), margin var(--dur-4) var(--ease); }
.splash-logo .seal { --size: 5.5rem; font-size: var(--fs-40); border-radius: 26%; animation: pop .7s var(--ease) both; }
.splash-word { font-size: var(--fs-32); font-weight: 900; letter-spacing: var(--ls-display); animation: fadeUp .6s .35s var(--ease) both; }
.splash-tag { color: var(--text-2); font-size: var(--fs-15); animation: fadeUp .6s .55s var(--ease) both; margin-top: calc(var(--sp-2) * -1); }
.splash-card { width: 100%; flex: none; max-height: 0; opacity: 0; overflow: hidden; padding: 0 var(--sp-1) var(--sp-4); transform: translateY(2rem); transition: opacity var(--dur-4) var(--dur-2) var(--ease), transform var(--dur-4) var(--dur-2) var(--ease), max-height var(--dur-4) var(--ease); }
.splash.p2 .splash-logo { transform: scale(.62); margin: calc(var(--sp-6) * -1) 0 calc(var(--sp-5) * -1); }
.splash.p2 .splash-tag { opacity: 0; transition: opacity var(--dur-3); }
.splash.p2 .splash-card { max-height: 44rem; opacity: 1; transform: none; }
.splash-card h2 { margin: var(--sp-3) 0 var(--sp-2); text-align: center; font-size: var(--fs-22); line-height: var(--lh-normal); font-weight: 700; }
.splash-card > p { margin: 0 0 var(--sp-5); text-align: center; color: var(--text-2); font-size: var(--fs-15); }
.deeplink-chip { display: flex; justify-content: center; }
/* 미니 영수증 (공용) */
.mrc { --zig: .45rem; padding: 1rem .95rem 1.15rem; font-size: .75rem; } /* 축소 그림: 토큰 예외 */
.mrc .r-brand { font-size: .625rem; margin-bottom: .15rem; } /* 축소 그림: 토큰 예외 */
.mrc .r-logo { width: .95rem; height: .95rem; font-size: .55rem; border-radius: 3px; } /* 축소 그림: 토큰 예외 */
.mrc-store { font-size: .6875rem; color: var(--paper-ink-2); } /* 축소 그림: 토큰 예외 */
.mrc-names { font-weight: 700; font-size: .8125rem; display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; } /* 축소 그림: 토큰 예외 */
.mrc-names i { width: .4rem; height: .4rem; border-radius: 50%; display: inline-block; }
.mrc-type { font-family: var(--f-serif); font-weight: 700; font-size: .8125rem; line-height: 1.35; margin-top: .25rem; } /* 축소 그림: 토큰 예외 */
.mrc .r-hr { margin: var(--sp-2) 0; }
.mrc-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.mrc-total b { font-size: 1.5rem; letter-spacing: -.02em; } /* 축소 그림: 토큰 예외 */
.mrc .r-stamp { width: 2.6rem; height: 2.6rem; font-size: 1.15rem; border-width: .14rem; right: .55rem; bottom: 2.2rem; box-shadow: inset 0 0 0 .12rem var(--paper), inset 0 0 0 .2rem rgba(var(--stamp-rgb), .7); } /* 축소 그림: 토큰 예외 */
.mrc.deep .r-stamp { box-shadow: inset 0 0 0 .12rem var(--paper), inset 0 0 0 .2rem rgba(var(--stamp-gold-rgb), .85); }
.mrc-lg { padding: 1.25rem 1.25rem 1.4rem; font-size: .8125rem; } /* 축소 그림: 토큰 예외 */
.mrc-lg .mrc-names { font-size: 1rem; } /* 축소 그림: 토큰 예외 */
.mrc-lg .mrc-total b { font-size: 2rem; } /* 축소 그림: 토큰 예외 */
.mrc-lg .r-stamp { width: 3.4rem; height: 3.4rem; font-size: 1.5rem; bottom: 2.6rem; right: .9rem; } /* 축소 그림: 토큰 예외 */

/* ── A-02 로그인 ── */
.login { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; padding: var(--sp-6) var(--sp-5) var(--sp-5); padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom)); overflow-y: auto; }
.login-art { position: relative; height: 11rem; margin: var(--sp-2) 0 var(--sp-6); }
.login-art .paper-wrap { position: absolute; width: 8.5rem; top: 0; }
.login-art .paper-wrap:nth-child(1) { left: calc(50% - 9rem); transform: rotate(-10deg); top: 1.25rem; opacity: .55; }
.login-art .paper-wrap:nth-child(2) { left: calc(50% + .5rem); transform: rotate(9deg); top: 1.5rem; opacity: .55; }
.login-art .paper-wrap:nth-child(3) { left: calc(50% - 4.25rem); transform: rotate(-2deg); animation: floaty 5s ease-in-out infinite; }
.login h1 { margin: 0; font-size: var(--fs-28); line-height: var(--lh-snug); font-weight: 700; letter-spacing: var(--ls-title); }
.login h1 + p { margin: var(--sp-2-5) 0 0; color: var(--text-2); font-size: var(--fs-15); }
.socials { display: grid; gap: var(--sp-2-5); margin-top: auto; padding-top: var(--sp-7); }
.social { position: relative; min-height: 3.375rem; border-radius: var(--r-md); font-weight: 700; font-size: var(--fs-16); display: flex; align-items: center; justify-content: center; transition: transform var(--dur-1) var(--ease), filter var(--dur-1); }
.social:active { transform: scale(.98); filter: brightness(.95); }
.social.kakao { background: var(--brand-kakao); color: var(--brand-kakao-ink); }
.social.apple { background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(var(--white-rgb), .3); }
.social.naver { background: var(--brand-naver); color: #fff; }
.social.google { background: #fff; color: var(--brand-google); }
.social .spin-sm { position: absolute; right: 1rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; opacity: .7; }
.bubble { position: absolute; top: -.85rem; left: 0; right: 0; margin: 0 auto; width: max-content; background: var(--text); color: var(--ink); font-size: var(--fs-11); font-weight: 800; padding: var(--sp-1) var(--sp-2-5); border-radius: var(--r-pill); white-space: nowrap; z-index: 2; animation: floaty 2.4s ease-in-out infinite; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -.25rem; margin-left: calc(var(--sp-1) * -1); border: .25rem solid transparent; border-bottom: 0; border-top-color: var(--text); }
.terms { margin: var(--sp-4) 0 0; font-size: var(--fs-12); color: var(--text-3); text-align: center; line-height: var(--lh-relaxed); }
.terms u { text-underline-offset: 2px; }

/* ── A-03 나는 누구 ── */
.steps { display: flex; gap: var(--sp-1); padding: var(--sp-2) var(--sp-5) 0; }
.steps i { flex: 1; height: .2rem; border-radius: var(--r-pill); background: rgba(var(--white-rgb), .1); }
.steps i.on { background: var(--seal); }
.who-h { padding: var(--sp-6) var(--sp-5) 0; }
.who-h h1 { margin: 0; font-size: var(--fs-24); line-height: var(--lh-snug); font-weight: 700; }
.who-h p { margin: var(--sp-2) 0 0; color: var(--text-2); font-size: var(--fs-15); }
.who-cards { display: grid; gap: var(--sp-3); padding: var(--sp-6) var(--sp-5) 0; }
.who { --c: var(--a); --c-rgb: var(--a-rgb); position: relative; display: flex; align-items: center; gap: var(--sp-4); width: 100%; text-align: left; padding: var(--sp-5) var(--sp-4-5); border-radius: var(--r-lg); background: var(--night); border: 2px solid var(--line); transition: border-color var(--dur-2), background var(--dur-2), transform var(--dur-1) var(--ease); overflow: hidden; }
.who.b { --c: var(--b); --c-rgb: var(--b-rgb); }
.who::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: .3rem; background: var(--c); opacity: .9; }
.who:active { transform: scale(.985); }
.who.on { border-color: var(--c); background: linear-gradient(rgba(var(--c-rgb), .1), rgba(var(--c-rgb), .1)), var(--night); }
.who .seal { --size: 3.5rem; font-size: var(--fs-28); }
.who-name { font-size: var(--fs-20); font-weight: 900; letter-spacing: var(--ls-title); display: flex; align-items: center; gap: var(--sp-1-5); }
.who-name small { font-size: var(--fs-12); font-weight: 800; color: var(--c); border: 1px solid rgba(var(--c-rgb), .5); padding: var(--sp-0-5) var(--sp-2); border-radius: var(--r-pill); }
.who-birth { font-size: var(--fs-13); color: var(--text-2); margin-top: var(--sp-1); }
.who-dm { font-size: var(--fs-13); color: var(--text-3); margin-top: var(--sp-0-5); }
.who-check { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: transparent; margin-left: auto; flex: none; transition: all var(--dur-2); }
.who-check .ic { width: 1rem; height: 1rem; stroke-width: 3; }
.who.on .who-check { background: var(--c); border-color: var(--c); color: #fff; }

/* ── A-04 보관 완료 ── */
.saved { position: relative; z-index: 1; padding: var(--sp-5) var(--sp-5) 0; text-align: center; }
.album-stage { position: relative; height: 15.5rem; margin: 0 auto; width: 100%; max-width: 20rem; }
.album-book { position: absolute; left: 0; right: 0; bottom: 0; height: 11rem; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--deep-violet), var(--ink-2)); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); padding: var(--sp-5) var(--sp-5); align-items: end; }
.album-book::before { content: '궁합 앨범'; position: absolute; top: .7rem; left: 1.25rem; font-size: var(--fs-11); color: var(--text-3); font-weight: 700; letter-spacing: var(--ls-wide); }
.album-slot { height: 7.5rem; border-radius: var(--r-sm); border: 1.5px dashed rgba(var(--white-rgb), .16); position: relative; }
.album-slot.filled { border: 0; background: var(--paper); opacity: .35; transform: rotate(-3deg); }
.album-slot.filled:nth-child(3) { transform: rotate(3deg); }
.album-slot.target { border-color: rgba(var(--gold-rgb), .6); animation: glow 1.6s ease-in-out infinite; }
.album-drop { position: absolute; left: 50%; bottom: 1.25rem; width: 6.5rem; margin-left: -3.25rem; z-index: 2; animation: dropIn 1.05s .3s cubic-bezier(.3, .7, .3, 1) both; }
.album-drop .mrc { padding: .65rem .6rem .8rem; font-size: .5625rem; --zig: .3rem; } /* 축소 그림: 토큰 예외 */
.album-drop .mrc-names { font-size: .625rem; } /* 축소 그림: 토큰 예외 */
.album-drop .mrc-total b { font-size: 1.05rem; } /* 축소 그림: 토큰 예외 */
.album-drop .r-stamp { width: 1.8rem; height: 1.8rem; font-size: var(--fs-13); bottom: 1.4rem; right: .3rem; }
.album-ok { position: absolute; right: calc(50% - 4.25rem); bottom: 7.5rem; z-index: 3; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ok); color: var(--deep-wood); display: grid; place-items: center; animation: pop .45s 1.3s var(--ease) both; box-shadow: 0 0 0 .25rem var(--ink); }
.album-ok .ic { width: 1.1rem; height: 1.1rem; stroke-width: 3; }
.coin-pop { position: absolute; top: .25rem; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: var(--sp-1-5); font-weight: 900; color: var(--gold); font-size: var(--fs-18); animation: floatUp 1.6s 1.5s ease-out both; }
.coin-pop .yeop { --s: 1.5rem; }
.saved h1 { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--fs-24); font-weight: 700; line-height: var(--lh-snug); }
.saved > p { margin: 0; color: var(--text-2); font-size: var(--fs-14); }
.reward-chip { display: inline-flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); background: rgba(var(--gold-rgb), .12); border: 1px solid rgba(var(--gold-rgb), .4); color: var(--gold); font-weight: 800; font-size: var(--fs-15); animation: pop .5s 1.7s var(--ease) both; }
.reward-chip .yeop { --s: 1.15rem; }
.invite { margin: var(--sp-6) var(--sp-5) 0; padding: var(--sp-5); text-align: left; }
.invite-h { display: flex; gap: var(--sp-3-5); align-items: center; }
.invite-h .seal { --size: 2.75rem; font-size: var(--fs-22); }
.invite-h b { display: block; font-size: var(--fs-17); letter-spacing: var(--ls-title); }
.invite-h small { display: inline-flex; align-items: center; gap: var(--sp-1); color: var(--gold); font-size: var(--fs-13); font-weight: 700; margin-top: var(--sp-0-5); }
.invite-h small .yeop { --s: .9rem; }
.invite-btns { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-2); margin-top: var(--sp-4); }
.invite-btns .btn { min-height: 3.125rem; font-size: var(--fs-15); }
.friend-reg { display: flex; align-items: center; gap: var(--sp-2); justify-content: center; color: var(--text-3); font-size: var(--fs-13); margin-top: var(--sp-4); }
.friend-reg .ic { width: 1rem; height: 1rem; color: var(--ok); }

/* ── A-05 홈 ── */
.home-top { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-2) var(--sp-2) 0 var(--sp-5); }
.coinpill { display: inline-flex; align-items: center; gap: var(--sp-1-5); min-height: 2.75rem; padding: 0 var(--sp-3-5) 0 var(--sp-2-5); border-radius: var(--r-pill); background: rgba(var(--gold-rgb), .1); border: 1px solid rgba(var(--gold-rgb), .25); color: var(--gold); font-weight: 800; font-size: var(--fs-15); font-variant-numeric: tabular-nums; }
.coinpill .yeop { --s: 1.2rem; }
.greet { padding: var(--sp-5) var(--sp-5) 0; }
.greet h1 { margin: 0; font-size: var(--fs-24); line-height: var(--lh-snug); font-weight: 900; letter-spacing: var(--ls-title); }
.greet p { margin: var(--sp-1-5) 0 0; color: var(--text-3); font-size: var(--fs-14); display: flex; align-items: center; gap: var(--sp-1-5); }
.greet p .hanja { color: var(--text-2); font-weight: 700; }
.fhero { position: relative; overflow: hidden; margin: var(--sp-5) var(--sp-5) 0; padding: var(--sp-5) var(--sp-5) var(--sp-5); border-radius: var(--r-xl); text-align: left; width: calc(100% - 2.5rem); display: block;
  background: radial-gradient(80% 90% at 100% 0%, rgba(var(--seal-2-rgb), .3), transparent 60%), radial-gradient(70% 70% at 0% 100%, rgba(var(--b-rgb), .2), transparent 60%), var(--night); border: 1px solid var(--line-strong); transition: transform var(--dur-1) var(--ease); }
.fhero:active { transform: scale(.985); }
.fhero-h { display: flex; justify-content: space-between; align-items: center; }
.fhero-h .eyebrow { color: var(--text-2); }
.fhero-h span:last-child { display: inline-flex; align-items: center; font-size: var(--fs-13); color: var(--text-3); }
.fhero-h .ic { width: 1rem; height: 1rem; }
.fhero-main { display: flex; gap: var(--sp-4-5); align-items: center; margin-top: var(--sp-3-5); }
.fhero-sum { font-size: var(--fs-18); line-height: var(--lh-normal); font-weight: 700; margin: 0; }
.fhero-lucky { display: flex; gap: var(--sp-2); margin-top: var(--sp-4-5); flex-wrap: wrap; }
.lucky-chip { display: inline-flex; align-items: center; gap: var(--sp-1-5); padding: var(--sp-1-5) var(--sp-3); border-radius: var(--r-pill); background: rgba(var(--white-rgb), .08); font-size: var(--fs-13); color: var(--text-2); }
.lucky-chip i { width: .85rem; height: .85rem; border-radius: 50%; box-shadow: 0 0 0 2px rgba(var(--white-rgb), .16); }
.lucky-chip b { color: var(--text); font-weight: 700; }
/* 출석 */
.att { margin: 0 var(--sp-5); padding: var(--sp-4-5) var(--sp-4-5) var(--sp-4); }
.att-h { display: flex; align-items: center; gap: var(--sp-3); }
.att-h .pouch { width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); display: grid; place-items: center; background: rgba(var(--seal-rgb), .16); color: var(--seal-2); flex: none; }
.att-h .pouch .ic { width: 1.5rem; height: 1.5rem; }
.att-h b { display: block; font-size: var(--fs-16); }
.att-h small { color: var(--text-3); font-size: var(--fs-13); }
.att-h .coinpill { margin-left: auto; min-height: 2.5rem; }
.att-h .more { margin-left: auto; font-size: var(--fs-13); color: var(--text-3); min-height: 2.75rem; min-width: 2.75rem; display: inline-flex; align-items: center; justify-content: flex-end; }
.att-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--sp-1); margin-top: var(--sp-4); }
.att-day { display: grid; justify-items: center; gap: var(--sp-1); font-size: var(--fs-12); color: var(--text-3); font-weight: 600; min-height: 3.6rem; padding: var(--sp-1) 0; border-radius: var(--r-md); }
.att-day .dot { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--white-rgb), .06); color: var(--text-3); position: relative; }
.att-day .dot .ic { width: 1rem; height: 1rem; }
.att-day.got .dot { background: rgba(var(--gold-rgb), .16); color: var(--gold); }
.att-day.got .dot .ic { stroke-width: 2.6; }
.att-day.today { color: var(--text); }
.att-day.today .dot { background: linear-gradient(135deg, var(--cta), var(--cta-2)); color: #fff; animation: wiggle 1.4s ease-in-out infinite; }
.att-day.today .dot::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; border: 2px solid var(--seal); animation: ringPulse 1.4s ease-out infinite; }
.att-day.big .dot { box-shadow: 0 0 0 2px var(--gold); }
.att-day.big:not(.today):not(.got) .dot { color: var(--gold); }
.att-note { display: flex; align-items: center; gap: var(--sp-1-5); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line); font-size: var(--fs-13); color: var(--text-2); }
.att-note .ic { width: 1rem; height: 1rem; color: var(--gold); }
.att-note b { color: var(--gold); }
/* 친구 가로 목록 */
.hscroll { display: flex; gap: var(--sp-2-5); overflow-x: auto; padding: 0 var(--sp-5) var(--sp-1); scroll-snap-type: x proximity; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.fcard { flex: none; width: 9.25rem; padding: var(--sp-4) var(--sp-3-5); border-radius: var(--r-lg); background: var(--night); border: 1px solid var(--line); text-align: left; scroll-snap-align: start; display: grid; gap: var(--sp-2); transition: transform var(--dur-1) var(--ease); }
.fcard:active { transform: scale(.97); }
.fcard-top { display: flex; align-items: center; justify-content: space-between; }
.fcard .seal { --size: 2.25rem; font-size: var(--fs-18); border-radius: 26%; }
.fcard-score { font-size: var(--fs-22); font-weight: 900; letter-spacing: var(--ls-title); font-variant-numeric: tabular-nums; }
.fcard-score small { font-size: var(--fs-12); color: var(--text-3); font-weight: 500; margin-left: var(--sp-0-5); }
.fcard-name { font-weight: 800; font-size: var(--fs-15); display: flex; align-items: center; gap: var(--sp-1-5); }
.fcard-name span { font-size: var(--fs-12); color: var(--text-3); font-weight: 500; }
.fcard-line { font-size: var(--fs-13); color: var(--text-2); line-height: var(--lh-normal); min-height: 2.3em; }
.fcard.add { display: grid; place-items: center; align-content: center; gap: var(--sp-2); border-style: dashed; color: var(--text-3); font-size: var(--fs-13); font-weight: 600; background: transparent; }
.fcard.add .ic { width: 1.5rem; height: 1.5rem; }
.fcard.partner { border-color: rgba(var(--gold-rgb), .3); background: linear-gradient(170deg, rgba(var(--gold-rgb), .1), transparent 50%), var(--night); }
/* 이벤트 배너 */
.event { position: relative; overflow: hidden; display: flex; align-items: center; gap: var(--sp-4); margin: 0 var(--sp-5); padding: var(--sp-4-5) var(--sp-4-5); border-radius: var(--r-lg); text-align: left; width: calc(100% - 2.5rem); background: linear-gradient(120deg, var(--deep-fire), var(--deep-seal) 60%, var(--deep-violet)); border: 1px solid rgba(var(--gold-rgb), .25); }
.event-t small { display: inline-block; font-size: var(--fs-12); font-weight: 900; color: var(--gold-ink); background: var(--gold); padding: var(--sp-0-5) var(--sp-2); border-radius: var(--r-xs); margin-bottom: var(--sp-1-5); }
.event-t b { display: block; font-size: var(--fs-16); line-height: var(--lh-normal); letter-spacing: var(--ls-title); }
.event-t b em { font-style: normal; color: var(--gold); }
.event-t span { font-size: var(--fs-12); color: var(--text-3); }
.event-art { position: relative; flex: none; width: 4.5rem; height: 4.5rem; margin-left: auto; }
.event-art .yeop { position: absolute; }
.event-art .yeop:nth-child(1) { --s: 3rem; left: 0; top: .6rem; transform: rotate(-12deg); }
.event-art .yeop:nth-child(2) { --s: 2.4rem; right: 0; top: 0; transform: rotate(14deg); }
.event-art b { position: absolute; right: -.2rem; bottom: -.2rem; font-size: var(--fs-20); font-weight: 900; color: var(--gold); font-style: italic; text-shadow: 0 2px 8px rgba(var(--black-rgb), .5); }
/* 서비스 그리드 */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); padding: 0 var(--sp-5); }
.svc-item { position: relative; display: grid; justify-items: center; align-content: center; gap: var(--sp-2); min-height: 6.25rem; padding: var(--sp-3-5) var(--sp-1); border-radius: var(--r-lg); background: var(--night); border: 1px solid var(--line); font-size: var(--fs-13); font-weight: 700; text-align: center; transition: transform var(--dur-1) var(--ease); }
.svc-item:active { transform: scale(.95); }
.svc-ic { width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); display: grid; place-items: center; background: rgba(var(--c-rgb, var(--seal-rgb)), .16); color: var(--c, var(--seal)); }
.svc-ic .ic { width: 1.4rem; height: 1.4rem; }
.svc-ic.seal { --size: 2.75rem; font-size: var(--fs-20); border-radius: var(--r-md); background: var(--c); color: #fff; }
.svc-badge { position: absolute; top: .45rem; right: .45rem; font-size: var(--fs-11); font-weight: 900; padding: var(--sp-0-5) var(--sp-1-5); border-radius: var(--r-xs); background: rgba(var(--white-rgb), .1); color: var(--text-3); }
.svc-badge.gold { background: var(--gold); color: var(--gold-ink); }
.svc-item.soon { opacity: .72; }
/* 최근 앨범 카드 */
.recent { display: flex; gap: var(--sp-4); align-items: center; margin: 0 var(--sp-5); padding: var(--sp-4) var(--sp-4-5); width: calc(100% - 2.5rem); }
.recent .paper-wrap { width: 5.25rem; flex: none; transform: rotate(-4deg); }
.recent .mrc { padding: .55rem .5rem .7rem; font-size: .5rem; --zig: .28rem; } /* 축소 그림: 토큰 예외 */
.recent .mrc-names { font-size: .5625rem; } /* 축소 그림: 토큰 예외 */
.recent .mrc-total b { font-size: 1rem; } /* 축소 그림: 토큰 예외 */
.recent .r-stamp { width: 1.6rem; height: 1.6rem; font-size: var(--fs-12); bottom: 1.2rem; right: .25rem; }
.recent-t b { display: block; font-size: var(--fs-16); }
.recent-t small { display: block; color: var(--text-3); font-size: var(--fs-13); margin-top: var(--sp-0-5); }
.recent > .ic { color: var(--text-3); margin-left: auto; }

/* ── A-06 운세 ── */
.fbody { padding: 0 var(--sp-5); }
.fscore { display: grid; justify-items: center; text-align: center; gap: var(--sp-2); padding: var(--sp-6) 0 var(--sp-2); }
.fscore-date { color: var(--text-3); font-size: var(--fs-13); }
.fscore-sum { font-size: var(--fs-22); line-height: var(--lh-normal); font-weight: 700; margin: var(--sp-2) 0 0; max-width: 20rem; }
.cats { display: grid; gap: 0; padding: var(--sp-1) var(--sp-4-5); }
.cat { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-1) var(--sp-3); padding: var(--sp-3-5) 0; border-top: 1px solid var(--line); }
.cat:first-child { border-top: 0; }
.cat b { font-size: var(--fs-15); }
.cat p { grid-column: 1 / -1; margin: 0; color: var(--text-2); font-size: var(--fs-14); }
.lucky-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.lucky-cell { padding: var(--sp-3-5) var(--sp-4); border-radius: var(--r-md); background: var(--night); border: 1px solid var(--line); display: grid; gap: var(--sp-1); }
.lucky-cell small { color: var(--text-3); font-size: var(--fs-12); display: flex; align-items: center; gap: var(--sp-1); }
.lucky-cell small .ic { width: .9rem; height: .9rem; }
.lucky-cell b { font-size: var(--fs-15); display: flex; align-items: center; gap: var(--sp-2); line-height: var(--lh-snug); }
.lucky-cell b i { width: 1.1rem; height: 1.1rem; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(var(--white-rgb), .16); }
.lucky-cell.wide { grid-column: 1 / -1; }
.tl { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-2); padding: var(--sp-4) var(--sp-4) var(--sp-3-5); }
.tl-col { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1-5); }
.tl-col .v { font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; }
.tl-track { height: 5.5rem; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.tl-bar { width: 1.6rem; border-radius: var(--r-sm) var(--r-sm) var(--r-xs) var(--r-xs); background: rgba(var(--white-rgb), .1); height: 0; transition: height var(--dur-5) var(--ease); }
.tl-col.best .tl-bar { background: linear-gradient(180deg, var(--gold), var(--seal)); }
.tl-col.best .v { color: var(--gold); font-weight: 800; }
.tl-col span:last-child { font-size: var(--fs-12); color: var(--text-2); }
.check-card { padding: var(--sp-5); text-align: center; background: linear-gradient(170deg, rgba(var(--b-rgb), .16), transparent 60%), var(--night); }
.check-card .moon { width: 2.75rem; height: 2.75rem; margin: 0 auto var(--sp-2); border-radius: 50%; display: grid; place-items: center; background: rgba(var(--b-rgb), .2); color: var(--b-soft); }
.check-card b { font-size: var(--fs-17); display: block; }
.check-card p { margin: var(--sp-1) 0 var(--sp-4); color: var(--text-3); font-size: var(--fs-13); }
.check-btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.check-btns .btn { min-height: 3.125rem; font-size: var(--fs-15); }
.check-done { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); color: var(--gold); font-weight: 700; font-size: var(--fs-15); min-height: 3.125rem; }
.push-card { display: flex; align-items: center; gap: var(--sp-3-5); padding: var(--sp-4) var(--sp-4-5); width: 100%; text-align: left; }
.push-card .li-ic { background: rgba(var(--seal-rgb), .16); color: var(--seal-2); }
.push-card b { display: block; font-size: var(--fs-15); }
.push-card small { color: var(--text-3); font-size: var(--fs-13); }
.locked-f { text-align: center; padding: var(--sp-8) var(--sp-5) var(--sp-6); }
.locked-f .lock { width: 3.5rem; height: 3.5rem; margin-bottom: var(--sp-3); }
.locked-f .lock svg { width: 1.6rem; height: 1.6rem; }
.locked-f h3 { margin: 0 0 var(--sp-1-5); font-size: var(--fs-20); font-weight: 800; }
.locked-f p { margin: 0; color: var(--text-3); font-size: var(--fs-14); }
.locked-f .cd { font-family: var(--f-mono); color: var(--gold); font-weight: 700; font-size: var(--fs-24); margin: var(--sp-4) 0 0; letter-spacing: var(--ls-wide); }
.ghost-preview { margin-top: var(--sp-5); display: grid; gap: var(--sp-2); }
.ghost-preview div { height: 3.25rem; border-radius: var(--r-md); background: rgba(var(--white-rgb), .06); }

/* ── A-07 앨범 ── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); padding: 0 var(--sp-5); margin-top: var(--sp-3); }
.stat { padding: var(--sp-3-5) var(--sp-3); border-radius: var(--r-md); background: var(--night); border: 1px solid var(--line); }
.stat b { display: block; font-size: var(--fs-22); font-weight: 900; letter-spacing: var(--ls-title); }
.stat b small { font-size: var(--fs-13); font-weight: 600; color: var(--text-2); margin-left: var(--sp-0-5); }
.stat span { font-size: var(--fs-12); color: var(--text-3); }
.filters { display: flex; gap: var(--sp-1-5); padding: var(--sp-5) var(--sp-5) 0; overflow-x: auto; scrollbar-width: none; }
.filters button { flex: none; min-height: 2.75rem; padding: 0 var(--sp-4); border-radius: var(--r-pill); font-size: var(--fs-14); font-weight: 700; color: var(--text-3); background: rgba(var(--white-rgb), .06); border: 1px solid var(--line); }
.filters button.on { color: var(--ink); background: var(--text); border-color: var(--text); }
.album-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5) var(--sp-3-5); padding: var(--sp-6) var(--sp-5) 0; }
.alb { display: grid; gap: var(--sp-2-5); text-align: left; transition: transform var(--dur-2) var(--ease); }
.alb:active { transform: scale(.97); }
.alb .paper-wrap { transform: rotate(var(--tilt, -2deg)); transition: transform var(--dur-3) var(--ease); }
.alb:nth-child(even) .paper-wrap { --tilt: 2.2deg; }
.alb-cap b { display: flex; align-items: center; gap: var(--sp-1-5); font-size: var(--fs-14); }
.alb-cap small { display: block; color: var(--text-3); font-size: var(--fs-12); margin-top: var(--sp-0-5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.new-tag { font-size: var(--fs-11); font-weight: 900; color: #fff; background: var(--cta); padding: var(--sp-0-5) var(--sp-1-5); border-radius: var(--r-xs); }
.alb-empty { display: grid; place-items: center; align-content: center; gap: var(--sp-2-5); min-height: 13rem; border-radius: var(--r-md); border: 1.5px dashed rgba(var(--white-rgb), .2); color: var(--text-3); font-size: var(--fs-13); text-align: center; padding: var(--sp-4); line-height: var(--lh-normal); }
.alb-empty .ic { width: 1.75rem; height: 1.75rem; padding: var(--sp-1); border-radius: 50%; background: rgba(var(--white-rgb), .06); box-sizing: content-box; }
.empty-msg { grid-column: 1 / -1; text-align: center; color: var(--text-3); padding: var(--sp-8) 0; font-size: var(--fs-14); }

/* ── A-08 보고서 상세 ── */
.rd-receipt { padding: var(--sp-2) var(--sp-6) 0; }
.rd-band { margin: var(--sp-6) var(--sp-5) var(--sp-3-5); display: flex; align-items: center; gap: var(--sp-2-5); }
.rd-band b { font-size: var(--fs-18); font-weight: 900; letter-spacing: var(--ls-title); }
.rd-band .chip { margin-left: auto; }

/* ── A-09 친구 ── */
.best-f { margin: var(--sp-3) var(--sp-5) 0; padding: var(--sp-5); display: flex; gap: var(--sp-4); align-items: center; background: radial-gradient(80% 100% at 100% 0%, rgba(var(--gold-rgb), .2), transparent 60%), var(--night); border-color: rgba(var(--gold-rgb), .25); }
.best-f .seal { --size: 3.25rem; font-size: var(--fs-24); }
.best-f small { color: var(--gold); font-weight: 800; font-size: var(--fs-12); letter-spacing: var(--ls-wide); }
.best-f b { display: block; font-size: var(--fs-17); line-height: var(--lh-normal); margin-top: var(--sp-0-5); }
.fr-list { margin: 0 var(--sp-5); padding: var(--sp-1) var(--sp-4-5); }
.fr { display: flex; align-items: center; gap: var(--sp-3-5); width: 100%; text-align: left; padding: var(--sp-3-5) 0; border-bottom: 1px solid var(--line); min-height: 4.5rem; }
.fr:last-child { border-bottom: 0; }
.fr:active { opacity: .7; }
.fr .seal { --size: 2.75rem; font-size: var(--fs-22); border-radius: 26%; }
.fr-name { font-weight: 800; font-size: var(--fs-16); display: flex; align-items: center; gap: var(--sp-1-5); flex-wrap: wrap; }
.fr-name .rel { font-size: var(--fs-12); color: var(--text-3); font-weight: 500; }
.fr-line { font-size: var(--fs-13); color: var(--text-2); margin-top: var(--sp-1); line-height: var(--lh-normal); }
.fr-score { text-align: right; flex: none; }
.fr-score b { display: block; font-size: var(--fs-22); font-weight: 900; letter-spacing: var(--ls-title); font-variant-numeric: tabular-nums; }
.fr-score small { font-size: var(--fs-12); color: var(--text-3); }
.fr-badge { font-size: var(--fs-11); font-weight: 800; padding: var(--sp-0-5) var(--sp-2); border-radius: var(--r-pill); background: rgba(var(--gold-rgb), .16); color: var(--gold); border: 1px solid rgba(var(--gold-rgb), .4); }
.inv-card { margin: var(--sp-4) var(--sp-5) 0; padding: var(--sp-5); display: grid; gap: var(--sp-3-5); background: linear-gradient(150deg, rgba(var(--brand-kakao-rgb), .1), transparent 55%), var(--night); }
.inv-card .row b { display: block; font-size: var(--fs-16); }
.inv-card .row small { color: var(--text-3); font-size: var(--fs-13); }

/* ── A-10 관상 ── */
.face { padding: 0 var(--sp-5); }
.vf { position: relative; height: 22rem; height: clamp(17rem, 50vh, 27rem); border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(70% 55% at 50% 42%, var(--deep-metal), var(--ink) 75%); border: 1px solid var(--line); }
.vf::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: repeating-linear-gradient(0deg, rgba(var(--white-rgb), 0) 0 2px, transparent 2px 4px); pointer-events: none; }
.vf-oval { position: absolute; left: 50%; top: 46%; width: 54%; height: 68%; transform: translate(-50%, -50%); }
.vf-oval svg { width: 100%; height: 100%; overflow: visible; }
.vf-oval ellipse { fill: none; stroke: rgba(var(--white-rgb), .7); stroke-width: 1.5; stroke-dasharray: 6 6; animation: dash 2.4s linear infinite; }
.vf-sil { position: absolute; left: 50%; top: 50%; width: 46%; height: 76%; transform: translate(-50%, -46%); border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%; background: radial-gradient(60% 50% at 50% 40%, rgba(var(--white-rgb), .08), transparent 70%); }
.vf-corner { position: absolute; width: 1.75rem; height: 1.75rem; border: 3px solid rgba(var(--white-rgb), .85); }
.vf-corner.tl { top: 1rem; left: 1rem; border-right: 0; border-bottom: 0; border-radius: var(--r-sm) 0 0 0; }
.vf-corner.tr { top: 1rem; right: 1rem; border-left: 0; border-bottom: 0; border-radius: 0 var(--r-sm) 0 0; }
.vf-corner.bl { bottom: 1rem; left: 1rem; border-right: 0; border-top: 0; border-radius: 0 0 0 var(--r-sm); }
.vf-corner.br { bottom: 1rem; right: 1rem; border-left: 0; border-top: 0; border-radius: 0 0 var(--r-sm) 0; }
.vf-guide { position: absolute; left: 0; right: 0; bottom: 1.25rem; text-align: center; font-size: var(--fs-14); font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(var(--black-rgb), .6); }
.vf-live { position: absolute; top: 1.15rem; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: var(--sp-1-5); font-size: var(--fs-11); font-weight: 800; color: #fff; background: rgba(var(--black-rgb), .4); padding: var(--sp-1) var(--sp-2-5); border-radius: var(--r-pill); letter-spacing: var(--ls-caps); }
.vf-live i { width: .4rem; height: .4rem; border-radius: 50%; background: var(--seal); animation: pulse 1.2s infinite; }
.vf-scan { position: absolute; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 1rem .25rem rgba(var(--gold-rgb), .5); display: none; }
.vf-pts { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: none; }
.vf-pts span { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-12); font-weight: 700; color: var(--gold); opacity: 0; animation: fadeIn .3s var(--ease) forwards; }
.vf-pts span::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 .2rem rgba(var(--gold-rgb), .3); }
.face[data-phase="scan"] .vf-scan { display: block; animation: scanLine 1.6s ease-in-out infinite; }
.face[data-phase="scan"] .vf-pts { display: block; }
.face[data-phase="scan"] .vf-oval ellipse { stroke: var(--gold); }
.face-privacy { display: flex; align-items: center; justify-content: center; gap: var(--sp-1-5); margin-top: var(--sp-3-5); font-size: var(--fs-13); color: var(--text-3); }
.face-privacy .ic { width: 1rem; height: 1rem; color: var(--ok); }
.shutter-row { display: flex; align-items: center; justify-content: center; margin-top: var(--sp-4); min-height: 5.5rem; }
.shutter { width: 4.5rem; height: 4.5rem; border-radius: 50%; border: .25rem solid #fff; display: grid; place-items: center; transition: transform var(--dur-1) var(--ease); }
.shutter::after { content: ''; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: #fff; transition: transform var(--dur-1); }
.shutter:active::after { transform: scale(.88); }
.scan-txt { text-align: center; font-weight: 700; color: var(--gold); display: none; align-items: center; justify-content: center; gap: var(--sp-2); font-size: var(--fs-15); }
.face[data-phase="scan"] .scan-txt { display: flex; }
.face[data-phase="scan"] .shutter { display: none; }
.vf-flash { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #fff; opacity: 0; pointer-events: none; }
.face[data-phase="scan"] .vf-flash { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.scan-txt .spinner { width: 1.25rem; height: 1.25rem; border-width: .15rem; margin: 0; }
.face-res { display: none; }
.face[data-phase="result"] .face-res { display: block; animation: fadeUp .5s var(--ease) both; }
.face[data-phase="result"] .face-cam { display: none; }
.face-head { padding: var(--sp-6) var(--sp-5); text-align: center; display: grid; justify-items: center; gap: var(--sp-2); background: radial-gradient(80% 80% at 50% 0%, rgba(var(--gold-rgb), .16), transparent 70%), var(--night); }
.face-head h2 { margin: var(--sp-1) 0 0; font-size: var(--fs-22); line-height: var(--lh-normal); font-weight: 700; }
.face-head p { margin: 0; color: var(--text-2); font-size: var(--fs-14); line-height: var(--lh-relaxed); }
.feat { display: flex; gap: var(--sp-3-5); align-items: flex-start; padding: var(--sp-3-5) 0; border-top: 1px solid var(--line); }
.feat:first-child { border-top: 0; }
.feat .seal { --size: 2.5rem; font-size: var(--fs-18); --c: var(--deep-metal); color: var(--gold); box-shadow: inset 0 0 0 1.5px rgba(var(--gold-rgb), .5); }
.feat b { font-size: var(--fs-15); display: flex; align-items: center; gap: var(--sp-1-5); }
.feat b small { font-size: var(--fs-12); color: var(--gold); font-weight: 700; }
.feat p { margin: var(--sp-1) 0 0; color: var(--text-2); font-size: var(--fs-14); line-height: var(--lh-relaxed); }

/* ── A-11 내 사주 ── */
.me-head { display: flex; gap: var(--sp-4); align-items: center; padding: var(--sp-2) var(--sp-5) 0; }
.me-head b { font-size: var(--fs-20); font-weight: 900; display: block; }
.me-head small { color: var(--text-3); font-size: var(--fs-13); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); padding: 0 var(--sp-5); }
.pcol { display: grid; gap: var(--sp-1-5); text-align: center; }
.pcol-h { font-size: var(--fs-12); color: var(--text-3); font-weight: 700; }
.pcol.me .pcol-h { color: var(--seal-2); }
.pcell { position: relative; aspect-ratio: 1 / 1.08; border-radius: var(--r-md); display: grid; place-items: center; align-content: center; gap: var(--sp-0-5); background: linear-gradient(rgba(var(--el-rgb), .16), rgba(var(--el-rgb), .16)), var(--night); border: 1.5px solid rgba(var(--el-rgb), .5); }
.pcell .hanja { font-size: var(--fs-32); line-height: var(--lh-none); color: var(--el); }
.pcell small { font-size: var(--fs-12); color: var(--text-2); }
.pcell.unk { --el: rgba(var(--white-rgb), .3); background: transparent; border: 1.5px dashed rgba(var(--white-rgb), .2); }
.pcell.unk .hanja { color: var(--text-3); font-family: var(--f-sans); }
.pcol.me .pcell:nth-child(2) { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--seal-2); }
.pcol-tag { font-size: var(--fs-11); font-weight: 800; color: var(--seal-2); }
.el-dist { display: grid; gap: var(--sp-3); }
.el-row { display: grid; grid-template-columns: 2rem 2.75rem 1fr 1.5rem; gap: var(--sp-2-5); align-items: center; font-size: var(--fs-14); }
.el-row .elbar-seal { width: 2rem; height: 2rem; }
.el-row .bar { height: .625rem; }
.el-row .bar > i { background: var(--el); }
.el-row b { text-align: right; font-variant-numeric: tabular-nums; }
.el-sum { margin-top: var(--sp-4); padding: var(--sp-3-5) var(--sp-4); border-radius: var(--r-md); background: rgba(var(--white-rgb), .04); font-size: var(--fs-14); color: var(--text-2); line-height: var(--lh-relaxed); }
.el-sum b { color: var(--text); }
.dm-card { padding: var(--sp-6) var(--sp-5); display: flex; gap: var(--sp-4-5); align-items: center; }
.dm-card .seal { --size: 4.5rem; font-size: var(--fs-36); flex: none; }
.dm-card small { color: var(--text-3); font-size: var(--fs-12); font-weight: 700; letter-spacing: var(--ls-wide); }
.dm-card b { display: block; font-family: var(--f-serif); font-size: var(--fs-22); margin: var(--sp-0-5) 0 var(--sp-1-5); }
.dm-card p { margin: 0; color: var(--text-2); font-size: var(--fs-14); line-height: var(--lh-relaxed); }
.zodiac { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4-5) var(--sp-5); }
.zodiac .seal { --size: 3rem; font-size: var(--fs-24); }
.zodiac b { display: block; font-size: var(--fs-17); }
.zodiac small { color: var(--text-3); font-size: var(--fs-13); }

/* ── A-12 엽전 ── */
.bal { margin: var(--sp-3) var(--sp-5) 0; padding: var(--sp-6) var(--sp-5); text-align: center; background: radial-gradient(80% 90% at 50% 0%, rgba(var(--gold-rgb), .2), transparent 70%), var(--night); border-color: rgba(var(--gold-rgb), .25); }
.bal .yeop { --s: 3.25rem; margin: 0 auto var(--sp-3); display: block; animation: floaty 4s ease-in-out infinite; }
.bal b { font-size: var(--fs-36); font-weight: 900; letter-spacing: var(--ls-display); font-variant-numeric: tabular-nums; }
.bal b small { font-size: var(--fs-16); font-weight: 700; margin-left: var(--sp-1); color: var(--gold); }
.bal p { margin: var(--sp-1) 0 0; color: var(--text-3); font-size: var(--fs-13); }
.ticket-row { display: flex; align-items: center; justify-content: center; gap: var(--sp-1-5); margin-top: var(--sp-3-5); font-size: var(--fs-13); color: var(--gold); font-weight: 700; }
.ticket-row .ic { width: 1.1rem; height: 1.1rem; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); padding: 0 var(--sp-5); }
.pack { position: relative; display: grid; justify-items: center; gap: var(--sp-1-5); padding: var(--sp-4-5) var(--sp-2) var(--sp-4); border-radius: var(--r-lg); background: var(--night); border: 1px solid var(--line); transition: transform var(--dur-1) var(--ease); }
.pack:active { transform: scale(.96); }
.pack .yeop { --s: 1.75rem; }
.pack b { font-size: var(--fs-16); font-weight: 900; }
.pack span { font-size: var(--fs-13); color: var(--text-2); font-weight: 700; }
.pack small { position: absolute; top: -.55rem; font-size: var(--fs-12); font-weight: 900; padding: var(--sp-0-5) var(--sp-2); border-radius: var(--r-pill); background: var(--cta); color: #fff; white-space: nowrap; }
.pack.best { border-color: rgba(var(--gold-rgb), .5); }
.uses .li-t small { color: var(--gold); font-weight: 700; margin-left: var(--sp-1); }
.reward-list .li-ic { background: rgba(var(--gold-rgb), .1); color: var(--gold); }
.reward-list .li-r { margin-left: auto; color: var(--gold); font-weight: 800; font-size: var(--fs-14); white-space: nowrap; }
/* 복주머니 모달 */
.pouch-big { width: 6rem; height: 6rem; margin: 0 auto var(--sp-4); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--seal-2), var(--seal)); color: #fff; box-shadow: 0 1rem 2.5rem rgba(var(--seal-rgb), .4); position: relative; }
.pouch-big .ic { width: 3rem; height: 3rem; }
.pouch-big.shake { animation: wiggle .7s ease-in-out 2; }
.pouch-big .yeop { --s: 3.5rem; }
.pouch-big.open { background: radial-gradient(circle, rgba(var(--gold-rgb), .25), transparent 70%); box-shadow: none; animation: pop .5s var(--ease); }
.pouch-big i.sp { position: absolute; left: 50%; top: 50%; width: .5rem; height: .5rem; margin: calc(var(--sp-1) * -1); border-radius: 50%; background: var(--gold); animation: burst .9s var(--ease) both; }
.reward-amt { font-size: var(--fs-40); font-weight: 900; color: var(--gold); letter-spacing: var(--ls-display); line-height: var(--lh-tight); }
.modal h3 { margin: var(--sp-1) 0 var(--sp-1-5); font-size: var(--fs-20); font-weight: 800; }
.modal p { margin: 0; color: var(--text-2); font-size: var(--fs-14); line-height: var(--lh-relaxed); }
.free-ticket { margin: var(--sp-4) 0 0; padding: var(--sp-3-5) var(--sp-4); border-radius: var(--r-md); background: var(--paper); color: var(--paper-ink); display: flex; align-items: center; gap: var(--sp-3); text-align: left; animation: pop .5s .3s var(--ease) both; }
.free-ticket .ic { width: 1.6rem; height: 1.6rem; color: var(--gold-2); }
.free-ticket b { display: block; font-size: var(--fs-15); }
.free-ticket small { color: var(--paper-ink-2); font-size: var(--fs-12); }

/* ── A-13 마이 ── */
.prof { margin: var(--sp-3) var(--sp-5) 0; padding: var(--sp-5); display: flex; gap: var(--sp-4); align-items: center; width: calc(100% - 2.5rem); text-align: left; }
.prof .seal { --size: 3.75rem; font-size: var(--fs-32); }
.prof b { display: block; font-size: var(--fs-20); font-weight: 900; letter-spacing: var(--ls-title); }
.prof small { display: block; color: var(--text-3); font-size: var(--fs-13); margin-top: var(--sp-0-5); }
.prof > .ic { margin-left: auto; color: var(--text-3); }
.my-wallet { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); padding: var(--sp-2-5) var(--sp-5) 0; }
.my-wallet button { display: flex; align-items: center; gap: var(--sp-2-5); padding: var(--sp-3-5) var(--sp-4); border-radius: var(--r-md); background: var(--night); border: 1px solid var(--line); text-align: left; min-height: 3.5rem; }
.my-wallet small { display: block; color: var(--text-3); font-size: var(--fs-12); }
.my-wallet b { font-size: var(--fs-16); font-variant-numeric: tabular-nums; }
.my-wallet .ic { width: 1.4rem; height: 1.4rem; color: var(--gold); }
.my-wallet .yeop { --s: 1.4rem; }
.group { margin: 0 var(--sp-5); padding: var(--sp-1) var(--sp-4-5); }
.tg { display: flex; align-items: center; gap: var(--sp-3-5); width: 100%; text-align: left; min-height: 4rem; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.tg:last-child { border-bottom: 0; }
.tg .grow b { display: block; font-size: var(--fs-15); font-weight: 600; }
.tg .grow small { color: var(--text-3); font-size: var(--fs-13); }
.ts-row { cursor: default; }
.ts-seg { flex: none; width: 8.5rem; }
.ts-seg button { min-height: 2.75rem; font-size: var(--fs-14); }
.receipt-line { display: flex; gap: var(--sp-3-5); align-items: center; padding: var(--sp-3-5) 0; }
.receipt-line .li-ic { background: rgba(var(--gold-rgb), .12); color: var(--gold); }
.receipt-line b { display: block; font-size: var(--fs-15); }
.receipt-line small { color: var(--text-3); font-size: var(--fs-13); }
.receipt-line .amt { margin-left: auto; font-weight: 800; white-space: nowrap; }
.logout { display: block; margin: var(--sp-6) auto 0; min-height: 2.75rem; padding: 0 var(--sp-5); color: var(--text-3); font-size: var(--fs-14); text-decoration: underline; text-underline-offset: 3px; }
.ver { text-align: center; color: var(--text-3); font-size: var(--fs-12); margin-top: var(--sp-2); opacity: .7; }
/* 신년운세 시트 */
.ny-grid { display: grid; gap: var(--sp-2-5); margin-top: var(--sp-4); }
.ny-card { display: flex; gap: var(--sp-3-5); align-items: center; padding: var(--sp-4); border-radius: var(--r-md); background: var(--night); border: 1px solid var(--line); }
.ny-card .seal { --size: 2.75rem; font-size: var(--fs-22); }
.ny-card b { display: block; font-size: var(--fs-16); }
.ny-card small { color: var(--text-2); font-size: var(--fs-13); line-height: var(--lh-normal); display: block; margin-top: var(--sp-0-5); }
.ny-card .ny-score { margin-left: auto; text-align: right; flex: none; }
.ny-card .ny-score b { font-size: var(--fs-22); font-weight: 900; color: var(--gold); }
.ny-card .ny-score small { font-size: var(--fs-12); color: var(--text-3); }

/* ══════════ 실데이터 연동 추가 스타일 ══════════ */
/* 보고서: 유형 설명 · 인연 포인트 */
.rep-desc { margin: var(--sp-3-5) 0 0; font-size: var(--fs-14); color: var(--text-2); line-height: var(--lh-relaxed); }
.bond-list { display: grid; gap: var(--sp-2-5); }
.bond { display: grid; grid-template-columns: 4.25rem 1fr; gap: var(--sp-3); padding: var(--sp-3) var(--sp-3-5); border-radius: var(--r-md); background: rgba(var(--white-rgb), .04); }
.bond-k { font-size: var(--fs-12); font-weight: 800; color: var(--gold); padding-top: var(--sp-0-5); }
.bond b { font-size: var(--fs-15); display: block; }
.bond p { margin: var(--sp-1) 0 0; font-size: var(--fs-13); color: var(--text-2); line-height: var(--lh-relaxed); }
/* 운세 */
.theme-chip { display: inline-flex; align-items: center; padding: var(--sp-1) var(--sp-2-5); border-radius: var(--r-pill); font-size: var(--fs-12); font-weight: 800; color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-soft), var(--gold-2)); margin-bottom: var(--sp-2); }
.theme-chip.lg { font-size: var(--fs-14); padding: var(--sp-1-5) var(--sp-3-5); margin: var(--sp-2) 0 0; }
.fhero-sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--fs-17); }
.fcard-topic { font-size: var(--fs-12); font-weight: 800; color: var(--gold); }
.cat b small { margin-left: var(--sp-1-5); font-size: var(--fs-12); color: var(--text-3); font-weight: 600; }
.advice { padding: var(--sp-2) var(--sp-4-5); }
.adv-row { display: flex; gap: var(--sp-3-5); align-items: flex-start; padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.adv-row:first-child { border-top: 0; }
.adv-row .li-ic { background: rgba(var(--gold-rgb), .12); color: var(--gold); }
.adv-row small { font-size: var(--fs-12); color: var(--text-3); font-weight: 700; }
.adv-row p { margin: var(--sp-1) 0 0; font-size: var(--fs-15); line-height: var(--lh-relaxed); }
.tl-card .tl { padding-bottom: var(--sp-2); }
.tl-note { margin: 0 var(--sp-4) var(--sp-4); padding: var(--sp-3) var(--sp-3-5); border-radius: var(--r-md); background: rgba(var(--gold-rgb), .08); font-size: var(--fs-13); color: var(--text-2); line-height: var(--lh-relaxed); }
.tl-note b { color: var(--gold); margin-right: var(--sp-1-5); }
.check-eyebrow { display: block; font-size: var(--fs-11); font-weight: 800; color: var(--b-soft); letter-spacing: var(--ls-wide); margin-bottom: var(--sp-1); }
.check-card > b { line-height: var(--lh-normal); }
.teaser-theme { margin: var(--sp-5) auto 0; padding: var(--sp-3-5) var(--sp-4); border-radius: var(--r-md); background: rgba(var(--gold-rgb), .08); border: 1px dashed rgba(var(--gold-rgb), .4); max-width: 16rem; }
.teaser-theme small { display: block; font-size: var(--fs-12); color: var(--text-3); font-weight: 700; }
.teaser-theme b { display: block; font-size: var(--fs-18); color: var(--gold); margin-top: var(--sp-1); }
/* 친구 */
.fr-topic { display: inline-block; font-size: var(--fs-12); font-weight: 800; color: var(--gold); margin-right: var(--sp-1-5); }
/* 나는 누구 · 마이 */
.who-more { display: flex; align-items: center; justify-content: center; gap: var(--sp-1-5); width: 100%; min-height: 2.75rem; margin-top: var(--sp-2); font-size: var(--fs-13); color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.who-more .ic { width: 1rem; height: 1rem; }
.prof-edit { width: 100%; padding: var(--sp-3) var(--sp-4); text-align: left; }
.prof-edit .li-ic { background: rgba(var(--seal-rgb), .16); color: var(--seal-2); }
/* 내 정보 입력 시트 */
.pf-row { margin-top: var(--sp-4); }
.pf-row > label { display: block; font-size: var(--fs-13); font-weight: 700; color: var(--text-3); margin-bottom: var(--sp-2); }
.pf-input, .pf-sel { width: 100%; min-height: 3rem; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: rgba(var(--white-rgb), .06); color: var(--text); padding: 0 var(--sp-3-5); font-size: 16px; font-size: max(16px, var(--fs-16)); outline: none; }
.pf-input:focus, .pf-sel:focus { border-color: var(--gold); }
.who-name-box { margin-top: var(--sp-5); display: grid; gap: var(--sp-2); animation: fadeUp .35s var(--ease) both; }
.wn-label { font-size: var(--fs-14); font-weight: 700; color: var(--text); margin-top: var(--sp-1); }
.wn-label em { font-style: normal; font-weight: 500; color: var(--text-3); margin-left: var(--sp-1); }
.wn-input { font-size: 16px; font-size: max(16px, var(--fs-17)); }
.pf-sel { -webkit-appearance: none; appearance: none; padding-right: var(--sp-7); background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 1rem) 50%, calc(100% - .7rem) 50%; background-size: .3rem .3rem; background-repeat: no-repeat; }
.pf-sel option { background: var(--ink-2); color: var(--text); }
.pf-date { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--sp-1-5); }
.pf-seg button { font-size: var(--fs-14); }
.pf-time { color-scheme: dark; margin-top: var(--sp-2); }
.pf-check { display: flex; align-items: center; gap: var(--sp-2-5); min-height: 2.75rem; margin-top: var(--sp-1-5); font-size: var(--fs-15); }
.pf-check.on .agree-box { background: var(--seal); border-color: var(--seal); color: #fff; }
.pf-hint { margin: var(--sp-2) 0 0; font-size: var(--fs-12); color: var(--text-3); line-height: var(--lh-normal); }
.pf-hint.warn { color: var(--gold); }
.hchips { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-1-5); margin-top: var(--sp-2); }
.hchip { min-height: 3.1rem; border-radius: var(--r-md); background: rgba(var(--white-rgb), .06); border: 1px solid var(--line); display: grid; align-content: center; justify-items: center; gap: var(--sp-0-5); padding: var(--sp-1) var(--sp-1); transition: background var(--dur-1), border-color var(--dur-1); }
.hchip b { font-size: var(--fs-14); }
.hchip small { font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; }
.hchip.on { background: rgba(var(--seal-rgb), .16); border-color: var(--seal); }
.hchip.on small { color: var(--seal-soft); }
.hchip[disabled] { opacity: .3; pointer-events: none; }
/* 2027 신년운세 */
.yhero { padding: var(--sp-6) var(--sp-5); text-align: center; display: grid; justify-items: center; gap: var(--sp-2-5); background: radial-gradient(80% 70% at 50% 0%, rgba(var(--gold-rgb), .2), transparent 70%), var(--night); border-color: rgba(var(--gold-rgb), .25); }
.yhero .eyebrow { color: var(--gold); letter-spacing: var(--ls-wide); }
.yhero-who { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-15); }
.yhero-who .seal { --size: 1.75rem; }
.yhero h2 { margin: var(--sp-1) 0 0; font-size: var(--fs-22); line-height: var(--lh-normal); font-weight: 700; }
.yhero-sum { margin: var(--sp-1) 0 0; font-size: var(--fs-15); color: var(--text-2); line-height: var(--lh-loose); text-align: left; }
.ycats { display: grid; gap: var(--sp-2-5); }
.ycat { padding: var(--sp-4) var(--sp-4-5); }
.ycat-h { display: flex; align-items: center; gap: var(--sp-2-5); margin-bottom: var(--sp-2); }
.ycat-h .li-ic { width: 2.25rem; height: 2.25rem; border-radius: var(--r-md); background: rgba(var(--gold-rgb), .12); color: var(--gold); }
.ycat-h b { font-size: var(--fs-16); }
.ycat p { margin: 0; color: var(--text-2); font-size: var(--fs-14); line-height: var(--lh-loose); }
.ykv { display: flex; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-4); padding-top: var(--sp-3-5); border-top: 1px solid var(--line); font-size: var(--fs-14); }
.ykv span { color: var(--text-3); }
.ykv b { text-align: right; }
.ybranch { margin: var(--sp-3-5) 0 0; font-size: var(--fs-14); color: var(--text-2); line-height: var(--lh-relaxed); }
.ymc { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--sp-1); align-items: end; }
.ymc-col { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); }
.ymc-col .v { font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; }
.ymc-track { height: 5.5rem; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.ymc-bar { width: 70%; max-width: 1.1rem; border-radius: var(--r-xs) var(--r-xs) var(--r-xs) var(--r-xs); background: rgba(var(--white-rgb), .12); height: 0; transition: height var(--dur-5) var(--ease); }
.ymc-col.best .ymc-bar { background: linear-gradient(180deg, var(--gold), var(--seal)); }
.ymc-col.best .v { color: var(--gold); font-weight: 800; }
.ymc-col .m { font-size: var(--fs-12); color: var(--text-2); }
.ymonths { margin-top: var(--sp-3); padding: var(--sp-1) var(--sp-4-5); }
.ym { display: flex; gap: var(--sp-3-5); padding: var(--sp-3-5) 0; border-top: 1px solid var(--line); }
.ym:first-child { border-top: 0; }
.ym-m { flex: none; width: 2.75rem; display: grid; justify-items: center; gap: var(--sp-0-5); }
.ym-m b { font-size: var(--fs-15); }
.ym-m .hanja { font-size: var(--fs-13); color: var(--text-3); }
.ym-t { font-size: var(--fs-14); font-weight: 700; display: flex; align-items: center; gap: var(--sp-1-5); flex-wrap: wrap; }
.ym-t .num { color: var(--text-3); font-weight: 600; }
.ym p { margin: var(--sp-1) 0 0; font-size: var(--fs-13); color: var(--text-2); line-height: var(--lh-relaxed); }
.ym.best .ym-m b { color: var(--gold); }
.ylocked { position: relative; }
.ylocked .ym { border-top: 1px solid var(--line); }
/* 관상 */
.vf video, .vf canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.vf video { opacity: 0; transition: opacity var(--dur-3); background: #000; }
.face[data-phase="camera"] .vf video { opacity: 1; }
.vf canvas { display: none; }
.vf canvas.show { display: block; }
.vf .mirror { transform: scaleX(-1); }
.vf-intro { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); text-align: center; padding: var(--sp-6); background: radial-gradient(60% 50% at 50% 45%, rgba(var(--ink-rgb), .4), rgba(var(--ink-rgb), .85)); }
.vf-intro .ic { width: 2.5rem; height: 2.5rem; color: var(--gold); padding: var(--sp-2-5); box-sizing: content-box; border-radius: 50%; background: rgba(var(--gold-rgb), .12); }
.vf-intro b { font-size: var(--fs-18); }
.vf-intro span { font-size: var(--fs-13); color: var(--text-2); line-height: var(--lh-relaxed); }
.face[data-phase="camera"] .vf-intro, .face[data-phase="scan"] .vf-intro { display: none; }
.face[data-phase="camera"] .vf-sil, .face[data-phase="scan"] .vf-sil { display: none; }
.face .vf-guide, .face .vf-live { display: none; }
.face[data-phase="camera"] .vf-guide, .face[data-phase="scan"] .vf-guide { display: block; }
.face[data-phase="camera"] .vf-live { display: inline-flex; }
.face .ph-intro, .face .ph-camera { display: none; }
.face[data-phase="intro"] .ph-intro, .face[data-phase="fallback"] .ph-intro { display: inline-flex; }
.face[data-phase="camera"] .ph-camera { display: grid; }
.face[data-phase="loading"] .scan-txt { display: flex; }
.face[data-phase="loading"] .shutter-row .ph-intro { display: none; }
.face-msg { margin: var(--sp-3) 0 0; padding: var(--sp-3) var(--sp-3-5); border-radius: var(--r-md); background: rgba(var(--seal-rgb), .1); border: 1px solid rgba(var(--seal-rgb), .25); color: var(--seal-soft); font-size: var(--fs-13); line-height: var(--lh-relaxed); text-align: center; }
.face-upload { position: relative; margin-top: var(--sp-2); cursor: pointer; }
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.face-demo { display: none; margin: var(--sp-2) auto 0; min-height: 2.75rem; padding: 0 var(--sp-4); font-size: var(--fs-13); color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.face[data-phase="intro"] .face-demo, .face[data-phase="fallback"] .face-demo, .face[data-phase="loading"] .face-demo { display: block; } /* 모델을 기다리는 동안에도 데모로 넘어갈 수 있게 */
.face[data-phase="loading"] .face-upload, .face[data-phase="scan"] .face-upload { display: none; }
.face-kv { width: 100%; display: grid; gap: var(--sp-2); margin-top: var(--sp-2); text-align: left; }
.face-kv > div { padding: var(--sp-3) var(--sp-3-5); border-radius: var(--r-md); background: rgba(var(--white-rgb), .06); }
.face-kv small { display: block; font-size: var(--fs-12); color: var(--gold); font-weight: 800; }
.face-kv span { font-size: var(--fs-14); color: var(--text-2); line-height: var(--lh-relaxed); }
/* 내 사주 */
.me-head .btn { flex: none; }
.notice-btn { width: 100%; text-align: left; align-items: center; }
.notice-btn > .ic:last-child { margin-left: auto; }
.ptg { display: block; font-style: normal; font-size: var(--fs-12); font-weight: 800; color: var(--el); margin-top: var(--sp-0-5); min-height: .9em; }
.pcell .hanja { font-size: var(--fs-28); }
button.pcell.unk { width: 100%; }
.pun { font-size: var(--fs-12); color: var(--text-2); font-weight: 700; padding-top: var(--sp-0-5); }
.pcol.me .pun { color: var(--seal-2); }
.ilju { padding: var(--sp-5); }
.ilju-h { display: flex; gap: var(--sp-3-5); align-items: center; }
.ilju-g { display: flex; gap: var(--sp-1); flex: none; }
.ilju-g i { font-style: normal; width: 2.4rem; height: 2.6rem; border-radius: var(--r-md); display: grid; place-items: center; font-family: var(--f-hanja); font-weight: 900; font-size: var(--fs-24); color: var(--el); background: linear-gradient(rgba(var(--el-rgb), .16), rgba(var(--el-rgb), .16)), var(--night); border: 1.5px solid rgba(var(--el-rgb), .5); }
.ilju-h small { display: block; font-size: var(--fs-12); color: var(--text-3); font-weight: 700; }
.ilju-h b { display: block; font-size: var(--fs-18); line-height: var(--lh-snug); margin-top: var(--sp-0-5); }
.ilju-img { margin: var(--sp-4) 0 0; padding: var(--sp-3-5) var(--sp-4); border-radius: var(--r-md); background: var(--paper); color: var(--paper-ink); font-size: var(--fs-16); line-height: var(--lh-relaxed); }
.ilju-sum { margin: var(--sp-3-5) 0 0; font-size: var(--fs-15); color: var(--text); line-height: var(--lh-loose); }
.mkvs { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
.mkv { padding: var(--sp-3) var(--sp-3-5); border-radius: var(--r-md); background: rgba(var(--white-rgb), .04); }
.mkv span { display: block; font-size: var(--fs-12); font-weight: 800; color: var(--gold); letter-spacing: var(--ls-wide); }
.mkv p { margin: var(--sp-1) 0 0; font-size: var(--fs-14); color: var(--text-2); line-height: var(--lh-relaxed); }
.dm-card-lg { padding: var(--sp-1) var(--sp-5) var(--sp-5); }
.dm-card-lg .dm-card { padding: var(--sp-5) 0 0; }
.dm-core { margin: var(--sp-4) 0 0; font-size: var(--fs-15); line-height: var(--lh-loose); }
.dm-seen { margin: var(--sp-3-5) 0 0; font-size: var(--fs-13); color: var(--text-3); line-height: var(--lh-relaxed); }
.el-sum + .el-sum { margin-top: var(--sp-2); }
.st-title { display: block; font-size: var(--fs-18); line-height: var(--lh-normal); }
.gauge { position: relative; margin: var(--sp-5) 0 var(--sp-1); }
.gauge-track { display: grid; grid-template-columns: 44fr 12fr 44fr; height: 1.75rem; border-radius: var(--r-pill); overflow: hidden; font-size: var(--fs-11); font-weight: 800; }
.gauge-track span { display: grid; place-items: center; }
.gauge-track .z1 { background: rgba(var(--b-rgb), .2); color: var(--b-soft); }
.gauge-track .z2 { background: rgba(var(--ok-rgb), .2); color: var(--ok-soft); }
.gauge-track .z3 { background: rgba(var(--seal-rgb), .2); color: var(--seal-soft); }
.gauge-pin { position: absolute; top: -.35rem; width: .3rem; height: 2.45rem; margin-left: calc(var(--sp-0-5) * -1); border-radius: var(--r-pill); background: var(--text); box-shadow: 0 0 0 .2rem var(--night); }
.gauge-cap { margin: var(--sp-2) 0 0; font-size: var(--fs-13); color: var(--text-3); text-align: center; }
.gauge-cap b { color: var(--text); }
.st-text { margin: var(--sp-3-5) 0 0; font-size: var(--fs-15); color: var(--text-2); line-height: var(--lh-relaxed); }
.yong-h { display: flex; gap: var(--sp-3-5); align-items: center; }
.yong-h .seal { --size: 3rem; flex: none; }
.yong-h b { display: block; font-size: var(--fs-17); }
.yong-h small { color: var(--text-3); font-size: var(--fs-13); }
.subbar .gsub { display: block; font-size: var(--fs-12); color: var(--text-3); font-weight: 500; }
.tg-chips { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-1-5); margin-top: var(--sp-4); }
.tg-chip { padding: var(--sp-2-5) var(--sp-3); border-radius: var(--r-md); background: rgba(var(--white-rgb), .04); }
.tg-chip b { display: block; font-size: var(--fs-13); }
.tg-chip b .hanja { color: var(--text-3); font-size: var(--fs-12); }
.tg-chip span { display: block; font-size: var(--fs-12); color: var(--text-2); line-height: var(--lh-normal); margin-top: var(--sp-0-5); }
.shins { padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.shin { padding: var(--sp-3-5) 0; border-top: 1px solid var(--line); }
.shin:first-child { border-top: 0; }
.shin-h { display: flex; align-items: center; gap: var(--sp-1-5); flex-wrap: wrap; }
.shin-h b { font-size: var(--fs-16); }
.shin-h .hanja { color: var(--gold); font-size: var(--fs-14); }
.shin-h small { margin-left: auto; font-size: var(--fs-12); color: var(--text-3); }
.shin-s { font-size: var(--fs-14); font-weight: 700; color: var(--text); margin-top: var(--sp-1); }
.shin p { margin: var(--sp-1) 0 0; font-size: var(--fs-14); color: var(--text-2); line-height: var(--lh-relaxed); }
.uns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.un { padding: var(--sp-3-5); border-radius: var(--r-md); background: var(--night); border: 1px solid var(--line); display: grid; gap: var(--sp-0-5); }
.un small { font-size: var(--fs-12); color: var(--text-3); font-weight: 700; }
.un b { font-size: var(--fs-16); }
.un span { font-size: var(--fs-13); color: var(--text-2); line-height: var(--lh-normal); }
.dys { display: flex; gap: var(--sp-2); overflow-x: auto; padding: 0 var(--sp-5) var(--sp-2); scrollbar-width: none; scroll-snap-type: x proximity; }
.dys::-webkit-scrollbar { display: none; }
.dy { flex: none; width: 4.75rem; padding: var(--sp-3) var(--sp-1-5); border-radius: var(--r-md); background: var(--night); border: 1px solid var(--line); display: grid; justify-items: center; gap: var(--sp-1); scroll-snap-align: center; }
.dy small { font-size: var(--fs-12); color: var(--text-3); }
.dy b { font-size: var(--fs-12); }
.dy-g { display: grid; gap: var(--sp-0-5); }
.dy-g i { font-style: normal; font-family: var(--f-hanja); font-weight: 900; font-size: var(--fs-20); line-height: var(--lh-tight); color: var(--el); text-align: center; }
.dy.on { border-color: var(--gold); background: linear-gradient(180deg, rgba(var(--gold-rgb), .16), rgba(var(--gold-rgb), .04)), var(--night); box-shadow: 0 .5rem 1.25rem rgba(var(--gold-rgb), .12); }
.dy.on small:first-child { color: var(--gold); font-weight: 800; }
.dy-now { margin-top: var(--sp-2); }
.dy-now small { display: block; font-size: var(--fs-12); color: var(--gold); font-weight: 800; }
.dy-now b { display: block; font-size: var(--fs-18); margin-top: var(--sp-1); line-height: var(--lh-normal); }
.dy-now p { margin: var(--sp-1-5) 0 0; font-size: var(--fs-14); color: var(--text-2); line-height: var(--lh-relaxed); }
.dy-empty { display: flex; gap: var(--sp-3-5); align-items: center; margin: 0 var(--sp-5); }
.dy-empty b { display: block; font-size: var(--fs-15); }
.dy-empty small { display: block; font-size: var(--fs-13); color: var(--text-3); line-height: var(--lh-normal); margin-top: var(--sp-0-5); }
.dy-empty .btn { flex: none; }
.face-tip { font-size: var(--fs-12); color: var(--gold); background: rgba(var(--gold-rgb), .1); border-radius: var(--r-pill); padding: var(--sp-1) var(--sp-3); }

/* ── 구형 웹뷰: aspect-ratio(크롬 88+)가 없을 때 높이 ── */
@supports not (aspect-ratio: 1) {
  .story::before { content: ''; display: block; padding-top: 177.78%; }
  .shot { height: 19rem; }
  .shot-grid i::before { content: ''; display: block; padding-top: 133%; }
  .pcell { min-height: 5.25rem; }
}

/* ══════════ L-01~04 링크 궁합 ══════════ */
.lk-top { position: relative; z-index: 2; flex: none; display: flex; align-items: center; justify-content: space-between; padding: var(--sp-3-5) var(--sp-5) var(--sp-2-5); }
.lk-hero { padding: var(--sp-6) var(--sp-5) var(--sp-1); }
.lk-hero h1 { margin: var(--sp-3-5) 0 var(--sp-1-5); font-size: var(--fs-24); line-height: var(--lh-snug); font-weight: 700; letter-spacing: var(--ls-title); }
.lk-hero p { margin: 0; color: var(--text-2); font-size: var(--fs-15); line-height: var(--lh-relaxed); }
.lk-hero.center { text-align: center; display: grid; justify-items: center; }
.lk-sec { margin-top: var(--sp-6); padding: 0 var(--sp-5); }
.lk-label { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); font-size: var(--fs-15); font-weight: 800; margin: 0 0 var(--sp-2-5); letter-spacing: var(--ls-snug); }
.lk-label em { font-style: normal; font-weight: 500; color: var(--text-3); font-size: var(--fs-13); }
.relchips { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-1-5); }
.relchip { --c: var(--seal); min-height: 4.5rem; border-radius: var(--r-md); background: var(--night); border: 1.5px solid var(--line); display: grid; justify-items: center; align-content: center; gap: var(--sp-1); font-size: var(--fs-13); font-weight: 700; line-height: var(--lh-tight); text-align: center; padding: var(--sp-1-5) var(--sp-0-5); color: var(--text-2); transition: border-color var(--dur-2), background var(--dur-2), transform var(--dur-1) var(--ease); }
.relchip .hanja { font-size: var(--fs-20); line-height: var(--lh-none); color: var(--c); }
.relchip:active { transform: scale(.96); }
.relchip.on { border-color: var(--c); background: rgba(var(--white-rgb), .08); color: var(--text); }
.bf-date { font-size: var(--fs-22); font-weight: 700; letter-spacing: var(--ls-wide); text-align: center; min-height: 3.5rem; font-variant-numeric: tabular-nums; }
.bf-date::placeholder { color: var(--text-3); font-weight: 500; letter-spacing: 0; font-size: var(--fs-16); }
.bf-msg { min-height: 1.5rem; margin: var(--sp-2) 0 0; font-size: var(--fs-13); line-height: var(--lh-normal); display: flex; align-items: center; justify-content: center; gap: var(--sp-1-5); color: var(--text-3); text-align: center; flex-wrap: wrap; }
.bf-msg .ic { width: 1rem; height: 1rem; }
.bf-msg.ok { color: var(--ok-soft); }
.bf-msg.err { color: var(--seal-soft); }
.bf-opts { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2-5); }
.bf-opts .seg { flex: 1; }
.bf-opts .pf-check { margin-top: 0; flex: none; padding: 0 var(--sp-1); font-size: var(--fs-14); }
.bf-time { margin-top: var(--sp-3-5); }
.bf-time .lk-label { font-size: var(--fs-14); margin-bottom: var(--sp-1); }
.lk-toggle { display: flex; align-items: center; justify-content: center; gap: var(--sp-1-5); width: 100%; min-height: 2.75rem; margin-top: var(--sp-2); font-size: var(--fs-14); color: var(--text-2); }
.lk-toggle .ic { width: 1rem; height: 1rem; color: var(--text-3); }
.lk-toggle em { font-style: normal; font-size: var(--fs-12); color: var(--text-3); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 0 var(--sp-2); }
.lk-me { display: flex; align-items: center; gap: var(--sp-3-5); padding: var(--sp-4) var(--sp-4-5); }
.lk-me b { display: block; font-size: var(--fs-16); }
.lk-me small { display: block; color: var(--text-3); font-size: var(--fs-13); margin-top: var(--sp-0-5); }
.lk-names { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.lk-names label { display: block; font-size: var(--fs-12); color: var(--text-3); font-weight: 700; margin-bottom: var(--sp-1-5); }
/* 보내기 */
.lk-msg { margin: 0 auto; max-width: 20rem; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); color: var(--paper-ink); box-shadow: var(--shadow-lg); }
.lk-msg-art { position: relative; height: 9rem; display: flex; align-items: center; justify-content: center; gap: var(--sp-3); background: radial-gradient(60% 80% at 20% 20%, rgba(var(--seal-rgb), .6), transparent 70%), radial-gradient(60% 80% at 85% 80%, rgba(var(--b-rgb), .5), transparent 70%), var(--night); }
.lk-msg-art .seal { --size: 3.5rem; }
.lk-msg-art .seal.q { --c: rgba(var(--white-rgb), .12); color: #fff; box-shadow: inset 0 0 0 2px rgba(var(--white-rgb), .5); }
.lk-msg-art .vs { color: #fff; font-family: var(--f-serif); font-weight: 700; font-size: var(--fs-18); opacity: .8; }
.lk-msg-body { padding: var(--sp-4) var(--sp-4-5) var(--sp-3); }
.lk-msg-body b { display: block; font-size: var(--fs-17); line-height: var(--lh-snug); }
.lk-msg-body span { display: block; color: var(--paper-ink-2); font-size: var(--fs-13); margin-top: var(--sp-1); line-height: var(--lh-normal); }
.lk-msg-btn { margin: 0 var(--sp-4-5) var(--sp-4-5); min-height: 2.75rem; border-radius: var(--r-md); background: rgba(var(--paper-ink-rgb), .08); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-14); }
.lk-share { display: grid; gap: var(--sp-2); padding: 0 var(--sp-5); }
.lk-share-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.lk-share .btn { min-height: 3.25rem; font-size: var(--fs-15); }
.lk-steps { list-style: none; margin: 0; padding: var(--sp-2) var(--sp-4-5); }
.lk-steps li { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) 0; border-top: 1px solid var(--line); font-size: var(--fs-14); color: var(--text-2); line-height: var(--lh-relaxed); }
.lk-steps li:first-child { border-top: 0; }
.lk-steps li i { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: var(--fs-12); background: rgba(var(--seal-rgb), .16); color: var(--seal-2); }
.lk-steps li b { color: var(--text); }
.lk-demo { display: flex; align-items: center; justify-content: center; gap: var(--sp-1-5); margin: var(--sp-5) auto 0; min-height: 2.75rem; padding: 0 var(--sp-4); border-radius: var(--r-pill); border: 1px dashed rgba(var(--gold-rgb), .5); color: var(--gold); font-size: var(--fs-13); }
.lk-demo .ic { width: 1rem; height: 1rem; }
.lk-qr { width: 70vw; max-width: 15rem; margin: 0 auto; }
/* 받기 */
.lk-from { display: flex; align-items: center; justify-content: center; margin-top: var(--sp-1); }
.lk-from .seal { --size: 4rem; }
.lk-from .seal.q { --c: transparent; color: var(--text-3); box-shadow: inset 0 0 0 2px var(--line-strong); margin-left: calc(var(--sp-2-5) * -1); }
.lk-from .seal:first-child { transform: rotate(-6deg); }
.lk-from .seal.q { transform: rotate(6deg); }
.lk-sum { margin: var(--sp-3) 0 0; font-size: var(--fs-14); color: var(--text-2); line-height: var(--lh-relaxed); }
.lk-sum b { color: var(--text); }
.lk-empty { padding: var(--sp-12) var(--sp-5) 0; text-align: center; display: grid; justify-items: center; gap: var(--sp-3); }
.lk-empty .lock { width: 3.5rem; height: 3.5rem; }
.lk-empty .lock svg { width: 1.6rem; height: 1.6rem; }
.lk-empty h1 { margin: var(--sp-1) 0 0; font-size: var(--fs-22); font-weight: 800; line-height: var(--lh-normal); }
.lk-empty p { margin: 0; color: var(--text-2); font-size: var(--fs-15); line-height: var(--lh-relaxed); }
.lk-again { margin: var(--sp-6) var(--sp-5) 0; padding: var(--sp-5); display: flex; gap: var(--sp-4); align-items: center; background: linear-gradient(150deg, rgba(var(--seal-rgb), .16), transparent 60%), var(--night); }
.lk-again b { display: block; font-size: var(--fs-16); }
.lk-again small { display: block; color: var(--text-3); font-size: var(--fs-13); margin-top: var(--sp-0-5); line-height: var(--lh-normal); }
.lk-again .btn { flex: none; }

/* 자주 묻는 질문 (A-14) */
.faq { padding: 0; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--sp-4); cursor: pointer; font-size: var(--fs-15); font-weight: 600; line-height: var(--lh-normal); color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { flex: none; width: 1rem; height: 1rem; margin-left: auto; color: var(--text-3); transition: transform var(--dur-2); }
.faq-item[open] summary .ic { transform: rotate(90deg); }
.faq-a { padding: 0 var(--sp-4) var(--sp-4); font-size: var(--fs-13); line-height: var(--lh-relaxed); color: var(--text-2); }
.faq-a p { margin: 0 0 var(--sp-2); }
.faq-a p:last-child { margin-bottom: 0; }
