/* 종합사주(우리 파일): 은발 화면 변경(2026-12-01) + 서버 연결 화면. 인계 CSS 는 고치지 않고 마지막에 불러 덮어쓴다. */

/* ---------- 상품 입구 ---------- */
/* 첫 화면: 은발 표지(992×1586) 위에 HTML 제목·버튼(그림에 굽지 않음) */
.fast-gate .cover img{object-position:50% 28%}
/* 풀이 구성(#done): 가로 그림(1152×864) 전체가 보이게 — 높이는 원본 비율로 */
#grove[data-step=done] .portrait{height:auto;aspect-ratio:1152/864}
#grove[data-step=done] .portrait img{height:100%;object-position:50% 50%;transform:none}

/* 이메일 단계: 로그인 안내·진행 표시 */
.jh-login p{margin:10px 0 0;font-size:.95rem;line-height:1.6;color:#2f4b3d}
.jh-login .enter{margin-top:14px;text-decoration:none}
.jh-status{margin:10px 0 0;font-size:.875rem;line-height:1.5;color:#2f4b3d}
.jh-status:empty{display:none}
.email-row button:disabled{opacity:.6;cursor:default}

/* ---------- 미리보기 ---------- */
/* 은발 차 컷(1152×648): 사주표 아래, 첫 개인 풀이 위 한 번 */
.tea-cut{margin:21px 0 0;padding:0}
.tea-cut img{display:block;width:100%;height:auto;border-radius:3px 12px 3px 12px}
/* 손님 풍경 그림이 없을 때 머리 글자만 */
.winter>div:first-child{padding-top:14px}
.winter img{aspect-ratio:auto;object-fit:contain}
/* 결제 */
.pay-panel{margin-top:21px;padding-top:17px;border-top:1px solid var(--seam,#405454)}
.pay-lead{color:var(--secondary,#c7d0c8);font-size:1rem;line-height:1.65}
.pay-consent{display:flex;gap:10px;align-items:flex-start;margin-top:12px;font-size:.94rem;line-height:1.6;color:#dfe5da;cursor:pointer;word-break:keep-all;overflow-wrap:break-word}
.pay-consent input{flex:none;width:20px;height:20px;margin:3px 0 0;accent-color:#d8c58b}
.pay-consent a{color:#ead8a8;text-underline-offset:3px}
button.contents-button{font:inherit;font-size:1.0625rem;font-weight:650;cursor:pointer}
.pay-panel .contents-button:disabled{opacity:.55;cursor:default}
.pay-note{margin-top:10px;color:var(--secondary,#c7d0c8);font-size:.94rem;line-height:1.6}
.pay-note:empty,.pay-panel .error:empty{display:none}
.pay-panel .error{font-size:.94rem;line-height:1.55;margin-top:10px}

/* 사주표: 태어난 시간 모름(시주 칸) — 인계 CSS 에 상태가 없어 새로 둔다 */
.natal-chart .pillars li.is-unknown{background:linear-gradient(120deg,#8fa898,#a3b6a6 60%,#879f90);color:#29453b}
.natal-chart .is-unknown .pair-piece{min-height:3.62rem;align-items:center}
.natal-chart .unknown-mark{font:650 .95rem/1.4 Read,"Malgun Gothic",sans-serif;letter-spacing:.02em;color:#2d4a3f}

/* ---------- 본편 ---------- */
/* 표지: 그림 전체를 먼저, 제목·'목차 열기'는 그림 아래 */
.mrp-cover{display:block;min-height:0}
.mrp-cover>img{position:static;display:block;width:100%;height:auto;object-fit:initial;z-index:auto}
.mrp-cover:after{content:none}
.mrp-cover h1{word-break:keep-all;overflow-wrap:break-word}
/* 장 머리 삽화: 고정 높이·잘라내기 대신 원본 비율(img 의 width/height 속성)로 높이가 정해진다 */
.manuscript .character-panel img{height:auto;aspect-ratio:auto;object-fit:contain;object-position:50% 50%}
/* 대사 상자는 그림 아래 12px, 꼬리(9px)는 그 틈 안에 — 글자 크기·행간은 그대로 */
.manuscript .character-panel blockquote{margin:12px 21px 0}
@media(max-width:350px){.manuscript .character-panel blockquote{margin-inline:15px}}
/* 손님 풍경이 아직 없는 3장: 대사만 */
.manuscript .character-panel.no-art{padding-top:2px}
.manuscript .character-panel.no-art blockquote:before{content:none}
/* 손님 풍경(1장 사주 카드·3장 머리·미리보기 머리)은 원본 비율, 세로로 긴 그림은 폭 264px 안에서 가운데 */
.manuscript .mrp-birth-card>img{height:auto;aspect-ratio:auto;object-fit:contain}
.manuscript img.is-tall,.winter img.is-tall{display:block;width:min(100%,264px);height:auto;aspect-ratio:auto;margin-inline:auto;object-fit:contain}

/* 생성 대기·안내 */
.jh-state{padding:48px 0 32px;text-align:center}
.jh-wait{padding-top:0}
.jh-wait img{display:block;width:100%;height:auto;max-height:62svh;object-fit:cover;object-position:50% 32%}
.jh-state-text{margin:20px 21px 0;font:600 1.12rem/1.6 Song,Batang,serif;color:#f0e3be;word-break:keep-all;overflow-wrap:break-word}
.jh-state .contents-button{width:auto;margin:20px 21px 0}
@media(max-width:350px){.jh-state-text,.jh-state .contents-button{margin-inline:15px}}
