:root{--share-ink:#3a2a1c;--share-muted:#6e5a45;--share-line:#efe3d2;--share-cream:#fff9f1;--share-primary:#a64932;--share-radius:16px;--share-card-radius:22px}
.share-brand,.shared-header,.appbar,.actions a,.lines,#step-result .panel{box-sizing:border-box}
.share-brand{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0;background:none;border:0;border-radius:0;color:var(--share-muted);text-decoration:none;letter-spacing:.08em;font-family:inherit;font-size:17px;font-weight:700;line-height:1.25;text-align:left}
.share-brand img{display:block;flex:none;width:28px;height:28px;object-fit:contain}
.share-brand span{display:block;font-size:17px;font-weight:700;letter-spacing:.08em}
.share-brand small{display:block;margin-top:3px;font-size:11px;letter-spacing:.02em;font-weight:500;color:var(--share-muted)}
.shared-header,.appbar{display:flex;align-items:center;justify-content:space-between;min-height:68px;padding:12px 0}
.appbar{margin-bottom:clamp(12px,2vw,24px)}
body[data-screen="today"] .appbar{margin-bottom:clamp(4px,.6vw,8px)}
.share-brand:focus-visible,.actions a:focus-visible,#step-result .btn:focus-visible{outline:3px solid var(--share-primary);outline-offset:4px}
body[data-shared-tti]{background:linear-gradient(180deg,#fff9f1,#fffdf9 45%,#f8f5ee);background-attachment:fixed;font-family:-apple-system,BlinkMacSystemFont,"Pretendard","Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",system-ui,sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased}
body[data-shared-tti] .card{max-width:620px;padding:0 20px 40px}
body[data-shared-tti] .shared-header{margin-bottom:8px}
.actions a,#step-result .btn--primary{display:flex;align-items:center;justify-content:center;min-height:54px;padding:14px 20px;border-radius:var(--share-radius);background:var(--share-primary);color:#fff;font-size:16px;font-weight:700;line-height:1.6;text-decoration:none;box-shadow:0 4px 12px #3a2a1c0d}
#step-result .btn--ghost{min-height:48px;border:1px solid #dfcdb9;border-radius:var(--share-radius);color:var(--share-muted);background:#fffdf9;font-size:15px}
.lines,#step-result .panel{padding:18px 20px;border:1px solid var(--share-line);border-radius:var(--share-card-radius);background:#fff;box-shadow:0 4px 16px #3a2a1c08}
#step-result .panel{margin-top:14px}
#step-result .panel--love{background:#fff7f5}
.line-label,#step-result .panel__label{font-size:13px;font-weight:700;line-height:1.6;color:#79533a}
body[data-shared-tti] .lines p,#step-result .panel__body{font-size:16px;line-height:1.7}
#step-result .panel__body,#step-result .summary,#step-result .trait,#step-result .headline,#step-result .shared-compat p,.action-help{word-break:keep-all;overflow-wrap:anywhere}
body[data-shared-tti] .lines p{padding:12px 0}
#today-lines{padding-block:clamp(4px,1vw,8px);margin-top:clamp(16px,2vw,22px)}
#today-lines .linecard{padding:clamp(14px,2vw,20px) 4px}
#today-lines .linecard:last-child{border-bottom:0}
#today-lines .linecard__label{margin-bottom:clamp(6px,1vw,8px)}
#today-lines .linecard__body{font-size:clamp(16px,calc(15px + .2vw),17px);line-height:1.65}
#step-result .result::before{display:none}
.invite,#step-result .shared-compat{padding:18px 20px;border:1px solid #efdfd2;border-radius:var(--share-card-radius);background:#fff3ed}
#step-result .shared-compat .btn{margin-top:12px}
.analytics-footer,.foot__links{gap:8px 14px;font-size:13px}
.analytics-footer a,.foot__links a,.analytics-footer button,.foot__links button{font-size:13px;color:var(--share-muted);min-height:44px}
.foot__links>span[aria-hidden]{display:none}
.foot__links .foot__analytics,.analytics-footer #analytics-settings{box-sizing:border-box;margin:0;padding:8px 16px;border:1px solid #dfcdb9;border-radius:10px;background:#fffaf3;color:var(--share-muted);font:inherit;font-size:13px;text-decoration:none;cursor:pointer}
@media(min-width:760px){body[data-screen="result"] #app{max-width:620px}}
@media(max-width:359px){.share-brand{gap:7px}.share-brand span{font-size:16px}.actions a,#step-result .btn--primary{font-size:15px}.lines,#step-result .panel{padding:16px 18px}}

.fortune-next-actions{display:grid;gap:8px;margin:14px 0 24px}
.fortune-next-actions .fortune-compat-link{display:flex;align-items:center;justify-content:center;min-height:50px;box-sizing:border-box;padding:12px 18px;border:1px solid #dfcdb9;border-radius:16px;background:#fffdf9;color:#6e5a45;font-size:15px;font-weight:700;line-height:1.6;text-decoration:none}
.fortune-next-actions .fortune-instagram{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;box-sizing:border-box;padding:8px 6px;border:0;border-radius:0;background:transparent;color:#6e5a45;font-size:14px;font-weight:400;line-height:1.5;text-decoration:underline;text-underline-offset:3px;word-break:keep-all}
.fortune-instagram img{display:block;flex:none;width:20px;height:20px}
.fortune-next-actions a:focus-visible{outline:3px solid #a64932;outline-offset:3px}
@font-face{font-family:'Maru Buri';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/maru-buri/MaruBuri-SemiBold.woff2') format('woff2')}
body.shared-result,body[data-screen="result"]{position:relative;isolation:isolate;background:#fff9f1;color:#3a2a1c;color-scheme:light}
body.shared-result::before,body[data-screen="result"]::before{content:'';position:absolute;z-index:-1;inset:0 0 auto;height:780px;pointer-events:none;background:linear-gradient(180deg,rgba(255,249,241,.86),rgba(255,249,241,.80) 28%,rgba(255,249,241,.96) 68%,#fff9f1),var(--temple-season-background) center top/cover no-repeat}
body.shared-result .card{padding:0 20px 40px}
body.shared-fortune .card{max-width:500px}
body.shared-result .shared-header{margin-bottom:8px}
.shared-context,#step-result .shared-context{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;width:fit-content;max-width:100%;margin:0 auto 12px;padding:4px 10px;border:1px solid #e5d7c4;border-radius:999px;background:#fffaf3;color:#6e5a45;font-size:12px;font-weight:500;line-height:1.6;letter-spacing:0;word-break:keep-all}
.shared-context .date{margin:0;font-size:inherit;color:inherit}
.shared-scene{position:relative}
.shared-fortune .shrine{margin:0;padding-bottom:14px}
.shared-fortune .god{width:74%;max-width:300px}
.shared-bubble{position:relative;z-index:1;box-sizing:border-box;margin:14px 0 0;padding:18px 20px;border:1px solid #f2d4c8;border-radius:22px;background:linear-gradient(135deg,#fffaf5,#fff0e7);box-shadow:0 8px 24px #6e493014;text-align:left;word-break:keep-all;overflow-wrap:anywhere}
.shared-fortune .shared-bubble{margin-top:-28px}
.shared-fortune .shared-bubble::before{content:'';position:absolute;top:-9px;left:66%;width:16px;height:16px;transform:rotate(45deg);border-left:1px solid #f2d4c8;border-top:1px solid #f2d4c8;background:#fff8f1}
.shared-bubble h1{margin:0 0 8px;color:#a64932;font-size:13px;font-weight:700;line-height:1.6}
.shared-result .shared-bubble .lead,#step-result .shared-bubble .headline{margin:0;color:#3a2a1c;font-family:'Maru Buri',serif;font-size:20px;font-weight:600;font-synthesis:none;line-height:1.6;text-align:left;word-break:keep-all;overflow-wrap:anywhere}
.shared-result .grade{margin:12px auto 0;font-size:12px;padding:5px 10px;line-height:1.5}
.shared-fortune #shared-fortune-basis{margin:10px auto;color:#6e5a45;font-size:13px;line-height:1.65}
.shared-fortune .actions{margin-top:12px}
.shared-result .actions a,#step-result .btn--primary{min-height:50px;padding:11px 14px;font-size:15px;border-radius:14px}
.shared-fortune .fortune-next-actions{margin:12px 0 20px}
.shared-fortune .fortune-next-actions.fortune-follow{margin:24px 0 12px;padding-top:12px;border-top:1px solid #efe3d2}
.shared-result .lines{margin:20px 0;padding:16px 20px}
.shared-result .line-label{color:#a64932;font-size:13px}
.shared-result .analytics-footer{margin-top:28px;padding-top:20px;border-top:1px solid #efe3d2}
.shared-result .analytics-footer a{font-size:13px}
.shared-compat .received-note,#step-result .received-note{margin:6px 0 0;color:#6e5a45;font-size:13px;line-height:1.6;text-align:center;word-break:keep-all}
.shared-compat .shared-bubble .pair-detail{margin:10px 0 0;color:#6e5a45;font-size:15px;line-height:1.7}
#step-result .shared-bubble .summary{max-width:none;margin:10px 0 0;color:#6e5a45;font-size:15px;line-height:1.7;text-align:left}
#step-result .shared-compat{margin:0 0 12px;padding:0;border:0;background:none;border-radius:0}
#step-result .shared-compat .shared-context{margin:0 auto 6px;font-size:12px}
#step-result .shared-compat .btn{margin-top:12px}
#step-result .result.is-shared > .result__eyebrow{display:none}
.shared-compat .compat-top-action{margin:12px 0 18px}
.shared-compat .compat-top-action a{min-height:50px}
.shared-compat .pair-stage{position:relative;gap:12px;margin:12px 0 0}
#step-result .stage{min-height:0;margin:12px 0 0;gap:12px}
#step-result .stage__char,.shared-compat .pair-stage img{width:44%;max-width:205px}
#step-result .stage__heart{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0}
#step-result .stage__badge{position:relative;margin:8px auto 0}
#step-result .trait{margin:14px 0;color:#6e5a45}
#step-result .compat-social,.shared-compat .compat-social{gap:8px;margin:14px 0 22px}
.shared-compat .compat-social button{min-height:50px;border-radius:14px;padding:11px 14px;font-size:15px}
.shared-compat .compat-share-status:empty{display:none}
.shared-result a:focus-visible,#step-result a:focus-visible,#step-result button:focus-visible{outline:3px solid #a64932;outline-offset:3px}
@media(max-width:359px){.shared-result .shared-bubble,#step-result .shared-bubble{padding:16px}.shared-result .shared-bubble .lead,#step-result .shared-bubble .headline{font-size:19px}.shared-result .shared-context{font-size:11px}}

.compat-followup{display:grid;gap:4px;margin:24px 0 12px;padding-top:12px;border-top:1px solid #efe3d2}
.compat-followup .compat-follow,.compat-followup .compat-fortune-link{background:transparent;border:0;border-radius:0;box-shadow:none;color:#6e5a45;font-size:14px;font-weight:400}

body[data-screen="result"] .appbar{margin-bottom:4px}
#step-result:has(.result.is-shared) .stepbar{padding:4px 0 8px}
#step-result .result.is-shared > .shared-compat{padding:0;margin:0 0 12px;border:0;background:none}
#step-result .shared-bubble .shared-pair-name{margin:0 0 8px;color:#a64932;font-size:13px;font-weight:700;line-height:1.6}
.shared-compat .grade,#step-result .stage__badge{background:#a64932;color:#fff}

:root{--temple-season-background:url('/assets/scenes/temple-bg.webp')}
@media(prefers-reduced-motion:no-preference){:root{--temple-season-background:url('/assets/scenes/temple-autumn-9872032b649a.gif')}}
.shared-result .lines,#step-result .panel{border-color:#eaddcc;background:#fff8f0;box-shadow:none}
.shared-result .grade,.shared-compat .grade,#step-result .stage__badge{width:fit-content;max-width:100%;padding:4px 10px;border:1px solid #e0d2c2;border-radius:999px;background:#f3e9de;color:#6e5a45;box-shadow:none;font-size:12px;font-weight:600}
.shared-result .lines h2{margin:0 0 8px;font-size:13px;font-weight:600;color:#a64932}
.shared-result .lines .action-explanation{display:block;margin-top:8px;color:#6e5a45;font-size:14px;line-height:1.7}
.shared-compat .compat-basis>summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px;color:#6e5a45;font-size:13px;font-weight:400;background:transparent;border:0;cursor:pointer}

.stage::before{pointer-events:none}
#compat-recipient-action[hidden]{display:none}
#compat-recipient-action{position:relative;margin:14px 0}
#compat-recipient-action .btn{display:flex;align-items:center;justify-content:center;width:100%;box-sizing:border-box;text-decoration:none}

#step-result .compat-social,.shared-compat .compat-social{gap:4px;margin:8px 0 22px}
#step-result .compat-social #btn-share,.shared-compat .compat-social #compat-share-link{min-height:48px;padding:10px 14px;border:1px solid #dfcdb9;border-radius:14px;background:#fffaf3;color:#6e5a45;box-shadow:none;font-size:14px;font-weight:600}
#step-result .compat-social #btn-share-result-card,.shared-compat .compat-social #compat-share-card{min-height:44px;padding:8px 12px;border:0;border-radius:0;background:transparent;color:#6e5a45;box-shadow:none;font-size:13px;font-weight:500;text-decoration:underline;text-underline-offset:4px}
#step-result .result:not(.is-shared) .compat-social #btn-share{border-color:#a64932;background:#a64932;color:#fff;font-weight:700}
body.shared-compat .compat-snapshot .compat-social #compat-share-card{min-height:44px;padding:8px 12px;border:0;border-radius:0;background:transparent;color:#6e5a45;box-shadow:none;font-size:13px;font-weight:500;text-decoration:underline;text-underline-offset:4px}
