/* A안 '염라 장부' 테마 (2026-11-21 대표: 칠흑 옻칠 · 금박 테 · 주사 인장, 글은 그대로)
   ?theme=a 로 열 때만 켜진다(index.html 머리의 작은 스크립트가 html에 .ta를 붙이고 이 파일을 건다). 바탕 한지는 지금 그대로.
   :root.ta 로 시작해서 html.paper 규칙보다 앞선다. */
:root.ta {
  --lac: #120d0b url(/media/tex/lac.webp) 0 0 / 560px;
  --gold: #b8954f; --gold-l: #e2c27c; --gold-ink: #8a6a2e;
  --cin: #9e221a; --ink-d: #1d1714; --on-lac: #f1e6d0; --on-lac2: #a3927b;
  --foil: url(/media/tex/gold.webp) center / 220px;
}
/* 금박 글씨 */
:root.ta .toc-me .tm-h b, :root.ta .toc-me .tm-n b, :root.ta .tm-list .no, :root.ta .sf-next .sn-k span {
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* 가린 값: 금빛으로 번진 자국 */
:root.ta .tm-v em i, :root.ta .sf-next .sn-row em i { color: transparent; text-shadow: 0 0 6px var(--gold-l), 0 0 2px var(--gold-l); }

/* ── 장부 목차(심화풀이 열두 장) ── */
:root.ta .toc-me { position: relative; border: 0; border-radius: 0; background: var(--lac); color: var(--on-lac);
  box-shadow: inset 0 1px 0 rgba(255, 225, 170, .12), 0 0 0 1px #2c211a, 0 30px 56px -28px rgba(30, 10, 2, .75); outline: 1px solid rgba(184, 149, 79, .55); outline-offset: -9px; }
:root.ta .toc-me .tm-top, :root.ta .toc-me .tm-prog { background: transparent; }
:root.ta .toc-me .tm-top { padding: 22px 24px 12px; border-bottom: 0; }
:root.ta .toc-me .tm-k { color: var(--gold); letter-spacing: .14em; }
:root.ta .toc-me .tm-h b { font-weight: 900; letter-spacing: .02em; }
:root.ta .toc-me .tm-n { color: var(--on-lac2); }
:root.ta .toc-me .tm-prog { padding: 0 24px 16px; border-bottom: 1px solid rgba(184, 149, 79, .4); }
:root.ta .toc-me .tm-bar { height: 4px; border-radius: 0; background: rgba(184, 149, 79, .22); }
:root.ta .toc-me .tm-bar b { background: var(--gold-l); }
:root.ta .toc-me .tm-prog span { color: var(--on-lac2); }
:root.ta .toc-me .tm-prog mark { color: var(--gold-l); }
:root.ta .toc-me .tm-line { margin: 16px 24px 6px; border-radius: 0; background: rgba(241, 230, 208, .06); border: 1px solid rgba(184, 149, 79, .25); color: var(--on-lac); }
:root.ta .toc-me .tm-line b { color: var(--gold-l); }
:root.ta .toc-me .tm-list { padding: 0 24px; counter-reset: tmc; }
:root.ta .tm-list li { counter-increment: tmc; border-top-color: rgba(241, 230, 208, .1); }
:root.ta .tm-list li:first-child { border-top: 0; }
:root.ta .tm-list .no { width: auto; height: auto; border-radius: 0; font-size: 0; }
:root.ta .tm-list .no::before { content: counter(tmc, cjk-ideographic); font: 900 22px/1 var(--serif); letter-spacing: -.04em; }
:root.ta .tm-list b, :root.ta .tm-list li:not(.tm-open) b { color: var(--on-lac); }
:root.ta .tm-list li > span:not(.no) { color: var(--on-lac2); }
:root.ta .tm-list .tm-v em { color: var(--gold-l); }
:root.ta .tm-list .tm-lk { background: none; color: var(--gold); }
:root.ta .tm-list .tm-open { margin: 0 -12px; padding: 12px; border-radius: 0; background: rgba(31, 90, 67, .55); box-shadow: inset 0 0 0 1px rgba(184, 149, 79, .45); }
:root.ta .tm-list .tm-open .no { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root.ta .tm-list .tm-open .tm-lk { background: none; color: var(--gold-l); }
:root.ta .toc-me .tm-foot { margin: 10px 0 0; padding: 17px 24px; background: var(--cin); box-shadow: inset 0 1px 0 var(--gold), inset 0 2px 0 rgba(0, 0, 0, .25); }
:root.ta .toc-me .tm-foot b { border-radius: 0; background: var(--foil); color: #2a1608; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); padding: 10px 16px; }

/* ── 봉인된 해: 금 테 두른 한지 봉투 ── */
:root.ta .lock::before { filter: brightness(1.12) drop-shadow(0 18px 18px rgba(50, 22, 8, .18)); box-shadow: 0 0 0 1px #cdb88f, 0 0 0 5px #f6efe0, 0 0 0 6px var(--gold); rotate: 0deg; }
:root.ta .lock .lk-seal { background: var(--cin); box-shadow: inset 0 0 0 3px var(--cin), inset 0 0 0 4px rgba(255, 238, 220, .75); font-weight: 900; }
:root.ta .lock .lk-v { display: inline-flex; padding: 9px 14px; background: var(--lac); border: 0; border-radius: 0; }
:root.ta .lock .lk-v b { color: var(--gold-l); opacity: 1; letter-spacing: .06em; }
:root.ta .lock .lk-v span { background: var(--foil); color: #2a1608; padding: 4px 6px; letter-spacing: .1em; }
:root.ta .lock .lk-lock { stroke: var(--gold-l); }
:root.ta .lock .lk-c { color: var(--cin); }

/* ── 잠긴 장 띠(나의 장부 열두 장 중 …) ── */
:root.ta .sf-next { border: 0; border-radius: 0; padding: 18px 20px 16px; background: var(--lac); color: var(--on-lac);
  box-shadow: inset 0 1px 0 rgba(255, 225, 170, .12), 0 0 0 1px #2c211a, 0 22px 40px -24px rgba(30, 10, 2, .7); outline: 1px solid rgba(184, 149, 79, .5); outline-offset: -7px; }
:root.ta .sf-next .sn-k { color: var(--on-lac2); }
:root.ta .sf-next .sn-k span { font-weight: 900; }
:root.ta .sf-next .sn-k b { color: var(--gold-l); }
:root.ta .sn-pips i { height: 4px; border-radius: 0; background: rgba(184, 149, 79, .22); }
:root.ta .sn-pips i:first-child { background: linear-gradient(90deg, var(--gold-l) 55%, rgba(184, 149, 79, .22) 55%); }
:root.ta .sf-next .sn-row { border-top: 1px solid rgba(241, 230, 208, .12); }
:root.ta .sf-next .sn-row small { color: var(--gold); letter-spacing: .12em; }
:root.ta .sf-next .sn-row b { color: var(--on-lac); }
:root.ta .sf-next .sn-row em { color: var(--gold-l); }
:root.ta .sf-next .sn-go { margin: 12px -20px -16px; padding: 13px; background: var(--cin); color: #fff3e2; box-shadow: inset 0 1px 0 var(--gold); }

/* ── 2027 열두 달: 옻칠 판 위 금선 칸 ── */
:root.ta .yp-months { gap: 0; padding: 12px; background: var(--lac); outline: 1px solid rgba(184, 149, 79, .45); outline-offset: -6px; box-shadow: 0 22px 40px -24px rgba(30, 10, 2, .7); }
:root.ta .yp-months i, :root.ta html.paper .yp-months i { border-radius: 0; background: transparent; border: 0; box-shadow: inset -1px -1px 0 rgba(184, 149, 79, .26); padding: 12px 1px 10px; color: var(--on-lac2); }
:root.ta .yp-months i b { color: var(--on-lac); font-family: var(--serif); }
:root.ta .yp-months i em { filter: grayscale(1) sepia(1) saturate(2) hue-rotate(5deg); opacity: .75; }
:root.ta .yp-months i.g { background: #1f5a43; box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 3px #1f5a43, inset 0 0 0 4px rgba(226, 194, 124, .5); color: #dcefe2; }
:root.ta .yp-months i.g b { color: #fff; }
:root.ta .yp-months i.c { background: var(--cin); box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 3px var(--cin), inset 0 0 0 4px rgba(226, 194, 124, .5); color: #ffe2da; }
:root.ta .yp-months i.c b { color: #fff; }

/* ── 가격 두 칸 ── */
:root.ta .mp-box { border-radius: 0; background: var(--lac); outline: 1px solid rgba(184, 149, 79, .5); outline-offset: -7px; box-shadow: 0 26px 44px -26px rgba(30, 10, 2, .75); }
:root.ta .mp-duo a { border-radius: 0; }
:root.ta .mp-duo .bb-y27 { background: rgba(241, 230, 208, .05); box-shadow: inset 0 0 0 1px rgba(184, 149, 79, .55); }
:root.ta .mp-duo .bb-saju { background: var(--cin); box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 4px var(--cin), inset 0 0 0 5px rgba(226, 194, 124, .45); }
:root.ta .mp-duo .bb-y27 .bb-now { color: var(--gold-l); }
:root.ta .mp-duo .bb-pct, :root.ta .mp-duo .bb-why { border-radius: 0; background: var(--foil); color: #2a1608; }

/* ── 무료 질문 띠와 두 문 ── */
:root.ta .ask-jump { border: 0; border-radius: 0; background: #fbf6ec; box-shadow: 0 0 0 1px #cdb88f, 0 0 0 5px #fbf6ec, 0 0 0 6px var(--gold), 0 16px 26px -18px rgba(50, 22, 8, .45); }
:root.ta .ask-jump em { border-radius: 0; background: var(--cin); box-shadow: inset 0 0 0 1px rgba(226, 194, 124, .6); }
:root.ta .xs-strip a { border-radius: 0; background: var(--lac); outline: 1px solid rgba(184, 149, 79, .5); outline-offset: -5px; }

/* ── 잠긴 문단(심화풀이 제○장에서 열려요)·타고난 별 띠 ── */
:root.ta .trim-seal { border-radius: 0; border: 0; background: var(--lac); color: var(--on-lac); outline: 1px solid rgba(184, 149, 79, .5); outline-offset: -5px; }
:root.ta .trim-seal mark { background: none; color: var(--gold-l); }
:root.ta .trim-seal small { color: var(--on-lac2); }
:root.ta .trim-seal svg { color: var(--gold); }
:root.ta .trim-seal .ts-go { color: #ffd9cf; }
:root.ta .tm-list li { grid-template-columns: 56px minmax(0, 1fr) 28px; }
:root.ta .tm-list .no::before { white-space: nowrap; }
:root.ta .lock-grid, :root.ta html.paper .lock-grid, :root.ta.paper .sample-sec .lock-grid { gap: 22px; }

/* ── 아래 고정 가격 띠 ── */
:root.ta .buy-bar .bb-duo a { border-radius: 0; }
:root.ta .buy-bar .bb-saju { background: var(--cin); box-shadow: inset 0 1px 0 var(--gold), inset 0 0 0 1px rgba(226, 194, 124, .45); }
:root.ta .buy-bar .bb-y27 { background: var(--lac); box-shadow: inset 0 1px 0 var(--gold), inset 0 0 0 1px rgba(184, 149, 79, .45); color: var(--on-lac); }
:root.ta .buy-bar .bb-was i { border-radius: 0; background: var(--foil); color: #2a1608; }

/* ── 가격 카드(심화풀이·신년운세): 금 테 두른 한지 ── */
:root.ta .price-card { border: 0; border-radius: 0; background: #fbf6ec; box-shadow: 0 0 0 1px #cdb88f, 0 0 0 6px #fbf6ec, 0 0 0 7px var(--gold), 0 30px 46px -30px rgba(50, 22, 8, .55); }
:root.ta .price-card .pc-head { border-radius: 0; }
:root.ta .price-card .pc-plus { border-radius: 0; background: var(--lac); color: var(--gold-l); box-shadow: inset 0 0 0 1px rgba(184, 149, 79, .5); }
:root.ta .price-card .pc-incl li::before { filter: sepia(1) saturate(1.6) hue-rotate(-12deg) brightness(.85); }
:root.ta .price-card .pc-price { border-radius: 0; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(184, 149, 79, .55); }
:root.ta .price-card .pc-badge, :root.ta .price-card .pc-pct { border-radius: 0; background: var(--foil); color: #2a1608; }
:root.ta .price-card .pc-now b { color: var(--cin); }
:root.ta .buy .cta, :root.ta .cta.dark, :root.ta .vault-cta, :root.ta .y27-go { border-radius: 0 !important; background: var(--cin) !important; box-shadow: inset 0 0 0 1px var(--cin), inset 0 0 0 3px rgba(226, 194, 124, .65), 0 16px 26px -16px rgba(120, 20, 10, .6) !important; }
:root.ta .buy input[type=email] { border-radius: 0; border-color: var(--gold); }

/* ── 쪽지·카드들 ── */
:root.ta .vs-good { border: 0; border-radius: 0; background: #fbf6ec; box-shadow: 0 0 0 1px #cdb88f, 0 0 0 5px #fbf6ec, 0 0 0 6px var(--gold); }
:root.ta .vs-good .vs-tag, :root.ta .rv-badge { border-radius: 0; background: var(--cin); color: #fff3e2; }
:root.ta .rvf > li { border-radius: 0; }
:root.ta .friend-card { border: 0; border-radius: 0; background: #fbf6ec; box-shadow: 0 0 0 1px #cdb88f, 0 0 0 5px #fbf6ec, 0 0 0 6px var(--gold); }
:root.ta .friend-btn { border-radius: 0; background: var(--cin); box-shadow: inset 0 0 0 1px rgba(226, 194, 124, .6); }
:root.ta .lp-list li { border-radius: 0; border-color: rgba(184, 149, 79, .7); background: rgba(255, 255, 255, .5); }
:root.ta .lite-doors .ld-cell { border-radius: 0; box-shadow: 0 0 0 1px #cdb88f, 0 0 0 4px #fbf6ec, 0 0 0 5px rgba(184, 149, 79, .8); }
:root.ta .lite-doors .ld-cell em { color: var(--cin); }
:root.ta .ask-chat .ch-head, :root.ta #freeChat .ch-head { border-radius: 0; background: var(--lac); box-shadow: inset 0 -1px 0 var(--gold); }
:root.ta .ask-chat { border-radius: 0; }
:root.ta .y27-pc .pc-head, :root.ta .price-card .pc-head { background: transparent; }
:root.ta .trim-wrap .trim-seal, :root.ta .trim-seal { background: var(--lac); color: var(--on-lac); border: 0; border-radius: 0; box-shadow: 0 0 0 1px #2c211a, 0 22px 40px -22px rgba(30, 10, 2, .75); }
:root.ta .trim-seal b { color: var(--on-lac); }
:root.ta .trim-seal small { color: var(--on-lac2); }
:root.ta .trim-seal .ts-go { border-radius: 0; background: var(--cin); color: #fff3e2; box-shadow: inset 0 0 0 1px var(--cin), inset 0 0 0 3px rgba(226, 194, 124, .6); }
:root.ta .price-card.pc-pick, :root.ta .price-card.pc-pick[aria-pressed="true"] { box-shadow: 0 0 0 1px #cdb88f, 0 0 0 6px #fbf6ec, 0 0 0 7px var(--gold), 0 30px 46px -30px rgba(50, 22, 8, .55); }
:root.ta .price-card .pc-head { background: var(--lac); color: var(--on-lac); box-shadow: inset 0 -1px 0 var(--gold); }
/* 미리보기 캡처용(mock/ta.html): 스크롤로 나타나는 칸을 처음부터 보인다 */
:root.ta-shot .rv, :root.ta-shot .rv-pop { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }

/* ── 결제하면 이렇게 펼쳐져요(실제 풀이 화면) ── */
:root.ta .pv-tabs button { border-radius: 0; border: 0; background: #fbf6ec; color: var(--ink-d); box-shadow: inset 0 0 0 1px rgba(184, 149, 79, .7); }
:root.ta .pv-tabs button.on { background: var(--lac); color: var(--on-lac); box-shadow: inset 0 0 0 1px var(--gold), inset 0 -3px 0 var(--gold-l); }
:root.ta .pv-tabs button.on small { color: var(--on-lac2); }
:root.ta .pv-win { border: 0; border-radius: 0; box-shadow: 0 0 0 8px #120d0b, 0 0 0 9px var(--gold), 0 30px 50px -24px rgba(30, 10, 2, .7); }
:root.ta .pv-now { border-radius: 0; background: var(--foil); color: #2a1608; }
:root.ta .pv-bar { border-radius: 0; background: rgba(184, 149, 79, .25); } :root.ta .pv-bar b { border-radius: 0; background: var(--gold-l); }
:root.ta .pv-more button { border-radius: 0; border: 0; background: #fbf6ec; box-shadow: 0 0 0 1px #cdb88f, 0 0 0 4px #fbf6ec, 0 0 0 5px var(--gold); }
:root.ta .pv-more button b { color: var(--cin); }

/* ── 맨 아래 '더 궁금하면' 다른 장부들 ── */
:root.ta .xsell .xs-grid a { border-radius: 0; background: var(--lac); border: 0; box-shadow: 0 0 0 1px #2c211a; outline: 1px solid rgba(184, 149, 79, .5); outline-offset: -6px; }
:root.ta .xsell .xs-grid b { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root.ta .xsell .xs-grid span { color: var(--on-lac2); }
:root.ta .xsell .xs-grid em { border-radius: 0; background: var(--cin); box-shadow: inset 0 0 0 1px rgba(226, 194, 124, .6); }
:root.ta .xsell .xs-grid img.rd { box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px rgba(184, 149, 79, .25); }
