/* Layout: one phone-width stationery column; lime envelope bands, cream letter paper, knitted stitch accents */
:root{
  --lime:#CBE5A6; --lime-2:#D9EDBD; --pink:#F8C8DA; --stitch:#E98FB4;
  --ink:#3F352C; --quiet:#5A4E42; --paper:#FFFDF9; --cream:#F1F3EC; --desk:#ECE6D8;
  --line:#B9AF9F; --needle:#2A2420;
  --wood:#2F7F6B; --fire:#B5583A; --earth:#74793F; --metal:#62666A; --water:#4F74A8; --bad:#B5583A;
  --f-display:'MaruBuri','Nanum Myeongjo',serif; --f-brand:'Bagel Fat One','MaruBuri',sans-serif; --f-body:'Presentation','Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  --f-mono:'Presentation','Courier Prime',ui-monospace,monospace;
  color-scheme:light;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{--screen-bg:var(--lime)}
html,body{background:var(--screen-bg,var(--paper));color:var(--ink)}
body{font-family:var(--f-body);font-size:15px;line-height:1.7}
.app{max-width:440px;margin:0 auto;min-height:100vh;min-height:100dvh;background:var(--screen-bg,var(--paper));position:relative;overflow:hidden}
.pad{padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
h1,h2,h3{font-family:var(--f-display);font-weight:700;margin:0;text-wrap:balance;letter-spacing:-.02em}
p{margin:0}
.mono{font-family:var(--f-mono)}
.label{font-family:var(--f-mono);font-size:12px;font-weight:700}
.muted{color:var(--quiet)}
button,input,select{font:inherit;color:inherit}
:focus-visible{outline:2.5px solid var(--stitch);outline-offset:2px}
.btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;border-radius:999px;border:1.5px solid var(--ink);background:var(--pink);font-family:var(--f-display);font-weight:700;font-size:16px;cursor:pointer}
a.btn{color:var(--ink);text-decoration:none;text-align:center} /* 2026-11-16 링크로 만든 버튼이 파란 밑줄 글씨로 보이던 것 */
.btn.lime{background:var(--lime)}
.btn.ghost{background:transparent}
.btn[disabled]{opacity:.55;cursor:default}
.topbar{height:60px;display:flex;align-items:center;justify-content:space-between;background:var(--lime)}
/* 2026-11-16 로고는 오른쪽 글자 길이와 상관없이 늘 정가운데 */
.topbar{position:relative}.topbar .brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.topbar>:last-child{max-width:calc(50% - 70px);text-align:right;line-height:1.3}
.topbar .brand{font-family:var(--f-brand);font-weight:400;font-size:20px;background:none;border:0;padding:2px 6px;color:inherit;cursor:pointer;line-height:0}
.brandlogo{display:block;height:36px;width:auto}
.iconbtn{width:44px;height:44px;margin-left:-12px;border:0;background:none;display:flex;align-items:center;justify-content:center;cursor:pointer}
.knit{background:repeating-conic-gradient(var(--stitch) 0 25%,transparent 0 50%) 0 0/14px 24px}
.dots{border-bottom:1.5px dotted #5E6266}
.card{background:var(--cream);border-radius:16px;padding:14px 16px}
.stack{display:flex;flex-direction:column}
.g8{gap:8px}.g12{gap:12px}.g16{gap:16px}.g20{gap:20px}.g24{gap:24px}
section.block{display:flex;flex-direction:column;gap:14px;padding-bottom:34px;margin-bottom:6px}
.secic{width:30px;height:auto;vertical-align:-8px;margin-right:6px;transform:rotate(-6deg)}
.restcard{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:26px 16px;margin-block:6px 18px;border-radius:20px;background:var(--cream);border:1.5px dashed rgba(63,53,44,.3)}.restcard img{width:44px;height:auto}.restcard b{font-family:var(--f-display);font-size:16px}.restcard span{font-size:13px;color:var(--quiet);word-break:keep-all}
.month.hot{background:#FBE3EF;border-radius:12px;padding:8px 10px;margin-inline:-10px}.month.hot b{color:#B5583A}.month:not(.hot){opacity:.82}.month .peak{display:block;font-style:normal;font-family:var(--f-mono);font-size:9.5px;line-height:1.3;color:#fff;background:#C0623F;border-radius:6px;padding:1px 3px;margin-top:3px;text-align:center}

section.block.line{border-bottom:2px dashed #E7A6C6}
.sec-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.sec-head h2{font-size:18px}
.tag{font-family:var(--f-mono);font-size:11px;color:var(--quiet);white-space:nowrap}

/* intro */
.flap{height:146px;background:var(--lime-2);border-radius:0 0 50% 50%/0 0 56px 56px;box-shadow:0 3px 0 rgba(63,53,44,.12);display:flex;flex-direction:column;align-items:center;justify-content:center;padding-bottom:14px;gap:2px}
.flap .eyebrow{font-family:var(--f-mono);font-weight:700;letter-spacing:.2em;font-size:11px}

.intro .lede{text-align:center;font-family:var(--f-display);font-size:16px;line-height:1.7;margin:4px 0 0;color:var(--ink);text-wrap:balance}
.intro .lede b{font-weight:700}
.bizfoot{padding-block:18px 26px;border-top:1.5px dotted rgba(63,53,44,.35);font-size:11.5px;line-height:1.7;color:var(--quiet)}
.bizfoot nav{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:6px}.bizfoot a{color:var(--ink);text-decoration:none;font-weight:400}.bizfoot a b{font-weight:400}
.bizfoot p{margin:0;word-break:keep-all}
.shopsoon{padding-block:18px;border-top:1.5px dotted rgba(63,53,44,.35);display:flex;flex-direction:column;gap:6px;text-align:center}.shopsoon .mono{font-size:11px;letter-spacing:.12em;color:var(--quiet)}.shopsoon p{margin:0;font-size:14px;line-height:1.7;word-break:keep-all}.shopres{background:var(--cream,#F1F3EC);border:1.5px dashed rgba(63,53,44,.45);border-radius:18px;padding:18px 16px;margin-block:4px 6px}.shopres p{font-size:16px}.knithouse{display:block;width:132px;max-width:60%;height:auto;margin:4px auto 2px}.shopres .sub{font-size:12px;color:var(--quiet);word-break:keep-all}
.inq-cats{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.inq-cats button{border:1.5px solid var(--ink);background:#fff;border-radius:999px;padding:7px 12px;font-size:13.5px;cursor:pointer;color:var(--ink)}
.inq-cats button[aria-pressed=true]{background:var(--pink)}
.tarea{width:100%;border:1.5px solid var(--ink);border-radius:12px;padding:10px 12px;font:inherit;font-size:15px;line-height:1.6;background:#fff;resize:vertical}
.inqitem{background:#fff;border:1.5px solid var(--ink);border-radius:14px;padding:12px 14px}
.inqitem summary{list-style:none;cursor:pointer;display:flex;flex-direction:column;gap:4px}
.inqitem summary::-webkit-details-marker{display:none}
.inqst{font-size:11px;padding:2px 8px;border-radius:999px;border:1.5px solid var(--ink);white-space:nowrap}
.inqst.done{background:var(--lime)}
.inqans{margin-top:10px;background:var(--cream);border-radius:10px;padding:10px 12px;font-size:14px;line-height:1.7;white-space:pre-wrap}
.manifesto{word-break:keep-all;display:flex;flex-direction:column;gap:8px;padding:18px;border-radius:18px;background:var(--cream);border:1.5px dashed var(--ink)}
.manifesto b{font-family:var(--f-display);font-size:17px;line-height:1.5;text-wrap:balance}
.manifesto p{font-size:14px;line-height:1.75}

.flap h1{font-family:var(--f-brand);font-weight:400;font-size:44px;line-height:1.1;letter-spacing:-.01em}
.flap .tagline{font-size:13px;letter-spacing:-.01em;margin-top:2px}
.intro{background:var(--lime);min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;position:relative}
.sigtag{position:absolute;top:121px;left:50%;width:200px;height:50px;transform:translateX(-50%) rotate(-2.5deg);pointer-events:none;filter:drop-shadow(0 2px 0 rgba(63,53,44,.14))}
.cats{display:flex;flex-direction:column}
.cat{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;background:none;border:0;border-bottom:1.5px dotted #5E6266;font-family:var(--f-mono);font-size:14px;cursor:pointer;text-align:left;padding:0 2px}
.cat .dot{width:11px;height:11px;border-radius:50%;border:1.5px solid var(--ink);flex-shrink:0}
.cat[aria-pressed="true"] .dot{background:var(--ink)}

/* input */
.paper{background:var(--paper);border-radius:20px 20px 0 0;margin:-36px 12px 0;padding:22px 20px 28px;position:relative}
.field{display:flex;flex-direction:column;gap:4px}
.field-row{display:flex;justify-content:space-between;align-items:center;gap:8px}
.field input[type=date],.field input[type=time],.field input.dtext,.field input.ttext{height:46px;border:0;border-bottom:1.5px dotted #5E6266;background:transparent;font-size:16px;padding:0 2px;width:100%;min-width:0}
.field input:disabled{opacity:.4}
.err{color:var(--bad);font-size:13px;line-height:1.5}
.seg{display:flex;gap:2px;border:1.5px solid var(--ink);border-radius:999px;padding:2px}
.seg button{border:0;border-radius:999px;padding:3px 11px;font-size:12px;background:transparent;cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--ink);color:var(--paper)}
.pills{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pill{min-height:44px;border-radius:999px;border:1.5px solid var(--ink);background:transparent;cursor:pointer}
.pill[aria-pressed="true"]{background:var(--pink)}
.check{display:flex;gap:8px;align-items:flex-start;font-size:13px;cursor:pointer}
.check input{width:17px;height:17px;margin:3px 0 0;accent-color:var(--ink);flex-shrink:0}

/* loading */
.loading{background:var(--lime);min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-block:16px;gap:12px;overflow:hidden}
.knitbox{display:flex;flex-direction:column;align-items:center;height:168px;flex-shrink:0}
.lbar{width:72%;max-width:300px;height:8px;border-radius:99px;background:rgba(63,53,44,.15);overflow:hidden}#load-bar{height:100%;width:0;background:var(--stitch);transition:width .3s}
.stepnow{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;min-height:64px}.stepnow b{font-family:var(--f-mono);font-size:14px}.stepnow small{font-size:13px}
.dots5{display:flex;gap:6px}.dots5 i{width:8px;height:8px;border-radius:50%;border:1.5px solid var(--ink);display:block}.dots5 i.on{background:var(--ink)}
.load-note{font-family:var(--f-display);font-size:16px;font-weight:700;text-align:center;background:var(--paper);border:1.5px solid var(--ink);border-radius:999px;padding:10px 20px;max-width:100%}
.gloss u.pk{text-decoration:underline;text-decoration-color:var(--stitch);text-decoration-thickness:2px;text-underline-offset:3px}
.gloss{background:var(--cream);border-radius:14px;padding:12px 14px}.gloss summary{cursor:pointer;font-family:var(--f-mono);font-size:12px;font-weight:700;min-height:28px;display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none}
/* 2026-11-16 접고 펴는 버튼임을 보이게: 오른쪽에 '접기 ▴' / '펼쳐 보기 ▾' */
.gloss summary::-webkit-details-marker{display:none}.gloss summary::after{content:'펼쳐 보기 ▾';flex:none;font-family:var(--f-body,inherit);font-size:12px;font-weight:600;color:#5A4E42;background:#FFFDF6;border:1px solid rgba(63,53,44,.25);border-radius:999px;padding:3px 10px}.gloss[open] summary::after{content:'접기 ▴'}
.glist{margin:0;padding-left:16px;display:flex;flex-direction:column;gap:2px}
.needles{animation:sway 1.2s ease-in-out infinite;transform-origin:50% 40%}
@keyframes sway{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}
.grow{width:112px;margin-top:-24px;height:86px}
.steps{width:100%;display:flex;flex-direction:column}
.step{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 2px;border-bottom:1.5px dotted #5E6266;opacity:.35;transition:opacity .4s}
.step.on{opacity:1}
.step b{font-family:var(--f-mono);font-size:13px;display:block}
.step small{font-size:12px}
.step .ok{font-family:var(--f-mono);font-size:12px;visibility:hidden}
.step.done .ok{visibility:visible}

/* result */
.unroll{position:absolute;inset:0;z-index:20;background:var(--lime);display:flex;flex-direction:column;align-items:center;padding-top:150px;pointer-events:none;animation:out 2s cubic-bezier(.6,0,.3,1) forwards}
.unroll .grow2{width:112px;margin-top:-24px;animation:knitdown 2s cubic-bezier(.4,0,.2,1) forwards}
@keyframes knitdown{0%{height:110px}55%,100%{height:720px}}
@keyframes out{0%,62%{transform:translateY(0)}100%{transform:translateY(-105%)}}
.reveal{animation:pop .6s 1.6s both}
@keyframes pop{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.chart{border:1.5px solid var(--ink);border-radius:14px;overflow:hidden;background:#fff}
.chart .row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));text-align:center}
.chart .head{background:var(--ink);color:var(--paper);font-family:var(--f-mono);font-size:12px}
.chart .head span{padding:7px 0}
.chart .god{font-family:var(--f-mono);font-size:11px;color:var(--quiet)}
.chart .god span{padding:5px 0}
.chart .glyphs{border-top:1px dotted var(--line)}
.chart .glyphs span{padding:8px 0;display:flex;flex-direction:column;align-items:center}
.chart .glyphs b{font-family:var(--f-display);font-size:26px;line-height:1.2}
.chart .glyphs small{font-size:11px}
.chart .me{background:#FBE5DF}
.el-목{color:var(--wood)}.el-화{color:var(--fire)}.el-토{color:var(--earth)}.el-금{color:var(--metal)}.el-수{color:var(--water)}
.oneline{background:var(--lime);border-radius:18px;padding:18px}
.oneline b{font-family:var(--f-display);font-size:20px;line-height:1.4;display:block}
.nums{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
.num{border:1.5px solid var(--ink);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:3px}
.num b{font-family:var(--f-display);font-size:30px;line-height:1}
.veil{filter:blur(6px);user-select:none;pointer-events:none}
.veilwrap{position:relative;display:flex;flex-direction:column;gap:12px}
.veilbadge{position:sticky;bottom:140px;align-self:center;display:flex;align-items:center;gap:8px;background:var(--paper);border:1.5px solid var(--ink);border-radius:999px;padding:8px 14px;font-family:var(--f-mono);font-size:12px;z-index:2;margin-top:-4px}
.sheet-bg{position:fixed;inset:0;background:rgba(42,36,32,.45);z-index:50;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:var(--paper);width:100%;max-width:440px;border-radius:22px 22px 0 0;padding-block:24px calc(24px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px;max-height:92vh;overflow-y:auto;animation:sheetup .25s ease-out}
@keyframes sheetup{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
.btn.kakao{background:#FEE500;color:rgba(0,0,0,.85);border-color:#FEE500;gap:8px}
.tfield{height:46px;border:0;border-bottom:1.5px dotted #5E6266;background:transparent;font-size:16px;padding:0 2px;width:100%}
.linkbtn{background:none;border:0;font-family:var(--f-mono);font-size:12px;text-decoration:underline;cursor:pointer;min-height:40px;padding:0 6px}
.boxitem{display:flex;flex-direction:column;gap:6px;text-align:left;width:100%;background:#fff;border:1.5px solid var(--ink);border-radius:14px;padding:14px 16px;cursor:pointer}
.wish{width:100%;border:1.5px solid var(--ink);border-radius:12px;background:#fff;padding:10px 12px;font-size:15px;line-height:1.6;resize:vertical;min-height:84px}
.unveil{animation:unveil 1.6s ease-out both}
@keyframes unveil{from{filter:blur(6px);opacity:.5}to{filter:none;opacity:1}}
.kprog{position:sticky;top:env(safe-area-inset-top,0px);z-index:6;background:var(--ink);color:var(--paper);display:flex;flex-direction:column;gap:6px;padding-block:10px;font-family:var(--f-mono);font-size:13px}
.kprog .track{height:6px;border-radius:99px;background:rgba(251,248,241,.2);overflow:hidden}.kprog .fill{height:100%;width:0;background:var(--pink);transition:width .4s}
.veil-rest{filter:blur(4.5px);user-select:none;opacity:.85}
.consult{border:1.5px solid var(--ink);border-radius:20px;overflow:hidden;background:var(--paper)}
.consult-head{background:var(--lime);padding:16px 18px;display:flex;flex-direction:column;gap:4px}
.consult-body{padding:16px 18px 20px}
.letter{background:#FBE5DF;border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:8px}.letter p{font-family:var(--f-display);font-size:15px;line-height:1.85}
.cats{display:flex;flex-direction:column;gap:7px}
.freepill{font-family:var(--f-mono);font-weight:700;font-size:11.5px;background:var(--pink);border:1.5px solid var(--ink);border-radius:999px;padding:3px 10px;white-space:nowrap}
.catq{font-family:var(--f-display);font-weight:700;font-size:17px;display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}.catq small{font-family:var(--f-body);font-weight:400;font-size:12px}
.cat2{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;align-items:start;text-align:left;width:100%;background:rgba(251,248,241,.45);border:1.5px solid var(--ink);border-radius:14px;padding:9px 12px;cursor:pointer;transition:background .15s,box-shadow .15s}
.cat2[aria-pressed="true"]{background:var(--paper);box-shadow:0 3px 0 var(--ink)}
.cat2[aria-disabled="true"]{opacity:.5;cursor:default;border-style:dashed}
/* 2026-11-11 대표 확정 A안: 실선+그림자 대신 안쪽 홈질(바느질 점선) 한 줄 */
.cat2,.cat2.feat{border:none!important;box-shadow:none!important;position:relative;background:rgba(251,248,241,.7)}
.cat2::after{content:"";position:absolute;inset:5px;border:2px dashed #BFAE98;border-radius:10px;pointer-events:none}
.cat2[aria-pressed="true"]{background:#FFFDF9}.cat2[aria-pressed="true"]::after{border-color:#D9654A}
.cat2[aria-disabled="true"]::after{border-style:dotted}
.cat2 .cpatch{width:48px;height:auto;align-self:center;transform:rotate(-6deg)}.cat2[aria-disabled="true"] .cpatch{opacity:.55}
.cat2 .rd{width:18px;height:18px;border-radius:50%;border:1.5px solid var(--ink);margin-top:3px;background:var(--paper);display:flex;align-items:center;justify-content:center}
.cat2[aria-pressed="true"] .rd::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--stitch)}
.cat2 .t{font-family:var(--f-display);font-weight:700;font-size:16px}.cat2 .d{font-size:12.5px;line-height:1.45}
.chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}.chips span{font-size:11px;font-family:var(--f-mono);padding:2px 8px;border-radius:999px;background:var(--lime-2);border:1px solid rgba(63,53,44,.35)}
@media (max-height:720px){.flap{height:124px}.flap h1{font-size:38px}.flap .tagline{font-size:12px}.intro .lede{font-size:14px;line-height:1.6;margin-top:40px!important}.intro .cats{margin-top:20px!important}.sigtag{top:99px}.cat2 .d{display:none}.intro .knitpic{display:none}}
.scrollnav{position:fixed;right:max(12px,calc((100vw - 440px) / 2 + 12px),env(safe-area-inset-right,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:30;display:flex;flex-direction:column;gap:8px}
.scrollnav.raised{bottom:calc(132px + env(safe-area-inset-bottom,0px))}
.scrollnav button{width:44px;height:44px;border-radius:50%;border:1.5px solid var(--ink);background:var(--paper);box-shadow:0 2px 0 var(--ink);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.sharegrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}
.sharegrid>*{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;cursor:pointer;font-size:12px;color:var(--ink);text-decoration:none;padding:4px 0;min-height:44px}
.sharegrid .ic{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-family:var(--f-display);font-weight:700;font-size:18px;border:1px solid rgba(63,53,44,.2)}
.kbar{width:220px;max-width:85%;height:30px;border:1.5px solid var(--ink);border-radius:10px;overflow:hidden;background:var(--paper);position:relative}
.kbar .kfill{height:100%;width:0;background:repeating-conic-gradient(var(--stitch) 0 25%,transparent 0 50%) 0 0/10px 15px;border-right:2.5px solid var(--ink);transition:width .35s ease-out}
.locked{position:relative}
.locked p{filter:blur(6px);user-select:none}
.knotbadge{position:absolute;left:0;right:0;top:34px;bottom:18px;display:flex;align-items:center;justify-content:center}
.knotbadge span{display:flex;align-items:center;gap:8px;background:var(--paper);border:1.5px solid var(--ink);border-radius:999px;padding:8px 14px;font-family:var(--f-mono);font-size:12px}
.toc div{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dotted var(--line)}
.toc .n{font-family:var(--f-mono);font-size:12px;width:20px}
.dark{background:var(--ink);color:var(--paper);border-radius:18px;padding:20px 18px;display:flex;flex-direction:column;gap:12px}
.dark .chk{color:var(--lime)}
.paybar{position:sticky;bottom:0;background:var(--paper);border-top:1.5px dotted #5E6266;padding-block:12px calc(20px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:10px;z-index:5}
.paysheet{border:1.5px solid var(--ink);border-radius:16px;padding:16px;background:#fff;display:flex;flex-direction:column;gap:10px}
.bar{height:14px;border-radius:3px}
.yarnline{display:flex;align-items:center;min-width:40px}.yarnline .strand{flex:1;height:7px;border-radius:4px;margin-right:-3px}.month.hot .yarnline .strand{height:9px}.yarnline svg{flex-shrink:0;filter:drop-shadow(0 1px 0 rgba(63,53,44,.18))}
.month{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px}
.month b{font-family:var(--f-display);font-size:14px;line-height:20px}
.bubble{background:var(--lime);border-radius:16px 16px 16px 4px;padding:12px 14px;font-size:14px;line-height:1.6}
.bubble.no{background:var(--cream);text-decoration:line-through;text-decoration-color:var(--bad)}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.compat{border:1.5px solid var(--ink);border-radius:14px;overflow:hidden;background:#fff}
.compat div{padding:14px 16px;border-bottom:1px dotted var(--line)}
.compat div:last-child{border-bottom:0}
.story{width:280px;max-width:100%;margin:0 auto;background:var(--lime);border-radius:22px;padding:26px 22px 18px;display:flex;flex-direction:column;align-items:center;gap:12px;position:relative;overflow:hidden;box-shadow:0 6px 0 rgba(63,53,44,.15)}
.story .pair{display:flex;align-items:center;gap:10px}.story .pairlab{display:grid;grid-template-columns:64px 44px 64px;gap:10px;margin-top:-6px;font-family:var(--f-mono);font-size:11px;text-align:center;white-space:nowrap}
.story .kdisc{width:64px;height:64px;display:block}.story .kheart{display:flex;align-items:center;justify-content:center;gap:0}.story .kheart img{width:40px;height:40px;margin-inline:-3px}
.story .disc{width:56px;height:56px;border-radius:50%;background:var(--paper);border:1.5px solid var(--ink);display:flex;align-items:center;justify-content:center;font-family:var(--f-display);font-weight:700;font-size:22px}
.story ul{list-style:none;margin:0;padding:0;width:100%;font-family:var(--f-mono);font-size:12px}
.story li{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1.5px dotted var(--ink)}
.note{font-size:12px;color:var(--quiet);text-align:center;line-height:1.6}
.thinking{font-family:var(--f-mono);font-size:12px;text-align:center}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.unroll{display:none}}
.consent{display:flex;flex-direction:column;gap:8px;border:1.5px solid var(--ink);border-radius:14px;padding:12px 14px;background:#fff}
.consent .consent-all{font-size:14px;padding-bottom:8px;border-bottom:1px dashed #D9D1C2}
.consent .consent-list{display:flex;flex-direction:column;gap:6px}
.consent .check a{color:inherit;text-decoration:underline;text-underline-offset:2px}

/* 사업자 정보: 회사·고객센터 두 묶음, 숫자는 고정폭. 휴대폰이 전화·메일에 자동으로 밑줄·링크를 거는 것도 막아요. */
.biz-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px 28px;margin-top:10px}
.biz-grid p{margin:4px 0 0;line-height:1.8;word-break:keep-all}
.biz-h{font-family:'Presentation',sans-serif;font-weight:400;color:var(--ink);font-size:1.08em}
.biz-n{font-family:'Presentation',monospace}
.biz-note{opacity:.8}.biz-strong{font-weight:inherit;text-decoration:none}
.biz-grid a,.biz-grid a[x-apple-data-detectors]{color:inherit!important;text-decoration:none!important;font:inherit!important;pointer-events:none}

/* 오픈 예고 가격 티켓: 왼쪽 절취 칸 + 점선 + 위아래 반원 홈 + 뜨개 띠 */
.optkt{position:relative;display:grid;grid-template-columns:84px minmax(0,1fr);border:1.5px solid var(--ink);border-radius:16px;background:var(--lime-2);box-shadow:0 3px 0 var(--ink);word-break:keep-all}
.optkt::before,.optkt::after{content:"";position:absolute;left:84px;width:18px;height:18px;border-radius:50%;background:var(--paper);border:1.5px solid var(--ink);transform:translateX(-50%)}
.optkt::before{top:-10.5px;clip-path:inset(50% -3px -3px -3px)}
.optkt::after{bottom:-10.5px;clip-path:inset(-3px -3px 50% -3px)}
.optkt .stub{border-right:2px dashed var(--ink);padding:14px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center}
.optkt .stub .mono{font-size:10px;letter-spacing:.14em}
.optkt .stub b{font-family:var(--f-display);font-size:19px;line-height:1.2}
.optkt .main{padding:13px 14px 13px 18px;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.optkt .tag{background:var(--ink);color:var(--paper);font-size:11.5px;border-radius:999px;padding:3px 10px}
.optkt .big{font-family:var(--f-display);font-weight:700;font-size:30px;line-height:1.1;letter-spacing:-.02em}
.optkt .big small{font-size:14px;font-weight:700;margin-left:2px}
.optkt .note{font-size:12.5px;line-height:1.5;color:var(--quiet)}
.optkt.dap{background:#E4DAF2}

/* 오행 털실 막대(yarnBarsHTML) */
.ybars{background:var(--cream);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.yb-t{font-family:var(--f-mono);font-size:12px;font-weight:700;margin-bottom:2px}
.yb-row{display:grid;grid-template-columns:58px minmax(0,1fr) 96px;gap:8px;align-items:center;min-height:26px}
.yb-k{display:flex;align-items:baseline;gap:5px;white-space:nowrap}.yb-k b{font-family:var(--f-display);font-size:16px}.yb-k small{font-size:11px;color:var(--quiet)}
.yb-track{position:relative;display:flex;align-items:center;height:24px;background:linear-gradient(transparent 11px,rgba(63,53,44,.1) 11px,rgba(63,53,44,.1) 13px,transparent 13px)}
.yb-strand{border-radius:5px;margin-right:-3px;min-width:4px;box-shadow:0 1px 0 rgba(63,53,44,.18)}
.yb-ball{flex-shrink:0;filter:drop-shadow(0 1px 0 rgba(63,53,44,.25))}
.yb-empty{width:14px;height:14px;border-radius:50%;border:1.5px dashed #B9AF9F;background:var(--cream)}
.yb-n{display:flex;align-items:center;gap:5px;white-space:nowrap}
.yb-n b{font-family:var(--f-mono);font-size:13px;min-width:10px}
.zero .yb-n b{color:#8A7F70;font-weight:400}
.yb-n i{font-style:normal;font-size:11px;font-weight:700;line-height:1;height:18px;display:inline-flex;align-items:center;border-radius:999px;padding:0 8px;border:1.5px solid}
.yb-up{background:#FBE3EF;color:#B5583A;border-color:#B5583A}
.yb-dn{background:#EEEAFB;color:#5A48A8;border-color:#5A48A8}
.yb-no{background:#F1F3EC;color:#8A7F70;border-color:#B9AF9F!important;border-style:dashed!important}
@media (max-width:360px){.yb-row{grid-template-columns:44px minmax(0,1fr) 88px}.yb-k small{display:none}}
/* 넓은 화면(PC)에서는 앱 바깥을 뜨개 코스터 아래 깅엄 천처럼 */
/* 넓은 화면(PC)에서는 앱 바깥을 옅은 겉뜨기(V) 뜨개 바탕으로 */
@media (min-width:520px){html,body{background-color:#FFFDF9;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14'%3E%3Cpath d='M4 2Q6.5 9 10 12Q13.5 9 16 2' fill='none' stroke='%23CBE5A6' stroke-width='2' stroke-linecap='round' opacity='.6'/%3E%3C/svg%3E");background-size:20px 14px}}

/* 신년 첫 장 카드: 2027년의 나를 이모지로 표현하면? */
.nyc{position:relative;overflow:hidden;background:#FFFDF9;border-radius:30px;padding:26px 22px 20px;display:flex;flex-direction:column;align-items:center;box-shadow:0 1px 0 rgba(63,53,44,.06),0 14px 34px -18px rgba(63,53,44,.35)}
.nyc::before{content:'';position:absolute;left:-10%;right:-10%;top:0;height:178px;background:#E4F1D2;border-radius:0 0 50% 50%/0 0 46px 46px;z-index:0}
.nyc>*{position:relative;z-index:1}
.nyc-kick{font-size:13px;font-weight:700;color:#2F7F6B}
.nyc-badge{width:200px;height:212px;margin-top:14px}
.nyc-scene{margin-top:12px;font-size:12.5px;font-weight:700;color:#B5583A}
.nyc-name{margin-top:6px;font:700 24px/1.3 var(--f-display);color:#2A2420;letter-spacing:-.02em;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center}
.nyc-name small{font:700 16px/1.35 var(--f-display);color:#5A4E42;white-space:nowrap}
.nyc-line{margin:8px 0 0;text-align:center;font-size:14.5px;line-height:1.6;word-break:keep-all;color:#6A5F55}
.nyc-tags{width:100%;margin-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:6px}.nyc-tags span{background:#F8C8DA;border:1.3px solid #2A2420;border-radius:999px;padding:5px 0;text-align:center;font-size:13px;font-weight:700}
.nyc-stats{width:100%;margin-top:14px;display:grid;grid-template-columns:1fr 1px 1fr;align-items:center;background:#F1F3EC;border-radius:16px;padding:11px 0}
.nyc-stats div{display:flex;flex-direction:column;align-items:center;gap:2px}.nyc-stats span{font-size:12px;color:#8A7F74}.nyc-stats b{font:700 18px var(--f-display);color:#2A2420}.nyc-stats i{height:28px;background:#DDD8CC}
.nyc-stats em{display:inline-block;width:14px;height:14px;border-radius:50%;margin-right:6px;vertical-align:-1px;border:1.5px solid #FFFDF9;box-shadow:0 0 0 1px rgba(42,36,32,.25)}
.nyc-btns{width:100%;margin-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.nyc-btns .sv-btn{min-height:46px;font-size:14px}
.nyc-note{margin-top:8px;font-size:12.5px;color:#8A7F74}

/* 첫 화면 상품 카드 가격 줄 */
.cat2 .cprice{display:inline-block;align-self:flex-start;margin-top:4px;font-size:12px;font-weight:700;color:#5A4E42}
.cat2 .cprice.free{color:#2F7F6B}

/* 첫 화면: 평생 타래는 대표 상품으로 강조 */
/* 2026-11-12 평생 카드: 초록 바느질 테두리는 두고, 흰 바탕은 고른 카드만 */
.cat2.feat::after{border-color:#2F7F6B}.cat2.feat .rd{border-color:#2F7F6B}
.featpill{font-size:11px;font-weight:700;color:#FFFDF9;background:#2F7F6B;border-radius:999px;padding:2px 9px;white-space:nowrap}

/* 카드 가격: 정가 줄긋기 → 지금 가격(굵게) → 짧은 안내 */
.cat2 .cprice{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.cat2 .cprice s{font-size:12px;font-weight:400;color:#A0968B}
.cat2 .cprice b{font-size:15px;color:#2A2420}
.cat2 .cprice em{font-style:normal;font-size:11.5px;font-weight:700;color:#B5583A}
.cat2 .cprice.free b{color:#2F7F6B}.cat2 .cprice.free em{color:#5A4E42;font-weight:400}
.featpill.sale{background:#B5583A}
/* 2026-11-23 귀인 타래 첫 화면 카드: 상품 카드(.cat2) 틀·고르기 동그라미 그대로, 노란 점선 테두리, 0원 강조 */
.cat2.ghcat::after{border-color:#E3B23C}
.featpill.ghpill{background:#F6C453;color:#3F352C}
@media (max-height:720px){.cat2.ghcat .d{display:block}} /* 짧은 화면에서도 귀인 타래 한 줄은 보여요 */
.cat2 .cprice.ghfree b{font-size:22px;color:#B5583A;letter-spacing:-.5px}
.cat2 .cprice.ghfree em{color:#5A4E42;font-weight:700}
/* 로그인·결제 창 닫기(X) */
.sheet{position:relative}
.sheet-x{position:absolute;top:14px;right:14px;width:40px;height:40px;border-radius:50%;border:1.5px solid var(--line);background:var(--paper);color:var(--ink);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2}

/* 첫 화면 맨 위 문구: 앞 두 줄은 크게, 아래 두 줄은 한 단계 작게 */
.intro .lede b{font-size:18.5px;line-height:1.55;letter-spacing:-.02em}
.intro .lede{font-size:15px;color:#5A4E42}
.intro .lede b{color:var(--ink)}

/* 첫 화면 뜨개 도안 로고: 로고가 들어오면 머리띠 높이를 맞추고, 아래 뜨개 하트는 숨겨요(로고에 하트가 있어서) */
.flap.knit{height:auto;padding:54px 0 22px}
.flap.knit h1{line-height:0}
.knitlogo{display:block;width:min(300px,80vw);height:auto;filter:drop-shadow(0 3px 0 rgba(63,53,44,.10))}
.flap.knit~.sigtag{display:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* 2026-11-13 대표: 첫 화면 카드 설명 칩은 한 줄로(2줄·1줄 섞여 보기 어려움), 신년 카드 실밥 테두리도 평생과 같은 초록 */
.cat2 .chips{flex-wrap:nowrap;overflow:hidden;gap:4px}.cat2 .chips span{white-space:nowrap;flex:none}
.cat2[data-cat="newyear"]::after{border-color:#2F7F6B}.cat2[data-cat="newyear"] .rd{border-color:#2F7F6B}
/* 2026-11-13 PC QA: 위·아래 이동 버튼이 본문 글자를 가려서, 화면이 넓으면(PC) 본문 칸 바깥 오른쪽에 둬요 */
@media (min-width:600px){.scrollnav{right:calc((100vw - 440px) / 2 - 58px)}}
/* 2026-11-13 대표: 첫 화면 윗부분이 너무 커서 상품이 아래로 밀려요 → 로고·안내 문구를 줄여 연애 타래까지 한 화면에 */
.flap.knit{padding:44px 0 12px}
.knitlogo{width:min(220px,62vw)}
.intro .lede{font-size:13.5px;line-height:1.55}
.intro .lede b{font-size:16px;line-height:1.45}
/* 2026-11-14 대표: 맨 위 문구 네 줄(실타래), 굵게 없이 같은 크기·진한 글자 */
.intro .lede{font-size:15px;line-height:1.55;color:var(--ink);font-weight:400}
/* 2026-11-14 대표: 문구를 위로 당기고 위아래 여백 맞추기(세로 짧은 휴대폰에서 40px 붙던 것) */
@media (max-height:720px){.intro .lede{font-size:15px;line-height:1.6;margin-top:18px!important}.intro .cats{margin-top:18px!important}}
/* 2026-11-14 대표: 마루부리 조금 크고 또렷하게(16.5px·500), '내 편이 되어 주는 사주.'만 굵게(같은 크기) */
.intro .lede,.intro .lede b{font-family:var(--f-display);font-size:16.5px!important;line-height:1.55;letter-spacing:-.02em;color:var(--ink)}
.intro .lede{font-weight:500}.intro .lede b{font-weight:700}
.cat2{padding:7px 12px}
.cat2 .d{font-size:12px;line-height:1.4}
/* 2026-11-13 칩이 점선 실밥에 붙어 보여서 카드 아래 여백 늘리기(에이전트 합의: 칩은 남기기) */
.cat2{padding:9px 14px 14px}
.cat2 .chips{margin-top:5px}
.cat2 .chips span{padding:2px 7px}
/* 2026-11-13 풀이 기다리는 화면 타래 짜는 이미지 */
.knitbox{height:auto}
.ldknit{display:block;width:min(260px,72vw);height:auto;animation:ldsway 2.4s ease-in-out infinite;transform-origin:50% 0}
@keyframes ldsway{0%,100%{transform:rotate(-1.5deg)}50%{transform:rotate(1.5deg)}}
@media (prefers-reduced-motion:reduce){.ldknit{animation:none}}
.cat2 .ccond{display:block;margin-top:3px;font-size:11.5px;line-height:1.5;color:#5A4E42;word-break:keep-all}
.cat2 .ccond b{color:#2F7F6B;font-weight:700}
.cat2 .ccond em.cnext{font-style:normal;font-size:11.5px;font-weight:700;color:#B5583A}

/* 2026-11-14 대표: 가격(4,900원 등)은 모두 빨간색, '오픈 이벤트가 · 12월 1일부터' 문장은 검정 */
.cat2 .cprice b{color:#B5583A}
.cat2 .cprice.free b{color:#2F7F6B}
.cat2 .cprice em{color:#2A2420;font-weight:600}

/* 2026-11-14 '마음에 들 때만 결제': 결제 버튼 위 한 줄 */
.pv-ask{display:block;text-align:center;font-family:var(--f-display);font-weight:700;font-size:14.5px;line-height:1.5;color:var(--ink);margin-bottom:2px;word-break:keep-all}
/* 2026-11-20 두 사람 오행 견주기(나란히 막대·벤다이어그램) */
.pbars{background:var(--cream);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.pb-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12.5px;color:var(--quiet)}
.pb-legend small{font-size:11px}
/* 2026-11-23 대표: 목·화·토·금·수 칸을 또렷하게 나눠요(귀인·연애·재회 공통) */
.pbars{gap:0}
.pb-legend{padding-bottom:8px}
.pb-row{padding:10px 0;border-top:1.5px dashed #D9CFC2}
.pb-dot{display:inline-block;width:18px;height:7px;border-radius:4px;margin-right:6px;vertical-align:1px;background:repeating-linear-gradient(118deg,#6B5D4F 0 3px,#D9CFC2 3px 6px)}
.pb-dot.him{background:#EFEAE2;border:1.5px solid #6B5D4F}
.pb-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:8px;align-items:center}
.pb-k{display:flex;align-items:baseline;gap:4px;white-space:nowrap}.pb-k b{font-family:var(--f-display);font-size:16px}.pb-k small{font-size:11px;color:var(--quiet)}
.pb-two{display:flex;flex-direction:column;gap:4px;min-width:0}
.pb-line{display:flex;align-items:center;gap:6px;height:11px}
.pb-line b{font-family:var(--f-mono);font-size:11.5px;color:#3F352C}
.pb-strand{height:8px;border-radius:5px;box-shadow:0 1px 0 rgba(63,53,44,.18)}
.pb-strand.him{height:6px;border:1.5px solid;box-shadow:none}
.pb-zero{width:8px;height:8px;border-radius:50%;border:1.5px dashed #B9AF9F}
.pb-tag i{font-style:normal;font-size:10.5px;font-weight:700;border:1.2px solid;border-radius:999px;padding:1px 7px;white-space:nowrap}
.pvenn{display:flex;flex-direction:column;gap:10px}
.pvenn svg{width:100%;height:auto;display:block}
.pv-aha{margin:0;border-left:3px solid #B5583A;padding:2px 0 2px 12px;font-size:15.5px;line-height:1.8;word-break:keep-all}
.pv-lock{display:inline-block;font-size:12.5px;color:var(--quiet);background:var(--cream);border-radius:8px;padding:1px 8px}
.pv-nick{text-align:center;font-family:var(--f-display);font-size:17px;font-weight:700;background:#FBE5DF;border-radius:14px;padding:10px 12px;word-break:keep-all}
.pv-nick small{display:block;font-family:var(--f-body,inherit);font-weight:400;font-size:12px;color:var(--quiet);margin-top:2px}
/* 2026-11-20 두 사람 사주 캐릭터 나란히 */
.pchars{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:start;gap:4px;background:#FFFDF9;border:1.5px solid #3F352C;border-radius:20px;padding:14px 10px 12px}
.pc-one{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;text-align:center}
.pc-who{font-size:13px;font-weight:700}
.pc-name{font:700 16px/1.3 var(--f-display);color:#2A2420;display:flex;flex-direction:column;align-items:center;gap:2px;word-break:keep-all}
.pc-name small{font:700 11.5px/1.35 var(--f-display);color:#5A4E42}
.pc-kw{font-size:11.5px;color:#6A5F55;line-height:1.5;word-break:keep-all}
.pc-x{align-self:center;font:700 22px var(--f-display);color:#B9AF9F;margin-top:-30px}
.pc-card{border:1.5px solid #3F352C;box-shadow:none}
/* 2026-11-20 그 사람 생년월일 모름(알면 열려요)·인연 찾는 중(끌리는 결) */
.pc-q{width:96px;height:101px;border-radius:50%;border:2px dashed #A4B8DD;background:repeating-linear-gradient(135deg,#F1F3EC 0 6px,#E7ECF4 6px 12px);display:grid;place-items:center;font:700 40px var(--f-display);color:#8FA6CF}
.pc-tease{display:flex;flex-direction:column;gap:6px;background:#EEF3FA;border-radius:16px;padding:14px;text-align:center;align-items:center}
.pc-tease b{font-size:15px;line-height:1.5;word-break:keep-all}
.pc-tease span{font-size:12.5px;color:var(--quiet);line-height:1.6;word-break:keep-all}
.pc-tease .sv-btn{margin-top:6px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;padding:10px 16px}
.pc-solo-note{display:block;font-size:12px;color:var(--quiet);text-align:center}
/* 2026-12-03 첫 화면 2×2 카드 시안: 카드를 누르면 바로 그 타래로, 귀인 타래는 아래 가로 띠. 대표: 네모 작게·가운데 정렬·배지 오른쪽 */
.catgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cat2.cattile{display:flex;flex-direction:column;align-items:center;text-align:center;gap:1px;padding:22px 8px 12px;min-width:0}
.cattile .ctpic{display:flex;justify-content:center;padding:0 0 4px}
.cattile .cpatch{width:50px;transform:none} /* 12/3 대표: 2×2 가운데 정렬이라 패치도 똑바로 */
.cattile .t{font-size:16px}
.cattile .d{font-size:11.5px;line-height:1.35;color:#5A4E42;display:block!important}
.cattile .cprice{justify-content:center;align-self:center;margin-top:3px;gap:4px;white-space:nowrap}.cattile .cprice b{font-size:15px}.cattile .cprice s{font-size:11px}
.cattile .featpill,.cattile .ctbest{position:absolute;top:9px;right:9px;font-size:10px;padding:2px 7px;z-index:1}
.cattile .ctbest{font-weight:700;color:#FFFFFF;background:#A3201C;border-radius:999px;letter-spacing:.02em;box-shadow:0 1px 0 rgba(0,0,0,.18)}
.cattile .ctb-newyear,.cattile .ctb-life{background:#3F352C;color:#F6C453}.cattile .ctb-reunion{background:#2F64A8}
.cat2.cattile[data-cat="love"]{background:#FDECEF}.cat2.cattile[data-cat="newyear"]{background:#F2F7E4}
.cat2.cattile[data-cat="reunion"]{background:#EAF3F8}.cat2.cattile[data-cat="life"]{background:#FFF6DC}
.cat2.cattile[aria-pressed="true"]::after{border-color:#BFAE98}
.ghband{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin-top:8px;text-align:left;background:rgba(251,248,241,.7);border:2px dashed #E3B23C;border-radius:14px;padding:8px 12px;cursor:pointer}
.ghband .cpatch{width:36px;transform:none}
.ghb-t{font-family:var(--f-display);font-weight:700;font-size:15px;display:flex;align-items:center;gap:6px}
.ghb-d{font-size:12px;color:#5A4E42}
.ghb-go{font-size:12px;font-weight:700;color:#B5583A;white-space:nowrap}
#s-intro #go-input{display:none}
.intro .catq{justify-content:center;text-align:center;font-size:17px}
.intro .catq .freepill{font-size:11px;padding:2px 9px}
#s-intro .lede{margin-top:6px!important;line-height:1.55}
#s-intro .cats{margin-top:10px!important}
#s-intro #go-note{font-size:12.5px!important}
