/* 든든사주 디자인 시스템 (시안 A4, 2026-10-03 승인)
   기준: 40대 이상 독자. 읽는 글자는 14px 이상, 본문 17px, 누르는 곳은 48px 이상.
   종이 바탕 위 회색 글자는 #56645d 보다 옅게 쓰지 않는다.
   글꼴: 본문 Pretendard, 제목 Noto Serif KR, 로고와 표지 제목 Nanum Brush Script(OFL), 장식 한자 Ma Shan Zheng(OFL).
   붓 장식(SVG)은 /assets/decorate.js 가 data-brush 속성을 보고 그린다. */

:root {
  --pine: #123a2c;
  --pine2: #1d5a44;
  --jade: #2f7d62;
  --gold: #c9a24a;
  --gold2: #e9d39a;
  --gold-ink: #7a5c12;
  --paper: #f7f4ec;
  --hanji: #f3ecdb;
  --hanji2: #efe8d6;
  --ink: #1d1a14;
  --ink2: #56645d;
  --ink3: #4a463b;
  --line: #e7e1d3;
  --line2: #f0ece2;
  --seal: #b23a2e;
  --seal2: #8f2c22;
  --card: #ffffff;
  --wood: #2f7d62;
  --fire: #c4473a;
  --earth: #a87a22;
  --metal: #6b7480;
  --water: #2c5a8c;
  --radius: 18px;
  --shadow: 0 18px 40px -20px rgba(14, 47, 36, 0.45);
  --shadow-s: 0 10px 24px -16px rgba(14, 47, 36, 0.5);
  --app: 480px;
  --tab-h: 76px;
  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --brush: "Nanum Brush Script", "Noto Serif KR", serif;
  --hanja: "Ma Shan Zheng", "Noto Serif KR", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pine2); text-underline-offset: 3px; }
img { max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--pine); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.serif { font-family: var(--serif); }
.brush { font-family: var(--brush); font-weight: 400; letter-spacing: 0; }
.hanja { font-family: var(--hanja); font-weight: 400; }
.brush-svg, [data-brush] > svg { pointer-events: none; }

/* ------------------------------------------------------------ 앱 틀 */
.app {
  max-width: var(--app);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  position: relative;
  padding-bottom: calc(var(--tab-h) + 28px + env(safe-area-inset-bottom));
  overflow-x: clip;
}
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px 6px; background: var(--hanji); position: relative; z-index: 4;
}
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; min-height: 48px; }
.logo-seal {
  position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 6px;
  background: var(--seal); color: #fbefe0; font-family: var(--serif); font-weight: 900; font-size: 14px; letter-spacing: -0.05em;
  transform: rotate(-3deg);
}
.logo-seal.is-brushed { background: transparent; }
.logo-seal svg { position: absolute; inset: 0; }
.logo-seal b { position: relative; font-weight: 900; }
.logo-name { font-family: var(--brush); font-size: 34px; line-height: 1; margin-top: 2px; }
.head-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border-radius: 999px;
  border: 1px solid #cdbf9c; background: rgba(255, 255, 255, 0.5); color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none;
}
.head-link svg { flex: none; }

