/* 리포트 A4 쪽 — 뉴모피즘. 화면에선 미리 보기, 인쇄(PDF)에선 한 쪽씩 */
.pages { width: 210mm; margin: 0 auto; }
.page {
  position: relative; width: 210mm; height: 297mm; overflow: hidden; padding: 16mm 16mm 13mm;
  background: var(--bg-flat); border-radius: 18px; margin-bottom: 22px; box-shadow: var(--raised);
  display: flex; flex-direction: column;
}
.pg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8mm; }
.pg-shop { font-size: 12px; font-weight: 700; color: var(--sub); }
.pg-title { font-size: 12px; font-weight: 600; color: var(--sub); padding: 6px 14px; border-radius: 999px; box-shadow: var(--inset-sm); }
.pg-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: safe center; gap: 8mm; padding: 2mm; }
.pg-foot { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); margin-top: 6mm; }
.pg-foot span:last-child { font-family: 'Lexend', sans-serif; }

.page h2.big { font-size: 34px; line-height: 1.25; margin: 0; letter-spacing: -.02em; font-weight: 500; }
.page .desc { font-size: 14px; line-height: 1.75; color: var(--sub); margin: 0; }
.page .desc b { color: var(--ink); }
.kicker { display: block; font-size: 12px; font-weight: 600; color: var(--sub); letter-spacing: .02em; }
.htile { width: 40px; height: 40px; font-size: 22px; border-radius: 12px; }
.htile.lg { width: 60px; height: 60px; font-size: 32px; border-radius: 18px; }
.htile.xl { width: 80px; height: 80px; font-size: 44px; border-radius: 24px; flex: none; }
.tile.empty { color: var(--faint); box-shadow: var(--inset-sm); }
.tile svg { width: 52%; height: 52%; }

/* 1 표지 — 큰 날짜 숫자 */
.cover { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 9mm; }
.cover-top { display: flex; justify-content: space-between; align-items: center; }
.cover-shop { margin: 0; font-size: 13px; font-weight: 700; color: var(--sub); }
.badges { display: flex; gap: 6px; }
.badges span { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; border: 1.5px solid var(--sub); color: var(--sub); font: 500 11px 'Lexend', sans-serif; }
.cover-card { padding: 12mm 11mm; }
.big-date { margin: 0; font: 300 64px/1.05 'Lexend', sans-serif; letter-spacing: -.01em; }
.big-time { margin: 2mm 0 0; font: 300 40px/1.1 'Lexend', sans-serif; color: var(--ink-soft); }
.cover-name { margin-top: 10mm; padding: 6mm 7mm; display: flex; align-items: center; justify-content: space-between; gap: 6mm; border-radius: 999px; box-shadow: var(--inset); }
.cover-name small { display: block; font-size: 12.5px; color: var(--sub); margin-bottom: 2px; }
.cover-name h1 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -.02em; }
.cover-name .pill { font-size: 12px; font-weight: 700; color: var(--sub); padding: 5px 12px; border-radius: 999px; box-shadow: var(--raised-sm); white-space: nowrap; }
.cover-chars { display: flex; gap: 9px; flex-wrap: wrap; padding: 2mm; }
.cover-when { margin: 0; font-size: 13.5px; color: var(--sub); }
.cover-list { list-style: none; margin: 0; padding: 7mm 8mm; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4mm 6mm; font-size: 13px; font-weight: 600; }
.cover-list .num { display: inline-block; width: 20px; font: 500 12px 'Lexend', sans-serif; color: var(--faint); }

/* 2 여덟 글자 */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5mm; }
.pcol { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 6mm 0 5mm; border-radius: 28px; box-shadow: var(--raised-sm); }
.pcol.me { box-shadow: var(--inset); }
.me-badge { position: absolute; top: -10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.pcap { font-size: 12px; color: var(--sub); font-weight: 600; }
.pko { font-size: 15px; font-weight: 700; margin-top: 2px; }
.pel { font-size: 11.5px; color: var(--faint); }
.me-card { display: flex; gap: 7mm; align-items: center; padding: 8mm; }
.me-card h3 { margin: 6px 0 6px; font-size: 28px; }
.me-card h3 small { font-size: 13px; color: var(--sub); font-weight: 500; margin-left: 4px; }
.me-card p { margin: 0; font-size: 14.5px; line-height: 1.7; }
.gans h3 { margin: 0 0 4mm; font-size: 14px; font-weight: 600; }
.gans-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; }
.gans-row div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--faint); }
.gans-row .tile { width: 100%; aspect-ratio: 1; height: auto; font-size: 21px; border-radius: 12px; box-shadow: none; opacity: .55; }
.gans-row .on .tile { opacity: 1; box-shadow: var(--inset-sm); }
.gans-row .on { color: var(--ink); font-weight: 700; }
.gans p { margin: 4mm 0 0; font-size: 13px; color: var(--sub); line-height: 1.65; }
.note { margin: 0; font-size: 12.5px; color: var(--sub); }
.note b { color: var(--ink); }

