/* 월하당(가칭) V10 — 통합 사주 커머스 데모 */
:root {
  --ink: #17151f;
  --ink-2: #4a4556;
  --ink-3: #7b7486;
  --paper: #f7f2ea;
  --paper-2: #efe7da;
  --card: #fffdf9;
  --line: #e2d8c8;
  --navy: #0d0f2a;
  --navy-2: #171a3d;
  --moon: #f3e6c4;
  --gold: #c9a24a;
  --gold-2: #a8842f;
  --mildam: #150c07;
  --mildam-paper: #eadfc6;
  --cosmos: #0c0b0e;
  --star: #c9b8ff;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", "Noto Serif CJK KR", serif;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", system-ui, sans-serif;
  --radius: 14px;
  --wrap: 1200px;
  --head-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.boot { padding: 40vh 20px; text-align: center; color: var(--ink-3); }
.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(720px, 100% - 40px); }
.eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.lede { color: var(--ink-2); margin-top: 8px; }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.center { text-align: center; }
main:focus { outline: none; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: 15px; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { border-color: var(--ink); background: transparent; }
.btn.moon, .btn.ivory { background: var(--moon); color: var(--navy); }
.btn.gold { background: transparent; color: var(--gold); border-color: var(--gold); min-height: 56px; }
.btn.star { background: linear-gradient(135deg, #e8dcff, #b9a6f2); color: #120f22; }
.btn.ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn svg, .more svg, .char-cta svg { width: 18px; height: 18px; }
.text-link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: inherit; }

/* 데모 띠 + 헤더 */
.demo-ribbon { background: #26213a; color: #e9e2ff; font-size: 12px; text-align: center; padding: 6px 12px; line-height: 1.4; }
.demo-ribbon b { background: #f3e6c4; color: #26213a; border-radius: 4px; padding: 1px 6px; margin-right: 6px; font-size: 11px; letter-spacing: .08em; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(247, 242, 234, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { height: var(--head-h); display: flex; align-items: center; gap: 28px; width: min(1320px, 100% - 32px); margin: 0 auto; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; white-space: nowrap; }
.brand-ko { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.brand-han { font-family: var(--serif); font-size: 12px; color: var(--ink-3); }
.tentative { font-size: 10px; border: 1px solid var(--ink-3); color: var(--ink-3); border-radius: 4px; padding: 0 4px; line-height: 16px; align-self: center; }
.gnb { display: flex; gap: 4px; }
.gnb a { text-decoration: none; font-size: 16px; font-weight: 600; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); }
.gnb a:hover { color: var(--ink); background: var(--paper-2); }
.gnb a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.header-actions { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.head-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.head-btn:hover { background: var(--paper-2); color: var(--ink); }
.head-btn svg { width: 20px; height: 20px; }
.head-btn.account-on { color: var(--ink); background: var(--paper-2); }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; display: inline-grid; place-items: center; border-radius: 999px; font-size: 26px; line-height: 1; }
.icon-btn svg { width: 22px; height: 22px; }
.menu-btn { display: none; }
.gnb-mobile { display: none; }

/* 홈 히어로 */
.hero { position: relative; background: var(--navy); }
.hero-img { width: 100%; max-height: calc(100vh - 100px); min-height: 460px; object-fit: cover; object-position: 50% 40%; }
.hero-copy { position: absolute; inset: auto 0 0 0; padding: 0 0 clamp(24px, 4vw, 48px); background: linear-gradient(transparent, rgba(8, 9, 30, .82) 60%); }
.hero-actions { width: min(1320px, 100% - 40px); margin: 0 auto; display: flex; align-items: center; gap: 18px; justify-content: flex-end; padding-top: 80px; }
.hero-note { color: rgba(243, 230, 196, .86); font-size: 14px; }
.hero .btn.moon { min-height: 56px; font-size: 16px; padding: 0 32px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }

.continue { width: min(var(--wrap), 100% - 40px); margin: -28px auto 0; position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: 0 10px 30px rgba(23,21,31,.08); }
.continue img { width: 48px; height: 64px; object-fit: cover; border-radius: 8px; }
.continue .btn { margin-left: auto; min-height: 40px; }

/* 섹션 */
.band { padding: clamp(64px, 8vw, 112px) 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 8px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.more { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }

.questions { background: var(--paper); }
.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.q-chip { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .15s; }
.q-chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.q-text { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.4; }
.q-who { font-size: 13px; color: var(--ink-3); }

.characters { background: var(--paper-2); }
.char-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.char-tile { border-radius: 18px; overflow: hidden; background: var(--navy); color: #fff; }
.char-tile.t-mildam-newyear { background: var(--mildam); }
.char-tile.t-asteria-letter { background: #1a1028; }
.char-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.char-img { width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: rgba(255,255,255,.04); }
.char-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .6s; }
.char-link:hover .char-img img { transform: scale(1.04); }
.char-copy { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.char-cat { font-size: 12px; letter-spacing: .1em; color: rgba(255,255,255,.6); }
.char-name { font-family: var(--serif); font-size: 14px; color: var(--gold); }
.char-copy h3 { font-size: 24px; }
.char-hook { font-family: var(--serif); color: rgba(255,255,255,.82); margin-top: 6px; }
.char-cta { margin-top: auto; padding-top: 16px; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; color: var(--moon); }

/* 피처 밴드 */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; min-height: 560px; position: relative; overflow: hidden; }
.feature-art { min-height: 320px; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { padding: clamp(40px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; gap: 14px; position: relative; z-index: 1; }
.feature-copy h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.18; }
.feature-hook { font-family: var(--serif); font-size: clamp(18px, 1.8vw, 22px); }
.feature-copy .btn { align-self: flex-start; margin-top: 12px; }
.fact-list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fact-list li { border: 1px solid currentColor; border-radius: 999px; padding: 4px 12px; font-size: 13px; opacity: .85; }
.fact-list.small li { font-size: 12px; padding: 2px 10px; }
.wolha-feature { background: var(--navy); color: #f5efe0; }
.wolha-feature .eyebrow { color: var(--gold); }
.mildam-feature { grid-template-columns: 1fr 1fr; background: var(--mildam); color: var(--mildam-paper); }
.mildam-feature .eyebrow { color: var(--gold); }
.mildam-feature .feature-art img { object-position: 50% 20%; }
.toc-peek { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid rgba(201,162,74,.35); }
.toc-peek li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(201,162,74,.2); font-family: var(--serif); }
.toc-peek span { color: var(--gold); font-variant-numeric: tabular-nums; min-width: 56px; }
.asteria-feature { grid-template-columns: 1fr 1fr; background: var(--cosmos); color: #efeaff; }
.feature-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.asteria-feature .eyebrow { color: var(--star); }
.asteria-feature .feature-art { position: relative; z-index: 1; }
.asteria-feature .feature-art img { object-position: 50% 10%; mask-image: linear-gradient(to right, transparent, #000 25%); -webkit-mask-image: linear-gradient(to right, transparent, #000 25%); }
.asteria-feature .en { color: rgba(239,234,255,.7); font-style: italic; }
.lang-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.lang-pick .btn { margin-top: 0; }

.how { background: var(--paper); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps b { font-family: var(--serif); color: var(--gold-2); font-size: 22px; }
.steps h3 { font-size: 20px; margin: 10px 0 8px; }
.steps p { color: var(--ink-2); font-size: 15px; }

.journal-band { background: var(--paper-2); }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story a { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.story-img { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.story a:hover img { transform: scale(1.04); }
.story h3 { font-size: 20px; }
.story p:last-child { color: var(--ink-2); font-size: 15px; }

/* 푸터 */
.site-footer { background: #1b1822; color: #d8d2c6; padding: 64px 0 40px; font-size: 14px; }
.footer-top { width: min(var(--wrap), 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { color: #a9a39a; margin-top: 6px; }
.site-footer .brand-han, .site-footer .tentative { color: #a9a39a; border-color: #a9a39a; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer nav b { color: #fff; margin-bottom: 4px; }
.site-footer a, .site-footer .text-link { text-decoration: none; color: #d8d2c6; }
.site-footer a:hover, .site-footer .text-link:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-legal { width: min(var(--wrap), 100% - 40px); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid #3a3542; color: #8f8a82; font-size: 12px; display: grid; gap: 6px; }

/* 제공자 */
.pv { width: 44px; height: 44px; border-radius: 999px; border: 0; display: grid; place-items: center; }
.pv.kakao, .provider.kakao { background: #fee500; color: #191919; }
.pv.naver, .provider.naver { background: #03c75a; color: #fff; }
.pv.google, .provider.google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.provider-icon { width: 20px; height: 20px; }
.provider-icon.kakao { fill: #191919; }
.provider-icon.naver { fill: #fff; }

/* 드로어 */
#drawer .scrim, #modal .scrim { position: fixed; inset: 0; background: rgba(13, 12, 20, .55); z-index: 40; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(420px, 92vw); background: var(--paper); z-index: 41; overflow-y: auto; padding: 16px 24px 40px; box-shadow: 10px 0 40px rgba(0,0,0,.2); animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(-100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-account { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.drawer-account small { color: var(--ink-3); }
.mini-providers { display: flex; gap: 10px; }
.drawer-grid { display: grid; gap: 4px; margin-top: 16px; }
.drawer-col { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); padding: 12px 0; }
.drawer-col a { text-decoration: none; padding: 6px 0; color: var(--ink-2); font-size: 15px; }
.drawer-col a.drawer-cat { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.drawer-cat small { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; color: var(--ink-3); }

/* 모달 */
.modal { position: fixed; z-index: 50; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border-radius: 20px; padding: 32px 28px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.3); display: grid; gap: 14px; }
.modal-close { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 26px; }
.modal-brand { font-family: var(--serif); font-weight: 700; font-size: 20px; text-align: center; }
.modal-brand span { font-size: 12px; color: var(--ink-3); }
.modal h2 { font-size: 24px; text-align: center; }
.modal-sub { text-align: center; color: var(--ink-2); font-size: 15px; }
.demo-alert { background: #fff6dc; border: 1px solid #ecd59a; color: #5b4712; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.55; }
.demo-alert b { background: #5b4712; color: #fff6dc; border-radius: 4px; padding: 0 6px; margin-right: 6px; font-size: 11px; letter-spacing: .06em; }
.providers { display: grid; gap: 10px; }
.provider { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: 12px; border: 0; font-weight: 600; font-size: 15px; text-align: center; }
.provider em { font-style: normal; font-size: 11px; font-weight: 600; border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; opacity: .75; }
.skip-login { justify-self: center; font-size: 14px; }
.modal .fine { text-align: center; margin: 0; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.checkout-summary { display: flex; gap: 14px; align-items: center; background: var(--paper); border-radius: 12px; padding: 12px; }
.checkout-summary img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; }
.checkout-summary p { font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; max-width: calc(100vw - 32px); text-align: center; }

/* 일반 페이지 */
.page { padding-top: 48px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: clamp(32px, 4vw, 48px); margin-top: 6px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters a { text-decoration: none; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; }
.filters a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-label input { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; font: inherit; background: var(--card); margin-bottom: 28px; }
.product-list { display: grid; gap: 20px; }
.product-row { display: grid; grid-template-columns: 300px 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pr-img img { width: 100%; height: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 15%; }
.pr-copy { padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.pr-copy h2 { font-size: 28px; }
.pr-copy h2 a { text-decoration: none; }
.official { color: var(--ink-3); font-size: 14px; }
.pr-hook { font-family: var(--serif); font-size: 19px; margin-top: 8px; }
.pr-copy .char-name { color: var(--gold-2); }
.pr-actions { margin-top: auto; padding-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.empty { padding: 40px; text-align: center; color: var(--ink-3); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); display: grid; gap: 16px; justify-items: center; }
.discover .fine.center { margin: 32px 0 64px; }
.back { display: inline-block; text-decoration: none; color: var(--ink-3); font-size: 14px; margin-bottom: 16px; }

/* 결과 리더 */
.result .reader { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; padding-bottom: 80px; }
.toc-rail { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow-y: auto; border-right: 1px solid var(--line); padding-right: 20px; }
.toc-rail ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; }
.toc-rail a { display: block; text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 6px 8px; border-radius: 6px; }
.toc-rail a[aria-current="page"] { background: var(--ink); color: #fff; }
.reader-main { max-width: 680px; }
.reader-main h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 8px 0 20px; }
.demo-tag { background: #fff6dc; color: #5b4712; border-radius: 4px; padding: 1px 6px; letter-spacing: .04em; }
.progress-bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--gold); }
.progress-bar.small { margin: 8px 0 4px; }
.progress-text { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.letter { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(28px, 4vw, 48px); margin: 24px 0; font-family: var(--serif); font-size: 18px; line-height: 1.9; }
.letter .fine { font-family: var(--sans); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-actions .btn.dark { margin-left: auto; }

/* 서재 */
.shelf-note { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; font-size: 14px; color: var(--ink-2); margin-bottom: 24px; }
.shelf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.shelf-list article { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.shelf-list img { width: 96px; height: 128px; object-fit: cover; border-radius: 10px; }
.shelf-list h2 { font-size: 20px; }
.shelf-list .btn { margin-top: 10px; min-height: 40px; }
.saved { margin: 40px 0 80px; }
.saved h2 { font-size: 22px; margin-bottom: 12px; }
.saved ul { padding-left: 18px; }

/* 매거진 · 안내 */
.journal .story-grid { margin-bottom: 80px; }
.article h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 8px; }
.deck { color: var(--ink-2); font-size: 18px; margin: 10px 0 24px; }
.article-cover { border-radius: 18px; width: 100%; margin-bottom: 28px; }
.article-copy { font-family: var(--serif); font-size: 18px; line-height: 1.9; margin-bottom: 20px; }
.article-next { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 40px 0 80px; }
.article-next img { width: 72px; height: 96px; object-fit: cover; border-radius: 8px; }
.article-next .btn { margin-top: 8px; min-height: 40px; }
.guide p { margin: 14px 0; color: var(--ink-2); }
.guide h1 { font-size: 36px; margin: 6px 0 12px; }
.guide-nav { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0; }
.guide .btn { margin-bottom: 80px; }

/* 입력 폼 (공통 골격) */
.form-wrap { width: min(760px, 100% - 32px); margin: 0 auto; padding: 64px 0; }
.form-wrap > h2 { font-size: 28px; margin-bottom: 20px; text-align: center; }
.form-wrap form { display: grid; gap: 18px; }
.two-people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.person, .one-person { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 20px; margin: 0; display: grid; gap: 14px; min-width: 0; }
.person legend { font-family: var(--serif); font-weight: 600; font-size: 18px; padding: 0 6px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field input { min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 17px; letter-spacing: .04em; background: #fff; color: var(--ink); width: 100%; }
.field input:disabled { background: var(--paper-2); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.err { color: #b3261e; font-size: 13px; font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.seg, .chips { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend, .chips legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.seg > div, .chips > div { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label, .chips label { flex: 1; position: relative; min-width: 72px; }
.chips label { flex: 0 1 auto; }
.seg input, .chips input { position: absolute; opacity: 0; inset: 0; }
.seg span, .chips span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; cursor: pointer; }
.chips span { border-radius: 999px; }
.seg input:checked + span, .chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + span, .chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.seg.invalid span { border-color: #b3261e; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; min-height: 44px; }
.check input { width: 20px; height: 20px; }
.btn.submit { min-height: 56px; width: 100%; background: var(--ink); color: #fff; font-size: 17px; }
.faq { width: min(760px, 100% - 32px); margin: 0 auto; padding: 24px 0 72px; }
.faq h2 { font-size: 24px; margin-bottom: 12px; }
.faq details, .asteria-letter details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary, .asteria-letter summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.faq details p, .asteria-letter details p { margin-top: 8px; color: var(--ink-2); }
.sticky-cta { display: none; }

/* ===== 월하궁합 — navy 포스터 ===== */
.wolha-landing { background: var(--navy); color: #f2ecdf; }
.wolha-poster { min-height: calc(100vh - 100px); display: grid; place-items: center; padding: 40px 16px; background: radial-gradient(ellipse at 50% 0%, #1d2150, var(--navy) 70%); }
.poster-frame { position: relative; width: min(460px, 100%); aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.poster-frame > img { width: 100%; height: 100%; object-fit: cover; }
.poster-copy { position: absolute; inset: auto 0 0 0; padding: 120px 24px 24px; background: linear-gradient(transparent, rgba(9, 10, 32, .92) 45%); display: grid; gap: 8px; text-align: center; }
.wolha-brand { font-family: var(--serif); color: var(--moon); letter-spacing: .1em; font-size: 15px; }
.wolha-badge { font-size: 12px; color: rgba(243,230,196,.7); }
.poster-copy h1 { font-size: 40px; color: #fff; }
.poster-copy strong { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--moon); }
.poster-copy .btn { margin-top: 8px; width: 100%; }
.poster-copy small { font-size: 12px; color: rgba(243,230,196,.7); }
.wolha-what { width: min(1000px, 100% - 32px); margin: 0 auto; padding: 56px 0 8px; }
.wolha-what h2 { text-align: center; font-size: 28px; margin-bottom: 24px; color: var(--moon); }
.what-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.what-grid article { background: var(--navy-2); border: 1px solid rgba(243,230,196,.14); border-radius: var(--radius); padding: 22px; }
.what-grid h3 { font-size: 18px; color: var(--moon); margin-bottom: 8px; }
.what-grid p { font-size: 15px; color: rgba(242,236,223,.82); }
.wolha-landing .form-wrap > h2 { color: var(--moon); }
.wolha-landing .person { background: var(--navy-2); border-color: rgba(243,230,196,.18); }
.wolha-landing .person legend { color: var(--moon); }
.wolha-landing .field input { background: #0f1235; color: #fff; border-color: rgba(243,230,196,.25); }
.wolha-landing .seg span, .wolha-landing .chips span { background: #0f1235; border-color: rgba(243,230,196,.25); color: #e9e2cf; }
.wolha-landing .seg input:checked + span, .wolha-landing .chips input:checked + span { background: var(--moon); color: var(--navy); border-color: var(--moon); }
.wolha-landing .field em, .wolha-landing .fine { color: rgba(242,236,223,.62); }
.wolha-landing .btn.submit { background: var(--moon); color: var(--navy); }
.wolha-landing .err { color: #ffb4a8; }
.wolha-landing .faq details { border-color: rgba(243,230,196,.16); }
.wolha-landing .faq p { color: rgba(242,236,223,.8); }

/* ===== 사주밀담 — 2027 서아 게이트 + 32장 책 ===== */
.mildam-landing { background: #f4eee2; }
.mildam-gate { position: relative; background: var(--mildam); color: var(--mildam-paper); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 100px); }
.mildam-gate picture { display: flex; justify-content: center; background: #0d0704; }
.mildam-gate picture img { height: 100%; max-height: calc(100vh - 100px); width: auto; object-fit: contain; }
.gate-copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 48px clamp(24px, 5vw, 72px); max-width: 520px; }
.mildam-seal { font-family: var(--serif); font-size: 20px; color: var(--gold); letter-spacing: .08em; }
.mildam-seal span { font-size: 14px; opacity: .8; }
.gate-copy h1 { font-size: clamp(40px, 5vw, 60px); color: #f5ead2; }
.gate-year { font-family: var(--serif); letter-spacing: .3em; color: var(--gold); }
.gate-copy strong { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.6; }
.gate-copy .btn { align-self: flex-start; margin-top: 12px; min-width: 220px; }
.mildam-book { width: min(1000px, 100% - 32px); margin: 0 auto; padding: 72px 0 24px; }
.book-head { text-align: center; margin-bottom: 36px; }
.book-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 8px 0 10px; }
.book-head p:last-child { color: var(--ink-3); }
.book-parts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.book-parts section { background: #fbf7ee; border: 1px solid #e3d6bb; border-radius: var(--radius); padding: 22px 24px; }
.book-parts section:nth-child(4) { grid-row: span 2; }
.book-parts h3 { font-size: 18px; display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.book-parts h3 span { color: var(--gold-2); font-size: 13px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.book-parts ol { margin: 0; padding-left: 30px; font-family: var(--serif); font-size: 15px; display: grid; gap: 4px; }
.book-parts li::marker { color: var(--gold-2); font-variant-numeric: tabular-nums; }

/* ===== Asteria — 일본어 우선 별 풍경 ===== */
.asteria-landing { background: var(--cosmos); color: #ece8f6; }
.asteria-head { display: flex; align-items: center; gap: 20px; padding: 14px clamp(16px, 4vw, 48px); font-size: 13px; letter-spacing: .14em; border-bottom: 1px solid rgba(255,255,255,.08); }
.asteria-head a { text-decoration: none; color: rgba(236,232,246,.75); }
.asteria-head span { margin-right: auto; }
.lang-toggle { border: 1px solid rgba(236,232,246,.4); border-radius: 999px; padding: 6px 14px; letter-spacing: 0; }
.asteria-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 150px); overflow: hidden; }
.asteria-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 48px clamp(20px, 6vw, 96px); }
.asteria-kicker { color: var(--star); letter-spacing: .08em; }
.asteria-hero h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.3; color: #fff; }
.hero-text .btn { align-self: flex-start; }
.selene { position: relative; z-index: 1; width: 100%; height: 100%; max-height: calc(100vh - 150px); object-fit: cover; object-position: 50% 12%; mask-image: linear-gradient(to right, transparent, #000 30%); -webkit-mask-image: linear-gradient(to right, transparent, #000 30%); }
.asteria-questions { width: min(1100px, 100% - 32px); margin: 0 auto; padding: 72px 0; text-align: center; }
.asteria-questions h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 24px; }
.asteria-questions > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.q-card { min-height: 96px; border: 1px solid rgba(201,184,255,.3); background: rgba(201,184,255,.06); border-radius: var(--radius); color: #fff; font-family: var(--serif); font-size: 17px; }
.q-card:hover { background: rgba(201,184,255,.14); }
.asteria-cosmos { position: relative; }
.asteria-cosmos img { width: 100%; height: clamp(320px, 50vw, 560px); object-fit: cover; }
.asteria-cosmos h2 { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; font-size: clamp(24px, 3.4vw, 40px); color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.asteria-letter { width: min(1100px, 100% - 32px); margin: 0 auto; padding: 72px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.asteria-letter h2 { font-size: 28px; margin-bottom: 12px; }
.asteria-letter > div:first-child { display: grid; gap: 14px; align-content: start; }
.asteria-letter > div:first-child .btn { justify-self: start; }
.asteria-letter details { border-color: rgba(255,255,255,.12); }
.asteria-letter details p { color: rgba(236,232,246,.75); }
.asteria-sample { width: min(760px, 100% - 32px); margin: 0 auto; text-align: center; padding: 24px 0 24px; }
.asteria-sample h2 { font-size: 26px; margin-bottom: 18px; }
.asteria-sample blockquote { margin: 0; background: #f4efe6; color: #2a2433; border-radius: 16px; padding: 36px; font-family: var(--serif); text-align: left; line-height: 1.85; }
.s-title { font-size: 12px; letter-spacing: .14em; color: #7d6a9e; margin-bottom: 10px; font-family: var(--sans); }
.asteria-landing .form-wrap > h2 { color: #fff; }
.asteria-landing .one-person { background: #15121d; border-color: rgba(255,255,255,.12); }
.asteria-landing .field input { background: #0f0d15; border-color: rgba(255,255,255,.2); color: #fff; }
.asteria-landing .field em, .asteria-landing .fine { color: rgba(236,232,246,.6); }
.asteria-landing .btn.submit { background: linear-gradient(135deg, #e8dcff, #b9a6f2); color: #120f22; }
.asteria-landing .err { color: #ffb4a8; }

/* ===== 반응형 ===== */
@media (max-width: 1020px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .q-grid { grid-template-columns: 1fr 1fr; }
  .feature, .mildam-feature, .asteria-feature { grid-template-columns: 1fr; min-height: 0; }
  .feature-art { max-height: 520px; overflow: hidden; }
  .mildam-feature .feature-art { order: -1; }
  .asteria-feature .feature-art { order: -1; }
  .asteria-feature .feature-art img { mask-image: linear-gradient(to bottom, #000 60%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); }
  .result .reader { grid-template-columns: 1fr; gap: 24px; }
  .toc-rail { position: static; max-height: 280px; border-right: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; order: 2; }
  .asteria-questions > div { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --head-h: 56px; }
  html { scroll-padding-top: 110px; }
  .bar { gap: 6px; width: calc(100% - 16px); }
  .menu-btn { display: inline-grid; }
  .gnb, .wide-only { display: none; }
  .head-btn span { display: none; }
  .head-btn.account-on span { display: inline; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .head-btn { padding: 10px; }
  .brand-ko { font-size: 20px; }
  .gnb-mobile { display: flex; border-top: 1px solid var(--line); }
  .gnb-mobile a { flex: 1; text-align: center; text-decoration: none; padding: 10px 0; font-weight: 600; font-size: 15px; color: var(--ink-2); border-bottom: 2px solid transparent; }
  .gnb-mobile a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
  .demo-ribbon { font-size: 11px; }
  .hero-img { max-height: none; min-height: 0; aspect-ratio: 2 / 3; }
  .hero-copy { position: static; background: var(--navy); padding: 0 0 28px; margin-top: -2px; }
  .hero-actions { flex-direction: column; padding-top: 0; gap: 10px; }
  .hero .btn.moon { width: 100%; }
  .hero-note { font-size: 13px; text-align: center; }
  .continue { margin-top: 16px; }
  .section-head { margin-bottom: 24px; }
  .section-head.row { align-items: flex-start; flex-direction: column; }
  .q-grid { grid-template-columns: 1fr; }
  .q-chip { padding: 18px 20px; }
  .q-text { font-size: 17px; }
  .char-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
  .char-tile { scroll-snap-align: start; }
  .feature-copy { padding: 36px 20px 48px; }
  .feature-art { max-height: 460px; }
  .wolha-feature .feature-art img { object-position: 20% 50%; }
  .steps, .story-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .product-row { grid-template-columns: 1fr; }
  .pr-img img { aspect-ratio: 4 / 3; }
  .pr-copy { padding: 22px 20px; }
  .pr-copy h2 { font-size: 24px; }
  .two-people { grid-template-columns: 1fr; }
  .what-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 40px 0; }
  .wolha-poster { min-height: 0; padding: 16px 12px 32px; }
  .poster-copy h1 { font-size: 34px; }
  .mildam-gate { grid-template-columns: 1fr; min-height: 0; }
  .mildam-gate picture img { max-height: 70vh; width: 100%; object-fit: cover; object-position: 50% 30%; }
  .gate-copy { padding: 32px 20px 40px; text-align: center; align-items: center; margin: 0 auto; }
  .gate-copy .btn { align-self: stretch; }
  .book-parts { grid-template-columns: 1fr; }
  .book-parts section:nth-child(4) { grid-row: auto; }
  .book-parts section:nth-child(4) ol { columns: 2; display: block; }
  .asteria-hero { grid-template-columns: 1fr; min-height: 0; }
  .selene { order: -1; max-height: 62vh; mask-image: linear-gradient(to bottom, #000 65%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent); }
  .hero-text { padding: 0 20px 40px; margin-top: -40px; }
  .hero-text .btn { align-self: stretch; }
  .asteria-letter { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .asteria-head { gap: 12px; letter-spacing: .06em; }
  .sticky-cta { display: block; visibility: hidden; opacity: 0; transition: opacity .2s; position: sticky; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.55) 35%); }
  .sticky-cta.show { visibility: visible; opacity: 1; }
  .sticky-cta .btn { width: 100%; }
  .mildam-landing .sticky-cta .btn.gold { background: var(--mildam); }
  .result-actions .btn { flex: 1; }
  .result-actions .btn.dark { margin-left: 0; }
  .letter { font-size: 17px; }
  .shelf-list { grid-template-columns: 1fr; }
  .modal { padding: 28px 20px 20px; }
}
@media (max-width: 360px) {
  .brand-han { display: none; }
  .asteria-questions > div { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .seg label { min-width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Foxbunny형 셸 (fx1) — 앱 폭 칼럼 · 고정 헤더 · 캐러셀 · 탭 · 하단 탭
   상세·결과·매거진·안내(wide)는 V10 스타일을 그대로 쓰고 헤더만 공유한다.
   ===================================================================== */
:root {
  --fx-bg: #0b0d1a;
  --fx-field: #05060b;
  --fx-surface: #14172a;
  --fx-surface2: #1c2038;
  --fx-line: rgba(255, 255, 255, .09);
  --fx-text: #eeeaf6;
  --fx-muted: #a9a6bd;
  --fx-gold: #e9c98b;
  --fx-teal: #7ee6d3;
  --fx-rose: #f4a4b6;
  --fx-col: 480px;
}
body[data-shell="app"] { background: var(--fx-field); color: var(--fx-text); }
body[data-shell="app"] #app { max-width: var(--fx-col); margin: 0 auto; min-height: 100vh; background: var(--fx-bg); padding-bottom: calc(76px + env(safe-area-inset-bottom)); box-shadow: 0 0 0 1px var(--fx-line); }
body[data-shell="app"] .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
body .boot { color: var(--fx-muted); }

/* 헤더 */
.fx-header { position: sticky; top: 0; z-index: 30; background: rgba(11, 13, 26, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--fx-text); border-bottom: 1px solid var(--fx-line); }
.fx-bar { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo . act" "gnb gnb gnb"; align-items: center; padding: 0 12px 0 16px; }
.fx-logo { grid-area: logo; display: inline-flex; align-items: baseline; gap: 5px; font: 800 20px/1 var(--serif); letter-spacing: -.02em; text-decoration: none; color: var(--fx-text); height: 54px; align-items: center; }
.fx-logo span { font-size: 12px; font-weight: 500; color: var(--fx-gold); letter-spacing: .08em; }
.fx-logo em { font: 600 10px/1 var(--sans); font-style: normal; color: var(--fx-muted); border: 1px solid var(--fx-line); border-radius: 4px; padding: 2px 4px; }
.fx-logo.small { height: auto; font-size: 17px; grid-area: auto; }
.fx-logo.big { height: auto; font-size: 30px; justify-content: center; grid-area: auto; }
.fx-actions { grid-area: act; display: flex; align-items: center; gap: 6px; }
.fx-iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--fx-text); }
.fx-iconbtn svg { width: 22px; height: 22px; }
.fx-login { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(233, 201, 139, .45); background: rgba(233, 201, 139, .1); color: var(--fx-gold); font-size: 14px; font-weight: 700; text-decoration: none; }
.fx-profile { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--fx-text); font-size: 13px; min-height: 44px; }
.fx-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fx-gold); color: #1a1406; font-weight: 800; font-size: 14px; }
.fx-avatar.big { width: 48px; height: 48px; font-size: 18px; flex: none; }
.fx-gnb { grid-area: gnb; display: flex; gap: 4px; margin-left: -8px; }
.fx-gnb a { display: inline-flex; align-items: center; height: 40px; padding: 0 10px; color: var(--fx-muted); text-decoration: none; font-weight: 700; font-size: 15px; border-bottom: 2px solid transparent; }
.fx-gnb a[aria-current="page"] { color: var(--fx-text); border-bottom-color: var(--fx-gold); }
.fx-demo { padding: 4px 16px; font-size: 11.5px; line-height: 1.5; text-align: center; color: #d9c79e; background: rgba(233, 201, 139, .08); border-top: 1px solid var(--fx-line); }
.fx-demo b, .fx-demo-chip { display: inline-block; font-size: 10px; letter-spacing: .06em; background: var(--fx-gold); color: #1a1406; border-radius: 4px; padding: 0 5px; margin-right: 4px; font-weight: 800; }
@media (min-width: 761px) {
  body[data-shell="wide"] .fx-bar { grid-template-areas: "logo gnb act"; grid-template-columns: auto 1fr auto; gap: 28px; width: min(1200px, 100% - 48px); margin: 0 auto; padding: 0; height: 64px; }
  body[data-shell="wide"] .fx-gnb { margin: 0; }
  body[data-shell="wide"] .fx-gnb a { height: 64px; }
}

/* 공통 */
.fx-main { display: block; }
.fx-main h1, .fx-main h2 { font-family: var(--sans); }
.fx-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--fx-gold); text-transform: uppercase; }
.fx-muted { color: var(--fx-muted); font-size: 14px; }
.fx-muted.small { font-size: 12.5px; }
.fx-note { margin: 0 16px 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--fx-muted); font-size: 12.5px; line-height: 1.6; }
.fx-note a { color: var(--fx-gold); }
.fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; background: var(--fx-gold); color: #1a1406; font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.fx-btn.moon { background: linear-gradient(180deg, #f6e3b5, #e2bf78); }
.fx-btn.ghost { background: transparent; color: var(--fx-text); border-color: rgba(255, 255, 255, .22); }
.fx-btn.wide { width: 100%; }
.fx-btn:disabled { opacity: .45; cursor: not-allowed; }
.fx-textbtn { display: block; margin: 16px auto; background: none; border: 0; color: var(--fx-muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.fx-round { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--fx-line); background: rgba(255, 255, 255, .06); color: var(--fx-text); padding: 0; }
.fx-round svg { width: 18px; height: 18px; }
.fx-round:disabled { opacity: .35; cursor: default; }
.fx-section { margin-top: 28px; }
.fx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; margin-bottom: 12px; }
.fx-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.fx-head-ctrl { display: flex; align-items: center; gap: 6px; }
.fx-counter { font-size: 12.5px; color: var(--fx-muted); min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.fx-more { color: var(--fx-muted); font-size: 13.5px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.fx-more::after { content: " ›"; margin-left: 3px; }
.fx-card img, .fx-feature img, .fx-promo img, .fx-hero-img, .fx-mini-row img, .fx-list-item img, .fx-continue img { background: var(--fx-surface2); }
img.img-missing { min-height: 60px; color: transparent; }

/* 히어로 */
.fx-hero { position: relative; }
.fx-hero-img { width: 100%; height: min(120vw, 640px, max(320px, calc(100svh - 420px))); object-fit: cover; object-position: 50% 100%; }
.fx-hero-copy { position: relative; margin-top: 10px; padding: 0 16px; display: grid; gap: 8px; justify-items: stretch; text-align: center; }
.fx-hero-copy .fx-btn { min-height: 54px; font-size: 16px; border-radius: 14px; box-shadow: 0 10px 30px rgba(233, 201, 139, .18); }
.fx-hero-note { font-size: 12.5px; color: var(--fx-muted); }

/* 이어 읽기 */
.fx-continue { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; margin: 20px 16px 0; padding: 12px; border-radius: 16px; background: var(--fx-surface); border: 1px solid var(--fx-line); }
.fx-continue img { width: 52px; height: 66px; object-fit: cover; border-radius: 10px; }
.fx-continue .fx-btn { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* 소식 배너 */
.fx-promo { margin: 24px 16px 0; }
.fx-promo-slide { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 2.4 / 1; }
.fx-promo-slide[hidden] { display: none; }
.fx-promo-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-promo-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 16, .86), rgba(8, 9, 16, .2)); pointer-events: none; }
.fx-promo-slide.tone-paper::after { background: linear-gradient(90deg, rgba(36, 22, 10, .9), rgba(36, 22, 10, .25)); }
.fx-promo-slide a { position: relative; z-index: 1; display: grid; align-content: center; gap: 6px; height: 100%; padding: 0 22px; color: #fff; text-decoration: none; max-width: 78%; }
.fx-promo-title { font-size: 18px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.fx-promo-ctrl { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.fx-dots { display: flex; gap: 2px; }
.fx-dots button { width: 24px; height: 40px; border: 0; background: none; padding: 0; position: relative; }
.fx-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 4px; transform: translate(-50%, -50%); background: rgba(255, 255, 255, .3); transition: width .2s; }
.fx-dots button[aria-current="true"]::after { width: 18px; background: var(--fx-gold); }

/* 캐릭터 캐러셀 */
.fx-feature-track { list-style: none; margin: 0; padding: 0 16px; display: grid; grid-auto-flow: column; grid-auto-columns: 80%; column-gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.fx-feature-track::-webkit-scrollbar { display: none; }
.fx-feature { scroll-snap-align: start; }
.fx-feature a { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none; }
.fx-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.fx-feature a::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(6, 7, 14, .94) 70%); }
.fx-count { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .5); }
.fx-feature-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 6px; padding: 18px; }
.fx-pill { justify-self: start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(233, 201, 139, .2); border: 1px solid rgba(233, 201, 139, .5); color: #f6e3b5; }
.fx-feature-title { font-size: 23px; font-weight: 900; line-height: 1.3; letter-spacing: -.03em; }
.fx-feature-sub { font-size: 13.5px; color: rgba(255, 255, 255, .78); line-height: 1.5; }
.fx-card-cta { font-size: 13.5px; font-weight: 800; color: var(--fx-gold); }

/* 최근 본 */
.fx-mini-row { list-style: none; margin: 0; padding: 0 16px; display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.fx-mini-row a { display: grid; gap: 6px; color: var(--fx-text); text-decoration: none; font-size: 12.5px; line-height: 1.4; }
.fx-mini-row img { width: 112px; height: 140px; object-fit: cover; border-radius: 12px; }

/* 탭 · 태그 */
.fx-tabrow-label { margin: 0; font-size: 14px; font-weight: 700; color: var(--fx-muted); }
.fx-tabrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px; }
.fx-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.fx-tabs button { min-width: 52px; height: 36px; padding: 0 10px; border: 0; border-radius: 11px; background: transparent; color: var(--fx-muted); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 3px; }
.fx-tabs button small { font-size: 9.5px; font-weight: 600; opacity: .75; }
.fx-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .1); color: var(--fx-text); }
.fx-tagbtn { height: 36px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(94, 234, 212, .1); color: var(--fx-teal); font-weight: 800; font-size: 14px; }
.fx-tagbtn[aria-expanded="true"] { background: rgba(94, 234, 212, .18); }
.fx-tagpanel { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 16px 0; padding: 12px; border: 1px solid var(--fx-line); border-radius: 16px; background: rgba(255, 255, 255, .02); }
.fx-tagpanel[hidden] { display: none; }
.fx-tagpanel button { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--fx-line); background: rgba(255, 255, 255, .05); color: var(--fx-muted); font-size: 13px; font-weight: 600; }
.fx-tagpanel button[aria-pressed="true"] { background: rgba(94, 234, 212, .14); border-color: rgba(94, 234, 212, .5); color: var(--fx-teal); }
.fx-count-line { padding: 14px 16px 10px; font-size: 13px; color: var(--fx-muted); }

/* 2열 카드 */
.fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.fx-card { position: relative; }
.fx-card-link { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; }
.fx-card-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.fx-card.article .fx-card-link img { object-position: 50% 50%; }
.fx-card-link::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(6, 7, 14, .95) 68%); }
.fx-badge { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .5); }
.fx-card-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 4px; padding: 12px; }
.fx-card-title { font-size: 15px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.fx-card-sub { font-size: 12px; color: rgba(255, 255, 255, .72); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-card .fx-card-cta { font-size: 12.5px; }
.fx-fav { position: absolute; top: 4px; right: 4px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; padding: 0; }
.fx-fav svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(0, 0, 0, .45); }
.fx-fav[aria-pressed="true"] svg { fill: var(--fx-rose); stroke: var(--fx-rose); }

/* 빈 상태 · 보류 */
.fx-empty, .fx-hold { margin: 14px 16px 0; padding: 24px 18px; border: 1px dashed rgba(255, 255, 255, .18); border-radius: 16px; text-align: center; display: grid; gap: 8px; justify-items: center; color: var(--fx-muted); font-size: 14px; }
.fx-empty b, .fx-hold b { color: var(--fx-text); }
.fx-hold-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #1a1406; background: var(--fx-muted); border-radius: 4px; padding: 1px 6px; }

/* 소개 · 시작 */
.fx-intro { margin: 32px 16px 0; padding: 22px 18px; border-radius: 20px; background: linear-gradient(160deg, #1b2040, #121426); border: 1px solid var(--fx-line); display: grid; gap: 12px; }
.fx-intro h2 { font-size: 20px; font-weight: 800; line-height: 1.4; }
.fx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--fx-muted); }
.fx-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
.fx-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(233, 201, 139, .16); color: var(--fx-gold); font-size: 12px; }
.fx-intro .fx-note { margin: 0; }

/* 페이지 머리 · 검색 */
.fx-pagehead { padding: 24px 16px 12px; display: grid; gap: 4px; }
.fx-pagehead h1 { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.fx-search { position: relative; margin: 4px 16px 12px; }
.fx-search input { width: 100%; height: 48px; padding: 0 14px 0 44px; border-radius: 14px; border: 1px solid var(--fx-line); background: var(--fx-surface2); color: var(--fx-text); font: inherit; font-size: 15px; }
.fx-search input::placeholder { color: #7d7a92; }
.fx-search svg { position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; color: var(--fx-muted); pointer-events: none; }
.fx-catchips, .fx-segtabs { display: flex; gap: 8px; padding: 0 16px 14px; overflow-x: auto; scrollbar-width: none; }
.fx-catchips a, .fx-segtabs a { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--fx-line); color: var(--fx-muted); text-decoration: none; font-weight: 700; font-size: 14px; }
.fx-catchips a[aria-current="page"], .fx-segtabs a[aria-current="page"] { background: var(--fx-gold); border-color: var(--fx-gold); color: #1a1406; }
.fx-segtabs small { font-size: 11px; opacity: .75; }

/* 서재 · 마이 */
.fx-list { list-style: none; margin: 0; padding: 0 16px; display: grid; gap: 10px; }
.fx-list-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--fx-surface); border: 1px solid var(--fx-line); }
.fx-list-item img { width: 52px; height: 66px; object-fit: cover; border-radius: 10px; }
.fx-list-item .fx-btn { min-height: 40px; padding: 0 12px; font-size: 13.5px; }
.fx-subhead { font-size: 16px; font-weight: 800; padding: 24px 16px 8px; }
.fx-links { margin: 0; padding: 0 16px 0 34px; display: grid; gap: 6px; font-size: 14px; }
.fx-links a { color: var(--fx-text); }
.fx-shelf .fx-grid { margin-top: 4px; }
.fx-acct { display: flex; align-items: center; gap: 12px; margin: 0 16px; padding: 16px; border-radius: 18px; background: var(--fx-surface); border: 1px solid var(--fx-line); }
.fx-acct > div { flex: 1; min-width: 0; }
.fx-acct .fx-btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.fx-menu { list-style: none; margin: 14px 16px 0; padding: 0; border-radius: 18px; background: var(--fx-surface); border: 1px solid var(--fx-line); overflow: hidden; }
.fx-menu li + li { border-top: 1px solid var(--fx-line); }
.fx-menu a, .fx-held { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; min-height: 52px; padding: 0 16px; color: var(--fx-text); text-decoration: none; font-size: 15px; }
.fx-menu small { color: var(--fx-muted); font-size: 12.5px; }
.fx-held { opacity: .62; }

/* 로그인 */
.fx-loginpage { display: grid; place-items: center; min-height: calc(100vh - 120px); padding: 32px 16px; }
.fx-login-card { width: 100%; max-width: 400px; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; gap: 14px; text-align: center; }
.fx-login-card h1 { font-size: 20px; font-weight: 800; margin-top: 8px; }
.fx-login-card .demo-alert { text-align: left; }
.fx-login-card .provider { min-height: 54px; }
.fx-or { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; color: var(--fx-muted); font-size: 12.5px; }
.fx-or::before, .fx-or::after { content: ""; height: 1px; background: var(--fx-line); }
.fx-or span { grid-column: 2; }
.fx-or::after { grid-column: 3; grid-row: 1; }
.fx-login-card .fx-textbtn { margin: 4px auto 0; display: inline-flex; align-items: center; justify-content: center; color: var(--fx-text); }

/* 404 · 오류 */
.fx-state { padding: 64px 0 0; text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: center; }
.fx-state > :not(.fx-footer) { padding-inline: 16px; }
.fx-state h1 { font-size: 22px; font-weight: 800; }
.fx-state-actions { display: flex; gap: 10px; margin: 8px 0 32px; flex-wrap: wrap; justify-content: center; }
.fx-state .fx-footer { justify-self: stretch; text-align: left; }

/* 상세 위 뒤로 막대 */
.fx-backbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; height: 48px; padding: 0 8px; background: var(--fx-bg); color: var(--fx-text); border-bottom: 1px solid var(--fx-line); }
.fx-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--fx-text); font-size: 14px; }
.fx-back svg { width: 20px; height: 20px; }
.fx-backbar-title { font-size: 13.5px; color: var(--fx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.fx-backbar .fx-fav { position: static; }
@media (min-width: 761px) {
  .fx-backbar { padding: 0 max(16px, calc((100% - 1200px) / 2)); }
}

/* 하단 탭 */
.fx-tabbar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 40; width: min(var(--fx-col), 100%); display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(14, 16, 30, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--fx-line); }
.fx-tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; color: var(--fx-muted); text-decoration: none; font-size: 11.5px; font-weight: 600; }
.fx-tabbar svg { width: 22px; height: 22px; }
.fx-tabbar a[aria-current="page"] { color: var(--fx-gold); background: rgba(233, 201, 139, .08); }

/* 푸터 */
.fx-footer { margin-top: 40px; padding: 28px 16px 24px; border-top: 1px solid var(--fx-line); background: var(--fx-bg); color: var(--fx-muted); font-size: 13px; display: grid; gap: 14px; }
body[data-shell="wide"] .fx-footer { margin-top: 0; padding-inline: max(16px, calc((100% - 1200px) / 2)); }
.fx-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fx-foot-cols nav { display: grid; gap: 2px; align-content: start; }
.fx-foot-cols b { color: var(--fx-text); font-size: 13px; margin-bottom: 4px; }
.fx-foot-cols a { color: var(--fx-muted); text-decoration: none; min-height: 32px; display: flex; align-items: center; }
.fx-foot-cols strong { color: var(--fx-text); }
.fx-biz summary { cursor: pointer; color: var(--fx-text); min-height: 36px; display: flex; align-items: center; }
.fx-biz dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 6px 0; font-size: 12.5px; }
.fx-biz dt { color: var(--fx-text); }
.fx-biz dd { margin: 0; }
.fx-biz p { font-size: 12.5px; }
.fx-foot-demo { font-size: 12px; line-height: 1.6; }

@media (max-width: 360px) {
  .fx-feature-title { font-size: 20px; }
  .fx-tabs button { min-width: 44px; padding: 0 7px; }
  .fx-foot-cols { grid-template-columns: 1fr 1fr; }
  .fx-promo-title { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-feature-track { scroll-behavior: auto; }
  .fx-dots button::after { transition: none; }
}

/* ===== 12개 진열 · 캐릭터 변주 (w12) ===== */
[data-tone="navy"] { --tone: #8fa8ff; --tone-bg: rgba(143, 168, 255, .16); }
[data-tone="ink"] { --tone: #e9c98b; --tone-bg: rgba(233, 201, 139, .16); }
[data-tone="gold"] { --tone: #f2c76b; --tone-bg: rgba(242, 199, 107, .18); }
[data-tone="jade"] { --tone: #7ee6b8; --tone-bg: rgba(126, 230, 184, .15); }
[data-tone="crimson"] { --tone: #ff8f9f; --tone-bg: rgba(255, 143, 159, .16); }
[data-tone="cosmos"] { --tone: #c3a6ff; --tone-bg: rgba(195, 166, 255, .16); }
[data-tone] .fx-pill, [data-tone] .fx-badge { background: var(--tone-bg); border-color: var(--tone); color: #fff; }
[data-tone] .fx-card-cta { color: var(--tone); }
.fx-feature[data-tone] a { box-shadow: inset 0 0 0 1px var(--tone-bg); }
.fx-feature[data-tone] a::before { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--tone); z-index: 2; }

.fx-cast { list-style: none; margin: 0; padding: 0 16px; display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.fx-cast li { scroll-snap-align: start; }
.fx-cast a { display: grid; gap: 4px; padding: 10px; border-radius: 16px; background: var(--fx-surface); border: 1px solid var(--fx-line); color: var(--fx-text); text-decoration: none; min-height: 100%; position: relative; }
.fx-cast img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--tone); margin-bottom: 4px; }
.fx-cast b { font-size: 15px; }
.fx-cast span { font-size: 12px; line-height: 1.45; color: var(--fx-muted); }
.fx-cast small { font-size: 12px; color: var(--tone); font-weight: 700; }
.fx-cast em, .fx-draft { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px dashed var(--fx-muted); color: var(--fx-muted); }
.fx-cast a:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }

.fx-link-hero { position: relative; margin: 0; aspect-ratio: 4 / 5; max-height: 72vh; overflow: hidden; }
.fx-link-hero img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--fx-surface2); }
.fx-link-hero::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, var(--fx-bg)); }
.fx-link-hero figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; gap: 8px; align-items: center; }
.fx-link-hero .fx-draft { position: static; background: rgba(0, 0, 0, .5); }
.fx-link-body { padding: 4px 16px 24px; display: grid; gap: 12px; }
.fx-link-body h1 { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 900; }
.fx-link-hook { margin: 0; font-size: 17px; line-height: 1.55; color: var(--tone); font-weight: 700; }
.fx-link-body > p { margin: 0; line-height: 1.7; }
.fx-reads { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.fx-reads li { padding: 12px 14px; border-radius: 12px; background: var(--tone-bg); border-left: 3px solid var(--tone); }
.fx-facts { margin: 0; display: grid; gap: 1px; border-radius: 14px; overflow: hidden; background: var(--fx-line); }
.fx-facts div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 12px 14px; background: var(--fx-surface); }
.fx-facts dt { color: var(--fx-muted); font-size: 13px; }
.fx-facts dd { margin: 0; overflow-wrap: anywhere; }
.fx-link-cta { display: grid; gap: 8px; }
.fx-link-cta .fx-btn { text-align: center; min-height: 48px; display: grid; place-items: center; }
.fx-link .fx-grid { padding: 0; }

.fx-foot-note { font-size: 12px; line-height: 1.6; color: var(--fx-muted); }
