/* 「세 관점이 모인 한 점」 — 사이트 공통 블록 꼴(.card .jt-ch · .jt-head · .jt-answer · .jt-ev, style.css) 위에 카드 뽑기 · 24달 표만 더한다. 색은 style.css 변수만. */
.three-page{color:var(--ink);font-family:var(--sans)}
.three-page *{box-sizing:border-box}
#threeOut{padding:4px 0 28px}
.three-person{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0 0 12px}
.three-person label{font-size:var(--t1);color:var(--ink2)}
.three-person select{font:inherit;color:var(--ink);background:var(--card);border:1px solid var(--line2);border-radius:9px;min-height:44px;padding:8px 14px;max-width:70%}
.three-card .three-title{font-family:var(--serif);font-weight:500;font-size:clamp(25px,6.2vw,34px);line-height:1.42;letter-spacing:-.035em;margin:2px 0 4px;color:var(--ink);word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance}
.three-card .three-q{margin:0 0 14px;font-size:var(--t3);line-height:1.75;color:var(--ink2);word-break:keep-all}
/* 카드 뽑기 — 뒤집힌 카드 일곱 */
.three-window{margin:0 0 6px;font-size:var(--t2);color:var(--ink2);word-break:keep-all}
.three-pick{margin:0 0 12px;font-size:var(--t3);line-height:1.6;color:var(--ink);word-break:keep-all}
.three-backs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:4px 0 6px}
.three-back{appearance:none;border:0;border-radius:8px;background:transparent;padding:0;aspect-ratio:7/12;max-width:100%;cursor:pointer;transition:transform .15s ease}
.three-back-img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.three-back:hover{transform:translateY(-3px)}
.three-back:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:420px){.three-backs{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* 뽑은 카드 */
.three-drawn{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:0 0 14px}
.three-drawn-k{margin:0;font-size:var(--t1);color:var(--ink3)}
.three-face{display:flex;flex-direction:column;gap:2px;min-width:0;max-width:100%;padding:12px 16px;border:1px solid var(--line2);border-left:4px solid var(--accent);border-radius:var(--r2);background:var(--card)}
.three-face b{font-family:var(--serif);font-size:var(--t4);font-weight:600;color:var(--ink);word-break:keep-all}
.three-face small{font-size:var(--t1);color:var(--ink3)}
.three-face.is-rev{border-left-style:dashed}
/* 카드 그림(10-31) — 7:12 틀 안에 통째로(자르지 않음) · 거꾸로는 그림만 돌리고 글은 바로 둔다 */
.three-drawn-row{display:flex;align-items:center;gap:14px;max-width:100%}
.three-card-media{flex:0 0 auto;width:clamp(116px,36vw,200px);aspect-ratio:7/12;max-width:100%}
.three-card-img{display:block;width:100%;height:100%;object-fit:contain}
.three-card-img.is-rev{transform:rotate(180deg)}
.three-drawn-row.has-art .three-face{border:0;padding:0;background:transparent}
.three-orient{font-size:var(--t1);color:var(--accent);font-weight:600}
/* 결론 · 덧말 */
.three-card .three-answer p{margin:0;word-break:keep-all}
.three-card .three-kicker{font-size:var(--t1);color:var(--ink2);margin-bottom:4px}
.three-card .three-point{font-family:var(--serif);font-size:var(--t4);line-height:1.55;color:var(--ink)}
.three-card .three-why{margin-top:6px;font-size:var(--t2);line-height:1.65;color:var(--ink2)}
.three-notes{list-style:none;margin:10px 0 4px;padding:0;display:grid;gap:6px}
.three-notes li{font-size:var(--t2);line-height:1.65;color:var(--ink2);word-break:keep-all}
.three-notes b{color:var(--ink);font-weight:600;margin-right:4px}
.three-next,.three-keep{margin:10px 0 4px;font-size:var(--t2);line-height:1.65;color:var(--ink2);word-break:keep-all}
/* 근거 접힘 */
.three-eye{margin:4px 0 14px}
.three-eye h3{margin:0 0 6px;font-size:var(--t2);font-weight:700;color:var(--ink)}
.three-src{margin:0 0 4px;padding:8px 12px;border-left:3px solid var(--line2);background:var(--bg2);border-radius:0 8px 8px 0;font-size:var(--t2);line-height:1.7;color:var(--ink);overflow-wrap:anywhere}
.three-ref,.three-han{margin:0 0 8px;font-size:var(--t1);line-height:1.6;color:var(--ink3);overflow-wrap:anywhere}
.three-han{color:var(--ink2)}
.three-keys{margin:0 0 6px;padding-left:20px;font-size:var(--t2);line-height:1.75;color:var(--ink2)}
.three-grid-wrap{overflow-x:auto;max-width:100%}
.three-grid{border-collapse:collapse;font-size:var(--t1);min-width:100%}
.three-grid th,.three-grid td{padding:4px 10px;border-bottom:1px solid var(--line);text-align:center;color:var(--ink2);white-space:nowrap}
.three-grid tbody th{text-align:left;font-weight:500}
.three-grid td.is-names{white-space:normal;word-break:keep-all;min-width:4.5em;line-height:1.45}
.three-grid tr.is-meet th,.three-grid tr.is-meet td{color:var(--ink);font-weight:600}
.three-grid tr.is-point th,.three-grid tr.is-point td{color:var(--accent);font-weight:700;background:var(--bg2)}
.three-chance{margin:6px 0 2px;font-size:var(--t2);line-height:1.7;color:var(--ink2);word-break:keep-all}
/* 기다림 · 막힘 · 기록 · 끝 */
.three-need p{margin:0 0 10px;font-size:var(--t3);line-height:1.7;color:var(--ink2);word-break:keep-all}
.three-wait{display:grid;gap:12px;padding:14px 0 8px}
.three-wait span{display:block;height:14px;border-radius:7px;background:linear-gradient(90deg,var(--bg2),var(--line),var(--bg2));background-size:200% 100%;animation:threeWait 1.2s ease-in-out infinite}
.three-wait span:nth-child(2){width:82%}.three-wait span:nth-child(3){width:64%}
@keyframes threeWait{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media(prefers-reduced-motion:reduce){.three-wait span{animation:none}.three-back{transition:none}}
.three-record,.three-end{margin:4px 0 12px;padding:14px 16px;border:1px solid var(--line2);border-radius:var(--r2);background:var(--card)}
.three-record p,.three-end p{margin:0 0 10px;font-size:var(--t2);line-height:1.65;color:var(--ink);word-break:keep-all}
.three-end p{margin:0}
.three-end a{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line);color:var(--accent);font-weight:600;text-decoration:none}
.three-end p+a{margin-top:12px}
.three-record-btns{display:flex;flex-wrap:wrap;gap:8px}
.three-page :focus-visible{outline:3px solid var(--accent);outline-offset:3px}
/* 10-31 세 점 — 물음 고르기 · 세 점 줄(때 · 길흉 · 일어남) · 할 일. 길 = --wood · 흉 = --fire · 섞임 · 변화 = --accent(사이트 공통 색). */
.three-qs-wrap{margin:0 0 14px}
.three-qs{display:flex;flex-wrap:wrap;gap:8px}
.three-q-btn{appearance:none;font:inherit;font-size:var(--t2);line-height:1.4;color:var(--ink);background:var(--card);border:1px solid var(--line2);border-radius:999px;min-height:44px;padding:8px 14px;cursor:pointer;word-break:keep-all;text-align:left;max-width:100%}
.three-q-btn:hover{border-color:var(--accent)}
.three-q-btn.is-on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent2);font-weight:600}
.three-q-btn.is-done::after{content:'';display:inline-block;width:6px;height:6px;margin-left:7px;border-radius:50%;background:var(--accent);vertical-align:middle}
.three-pts{list-style:none;margin:6px 0 2px;padding:0;display:grid;gap:10px}
.three-pt{padding-top:10px;border-top:1px solid var(--line);min-width:0}
.three-pt:first-child{border-top:0;padding-top:2px}
.three-pt-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
.three-pt-name{font-size:var(--t1);font-weight:700;color:var(--ink2);min-width:4.5em}
.three-pt-when{flex:1 1 auto;min-width:0;font-size:var(--t2);color:var(--ink);word-break:keep-all}
.three-pt-gh{font-family:var(--serif);font-size:var(--t3);font-weight:700;color:var(--ink2);word-break:keep-all}
.three-pt[data-gh="길"] .three-pt-gh{color:var(--wood-ink)}   /* 11-01 검토 — 길 글자는 --wood-ink(흰 바탕 4.8:1 · --wood 는 4.2:1이라 AA 4.5 미만) · 띠 · 테두리는 --wood */
.three-pt[data-gh="흉"] .three-pt-gh{color:var(--fire)}
.three-pt[data-gh="섞임"] .three-pt-gh,.three-pt[data-gh="변화"] .three-pt-gh{color:var(--accent)}
.three-card .three-answer p.three-pt-what{margin-top:4px;font-size:var(--t2);line-height:1.65;color:var(--ink2)}
.three-card .three-answer p.three-tally{margin-top:12px;padding-top:10px;border-top:1px solid var(--line);font-family:var(--serif);font-size:var(--t4);line-height:1.5;color:var(--ink)}
.three-card .three-answer p.three-same{margin-top:4px;font-size:var(--t2);line-height:1.6;color:var(--ink2)}
.three-why2{margin:0 0 8px;font-size:var(--t2);line-height:1.65;color:var(--ink2);word-break:keep-all}
.three-grid td[data-gh="길"]{color:var(--wood-ink)}
.three-grid td[data-gh="흉"]{color:var(--fire)}
.three-do{margin:4px 0 12px;padding:14px 16px;border:1px solid var(--line2);border-radius:var(--r2);background:var(--card)}
.three-do .three-kicker{margin:0 0 6px;font-size:var(--t1);color:var(--ink2)}
.three-do ul{margin:0;padding-left:18px;display:grid;gap:6px}
.three-do li{font-size:var(--t2);line-height:1.65;color:var(--ink);word-break:keep-all}
.three-do b{margin-right:4px}
/* 10-31 켈틱 펼침(웨이트 §7) — 나 카드 · 섞기 · 떼기 의식(처음 · 다시 같은 꼴), 펼친 순간(판이 차례로 놓임 → 끝말 + 결과보기), 결과 카드칸 아래 궁정말 한 줄,
   근거 접힘 안 판 · 자리 목록 · 다시 판 · 끝말(움직임 없음). 색은 style.css 변수만(낮 · 밤 그대로). p 는 .jt-ch p(글자 16 · 줄 1.9 · 아래 10)를 이기도록 .three-card 를 앞에 붙인다.
   화면 안으로 부르는 칸(의식 · 펼친 판 · 결과 카드칸 — three.js D6)은 위 머리줄 · 아래 네비(둘 다 고정)에 가리지 않게 scroll-margin. */
