/* V4: only the preview, two maps, and exploration board animate. Reading is immediate. */
#result.free-v2 .fr-v2 .fr-v2 [data-section="S2"],#result.free-v2 .fr-v2 .fr-v2 [data-section="S6"] { max-width:1080px; }
#result.free-v2 .fr-v2 .v4-reading-pair { display:grid; grid-template-columns:1fr 1fr; gap:24px; max-width:1080px; margin:auto; }
#result.free-v2 .fr-v2 .v4-reading-pair [data-section] { width:100%; }
#result.free-v2 .fr-v2 .v4-reading { border:1px solid #7789a4; border-radius:18px; padding:18px 22px; background:#101827; }
#result.free-v2 .fr-v2 .v4-identity { border:0!important; margin:0!important; }
#result.free-v2 .fr-v2 .v4-identity summary { font-size:21px; font-weight:650; }
#result.free-v2 .fr-v2 .v4-combo { border-left:2px solid #d9b878; padding-left:12px; }
.v4-chart svg { width:100%; display:block; color:#9dc6ff; }
.v4-chart { max-width:300px; margin:12px auto; }
.v4-chart :is(.report-birthmap-ring,.report-birthmap-sign-tick,.report-birthmap-axis,.report-birthmap-planet-tick,.report-birthmap-planet-connector) { stroke:#7789a4; fill:none; }
.v4-chart .report-birthmap-ring-brass { stroke:#d9b878; fill:none; }
.v4-chart text { fill:#d0d9e8; font-size:12px; text-anchor:middle; }
.v4-chart .report-birthmap-planet :is(path,circle) { stroke:#9dc6ff; fill:none; }
.v4-chart .report-birthmap-planet .solid { fill:#9dc6ff; }
.v4-chart .report-birthmap-planet .v4-planet-hit { stroke:none; fill:transparent; pointer-events:all; }
.v4-chart .report-birthmap-planet:focus-visible .v4-planet-hit { stroke:#f3f5fa; stroke-width:3px; }
.fr-maps [data-v4-card]:focus-visible { outline:3px solid #9dc6ff; outline-offset:3px; cursor:pointer; }
.v4-chart .report-birthmap-house-number { font-size:10px; }
.fr-maps .report-birthmap-saju-grid,.v4-preview .report-birthmap-saju-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; border:0; min-height:0; margin:18px 0; }
.fr-maps .report-birthmap-saju-grid:has(> :nth-child(3):last-child),.v4-preview .report-birthmap-saju-grid:has(> :nth-child(3):last-child) { grid-template-columns:repeat(3,minmax(0,1fr)); }
.fr-maps .report-birthmap-pillar,.v4-preview .report-birthmap-pillar { position:relative; display:flex; flex-direction:column; align-items:center; gap:5px; padding:14px 2px; background:#172337; border:1px solid #7789a4; border-radius:12px; height:auto; min-height:0; }
.fr-maps .report-birthmap-hanja { font:500 42px/1.2 var(--s-serif,serif); color:#f3f5fa; }
.v4-preview .report-birthmap-hanja { font:500 29px/1.2 var(--s-serif,serif); color:#f3f5fa; }
.fr-maps :is(.report-birthmap-ten-god,.report-birthmap-korean,.report-birthmap-pillar-position),.v4-preview :is(.report-birthmap-ten-god,.report-birthmap-korean,.report-birthmap-pillar-position) { color:#d0d9e8; font-size:12px; }
.fr-maps .report-birthmap-hidden,.v4-preview .report-birthmap-hidden { display:none; }
.fr-maps .is-day,.v4-preview .is-day { border-color:#d9b878; }
.fr-maps .report-birthmap-me,.v4-preview .report-birthmap-me { position:absolute; top:-10px; left:50%; transform:translateX(-50%); z-index:1; padding:0 7px; border:1px solid #d9b878; border-radius:8px; width:auto; height:auto; color:#d9b878; font-size:11px; line-height:14px; white-space:nowrap; background:#172337; }
#result.free-v2 .fr-v2 .v4-map-buttons { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
#result.free-v2 .fr-v2 .v4-map-buttons button { font-size:13px; border-color:#7789a4; }
.v4-bigthree { display:flex; flex-direction:column; gap:4px; font-size:13px; color:#d0d9e8; }
.s2-card.v4-calculated > :is(.s2-card-empty,.s2-card-cols,.s2-card-place) { display:none!important; }
html body .s2-card.is-empty .s2-card-cols { display:grid; }
.v4-preview-place { font-size:12px; color:#d0d9e8; }
.v4-preview-chart summary { cursor:pointer; min-height:44px; color:#d0d9e8; padding:10px 0; }
.v4-preview-chart .v4-chart { max-width:200px; }
.v4-preview-chart[open] .report-birthmap-planet { animation:v4-orbit 650ms cubic-bezier(.2,.8,.2,1) both; offset-path:path("M 18 -12 A 22 22 0 0 1 0 0"); offset-rotate:0deg; transform-box:fill-box; transform-origin:center; }
.v4-pillar-enter { animation:v4-pillar 320ms ease-out var(--delay,0ms) both; }
@keyframes v4-pillar { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
@keyframes v4-orbit { from { opacity:0; offset-distance:0%; } to { opacity:1; offset-distance:100%; } }
#result.free-v2 .fr-v2 .v4-board { border:1px solid #7789a4; border-radius:24px; padding:20px; background:#101827; }
#result.free-v2 .fr-v2 .v4-board-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
#result.free-v2 .fr-v2 .v4-board-nav { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:16px 0; }
#result.free-v2 .fr-v2 .v4-board-nav [role=status] { font-size:13px; color:#d0d9e8; }
#result.free-v2 .fr-v2 :is(.v4-board-nav button,[data-v4-motion],.v4-scene-pages button,.v4-locked) { border-color:#7789a4; }
#result.free-v2 .fr-v2 .v4-stage { height:530px; overflow:hidden; position:relative; border-radius:20px; background:radial-gradient(ellipse at center,#25364e 0,#131e30 58%,#101827 95%); }
#result.free-v2 .fr-v2 .v4-camera { position:absolute; inset:0; transform-origin:center; transition:transform 600ms cubic-bezier(.18,.75,.2,1),opacity 200ms; }
#result.free-v2 .fr-v2 .v4-island { position:absolute; left:var(--x); top:var(--y); width:var(--size); height:var(--size); min-width:44px; min-height:44px; transform:translate(-50%,-50%); border:1px solid #9dc6ff; border-radius:44%; background:#20364f; box-shadow:0 5px 24px #0004; font-size:14px; line-height:1.3; padding:8px; }
#result.free-v2 .fr-v2 .v4-island small { display:block; font-size:10px; color:#e4edf8; line-height:1.4; margin-top:4px; }
#result.free-v2 .fr-v2 .v4-island.saju { border-color:#d9b878; background:#3f3629; }
#result.free-v2 .fr-v2 .v4-island.both { border-color:#d9b878; background:linear-gradient(135deg,#264467,#4d4230); }
#result.free-v2 .fr-v2 .v4-center { background:#222c3c; border-color:#d9b878; font-size:24px; }
#result.free-v2 .fr-v2 .v4-scene { position:absolute; inset:16px; padding:28px; overflow-y:auto; border:1px solid #7789a4; border-radius:18px; background:#101827f5; color:#d0d9e8; }
#result.free-v2 .fr-v2 .v4-scene[hidden] { display:none; }
#result.free-v2 .fr-v2 .v4-scene p { font-size:16px; }
#result.free-v2 .fr-v2 .v4-scene-pages { display:flex; flex-wrap:wrap; gap:6px; }
#result.free-v2 .fr-v2 .v4-arrive { animation:v4-arrive 600ms cubic-bezier(.18,.75,.2,1); }
@keyframes v4-arrive { from { opacity:0; transform:scale(.88) translateY(12px); } to { opacity:1; transform:none; } }
#result.free-v2 .fr-v2 .v4-locked { display:block; width:100%; margin-top:24px; border-style:dashed; color:#d0d9e8; }
#result.free-v2 .fr-v2 .v4-lock-shake { animation:v4-lock 280ms ease-out; }
@keyframes v4-lock { 0%,100% { transform:none; } 25% { transform:translateX(-4px); } 75% { transform:translateX(4px); } }
.v4-dialog { max-width:min(500px,calc(100vw - 32px)); padding:28px; border:1px solid #7789a4; border-radius:18px; background:#101827; color:#f3f5fa; }
.v4-dialog::backdrop { background:#050b18b3; }
.v4-dialog p { color:#d0d9e8; line-height:1.7; }
.v4-dialog button { min-height:44px; padding:10px 14px; border-radius:10px; border:1px solid #9dc6ff; background:transparent; color:#f3f5fa; font:inherit; cursor:pointer; }
.v4-dialog :focus-visible,.v4-preview-chart summary:focus-visible { outline:3px solid #9dc6ff; outline-offset:3px; }
#result.free-v2 .fr-v2 .v4-board[data-reduced=true] .v4-camera { transition:opacity 120ms!important; }
#result.free-v2 .fr-v2 .v4-board[data-reduced=true] :is(.v4-arrive,.v4-lock-shake) { animation:v4-fade 120ms ease-out; }
.v4-reduced .v4-pillar-enter,.v4-reduced .v4-preview-chart[open] .report-birthmap-planet { animation:none!important; }
@keyframes v4-fade { from { opacity:.7; } to { opacity:1; } }
@media(min-width:1024px) { .v4-preview-chart { display:block; } .v4-preview-chart > .v4-chart,.v4-preview-chart > .v4-bigthree { content-visibility:visible; } }
@media(max-width:1023px) {
 html:not(:has(#result:not([hidden]))) body .s2-card { display:block; margin-top:20px; padding:16px; border:1px solid #52637c; border-radius:18px; background:#101827; }
}
@media(max-width:599px) {
 #result.free-v2 .fr-v2 .v4-reading-pair { grid-template-columns:1fr; gap:12px; margin-bottom:24px; }
 #result.free-v2 .fr-v2 .v4-reading-pair [data-section] { margin-bottom:0; }
 #result.free-v2 .fr-v2 .v4-reading { padding:12px 18px; }
 #result.free-v2 .fr-v2 .fr-maps { grid-template-columns:1fr; }
 #result.free-v2 .fr-v2 .v4-astro .v4-chart { max-width:210px; }
 #result.free-v2 .fr-v2 .v4-board { padding:12px; }
 #result.free-v2 .fr-v2 .v4-board-head { align-items:flex-start; }
 #result.free-v2 .fr-v2 .v4-board-head h2 { font-size:22px; }
 #result.free-v2 .fr-v2 .v4-board-head button { font-size:12px; }
 #result.free-v2 .fr-v2 .v4-stage { height:480px; }
 #result.free-v2 .fr-v2 .v4-island { width:66px; height:66px; font-size:11px; padding:4px; }
 #result.free-v2 .fr-v2 .v4-island small { font-size:9px; white-space:nowrap; }
 #result.free-v2 .fr-v2 .v4-center { width:72px; height:72px; font-size:20px; --y:56%!important; }
 #result.free-v2 .fr-v2 .v4-island[data-v4-route=saju] { --x:15%!important; --y:10%!important; }
 #result.free-v2 .fr-v2 .v4-island[data-v4-route=astro] { --x:85%!important; --y:10%!important; }
 #result.free-v2 .fr-v2 .v4-island[data-v4-route=expression] { --x:15%!important; --y:32%!important; }
 #result.free-v2 .fr-v2 .v4-island[data-v4-route=wealth] { --x:15%!important; --y:56%!important; }
 #result.free-v2 .fr-v2 .v4-island[data-v4-route=career] { --x:50%!important; --y:82%!important; }
 #result.free-v2 .fr-v2 .v4-island[data-v4-route=relationship] { --x:85%!important; --y:56%!important; }
 #result.free-v2 .fr-v2 .v4-island[data-v4-route=mind] { --x:85%!important; --y:32%!important; }
 #result.free-v2 .fr-v2 .v4-island[data-v4-route=drive] { --x:50%!important; --y:10%!important; }
 #result.free-v2 .fr-v2 .v4-island[data-v4-route=change] { --x:50%!important; --y:32%!important; }
 #result.free-v2 .fr-v2 .v4-island[data-v4-route=structure] { --x:15%!important; --y:82%!important; }
 #result.free-v2 .fr-v2 .v4-island[data-v4-route=year] { --x:85%!important; --y:82%!important; }
 #result.free-v2 .fr-v2 .v4-scene { inset:8px; padding:20px; }
 #result.free-v2 .fr-v2 .fr-emphasis { grid-template-columns:72px auto 1fr; gap:5px; font-size:11px; }
 .v4-preview .report-birthmap-pillar { padding:8px 1px; gap:2px; }
 .v4-preview .report-birthmap-hanja { font-size:25px; }
 .v4-preview .report-birthmap-ten-god { display:none; }
}
@media(prefers-reduced-motion:reduce) { .v4-pillar-enter,.v4-preview-chart[open] .report-birthmap-planet { animation:none!important; } #result.free-v2 .fr-v2 .v4-camera { transition:opacity 120ms!important; } #result.free-v2 .fr-v2 .v4-arrive { animation:v4-fade 120ms!important; } #result.free-v2 .fr-v2 .v4-lock-shake { animation:none!important; } }
