:root{--ink:#282520;--paper:#f4eee5;--line:#c9bcaa}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:"Noto Sans KR","Malgun Gothic",sans-serif;background:linear-gradient(145deg,#ead9c9,#f7f1e9 42%,#e8ddd0);min-height:100vh}.shell{width:min(720px,100%);margin:auto;padding:44px 18px 70px}.hero{text-align:center;margin-bottom:26px}.brand{font:700 11px/1.2 Georgia,serif;letter-spacing:.25em}.hero h1{font-family:Georgia,"Noto Serif KR",serif;font-size:clamp(34px,7vw,54px);font-weight:500;line-height:1.18;margin:22px 0}.hero>p:last-child{font-size:14px;line-height:1.8}.card{background:rgba(255,255,255,.58);border:1px solid rgba(97,79,60,.35);border-radius:6px;box-shadow:0 20px 60px rgba(78,57,37,.12);padding:clamp(22px,5vw,42px)}h2{text-align:center;font:500 25px Georgia,"Noto Serif KR",serif}.segmented{display:flex;justify-content:center;gap:8px;margin:25px 0 12px}.segmented input{position:absolute;opacity:0}.segmented span{display:block;padding:10px 28px;border:1px solid var(--line);border-radius:30px;cursor:pointer}.segmented input:checked+span{background:#343b34;color:white;border-color:#343b34}.leap{display:none;text-align:center;font-size:13px;margin-bottom:15px}.date-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}.date-grid label,.time-row label{font-size:12px;color:#746b60}.date-grid input,.time-row select{width:100%;margin-top:7px;border:0;border-bottom:1px solid #867b6e;background:transparent;padding:13px 7px;font-size:20px;color:var(--ink);outline:none}.time-row{display:grid;grid-template-columns:1.4fr 1fr;gap:18px;margin:22px 0}button{width:100%;border:0;background:#29342f;color:white;padding:17px;font-size:16px;letter-spacing:.06em;cursor:pointer}.note{font-size:11px;color:#776e64;line-height:1.6;text-align:center;margin-top:18px}.alert{background:#f5ddd7;color:#853f34;padding:12px;text-align:center}.result-card{text-align:center}.eyebrow{font-size:12px;letter-spacing:.18em}.element-symbol{width:115px;height:115px;border:1px solid var(--accent);color:var(--accent);border-radius:50%;display:grid;place-items:center;margin:20px auto 10px;font:500 60px Georgia,serif}.message{line-height:1.8}.pillars{display:flex;justify-content:center;gap:12px;margin:28px 0}.pillars div{border:1px solid var(--line);padding:11px 14px}.pillars small,.pillars strong{display:block}.pillars strong{font:500 24px Georgia,serif;margin-top:6px}.bars{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin:26px 0}.bar-row{display:grid;grid-template-columns:72px 1fr 20px;gap:10px;align-items:center;margin:11px 0;text-align:left;font-size:13px}.track{height:7px;background:#ded7ce;border-radius:10px;overflow:hidden}.track i{display:block;height:100%}.products{display:grid;gap:10px}.product{display:flex;align-items:center;gap:13px;text-align:left;text-decoration:none;color:inherit;border:1px solid var(--line);padding:14px}.product>span{font-size:27px}.product small,.product b{display:block}.product small{margin-top:4px;color:#786f64}.restart{display:inline-block;color:#3d5146;margin-top:25px} @media(max-width:480px){.shell{padding-top:28px}.hero h1{font-size:36px}.date-grid{gap:5px}.card{padding:22px 17px}.pillars{gap:5px}.pillars div{padding:9px}}
.language-menu{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0 0 20px;font-size:12px;color:#615950}.language-menu select{max-width:180px;padding:9px 11px;border:1px solid var(--line);border-radius:4px;background:#faf7f1;color:var(--ink);font-size:14px}.fortune{border:1px solid var(--line);background:rgba(255,255,255,.48);padding:16px 20px;margin-top:26px}.fortune h3{margin:0 0 12px;font-size:17px}.fortune p{line-height:1.8;margin:0}.pillars{flex-wrap:wrap}.pillars div{min-width:110px}.bar-row{grid-template-columns:minmax(84px,auto) 1fr 20px}.hero h1{overflow-wrap:anywhere}
/* Temple result page */
.result-scene{position:relative;min-height:270px;overflow:hidden;border-radius:22px 22px 0 0;background:#d9cfb7;box-shadow:0 18px 40px rgba(30,49,40,.12)}
.result-scene img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 55%}
.result-scene:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(12,44,36,.69),rgba(10,40,34,.12) 58%,rgba(10,40,34,.32))}
.scene-label{position:relative;z-index:1;display:grid;gap:9px;padding:29px;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.65)}
.scene-label span{font:700 12px Georgia,serif;letter-spacing:.2em}.scene-label strong{font-size:clamp(27px,5vw,38px);line-height:1.25}.scene-label small{font-size:14px;line-height:1.5}
.result-board{border:3px solid #0b493d;border-top:0;border-radius:0 0 24px 24px;overflow:hidden;background:#fbf6ec;box-shadow:0 24px 55px rgba(33,60,50,.12);color:#173e35}
.distribution{overflow-x:auto}.distribution table{border-collapse:collapse;width:100%;min-width:570px;text-align:center}.distribution th,.distribution td{padding:15px 7px;border-right:1px solid #9ab3a8;border-bottom:1px solid #9ab3a8}.distribution th:last-child,.distribution td:last-child{border-right:0}.distribution thead{background:#06483d;color:#fff}.distribution thead th{font-size:15px}.distribution tbody th{white-space:nowrap;font-size:13px}.distribution tbody td{font-size:25px;font-weight:700;background:#fff}
.result-content{padding:clamp(20px,4vw,36px)}.missing-callout{font-size:clamp(19px,4vw,25px);font-weight:700;color:#a94336;margin:8px 0 26px}.fortune{margin:0;border:0;border-top:1px solid #9ab3a8;border-radius:0;background:transparent;padding:26px 0 15px;text-align:left}.fortune h2{text-align:left;margin:0 0 15px;font-family:inherit;font-size:22px;color:#174e41}.fortune h2 span{display:inline-grid;place-items:center;background:#0a4b3e;color:white;border-radius:50%;width:40px;height:40px;margin-right:7px;font:23px Georgia,serif}.fortune-lead{font-size:16px;font-weight:600}.fortune ul{margin:16px 0 0;padding-left:24px}.fortune li{line-height:1.7;margin:9px 0}.saju-summary{border-top:1px solid #9ab3a8;padding-top:22px;margin-top:10px;text-align:left}.saju-summary h2{text-align:left;font-family:inherit;font-size:20px;margin:0}.saju-summary .pillars{justify-content:flex-start;margin:18px 0}.saju-summary .pillars div{background:white;border:1px solid #adc3b7;border-radius:7px;text-align:center;min-width:104px;flex:1}.saju-summary .pillars small{color:#52685e}.saju-summary p{line-height:1.75;margin:12px 0}.saju-summary .small-note{font-size:12px;color:#66756d}.result-restart{display:block;background:#06483d;color:white;text-align:center;padding:22px;text-decoration:none;font-weight:700;font-size:19px}.result-restart:hover{background:#0e6152}.result-content>.note{text-align:left}
@media(max-width:480px){.result-scene{min-height:235px}.scene-label{padding:22px}.saju-summary .pillars div{min-width:calc(50% - 6px)}.distribution table{min-width:520px}.fortune h2{font-size:20px}}

@media(max-width:480px){.distribution table{min-width:0;table-layout:fixed}.distribution th,.distribution td{padding:12px 2px;overflow-wrap:anywhere}.distribution thead th{font-size:11px}.distribution tbody th{font-size:10px}.distribution tbody td{font-size:20px}}
/* Full screen temple line illustration */
body{background:#f6f1e7;isolation:isolate}body::before{content:"";position:fixed;z-index:-2;inset:0;background:url('temple-lines.svg') center center/cover no-repeat;opacity:.37;pointer-events:none}body::after{content:"";position:fixed;z-index:-1;inset:0;background:linear-gradient(180deg,rgba(249,246,238,.15),rgba(249,246,238,.42));pointer-events:none}.hero{padding:12px 0 18px}.hero h1{font-family:"Malgun Gothic",sans-serif;font-size:clamp(30px,6vw,43px);font-weight:700;color:#124b3e;line-height:1.3}.hero>p:last-child{max-width:530px;margin:0 auto}.brand{color:#245d4c}.card,.result-board{background:rgba(255,251,241,.94);backdrop-filter:blur(2px)}.result-board{border-top:3px solid #0b493d;border-radius:22px}.date-grid select{width:100%;margin-top:7px;border:1px solid #b3bcae;border-radius:7px;background:#fffdf7;padding:13px 8px;font-size:19px;color:var(--ink);min-height:52px;cursor:pointer}.date-grid{grid-template-columns:1.5fr 1fr 1fr}.language-menu select{background:rgba(255,253,246,.95)}
@media(max-width:480px){body::before{background-size:auto 100%;opacity:.3}.shell{padding:24px 14px 50px}.date-grid select{font-size:16px;padding:12px 5px}.hero h1{font-size:30px}.hero>p:last-child{font-size:13px}}
.recommended-callout{font-size:clamp(19px,4vw,25px);font-weight:700;color:#17604a;margin:8px 0 26px}.recommendation-reason{border-left:3px solid #7a9c7b;padding:4px 0 4px 16px;margin:20px 0}.recommendation-reason h3{font-size:16px;margin:8px 0}.distribution .weighted-row td{font-size:15px;font-weight:500;background:#edf2e8}.distribution .weighted-row th{font-size:11px}