.three-rite{margin:0 0 6px;scroll-margin-top:84px;scroll-margin-bottom:92px}
.three-rite-row{display:flex;align-items:flex-start;justify-content:center;gap:clamp(18px,7vw,40px);margin:8px 0 10px}
.three-sig{margin:0;flex:0 0 auto;width:clamp(88px,27vw,124px);display:flex;flex-direction:column;align-items:center;gap:6px}
.three-sig-img{display:block;width:100%;aspect-ratio:7/12;object-fit:contain}
.three-sig figcaption{display:flex;flex-direction:column;align-items:center;gap:1px;max-width:100%;text-align:center}
.three-sig figcaption b{font-family:var(--serif);font-size:var(--t2);font-weight:600;line-height:1.4;color:var(--ink);word-break:keep-all}
.three-sig figcaption b[lang="en"]{font-family:var(--sans);font-size:var(--t1)}
.three-sig figcaption small{font-size:var(--t1);line-height:1.4;color:var(--ink3)}
.three-pile{position:relative;flex:0 0 auto;width:clamp(88px,27vw,124px);aspect-ratio:7/12;isolation:isolate}
.three-pile-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform:translate(calc(var(--o,0) * -1px),calc(var(--o,0) * 1px))}
/* 10-31 결정함 83 — 섞기: 여섯 장을 홀 · 짝 둘로 갈라 좌우로 벌렸다 엇갈려 모으기 두 번(1.15초) · 떼기: 위 세 장을 들어 옆으로 옮겨 밑으로(.75초) */
.three-pile.is-shuffle .three-pile-img:nth-child(odd){animation:threeRifL 1.15s ease-in-out both;animation-delay:calc(var(--o,0) * 12ms)}
.three-pile.is-shuffle .three-pile-img:nth-child(even){animation:threeRifR 1.15s ease-in-out both;animation-delay:calc(var(--o,0) * 12ms)}
.three-pile.is-cut .three-pile-img:nth-child(n+4){animation:threeCutTop .75s ease-in-out both}
@keyframes threeRifL{0%,46%,100%{transform:translate(calc(var(--o,0) * -1px),calc(var(--o,0) * 1px))}16%,28%{transform:translate(-46%,5px) rotate(-9deg)}64%,76%{transform:translate(-32%,2px) rotate(-6deg)}}
@keyframes threeRifR{0%,46%,100%{transform:translate(calc(var(--o,0) * -1px),calc(var(--o,0) * 1px))}16%,28%{transform:translate(46%,-5px) rotate(9deg)}64%,76%{transform:translate(32%,-2px) rotate(6deg)}}
@keyframes threeCutTop{0%{transform:translate(calc(var(--o,0) * -1px),calc(var(--o,0) * 1px));z-index:1}36%{transform:translate(60%,-14%) rotate(6deg);z-index:1}50%{transform:translate(60%,-2%) rotate(3deg);z-index:-1}100%{transform:translate(calc(var(--o,0) * -1px),calc(var(--o,0) * 1px));z-index:-1}}
.three-card p.three-sig-why{margin:0 0 4px;font-size:var(--t2);line-height:1.65;color:var(--ink2);text-align:center;word-break:keep-all}
.three-rite-btn{margin-top:12px}
/* 펼침 그림 — 칸 7 : 12 : 7 : 1 : 7(6 앞 · 십자 가운데 · 5 뒤 · 틈 · 기둥) · 반줄 8(카드 하나 = 반줄 둘 = 7:12). 판 비 34:48 이라 폭 따라 늘고 줄어
   375px 폰에서도 가로로 넘치지 않는다(아주 좁으면 이 상자 안에서만 밀림). 십자 = 3(반줄 2 ~ 3) · 가운데(4 ~ 5) · 4(6 ~ 7), 기둥 7 ~ 10 은 아래에서 위로. */
