@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&family=Noto+Serif+KR:wght@500;600;700&display=swap');
:root{font-family:'Noto Sans KR',sans-serif;background:#101b29;color:#edf0ed;font-size:16px}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 85% -20%,#2b3d4c 0%,transparent 40%),#101b29}.shell{max-width:1180px;margin:auto;padding:0 32px}header{height:90px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff25}.brand{display:flex;gap:15px;align-items:center;font-weight:700;letter-spacing:.03em}.seal{display:grid;place-items:center;border:1px solid #c9a66a;color:#d7b77a;width:47px;height:47px;font-family:serif;font-size:18px}.edition,.eyebrow{color:#d3b57f;font-size:.84rem;letter-spacing:.16em}.intro{padding:52px 0 40px}.intro h1{font-family:'Noto Serif KR',serif;font-size:clamp(2.3rem,4.7vw,4rem);line-height:1.34;letter-spacing:-.05em;margin:10px 0 18px;font-weight:600}.intro em{font-style:normal;color:#dcc391}.intro>p:last-child{color:#b8c2c8;line-height:1.7;margin:0}.workspace{display:grid;grid-template-columns:minmax(270px,350px) minmax(0,1fr);gap:20px}.form-panel,.result-panel,.method{background:#1a2938;border:1px solid #344552;border-radius:12px}.form-panel{padding:28px}.form-panel h2,.result-panel h2,.method h2{font-family:'Noto Serif KR',serif;font-size:1.45rem;margin:0 0 26px}label{display:block;font-size:.94rem;font-weight:600;margin:22px 0 9px}label small{color:#9eafb9;font-weight:400;margin-left:8px}input{width:100%;height:52px;border:1px solid #556474;border-radius:7px;background:#102030;color:#fff;padding:0 13px;font:inherit;color-scheme:dark}input:focus,button:focus-visible{outline:2px solid #d9bb80;outline-offset:2px}button{width:100%;margin-top:30px;height:54px;border:0;border-radius:7px;background:#d9be89;color:#1b2731;font:inherit;font-weight:700;cursor:pointer;display:flex;justify-content:center;gap:18px;align-items:center}button:hover{background:#efd49b}.form-note{font-size:.82rem;color:#a8b4bd;line-height:1.6;margin:18px 0 0}.result-panel{padding:28px 28px 22px}.result-header{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}.result-header .eyebrow{margin:0 0 7px}.result-header h2{margin:0}.date-caption{font-size:.84rem;color:#a8b7c2;text-align:right}.pillars{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:25px}.pillar{background:#102030;border:1px solid #394c5c;border-radius:9px;text-align:center;padding:16px 8px 13px;min-width:0}.pillar .label{color:#afbdc5;font-size:.85rem;display:block;margin-bottom:12px}.pair{display:flex;flex-direction:column;align-items:center;gap:4px;font-family:'Noto Serif KR',serif;font-size:clamp(2rem,3.5vw,3.3rem);font-weight:700;line-height:1.15}.hangul{margin-top:13px;font-size:.9rem;color:#e1e8e8}.detail{border-top:1px solid #354858;margin-top:22px;padding-top:17px;display:flex;flex-wrap:wrap;gap:9px}.detail span{font-size:.82rem;color:#ced8db;padding:7px 10px;border-radius:5px;background:#25394a}.wood{color:#4bd0a4}.fire{color:#f87869}.earth{color:#f1c55f}.metal{color:#f0f3f4}.water{color:#8ba9d2}.method{margin-top:20px;padding:27px 31px;background:#152332}.method h2{margin-bottom:12px}.method p{color:#b9c7ce;line-height:1.8;font-size:.9rem;margin:9px 0}.method .sources{font-size:.82rem}a{color:#e3c992}footer{padding:32px 0 42px;color:#8194a1;font-size:.82rem}@media(max-width:760px){.shell{padding:0 17px}header{height:72px}.edition{display:none}.intro{padding:32px 0}.intro h1{font-size:2.35rem}.workspace{grid-template-columns:1fr}.form-panel,.result-panel{padding:22px}.pillars{gap:6px}.pillar{padding:13px 4px}.pair{font-size:2rem}.hangul{font-size:.78rem}.date-caption{font-size:.76rem}.method{padding:22px}}
.calendar-choice{border:0;padding:0;margin:0 0 12px;display:flex;align-items:center;gap:18px}.calendar-choice legend{font-size:.94rem;font-weight:600;margin-bottom:9px}.calendar-choice label,.leap-choice{display:inline-flex;align-items:center;gap:6px;margin:0;font-weight:500;cursor:pointer}.calendar-choice input,.leap-choice input{width:18px;height:18px;accent-color:#d9be89}.lunar-date{display:grid;grid-template-columns:1.55fr 1fr 1fr;gap:7px}.lunar-date input{min-width:0}.leap-choice{margin-top:16px}.input-error{color:#ffd2bb;font-size:.9rem;line-height:1.5;margin:15px 0 0}[hidden]{display:none!important}
.ten-section{margin-top:20px;padding:28px 31px;background:#1a2938;border:1px solid #344552;border-radius:12px}.ten-heading{display:flex;justify-content:space-between;gap:24px;align-items:end}.ten-heading h2{font-family:'Noto Serif KR',serif;font-size:1.45rem;margin:0}.ten-heading .eyebrow{margin:0 0 8px}.ten-heading>p{color:#b9c7ce;line-height:1.6;margin:0;max-width:490px}.god-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:23px}.god-card{background:#102030;border:1px solid #394c5c;border-radius:9px;padding:17px;min-width:0}.god-card h4{color:#e3c992;margin:0 0 15px;font-size:1rem}.god-card p{line-height:1.65;margin:9px 0;font-size:.94rem}.god-card small{display:block;color:#a8b7c2;font-size:.8rem}.hidden-list{display:flex;flex-direction:column;gap:3px;margin-top:5px}.hidden-stem{display:block}.god-guide{border-top:1px solid #394c5c;margin-top:21px;padding-top:17px;color:#c9d3d7}.god-guide summary{cursor:pointer;color:#e3c992;font-weight:600}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px;margin:15px 0}.guide-grid p,.god-guide>p{line-height:1.65;margin:7px 0;font-size:.91rem}.guide-grid strong{color:#f0f3f4}.god-guide summary:focus-visible{outline:2px solid #d9bb80;outline-offset:3px}@media(max-width:900px){.god-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.ten-section{padding:22px}.ten-heading{display:block}.ten-heading>p{margin-top:12px}.god-grid{gap:7px}.god-card{padding:11px}.god-card p{font-size:.85rem}.guide-grid{grid-template-columns:1fr}}
.god-slot{background:#273d4c;border:1px solid #496173;border-radius:5px;color:#f2dcaa;font-size:.82rem;font-weight:600;line-height:1.3;padding:7px 2px;white-space:normal}.pillar-letter{font-family:'Noto Serif KR',serif;font-size:clamp(2rem,3.5vw,3.3rem);font-weight:700;line-height:1.15;margin:10px 0;display:flex;flex-direction:column;align-items:center;gap:5px}.pillar-letter .hangul{font-family:'Noto Sans KR',sans-serif;font-size:.9rem;font-weight:600;margin:0}.branch-slot{margin-top:4px}.pillar .label{margin-bottom:9px}@media(max-width:760px){.god-slot{font-size:.73rem;min-height:46px;display:grid;place-items:center}.pillar-letter{font-size:2rem;margin:8px 0}.pillar-letter .hangul{font-size:.8rem}}
.hidden-box{border-top:1px solid #394c5c;margin-top:13px;padding-top:11px;min-height:75px}.hidden-title{display:block;color:#afbdc5;font-size:.8rem;margin-bottom:7px}.hidden-characters{display:flex;justify-content:center;flex-wrap:wrap;column-gap:7px;row-gap:3px}.hidden-item{font-size:.86rem;font-weight:600;white-space:nowrap}@media(max-width:760px){.hidden-box{min-height:95px}.hidden-characters{column-gap:5px}.hidden-item{font-size:.75rem}}
.hidden-box{min-height:43px}.hidden-item{font-family:'Noto Serif KR',serif;font-size:1.05rem}@media(max-width:760px){.hidden-box{min-height:43px}.hidden-item{font-size:.94rem}}
.hidden-characters{flex-wrap:nowrap}
.hidden-characters{gap:clamp(2px,.45vw,6px);min-width:0}.hidden-item{flex:0 0 auto;font-size:clamp(.88rem,1.45vw,1.06rem);line-height:1.3}@media(max-width:600px){.pillars{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pillar{padding:15px 10px}.hidden-item{font-size:1.05rem}.hidden-characters{gap:6px}}
.hidden-characters{align-items:start;gap:4px}.hidden-item{display:flex;flex:1 1 0;min-width:0;flex-direction:column;align-items:center;gap:5px}.hidden-hanja{font-family:'Noto Serif KR',serif;font-size:1.08rem;font-weight:700}.hidden-god{font-family:'Noto Sans KR',sans-serif;color:#e3c992;font-size:.8rem;font-weight:600;white-space:nowrap}.hidden-box{min-height:66px}@media(max-width:900px){.pillars{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.hidden-god{font-size:.85rem}.hidden-hanja{font-size:1.12rem}}
@media (orientation:landscape) and (max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr)}.pillars{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.pillar{padding:12px 6px}.result-panel{padding:18px}.intro{padding:20px 0}.intro h1{font-size:1.8rem;line-height:1.2;margin:5px 0}.intro h1 br{display:none}.form-panel{padding:18px}.form-panel h2{margin-bottom:10px}.form-panel form{display:grid;grid-template-columns:minmax(125px,1fr) minmax(125px,1fr) minmax(125px,1fr) auto;align-items:end;gap:10px}.calendar-choice{grid-column:1;margin:0;align-self:end}.calendar-choice legend{margin:0 0 5px}.form-panel form>label{grid-column:3;margin:0}.form-panel form>input{grid-column:3}.form-panel form>button{grid-column:4;width:auto;min-width:140px;margin:0;padding:0 14px}.form-panel form #solar-fields,.form-panel form #lunar-fields{grid-column:2}.form-panel form #solar-fields label,.form-panel form #lunar-fields>label:first-child{margin:0 0 5px}.form-note{margin:9px 0 0}.result-header h2{font-size:1.3rem}.pillars{margin-top:14px}.hidden-characters{gap:2px}.hidden-god{font-size:.76rem}}
@media (orientation:landscape) and (max-width:650px){.shell{padding:0 10px}.result-panel{padding:12px}.pillar{padding:9px 3px}.pillar-letter{font-size:1.7rem}.god-slot{font-size:.7rem;padding:5px 1px;min-height:0}.hidden-god{font-size:.7rem}.hidden-hanja{font-size:.96rem}.form-panel form{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-choice{grid-column:1}.form-panel form #solar-fields,.form-panel form #lunar-fields{grid-column:2}.form-panel form>label{grid-column:1;margin:0}.form-panel form>input{grid-column:1}.form-panel form>button{grid-column:2;min-width:0}}
@media (orientation:landscape) and (min-width:651px) and (max-width:1100px){.calendar-choice,.form-panel form #solar-fields,.form-panel form #lunar-fields{grid-row:1/3}.form-panel form>label{grid-row:1}.form-panel form>input,.form-panel form>button{grid-row:2}}
.workspace{grid-template-columns:minmax(0,1fr);gap:16px;margin-top:24px}.form-panel{padding:24px 28px}.form-panel h2{margin:0 0 16px}.form-panel form{display:grid;grid-template-columns:minmax(155px,.9fr) minmax(210px,1.2fr) minmax(160px,1fr) minmax(160px,.9fr);gap:10px 16px;align-items:end}.calendar-choice{grid-column:1;grid-row:1/3;margin:0}.form-panel form #solar-fields,.form-panel form #lunar-fields{grid-column:2;grid-row:1/3}.form-panel form #solar-fields label,.form-panel form #lunar-fields>label:first-child{margin:0 0 7px}.form-panel form>label{grid-column:3;grid-row:1;margin:0}.form-panel form>input{grid-column:3;grid-row:2}.form-panel form>button{grid-column:4;grid-row:2;width:100%;min-width:0;margin:0;padding:0 10px}.form-note{margin:12px 0 0}.pillars{grid-template-columns:repeat(4,minmax(0,1fr))}.result-panel{padding:25px 28px}.pillars{margin-top:18px}
@media(max-width:760px){.form-panel form{display:block}.calendar-choice{margin-bottom:12px}.form-panel form #solar-fields label,.form-panel form #lunar-fields>label:first-child{margin:16px 0 9px}.form-panel form>label{margin:20px 0 9px}.form-panel form>button{width:100%;margin-top:22px}.pillars{grid-template-columns:repeat(2,minmax(0,1fr))}.form-panel,.result-panel{padding:20px}}
@media(orientation:landscape) and (max-width:760px){.pillars{grid-template-columns:repeat(4,minmax(0,1fr))}.pillar{padding:9px 4px}.hidden-god{font-size:.72rem}}
.stage-box{border-top:1px solid #394c5c;margin-top:12px;padding-top:10px;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:66px}.stage-label{color:#afbdc5;font-size:.78rem}.stage-value{color:#e3c992;font-size:.92rem;font-weight:600;white-space:nowrap}@media(orientation:landscape) and (max-width:650px){.stage-value{font-size:.78rem}}
.spirit-box{border-top:1px solid #394c5c;margin-top:8px;padding-top:10px;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:66px}.spirit-box .stage-value{font-size:.86rem}@media(orientation:landscape) and (max-width:650px){.spirit-box .stage-label{font-size:.68rem}.spirit-box .stage-value{font-size:.72rem}}
.spirit-box .stage-value{white-space:normal;overflow-wrap:anywhere}
.form-panel form{grid-template-columns:minmax(155px,.9fr) minmax(210px,1.2fr) minmax(160px,1fr)}.view-button{width:100%;margin:0;height:54px}.workspace{gap:14px}@media(max-width:760px){.form-panel form{display:block}}
.form-panel form{grid-template-columns:minmax(155px,.9fr) minmax(210px,1.2fr) minmax(160px,1fr) minmax(155px,.9fr)}.gender-choice{grid-column:4;grid-row:1/3;border:0;padding:0;margin:0;min-width:0}.gender-choice legend{font-size:.94rem;font-weight:600;margin-bottom:8px}.gender-choice label{display:inline-flex;align-items:center;gap:5px;margin:6px 12px 0 0;cursor:pointer}.gender-choice input{width:18px;height:18px;accent-color:#d9be89}@media(max-width:760px){.form-panel form{display:block}.gender-choice{margin-top:18px}}
.daewoon-section{margin-top:20px;padding:28px 31px;background:#1a2938;border:1px solid #344552;border-radius:12px}.daewoon-heading{display:flex;justify-content:space-between;align-items:end;gap:20px}.daewoon-heading .eyebrow{margin:0 0 7px}.daewoon-heading h2{font-family:'Noto Serif KR',serif;font-size:1.45rem;margin:0}.daewoon-heading>p,.daewoon-note{color:#b9c7ce;font-size:.9rem;line-height:1.7;margin:0}.daewoon-meta{color:#e3c992;margin:18px 0 13px;line-height:1.5}.daewoon-periods{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.daewoon-card{background:#102030;border:1px solid #394c5c;border-radius:9px;min-width:0;min-height:145px;padding:15px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.daewoon-age{color:#afbdc5;font-size:.78rem;white-space:nowrap}.daewoon-hanja{font-family:'Noto Serif KR',serif;font-size:1.6rem;font-weight:700;white-space:nowrap}.daewoon-hangul{display:flex;gap:2px;font-size:.85rem}.daewoon-note{margin-top:16px}@media(max-width:900px){.daewoon-periods{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:600px){.daewoon-section{padding:20px}.daewoon-heading{display:block}.daewoon-heading>p{margin-top:9px}.daewoon-periods{grid-template-columns:repeat(2,minmax(0,1fr))}}
.gender-choice{border:1px solid #556474;border-radius:7px;background:#102030;min-height:52px;padding:7px 10px;display:flex;align-items:center;justify-content:space-around;gap:6px}.gender-choice label{margin:0;padding:5px 2px;white-space:nowrap}.gender-choice label:has(input:checked){color:#f1d49c}.gender-choice:focus-within{border-color:#d9bb80}@media(max-width:760px){.gender-choice{margin-top:18px}}
.form-panel,.form-panel form,.form-panel form>*,.lunar-date{min-width:0}.form-panel input[type="date"],.form-panel input[type="time"],.form-panel input[type="number"]{min-width:0}.gender-choice{flex-wrap:wrap}.calendar-choice{flex-wrap:wrap}
@media(min-width:761px) and (max-width:1000px){.form-panel form{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}.calendar-choice{grid-column:1;grid-row:1/3}.form-panel form #solar-fields,.form-panel form #lunar-fields{grid-column:2;grid-row:1/3}.form-panel form>label{grid-column:1;grid-row:3;margin:10px 0 0}.form-panel form>input{grid-column:1;grid-row:4}.gender-choice{grid-column:2;grid-row:3/5;align-self:end}}
@media(max-width:760px){.form-panel form{display:block}.form-panel form>label{margin:20px 0 9px}.gender-choice{margin-top:18px}}
.lunar-date{grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,.8fr));gap:4px;width:100%}.lunar-date input{width:100%;min-width:0;padding:0 5px;text-align:center;font-size:1rem;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}.lunar-date input::-webkit-inner-spin-button,.lunar-date input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}@media(max-width:420px){.lunar-date{gap:3px}.lunar-date input{padding:0 3px}}
.daewoon-periods{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.daewoon-card{padding:17px 12px;min-height:245px;justify-content:flex-start}.daewoon-fortunes{width:100%;border-top:1px solid #394c5c;margin-top:5px;padding-top:8px;display:flex;flex-direction:column;gap:6px}.daewoon-fortunes>div{display:flex;justify-content:space-between;gap:5px;align-items:baseline;line-height:1.45}.daewoon-fortunes span{color:#afbdc5;font-size:.75rem;flex:0 0 auto}.daewoon-fortunes strong{color:#e3c992;font-size:.82rem;font-weight:600;text-align:right;overflow-wrap:anywhere}@media(max-width:600px){.daewoon-periods{grid-template-columns:repeat(2,minmax(0,1fr))}.daewoon-card{padding:14px 7px}.daewoon-fortunes>div{display:block;text-align:center}.daewoon-fortunes span,.daewoon-fortunes strong{display:block;text-align:center}}
.daewoon-periods{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:1100px){.daewoon-periods{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.daewoon-periods{grid-template-columns:repeat(2,minmax(0,1fr))}}
.monthly-section{margin-top:20px;padding:28px 31px;background:#1a2938;border:1px solid #344552;border-radius:12px}.monthly-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.monthly-heading .eyebrow{margin:0 0 7px}.monthly-heading h2{font-family:'Noto Serif KR',serif;font-size:1.45rem;margin:0}.monthly-heading label{margin:0;display:flex;align-items:center;gap:8px;white-space:nowrap}.monthly-heading input{width:110px;height:43px;min-width:0}.monthly-note{color:#b9c7ce;font-size:.9rem;line-height:1.7;margin:14px 0 18px}.monthly-periods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.monthly-card{background:#102030;border:1px solid #394c5c;border-radius:9px;min-width:0;min-height:245px;padding:17px 12px;display:flex;flex-direction:column;align-items:center;gap:8px}.monthly-date{color:#afbdc5;font-size:.84rem;white-space:nowrap}@media(max-width:800px){.monthly-periods{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.monthly-section{padding:20px}.monthly-periods{grid-template-columns:repeat(2,minmax(0,1fr))}.monthly-card{padding:14px 7px}.monthly-heading{align-items:start;flex-direction:column;gap:15px}}
@media(max-width:600px){
  .shell{padding:0 16px}
  .intro{padding:20px 0 14px}
  .intro h1{font-size:clamp(1.7rem,7vw,2.2rem);line-height:1.35}
  .intro>p:last-child{font-size:.9rem}
  .form-panel,.result-panel,.daewoon-section,.monthly-section,.published-reading{padding:18px}
  .result-header{align-items:start;flex-direction:column}
  .date-caption{text-align:left}
  .pillar{padding:14px 7px}
  .stage-label,.spirit-box .stage-label{font-size:.78rem}
  .stage-value,.spirit-box .stage-value{font-size:.85rem}
  .daewoon-periods,.monthly-periods{gap:8px}
  .daewoon-card,.monthly-card{padding:14px 8px}
  .daewoon-fortunes span,.daewoon-fortunes strong{font-size:.79rem}
}
.manual-date{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,.75fr));gap:6px;width:100%;min-width:0}
.manual-date input{width:100%;min-width:0;padding:0 6px;text-align:center;font-size:1rem;font-variant-numeric:tabular-nums}
@media(max-width:390px){.manual-date{gap:4px}.manual-date input{font-size:.94rem;padding:0 3px}}
@media(max-width:600px){
  .shell{padding-left:10px;padding-right:10px}
  .result-panel{padding:14px 8px}
  .pillars{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  .pillar{padding:10px 2px;min-width:0}
  .pillar .label{font-size:.75rem;margin-bottom:7px}
  .pillar-letter{font-size:clamp(1.5rem,7vw,2rem);margin:6px 0}
  .pillar-letter .hangul{font-size:.75rem}
  .god-slot{font-size:.75rem;padding:5px 1px;min-height:0;overflow-wrap:anywhere}
  .hidden-box{margin-top:8px;padding-top:7px;min-height:0}
  .hidden-characters{gap:1px}
  .hidden-hanja{font-size:.9rem}
  .hidden-god{font-size:.75rem;white-space:normal;overflow-wrap:anywhere;line-height:1.2}
  .stage-box,.spirit-box{min-height:0;margin-top:7px;padding-top:7px;gap:3px}
  .stage-label,.spirit-box .stage-label,.stage-value,.spirit-box .stage-value{font-size:.75rem;line-height:1.35;overflow-wrap:anywhere;white-space:normal}
}
.page-navigation{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px;padding:18px 20px;border:1px solid #344552;border-radius:12px;background:#1a2938}
.page-navigation span{color:#d9be89;font-weight:700}
.page-navigation button{width:auto;min-height:44px;height:auto;margin:0;padding:10px 18px}
.workspace .page-navigation{grid-column:1/-1;margin-top:0}
.page-navigation button:disabled{opacity:.42;cursor:default}
.fortune-page .daewoon-section,.fortune-page .monthly-section{margin-top:20px}
.fortune-page .yearly-section{margin-top:20px;padding:28px 31px;background:#1a2938;border:1px solid #344552;border-radius:12px}
.yearly-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.yearly-heading .eyebrow{margin:0 0 7px}.yearly-heading h2{font-family:'Noto Serif KR',serif;font-size:1.45rem;margin:0}.yearly-heading label{margin:0;display:flex;align-items:center;gap:8px;white-space:nowrap}.yearly-heading input{width:110px;height:43px;min-width:0}
.yearly-note{color:#b9c7ce;font-size:.9rem;line-height:1.7;margin:14px 0 18px}.yearly-periods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.yearly-card{background:#102030;border:1px solid #394c5c;border-radius:9px;min-width:0;min-height:245px;padding:17px 12px;display:flex;flex-direction:column;align-items:center;gap:8px}.yearly-date{color:#afbdc5;font-size:.84rem;white-space:nowrap}
@media(max-width:800px){.yearly-periods{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.fortune-page .yearly-section{padding:20px}.yearly-periods{grid-template-columns:repeat(2,minmax(0,1fr))}.yearly-card{padding:14px 7px}.yearly-heading{align-items:start;flex-direction:column;gap:15px}}
.daewoon-card{width:100%;height:auto;margin:0;color:#edf0ed;font-weight:inherit;text-align:center;cursor:pointer}
.daewoon-card:hover{border-color:#d9bb80}.daewoon-card[aria-pressed="true"]{border:2px solid #a5c5e0;background:#26384a;box-shadow:0 0 0 2px #a5c5e033}
.yearly-selection{margin:0 0 14px;color:#e3c992;font-size:.92rem;line-height:1.5}
.yearly-card{width:100%;height:auto;margin:0;color:#edf0ed;font-weight:inherit;text-align:center;cursor:pointer}
.yearly-card:hover{border-color:#d9bb80}.yearly-card[aria-pressed="true"]{border:2px solid #a5c5e0;background:#26384a;box-shadow:0 0 0 2px #a5c5e033}
.monthly-selection{margin:0 0 14px;color:#e3c992;font-size:.92rem;line-height:1.5}
#reading-page .published-reading{margin-top:20px}
.pillar-day{position:relative;border:2px solid #e9c67c;background:#253441;box-shadow:0 0 0 2px #e9c67c27,0 0 18px #d9be8929}
.pillar-day .label{color:#ffe1a4;font-weight:800}
.pillar-day .day-marker{position:absolute;top:-12px;left:50%;transform:translateX(-50%);padding:3px 7px;border:1px solid #e9c67c;border-radius:20px;background:#e9c67c;color:#1b2731;font-size:.65rem;font-weight:800;white-space:nowrap;line-height:1.2;pointer-events:none}
@media(max-width:600px){.pillar-day .day-marker{font-size:.56rem;padding:3px 4px}}
@media(max-width:600px){.page-navigation{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px}.page-navigation span{grid-column:1/-1;grid-row:1;text-align:center}.page-navigation button{width:100%}}
.pillar-info-actions{display:grid;gap:5px;margin-top:10px;padding-top:10px;border-top:1px solid #394c5c}
.pillar-info-actions button{width:100%;height:auto;min-height:36px;margin:0;padding:6px 2px;background:#273d4c;color:#f2dcaa;border:1px solid #496173;font-size:.78rem;line-height:1.25}
.pillar-image-placeholder{display:grid;place-items:center;min-height:36px;padding:6px 2px;border:1px dashed #496173;border-radius:7px;color:#b9c7ce;font-size:.78rem;line-height:1.25}
.pillar-image-placeholder{width:100%;height:auto;margin:0;background:transparent;font-weight:400;cursor:zoom-in}
.pillar-image-placeholder:disabled{cursor:default;opacity:.8}
.pillar-image-placeholder img{display:block;width:100%;max-height:180px;object-fit:contain}
.image-zoom-dialog{width:min(96vw,950px);max-height:94dvh;margin:auto;padding:12px;border:1px solid #d9be89;border-radius:12px;background:#172433;color:#edf0ed;text-align:center;box-shadow:0 24px 90px #000b}
.image-zoom-dialog::backdrop{background:#030914e6}
.image-zoom-button{display:grid;place-items:center;width:100%;height:auto;min-height:0;margin:0;padding:0;border:0;background:transparent;cursor:zoom-out}
.image-zoom-button:hover{background:transparent}
.image-zoom-button img{display:block;max-width:100%;max-height:80dvh;object-fit:contain}
.image-zoom-dialog p{margin:9px 0 0;color:#e3c992;font-size:.87rem}
.pillar-info-actions button:hover{background:#39566a}
.pillar-info-detail{margin-top:12px;padding:18px;border:1px solid #496173;border-radius:9px;background:#102030}
.pillar-info-detail h3{margin:0 0 10px;color:#e3c992;font-size:1.1rem}
.pillar-info-detail p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
@media(max-width:600px){.pillar-info-actions button,.pillar-image-placeholder{font-size:.75rem;padding:6px 1px}.pillar-info-detail{padding:14px}}

/* Each part of the four pillars opens its own published explanation. */
.pillar-component{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;height:auto;min-height:48px;margin:4px 0;padding:6px 3px;border:1px solid #496173;border-radius:7px;background:#1b3040;color:inherit;cursor:pointer;font:inherit;text-align:center}
.pillar-component:hover,.pillar-component:focus-visible{border-color:#e3c992;background:#273d4c;outline:2px solid transparent}
.pillar-component:focus-visible{outline:2px solid #e3c992;outline-offset:2px}
.pillar-component .component-name{color:#c3d3dc;font-size:.72rem;font-weight:600;line-height:1.2}
.pillar-component .god-slot{width:100%;border:0;background:transparent;padding:2px 0;min-height:0}
.pillar-component .pillar-letter{margin:1px 0;font-size:clamp(1.6rem,3vw,2.5rem)}
.pillar-component .hidden-box{width:100%;min-height:0;margin:0;padding:2px 0;border:0}
@media(max-width:600px){.pillar-component{padding:6px 1px}.pillar-component .component-name{font-size:.68rem}.pillar-component .pillar-letter{font-size:1.65rem}.pillar-component .pillar-letter .hangul{font-size:.72rem}.pillar-component .hidden-item{font-size:.85rem}.pillar-component .hidden-god{font-size:.68rem;white-space:normal;overflow-wrap:anywhere}}
#owner-saju-reading article{margin:12px 0;padding:16px;border:1px solid #496173;border-radius:9px;background:#1b3040}
#owner-saju-reading h3{margin:0 0 10px;color:#e3c992}

/* Fortune overview: each set uses two rows so the calculated labels stay readable. */
.compact-date{display:none}
.fortune-page .daewoon-section,.fortune-page .yearly-section,.fortune-page .monthly-section{padding:14px 12px;margin-top:10px}
.fortune-page .daewoon-periods,.fortune-page .yearly-periods,.fortune-page .monthly-periods{width:100%;min-width:0;gap:4px}
.fortune-page .daewoon-periods{grid-template-columns:repeat(5,minmax(0,1fr))}
.fortune-page .yearly-periods{grid-template-columns:repeat(6,minmax(0,1fr))}
.fortune-page .monthly-periods{grid-template-columns:repeat(6,minmax(0,1fr))}
.fortune-page .daewoon-card,.fortune-page .yearly-card,.fortune-page .monthly-card{min-width:0;min-height:0;padding:7px 2px;gap:3px;border-radius:6px}
.fortune-page .daewoon-age,.fortune-page .yearly-date,.fortune-page .monthly-date{font-size:clamp(.62rem,.85vw,.78rem);white-space:normal;line-height:1.2;overflow-wrap:anywhere}
.fortune-page .daewoon-hanja{font-size:clamp(.98rem,1.45vw,1.35rem)}
.fortune-page .daewoon-hangul{font-size:.72rem}
.fortune-page .daewoon-fortunes{margin-top:2px;padding-top:4px;gap:2px}
.fortune-page .daewoon-fortunes>div{display:block;text-align:center;line-height:1.2}
.fortune-page .daewoon-fortunes span,.fortune-page .daewoon-fortunes strong{display:block;text-align:center;font-size:clamp(.72rem,.9vw,.82rem)}
.fortune-page .daewoon-meta,.fortune-page .yearly-note,.fortune-page .monthly-note,.fortune-page .yearly-selection,.fortune-page .monthly-selection{margin:7px 0;font-size:.8rem;line-height:1.3}
.fortune-page .daewoon-heading h2,.fortune-page .yearly-heading h2,.fortune-page .monthly-heading h2{font-size:1.1rem}
.fortune-page .yearly-heading label,.fortune-page .monthly-heading label{font-size:.8rem}
.fortune-page .yearly-heading input,.fortune-page .monthly-heading input{height:34px;width:88px}
@media(max-width:700px){
  .fortune-page .daewoon-section,.fortune-page .yearly-section,.fortune-page .monthly-section{padding:10px 5px;margin-top:7px}
  .fortune-page .daewoon-periods,.fortune-page .yearly-periods,.fortune-page .monthly-periods{gap:2px}
  .fortune-page .daewoon-card,.fortune-page .yearly-card,.fortune-page .monthly-card{padding:5px 0;gap:2px;border-radius:4px}
  .fortune-page .full-date{display:none}
  .fortune-page .compact-date{display:inline}
  .fortune-page .daewoon-age,.fortune-page .yearly-date,.fortune-page .monthly-date{font-size:clamp(.55rem,1.7vw,.7rem);white-space:nowrap}
  .fortune-page .daewoon-card .daewoon-hanja span,.fortune-page .yearly-card .daewoon-hanja span{display:block}
  .fortune-page .daewoon-hanja{font-size:clamp(.83rem,2.6vw,1.05rem);line-height:1.1}
  .fortune-page .daewoon-hangul{display:none}
  .fortune-page .daewoon-fortunes{display:flex;flex-direction:column;gap:3px;width:100%}
  .fortune-page .daewoon-fortunes span,.fortune-page .daewoon-fortunes strong{font-size:clamp(.66rem,2vw,.78rem);line-height:1.2;overflow-wrap:anywhere}
  .fortune-page .yearly-heading,.fortune-page .monthly-heading{display:flex;flex-direction:row;align-items:center;gap:4px}
  .fortune-page .yearly-heading label,.fortune-page .monthly-heading label{gap:3px}
  .fortune-page .yearly-heading input,.fortune-page .monthly-heading input{width:65px;height:30px;padding:0 3px;font-size:.75rem}
  .fortune-page .yearly-note,.fortune-page .monthly-note{font-size:.72rem}
  .fortune-page .daewoon-meta,.fortune-page .yearly-selection,.fortune-page .monthly-selection{font-size:.72rem}
}
#owner-saju-reading p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75}

.pillar-image-placeholder[data-image-style="doll"]{background:#f8f6f0;border:1px solid #d8d2c6;padding:8px}.pillar-image-placeholder[data-image-style="doll"] img{width:100%;height:180px;object-fit:contain}.image-zoom-dialog[data-image-style="doll"]{background:#f8f6f0;color:#172b26}.image-zoom-dialog[data-image-style="doll"] p{color:#394d43}.image-zoom-dialog[data-image-style="doll"] .image-zoom-button{background:#f8f6f0}

/* Yellow identifies the present period independently of the clicked selection. */
.daewoon-card[data-current-luck="true"],.yearly-card[data-current-luck="true"],.monthly-card[data-current-luck="true"]{background:#ffe680;border:2px solid #e3b825;box-shadow:0 0 0 1px #e3b825;color:#17222d}
[data-current-luck="true"] .daewoon-age,[data-current-luck="true"] .yearly-date,[data-current-luck="true"] .monthly-date,[data-current-luck="true"] .daewoon-fortunes{color:#23303d}
/* Keep the established element letter colors and their contrasting backplates. */
.daewoon-card:not([data-current-luck="true"]):hover,.yearly-card:not([data-current-luck="true"]):hover{background:#26384a;border-color:#a5c5e0}
[data-current-luck="true"] .daewoon-fortunes span,[data-current-luck="true"] .daewoon-fortunes strong{color:#23303d}
[data-current-luck="true"] .daewoon-hanja,[data-current-luck="true"] .daewoon-hangul{background:#102030;border-radius:4px;padding:2px 4px}
