/* NOCTE finish system. Type has a role; ornaments keep a fixed physical size. */
:root{
  --outside:#171b19;--bg:#0c1210;--panel:#121b17;--panel2:#1a261f;
  --text:#eeeee6;--muted:#a0aaa1;--line:#c8d2c225;--soft:#c4c8b4;
  --accent:#d5d5bf;--foil:#aaa388;--paper:#e7e8dc;--paper-ink:#25382d;
  --control-radius:6px;--surface-radius:8px;
  --ease:cubic-bezier(.2,.65,.3,1);
}
:root[data-theme=light]{
  --outside:#dddfd8;--bg:#f3f3eb;--panel:#e9ece3;--panel2:#dfe5d9;
  --text:#23322a;--muted:#616e63;--line:#334d3629;--soft:#5b6b54;
  --accent:#304d3a;--foil:#837f65;
}
body{letter-spacing:-.15px}
button,input,textarea{font-family:'Pretendard Variable',sans-serif}
button:disabled{opacity:.42}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid #d7caa4;outline-offset:3px}
:root[data-theme=light] :is(button,a,input,textarea,[tabindex]):focus-visible{outline-color:#4f6448}
.app-shell{box-shadow:none}
.home-header{height:88px;padding:27px 16px 12px 22px;background:var(--bg)}
.brand{gap:9px;color:var(--text);font-family:Georgia,'Times New Roman',serif;font-size:29px;line-height:1;font-weight:400;letter-spacing:2.8px;align-items:baseline}
.brand small{font-family:'Pretendard Variable',sans-serif;font-size:8px;font-weight:500;letter-spacing:2px;color:var(--muted)}
.icon-button{border-radius:4px;transition:background .18s}
.icon-button svg{width:20px;height:20px;stroke-width:1.6}
.icon-button:active{transform:none;background:#8b9d851f}
.category-bar{height:54px;gap:7px;padding:0 20px 10px;background:var(--bg)}
.category-bar button{min-height:44px;min-width:44px;padding:8px 6px;border:0;border-radius:0;background:none;font-size:14px;font-weight:400;color:var(--muted);position:relative}
.category-bar button.active{border:0;background:none;color:var(--text);font-weight:600}
.category-bar button.active::after{content:"";position:absolute;left:6px;right:6px;bottom:2px;height:1px;background:var(--soft)}
.home-main{padding:0 20px 102px}
.hero-carousel{margin:0 -20px 32px}
.hero-rail{padding:0 20px;scroll-padding-left:20px;gap:12px}
.hero-card{flex-basis:calc(var(--shell) - 40px);max-height:max(260px,calc(100svh - 224px));border:0;border-radius:var(--surface-radius);background:#19271f}
.poster-copy{left:24px;right:20px;bottom:31px;align-items:flex-start;text-align:left}
.poster-copy strong{font-family:'Pretendard Variable',sans-serif;font-size:34px;line-height:1.18;letter-spacing:-1.1px;font-weight:650;text-shadow:0 2px 16px #0004}
.hero-position{top:15px;right:16px;bottom:auto;left:auto;border:0;border-radius:0;background:none;font-family:'Pretendard Variable',sans-serif;font-size:10px;letter-spacing:1px;padding:0;color:#e1e5d8}
.scene-shade{background:linear-gradient(0deg,#07120cf2 0%,#07120c66 27%,transparent 59%)}
.carousel-arrow{width:44px;height:44px;border:1px solid #fff3;border-radius:3px;backdrop-filter:none;background:#0b160e99}
.catalog-section{margin-bottom:32px}
.section-title{padding:0 0 14px;align-items:center}
.section-title h2{font-size:18px;line-height:26px;font-weight:600;letter-spacing:-.4px}
.tile-rail{gap:12px}
.reading-tile{border:0;border-radius:var(--surface-radius)}
.reading-tile .poster-copy{left:16px;right:12px;bottom:54px;align-items:flex-start}
.reading-tile .poster-copy strong,.poster-grid .reading-tile .poster-copy strong{font-family:'Pretendard Variable',sans-serif;font-size:25px;line-height:1.2;letter-spacing:-.7px;font-weight:600}
.save-button{width:44px;height:44px;bottom:7px;right:8px;border-radius:4px;border:0;background:transparent;backdrop-filter:none}
.save-button svg{width:20px;height:20px;stroke-width:1.5}
.save-button.saved{color:#dcabae}
.wide-banner{padding:22px 0;margin:0 0 32px;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
.wide-banner strong{font-size:16px;font-weight:550}
.wide-banner p{font-size:12px;line-height:20px;color:var(--muted);margin-top:4px}
.wide-banner>span{background:none;border:0}
.how-section{padding:30px 0 8px;border-top:1px solid var(--line)}
.how-section h2{font-size:20px;font-weight:550;letter-spacing:-.5px}
.how-section li p{font-size:13px;line-height:21px}
.site-footer{padding-top:30px;border-top:1px solid var(--line)}
.site-footer>strong{font-family:Georgia,'Times New Roman',serif;font-size:15px;font-weight:400;letter-spacing:2px}
.site-footer button{min-width:44px;min-height:44px;padding:8px 4px}
.bottom-nav{width:100%;max-width:440px;height:calc(72px + env(safe-area-inset-bottom));bottom:0;left:50%;transform:translateX(-50%);border:0;border-top:1px solid var(--line);border-radius:0;padding:7px 14px calc(7px + env(safe-area-inset-bottom));background:var(--bg);box-shadow:none;backdrop-filter:none;gap:4px}
.bottom-nav button{min-height:56px;border-radius:0;gap:5px;font-size:10px;font-weight:400;color:var(--muted)}
.bottom-nav button.active{background:none;color:var(--text)}
.bottom-nav button.active::before{display:none}
:root[data-theme=light] .bottom-nav{background:var(--bg);border-color:var(--line)}
:root[data-theme=light] .bottom-nav button.active{background:none;color:var(--text)}
.bottom-nav svg{width:20px;height:20px;stroke-width:1.6}
.topbar{height:56px;border-color:var(--line)}
.topbar>span{font-size:13px;font-weight:500;letter-spacing:-.2px}
.topbar-brand{font-family:Georgia,'Times New Roman',serif;font-size:23px;letter-spacing:2px;font-weight:400}
.detail-hero{min-height:630px}
.detail-hero-copy{left:26px;right:24px;bottom:183px;text-align:left}
.detail-hero h1{font-family:'Pretendard Variable',sans-serif;font-size:38px;line-height:1.18;font-weight:600;letter-spacing:-1.25px;text-shadow:0 2px 20px #0005;margin:0}
.detail-teaser{left:26px;right:26px;bottom:46px;padding:17px 0 0;border:0;border-top:1px solid #c4ccb452;border-radius:0;background:none;backdrop-filter:none}
.detail-teaser p{font-size:12px;line-height:20px;letter-spacing:-.15px}
.detail-teaser p+p{margin-top:7px}
.detail-teaser b{font-size:10px;font-weight:400;letter-spacing:.5px;color:#c2cbb2;margin-right:8px}
.detail-intro,.chapter-section{padding:38px 28px;text-align:left;background:var(--bg)}
.detail-intro h2,.chapter-section>h2,.detail-guide h2{font-family:'Pretendard Variable',sans-serif;font-size:25px;line-height:1.4;font-weight:550;letter-spacing:-.6px;margin:0 0 20px}
.detail-intro>p:not(.eyebrow){font-size:14px;line-height:25px;letter-spacing:-.15px}
.quote-frame{margin-top:26px;padding:20px 0;text-align:left}
.quote-frame svg{display:none}
.quote-frame p{font-family:var(--serif);font-size:17px;line-height:28px;font-weight:500;letter-spacing:-.15px}
.chapter-section{background:var(--panel)}
.chapter-section article{padding:22px 0}
.chapter-section article>span{font-size:11px;letter-spacing:1px}
.chapter-section h3{font-size:17px;font-weight:500;line-height:25px;letter-spacing:-.3px;margin:7px 0}
.chapter-section article>p{font-size:13px;line-height:22px}
.detail-guide{padding:40px 28px}
.guide-avatar{border:1px solid var(--line);box-shadow:none}
.detail-guide h2{margin-top:22px}
.detail-guide p{font-size:14px;line-height:24px}
.faq-section{padding:36px 28px}
.faq-section h2{font-size:20px;font-weight:550;letter-spacing:-.4px}
.faq-section details{border-color:var(--line)}
.faq-section summary{font-size:14px;line-height:23px;padding:18px 0}
.faq-section details p{font-size:13px;line-height:23px}
.detail-sticky{padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--bg);backdrop-filter:none}
.ornate-button,.button,.pill-button{border-radius:var(--control-radius);font-family:'Pretendard Variable',sans-serif;font-size:15px;font-weight:550;line-height:22px;letter-spacing:-.15px;min-height:52px;border:1px solid transparent;box-shadow:none;transition:background .18s,border-color .18s,color .18s}
.ornate-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;padding:14px 20px;background:#e9e9dd;color:#20352a}
.ornate-button svg{position:static;width:18px;height:18px;transform:none;stroke-width:1.6}
.button:hover,.button:active,.pill-button:active,.ornate-button:hover,.ornate-button:active{transform:none}
.button.primary,.button.white{background:#e9e9dd;color:#20352a;border-color:#e9e9dd}
.button.outline{border-color:var(--line);background:none;color:var(--text)}
:root[data-theme=light] .button.primary{background:#2b4434;color:#f5f4e9;border-color:#2b4434}
.static-story .story-copy{left:24px;right:24px;bottom:28px;text-align:left}
.static-story .story-copy h1{font-size:29px;line-height:1.4;font-weight:500;letter-spacing:-.5px;margin-bottom:24px}
.static-story .button{font-size:15px}
.flow-page .topbar{background:#0c1611bd;backdrop-filter:none}
.flow-content{padding:0 18px 18px}
.flow-progress{left:22px;right:22px;font-size:9px;letter-spacing:0;color:#b9c4b1}
.flow-progress i{background:#dce2d024}
.conversation-frame{margin:220px 0 16px;min-height:0;color:var(--paper-ink);font-family:'Pretendard Variable',sans-serif;isolation:isolate;border:1px solid #aca98c;background:var(--paper);border-radius:2px;box-shadow:0 10px 32px #0003}
.conversation-frame .frame-inner{position:relative;margin:0;min-height:0;border-radius:0;background:var(--paper);padding:32px 24px 24px;box-shadow:none;backdrop-filter:none;text-align:left}
.conversation-frame .frame-inner::before{inset:6px;border:1px solid #7a89713d;border-radius:0;pointer-events:none}
.conversation-frame :is(button,input,textarea,a):focus-visible{outline:2px solid #4f6448;outline-offset:3px}
.frame-crest{position:absolute;left:calc(50% - 40px);top:1px;width:80px;height:16px;background:var(--paper);color:#8e9277;pointer-events:none;z-index:1}
.frame-crest svg{width:80px;height:16px;stroke-width:.8;stroke-linejoin:miter;stroke-linecap:butt}
.conversation-frame h1,.dialogue-frame h1,.choice-frame h1{font-family:var(--serif);font-size:20px;line-height:30px;letter-spacing:-.2px;font-weight:500;margin:0 0 12px;word-break:keep-all}
.dialogue-line{font-family:'Pretendard Variable',sans-serif;font-size:14px;line-height:23px;letter-spacing:-.15px;color:#4d5e4f;margin:0 0 20px}
.dialogue-reply{font-size:12px;line-height:20px;color:#5d6b56;border-left:1px solid #7a89714d;padding:0 0 0 10px;margin:0 0 14px}
.dialogue-responses,.choice-list{gap:0;border-top:1px solid #7a89713d}
.dialogue-responses button,.choice-list button{min-height:52px;padding:14px 0;border:0;border-bottom:1px solid #7a89713d;border-radius:0;background:none;box-shadow:none;font-family:'Pretendard Variable',sans-serif;font-size:14px;line-height:22px;font-weight:450;letter-spacing:-.15px;color:#2b4231;gap:12px;transform:none}
.dialogue-responses button:last-child,.choice-list button:last-child{border-bottom:0}
.dialogue-responses button svg,.choice-list button svg{width:16px;height:16px;stroke-width:1.5;color:#6b7b60}
.dialogue-responses button:active,.choice-list button:active{transform:none;background:#cbd4c66b}
.dialogue-frame .name-line{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.name-line input{width:100%;font-family:'Pretendard Variable',sans-serif;font-size:17px;line-height:26px;font-weight:450;border-color:#64765d80;text-align:left;min-height:48px;padding:8px 0;color:#263d2c}
.name-line input::placeholder{color:#73816c}
.dialogue-frame .name-line .pill-button,.question-bottom .pill-button,.pill-button.wide{justify-self:stretch;width:100%;font-size:14px;line-height:22px;min-height:48px;padding:12px 16px;border:1px solid #2b4434;background:#2b4434;color:#f2f2e7;border-radius:4px}
.frame-hint{font-size:11px;line-height:18px;color:#5d6b56;margin-top:12px}
.frame-inner textarea{font-family:'Pretendard Variable',sans-serif;font-size:15px;line-height:25px;letter-spacing:-.1px;min-height:92px;border-color:#64765d80;color:#263d2c;padding:8px 0}
.question-bottom{display:grid;grid-template-columns:1fr;gap:10px;justify-items:stretch}
.question-bottom>span{font-size:11px;text-align:right;color:#5d6b56}
.question-quote{font-size:16px;line-height:26px;letter-spacing:-.1px;max-height:132px;margin-bottom:20px}
.frame-kicker{font-family:'Pretendard Variable',sans-serif;font-size:12px;color:#5d6b56;margin-bottom:8px}
.dialogue-edit{gap:6px 20px;margin-top:10px;color:#596d50}
.dialogue-edit button{font-size:12px;line-height:20px;text-decoration:none;min-height:44px;padding:10px 0}
.dialogue-edit button:hover{text-decoration:underline;text-underline-offset:4px}
.flow-privacy{font-size:10px;line-height:17px;color:#c0cbb6;padding:0;text-shadow:none}
.draw-page .flow-content{padding-left:18px;padding-right:18px}
.draw-copy h1{font-family:var(--serif);font-size:23px;line-height:33px;letter-spacing:-.3px}
.nd-button{border-radius:4px;box-shadow:none}
.draw-page .nd-select{min-height:48px;font-size:13px;font-weight:550;background:#e2e5d2;border-color:#e2e5d2;color:#263d2c!important}
.draw-page .nd-select:hover:not(:disabled){background:#f0f0e4;transform:none}
.nd-previous,.nd-next{border-color:#d4ddc62e;background:none}
.nd-button:hover:not(:disabled){transform:none}
.nd-tray-slot{border-color:#d4ddc626;border-radius:3px;background:none}
.nd-tray-remove{background:#0e1c13;border-radius:0}
.nd-shuffle{font-size:12px}
.draw-page .nd-hold,.draw-page .nd-hint{font-size:11px;line-height:18px}
.draw-page .nocte-magic-deck .nd-hold,.draw-page .nocte-magic-deck .nd-hint{color:#b4bea8}
.draw-page .nocte-magic-deck .nd-tray-empty{color:#a5b59f}
.result-heading{padding:30px 26px 24px}
.result-heading h1{font-family:'Pretendard Variable',sans-serif;font-size:26px;line-height:36px;font-weight:550;letter-spacing:-.6px;margin:0 0 22px}
.result-question{font-size:14px;line-height:24px;border-left-width:1px}
.example-label{border-radius:3px;font-size:10px;padding:3px 7px}
.result-list{padding:0 26px}
.result-position{font-size:13px;margin-bottom:20px}
.result-position span{font-family:'Pretendard Variable',sans-serif;font-size:12px;letter-spacing:1px}
.card-art-button{border-radius:4px;border-color:var(--line)}
.card-art-button>span{position:static;font-size:11px;line-height:18px;padding:10px;background:#0c1c13ed}
.result-card-copy h2{font-family:'Pretendard Variable',sans-serif;font-size:23px;line-height:32px;font-weight:550;letter-spacing:-.5px;flex-wrap:wrap;gap:5px 12px}
.result-card-copy>p{font-size:14px;line-height:25px;letter-spacing:-.15px}
.closing-card{margin:0 26px 24px;padding:26px 0;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:none}
.closing-card>svg{width:24px;height:24px}
.closing-card h2{font-size:21px;line-height:31px;font-weight:500;letter-spacing:-.2px}
.closing-card p{font-size:14px;line-height:24px}
.result-actions{padding:0 26px;gap:10px}
.result-note{margin:0 26px 24px;font-size:11px;line-height:19px}
.daily-page h1{font-family:var(--serif);font-size:25px;line-height:36px;font-weight:500;letter-spacing:-.2px}
.daily-card{border-radius:4px;box-shadow:0 10px 28px #0002}
.daily-page h2{font-size:25px;font-weight:500;letter-spacing:-.3px}
.daily-message{font-size:14px;line-height:25px}
.utility-heading h1,.search-page>h1,.ask-page>h1{font-size:26px;line-height:36px;font-weight:550;letter-spacing:-.6px}
.utility-heading>p:last-child,.ask-page>p:not(.eyebrow){font-size:14px;line-height:24px}
.search-field,.saved-list article,.record-list article{border-radius:var(--control-radius);box-shadow:none;background:var(--panel);border-color:var(--line)}
.library-tabs button{font-size:14px;font-weight:450}
.library-tabs button[aria-selected=true]{font-weight:550;border-bottom-width:1px}
.record-open h2{font-size:17px;line-height:26px;font-weight:500;letter-spacing:-.3px}
.poster-grid .reading-tile .poster-copy{left:14px;right:12px;bottom:55px;align-items:flex-start}
.poster-grid .reading-tile .poster-copy strong{font-size:22px;line-height:27px}
dialog{border-radius:8px;border-color:var(--line);box-shadow:0 16px 48px #0004}
dialog::backdrop{background:#000b;backdrop-filter:none}
.sheet-header{padding:16px 12px 12px 23px;border-bottom:1px solid var(--line)}
.sheet-header h2{font-size:18px;font-weight:550;letter-spacing:-.3px}
.menu-list>button{font-size:14px;min-height:52px}
.menu-list button[role=switch]>span{border-radius:3px;background:var(--panel2);font-size:11px;padding:4px 8px}
.prose p{font-size:14px;line-height:25px}
.prose h3{font-size:16px;font-weight:550}
#artDialog{border-radius:6px}
@media(hover:hover){
  .dialogue-responses button:hover,.choice-list button:hover{transform:none;background:#cbd4c64d}
  .ornate-button:hover,.button.primary:hover,.button.white:hover{background:#f4f3e8}
  .pill-button:hover:not(:disabled){background:#375540}
  :root[data-theme=light] .button.primary:hover{background:#375540}
}
@media(max-width:359px){
  .home-header{height:80px;padding:24px 12px 10px 18px}
  .brand{font-size:26px}.category-bar{padding-inline:16px;gap:5px}
  .home-main{padding-inline:16px}.hero-carousel{margin-inline:-16px}
  .hero-rail{padding-inline:16px;scroll-padding-left:16px}.hero-card{flex-basis:calc(var(--shell) - 32px)}
  .poster-copy{left:20px;bottom:27px}.poster-copy strong{font-size:29px;letter-spacing:-.8px}
  .reading-tile .poster-copy strong{font-size:22px}.poster-grid .reading-tile .poster-copy strong{font-size:19px;line-height:24px}
  .reading-tile .poster-copy{left:14px}.bottom-nav{padding-inline:6px}
  .detail-hero{min-height:610px}.detail-hero-copy{left:22px}.detail-hero h1{font-size:33px;letter-spacing:-1px}
  .detail-teaser{left:22px;right:22px}.detail-intro,.chapter-section,.faq-section{padding-inline:23px}
  .flow-content{padding-inline:12px}.conversation-frame .frame-inner{padding:29px 21px 20px}
  .conversation-frame h1,.dialogue-frame h1,.choice-frame h1{font-size:19px;line-height:29px}
  .dialogue-line,.dialogue-responses button,.choice-list button{font-size:13px;line-height:22px}
  .flow-page .topbar>span{font-size:12px}.dialogue-frame .name-line{grid-template-columns:1fr}
}
@media(min-width:768px){.bottom-nav{max-width:440px}.conversation-frame{margin-top:260px}.conversation-frame .frame-inner{padding-top:33px;padding-bottom:24px}.home-header{height:92px;padding-top:30px}}
@media(min-width:1024px){.app-shell{border:0}.hero-carousel .carousel-arrow{opacity:0}.hero-carousel:hover .carousel-arrow{opacity:1}}
@media(max-height:720px){.conversation-frame{margin-top:160px}.conversation-frame .frame-inner{padding-top:29px;padding-bottom:20px}.conversation-frame h1{margin-bottom:11px}.dialogue-line{margin-bottom:16px}}
@media(prefers-reduced-motion:reduce){.dialogue-responses button,.choice-list button,.button,.pill-button,.ornate-button{transition:none!important}}
:root[data-motion=reduce] :is(.dialogue-responses button,.choice-list button,.button,.pill-button,.ornate-button){transition:none!important}