/* 3 다섯 기운 — 시계처럼 눌린 원 안에 고리 */
.donut-card { display: flex; gap: 10mm; align-items: center; padding: 9mm; }
.donut-wrap { width: 196px; height: 196px; border-radius: 50%; box-shadow: var(--inset); display: grid; place-items: center; flex: none; }
.donut { width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; }
.hole { width: 116px; height: 116px; border-radius: 50%; background: var(--bg-flat); box-shadow: var(--raised-sm); display: grid; place-content: center; text-align: center; }
.hole b { font: 300 34px/1 'Lexend', sans-serif; } .hole span { font-size: 12px; color: var(--sub); margin-top: 4px; }
.donut-card h3 { margin: 0 0 4mm; font-size: 20px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; font-weight: 600; min-width: 170px; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend li small { color: var(--faint); font-weight: 500; }
.legend li b { margin-left: auto; font-family: 'Lexend', sans-serif; font-weight: 400; }
.legend li.zero { color: var(--faint); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.empty-sec h3 { margin: 6px 0 6px; font-size: 28px; display: flex; align-items: center; gap: 10px; }
.empty-sec h3 small { font-size: 13px; color: var(--sub); font-weight: 500; }
.el-dot { width: 14px; height: 14px; border-radius: 50%; }
.empty-sec p { margin: 0; font-size: 15.5px; line-height: 1.8; }
.lucky { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4mm; padding: 7mm 5mm; }
.lk { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.lk b { font-size: 11.5px; color: var(--sub); font-weight: 600; }
.lk span:last-child { font-size: 14px; font-weight: 700; line-height: 1.35; word-break: keep-all; }
.kicon { width: 42px; height: 42px; border-radius: 50%; }

/* 한 줄 조언 — 눌린 알약 */
.tip { display: flex; align-items: center; gap: 12px; padding: 4mm 5mm; border-radius: 999px; box-shadow: var(--inset); }
.tip b { font-size: 11.5px; color: var(--sub); font-weight: 600; }
.tip p { margin: 2px 0 0; font-size: 14.5px; font-weight: 700; }
.tip-mark { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ink); color: #fff; }
.tip-mark svg { width: 16px; height: 16px; }

/* 4·5 장 카드 */
.chap { padding: 10mm 9mm; display: flex; flex-direction: column; gap: 5mm; }
.chap-top { display: flex; align-items: center; gap: 14px; }
.chap-top h2 { margin: 0; font-size: 28px; }
.cicon { width: 48px; height: 48px; border-radius: 50%; }
.chap .lead { margin: 0; font-size: 22px; line-height: 1.55; font-weight: 600; letter-spacing: -.01em; }
.chap .body { margin: 0; font-size: 16.5px; line-height: 1.95; color: var(--ink-soft); }
.chap .tip { margin-top: 2mm; }

/* 6 2027년 — 큰 숫자 */
.hero { border-radius: var(--r); padding: 10mm 9mm; background: var(--bg-flat); box-shadow: var(--raised); display: grid; grid-template-columns: 1fr auto; gap: 4mm 6mm; align-items: end; }
.hero .kicker { grid-column: 1 / -1; }
.hero .hero-year { grid-column: 1; margin: 0; font: 300 80px/1 'Lexend', sans-serif; font-weight: 300; }
.hero-chars { display: flex; gap: 10px; }
.hero h2 { grid-column: 1 / -1; margin: 3mm 0 0; font-size: 26px; }
.hero p { grid-column: 1 / -1; margin: 0; font-size: 17px; line-height: 1.65; font-weight: 600; }
.year-body { margin: 0; font-size: 16.5px; line-height: 1.95; color: var(--ink-soft); padding: 0 3mm; }
.todo { padding: 8mm; }
.todo h3 { margin: 0 0 3mm; font-size: 19px; }
.todo label { display: flex; align-items: center; gap: 14px; padding: 3.6mm 0; font-size: 14.5px; font-weight: 600; }
.cb { width: 24px; height: 24px; border-radius: 8px; flex: none; box-shadow: var(--inset-sm); }

/* 7 질문 · 8 맺음말 */
.bubble { display: flex; gap: 12px; align-items: flex-start; }
.bubble.q b { font-size: 12px; color: var(--sub); }
.bubble.q p { margin: 4px 0 0; font-size: 18px; font-weight: 700; line-height: 1.5; }
.bicon { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.bubble.a { flex-direction: column; padding: 8mm 9mm; border-radius: 32px 32px 32px 10px; }
.bubble.a b { font-size: 12px; color: var(--sub); }
.bubble.a p { margin: 0; font-size: 16px; line-height: 1.9; }
.qa-page.tight .bubble.a p { font-size: 14px; line-height: 1.75; }
.qa-page.tight .bubble.a { padding: 6mm 7mm; }
.pre { white-space: pre-wrap; }
.closing { margin-top: 4mm; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4mm; }
.cover-icon { width: 56px; height: 56px; font-size: 28px; border-radius: 50%; }
.mascot { width: 120px; height: 120px; display: block; }
.closing p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink-soft); max-width: 130mm; }
.sign { font-weight: 700; }

@media print {
  @page { size: A4; margin: 0; }
  body { background: var(--bg-flat) !important; }
  .no-print { display: none !important; }
  .pages { width: 210mm; zoom: 1 !important; margin: 0; }
  .page { margin: 0; border-radius: 0; box-shadow: none; break-after: page; }
  .page:last-child { break-after: auto; }
}