.three-sp-wrap{max-width:100%;overflow-x:auto;overflow-y:hidden;margin:4px 0 12px;padding:3px 0}
.three-sp-board{display:grid;grid-template-columns:7fr 12fr 7fr 1fr 7fr;grid-template-rows:repeat(8,minmax(0,1fr));aspect-ratio:34/48;width:100%;min-width:232px;max-width:340px;margin:0 auto}
.three-sp{position:relative;min-width:0;min-height:0}
/* 펼친 순간에만(.is-anim) — 나(--i 0) → 1 ~ 10 차례로 놓인다. 줄어든 채 나타남 — 판 밖으로 밀려나지 않게(세로 스크롤 막대 없음) */
.three-sp-board.is-anim .three-sp{animation:threeSpIn .42s ease both;animation-delay:calc(var(--i,0) * 110ms)}
@keyframes threeSpIn{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
.three-sp-img{position:absolute;inset:0;margin:auto;display:block;width:auto;height:auto;max-width:92%;max-height:94%;border-radius:3px}
.three-sp-img.is-rev{transform:rotate(180deg)}
.three-sp-img.is-cross{transform:rotate(90deg) scale(.84)}
.three-sp-img.is-cross.is-rev{transform:rotate(270deg) scale(.84)}
.three-sp-none{width:86%;height:88%;border:1px dashed var(--line2);background:var(--bg2)}
.three-sp-mid{grid-column:2;grid-row:4/span 2;position:relative;min-width:0;min-height:0}
.three-sp-mid>.three-sp{position:absolute;top:0;bottom:0;width:58.333%}
.three-sp-sig{left:1%}
.three-sp-1{right:1%}
.three-sp-2{left:20.833%}
.three-sp-3{grid-column:2;grid-row:2/span 2}
.three-sp-4{grid-column:2;grid-row:6/span 2}
.three-sp-3,.three-sp-4{margin:0 20.833%}   /* 12칸 넓이 가운데 열에서 카드 폭(7)만 — 번호가 카드 귀에 붙게 */
.three-sp-5{grid-column:3;grid-row:4/span 2}
.three-sp-6{grid-column:1;grid-row:4/span 2}
.three-sp-board.is-face-right .three-sp-5{grid-column:1}   /* 나 카드 그림이 오른쪽을 보면 등진 쪽(5 · 687)이 왼쪽 */
.three-sp-board.is-face-right .three-sp-6{grid-column:3}   /* 바라보는 쪽(6 · 691)이 오른쪽 */
.three-sp-7{grid-column:5;grid-row:7/span 2}
.three-sp-8{grid-column:5;grid-row:5/span 2}
.three-sp-9{grid-column:5;grid-row:3/span 2}
.three-sp-10{grid-column:5;grid-row:1/span 2}
.three-sp-n{position:absolute;top:0;left:0;z-index:2;min-width:18px;height:18px;padding:0 4px;border-radius:9px;border:1px solid var(--line2);background:var(--card);color:var(--ink2);font-size:var(--t1);font-weight:700;line-height:16px;text-align:center}
.three-sp-1 .three-sp-n{left:auto;right:0}
.three-sp-2 .three-sp-n{top:50%;left:-14%;transform:translateY(-50%)}
.three-sp.is-end .three-sp-n{background:var(--accent);border-color:var(--accent);color:var(--card)}
.three-sp.is-end .three-sp-img{outline:2px solid var(--accent);outline-offset:1px}
/* 자리 목록 */
.three-sp-list{list-style:none;margin:0 0 10px;padding:0}
.three-sp-row{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-top:1px solid var(--line)}
.three-sp-row:first-child{border-top:0}
.three-sp-no{flex:0 0 auto;min-width:22px;height:22px;margin-top:1px;border-radius:11px;border:1px solid var(--line2);background:var(--card);color:var(--ink2);font-size:var(--t1);font-weight:700;line-height:20px;text-align:center}
.three-sp-row.is-end .three-sp-no{background:var(--accent);border-color:var(--accent);color:var(--card)}
.three-sp-txt{flex:1 1 auto;min-width:0}
.three-card .three-sp-txt p{margin:0;font-size:var(--t2);line-height:1.6;color:var(--ink2);word-break:keep-all;overflow-wrap:anywhere}
.three-card .three-sp-txt p.three-sp-pos{color:var(--ink)}
.three-sp-pos b{font-weight:700;margin-right:6px}
.three-sp-gh{font-family:var(--serif);font-weight:700;color:var(--ink2);white-space:nowrap}
.three-sp-row[data-gh="길"] .three-sp-gh{color:var(--wood-ink)}
.three-sp-row[data-gh="흉"] .three-sp-gh{color:var(--fire)}
.three-sp-row[data-gh="섞임"] .three-sp-gh,.three-sp-row[data-gh="변화"] .three-sp-gh{color:var(--accent)}
.three-card .three-sp-txt p.three-sp-card{color:var(--ink)}
.three-sp-card small{font-size:var(--t1);color:var(--ink3)}
.three-sp-or{font-size:var(--t1);font-weight:600;color:var(--accent)}
.three-card .three-sp-txt p.three-sp-mean{font-size:var(--t1);line-height:1.55;color:var(--ink3)}
/* 장 풀이 줄(결정함 84) — 카드뜻 · 영향 · 왜 · 원문 낱말(영어 그대로) */
.three-card .three-sp-txt p.three-sp-line,.three-card .three-sp-txt p.three-sp-eff{margin-top:4px;color:var(--ink);line-height:1.65}
.three-card .three-sp-txt p.three-sp-why{margin-top:4px;font-size:var(--t1);line-height:1.6;color:var(--ink2)}
.three-card .three-sp-txt p.three-sp-src{margin-top:4px;font-size:var(--t1);line-height:1.55;color:var(--ink3);font-style:italic}
.three-sp-src small,.three-read-src small{font-style:normal;color:var(--ink3)}
.three-sp-src b,.three-read-src b{font-weight:700;color:var(--ink)}
/* 펼친 순간(D3) — 판이 다 놓인 뒤(열째 1.1초 + .42초 무렵) 끝말 + 결과보기(다시 펼침이면 다시말 + 섞기)가 떠오른다 */
.three-reveal{margin:2px 0 6px;scroll-margin-top:84px;scroll-margin-bottom:92px}
.three-reveal .three-sp-wrap{margin:6px 0 12px}
.three-reveal-foot{display:grid;justify-items:center;text-align:center;scroll-margin-bottom:92px;animation:threeFoot .45s ease both;animation-delay:.45s}   /* 열째를 뒤집은 뒤 · 아래 네비에 가리지 않게 */
.three-card p.three-reveal-line{margin:0;max-width:100%;font-family:var(--serif);font-size:var(--t3);line-height:1.7;color:var(--ink);word-break:keep-all;overflow-wrap:anywhere}
@keyframes threeFoot{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* 결과 — 카드칸(결과보기 뒤 화면 안으로 · 초점 테는 .three-page :focus-visible) · 궁정말 한 줄(카드칸 바로 아래 — 그 카드에 붙은 말) */
.three-card .three-drawn{scroll-margin-top:84px}
.three-card p.three-sp-court{margin:-6px 0 14px;padding:1px 0 1px 10px;border-left:2px solid var(--accent);font-size:var(--t2);line-height:1.65;color:var(--ink2);word-break:keep-all;overflow-wrap:anywhere}
/* 열 장 접힘(결정함 84 — 세 점 결론 아래 · 근거 위) 안 펼침 — 판(움직임 없음 · 조금 작게) · 열 장 이야기 · 자리 목록(장 풀이 줄) · 다시말 · 다시보기 · 끝말(읽는법은 없음 — 87) */
.three-spread{margin:2px 0 14px}
.three-cards .three-sp-board{max-width:260px}
.three-card .three-spread p.three-sp-head{margin:6px 0 0;font-size:var(--t1);font-weight:700;line-height:1.6;color:var(--ink2);word-break:keep-all}
.three-card .three-spread p.three-sp-again{margin:2px 0 4px;padding-top:10px;border-top:1px solid var(--line);font-size:var(--t2);line-height:1.7;color:var(--ink);word-break:keep-all;overflow-wrap:anywhere}
.three-card .three-spread p.three-sp-endline{margin:0;padding-top:10px;border-top:1px solid var(--line);font-family:var(--serif);font-size:var(--t3);line-height:1.65;color:var(--ink);word-break:keep-all;overflow-wrap:anywhere}
/* 10-31 고르기 · 뒤집기(결정함 83 — 사장님 「타로 카드 뽑는 게 재미가 없네」) — 고르는 판 · 부채꼴 77장 · 뒤집는 판 · 읽기 칸. 색은 style.css 변수만. */
.three-picking .three-sp-board{max-width:250px}
.three-sp-slot{width:86%;height:88%;border:1.5px dashed var(--line2);border-radius:4px;background:transparent}
.three-sp.is-next .three-sp-slot{border-color:var(--accent);animation:threeSlot 1.3s ease-in-out infinite}
@keyframes threeSlot{50%{border-color:var(--line2)}}
.three-sp.is-arrive{animation:threeArrive .38s cubic-bezier(.2,.8,.3,1) both}
@keyframes threeArrive{from{opacity:0;transform:translateY(80%) scale(.8)}to{opacity:1;transform:none}}
.three-sp-board.is-pick .three-sp.is-empty .three-sp-n{opacity:.55}
.three-sp-board.is-pick .three-sp.is-next .three-sp-n{opacity:1;background:var(--accent);border-color:var(--accent);color:var(--card)}
.three-card p.three-fan-say{margin:2px 0 0;font-size:var(--t2);line-height:1.6;color:var(--ink2);text-align:center;word-break:keep-all}
.three-card p.three-fan-count{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 8px;margin:6px 0 0;font-size:var(--t2);line-height:1.5;color:var(--ink);text-align:center;word-break:keep-all}
.three-fan-no{min-width:22px;height:22px;padding:0 5px;border-radius:11px;background:var(--accent);color:var(--card);font-size:var(--t1);font-weight:700;line-height:22px;text-align:center}
.three-fan-count b{font-weight:700}
.three-fan-of{font-size:var(--t1);color:var(--ink3);font-variant-numeric:tabular-nums}
/* 부채꼴 — 카드 폭 --fw · 돌림 반지름 --fr(카드 위끝에서 아래 돌림점까지) · -50 ~ 50도. 375px 폰에서 폭 약 290px · 높이 약 150px. 고른 장은 빠져 자리가 빈다. */
.three-fan{--fw:clamp(40px,11.5vw,52px);--fr:clamp(150px,44vw,230px);position:relative;scroll-margin-top:84px;scroll-margin-bottom:92px;height:calc(22px + var(--fr) * .36 + var(--fw) * 1.5);max-width:100%;margin:2px 0 4px;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.three-fan-card{position:absolute;left:50%;top:18px;width:var(--fw);aspect-ratio:7/12;margin:0 0 0 calc(var(--fw) / -2);padding:0;border:1px solid var(--line2);border-radius:4px;background:var(--bg2) url(art/tarot/chaeksa-v1/back-s.webp) center/cover no-repeat;box-shadow:-1px 1px 0 var(--line);transform-origin:50% var(--fr);transform:rotate(calc(var(--a,0) * 1deg));cursor:pointer;transition:transform .14s ease}
@media(hover:hover){.three-fan-card:hover{transform:rotate(calc(var(--a,0) * 1deg)) translateY(-14px)}}
.three-fan-card:active{transform:rotate(calc(var(--a,0) * 1deg)) translateY(-16px)}
.three-fan-card:focus-visible{outline:2px solid var(--accent);outline-offset:1px;transform:rotate(calc(var(--a,0) * 1deg)) translateY(-14px)}
.three-fan.is-spread .three-fan-card{animation:threeFanIn .75s cubic-bezier(.2,.75,.25,1) both;animation-delay:calc(var(--k,0) * 4ms)}
@keyframes threeFanIn{from{opacity:0;transform:rotate(0deg)}25%{opacity:1}to{opacity:1;transform:rotate(calc(var(--a,0) * 1deg))}}
/* 뒤집는 판 + 읽기 칸 — 늘 한 단(판 위 · 읽기 칸 아래 — 장 풀이 줄이 길어 두 단이면 읽기 칸이 좁다 · 결정함 84) */
.three-reveal-main{display:grid;gap:2px;align-items:start}
.three-sp-board.is-flipping{max-width:270px}
.three-sp-wrap[data-three-flipboard]{cursor:pointer;-webkit-tap-highlight-color:transparent}
.three-sp.is-next .three-sp-back{outline:2px solid var(--accent);outline-offset:2px;animation:threeNext 1.3s ease-in-out infinite}
@keyframes threeNext{50%{outline-color:transparent}}
.three-sp-face,.three-sp-backface{position:absolute;inset:0;display:block}
.three-sp.is-flip{z-index:3}
.three-sp-mid>.three-sp-2{z-index:4}   /* 가로지른 2(681 「crosses」)는 1 위 — 1을 막 뒤집을 때도 */
.three-sp.is-flip .three-sp-backface{animation:threeFlipOut .2s ease-in both}
.three-sp.is-flip .three-sp-face{animation:threeFlipIn .26s ease-out .18s both}
@keyframes threeFlipOut{to{transform:scaleX(0)}}
@keyframes threeFlipIn{from{transform:scaleX(0)}to{transform:none}}
.three-flip-foot{display:grid;justify-items:center;position:sticky;bottom:calc(78px + env(safe-area-inset-bottom,0px));z-index:5;padding:8px 0 4px;background:linear-gradient(to top,var(--card) 70%,transparent);box-shadow:0 6px 0 var(--card)}   /* 아래 네비(실측 높이 73.2px — v1535 배포 뒤 검토) 바로 위 · 띠 아래 4.8px 틈은 같은 색 그림자로 메움(88) */
.three-flip-foot .three-rite-btn{margin-top:4px}
.three-read{display:block;min-width:0;scroll-margin-top:84px;scroll-margin-bottom:92px;margin:6px 0 4px;padding:12px 14px;border:1px solid var(--line2);border-left:4px solid var(--line2);border-radius:var(--r2);background:var(--card)}
.three-read[data-gh="길"]{border-left-color:var(--wood)}
.three-read[data-gh="흉"]{border-left-color:var(--fire)}
.three-read[data-gh="섞임"],.three-read[data-gh="변화"]{border-left-color:var(--accent)}
.three-read.is-end{border-color:var(--accent);border-left-width:4px}
.three-read.is-in{animation:threeReadIn .32s ease .3s both}
@keyframes threeReadIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.three-read-top{display:flex;align-items:flex-start;gap:14px;min-width:0}
.three-read-art{flex:0 0 auto;width:clamp(72px,21vw,100px);aspect-ratio:7/12}
.three-read-img{display:block;width:100%;height:100%;object-fit:contain}
.three-read-img.is-rev{transform:rotate(180deg)}
.three-read-txt{flex:1 1 auto;min-width:0}
.three-card .three-read-txt p{margin:0;word-break:keep-all;overflow-wrap:anywhere}
.three-card .three-read-txt p.three-read-pos{display:flex;align-items:center;gap:6px;font-size:var(--t1);line-height:1.5;color:var(--ink2)}
.three-read-pos b{font-weight:700}
.three-card .three-read-txt p.three-read-card{margin-top:4px;font-family:var(--serif);font-size:var(--t3);line-height:1.5;color:var(--ink)}
.three-read-card b{font-weight:600}
.three-read-card small{font-family:var(--sans);font-size:var(--t1);color:var(--ink3)}
.three-card .three-read-txt p.three-read-gh{margin-top:2px;font-family:var(--serif);font-size:var(--t3);font-weight:700;line-height:1.5;color:var(--ink2)}
.three-card .three-read[data-gh="길"] p.three-read-gh{color:var(--wood-ink)}   /* 11-01 — 바로 위 줄(0,3,1)의 color 가 덮어 늘 회색이었다(88 이야기 띠와 같은 꼴) */
.three-card .three-read[data-gh="흉"] p.three-read-gh{color:var(--fire)}
.three-card .three-read[data-gh="섞임"] p.three-read-gh,.three-card .three-read[data-gh="변화"] p.three-read-gh{color:var(--accent)}
.three-card .three-read-txt p.three-read-mean{margin-top:2px;font-size:var(--t1);line-height:1.55;color:var(--ink3)}
.three-read-body{margin-top:10px;padding-top:10px;border-top:1px solid var(--line);display:grid;gap:6px;min-width:0}
.three-card .three-read-body p{margin:0;word-break:keep-all;overflow-wrap:anywhere}
.three-card .three-read-body p.three-read-line,.three-card .three-read-body p.three-read-eff{font-size:var(--t2);line-height:1.7;color:var(--ink)}
.three-card .three-read-body p.three-read-why{font-size:var(--t1);line-height:1.6;color:var(--ink2)}
.three-card .three-read-body p.three-read-src{font-size:var(--t1);line-height:1.6;color:var(--ink3);font-style:italic}
.three-card p.three-read-how{margin:6px 0 4px;font-size:var(--t2);line-height:1.7;color:var(--ink2);text-align:center;word-break:keep-all;overflow-wrap:anywhere}
/* 열 장 이야기(결정함 85) — 때 차례 막(지나온 것 · 지금 · 앞으로 · 끝) · 줄마다 자리 번호 · 길흉 띠 */
.three-story{display:grid;gap:10px;min-width:0;margin:10px 0 6px;padding:14px 14px 12px;border:1px solid var(--line2);border-radius:var(--r2);background:var(--bg2)}
.three-card .three-story p{margin:0;word-break:keep-all;overflow-wrap:anywhere}
.three-card .three-story p.three-story-head{font-family:var(--serif);font-size:var(--t3);font-weight:700;line-height:1.5;color:var(--ink)}
.three-story-act{display:grid;gap:6px;min-width:0}
.three-card .three-story p.three-story-when{font-size:var(--t1);font-weight:700;letter-spacing:.04em;line-height:1.5;color:var(--accent)}
.three-card .three-story p.three-story-beat{display:flex;align-items:flex-start;gap:8px;padding-left:8px;border-left:3px solid var(--line2);font-size:var(--t2);line-height:1.75;color:var(--ink)}
.three-card .three-story p.three-story-beat[data-gh="길"]{border-left-color:var(--wood)}   /* 88 — 바로 위 줄(0,3,1)의 border-left 가 색을 덮어 늘 회색이었다 */
.three-card .three-story p.three-story-beat[data-gh="흉"]{border-left-color:var(--fire)}
.three-card .three-story p.three-story-beat[data-gh="섞임"]{border-left-color:var(--accent)}
.three-story-txt{flex:1 1 auto;min-width:0}
.three-reveal>.three-story{animation:threeReadIn .32s ease .3s both}
.three-pile{cursor:pointer;-webkit-tap-highlight-color:transparent}   /* 결정함 86 — 더미를 눌러도 섞기 · 떼기 */
@media(prefers-reduced-motion:reduce){.three-reveal>.three-story{animation:none}}
@media(prefers-reduced-motion:reduce){.three-sp-board.is-anim .three-sp,.three-reveal-foot,.three-sp.is-arrive,.three-sp.is-next .three-sp-slot,.three-sp.is-next .three-sp-back,.three-sp.is-flip .three-sp-face,.three-read.is-in,.three-fan.is-spread .three-fan-card{animation:none}.three-sp.is-flip .three-sp-backface{display:none}.three-fan-card{transition:none}.three-pile .three-pile-img{animation:none!important}}
/* 11-01 대길 · 대흉(결정함 95) — 바로 선 큰 카드의 길 · 흉. 글자색 · 띠 색은 data-gh 그대로 · 이름표를 테두리 칸으로, 띠를 굵게. */
.three-card .three-pt[data-dae] .three-pt-gh,.three-card .three-sp-row[data-dae] .three-sp-gh,.three-card .three-read[data-dae] p.three-read-gh{display:inline-block;padding:0 .4em;border:1.5px solid currentColor;border-radius:4px;font-weight:800;letter-spacing:.03em}
.three-read[data-dae]{border-left-width:6px}
.three-card .three-story p.three-story-beat[data-dae]{border-left-width:5px}
/* 열 장 융복합(11-01 · COPY-0028) — 열째 풀이 아래 한 단락 · 첫 줄(결론) 굵게 · 이야기는 그 아래 접힘 */
.three-fuse{display:grid;gap:8px;min-width:0;margin:10px 0 6px;padding:14px 14px 12px;border:1px solid var(--accent);border-radius:var(--r2);background:var(--bg2)}
.three-card .three-fuse p{margin:0;word-break:keep-all;overflow-wrap:anywhere;font-size:var(--t2);line-height:1.75;color:var(--ink)}
.three-card .three-fuse p.three-fuse-head{font-family:var(--serif);font-size:var(--t3);font-weight:700;line-height:1.5}
.three-card .three-fuse p.three-fuse-again{font-size:var(--t1);color:var(--ink2)}
.three-card .three-fuse p.three-fuse-line.is-lead{font-weight:700}
.three-story-fold{min-width:0;margin:4px 0 6px}
.three-story-fold>summary{cursor:pointer;font-size:var(--t2);color:var(--ink2);padding:6px 0}