/* 아래 탭 (휴대폰), 위 메뉴 (큰 화면) */
.tabbar {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(calc(100% - 20px), calc(var(--app) - 24px));
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(18, 35, 29, 0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 24px; padding: 6px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 60px; border-radius: 18px; color: #c9d8d0; text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.2;
}
.tabbar a svg { width: 24px; height: 24px; stroke: currentColor; }
.tabbar a[aria-current="page"] { color: #fff; font-weight: 800; background: rgba(255, 255, 255, 0.08); }
.tabbar a[aria-current="page"] svg { stroke: var(--gold2); }

/* ------------------------------------------------------------ 공용 조각 */
.main { display: block; }
.page { padding: 0 20px; }
.sec { padding: 30px 20px 0; }
.page .sec { padding-left: 0; padding-right: 0; }
.sec-t { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.sec-t h2, .sec h2, .page h2 { margin: 0; font-size: 21px; line-height: 1.4; letter-spacing: -0.03em; }
.page h2 { margin: 34px 0 12px; }
.page .sec-t h2 { margin: 0; }
h3 { font-size: 18px; line-height: 1.45; margin: 22px 0 8px; letter-spacing: -0.02em; }
.sub { margin: 4px 0 0; font-size: 15px; color: var(--ink2); line-height: 1.5; }
.more { display: inline-flex; align-items: center; min-height: 48px; font-size: 15px; color: var(--ink2); text-decoration: none; font-weight: 600; white-space: nowrap; }
.lead { font-size: 17px; color: var(--ink3); margin: 0 0 18px; line-height: 1.7; }
.note { font-size: 15px; color: var(--ink2); line-height: 1.6; }
.muted { color: var(--ink2); }
.card { background: var(--card); border-radius: var(--radius); padding: 20px; margin: 16px 0; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02); border: 1px solid var(--line2); }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.summary { font-size: 18px; font-weight: 700; line-height: 1.6; background: #f3eedf; border-radius: 14px; padding: 16px 18px; margin: 14px 0; }
.blot-dot { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.divider { display: block; height: 16px; margin: 0 0 4px; opacity: 0.5; overflow: hidden; }
.divider svg { width: 100%; height: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 58px; padding: 14px 20px; border: 0; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, var(--pine2), var(--pine)); color: #fff;
  font-family: var(--sans); font-size: 18px; font-weight: 800; text-align: center; text-decoration: none; line-height: 1.35;
  box-shadow: 0 8px 18px -10px rgba(18, 58, 44, 0.8);
}
.btn:hover { filter: brightness(1.06); }
.btn .arrow { color: var(--gold2); }
.btn.ghost { background: #fff; color: var(--pine); border: 2px solid var(--pine); box-shadow: none; }
.btn.gold { background: linear-gradient(180deg, #d6b55e, #b8902f); color: #1d1a14; }
.btn.small { min-height: 48px; font-size: 16px; padding: 10px 16px; width: auto; border-radius: 14px; }
.btn:disabled, .btn[aria-disabled="true"] { background: #b9b2a5; color: #fff; cursor: not-allowed; filter: none; box-shadow: none; }
.btn-row { display: grid; gap: 10px; margin: 14px 0 0; }
.linklike { font: inherit; font-size: 16px; background: none; border: 0; padding: 10px 0; min-height: 48px; color: var(--pine2); text-decoration: underline; cursor: pointer; font-weight: 700; }
.badge { display: inline-block; font-size: 14px; font-weight: 700; background: var(--pine); color: #fff; border-radius: 999px; padding: 2px 10px; vertical-align: middle; line-height: 1.5; }
.badge.free { background: var(--jade); }
.badge.gold { background: var(--gold2); color: var(--pine); }
.error { color: var(--seal2); font-weight: 700; margin: 12px 0 0; font-size: 16px; }
.ok-msg { color: var(--pine2); font-weight: 700; font-size: 16px; }

/* 안쪽 페이지 머리 (먹 산수화 띠) */
.phero { position: relative; overflow: hidden; background: var(--hanji); padding: 14px 20px 70px; margin-bottom: 4px; }
.phero .ink {
  position: absolute; left: -30px; right: -30px; bottom: -10px; height: 170px;
  background: var(--ink-img, url(/assets/img/ss_b.jpg)) 50% 45% / cover no-repeat;
  mix-blend-mode: multiply; opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 45%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 45%, #000 70%, transparent 100%);
}
.phero > *:not(.ink) { position: relative; z-index: 1; }
.phero .kicker { margin: 0; font-size: 15px; font-weight: 700; color: var(--seal2); }
.phero h1 { font-family: var(--serif); font-weight: 700; font-size: 29px; line-height: 1.35; margin: 6px 0 8px; letter-spacing: -0.03em; }
.phero .lead { margin: 0; color: var(--ink3); font-size: 17px; }
.phero .big-hanja { position: absolute; right: 16px; top: 4px; font-family: var(--hanja); font-size: 84px; line-height: 1; color: var(--ink); opacity: 0.85; z-index: 1; }
.crumbs { font-size: 15px; color: var(--ink2); margin: 0; }
.crumbs a { color: var(--ink2); }

/* ------------------------------------------------------------ 입력 양식 */
.form-card { background: #fff; border-radius: 22px; padding: 22px 18px; box-shadow: var(--shadow); margin: -48px 0 0; position: relative; z-index: 3; border: 0; }
.form-row { margin: 0 0 22px; }
.form-row > .label, .form-row > label.label { display: block; font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.field-unit { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; }
input[type="text"], input[type="number"], input[type="email"], input[type="tel"], input[type="date"], select {
  font: inherit; font-size: 19px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); min-height: 54px; width: 100%;
}
input[type="number"] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input:focus, select:focus { outline: 3px solid var(--gold2); border-color: var(--gold); }
input::placeholder { color: var(--ink2); opacity: 1; }
.date-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; }
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.date-grid .field-unit, .time-grid .field-unit { display: flex; }
.date-grid .field-unit input, .time-grid .field-unit select, .time-grid .field-unit input { flex: 1; min-width: 0; }
.echo { margin: 6px 0 0; font-size: 16px; font-weight: 700; color: var(--pine2); min-height: 1.2em; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 3px; }
.seg label { position: relative; display: grid; place-items: center; min-height: 50px; border-radius: 11px; font-size: 17px; font-weight: 700; color: var(--ink3); cursor: pointer; text-align: center; padding: 0 6px; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--pine); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--gold); }
.seg.is-disabled { opacity: 0.45; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-size: 17px; font-weight: 700; }
.check input { width: 22px; height: 22px; accent-color: var(--pine); }
.check:has(input:checked) { border-color: var(--pine); background: #e6f0eb; }
.form-row .row2 { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.who-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
details.more-opt { margin-top: 10px; }
details.more-opt summary { cursor: pointer; font-size: 16px; font-weight: 700; color: var(--pine2); min-height: 48px; display: flex; align-items: center; }

/* ------------------------------------------------------------ 홈 */
.hero { position: relative; background: var(--hanji); padding: 0 20px; height: 330px; overflow: hidden; margin-top: -2px; }
.hero .ink {
  position: absolute; left: -40px; right: -40px; top: 70px; height: 290px;
  background: url(/assets/img/ss_e.jpg) 38% 40% / cover no-repeat; mix-blend-mode: multiply; opacity: 0.95;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 70%, transparent 100%);
}
.hero .sun { position: absolute; right: 58px; top: 120px; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #d9553f, #a8281c); opacity: 0.9; z-index: 1; }
.hero .date { position: relative; z-index: 2; margin: 10px 0 0; font-size: 16px; color: var(--ink3); display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #cdbf9c; border-radius: 999px; padding: 3px 11px; font-size: 15px; color: var(--ink3); background: rgba(255, 255, 255, 0.5); }
.chip b { color: var(--seal); font-family: var(--hanja); font-weight: 400; font-size: 18px; line-height: 1; }
.greet { position: relative; z-index: 2; font-family: var(--serif); font-weight: 700; font-size: 27px; line-height: 1.4; margin: 10px 0 0; letter-spacing: -0.02em; color: var(--ink); }
.greet em, .swipe-em { font-style: normal; color: var(--pine2); position: relative; z-index: 1; box-shadow: inset 0 -9px 0 rgba(201, 162, 74, 0.35); }
.greet em.is-brushed, .swipe-em.is-brushed { box-shadow: none; }
.swipe-under { position: absolute; left: -6px; bottom: -4px; z-index: -1; pointer-events: none; }

.today { position: relative; z-index: 3; margin: -64px 16px 0; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 20px; }
.today .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.today .who { font-size: 15px; color: var(--ink2); line-height: 1.5; }
.today .who b { color: var(--ink); font-size: 16px; }
.today h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -0.03em; }
.today p.msg { margin: 12px 0 14px; font-size: 17px; line-height: 1.7; color: #2b3832; }
.today .title-line { font-family: var(--serif); font-weight: 700; font-size: 19px; margin: 12px 0 0; color: var(--pine2); }
.ring { position: relative; width: 80px; height: 80px; flex: 0 0 80px; }
.ring > svg { position: absolute; inset: 0; }
.ring .score { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-weight: 800; font-size: 25px; color: var(--pine); }
.ring .score small { font-size: 14px; font-weight: 600; color: var(--ink2); margin-top: 3px; }
.ring:not(.is-brushed) { border: 6px solid #efe9db; border-radius: 50%; }
.lucky { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lucky div { background: var(--paper); border-radius: 12px; padding: 10px 6px; text-align: center; font-size: 14px; color: var(--ink2); line-height: 1.4; }
.lucky b { display: block; font-size: 16px; color: var(--ink); margin-top: 2px; }
.empty-state { text-align: left; }
.empty-state p { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.5; margin: 6px 0 16px; letter-spacing: -0.02em; }
.empty-state .note { font-family: var(--sans); font-size: 15px; font-weight: 400; margin: 10px 0 0; }

.rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 8px; scroll-padding: 0 20px; scroll-snap-type: x proximity; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.book { flex: 0 0 236px; scroll-snap-align: start; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow-s); text-decoration: none; color: var(--ink); display: block; }
.cover { height: 156px; position: relative; padding: 16px; color: #fff; background-size: cover; background-position: center; background-blend-mode: multiply; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 65%); }
.cover > * { position: relative; z-index: 1; }
.cover .lbl { display: inline-block; font-size: 14px; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 999px; padding: 2px 10px; background: rgba(0, 0, 0, 0.15); }
.cover h3, .cover .ctitle { font-family: var(--brush); font-weight: 400; font-size: 36px; line-height: 1.05; margin: 10px 0 0; color: #fff; letter-spacing: 0; }
.c1 { background-color: #1d5a44; background-image: url(/assets/img/ss_a.jpg); }
.c2 { background-color: #a8352a; background-image: url(/assets/img/ss_f.jpg); }
.c3 { background-color: #3d4a7a; background-image: url(/assets/img/ss_g.jpg); }
.c4 { background-color: #7a5c12; background-image: url(/assets/img/ss_d.jpg); }
.c5 { background-color: #123a2c; background-image: url(/assets/img/ss_c.jpg); }
.book .meta { padding: 12px 16px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.book .meta span { font-size: 14px; color: var(--pine2); font-weight: 700; line-height: 1.4; }
.book .meta b { font-size: 18px; white-space: nowrap; }

.menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; background: #fff; border-radius: 20px; padding: 16px 8px 12px; }
.menu a { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; min-height: 96px; padding: 4px 0; border-radius: 14px; }
.menu .ic { width: 56px; height: 56px; border-radius: 17px; margin: 0 auto 6px; display: grid; place-items: center; }
.menu .ic svg { width: 50px; height: 50px; }
.menu .ic.is-brushed { background: transparent !important; }
.menu .free { display: block; font-size: 14px; color: var(--jade); font-weight: 700; }
.g1 { background: #e6f0eb; } .g2 { background: #f6ebe0; } .g3 { background: #ece9f4; } .g4 { background: #f3eedf; }

.zod { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.zod button, .zod a {
  min-height: 64px; min-width: 0; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.1; text-align: center; cursor: pointer; padding: 2px;
}
.zod b { display: block; font-family: var(--hanja); font-weight: 400; font-size: 25px; line-height: 1; margin-bottom: 3px; }
.zod [aria-pressed="true"], .zod .on { background: var(--pine); border-color: var(--pine); color: #fff; }
.zod [aria-pressed="true"] b, .zod .on b { color: var(--gold2); }
.fortune { background: #fff; border-radius: 18px; padding: 6px 18px; }
.fortune .row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line2); font-size: 16px; line-height: 1.6; }
.fortune .row:last-child { border-bottom: 0; }
.fortune .yr { flex: 0 0 64px; font-weight: 800; color: var(--pine2); }
.fortune .yr small { display: block; font-weight: 600; font-size: 14px; color: var(--ink2); }
.fortune .empty { padding: 16px 0; font-size: 16px; color: var(--ink3); }

.month-box { background: #fff; border-radius: 18px; padding: 16px 16px 18px; }
.month-box .m { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--ink2); margin-bottom: 10px; }
.month-box .m b { color: var(--ink); font-size: 18px; }
.sondays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sondays div { position: relative; border-radius: 14px; padding: 12px 0 10px; text-align: center; background: var(--paper); }
.sondays b { position: relative; z-index: 1; display: block; font-size: 22px; font-weight: 800; color: var(--pine); line-height: 1.2; }
.sondays small { position: relative; z-index: 1; display: block; font-size: 14px; color: var(--ink2); line-height: 1.4; }
.sondays .wk b { color: var(--seal); }
.sondays .past { opacity: 0.55; }
.enso-wrap { position: absolute; left: 50%; top: 0; transform: translateX(-50%); pointer-events: none; z-index: 0; }

.trust { margin: 30px 20px 0; border-radius: 20px; background: var(--hanji2); padding: 18px 18px 8px; position: relative; overflow: hidden; }
.trust::before { content: ""; position: absolute; inset: 0; background: url(/assets/img/ss_b.jpg) 80% 100% / 260% auto no-repeat; mix-blend-mode: multiply; opacity: 0.2; }
.trust > * { position: relative; }
.trust h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 20px; }
.trust .it { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(0, 0, 0, 0.07); font-size: 16px; line-height: 1.6; color: #3a3a2f; }
.trust .it b { display: block; color: var(--ink); font-size: 17px; }
.seal-num { position: relative; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--seal); color: #fbefe0; display: grid; place-items: center; font-family: var(--hanja); font-size: 20px; line-height: 1; }
.seal-num.is-brushed { background: transparent; }
.seal-num svg { position: absolute; inset: -3px; }
.seal-num span { position: relative; }
.about-home { padding: 30px 20px 0; }
.about-home h2 { font-size: 20px; margin: 0 0 8px; }
.about-home p { margin: 0 0 12px; color: var(--ink3); font-size: 16px; }
.tool-links { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tool-links a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; background: #fff; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------ 만세력 결과 (A3 + A4) */
.rbar { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: var(--hanji); border-top: 1px solid #e3d8bd; font-size: 15px; color: var(--ink3); }
.rbar b { font-size: 17px; color: var(--ink); }
.rhead { background: var(--hanji); color: var(--ink); padding: 18px 20px 84px; position: relative; overflow: hidden; min-height: 320px; }
.rhead .ink { position: absolute; inset: 0; background: var(--ink-img, url(/assets/img/ss_e.jpg)) 30% 60% / auto 150% no-repeat; mix-blend-mode: multiply; opacity: 0.9; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 42%); mask-image: linear-gradient(180deg, transparent 0, #000 42%); }
.rhead > *:not(.ink) { position: relative; z-index: 1; }
.rhead .who { font-size: 16px; color: var(--ink3); margin: 0; padding-right: 76px; }
.rhead h2 { font-family: var(--serif); font-size: 26px; line-height: 1.4; margin: 8px 0 0; font-weight: 700; padding-right: 70px; letter-spacing: -0.02em; }
.rhead .seal { position: absolute; right: 20px; top: 16px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 8px; background: var(--seal); color: #fbefe0; font-family: var(--hanja); font-size: 38px; line-height: 1; transform: rotate(4deg); }
.rhead .seal.is-brushed { background: transparent; }
.rhead .seal svg { position: absolute; inset: 0; }
.rhead .seal span { position: relative; }
.rhead .cap2 { position: absolute; left: 20px; bottom: 70px; font-size: 14px; color: var(--ink3); background: rgba(243, 236, 219, 0.88); padding: 3px 12px; border-radius: 999px; }
.sheet { margin: -56px 12px 0; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 16px 10px 14px; position: relative; z-index: 3; }
.sheet .cap { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink2); padding: 0 6px 10px; }
.pill { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.p { border-radius: 14px; background: var(--paper); text-align: center; padding: 8px 0 10px; min-width: 0; }
.p.me { background: linear-gradient(180deg, #fbf3dc, #f5e8c4); outline: 2px solid var(--gold); }
.p .pos { font-size: 14px; color: var(--ink3); font-weight: 700; line-height: 1.3; }
.p .god { font-size: 14px; color: var(--ink2); min-height: 20px; margin-top: 3px; line-height: 1.4; }
.p .ch { width: 54px; height: 54px; margin: 4px auto 0; border-radius: 12px; display: grid; place-items: center; font-family: var(--hanja); font-size: 34px; line-height: 1; color: #fff; }
.p .ko { font-size: 14px; color: var(--ink3); margin-top: 3px; line-height: 1.3; }
.p .empty { padding: 50px 4px; font-size: 14px; color: var(--ink2); }
.t-wood { background: var(--wood); } .t-fire { background: var(--fire); } .t-earth { background: var(--earth); } .t-metal { background: var(--metal); } .t-water { background: var(--water); }
.el-wood { color: var(--wood); } .el-fire { color: var(--fire); } .el-earth { color: var(--earth); } .el-metal { color: var(--metal); } .el-water { color: var(--water); }
.ohaeng { display: flex; align-items: center; gap: 16px; }
.ohaeng > svg { flex: 0 0 132px; }
.legend { flex: 1; display: grid; gap: 6px; }
.legend div { display: flex; align-items: center; gap: 8px; font-size: 16px; min-height: 28px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.legend b { margin-left: auto; }
.legend .hi { font-weight: 800; }
.tip { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #f3eedf; font-size: 16px; line-height: 1.65; }
.tip b { color: var(--pine2); }
.daeun { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 4px 20px 8px; scrollbar-width: none; }
.daeun::-webkit-scrollbar { display: none; }
.d { flex: 0 0 70px; border-radius: 14px; background: #fff; text-align: center; padding: 10px 0; border: 1px solid var(--line); line-height: 1.35; }
.d small { display: block; font-size: 14px; color: var(--ink2); }
.d b { display: block; font-family: var(--hanja); font-weight: 400; font-size: 24px; margin: 3px 0 1px; line-height: 1.1; }
.d span { font-size: 14px; color: var(--ink3); }
.d.now { background: var(--pine); border-color: var(--pine); color: #fff; }
.d.now small, .d.now span { color: #d6e6dd; }
.d.now b { color: var(--gold2); }
.d.now em { display: block; font-style: normal; font-size: 14px; font-weight: 800; color: var(--pine); background: var(--gold2); border-radius: 999px; margin: 4px 7px 0; }
.chap { background: #fff; border-radius: 18px; overflow: hidden; list-style: none; padding: 0; margin: 0; }
.chap li, .chap .row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line2); min-height: 56px; }
.chap li:last-child { border-bottom: 0; }
.chap .no { flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; font-weight: 800; color: var(--pine2); font-size: 15px; }
.chap .tt { flex: 1; font-size: 17px; font-weight: 700; line-height: 1.45; }
.chap .tt small { display: block; font-weight: 500; font-size: 14px; color: var(--ink2); margin-top: 2px; line-height: 1.5; }
.chap .lock { font-size: 14px; color: var(--ink2); white-space: nowrap; }
.chap .lock.free { color: var(--jade); font-weight: 800; }
.preview-box { background: #fff; border-radius: 18px; padding: 18px; position: relative; overflow: hidden; max-height: 230px; }
.preview-box h3 { margin: 0 0 8px; font-size: 18px; color: var(--pine2); }
.preview-box p { margin: 0; font-size: 17px; line-height: 1.75; }
.preview-box .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff); }
.buybar {
  position: sticky; bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom)); z-index: 20; margin: 24px 12px 0;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px 10px 10px 16px;
  display: flex; gap: 10px; align-items: center; box-shadow: 0 14px 30px -14px rgba(14, 47, 36, 0.55);
}
.buybar .pr { font-size: 14px; color: var(--ink2); line-height: 1.35; white-space: nowrap; }
.buybar .pr b { display: block; font-size: 21px; color: var(--ink); }
.buybar .btn { flex: 1; min-height: 56px; font-size: 17px; }
.share-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.btn.share { background: #fee500; color: #191600; box-shadow: none; }
.btn.share svg { flex: none; }
.share-msg { font-size: 15px; color: var(--pine2); font-weight: 700; margin: 8px 0 0; min-height: 1.4em; }

/* ------------------------------------------------------------ 리포트 미리보기 */
.chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.chapter { background: #fff; border-radius: 18px; padding: 18px; border: 1px solid var(--line2); }
.chapter h2 { margin: 0 0 10px; font-size: 19px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; line-height: 1.45; }
.chapter .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--paper); color: var(--pine2); font-size: 16px; font-weight: 800; flex: none; }
.chapter p { margin: 0 0 10px; font-size: 17px; line-height: 1.75; }
.locked-box { margin-top: 12px; border: 2px dashed var(--gold); border-radius: 14px; background: #fdf9f0; padding: 14px 16px; text-align: center; }
.locked-box b { display: block; font-size: 16px; }
.locked-box span { font-size: 15px; color: var(--ink2); }
.buy-box { border: 2px solid var(--gold); }
.buy-box h2 { margin: 0 0 8px; }
.refund-notice { font-size: 16px; padding-left: 1.2em; }
.refund-notice li { margin: 6px 0; }

/* ------------------------------------------------------------ 표, 질문, 문서 */
.table-wrap { overflow-x: auto; margin: 12px 0; border-radius: 14px; background: #fff; border: 1px solid var(--line2); }
.grid-table { border-collapse: collapse; width: 100%; font-size: 16px; }
.grid-table caption { text-align: left; font-weight: 800; padding: 12px 14px 8px; font-size: 16px; }
.grid-table th, .grid-table td { border-top: 1px solid var(--line2); padding: 12px 8px; text-align: center; line-height: 1.5; }
.grid-table thead th { background: var(--pine); color: #fff; font-weight: 700; font-size: 15px; }
.grid-table tbody th { background: #faf6ee; white-space: nowrap; }
.grid-table tbody th a { display: inline-flex; min-height: 44px; align-items: center; }
.son-table td { text-align: left; }
.sj-on { background: #fbefe0; font-weight: 800; color: var(--seal2); }
.sj-off { color: var(--ink2); }
.faq details { background: #fff; border: 1px solid var(--line2); border-radius: 16px; padding: 4px 18px; margin: 10px 0; }
.faq summary { font-weight: 800; cursor: pointer; min-height: 52px; display: flex; align-items: center; font-size: 17px; line-height: 1.5; padding: 8px 0; }
.faq details p { margin: 0 0 14px; font-size: 16px; }
.doc { padding: 0 20px; }
.doc h1 { font-family: var(--serif); font-size: 28px; margin: 18px 0 6px; }
.doc h2 { font-size: 19px; margin: 30px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.doc p, .doc li { font-size: 16px; line-height: 1.8; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.doc-wrap { overflow-x: auto; }
.credit-box { background: var(--hanji2); border-radius: 14px; padding: 14px 16px; font-size: 15px; }

/* ------------------------------------------------------------ 손 없는 날 달력 */
.cal-card { padding: 16px 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0 4px 12px; }
.cal-head h2 { margin: 0; font-size: 22px; font-family: var(--serif); }
.cal-nav { font: inherit; font-size: 15px; font-weight: 700; background: #fff; color: var(--pine); border: 2px solid var(--pine); border-radius: 12px; padding: 8px 10px; min-height: 48px; min-width: 48px; cursor: pointer; }
.cal-nav:disabled { opacity: 0.4; cursor: default; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 14px; padding: 4px 0 8px; color: var(--ink3); font-weight: 700; }
.cal td { vertical-align: top; height: 74px; padding: 4px 1px; text-align: center; border-top: 1px solid var(--line2); position: relative; }
.cal .sd { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 40px; height: 40px; font-size: 18px; font-weight: 800; }
.cal .ld { display: block; font-size: 14px; color: var(--ink2); line-height: 1.2; letter-spacing: -0.04em; }
.cal td.son .sd { color: var(--seal); }
.cal td.son .ld { color: var(--seal2); font-weight: 700; }
.cal th.sun, .cal td.sun .sd { color: var(--fire); }
.cal th.sat, .cal td.sat .sd { color: var(--water); }
.cal td.son.sun .sd, .cal td.son.sat .sd { color: var(--seal); }
.cal td.today .sd { background: var(--pine); color: #fff; border-radius: 50%; }
.cal .enso-wrap { top: 2px; }
.cal-legend { font-size: 15px; color: var(--ink2); display: flex; align-items: center; gap: 8px; margin: 10px 4px 0; }
.cal-legend .mark { position: relative; display: inline-grid; place-items: center; width: 34px; height: 30px; color: var(--seal); font-weight: 800; }

/* ------------------------------------------------------------ 삼재 */
.sj-card h3 { margin-top: 0; }
.sj-card.is-samjae { border: 2px solid var(--gold); }

/* ------------------------------------------------------------ 띠 */
.ddi-grid { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ddi-grid a { display: block; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 6px; text-decoration: none; color: var(--ink); min-height: 112px; }
.ddi-grid .hz { display: block; font-family: var(--hanja); font-size: 34px; line-height: 1.1; color: var(--seal); }
.ddi-grid b { display: block; font-size: 18px; margin-top: 4px; }
.ddi-grid span { display: block; font-size: 14px; color: var(--ink2); line-height: 1.45; }
.year-list { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.year-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px; text-align: center; }
.year-list span { display: block; font-size: 14px; color: var(--ink2); }
.ddi-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ddi-links li a, .ddi-links li b { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 16px; }
.ddi-links li b { background: var(--pine); color: #fff; border-color: var(--pine); }

/* ------------------------------------------------------------ 감명서 표지 카드 (리포트 종류) */
.books { display: grid; grid-template-columns: 1fr; gap: 14px; }
.books .book { flex: none; }
.books .cover { height: 168px; }
.books .desc { padding: 0 16px 16px; margin: 0; font-size: 16px; color: var(--ink3); line-height: 1.65; }

/* ------------------------------------------------------------ 사주함 */
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.person { background: #fff; border-radius: 18px; padding: 16px; border: 2px solid var(--line2); }
.person.active { border-color: var(--pine); }
.person .top { display: flex; align-items: center; gap: 12px; }
.person .hz { position: relative; flex: 0 0 52px; height: 52px; display: grid; place-items: center; font-family: var(--hanja); font-size: 30px; color: #fbefe0; background: var(--seal); border-radius: 10px; }
.person .hz.is-brushed { background: transparent; }
.person .hz svg { position: absolute; inset: 0; }
.person .hz span { position: relative; }
.person .nm { font-size: 18px; font-weight: 800; }
.person .nm small { font-size: 15px; color: var(--ink2); font-weight: 600; margin-left: 6px; }
.person .info { font-size: 15px; color: var(--ink2); line-height: 1.5; }
.person .acts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.person .acts .btn { width: 100%; font-size: 15px; padding: 8px; min-height: 48px; }

/* ------------------------------------------------------------ 바닥글 */
.site-foot { margin-top: 44px; padding: 24px 20px 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink2); line-height: 1.7; }
.site-foot a { color: var(--ink3); }
.site-foot .links { display: flex; gap: 0 4px; flex-wrap: wrap; margin-bottom: 10px; font-weight: 700; }
.site-foot .links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; font-size: 15px; }
.site-foot p { margin: 4px 0; }
.site-foot .credit { margin-top: 10px; }

/* ------------------------------------------------------------ 큰 화면 (900px 이상): 가운데 앱 기둥 + 뒤에 옅은 산수화 */
@media (min-width: 900px) {
  body { background: #e9e2cf; }
  body::before {
    content: ""; position: fixed; inset: 0; z-index: -1;
    background: url(/assets/img/ss_c.jpg) 50% 60% / cover no-repeat;
    opacity: 0.22; filter: grayscale(0.3);
  }
  body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 40%, rgba(243, 236, 219, 0) 30%, rgba(233, 226, 207, 0.85) 100%); }
  .app { margin: 24px auto 40px; min-height: calc(100vh - 64px); border-radius: 28px; box-shadow: 0 30px 80px -30px rgba(18, 35, 29, 0.45); overflow: clip; padding-bottom: 8px; }
  .tabbar {
    position: sticky; top: 0; bottom: auto; left: auto; transform: none; width: auto; margin: 0;
    border-radius: 0; padding: 4px 10px; background: rgba(18, 35, 29, 0.96);
  }
  .tabbar a { flex-direction: row; gap: 6px; min-height: 52px; font-size: 15px; }
  .tabbar a svg { width: 20px; height: 20px; }
  .buybar { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* 양식 묶음 */
fieldset.plain { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
fieldset.plain > legend { padding: 0; float: left; width: 100%; }
fieldset.plain > legend + * { clear: both; }
.time-off .seg, .time-off .time-grid, .time-off #sigan-wrap { opacity: 0.45; }



/* ------------------------------------------------------------ 맞춤 분석 카드 (홈, 감명서 목록) */
.finder-home { padding: 22px 16px 0; display: grid; gap: 10px; }
.finder-card {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-radius: 22px; text-decoration: none;
  color: #fff; background: linear-gradient(135deg, #123a2c, #1d5a44); box-shadow: var(--shadow); overflow: hidden;
}
.finder-card::before { content: ""; position: absolute; inset: 0; background: url(/assets/img/ss_c.jpg) 70% 60% / cover no-repeat; opacity: 0.16; mix-blend-mode: screen; }
.finder-card > * { position: relative; }
.fc-seal { position: relative; flex: 0 0 56px; height: 56px; display: grid; place-items: center; border-radius: 10px; background: var(--seal); color: #fbefe0; font-family: var(--serif); font-weight: 900; font-size: 16px; transform: rotate(-4deg); }
.fc-seal.is-brushed { background: transparent; }
.fc-seal svg { position: absolute; inset: 0; }
.fc-seal b { position: relative; }
.fc-text { display: grid; gap: 2px; line-height: 1.45; }
.fc-text b { font-family: var(--serif); font-size: 21px; letter-spacing: -0.02em; }
.fc-text span { font-size: 15px; color: #d6e6dd; } /* on-dark */
.fc-text .fc-kicker { color: var(--gold2); font-weight: 700; } /* on-dark */
.finder-card .go { margin-left: auto; font-size: 30px; color: var(--gold2); line-height: 1; } /* on-dark */
.finder-card.small { padding: 0; margin: 0 0 16px; background: none; box-shadow: none; }
.finder-card.small::before { display: none; }
.finder-card.small a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; padding: 16px; border-radius: 18px; background: #fff; border: 2px solid var(--pine); color: var(--ink); text-decoration: none; }
.finder-card.small a b { font-size: 17px; }
.finder-card.small a span { grid-column: 1; font-size: 15px; color: var(--ink2); }
.finder-card.small a .go { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 28px; color: var(--pine); }
.explore-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 64px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.explore-link .ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; }
.explore-link .ic svg { width: 42px; height: 42px; }
.explore-link .ic.is-brushed { background: transparent !important; }
.explore-link span:last-child { display: grid; font-size: 15px; color: var(--ink2); line-height: 1.45; }
.explore-link b { font-size: 17px; color: var(--ink); }
.next-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.next-row .btn { font-size: 16px; padding: 10px 8px; }

/* ------------------------------------------------------------ 감명서 표지 색 (상품이 늘어 더 둔다) */
.c6 { background-color: #5a4a2a; background-image: url(/assets/img/ss_b.jpg); }
.c7 { background-color: #6a2f3c; background-image: url(/assets/img/ss_e.jpg); }
.c8 { background-color: #2c5a8c; background-image: url(/assets/img/ss_b.jpg); }
.c9 { background-color: #8f2c22; background-image: url(/assets/img/ss_f.jpg); }
.book.soon .meta span { color: var(--seal2); }

/* ------------------------------------------------------------ 탭과 단계 */
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: -40px 0 18px; position: relative; z-index: 3; background: #fff; border-radius: 18px; padding: 5px; box-shadow: var(--shadow-s); }
.tabs [role="tab"] { min-height: 52px; border: 0; border-radius: 14px; background: transparent; font-size: 17px; font-weight: 800; color: var(--ink3); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--pine); color: #fff; }
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps li { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink2); padding: 8px 6px; border-bottom: 3px solid var(--line); line-height: 1.3; }
.steps .sn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--ink3); font-size: 14px; flex: none; }
.steps li.on { color: var(--ink); border-color: var(--seal); }
.steps li.on .sn { background: var(--seal); color: #fff; }
.steps li.done { color: var(--pine2); border-color: var(--pine2); }
.steps li.done .sn { background: var(--pine2); color: #fff; }
.step-h { font-family: var(--serif); font-size: 22px; line-height: 1.4; margin: 6px 0 4px; letter-spacing: -0.02em; }
.page .step-h { margin: 6px 0 4px; }
.step-h:focus { outline: none; }
.step-nav { margin-top: 18px; display: grid; gap: 10px; }
.step-nav.two { grid-template-columns: 1fr 2fr; }
.pick-list { display: grid; gap: 8px; margin: 14px 0 10px; }
.pick { display: grid; gap: 2px; text-align: left; width: 100%; min-height: 64px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.pick b { font-size: 18px; }
.pick small { font-size: 15px; color: var(--ink2); font-weight: 600; }
.pick span { font-size: 15px; color: var(--ink2); line-height: 1.5; }
.pick.on { border-color: var(--pine); background: #e6f0eb; }
#quick-form .form-card { margin: 12px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.chip-btn { min-height: 48px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-size: 17px; font-weight: 700; color: var(--ink); cursor: pointer; line-height: 1.3; }
.chip-btn[aria-pressed="true"], .chip-btn[aria-checked="true"] { background: var(--pine); border-color: var(--pine); color: #fff; }
.chips.when .chip-btn { flex: 1 1 40%; }
.chips.filter { margin: 4px 0 10px; }
.chips.filter .chip-btn { font-size: 16px; padding: 6px 14px; }

/* ------------------------------------------------------------ 추천 결과 */
.rec-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.rec { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-s); }
.rec-cover { display: block; height: 118px; text-decoration: none; }
.rec-cover .ctitle { display: block; font-family: var(--brush); font-size: 32px; line-height: 1.05; margin-top: 8px; color: #fff; }
.rec-body { padding: 14px 16px 16px; }
.rec-body h3 { margin: 0 0 6px; font-size: 19px; }
.why { margin: 0 0 8px; font-size: 17px; line-height: 1.7; }
.matched { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--pine2); }
.because { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.because li { font-size: 14px; padding: 2px 10px; border-radius: 999px; background: #f3eedf; color: var(--ink3); }
.rec-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rec-foot b { font-size: 18px; }
.tools-h { margin: 24px 0 8px; font-size: 19px; }
.free-tools a { display: grid; gap: 2px; padding: 12px 16px; min-height: 64px; }
.free-tools a span { font-weight: 400; font-size: 15px; color: var(--ink2); line-height: 1.5; }
.rule-box { margin-top: 18px; background: #fff; border: 1px solid var(--line2); border-radius: 16px; padding: 4px 16px; }
.rule-box summary { min-height: 52px; display: flex; align-items: center; font-weight: 800; cursor: pointer; font-size: 16px; }
.rule-box p { font-size: 16px; margin: 0 0 12px; }
.ask-box { width: 100%; font: inherit; font-size: 18px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); min-height: 96px; resize: vertical; margin-top: 10px; }
.ask-box:focus { outline: 3px solid var(--gold2); border-color: var(--gold); }
#ask-go { margin-top: 10px; }
.doshi-note { margin-top: 22px; background: #fdf9f0; border: 2px dashed var(--gold); }
.re-title { font-family: var(--serif); font-weight: 700; font-size: 19px; margin: 0 0 4px; }

/* ------------------------------------------------------------ 감명서 상세 */
.product-hero { padding-bottom: 86px; }
.ptitle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 6px; }
.ptitle { margin: 0; font-weight: 400; }
.ptitle .brush { font-size: 46px; line-height: 1.02; color: var(--ink); display: block; }
.pseal { position: relative; flex: 0 0 60px; height: 60px; display: grid; place-items: center; border-radius: 10px; background: var(--seal); color: #fbefe0; font-family: var(--serif); font-weight: 900; font-size: 24px; transform: rotate(5deg); }
.pseal.is-brushed { background: transparent; }
.pseal svg { position: absolute; inset: 0; }
.pseal b { position: relative; }
.price-card { position: relative; z-index: 3; margin: -50px 0 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-card .pname { display: block; font-size: 15px; color: var(--ink2); font-weight: 700; }
.price-card .pprice { font-size: 26px; letter-spacing: -0.02em; }
.pstatus { font-size: 15px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: #f3eedf; color: var(--ink3); white-space: nowrap; }
.pstatus.soon { background: #fbefe0; color: var(--seal2); }
.contents-list li { min-height: 56px; }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 12px 14px; font-size: 17px; line-height: 1.55; border: 1px solid var(--line2); }
.ck { flex: 0 0 24px; height: 24px; border-radius: 6px; background: var(--pine); position: relative; margin-top: 2px; }
.ck::after { content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.method-card p { margin: 0 0 10px; font-size: 17px; }
.pv-free { max-height: none; }
.pv-locked { margin-top: 12px; }
.pv-locked .locked-row { display: block; border-bottom: 0; padding: 4px 12px 14px; }
.review-empty { text-align: center; padding: 26px 18px; background: #fdfbf5; }

/* ------------------------------------------------------------ 내 사주 지도 */
.map-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; color: var(--ink3); margin: 0 0 6px; }
.map-who b { font-size: 18px; color: var(--ink); }
.map-who .more { margin-left: auto; }
.map-box { position: relative; background: #fffdf6; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; touch-action: pan-y; }
.saju-map, .site-map { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.saju-map .zl { font-size: 16px; font-weight: 700; fill: var(--ink3); }
.saju-map .zh { font-family: var(--hanja); font-size: 22px; font-weight: 400; }
.saju-map .ll { font-size: 15px; font-weight: 800; }
.saju-map .nh { font-family: var(--hanja); font-size: 24px; fill: #fff; pointer-events: none; }
.saju-map .nl { font-size: 16px; font-weight: 800; fill: var(--ink); paint-order: stroke; stroke: #fffdf6; stroke-width: 4px; pointer-events: none; }
.saju-map .nd, .site-map .sn { cursor: pointer; }
.zoom { display: flex; justify-content: flex-end; gap: 6px; margin: 8px 0 0; }
.zoom button { min-width: 48px; min-height: 48px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.92); font-size: 18px; font-weight: 800; color: var(--ink); cursor: pointer; padding: 0 10px; }
.zoom button[data-z="reset"] { font-size: 15px; }
.node-panel { margin-top: 14px; border: 2px solid var(--pine); }
.node-panel:focus { outline: 3px solid var(--gold); }
.node-panel p { margin: 0 0 10px; font-size: 17px; line-height: 1.7; }
.kicker-s { display: flex; align-items: center; gap: 8px; font-size: 15px !important; font-weight: 700; color: var(--ink3); margin: 0 0 4px !important; }
.kicker-s .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.np-title { display: flex; align-items: center; gap: 10px; font-size: 19px !important; margin: 0 0 10px !important; line-height: 1.4; }
.np-hz { font-family: var(--hanja); font-size: 34px; font-weight: 400; line-height: 1; }
.np-link { display: grid; gap: 2px; margin: 6px 0 4px; padding: 12px 14px; border-radius: 14px; background: #f3eedf; text-decoration: none; color: var(--ink); }
.np-link span { font-size: 14px; color: var(--ink3); font-weight: 700; }
.np-link b { font-size: 18px; }
.np-link em { font-style: normal; font-size: 15px; color: var(--pine2); font-weight: 700; }
.np-price { font-weight: 800; }
.node-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.node-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; text-decoration: none; color: var(--ink); }
.node-btn b { display: block; font-size: 16px; }
.node-btn small { display: block; font-size: 14px; color: var(--ink2); line-height: 1.45; }
.nb-hz { flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-family: var(--hanja); font-size: 22px; line-height: 1; }
.nb-hz.kind-product { background: var(--seal); font-family: var(--serif); font-size: 16px; }
.nb-hz.kind-tool { background: var(--jade); font-family: var(--serif); font-size: 16px; }
.nb-hz.kind-ddi { background: #4b5a8c; }
.btn-row.two { grid-template-columns: 1fr 1fr; }
.search-row { display: block; margin: 12px 0 0; }
.search-row input { width: 100%; font: inherit; font-size: 18px; min-height: 54px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.site-map .sh { font-family: var(--hanja); font-size: 16px; fill: #fff; pointer-events: none; }
.site-map .sl { font-size: 15px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #fffdf6; stroke-width: 4px; pointer-events: none; }
.site-map .sc { font-size: 15px; font-weight: 800; fill: #fff; pointer-events: none; }


/* ------------------------------------------------------------ 카드 뉴스와 그림 풀이 (2026-10-03)
   카드: report/cards.js 의 renderDeck, 동작: /assets/cards.js. 그림: report/visuals.js (viewBox 폭 360, 글자 14 이상).
   그림 SVG 는 폭 100% 로 그린다. 폭 430px 화면에서 카드 안쪽 폭이 약 358px 이라 그림 속 글자가 13px 아래로 줄지 않는다. */
.deck { margin: 14px 0 6px; }
.deck-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.deck-note { margin: 0; font-size: 15px; color: var(--ink2); line-height: 1.5; }
.deck-count { margin: 0; font-size: 16px; color: var(--ink3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.deck-count b { font-size: 20px; color: var(--ink); }
.deck-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; position: relative;
  padding: 10px 0 14px; scrollbar-width: none; overscroll-behavior-x: contain; align-items: stretch;
}
.deck-track::-webkit-scrollbar { display: none; }
.ncard {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 4 / 5; position: relative;
  background: #fffdf8; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-s); overflow: clip;
}
/* overflow: clip 은 스크롤 상자를 만들지 않아, 내용이 4:5 보다 길면 카드가 그만큼 늘어난다(글자가 잘리지 않게) */
.nc-inner {
  display: flex; flex-direction: column; min-height: 100%; padding: 18px 16px 14px;
  background: radial-gradient(120% 60% at 100% 0%, rgba(201, 162, 74, 0.10), rgba(255, 255, 255, 0) 60%);
}
.nc-chap { margin: 0; font-size: 15px; font-weight: 700; color: var(--pine2); letter-spacing: 0.01em; }
.nc-head { margin: 6px 0 10px; font-family: var(--serif); font-size: 24px; line-height: 1.38; font-weight: 800; color: var(--ink); }
.nc-vis { margin: 2px 0 8px; }
.nc-vis svg, .vx-fig svg { display: block; width: 100%; height: auto; }
.nc-line { margin: 4px 0 0; font-size: 16px; line-height: 1.6; color: #3b3a33; }
.nc-cta { margin-top: 12px; min-height: 52px; font-size: 17px; }
.nc-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nc-logo { display: flex; align-items: center; gap: 6px; }
.nc-brand { font-family: var(--brush); font-size: 25px; line-height: 1; color: var(--ink); }
.nc-url { font-size: 14px; color: var(--ink2); font-weight: 700; }
.ncard.is-locked .nc-inner { filter: blur(6px); opacity: 0.55; pointer-events: none; user-select: none; }
.nc-lock {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; background: rgba(247, 244, 236, 0.5); padding: 24px;
}
.nc-lock b { font-family: var(--serif); font-size: 22px; color: var(--pine); }
.nc-lock span { font-size: 16px; color: var(--ink3); }
.deck-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.deck-btn {
  min-width: 92px; min-height: 48px; padding: 8px 14px; border-radius: 24px; border: 2px solid var(--pine); background: #fff;
  color: var(--pine); font-family: var(--sans); font-size: 16px; font-weight: 800; cursor: pointer;
}
.deck-btn:disabled { opacity: 0.4; cursor: default; }
.deck-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; flex: 1; }
.deck-dots .dot { width: 9px; height: 9px; border-radius: 50%; background: #d9d2c0; transition: width 0.2s; }
.deck-dots .dot.lk { background: #ebe5d6; }
.deck-dots .dot.on { background: var(--seal); width: 22px; border-radius: 6px; }
.deck-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.deck-acts .btn { min-height: 52px; font-size: 16px; padding: 10px 8px; }
.deck-acts .btn:disabled { opacity: 0.45; filter: grayscale(1); }
.deck-msg { min-height: 1.6em; font-size: 15px; color: var(--ink2); margin: 8px 0 0; }
.vx-fig { margin: 16px 0; background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); padding: 16px 14px 12px; }
.vx-concl { display: block; font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.45; margin: 0 0 12px; color: var(--ink); }
.vx-cap { font-size: 15px; color: var(--ink2); margin: 10px 0 0; line-height: 1.5; }

/* ------------------------------------------------------------ 사주 지도 2 (2026-10-03): 누를 수 있는 지도, 풀이 칸, 처음 안내, 홈 지도, 묶음 */
.tabbar .tab-brush { stroke: none !important; fill: currentColor; color: inherit; }
.tabbar a[aria-current="page"] .tab-brush { color: var(--gold2); }

.saju-map.is-live .nd, .saju-map.is-live .lk, .saju-map.is-live .zn { cursor: pointer; outline: none; }
.saju-map .nd-in { transform-box: fill-box; transform-origin: center; transition: transform 0.18s ease; }
.saju-map .nd:hover .nd-in, .saju-map .nd:focus-visible .nd-in, .saju-map .nd.hot .nd-in { transform: scale(1.14); }
.saju-map .glow { opacity: 0.25; transform-box: fill-box; transform-origin: center; animation: dd-breathe 2.6s ease-in-out infinite; }
.saju-map .nd.me .glow { animation-duration: 2s; }
.saju-map .nd.hl .glow { opacity: 0.85; animation: none; }
.saju-map.coach-on .nd.me .glow { stroke-width: 6; animation-duration: 1.4s; }
.saju-map .fr { opacity: 0; }
.saju-map .nd:focus-visible .fr { opacity: 1; }
@keyframes dd-breathe { 0%, 100% { opacity: 0.15; transform: scale(0.92); } 50% { opacity: 0.65; transform: scale(1.1); } }
.saju-map .chip { transition: fill 0.15s ease; }
.saju-map .lk:hover .chip, .saju-map .lk:focus-visible .chip { fill: #fff1cf; stroke-width: 3; }
.saju-map .lk:focus-visible .chip { stroke: #1d1a14; }
.saju-map .lq { font-size: 15px; font-weight: 900; fill: #fff; pointer-events: none; }
.saju-map .zn-hit { fill: transparent; }
.saju-map .zn-ring { fill: none; stroke-width: 2.5; stroke-dasharray: 5 6; opacity: 0; transition: opacity 0.15s ease; }
.saju-map .zn:hover .zn-ring, .saju-map .zn:focus-visible .zn-ring, .saju-map .zn.hl .zn-ring { opacity: 0.85; }
@media (prefers-reduced-motion: reduce) {
  .saju-map .glow { animation: none; opacity: 0.4; }
  .saju-map .nd-in, .saju-map .chip, .saju-map .zn-ring, .hm-box .saju-map { transition: none; }
  .msheet { animation: none !important; }
}
.map-tip { position: absolute; z-index: 6; margin: 0; max-width: 270px; padding: 7px 12px; border-radius: 12px; background: rgba(29, 26, 20, 0.92); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.45; pointer-events: none; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.6); } /* on-dark */
.map-tools { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; margin: 4px 0 10px; }
.map-tools .btn { min-height: 52px; font-size: 16px; padding: 8px 10px; gap: 6px; }
.tour-btn .tb-ic { width: 30px; height: 30px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, 0.92); border-radius: 50%; flex: none; }
.tour-btn .tb-ic svg { width: 28px; height: 28px; }

.coach { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.coach-arrow { position: absolute; left: 0; top: 0; overflow: visible; }
.coach-bubble { position: absolute; pointer-events: auto; background: #fffdf6; border: 2px solid var(--seal); border-radius: 18px; padding: 10px 14px 12px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.45); }
.coach-bubble .brush { margin: 0; font-family: var(--brush); font-size: 30px; line-height: 1.12; color: var(--seal2); }
.coach-bubble .coach-sub { margin: 4px 0 8px; font-size: 15px; line-height: 1.5; color: var(--ink3); }
.coach-bubble .btn { width: 100%; min-height: 48px; }

.msheet { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); width: min(calc(100% - 16px), calc(var(--app) - 16px)); max-height: 46vh; display: flex; flex-direction: column; background: #fffdf6; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 -12px 40px -12px rgba(18, 35, 29, 0.45); animation: dd-sheet-up 0.22s ease-out; }
@keyframes dd-sheet-up { from { opacity: 0; transform: translate(-50%, 36px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ms-grip { width: 46px; height: 5px; border-radius: 3px; background: #d9cfb8; margin: 8px auto 0; flex: none; }
.ms-close { position: absolute; right: 10px; top: 8px; z-index: 2; min-height: 48px; min-width: 64px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 16px; font-weight: 800; color: var(--ink); cursor: pointer; }
.ms-body { overflow: auto; padding: 4px 18px 18px; outline: none; overscroll-behavior: contain; }
.ms-head { display: flex; align-items: center; gap: 14px; padding-right: 70px; min-height: 76px; }
.ms-hz { font-family: var(--hanja); font-size: 66px; line-height: 1; flex: none; }
.ms-hz.rel { font-size: 50px; letter-spacing: -0.04em; }
.ms-kicker { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink3); line-height: 1.4; }
#ms-title { margin: 2px 0 0; font-family: var(--serif); font-size: 24px; line-height: 1.3; }
#ms-title small { display: block; font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink2); }
.ms-sec { border-top: 1px dashed #ddd3bd; padding-top: 10px; margin-top: 12px; }
.ms-sec h3 { margin: 0 0 6px; font-size: 16px; color: var(--seal2); letter-spacing: -0.01em; }
.ms-sec p, .ms-body > p { margin: 0 0 8px; font-size: 17px; line-height: 1.7; }
.ms-sec .note { font-size: 15px; }
.ms-sec.mine { background: #f6f1e3; border: 0; border-radius: 16px; padding: 12px 14px; }
.ms-facts { margin: 8px 0 0; display: grid; gap: 4px; }
.ms-facts div { display: grid; grid-template-columns: 6.6em 1fr; gap: 8px; font-size: 16px; line-height: 1.55; }
.ms-facts dt { color: var(--ink2); font-weight: 700; font-size: 15px; }
.ms-facts dd { margin: 0; }
.ms-makes { font-size: 17px; }
.ms-makes b { display: inline-block; margin-right: 6px; padding: 1px 10px; border-radius: 999px; background: #f3eedf; font-size: 15px; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rel-chip { min-height: 48px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--gold-ink); background: #fff; font-size: 16px; font-weight: 800; color: var(--ink); cursor: pointer; }
.rel-chip span[aria-hidden] { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 4px; border-radius: 50%; background: var(--gold-ink); color: #fff; font-size: 14px; } /* on-dark */
.ms-cycle { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; }
.ms-cycle li { font-size: 16px; line-height: 1.5; padding-left: 18px; position: relative; }
.ms-cycle li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 9px; height: 9px; border-radius: 50%; }
.ms-cycle li.gen::before { background: var(--jade); }
.ms-cycle li.ctl::before { background: var(--seal); }
.np-link.pkg { background: #eef3ee; border: 1px solid #cfe0d6; margin-top: 8px; }
.tour-k { margin-top: 6px !important; }
.tour-dots { list-style: none; display: flex; gap: 6px; padding: 0; margin: 8px 0 6px; }
.tour-dots li { flex: 1; height: 6px; border-radius: 3px; background: #e2d9c4; }
.tour-dots li.done { background: var(--jade); }
.tour-dots li.on { background: var(--seal); }
.tour-t { font-family: var(--serif); font-size: 23px; margin: 4px 0 10px; padding-right: 70px; }
.tour-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tour-nav .btn { width: 100%; }
.gloss { margin: 0; }
.gloss div { padding: 10px 0; border-bottom: 1px solid var(--line2); }
.gloss dt { font-size: 18px; font-weight: 800; color: var(--pine2); }
.gloss dd { margin: 2px 0 0; font-size: 16px; line-height: 1.6; }
body.sheet-open #panel-map { padding-bottom: 46vh; }
@media (min-width: 900px) { .msheet { bottom: 18px; } }
@media (min-width: 1100px) {
  .msheet { left: calc(50% + 252px); transform: none; top: 90px; bottom: auto; width: min(380px, calc(50% - 270px)); max-height: calc(100vh - 116px); animation-name: dd-side-in; }
  .ms-grip { display: none; }
  body.sheet-open #panel-map { padding-bottom: 0; }
}
@keyframes dd-side-in { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }

/* 둘러보기와 감명서 상세의 묶음 줄 */
.pkg-line { display: grid; gap: 2px; margin: 10px 0; padding: 12px 14px; border-radius: 16px; background: #fbf6e8; border: 2px solid var(--gold); text-decoration: none; color: var(--ink); }
.pkg-line .pl-k { font-size: 15px; font-weight: 800; color: var(--seal2); }
.pkg-line b { font-size: 18px; }
.pkg-line .pl-s { font-size: 15px; color: var(--ink3); }
.pkg-hint { margin: 14px 0 0; }
.pkg-hint-k { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink3); }

/* 홈 첫 블록: 내 사주 지도 */
.home-map { position: relative; z-index: 3; margin: -64px 16px 0; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 18px 18px 20px; }
.home-map + .today { margin-top: 16px; }
.hm-kicker { margin: 0; font-size: 15px; color: var(--ink2); font-weight: 700; }
.home-map h2 { margin: 2px 0 0; font-family: var(--serif); font-size: 23px; letter-spacing: -0.02em; }
.hm-box { position: relative; display: block; margin: 12px 0 10px; border-radius: 18px; background: #fffdf6; border: 1px solid var(--line); overflow: hidden; text-decoration: none; }
.hm-svg { display: block; }
.hm-box .saju-map { transition: transform 0.2s ease; }
.hm-box:hover .saju-map { transform: scale(1.02); }
.hm-box.dim .saju-map { opacity: 0.36; filter: grayscale(0.25); }
.hm-cap { position: absolute; left: 0; right: 0; top: 34%; padding: 0 18px; text-align: center; }
.hm-cap .brush { font-family: var(--brush); font-size: 36px; line-height: 1.18; color: var(--ink); text-shadow: 0 0 10px #fffdf6, 0 0 18px #fffdf6; }
.hm-sum { margin: 0 0 12px; font-size: 16px; line-height: 1.65; color: var(--ink3); }
.hm-go { min-height: 58px; font-size: 18px; }

/* 만세력 결과: 여덟 글자 아래 사주 지도 띠 */
.map-banner { display: grid; grid-template-columns: 124px 1fr; gap: 12px; align-items: center; margin: 14px 16px 0; padding: 8px 14px 8px 8px; border-radius: 20px; background: #fff; border: 2px solid var(--gold); box-shadow: var(--shadow-s); text-decoration: none; color: var(--ink); }
.mb-map { display: block; border-radius: 14px; background: #fffdf6; overflow: hidden; }
.mb-map .saju-map .nl, .mb-map .saju-map .zl, .mb-map .saju-map .ll, .mb-map .saju-map .chip { display: none; }
.mb-text { display: grid; gap: 3px; }
.mb-text b { font-size: 19px; font-family: var(--serif); }
.mb-text > span { font-size: 15px; color: var(--ink3); line-height: 1.5; }
.mb-text em { font-style: normal; font-size: 15px; font-weight: 800; color: var(--seal2); }

/* 묶음 카드와 상세 */
.pkg-sec { margin-top: 26px; }
.pkg-book .pkg-sum { margin: -6px 16px 0; font-size: 15px; color: var(--ink3); font-weight: 700; }
.pkg-book .pkg-incl { margin: 4px 16px 0; font-size: 15px; color: var(--pine2); line-height: 1.5; }
.pkg-book .desc { margin-top: 8px; }
.rail .pkg-book { padding-bottom: 12px; }
.pkg-price .pkg-sum-line { display: block; font-size: 16px; color: var(--ink3); font-weight: 700; margin-top: 2px; }
.q-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 16px; font-weight: 700; color: var(--ink3); }
.q-badge { padding: 2px 10px; border-radius: 999px; background: var(--pine); color: #fff; font-size: 14px; } /* on-dark */
.pkg-incl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-top: 12px; }
.pkg-incl-grid .book { flex: none; }
.pkg-incl-grid .cover { height: 112px; padding: 12px; }
.pkg-incl-grid .cover .ctitle { font-size: 26px; }
.pkg-incl-grid .cover .lbl { font-size: 14px; }
.pkg-incl-grid .book .meta { padding: 8px 10px 10px; flex-direction: column; align-items: flex-start; gap: 2px; }
.pkg-incl-grid .book .meta b { font-size: 16px; }

/* 맞춤 분석 결과의 묶음 */
.rec-pkg { display: grid; gap: 6px; margin: 16px 0 0; padding: 16px; border-radius: 20px; background: #fbf6e8; border: 2px solid var(--gold); text-decoration: none; color: var(--ink); }
.rec-pkg .rp-k { font-size: 15px; font-weight: 800; color: var(--seal2); }
.rec-pkg .rp-t { font-family: var(--serif); font-size: 21px; }
.rec-pkg .rp-in { display: flex; flex-wrap: wrap; gap: 6px; }
.rec-pkg .rp-in i { font-style: normal; font-size: 15px; padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink3); }
.rec-pkg .rp-in i.on { border-color: var(--pine); color: var(--pine2); font-weight: 800; }
.rec-pkg .rp-p { font-size: 16px; color: var(--ink3); }
.rec-pkg .rp-p b { font-size: 20px; color: var(--ink); margin-right: 6px; }
.rec-pkg .rp-go { font-size: 16px; font-weight: 800; color: var(--pine2); }

/* ---------------------------------------------------------------- 결제 화면, 결제 완료, 주문 조회 (2026-10-03) */
.buy-facts { margin: 14px 0; padding: 14px 16px; background: #fdfbf5; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 8px; }
.buy-facts div { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
.buy-facts dt { font-weight: 800; font-size: 15px; color: var(--ink3); }
.buy-facts dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.buy-act { margin-top: 6px; }
.co-sum { margin-top: -40px; position: relative; z-index: 3; }
.co-sum .btn.small { flex: none; }
.pick-list { display: grid; gap: 10px; margin: 12px 0; }
.pick { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 12px 14px; background: #fff; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.pick input { width: 22px; height: 22px; accent-color: var(--pine); flex: none; }
.pick span { display: grid; gap: 2px; }
.pick b { font-size: 17px; }
.pick small { font-size: 15px; color: var(--ink2); }
.pick:has(input:checked) { border-color: var(--pine); background: #e6f0eb; }
.co-newperson .form-card { margin-top: 8px; }
.co-mini { display: grid; gap: 10px; }
.co-mini .label { font-weight: 800; font-size: 17px; }
.co-mini fieldset.plain { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.agree-box { display: grid; gap: 10px; }
.agree-box .check { display: flex; align-items: flex-start; padding: 12px 14px; line-height: 1.55; font-size: 16px; }
.agree-box .check input { margin-top: 2px; flex: none; }
.agree-box .check.all { background: #fdf9f0; }
.agree-more { font-size: 15px; line-height: 1.65; color: var(--ink3); padding: 0 4px; }
.agree-more summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; color: var(--pine2); cursor: pointer; }
.toss-box { margin: 12px 0; min-height: 60px; }
.ord-card { background: #fff; border: 1px solid var(--line2); border-radius: 18px; padding: 16px 18px; margin: 16px 0; display: grid; gap: 10px; }
.ord-card div { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
.ord-card dt { font-weight: 800; font-size: 15px; color: var(--ink3); }
.ord-card dd { margin: 0; font-size: 16px; line-height: 1.6; }
.ord-card small { font-size: 15px; color: var(--ink2); }
.ord-no { font-size: 18px; letter-spacing: 0.02em; color: var(--seal2); }
.ord-save { border-color: var(--gold); background: #fdf9f0; }
.ord-mine { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.ord-mine a { display: flex; justify-content: space-between; gap: 10px; min-height: 52px; align-items: center; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 700; }
.ord-mine small { font-size: 15px; color: var(--ink2); font-weight: 400; }
.open-box .open-q { font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.reopen-hint { background: #fdfbf5; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.rep-toc ol { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.rep-toc a { display: flex; min-height: 48px; align-items: center; color: var(--pine2); font-weight: 700; }
.rep-book { padding-top: 10px; }
.rep-sum { font-size: 17px; line-height: 1.7; }
.rep-deck { margin: 14px 0; }
.rep-chapters .chapter h3 { margin: 0 0 10px; font-size: 19px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; line-height: 1.45; }

/* ==== 사주 지도 다듬기 3차 (map3): 이름표 겹침 피하기, 삼합 붓선, 풀이 칸 머리줄, 확대 안내. 이 묶음은 사주 지도 담당만 고칩니다 ==== */
.saju-map .lkl, .saju-map .sma { cursor: pointer; }
.saju-map .lkl.hot, .saju-map .sma.hot { opacity: 1; }
.saju-map.is-live .sm, .saju-map.is-live .lmore { cursor: pointer; outline: none; }
.saju-map .sm:hover .chip, .saju-map .sm:focus-visible .chip, .saju-map .lmore:hover .chip, .saju-map .lmore:focus-visible .chip { fill: #fff1cf; stroke-width: 3; }
.saju-map .sm:focus-visible .chip, .saju-map .lmore:focus-visible .chip { stroke: #1d1a14; }
.saju-map .lead { pointer-events: none; }
.zoom { align-items: center; flex-wrap: wrap; }
.zoom-hint { order: -1; flex: 1 1 150px; margin: 0 auto 0 0; font-size: 15px; line-height: 1.4; color: var(--ink3); }
.zoom-hint .zh-mouse { display: none; }
@media (max-width: 520px) { .zoom-hint { order: 1; flex-basis: 100%; margin: 2px 0 0; text-align: right; } }
@media (hover: hover) and (pointer: fine) { .zoom-hint .zh-touch { display: none; } .zoom-hint .zh-mouse { display: inline; } }
.ms-top { position: relative; flex: none; min-height: 62px; background: #fffdf6; border-radius: 22px 22px 0 0; border-bottom: 1px solid transparent; z-index: 2; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.ms-top .ms-close { top: 7px; }
.ms-top-t { position: absolute; left: 18px; right: 92px; top: 20px; margin: 0; font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity 0.15s ease; }
.msheet.scrolled .ms-top { border-bottom-color: var(--line); box-shadow: 0 8px 14px -12px rgba(18, 35, 29, 0.45); }
.msheet.scrolled .ms-top-t { opacity: 1; }
.msheet .ms-body { padding-top: 0; }
.msheet .ms-head, .msheet .tour-t { padding-right: 0; }
@media (prefers-reduced-motion: reduce) { .ms-top, .ms-top-t { transition: none; } }
/* ==== 사주 지도 다듬기 3차 끝 ==== */
/* 사업자 정보 접기 (2026-10-03) */
.site-foot .biz-info { margin: 6px 0; }
.site-foot .biz-info summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 700; color: var(--ink2); list-style: none; }
.site-foot .biz-info summary::after { content: '보기'; margin-left: 8px; font-weight: 400; text-decoration: underline; }
.site-foot .biz-info[open] summary::after { content: '접기'; }
.biz-inline { display: inline; }
.biz-inline summary { display: inline; cursor: pointer; text-decoration: underline; color: var(--ink2); margin-left: 6px; }

