/* custom-D.css — 담당 D 전용 (컷 55~70) · 접두어 xd- · 키트에 없는 것만 */

/* ---- 공통: 섹션 범위 표시(.xd-s) ---- */
[data-theme="n"] .xd-s{overflow-x:clip}
/* NEW 칩은 빨강 대신 형광초록(빨강은 가격 라벨·컷 10·53만) */
[data-theme="n"] .xd-s .n-new{background:var(--n-acc);color:#1D1530}
/* 이미지가 아직 없을 때 오브젝트 자리 표시 */
[data-theme="n"] .xd-s .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:14px;border:2px dashed currentColor;border-radius:50%;opacity:.5;font-size:11.5px;line-height:1.4;text-align:center}

/* ---- 풀폭 바탕 전환 블록(섹션 안에서 바탕이 바뀔 때) ---- */
[data-theme="n"] .xd-bleed{position:relative;margin:56px calc(var(--gut,20px) * -1) -88px;padding:72px var(--gut,20px) 88px}
[data-theme="n"] .xd-bleed.n-s-dark{background:var(--n-black)}
@media (min-width:760px){[data-theme="n"] .xd-bleed{margin-left:-50px;margin-right:-50px;padding-left:50px;padding-right:50px}}
/* 검토 모드: 컷 번호 ::before가 질감 ::before와 겹치지 않게 */
[data-review] [data-theme="n"] .xd-grain[data-cut]::before,[data-theme="n"][data-review] .xd-grain[data-cut]::before{inset:auto;left:6px;top:6px;opacity:1;z-index:50;background:#FF2E7E}

/* ---- 흰 카드 ---- */
[data-theme="n"] .xd-card{max-width:620px;margin:26px auto;padding:18px;border-radius:22px;background:#fff;box-shadow:0 14px 36px rgba(0,0,0,.08);text-align:left}
[data-theme="n"] .xd-card .n-screen{margin:0 auto 12px}
[data-theme="n"] .xd-s .n-screen .shot.slot{width:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);font-size:12px;text-align:center;overflow:hidden;border-radius:0 0 14px 14px}
[data-theme="n"] .xd-s .n-screen .shot.slot::before{white-space:normal;overflow-wrap:anywhere}
[data-theme="n"] .xd-card .n-howto small{display:block;font-size:12px;font-weight:500;color:var(--n-sub);margin-top:2px}
[data-theme="n"] .xd-card .n-howto li{align-items:flex-start}

/* ---- 컷 55: 동전 아이콘 줄 ---- */
[data-theme="n"] .xd-coins{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:6px auto 26px;padding:0;list-style:none}
[data-theme="n"] .xd-coins li{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-size:12.5px;font-weight:900;color:#3A2A00;
  background:radial-gradient(circle at 35% 30%,#FFF1B8,#E8B93A 60%,#B9861A);box-shadow:inset 0 0 0 3px rgba(255,255,255,.35),0 6px 14px rgba(0,0,0,.35)}
[data-theme="n"] .xd-coins li.w{background:radial-gradient(circle at 35% 30%,#FFFFFF,#C9CFD2 60%,#8E979B);color:#2A3033}
[data-theme="n"] .xd-calc{max-width:520px;margin:18px auto 0;padding:14px 16px;border-radius:14px;background:var(--n-card);border:1px solid var(--n-card-line);font-size:12.5px;line-height:1.8;color:var(--n-sub-dark);text-align:left}
[data-theme="n"] .xd-calc b{color:#fff}

/* ---- 컷 56: 매트릭스 행 이름 칸 ---- */
[data-theme="n"] .xd-s .n-yr .row{grid-template-columns:72px repeat(4,minmax(0,1fr))}
[data-theme="n"] .xd-s .n-yr .row>b{font-size:12px;line-height:1.3;display:flex;align-items:center}
[data-theme="n"] .xd-pyr{max-width:420px;margin:26px auto;padding:18px;border-radius:18px;background:var(--n-card)}
[data-theme="n"] .xd-pills{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:8px 0 34px}

/* ---- 컷 57: 표 머리 3열 ---- */
[data-theme="n"] .xd-s .n-cmp{min-width:380px}
[data-theme="n"] .xd-s .n-cmp-wrap{padding-top:24px}
[data-theme="n"] .xd-s .n-cmp tr.price td{font-weight:900;color:#fff;font-size:13px}
[data-theme="n"] .xd-s .n-cmp tr.price td:first-child{color:var(--n-acc)}
[data-theme="n"] .xd-guide .main{font-size:clamp(19px,5.4vw,25px)!important;line-height:1.5!important}

/* ---- M형 고백 질감 (컷 61·66) ---- */
[data-theme="n"] .xd-grain{position:relative;isolation:isolate}
[data-theme="n"] .xd-grain::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.5;
  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}
[data-theme="n"] .xd-grain.ink::before{opacity:.9;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 .2 0 0 0 0 .08 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E") 0 0/160px 160px}
[data-theme="n"] .xd-myeong,[data-theme="n"] .xd-myeong .main{font-family:"Gowun Batang",serif!important;font-weight:700!important;letter-spacing:-.02em!important;line-height:1.6!important}
[data-theme="n"] .xd-myeong .main{font-size:clamp(20px,5.6vw,27px)!important}
[data-theme="n"] .xd-thread{position:relative;width:2px;height:72px;margin:26px auto;background:linear-gradient(transparent,var(--xd-c,#B5EFCD))}
[data-theme="n"] .xd-thread::after{content:"";position:absolute;left:50%;bottom:-5px;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:var(--xd-c,#B5EFCD);box-shadow:0 0 0 6px rgba(156,245,181,.18),0 0 18px var(--xd-c,#B5EFCD)}
[data-theme="n"] .n-s-mint .xd-thread,[data-theme="n"] .n-s-white .xd-thread{--xd-c:var(--n-deep)}
[data-theme="n"] .xd-hand{font-family:var(--font-hand,"Nanum Pen Script"),cursive;font-weight:400;font-size:clamp(28px,8vw,38px);line-height:1.3;color:#B5EFCD;margin:18px auto;max-width:560px}
[data-theme="n"] .n-s-mint .xd-hand{color:var(--n-deep2)}

/* ---- 컷 61: 브랜드 워터마크 글자 + 만든 사람 카드 ---- */
[data-theme="n"] .xd-wmword{position:absolute;left:50%;top:34px;transform:translateX(-50%);z-index:0;margin:0;white-space:nowrap;pointer-events:none;
  font-size:clamp(70px,22vw,150px);font-weight:900;letter-spacing:-.06em;line-height:1;color:var(--n-ink);opacity:.05}
[data-theme="n"] .xd-brand{position:relative;z-index:1;font-size:clamp(34px,10vw,50px);margin-top:10px}
[data-theme="n"] .xd-maker{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:center;max-width:460px;margin:26px auto;padding:16px 18px;border-radius:20px;
  background:var(--n-card);border:1px solid rgba(var(--n-acc-rgb),.45);text-align:left}
[data-theme="n"] .xd-maker .memoji{--ms:96px;margin:0;color:var(--n-sub-dark)}
[data-theme="n"] .xd-maker .lab{display:block;font-size:11px;font-weight:700;letter-spacing:.14em;color:var(--n-acc)}
[data-theme="n"] .xd-maker .nm{display:block;font-size:18px;font-weight:900;color:#fff;margin:3px 0 6px}
[data-theme="n"] .xd-maker .fact{display:inline-block;font-size:13px;font-weight:800;color:#fff;padding:5px 10px;border-radius:9px;background:#352A52}
[data-theme="n"] .xd-s .n-quad.c3 .t{color:var(--n-deep)}

/* ---- 컷 62: 받기 버튼 아이콘 ---- */
[data-theme="n"] .xd-s .n-dup::before{content:"✉"}
[data-theme="n"] .xd-s .n-flow.cards .n-en{display:block;margin-bottom:4px}
[data-theme="n"] .xd-s .n-flow.cards>div:last-child .n-en{color:var(--n-acc)}

/* ---- 컷 66: 고백 헤드 ---- */
[data-theme="n"] .xd-s .n-bars.v{max-width:360px}

/* ---- 컷 68: 가격 요약 — 좁은 폭에서 줄바꿈 ---- */
[data-theme="n"] .xd-s .n-pricesum li{grid-template-columns:minmax(0,1fr) auto}
[data-theme="n"] .xd-s .n-pricesum .k{grid-row:span 2;align-self:center}
[data-theme="n"] .xd-s .n-pricesum .rg{font-size:12.5px;color:var(--n-sub-dark);text-align:right}
[data-theme="n"] .xd-s .n-pricesum b{text-align:right}
[data-theme="n"] .xd-s .n-wheel.orbit .node{font-size:11px;font-weight:900}
[data-theme="n"] .xd-s .n-wheel.orbit .node small{font-size:8px}

/* ---- 컷 69: 문의 버튼 ---- */
[data-theme="n"] .xd-ask{display:inline-flex;align-items:center;justify-content:center;margin:18px auto 0;padding:10px 20px;border-radius:999px;
  background:#352A52;border:1px solid #343B39;color:var(--n-sub-dark);font-size:13.5px;font-weight:700;text-decoration:none}
[data-theme="n"] .xd-ask:hover{color:#fff}

/* 최종 카피 반영 (담당 C) */
[data-theme="n"] section[data-cut^="55 "] .n-h .main small{display:block;font-size:.42em;font-weight:700;margin-top:6px;opacity:.85}
[data-theme="n"] section[data-cut^="57 "] .n-cmp tr.price td{white-space:nowrap}
[data-theme="n"] section[data-cut^="68 "] .n-pricesum b small{font-size:12px;font-weight:600;color:var(--n-sub-dark)}