:root { --base: #F3F0EB; --ink: #1E1E1E; --sub: #666; --line: #ccc; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; line-height: 1.5; }
#app { max-width: 480px; margin: 0 auto; padding: 20px 16px 40px; }
/* 언어 전환(영어판 Task 9): 제목과 겹치지 않게 맨 위 오른쪽에 한 줄 · 영어 화면은 영어 기본 글꼴 먼저 */
.lang-bar { text-align: right; margin: -14px 0 2px; line-height: 1; }
.lang-switch + .lang-switch { margin-left: 14px; }  /* 언어 메뉴 버튼 사이(언어가 셋 이상일 때) */
.lang-switch { background: none; border: 0; padding: 4px 0; color: var(--sub); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
:root[lang="en"] body { font-family: "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
:root[lang="zh-hans"] body { font-family: "PingFang SC","Hiragino Sans GB","Noto Sans CJK SC","Noto Sans SC","Microsoft YaHei",sans-serif; }  /* = lang/zh_font.js */
:root[lang="zh-hant"] body { font-family: "PingFang TC","Noto Sans CJK TC","Noto Sans TC","Microsoft JhengHei",sans-serif; }
:root[lang="ja"] body { font-family: "Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Noto Sans CJK JP","Yu Gothic","Meiryo",sans-serif; }  /* = lang/ja_font.js */
.lunar-fold summary { cursor: pointer; font-size: 15px; }
.lunar-fold[open] { display: flex; flex-direction: column; gap: 8px; }
.screen { display: flex; flex-direction: column; gap: 12px; }
h1 { font-size: 28px; text-align: center; margin: 8px 0 0; }
h2 { font-size: 21px; text-align: center; margin: 4px 0; }
h3 { font-size: 18px; margin: 4px 0; }
.sub, .note { text-align: center; color: var(--sub); font-size: 14px; margin: 0; }
.error { color: #b00020; text-align: center; min-height: 1.5em; margin: 0; font-size: 14px; }
.btn { display: block; text-align: center; padding: 13px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.solid { background: var(--ink); color: #fff; }
.link { background: none; border: none; color: var(--sub); text-align: center; font: inherit; text-decoration: underline; cursor: pointer; }
.grid16 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.grid16 figure { margin: 0; background: var(--base); border-radius: 8px; overflow: hidden; }
.grid16 img { width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: contain; display: block; }  /* 2D 캐릭터 480×576 */
.grid16 figcaption { font-size: 10.5px; text-align: center; padding: 2px 0 4px; }
.grid16 .pick { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
fieldset { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }  /* min-width 0 = 긴 목록 칸이 폰 폭을 밀지 않게(브라우저 기본값은 내용 폭) */
legend { font-weight: 700; padding: 0 6px; }
.ymd { display: flex; align-items: center; gap: 6px; }
.ymd select { width: 0; flex: 1; font: inherit; font-size: 17px; padding: 10px 2px; border: 2px solid #999; border-radius: 10px; background: #fff; color: var(--ink); text-align: center; }
.ymd select:first-child { flex: 1.5; }
.row { display: flex; gap: 8px; }
/* 음력·윤달·성별·혈액형 = 폰에서 누르기 쉬운 버튼 모양(높이 44px↑, 줄 전체가 누르는 곳). 켜지면 검게 칠함 */
.row label, .gender label, .blood label { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 88px; padding: 0 16px; border: 2px solid #999; border-radius: 22px; background: #fff; font-size: 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.row label[hidden] { display: none; }
.gender label { min-width: 72px; }
.row label:has(input:checked), .gender label:has(input:checked), .blood label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.row label input, .gender label input, .blood label input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.time { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sub); }
.time select { flex: 1; min-width: 0; }
/* 태어난 곳: 긴 도시·시간대 이름이 폰 폭을 밀어내지 않게(영어판은 늘 보임 — 360px 가로 스크롤 방지, Task 9) */
.place-row { display: flex; flex-direction: column; gap: 6px; }
.place-row[hidden] { display: none; }
.place-row label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sub); }
.place-row select { flex: 1; min-width: 0; width: 100%; }
.gender { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.gender > span { color: var(--sub); }
/* 혈액형(선택): 다섯 칸이라 칸 이름은 한 줄 위에, 버튼은 폰 폭에 맞춰 줄바꿈 */
.blood { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.blood > span { flex-basis: 100%; color: var(--sub); }
.blood label { min-width: 0; padding: 0 12px; gap: 6px; }
input[type=time], select { font: inherit; font-size: 16px; padding: 10px; border: 2px solid #999; border-radius: 10px; background: #fff; color: var(--ink); }
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.type-btn { padding: 11px 0; border: 1.5px solid #999; border-radius: 8px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.divider { text-align: center; color: #888; margin: 4px 0; }
.card { background: var(--bg); color: var(--ink); border-radius: 16px; padding: 12px 12px 16px; text-align: center; border: 1px solid rgba(0, 0, 0, .08); }
.card img { width: 100%; height: auto; display: block; }
.card h2 { color: var(--ink); margin: 6px 0 2px; }
.line { margin: 0; }
.why { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.why img { width: 40%; height: auto; border-radius: 10px; background: var(--base); }
.why p { margin: 0; }
.actions { display: flex; gap: 8px; }
.actions .btn { flex: 1; }
.more { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.more p { margin: 0; }
.pair { display: flex; align-items: center; gap: 8px; }
.partner { display: inline-flex; align-items: center; gap: 6px; }
.partner img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center 30%; background: var(--base); }
.tags { font-weight: 700; }
.progress { text-align: center; color: var(--sub); margin: 0; font-size: 14px; }
.qbar { height: 6px; background: var(--base); border-radius: 3px; overflow: hidden; }
.qbar i { display: block; height: 100%; background: var(--ink); }
.qtext { min-height: 3em; display: flex; align-items: center; justify-content: center; line-height: 1.4; }
.likert { display: flex; flex-direction: column; gap: 8px; }
.likert .btn { padding: 14px 12px; }
.quiz-start { width: 100%; }
.clarity { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.clarity h3 { margin: 0; }
.pct-line { display: grid; grid-template-columns: 16px 38px 1fr 38px 16px; align-items: center; gap: 4px; font-size: 13px; }
.pct-line b { text-align: center; }
.pct-line b.off { color: #bbb; }
.pct { text-align: center; }
.pct-track { display: flex; height: 12px; background: var(--base); }
.pct-track i { display: block; height: 100%; }
.pct-track i.on { background: var(--ink); }
.pct-track i.off { background: #d9d9d9; }
.habit-line { grid-template-columns: 44px 38px 1fr 38px 44px; }  /* 이름표가 두세 글자(안으로·움직임) */
.habit-head { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.habit-head img { width: 64px; height: auto; flex: none; border-radius: 8px; background: var(--base); }
.habit-saju { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reading { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; }
.fold { border-bottom: 1px solid var(--line); padding: 10px 0; }
.fold summary { font-weight: 700; cursor: pointer; }
.fold p { margin: 6px 0 0; }
.fold-note { font-size: 13px; color: var(--sub); }
.fold-sub { font-weight: 700; font-size: 14px; margin: 12px 0 0; }
.fold-list { margin: 6px 0 0; padding-left: 20px; }
.fold-list li { margin: 2px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--base); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.engine { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 2px; text-align: center; font-size: 12px; line-height: 1.35; }
.engine .fn { border-radius: 12px; padding: 8px 4px; }
.engine .fn b { display: block; font-size: 13px; margin-bottom: 2px; }
.engine .fn1 { background: var(--ink); color: #fff; }
.engine .fn2 { background: #5a5a5a; color: #fff; }
.engine .fn3 { background: #d9d6d0; }
.engine .fn4 { background: var(--base); border: 1px dashed #aaa; }
.refs { font-size: 12px; color: #888; }
.refs summary { font-size: 13px; font-weight: 700; cursor: pointer; }
.refs ul { margin: 0; padding-left: 18px; }
.refs h4 { font-size: 12px; margin: 8px 0 2px; }
.refs p { margin: 4px 0 0; }
.pair { display: flex; gap: 8px; }
.panel { flex: 1; background: var(--bg); border-radius: 12px; }
.panel img { width: 100%; height: auto; display: block; }
.badge { border: 1.5px dashed var(--ink); border-radius: 10px; padding: 8px; text-align: center; margin: 0; }
.grade { font-size: 22px; font-weight: 800; text-align: center; margin: 0; }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow-y: auto; gap: 10px; padding: 16px; z-index: 10; }
/* 가운데 정렬은 첫·끝 칸의 auto 여백으로 — 작은 폰에서 넘치면 위아래가 잘리지 않고 스크롤(지인 연결 최종 리뷰) */
.modal > :first-child { margin-top: auto; }
.modal > :last-child { margin-bottom: auto; }
.modal img { max-width: 100%; max-height: 64vh; border-radius: 12px; }
.modal .btn { width: 100%; max-width: 360px; }
.modal .note { color: #eee; max-width: 360px; }
.modal .note b { font-size: 17px; }
.source { font-size: 11px; color: var(--sub); }
.modal .pledge { color: #fff; max-width: 360px; text-align: center; word-break: keep-all; }  /* 낱말 중간에서 줄이 안 끊기게('아니에/요.' X) */
.modal .pledge h3 { margin: 0 0 10px; font-size: 20px; }
.modal .pledge p { margin: 8px 0; line-height: 1.6; }
.modal .pledge .small { color: #ccc; font-size: 14px; }
.modal .source { color: #bbb; margin: 0; max-width: 360px; text-align: center; }
.modal .btn.solid { background: #fff; color: var(--ink); border-color: #fff; }
.modal .btn:not(.solid) { background: transparent; color: #fff; border-color: #fff; }
.disclaimer { font-size: 12px; color: #888; text-align: center; margin: 16px 0 0; }
.disclaimer .ver { display: block; margin-top: 4px; }
.guest-band { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.guest-band b { background: var(--ink); color: #fff; border-radius: 6px; padding: 2px 6px; font-size: 12px; }
.modal.guest-modal { justify-content: flex-start; overflow-y: auto; }
.modal.guest-modal img { max-height: 40vh; }
.more.guest .why img { width: 32%; }
.new-badge { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--base); color: var(--ink); text-decoration: none; font-size: 14px; }
.new-badge b { background: var(--ink); color: #fff; border-radius: 6px; padding: 2px 6px; font-size: 12px; }
.pillars { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; }
.pillars th { font-size: 12px; color: var(--sub); font-weight: 600; padding: 4px 0; line-height: 1.3; }
.pillars thead th:first-child, .pillars tbody th { width: 34px; }
:root[lang="en"] .pillars thead th:first-child, :root[lang="en"] .pillars tbody th { width: 44px; }  /* 영어 줄 이름 Branch·Stem이 칸 안에(Task 9) */
.pillars th small { display: block; font-size: 10px; font-weight: 400; }
.pillars td { border: 1.5px solid var(--ink); padding: 6px 2px; background: var(--c, #fff); color: var(--t, var(--ink)); }
.pillars td.me { outline: 3px solid var(--t, var(--ink)); outline-offset: -6px; }
.pillars .glyph { display: block; line-height: 1.15; }
.pillars .ch { font-size: 30px; font-weight: 700; }
.pillars .rd { font-size: 13px; font-weight: 700; margin-left: 2px; }
.pillars .el, .pillars .god { display: block; font-size: 11px; line-height: 1.3; }
.bars { display: flex; gap: 4px; }
.bar { flex: 1; text-align: center; font-size: 13px; font-weight: 700; padding: 6px 0; border: 1.5px solid var(--ink); background: var(--c); color: var(--t); }
.bar b, .bar small { display: block; }
.bar small { font-size: 10.5px; font-weight: 400; line-height: 1.3; }
.bar.zero { background: repeating-linear-gradient(45deg, #fff, #fff 5px, #e6e6e6 5px, #e6e6e6 10px); color: var(--ink); }
.easy { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.easy summary { font-weight: 700; cursor: pointer; }
.easy p { margin: 8px 0 0; }
.easy-list { margin: 8px 0 0; padding-left: 18px; }
.easy-list li { margin: 3px 0; }
.relmap { display: block; width: 100%; max-width: 360px; height: auto; margin: 10px auto 0; }
.relmap rect { stroke: var(--ink); stroke-width: 1.5; }
.relmap .me rect { stroke-width: 3.5; }
.relmap .me.dark rect { stroke: #fff; }
.term-edge { border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.term-edge p { margin: 0; }
.term-pick { display: flex; gap: 6px; }
.term-pick .btn { flex: 1; padding: 10px 4px; font-size: 14px; }
.relmap .zero rect { stroke-dasharray: 5 4; }
.relmap line { stroke: var(--ink); stroke-width: 2; }
.relmap marker path { fill: var(--ink); }
.kicker { display: block; font-size: 15px; font-weight: 600; color: var(--sub); }
.saju-reading { border-top: 1px solid var(--line); padding-top: 4px; }
.dayun { margin: 6px 0 0; padding-left: 22px; }
.dayun li { margin: 2px 0; }
.pair-lines p { margin: 2px 0; font-size: 15px; }
.compat-detail { border-top: 1px solid var(--line); padding-top: 4px; }
.axis-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.axis-table th, .axis-table td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; }
.axis-table th { width: 56px; color: var(--sub); font-weight: 600; }
.axis-table td:nth-child(2) { width: 52px; font-weight: 700; }
.ddi-row { background: #eee; border-radius: 8px; padding: 8px 10px; font-weight: 700; text-align: center; }
.fortune-title { font-size: 24px; }
.mbti-pick { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sub); }
.mbti-pick select { flex: 1; min-width: 0; }
.today-color { display: flex; align-items: center; gap: 12px; background: var(--base); border-radius: 12px; padding: 10px 12px; }
.today-color .swatch { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.today-color p { margin: 0; font-size: 14px; }
.today-animal { margin: 0; background: var(--base); border-radius: 12px; padding: 8px; text-align: center; }
.today-animal img { width: 50%; height: auto; }
.today-animal figcaption { font-weight: 700; }
.today-animal-link { color: inherit; text-decoration: none; }
.month-box { border-top: 1px solid var(--line); padding-top: 8px; }
.fortune-line { font-weight: 700; margin: 4px 0 8px; }
/* 첫 화면 캐릭터 창(대표님 09-30): 3칸을 옆으로 넘김 — 기본 동작 영상 · 실사 · 습성 장면. 키는 화면 높이에 맞춰 줄어듦 */
.char-modal .stage { position: relative; width: min(100%, 360px, 53vh); }
.char-modal .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; border-radius: 12px; background: var(--base); scrollbar-width: none; }
.char-modal .slides::-webkit-scrollbar { display: none; }
.char-modal .slide { flex: 0 0 100%; aspect-ratio: 5 / 6; scroll-snap-align: center; scroll-snap-stop: always; }
.char-modal .slide video, .char-modal .slide img { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 0; }
.char-modal .dots { display: flex; gap: 2px; }
.char-modal .dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.char-modal .dots button::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; }
.char-modal .dots button[aria-current="true"]::before { background: #fff; }
.char-modal .swipe-hint { margin: 0; color: #bbb; font-size: 13px; }
/* 넘기기 버튼(PC·폰 공통): 그림 양옆 가운데, 끝 칸에서는 흐리게 */
.char-modal .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; padding: 0 0 3px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.char-modal .nav.prev { left: 6px; }
.char-modal .nav.next { right: 6px; }
.char-modal .nav:disabled { opacity: .25; cursor: default; }
/* 보내기(지인 연결 v1.0): 복사 안내·링크 글 창 */
.toast { position: fixed; left: 16px; right: 16px; bottom: 24px; margin: 0 auto; max-width: 480px; padding: 12px 16px; border-radius: 12px; background: #1E1E1E; color: #fff; font-size: 15px; text-align: center; z-index: 50; }
.share-text { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 15px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.share-row .btn { flex: 1 1 100%; }
/* 운세 '오늘의 동물' 설명 = 흰 판(카드 모양, 저장 카드와 한 벌 — 대표님 10-01) */
.today-animal-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 16px; margin: 12px 0; }
/* 모임 궁합표(지인 연결 2단계) — 만들기 줄 */
.group-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.group-row .nick { flex: 1 1 100%; min-width: 0; font-size: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; box-sizing: border-box; }
.group-row select { flex: 1 1 40%; min-width: 0; }
/* 모임 궁합표 화면 */
.group-animals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0 12px; }
.group-animals figure { margin: 0; text-align: center; }
.group-animals img { width: 100%; height: auto; border-radius: 10px; background: #F3F0EB; }
.group-animals figcaption { font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.group-pair { margin: 6px 0 10px; }
.group-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 15px; margin: 4px 0; }
.group-table th, .group-table td { border: 1px solid var(--line); text-align: center; padding: 0; height: 36px; }
.group-table td a { display: block; line-height: 36px; text-decoration: none; color: inherit; }
.group-table td.self { background: var(--line); }
.group-table th { font-size: 13px; line-height: 1.25; word-break: keep-all; overflow-wrap: anywhere; padding: 4px 2px; }  /* 머리 칸 = 별명·동물 이름(대표님 10-01) */
.group-table thead th.corner { width: 26%; }
.group-table.many thead th span { display: inline-block; writing-mode: vertical-rl; white-space: nowrap; }  /* 5~8명: 좁은 칸 → 위 머리 칸 세로 글씨 */
.group-axes { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--sub); }
.group-add { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; }

/* PC 보내기 창(대표님 10-01) — 글·버튼은 .modal 공용, QR 은 흰 바탕 정사각형 */
.modal.pc-send { background: rgba(0, 0, 0, .97); }  /* 뒤 화면 버튼 글씨가 「닫기」와 겹쳐 보이지 않게 */
.modal.pc-send h3 { color: #fff; margin: 0; font-size: 20px; text-align: center; }
.modal.pc-send .share-text { max-width: 360px; }
.modal .qr { flex: none; border-radius: 8px; }  /* 크기 = share_ui.js qrSvg(한 칸 = 정수 픽셀 · 넓은 창 280 · 낮은 창 230 이하) */
/* PC 첫 화면 「폰으로 열기」(대표님 10-01) — 넓은 화면만 · 가운데 본문(최대 480) 밖 오른쪽 아래 */
.pc-phone { display: none; }
@media (min-width: 1000px) {
  .pc-phone { display: flex; flex-direction: column; align-items: center; gap: 6px; position: fixed; right: 24px; bottom: 24px; width: 156px; padding: 12px; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 16px; z-index: 5; }
  .pc-phone p { margin: 0; font-size: 13px; line-height: 1.4; text-align: center; word-break: keep-all; color: #555; }
}
/* 운세 맨 위 캐릭터 주인공(대표님 10-01 「귀여워야 계속 보고 싶다」) — 말풍선 = 오늘 제목 · 테두리 = 내 오행 색 */
.fortune-hero { display: flex; flex-direction: column; align-items: center; margin: 6px 0 18px; }
.fortune-hero .bubble { position: relative; margin: 0 0 16px; padding: 10px 18px; max-width: 320px; background: #fff; border: 2px solid var(--ink); border-radius: 20px; font-size: 19px; line-height: 1.4; text-align: center; word-break: keep-all; }
.fortune-hero .bubble::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; background: #fff; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.fortune-hero .char { width: 220px; height: 264px; box-sizing: border-box; border: 6px solid var(--ring, var(--line)); border-radius: 28px; overflow: hidden; background: #F2EFEB; }
.fortune-hero .char video, .fortune-hero .char img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fortune-hero .hero-name { margin: 10px 0 0; font-weight: 800; }
/* 이름(대표님 10-01) — 입력 칸 · 결과·궁합 위 이름 줄 */
.name-field label { display: block; }
.name-field .opt { color: var(--sub); font-weight: 400; }
.name-field input { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; font-size: 17px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.name-field .note { margin: 6px 0 12px; font-size: 13px; color: var(--sub); }
.name-kicker, .pair-names { margin: 4px 0 8px; text-align: center; font-size: 18px; font-weight: 800; }
/* 코리 사주 웹툰(대표님 10-01) — 코리 그림 + 말풍선, 좌우 번갈아 */
.kori { margin: 12px 0 22px; }
.kori h3 { text-align: center; margin: 0 0 12px; }
.kori-panel { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.kori-panel.flip { flex-direction: row-reverse; }
.kori-panel img { width: 120px; height: 144px; flex: none; border-radius: 16px; background: #F2EFEB; object-fit: cover; }
.kori-panel figcaption { flex: 1; min-width: 0; }
.kori-bubble { position: relative; margin: 0; padding: 10px 14px; background: #fff; border: 2px solid var(--ink); border-radius: 16px; font-size: 15px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.kori-bubble::before { content: ''; position: absolute; top: 50%; left: -9px; width: 14px; height: 14px; background: #fff; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-50%) rotate(45deg); }
.kori-panel.flip .kori-bubble::before { left: auto; right: -9px; border-left: 0; border-bottom: 0; border-right: 2px solid var(--ink); border-top: 2px solid var(--ink); }
.kori-tag { margin: 0 0 6px; font-weight: 800; }
.kori-note { margin: 6px 0 0; font-size: 13px; color: var(--sub); }
/* 엘리에게 고민 물어보기(대표님 10-01): 웹툰 아래 · 고민 버튼 = 두 줄 안 · 내 질문 = 오른쪽 말풍선 */
.ask-ellie { margin: 0 0 22px; padding-top: 16px; border-top: 1px dashed var(--line); }
.ask-ellie h3 { text-align: center; margin: 0 0 4px; }
.ask-ellie > .note { text-align: center; margin: 0 0 10px; }
.ask-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 14px; }
.ask-chips .btn { display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 15px; }
.ask-q { margin: 0 0 12px auto; max-width: 80%; width: fit-content; padding: 10px 14px; background: var(--base); border-radius: 16px 16px 4px 16px; font-size: 15px; font-weight: 700; word-break: keep-all; }
.ask-answer .actions { margin-top: 4px; }
/* MBTI 몰라도 궁합(대표님 10-01): 상대 칸 = 그림 대신 큰 「?」(상대 기운 색) · 나 칸 「빠른 검사로 찾기」 */
.panel.unknown { aspect-ratio: 720 / 894; display: flex; align-items: center; justify-content: center; font-size: 72px; font-weight: 800; }
.quiz-find { display: block; margin: 6px 0 0; text-align: left; }
@supports not (aspect-ratio: 1) { .panel.unknown { min-height: 200px; } }  /* 옛 아이폰(iOS 14 이하) = aspect-ratio 없음 → 높이가 무너지지 않게 */
/* 올해 12달 흐름(대표님 10-01): 이번 달 줄 = 연한 바탕 · 「이번 달」 작은 딱지 · 일지와 부딪힘·묶임 = 회색 작은 줄 */
.months { padding-left: 0; list-style: none; margin: 0; }
.months li { margin: 0 0 10px; padding: 6px 8px; border-radius: 8px; line-height: 1.55; }
.months li.now { background: var(--base); }
.months li b { display: block; }
.now-mark { display: inline-block; margin: 0 6px 2px 0; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.month-note { color: var(--sub); font-size: 14px; }
/* 쉬운 길(v3.16, 설계 쉬운 길 v1.0): 큰 버튼 · 버튼 안 작은 설명 · 「더 넣기」 접기 */
.btn.big { padding: 16px 12px; font-size: 17px; }
.btn small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; opacity: .85; }
.more-fold { border: 1.5px dashed var(--line); border-radius: 12px; padding: 0 12px; }
.more-fold summary { min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; cursor: pointer; font-weight: 700; font-size: 15px; }
.more-fold .hint { font-weight: 400; font-size: 13px; color: var(--sub); }
.more-fold[open] { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; }
/* 2분 검사(v3.16): 큰 카드 2개 — 글이 두 줄이어도 넉넉히 */
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { min-height: 72px; padding: 16px 14px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 17px; line-height: 1.45; cursor: pointer; word-break: keep-all; -webkit-tap-highlight-color: transparent; }
.choice:active { background: var(--ink); color: #fff; }
/* 갈림(v3.16): 질문 하나 · 큰 버튼 2개 · 16개 버튼 크게 */
.fork { gap: 14px; }
.fork h2 { margin-top: 20px; }
.types.big { gap: 8px; }
.types.big .type-btn { padding: 15px 0; font-size: 17px; color: var(--ink); }
/* 다시 온 분 카드(v3.16) — 맨 위 · 내 동물 테두리 = 내 기운 색 */
.welcome { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px; border: 2px solid var(--ink); border-radius: 16px; }
.welcome img { width: 140px; height: auto; aspect-ratio: 5 / 6; object-fit: contain; background: var(--base); border: 3px solid var(--el, var(--base)); border-radius: 12px; }
.welcome-hello { margin: 0; color: var(--sub); font-size: 15px; }
.welcome-name { margin: 0; font-size: 20px; font-weight: 800; }
.welcome > .btn { width: 100%; }
.welcome .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.welcome-links { display: flex; justify-content: center; gap: 18px; margin: 0; }
.welcome-links .link { min-height: 44px; }
.start-hint { margin-top: -4px; }
/* 최종 검토(10-02): 작은 글자 링크도 누르는 곳 44px */
.mini-back, .fork .link, .quiz-find-more { min-height: 44px; }
