/* custom-A.css — 담당 A 전용 (컷 1~18). 모든 규칙은 [data-theme="n"] .xa-cut 아래에만 둔다. */

/* ---------- 공통 보조 ---------- */
[data-theme="n"] .xa-cut em{font-style:normal;color:var(--n-acc-t)}
[data-theme="n"] .xa-cut .n-review em{color:var(--n-acc)}
[data-theme="n"] .xa-cut .xa-blk{margin-top:56px}
[data-theme="n"] .xa-cut .xa-bleed{margin:56px calc(var(--gut) * -1) -88px;padding:80px var(--gut) 88px}
@media (min-width:760px){[data-theme="n"] .xa-cut .xa-bleed{margin-left:-50px;margin-right:-50px;padding-left:50px;padding-right:50px}}

/* 자리 표시(캡처·썸네일) */
[data-theme="n"] .xa-cut .n-screen .shot.slot{opacity:1;min-height:0;border:0;border-radius:0 0 14px 14px;padding:18px;font-size:12.5px;line-height:1.5;color:#948CA0;
  background-image:repeating-linear-gradient(135deg,rgba(0,0,0,.035) 0 10px,transparent 10px 20px)}
[data-theme="n"] .xa-cut .slot.fill{width:100%;height:100%;min-height:0;border-radius:0;border-width:1.5px;font-size:11px;padding:8px;line-height:1.4;color:#BDB5CC;opacity:.8}
[data-theme="n"] .xa-cut .n-gift-grid .shot.slot{aspect-ratio:auto;min-height:72px;overflow:hidden;border-width:1.5px;font-size:10.5px;padding:8px;line-height:1.4;opacity:.7;color:#948CA0}
[data-theme="n"] .xa-cut .n-device .phone .slot.fill{font-size:9px;padding:4px}

/* 이미지가 아직 없을 때 3D 오브젝트 자리 */
[data-theme="n"] .xa-cut .n-obj:not(:has(img))::after{content:"오브젝트 · " attr(data-slot);position:relative;z-index:1;display:grid;place-items:center;width:100%;height:100%;
  box-sizing:border-box;padding:16px;border:2px dashed currentColor;border-radius:50%;opacity:.5;font-size:12px;line-height:1.4;text-align:center}

/* ---------- 컷 1 혜택 공지 카드 ---------- */
[data-theme="n"] .xa-cut .xa-ev-cond{font-size:16px;font-weight:500;line-height:1.6;margin:0 0 4px}
[data-theme="n"] .xa-cut .xa-ev-cond b{font-weight:900}
[data-theme="n"] .xa-cut .n-event-end small .xa-due{color:var(--n-ev-cond);font-weight:900;font-size:14px}

/* ---------- 컷 15 겹침 카드: 뒤 카드 마지막 줄이 앞 카드에 가리지 않게 ---------- */
[data-theme="n"] .xa-cut .n-ba .back{padding-bottom:56px}

/* ---------- 컷 3 수치 ---------- */
[data-theme="n"] .xa-cut .xa-pre{font-size:.42em;font-weight:800;color:var(--n-subc);margin-right:3px;letter-spacing:0}

/* ---------- M형 고백 질감 (컷 2·9) ---------- */
[data-theme="n"] .xa-cut.xa-grain{isolation:isolate}
[data-theme="n"] .xa-cut.xa-grain::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E") 0 0/160px 160px,
    radial-gradient(120% 80% at 50% 50%,transparent 55%,rgba(0,0,0,.55) 100%);
  opacity:.9}
[data-theme="n"] .xa-cut.xa-grain>*{position:relative;z-index:1}
[data-theme="n"] .xa-cut.xa-grain>.n-map{position:relative}
[data-theme="n"] .xa-cut .xa-serif{font-family:'Gowun Batang','Nanum Myeongjo',serif;font-weight:700;letter-spacing:-.02em}
[data-theme="n"] .xa-cut .n-hand.xa-soft{color:#A6F7BC;text-shadow:0 0 18px rgba(52,209,122,.35)}
/* 실선 세로선 + 빛나는 점 */
[data-theme="n"] .xa-cut .vline.xa-vline{width:1.5px;height:84px;opacity:1;background:linear-gradient(rgba(255,255,255,0),rgba(255,255,255,.75))}
[data-theme="n"] .xa-cut .vline.xa-vline::after{content:"";position:absolute;left:50%;bottom:-6px;width:11px;height:11px;margin-left:-5.5px;border-radius:50%;
  background:#C8FFD6;box-shadow:0 0 12px 4px rgba(52,209,122,.55)}
[data-theme="n"] .xa-cut .xa-confess{max-width:520px;margin:0 auto 18px;font-size:clamp(16px,4.6vw,19px);line-height:2;color:#A9B0AD}
[data-theme="n"] .xa-cut .xa-quiet{font-size:clamp(17px,4.8vw,20px);line-height:1.7;color:#D9DEDC;margin:0 auto}
[data-theme="n"] .xa-cut .xa-strong{font-size:clamp(17px,4.8vw,20px);font-weight:800;color:#fff;margin:8px auto 0}

/* ---------- 컷 12 지도 주차 라벨 ---------- */
[data-theme="n"] .xa-cut .n-map .fire{display:flex;flex-direction:column;align-items:center;line-height:1}
[data-theme="n"] .xa-cut .n-map .fire small{display:block;margin-top:3px;font-size:10.5px;font-weight:800;color:var(--n-ink);background:#fff;padding:2px 6px;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.12)}

/* ---------- 컷 17 숫자 카드 영문 라벨 ---------- */
[data-theme="n"] .xa-cut .n-num4.six .en{font-size:9.5px;letter-spacing:.06em;white-space:normal;line-height:1.35;word-break:keep-all;overflow-wrap:normal}
[data-theme="n"] .xa-cut .n-num4.six .u{font-size:12.5px}

/* ---------- 컷 9 지도 목적지 라벨(긴 문구 줄바꿈) ---------- */
[data-theme="n"] section[data-cut^="9 "] .n-map .pin.goal{--x:76% !important;max-width:9.5em}
[data-theme="n"] section[data-cut^="9 "] .n-map .pin.goal b{white-space:normal;word-break:keep-all;text-align:center;line-height:1.35}

/* ===== 컷 9·12 엉킨 실(뇌꼬임) 지도 — 경쟁사 지도 대체 ===== */
[data-theme="n"] .n-map.knotmap{background-color:#F5EEE1}
[data-theme="n"] .knotmap svg{overflow:visible}
[data-theme="n"] .knotmap .thread{fill:none;stroke:#9C8CC9;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
[data-theme="n"] .knotmap .thread.lost{stroke-dasharray:2 9;opacity:.7}
[data-theme="n"] .knotmap .knot ellipse{fill:none;stroke:#5A3FA0;stroke-width:3}
[data-theme="n"] .knotmap .knot{transform-box:fill-box;transform-origin:center}
[data-theme="n"] .knotmap.tangled .knot>*{animation:knot-tight 2.6s ease-in-out infinite;animation-delay:calc(var(--i)*-0.5s);transform-box:fill-box;transform-origin:center}
@keyframes knot-tight{0%,100%{scale:1}50%{scale:.82}}
[data-theme="n"] .knotmap .ktag{display:flex;flex-direction:column;align-items:center;gap:2px}
[data-theme="n"] .knotmap .ktag b{padding:4px 10px;border-radius:999px;background:#fff;color:#5A3FA0;font-size:12px;box-shadow:0 2px 8px rgba(42,32,66,.12);border:1.5px solid #CFC2F7}
[data-theme="n"] .knotmap .ktag i{font-style:normal;font-size:11px;color:#6E667A;animation:knot-here 2s ease-in-out infinite;animation-delay:calc(var(--i)*.4s)}
@keyframes knot-here{0%,100%{opacity:.35}50%{opacity:1}}
[data-theme="n"] .knotmap .pin b{max-width:150px;white-space:normal;text-align:center;line-height:1.35}
/* 컷 12: 매듭이 하나씩 풀리고 실이 곧게 당겨짐 */
[data-theme="n"] .knotmap.untie .thread.old{stroke:#C9BDE6;transition:opacity .8s ease 1.6s}
[data-theme="n"] .knotmap.untie .knot{transition:opacity .45s ease,scale .45s ease;transition-delay:calc(var(--i)*.35s + .2s)}
[data-theme="n"] .knotmap.untie .thread.straight{stroke:var(--n-acc);stroke-width:5;stroke-dasharray:100;stroke-dashoffset:0;transition:stroke-dashoffset 1.8s var(--ease) 1.2s}
[data-theme="n"] .knotmap.untie.is-in .knot{opacity:0;scale:.2}
[data-theme="n"] .knotmap.untie.is-in .thread.old{opacity:.25}
.n-motion [data-theme="n"] .knotmap.untie:not(.is-in) .thread.straight,
[data-theme="n"].n-motion .knotmap.untie:not(.is-in) .thread.straight,
.n-motion .knotmap.untie:not(.is-in) .thread.straight{stroke-dashoffset:100}
[data-theme="n"] .knotmap.untie .fire{transition-delay:calc(var(--i)*300ms + 1.6s)}
@media (prefers-reduced-motion:reduce){
  [data-theme="n"] .knotmap .knot>*,[data-theme="n"] .knotmap .ktag i{animation:none}
}
