@font-face{font-family:ChosunCentennial;src:url('assets/fonts/ChosunCentennial.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:NMFClassic;src:url('assets/fonts/NMFClassic-B.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:NMFClassic;src:url('assets/fonts/NMFClassic-M.otf') format('opentype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Danjo;src:url('assets/fonts/Danjo-bold-Regular.otf') format('opentype');font-style:normal;font-weight:700;font-display:swap}

/* Shared product UI. Geometry is our product decision; typography follows public TDS roles. */

*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;background:var(--paper);color:var(--ink);font-family:"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;font-size:15px;line-height:1.5;letter-spacing:0;padding-bottom:0}
button,input,textarea,select{font:inherit}
button.page-back-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:12px;background:transparent;color:inherit;cursor:pointer}
.page-back-icon .material-symbols-rounded{font-size:24px;line-height:1}
.page-back-icon:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.page-back-icon:hover{background:rgba(128,112,92,.1)}
button{cursor:pointer;color:inherit;transition:background .15s,transform .15s;border:0}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button:hover{filter:none}
button:not(:disabled):active{transform:scale(.98)}
button:disabled{cursor:default;opacity:1}
button:focus-visible,a:focus-visible{outline:3px solid #b59b70;outline-offset:3px}
a{color:inherit}
h1,h2,h3,h4,p{margin:0}
h1{font-size:30px;line-height:40px;letter-spacing:-1px;font-weight:700;word-break:keep-all}
h2{font-size:var(--ds-section-size);line-height:var(--ds-section-leading);letter-spacing:-.6px}
h3{font-size:20px;line-height:29px}
p{overflow-wrap:anywhere}
button,textarea{word-break:keep-all}

#root{width:100%;max-width:500px;min-height:100dvh;margin:auto;padding-bottom:110px;background:var(--paper)}
#root>header{position:sticky;top:0;z-index:440;max-width:500px;margin:auto;background:rgba(255,255,255,.55);backdrop-filter:saturate(1.8) blur(16px);-webkit-backdrop-filter:saturate(1.8) blur(16px);border-bottom:1px solid #e9e5dc}
.header-brand-row{height:56px;padding:0 16px;display:flex;align-items:center}
.brand{padding:0;background:none;display:flex;align-items:center;gap:7px;min-height:44px;font-family:ChosunCentennial,'Noto Serif KR',serif;font-size:18px;line-height:27px;font-weight:400;color:#2a1d10;letter-spacing:-.8px}
.brand-mark{width:22px;height:22px;display:flex!important;align-items:center;justify-content:center;font-size:16px!important;color:#e4d6a8;background:#241e1a;border-radius:3px;font-variation-settings:'FILL' 1}
.material-symbols-rounded{font-family:'Material Symbols Rounded';font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:'liga';-webkit-font-smoothing:antialiased}

main{width:100%;max-width:500px;margin:0 auto;padding:28px 16px 32px;min-height:calc(100dvh - 270px)}
.narrow{max-width:100%;margin:0}
.page-heading{margin-bottom:32px}
.page-heading h1{font-family:inherit;font-size:30px;line-height:40px}
.eyebrow,.form-top,.sample-label,.flow-kicker{font-size:13px;line-height:20px;font-weight:500;color:var(--muted)}
.eyebrow{display:flex;gap:8px;align-items:center;margin-bottom:12px}
.dot{width:6px;height:6px;background:var(--action);border-radius:50%;display:inline-block}
.hint,.flow-footnote{font-size:13px;line-height:20px;color:var(--muted)}

.primary,.secondary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:16px 20px;border-radius:14px;font-size:16px;line-height:24px;font-weight:700;white-space:normal;text-align:center}
.primary{background:var(--action);color:var(--on-action);width:100%}
.primary:disabled{background:#e7e3da;color:#a99c88}
.primary:not(:disabled):hover{background:#493621}
.secondary{background:var(--action-weak);color:var(--action);border:0}
.secondary:hover{background:#e9e3d6}
.text-btn{background:none;border:0;min-height:44px;padding:10px 0;color:var(--muted);font-size:15px}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.actions>*{flex:1}
.actions .text-btn{flex:0 0 auto}
.step{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:24px;color:var(--disabled);font-size:13px}
.step b{color:var(--action);font-weight:600}

textarea,select,input:not([type=checkbox]){border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);padding:16px;width:100%;font-size:17px;line-height:26px}
textarea{resize:vertical;min-height:120px;max-width:100%;word-break:normal}
textarea::placeholder{color:#a99c88}
textarea:focus,select:focus,input:focus{outline:2px solid #b59b70;outline-offset:2px;border-color:var(--action)}
input[type=checkbox]{width:20px;height:20px;accent-color:var(--action);flex:none}
label{color:var(--ink)}
.form{display:flex;flex-direction:column;gap:16px;margin:0}
.form-error{color:var(--danger);font-size:13px;line-height:20px}
.form-error:empty{display:none}
.share-choice{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.share-choice label{display:flex;align-items:center;gap:9px;font-size:14px;min-height:44px;color:var(--muted)}
.share-choice .hint{flex-basis:100%}
.share-choice .region{width:auto;font-size:14px;padding:10px;min-height:44px}
.send-icon{width:24px;height:24px}
.home-grid{display:block;width:100%}

.question{padding:20px 0;border-bottom:1px solid var(--line);margin-bottom:12px}
.question h3{font-size:17px;line-height:26px;margin-bottom:16px}
.question>p{font-size:15px;line-height:24px;margin-top:12px}
.options,.intake-options{display:flex;flex-wrap:wrap;gap:10px}
.options button,.intake-options button{padding:12px 16px;min-height:48px;border-radius:12px;border:1px solid var(--line);background:#fff;color:#8b8379;font-size:15px;line-height:23px}
.options button.selected,.intake-options button[aria-pressed=true]{background:var(--action-weak);color:var(--action);border-color:var(--action);font-weight:600}
.options+.hint{margin-top:14px}
.narrow>.primary{margin-top:28px}
.loading,.empty{padding:80px 0;text-align:center}
.loading h2{margin:24px 0}
.spinner{width:32px;height:32px;border:3px solid var(--line);border-top-color:var(--action);border-radius:50%;animation:spin .8s linear infinite;margin:auto}
.empty .secondary{margin-top:24px}
.result-layout{display:flex;flex-direction:column;gap:36px}
.dream-card{background:var(--surface);padding:28px;border-radius:16px;overflow:hidden}
.dream-card .card-top{display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}
.dream-card h2{margin:24px 0 16px;font-size:26px;line-height:35px}
.dream-card>p{font-size:22px;line-height:34px;font-weight:600}
.dream-card .cat{font-size:44px;margin:24px 0}
.dream-card .type{font-size:13px;color:var(--muted);margin-top:24px}
.result-copy h1{font-size:26px;line-height:35px;margin-bottom:12px}
.result-status{color:var(--muted);font-size:13px;margin-bottom:24px}
.chip{display:inline-block;padding:6px 10px;border-radius:8px;font-size:13px;background:var(--surface);color:var(--action)}
.summary{font-size:17px;line-height:29px;margin:16px 0 32px}
.deep-reading{border-top:1px solid var(--line);padding-top:28px}
.deep-eyebrow{font-size:13px;color:var(--action)}
.deep-reading h3{margin:10px 0;font-size:22px;line-height:31px}
.deep-intro,.deep-note{font-size:15px;color:var(--muted);line-height:24px}
.interpreters,.interpreter-labels{display:none}
.deep-deliverables{margin:24px 0}
.deep-deliverables h4{font-size:17px;margin-bottom:20px}
.deep-deliverables>div{display:flex;gap:16px;margin:20px 0;font-size:15px;line-height:24px}
.deep-deliverables>div>span{color:var(--muted);font-size:13px}
.deep-deliverables b{display:block;font-weight:600}
.deep-deliverables p{color:var(--muted)}
.deep-price{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin:24px 0}
.deep-price>span{font-size:15px;color:var(--muted)}
.deep-price strong{font-size:26px}
.deep-price strong span{font-size:17px}
.deep-price small{width:100%;font-size:13px;color:var(--muted)}
.deep-unavailable{padding:16px;background:var(--surface);border-radius:12px;text-align:center;font-size:15px;color:var(--muted);margin:20px 0}
.reading-outline>div{border-bottom:1px solid var(--line);padding:20px 0}
.reading-outline p{margin-top:8px}

main.map-page{min-height:600px;display:flex;flex-direction:column;padding-top:20px}
.map-page .page-heading{flex:none;margin-bottom:24px}
.map-page .page-heading h1{font-size:26px;line-height:35px}
.map-layout{flex:none;height:clamp(260px,40dvh,360px);display:flex}
.map{width:100%;height:100%;border-radius:16px;background:#161d21;z-index:1}
.map-pin{font-size:28px;filter:drop-shadow(0 2px 3px #0005);background:transparent;border:0}
.map-pin>span{display:block;transform-origin:50% 70%;animation:moon-arrive .42s cubic-bezier(.22,.8,.32,1) var(--moon-delay,180ms) both}
.map-pin:focus-visible>span{animation:none}
@keyframes moon-arrive{0%{opacity:0;transform:translateY(8px) scale(.3) rotate(-18deg)}65%{opacity:1;transform:translateY(-3px) scale(1.15) rotate(5deg)}100%{opacity:1;transform:translateY(0) scale(1) rotate(0)}}

#root>footer{max-width:512px;margin:28px auto 0;padding:24px 0 16px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}
.footer-details>summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;list-style:none}
.footer-details>summary::-webkit-details-marker{display:none}
.footer-chevron{display:inline-block;font-size:16px;transition:transform .2s}
.footer-details[open] .footer-chevron{transform:rotate(180deg)}
.footer-links{display:flex;align-items:center;gap:24px;margin-top:12px}
.footer-links button{padding:8px 0;min-height:44px;background:none;font-size:13px;color:var(--muted)}
.footer-links>span{margin-left:auto}
.overlay{position:fixed;inset:0;background:rgba(20,31,24,.45);backdrop-filter:blur(6px);z-index:600;display:flex;align-items:center;justify-content:center;padding:24px}
.modal{width:100%;max-width:512px;max-height:calc(100dvh - 48px);overflow:auto;background:var(--paper);border-radius:24px;padding:24px}
.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.modal-head>button{margin-left:auto;background:none;width:44px;height:44px;font-size:30px;color:var(--ink)}
.modal h2{font-size:26px;line-height:35px;margin-bottom:20px;word-break:keep-all}
.modal h3{font-size:20px;margin:24px 0 12px}
.modal>p{font-size:15px;line-height:26px;margin:16px 0}
.modal>.primary{margin-top:28px}
.location-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:28px}
.location-actions>.primary,.location-actions>.secondary{width:100%;min-height:56px}
.question-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:10px;margin-top:28px}
.question-actions>.primary,.question-actions>.secondary{min-height:56px;width:100%;padding:16px 12px}
.modal .question{margin:0}
.sample-label{color:var(--action)}
.review-context{font-size:15px}
.review-context>div{padding:14px 0;border-bottom:1px solid var(--line)}
.review-context dt{color:var(--muted);font-size:13px}
.review-context dd{margin:6px 0 0;white-space:pre-wrap}
.deep-dream-summary{white-space:pre-wrap}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:116px;z-index:800;width:max-content;max-width:calc(100% - 40px);padding:14px 20px;border-radius:14px;background:#26382d;color:#fff;font-size:15px;box-shadow:0 8px 24px #19251c20}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

@media(max-width:500px){#root>footer{margin:24px 24px 0}
main{padding-top:20px}

}
@media(max-width:359px){main{padding-inline:16px}
h1{font-size:26px;line-height:35px}
.overlay{padding:16px}
.modal{padding:20px}
.share-choice label{font-size:13px}
}
@keyframes spin{to{transform:rotate(360deg)}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Free interpretation steps share the question screen's spacing and type scale. */
main.free-app.free-flow{padding:0 16px 48px}
.free-flow .free-entry-banner{margin-inline:-16px;width:calc(100% + 32px)}
.free-flow .composer-label{font-size:17px;line-height:26px;font-weight:700;color:var(--ink);margin-bottom:16px}
.free-flow .friend-result{padding:0 0 40px}
.free-flow .friend-result h1{font-size:30px;line-height:40px}
.free-flow .secondary{background:#fff;border:1px solid var(--line);color:var(--ink)}
.free-flow .secondary:hover{background:#f9f8f6}
main.free-flow .primary:disabled,main.free-flow .composer-send:disabled{background:var(--action);color:var(--on-action);opacity:.4}
.custom-answer{display:block;width:100%;min-height:52px;margin-top:16px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:16px;line-height:24px}
.custom-answer:focus{outline:2px solid var(--action);outline-offset:2px}
.selection-notice{font-size:13px;line-height:21px;color:var(--muted);margin-top:16px;word-break:keep-all}

main.free-flow .composer-send{padding:16px 20px;border-radius:14px;font-size:16px;line-height:24px;font-weight:700}

.location-actions>.primary,.location-actions>.secondary{padding:14px 8px;font-size:15px;line-height:22px}
.location-manual{display:grid;gap:10px;margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.location-manual label{font-size:15px;line-height:23px;font-weight:700}
.location-manual select{width:100%;min-width:0;min-height:52px;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--ink);font:inherit;font-size:16px}
.location-manual>.primary{margin-top:8px}
