@font-face{font-family:Local;src:url('/body.ttf');font-display:swap}
@font-face{font-family:Story;src:url('/serif.ttf');font-display:swap}
:root{--ink:#142b50;--muted:#61748f;--cream:#fffbf1;--pink:#ff4f87;--line:#e8e9ea;--shadow:0 7px 25px #38455e08}
html{scrollbar-width:none}
*{box-sizing:border-box}
body{margin:0;background:linear-gradient(180deg,#fffdf8,#faf7ef);color:var(--ink);font-family:Local,'Malgun Gothic',sans-serif;line-height:1.7}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 20px;border:1px solid #dce1e8;border-radius:17px;background:white;color:var(--ink);cursor:pointer;font-weight:700;font-size:14px;text-align:center;transition:transform .15s,box-shadow .15s}
button:hover,.button:hover{box-shadow:0 5px 16px #152b5014;transform:translateY(-1px)}
button:disabled{opacity:.5;cursor:default}
.primary{color:#fff;background:linear-gradient(120deg,#203d66,#102744);border-color:#183655}
.primary .ui-icon{filter:brightness(0) invert(1)}
:focus-visible{outline:3px solid #507fba;outline-offset:4px}
.skip{position:absolute;left:16px;top:-100px;background:white;z-index:99}
.skip:focus{top:8px}
h1,h2,h3,p{margin-top:0}
h1,h2{word-break:keep-all;letter-spacing:-1px}
h1{font-family:Story,serif;font-size:35px;line-height:1.45;margin:10px 0 16px}
h2{font-size:23px;line-height:1.45;margin:10px 0 15px}
h3{font-size:18px;line-height:1.5}
p{margin-bottom:14px}
em{font-style:normal;color:var(--pink)}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.7px;color:var(--muted)}
.muted,.caption,.footer-note{color:var(--muted);font-size:12px;line-height:1.7}
.cat{object-fit:contain;max-width:100%;height:auto}
.ui-icon{width:28px;height:28px;object-fit:contain;flex:none}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.row>*{max-width:100%}
.row .button,.row>button{flex:1}
.spread{justify-content:space-between}
.panel,.book-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:25px;box-shadow:var(--shadow);margin:22px 0}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:26px 0 15px}
.section-heading h2{font-size:20px;margin:0}
.section-heading>a,.section-heading>span{font-size:12px;color:var(--muted);flex-shrink:0}
.notice{padding:16px 19px;border:1px solid #e7e7de;border-radius:15px;background:#f5f3eb;color:#657080;font-size:12px;line-height:1.8;margin:28px 0 8px}
.featured-copy{position:relative;z-index:1;margin-top:20px;max-width:65%}
.theme-general,.tone-0{background:#f1efff}
.theme-love,.tone-1{background:#fff0f5}
.theme-career,.tone-2{background:#edf2ff}
.theme-wealth,.tone-3{background:#fff6df}
.theme-study,.tone-4{background:#edf9ef}
.grid{display:grid;gap:17px}
.caption{text-align:center;margin:8px 0}
.library-banner{display:flex;justify-content:center;align-items:center;gap:30px;margin:35px 0 15px;border-radius:24px;background:#eef2ff;padding:24px}
.library-banner .cat{width:155px}
.library-banner h2{font-family:Story,serif}
.library-banner p{font-size:14px;color:var(--muted)}
.page-intro{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:8px 0 23px}
.page-intro .cat{width:180px;height:170px}
.page-intro p{color:var(--muted)}
.products{grid-template-columns:repeat(3,minmax(0,1fr))}
.product{border:1px solid white;box-shadow:var(--shadow);border-radius:23px;padding:24px;display:flex;flex-direction:column;align-items:start}
.product>.ui-icon{width:55px;height:55px;margin:0 0 15px}
.product p{font-size:13px;color:var(--muted);flex:1}
.product .eyebrow{font-size:11px}
.product h2{margin:8px 0 12px}
.price{font-size:25px;color:#ed4e7d;margin-bottom:13px}
.product>button{width:100%;justify-content:space-between}
.product button .ui-icon{width:18px}
.bundle{margin-top:25px;border-radius:23px;background:linear-gradient(130deg,#172d50,#284c6b);color:#fff;padding:28px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.bundle .eyebrow{color:#ffe5aa}
.bundle p,.bundle small{color:#cbd8e7}
.bundle small{font-size:11px}
.bundle button{flex-shrink:0}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
.field{display:block;margin:18px 0;font-size:14px}
.field>span{display:block;font-weight:bold;margin-bottom:8px}
input:not([type=checkbox]),select,textarea{width:100%;border:1px solid #cbd5df;border-radius:12px;background:white;padding:12px;color:var(--ink);min-height:48px}
input[type=checkbox]{width:19px;height:19px;vertical-align:middle;margin-right:8px;accent-color:#23446e}
textarea{min-height:160px;resize:vertical}
#question-count{display:block;text-align:right;color:var(--muted)}
#question-form{max-width:700px;margin:0 auto}
#question-form>.primary{width:100%}
.chart-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.chart-layout .panel{margin:0 0 22px}
.pillars{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;text-align:center}
.pillar{background:#fbfcfe;border:1px solid #f0f1f2;border-radius:15px;padding:12px 8px}
.pillar small{font-size:11px;display:block;color:#617591;min-height:27px}
.pillar strong{font-size:31px;line-height:1.65;display:block;border-radius:12px;margin:4px 0 8px;font-weight:700}
.wood{background:#d9f2d5;color:#31813a}
.fire{background:#ffdfeb;color:#df5373}
.earth{background:#ffedbd;color:#99621e}
.metal{background:#e7e1ff;color:#6c51cc}
.water{background:#d8efff;color:#266ea5}
.unknown{background:#eceff4;color:#667688}
.guide{display:flex;align-items:center;gap:9px;padding:12px;background:#fff3f6;border-radius:13px;margin:18px 0;font-size:12px}
.element-row{display:flex;align-items:center;gap:13px;margin:17px 0;font-size:12px}
.element-row strong{border-radius:50%;padding:5px 10px;font-size:18px}
.element-row progress{width:100%;height:12px;accent-color:#8dbfa1;min-width:0}
.element-row span{white-space:nowrap}
details{padding:16px 0;border-top:1px solid var(--line);font-size:13px}
summary{cursor:pointer;font-weight:700;line-height:1.65}
details p{margin-top:16px}
details[open]>summary{margin-bottom:12px}
.access-code{padding:17px;border:1px dashed #cfbe97;border-radius:17px;margin:18px 0}
.access-code code{display:block;overflow-wrap:anywhere;padding:12px;background:#f2f4f7;border-radius:10px}
.status{display:flex;align-items:center;justify-content:center;gap:35px;background:linear-gradient(130deg,#fff6ec,#fffdf9);border-radius:24px;padding:25px;margin-bottom:25px}
.status-cat{width:220px;height:210px;object-fit:contain}
.status strong{font-size:23px}
.status p{font-size:13px;color:var(--muted)}
body[data-page=order] main>h1{text-align:center;font-size:29px}
.progress{padding:6px 11px;border-radius:15px;background:#f0f3f7;font-size:11px;overflow-wrap:anywhere}
.chapter-progress{display:flex;justify-content:space-between;gap:2px;margin:15px 0}
.chapter-progress span{background:#f1f3f6;color:#a1aab8;border-radius:50%;width:26px;height:26px;text-align:center;font-size:21px;line-height:26px}
.chapter-progress .received{background:#ffe1eb;color:#ef789a}
.book-card h2{margin:0}
.book-card p{font-size:13px;color:var(--muted);margin:8px 0}
.reading{max-width:740px;margin:auto}
.back-link{display:inline-block;font-size:13px;color:var(--muted);margin-bottom:18px}
.result-hero{background:radial-gradient(circle at 90% 25%,#436382,#162f50 58%);color:#fff;border-radius:23px;display:flex;align-items:center;position:relative;min-height:290px;padding:28px;overflow:hidden}
.result-hero .eyebrow{color:#d0dfed}
.result-hero h1{font-size:30px;color:#fff2cd}
.result-hero>div{width:75%;position:relative;z-index:1}
.result-hero .cat{width:200px;position:absolute;right:-5px;bottom:5px;opacity:.96}
.result-question{font-size:14px;line-height:1.8;max-width:75%;white-space:pre-wrap}
.answer{border:1px solid #f2dcd2;background:linear-gradient(150deg,#fff9ee,#fff4f7);border-radius:21px;padding:25px;margin:24px 0}
.answer h2{font-size:22px}
.answer h3{font-size:15px;margin:22px 0 8px;color:#a64a68}
.answer p{line-height:1.95;white-space:pre-wrap}
.toc{display:grid;gap:10px}
.toc-row{padding:17px 18px;border:1px solid #fff;border-radius:16px;display:flex;align-items:center;gap:16px;font-size:14px;box-shadow:var(--shadow)}
.toc-row>span{font-size:14px;border-radius:50%;background:#fff9;display:grid;place-items:center;width:34px;height:34px;flex:none}
.toc-row>b{margin-left:auto;font-size:20px}
.source-note{margin-top:25px;color:var(--muted);font-size:12px}
.card-wrap{max-width:430px;margin:20px auto}
.card-wrap img{width:100%;border-radius:24px;box-shadow:0 15px 38px #1d365526}
.gender-label{display:inline-block;padding:4px 13px;background:#edf3fb;border-radius:30px;font-size:12px;margin-top:8px}
body[data-page=card] main>h1,body[data-page=card] main>h2,body[data-page=card] main>p{text-align:center}
.text-button{background:transparent;border:0;padding:0;min-height:30px;font-size:12px}
.empty-state{text-align:center;background:white;border:1px solid var(--line);border-radius:23px;padding:28px}
.empty-state .cat{width:180px}
.empty-state p{color:var(--muted);font-size:14px}
body[data-page=library] .book-card{display:flex;justify-content:space-between;align-items:center;gap:15px}
body[data-page=library] .book-card h3{margin:5px 0}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,650px);display:grid;grid-template-columns:repeat(4,1fr);padding:10px 10px max(10px,env(safe-area-inset-bottom));background:#ffffffed;backdrop-filter:blur(14px);border:1px solid #eeeee9;border-radius:24px 24px 0 0;z-index:5;box-shadow:0 -7px 30px #22384f05}
.bottom-nav a{display:flex;flex-direction:column;text-align:center;align-items:center;font-size:11px;color:#718198;font-weight:700}
.bottom-nav span{font-size:24px;line-height:1.4}
.bottom-nav a[aria-current=page]{color:#153356}
.error{padding:25px;background:#fff0f1;border-radius:19px;color:#9a3850;margin-bottom:20px}
#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:#1d3455;color:#fff;padding:16px 22px;border-radius:18px;display:none;z-index:15;max-width:calc(100vw - 32px);width:max-content;font-size:13px;box-shadow:0 7px 24px #142b5022}
@media(min-width:0px){h1{font-size:27px}
h2{font-size:21px}
.featured-copy{margin-top:12px;max-width:66%}
.section-heading{margin:23px 0 13px}
.section-heading h2{font-size:17px}
.section-heading>a,.section-heading>span{font-size:10px}
.caption{font-size:9px;line-height:1.6}
.library-banner{padding:18px 13px;gap:13px}
.library-banner .cat{width:100px}
.library-banner h2{font-size:20px}
.library-banner p{font-size:11px}
.page-intro{gap:6px}
.page-intro .cat{width:104px;height:119px}
.page-intro>div{flex:1}
.page-intro h1{font-size:25px}
.page-intro p{font-size:12px}
.page-intro .eyebrow{font-size:10px}
.products{grid-template-columns:1fr 1fr;gap:12px}
.product{padding:17px}
.product:first-child{grid-column:1/-1;position:relative;padding-right:100px}
.product:first-child>.ui-icon{position:absolute;right:25px;top:40px;width:62px;height:62px}
.product h2{font-size:21px}
.product p{font-size:12px}
.product>.ui-icon{width:40px;height:40px;margin-bottom:10px}
.product button{padding:9px 10px;font-size:12px}
.price{font-size:23px}
.bundle{padding:23px;display:block}
.bundle h2{font-size:22px}
.bundle p{font-size:14px}
.bundle small{display:block}
.bundle>button{margin-top:15px;width:100%}
.panel{padding:20px;margin:18px 0}
.form-grid{gap:0 12px}
.field{font-size:13px;margin:13px 0}
input:not([type=checkbox]),select,textarea{font-size:16px;padding:11px;min-width:0}
.chart-layout{display:block}
.chart-layout .panel{margin:0 0 18px}
.pillars{gap:6px}
.pillar{padding:9px 5px;border-radius:12px}
.pillar strong{font-size:27px}
.pillar small{font-size:10px;min-height:25px}
.guide{font-size:11px;padding:10px}
.status{flex-direction:column;gap:10px;padding:20px;text-align:center}
.status-cat{width:235px;height:205px}
.status strong{font-size:22px}
.status p{margin:5px 0}
body[data-page=order] main>h1{font-size:25px}
.book-card{padding:19px}
.book-card h2{font-size:20px}
.book-card .row>.progress{max-width:100%}
.chapter-progress span{width:23px;height:23px;line-height:23px;font-size:18px}
.book-card .row>.button,.book-card .row>button{flex:1 1 42%;font-size:12px;padding:11px}
.result-hero{min-height:270px;padding:23px 20px}
.result-hero h1{font-size:25px}
.result-hero .cat{width:144px;bottom:4px;right:-5px}
.result-hero>div{width:100%}
.result-question{font-size:13px;max-width:69%}
.result-hero .eyebrow{font-size:11px}
.answer{padding:20px}
.answer h2{font-size:21px}
.answer p{font-size:14px}
.answer .muted{font-size:11px}
.toc-row{padding:14px 13px;gap:10px;font-size:13px}
.toc-row>span{width:30px;height:30px;font-size:12px}
body[data-page=library] .book-card{padding:17px;gap:10px}
body[data-page=library] .book-card .button{font-size:11px;padding:9px;min-width:89px}
body[data-page=library] .book-card small{font-size:9px;overflow-wrap:anywhere}
body[data-page=library] .book-card h3{font-size:16px}
.notice{margin-top:22px;font-size:11px;padding:14px}
.card-wrap{max-width:380px}
.empty-state h2{font-size:20px}
.row .button,.row>button{font-size:13px;padding:12px 14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto;transition:none}}
.result-hero{background:#172f51 url("/ui/rc2/assets/backgrounds/night-story-card.svg") center/cover}
.content-review{border:1px solid #d4a19a;background:#fff2ec;color:#723f38;margin-bottom:20px}
.content-review p{margin:8px 0 0}
body{font-size:17px;background:#f8f4e9 url('/ui/rc2/assets/backgrounds/pastel-mountains.svg') center bottom/cover fixed}
#admin-main{width:100%;max-width:430px;background:#fffcf6}
.bottom-nav{max-width:430px}
.products,.chart-layout,.form-grid{grid-template-columns:minmax(0,1fr)}
button,.button,.field,.toc-row,.answer h3,.book-card p,.product p,.page-intro p,.library-banner p,.result-question{font-size:16px}
.muted,.caption,.footer-note,.eyebrow,.notice,.source-note,.progress,.guide,.gender-label,.element-row,details,.back-link,.text-button,.section-heading>a,.section-heading>span,.bottom-nav a{font-size:14px}
.page-intro .eyebrow{font-size:14px}
.featured-copy{max-width:70%}
.caption{font-size:16px}
.section-heading{flex-wrap:wrap}
.section-heading h2{font-size:21px}
.product{padding:22px}
.product:first-child{padding-right:22px}
.product:first-child>.ui-icon{position:static}
.product .eyebrow{font-size:14px}
.product button{font-size:16px}
.bundle small{font-size:14px}
.bundle{padding:22px}
.panel{padding:20px}
.pillars{gap:4px}
.pillar{padding:9px 3px}
.pillar small{font-size:13px;min-height:27px}
.pillar strong{font-size:29px}
.status p{font-size:16px}
.book-card{padding:20px}
.result-hero{min-height:300px}
.result-hero>div{width:100%}
.result-hero h1{font-size:27px}
.result-question{max-width:78%}
.result-hero .cat{width:105px;opacity:.85}
.answer{padding:22px}
body[data-page=library] .book-card{display:block}
.card-wrap{margin:20px -4px}
.card-wrap img{display:block;width:100%}
.notice{color:#48586d}
.muted,.caption{color:#52637a}
@media(max-width:350px){.panel{padding:16px}
.pillar small{font-size:12px}}
.featured-copy{max-width:62%;word-break:keep-all}
.featured-copy p{overflow-wrap:normal}
.answer p,.answer li,.row .button,.row>button,.field small{font-size:16px}
.answer p,.answer li{line-height:1.9}
.card-wrap+p{font-size:17px}
.order-list{overflow-wrap:anywhere}
.site-header{position:relative;width:100%;max-width:430px;min-height:76px;height:76px;margin:auto;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fffcf6}
.site-header>a{display:flex;flex:none}
.site-header img{width:158px;height:48px;object-fit:contain}
.header-library{margin-left:auto;padding:6px;font-size:23px}
.mode-badge{color:#667b91;background:#edf3f3;border:1px solid #d9e6e4;border-radius:20px;padding:4px 8px;font-size:10px;white-space:nowrap}
main{width:100%;max-width:430px;margin:auto;min-height:85vh;padding:12px 18px 110px;background:#fffefa;overflow-wrap:anywhere}
@media(max-width:350px){.site-header img{width:145px}
.header-library{font-size:20px;padding:3px}}
