/* 세계 출생 리포트의 풀이·요약·연출·안내자 팝업. 2026-10-05. 기본 모양은 four-pillars.css·destiny.css 를 함께 쓴다. */
.card .block.reading{border-top:0;padding:14px 16px;margin-top:2px;border-radius:14px;background:linear-gradient(150deg,#2a2146,#1c1a3a);border:1px solid #d7c28b55}
.card .block.reading .block-label{color:#f6e3b8}
.card .reading-keyword{font-family:'Noto Serif KR','Songti SC',Georgia,serif;font-size:24.7px;color:#f6e3b8;margin:0 0 6px}
.wf-reading-year{margin-top:10px!important;padding-top:10px;border-top:1px dashed #d7c28b55;color:#f6e3b8;font-weight:600}

.wf-summary{margin:20px 0 6px;padding:26px 22px 22px;border:1px solid #d7c28b88;border-radius:22px;background:radial-gradient(ellipse at 85% 0,#6a4fa033,transparent 60%),linear-gradient(140deg,#1b1f40,#17132c);box-shadow:0 22px 70px #0006;text-align:center}
.wf-summary h3{font-family:Georgia,'Malgun Gothic',serif;font-size:clamp(26px,4.4vw,33.8px);font-weight:500;margin:4px 0 18px;color:#f6e3b8}
.wf-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(max-width:420px){.wf-summary-grid{grid-template-columns:1fr}}
.wf-summary:lang(ko),.wf-narrator:lang(ko),.card .block.reading:lang(ko){word-break:keep-all}
.wf-summary-tile{padding:16px 12px;border:1px solid #b2955b66;border-radius:16px;background:#0f1430cc;min-width:0}
.wf-summary-tile p{margin:0}
.wf-summary-system{font-size:15.6px;letter-spacing:.08em;color:#deb977}
.wf-summary-symbol{font-family:'Noto Serif KR','Songti SC',Georgia,serif;font-size:clamp(28.6px,5vw,36.4px);line-height:1.3;color:#fff;margin:6px 0 4px!important;overflow-wrap:anywhere}
.wf-summary-keyword{font-size:19.5px;color:#f6e3b8}
.wf-summary-tag{font-size:15.6px;color:#bdb9cf;margin-top:4px!important}
.wf-summary-listen{margin-top:18px}

/* 펼치는 연출 */
.wf-curtain{position:fixed;inset:0;z-index:200;display:grid;place-content:center;justify-items:center;gap:14px;padding:24px;text-align:center;background:radial-gradient(circle at 50% 45%,#2b2350f2,#070a1cf7 70%);animation:wf-curtain-in .3s ease-out}
.wf-curtain p{margin:0}
.wf-curtain-star{font-size:78px;line-height:1;color:#f6e3b8;text-shadow:0 0 34px #f1d79aaa;animation:wf-star-turn 1.6s ease-in-out}
.wf-curtain-text{font-family:Georgia,'Malgun Gothic',serif;font-size:clamp(22px,4.6vw,31.2px);color:#f7f1e8}
@keyframes wf-curtain-in{from{opacity:0}to{opacity:1}}
@keyframes wf-star-turn{0%{transform:scale(.3) rotate(-90deg);opacity:0}45%{transform:scale(1.25) rotate(20deg);opacity:1}100%{transform:scale(1) rotate(0)}}
@keyframes wf-rise{from{opacity:0;transform:translateY(26px) scale(.97)}to{opacity:1;transform:none}}
.wf-revealed .wf-summary{animation:wf-rise .6s ease-out both}
.wf-revealed .wf-summary-tile,.wf-revealed .cards .card{animation:wf-rise .6s ease-out both;animation-delay:calc(.25s + var(--i,0)*.16s)}

/* 안내자 팝업 */
.wf-narrator{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #d7c28b99;border-radius:24px;background:linear-gradient(160deg,#1d2147,#15122a);color:#f7f1e8;box-shadow:0 30px 90px #000a;overflow:visible}
.wf-narrator::backdrop{background:#05071599;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.wf-narrator[open]{display:grid;grid-template-columns:minmax(150px,40%) 1fr;align-items:end;animation:wf-rise .45s ease-out}
.wf-narrator-stage{align-self:end;min-width:0}
.wf-narrator-portrait{width:100%;aspect-ratio:1;background-repeat:no-repeat;background-size:300% 200%;margin-top:-56px;filter:drop-shadow(0 10px 14px #0008)}
.wf-narrator-bubble{position:relative;margin:20px 20px 20px 4px;padding:18px 20px 16px;border-radius:20px;background:#fbf6ea;color:#20162d;min-width:0;display:flex;flex-direction:column;max-height:calc(100dvh - 90px)}
.wf-narrator-bubble::before{content:'';position:absolute;left:-10px;bottom:46px;width:22px;height:22px;background:#fbf6ea;transform:rotate(45deg);border-radius:4px}
.wf-narrator-name{margin:0 0 4px;font-size:15.6px;letter-spacing:.06em;color:#8a6a2c;font-weight:700}
.wf-narrator-body{overflow:auto;min-height:0}
.wf-narrator-body p{margin:0 0 8px;font-size:18.2px;line-height:1.7}
.wf-narrator-system{font-size:15.6px!important;color:#6b5a86;margin-bottom:0!important}
.wf-narrator-symbol{font-family:'Noto Serif KR','Songti SC',Georgia,serif;font-size:31.2px!important;line-height:1.3!important;margin-bottom:0!important}
.wf-narrator-keyword{font-weight:700;color:#7a4f12}
.wf-narrator .wf-reading-year{color:#7a4f12;border-top-color:#c9b88b}
.wf-narrator-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;flex-wrap:wrap}
.wf-narrator-controls button{margin:0;min-height:44px}
.wf-narrator-controls .secondary{background:transparent;color:#4a3f5c;border:1px solid #b7a98a}
.wf-narrator-controls button:disabled{opacity:.35;cursor:default}
.wf-narrator-dots{margin:0;font-size:13px;letter-spacing:2px;color:#8a6a2c}
.wf-narrator-close{position:absolute;top:10px;right:10px;z-index:2;width:38px;min-height:38px;padding:0;margin:0;border-radius:50%;border:1px solid #c9b88b60;background:#141329d9;color:#eee0bf;font-size:22px;line-height:1;cursor:pointer}
@media(max-width:560px){
 .wf-narrator[open]{grid-template-columns:1fr;justify-items:center}
 .wf-narrator-portrait{width:150px;margin-top:-44px}
 .wf-narrator-stage{align-self:auto}
 .wf-narrator-bubble{margin:0 12px 12px;max-height:calc(100dvh - 190px)}
 .wf-narrator-bubble::before{left:calc(50% - 11px);top:-10px;bottom:auto}
}
@media(prefers-reduced-motion:reduce){.wf-curtain,.wf-curtain-star,.wf-narrator[open],.wf-revealed .wf-summary,.wf-revealed .wf-summary-tile,.wf-revealed .cards .card{animation:none}}
