/* 모바일 초대장 */
.iv-body {
  --iv-bg: #f4efe6; --iv-card: #fffdf8; --iv-ink: #2b2620; --iv-sub: #7a6f62; --iv-line: #e4dccd;
  --iv-accent: #7d6233; --iv-on: #fffdf8; --iv-font: 'Gowun Batang', 'Pretendard Variable', serif;
  background: var(--iv-bg); color: var(--iv-ink);
}
.iv-paper { }
.iv-night { --iv-bg: #121628; --iv-card: #1a2038; --iv-ink: #f2ede2; --iv-sub: #a9a8b8; --iv-line: #2c3352; --iv-accent: #d9b968; --iv-on: #121628; }
.iv-blush { --iv-bg: #f7e9e9; --iv-card: #fffafa; --iv-ink: #3a2629; --iv-sub: #8b6d71; --iv-line: #ecd3d5; --iv-accent: #b24a62; --iv-on: #fff; }
.iv-sage { --iv-bg: #e8ede4; --iv-card: #fbfcf8; --iv-ink: #233027; --iv-sub: #66746a; --iv-line: #d3ddd0; --iv-accent: #43684f; --iv-on: #fff; }
.iv-pop { --iv-bg: #ffd84d; --iv-card: #fff; --iv-ink: #17142a; --iv-sub: #55516b; --iv-line: #17142a; --iv-accent: #5b4cf0; --iv-on: #fff; --iv-font: 'Pretendard Variable', sans-serif; }

body.iv-body { min-height: 100vh; }
body.iv-body main.wrap { max-width: 480px !important; padding: 0 !important; }

.iv { max-width: 440px; margin: 0 auto; padding: 28px 18px 40px; display: grid; gap: 22px; text-align: center; font-family: var(--iv-font); word-break: keep-all; }
.iv-mini { padding: 18px 14px 28px; gap: 16px; font-size: 13px; }

.iv-cover { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--iv-line); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .45); }
.iv-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iv-art { display: grid; place-items: center; height: 180px; }
.iv-art img { width: 132px; height: 132px; }
.iv-mini .iv-art { height: 120px; } .iv-mini .iv-art img { width: 88px; height: 88px; }

.iv-head { display: grid; gap: 8px; }
.iv-lead { margin: 0; font-size: .82em; letter-spacing: .14em; color: var(--iv-accent); }
.iv-title { margin: 0; font-size: 2em; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.iv-hosts { margin: 0; color: var(--iv-sub); font-size: 1em; }
.iv-pop .iv-title { font-size: 2.3em; font-weight: 800; letter-spacing: -.03em; }

.iv-when { display: grid; justify-items: center; gap: 6px; padding: 20px 0; border-top: 1px solid var(--iv-line); border-bottom: 1px solid var(--iv-line); }
.iv-date { display: flex; align-items: baseline; gap: 10px; }
.iv-md { font-size: 2.6em; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.iv-dow { font-size: 1em; color: var(--iv-sub); }
.iv-time { margin: 0; color: var(--iv-sub); font-size: .95em; }
.iv-dday { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--iv-accent); color: var(--iv-on); font-size: .8em; font-family: 'Pretendard Variable', sans-serif; font-weight: 700; }
.iv-dday.past { background: var(--iv-line); color: var(--iv-sub); }

.iv-msg { margin: 0; font-size: 1.02em; line-height: 1.95; white-space: normal; }

.iv-sec { background: var(--iv-card); border-radius: 18px; padding: 20px 18px; display: grid; gap: 8px; text-align: left; border: 1px solid var(--iv-line); }
.iv-pop .iv-sec { border-width: 2px; box-shadow: 4px 4px 0 var(--iv-ink); }
.iv-sec h2 { margin: 0 0 4px; font-size: .95em; color: var(--iv-accent); font-weight: 700; }
.iv-pname { margin: 0; font-size: 1.1em; font-weight: 700; }
.iv-addr { margin: 0; color: var(--iv-sub); font-size: .92em; line-height: 1.6; }

.iv-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.iv-acts { justify-content: center; margin: 0; }
.iv-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--iv-line); background: var(--iv-card); color: var(--iv-ink); font: 600 .88em/1 'Pretendard Variable', sans-serif; text-decoration: none; cursor: pointer; }
.iv-btn:hover { border-color: var(--iv-accent); }
.iv-btn:focus-visible { outline: 2px solid var(--iv-accent); outline-offset: 2px; }
.iv-main { background: var(--iv-accent); border-color: var(--iv-accent); color: var(--iv-on); min-height: 48px; width: 100%; font-size: .95em; }
.iv-pop .iv-btn { border: 2px solid var(--iv-ink); }

.iv-form { display: grid; gap: 10px; font-family: 'Pretendard Variable', sans-serif; }
.iv-form input[type=text], .iv-form textarea, .iv-form select { width: 100%; box-sizing: border-box; border: 1px solid var(--iv-line); border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 15px; background: var(--iv-bg); color: var(--iv-ink); }
.iv-form textarea { resize: vertical; }
.iv-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.iv-seg label { position: relative; }
.iv-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.iv-seg span { display: grid; place-items: center; min-height: 42px; border-radius: 12px; border: 1px solid var(--iv-line); background: var(--iv-bg); font-weight: 600; font-size: 14px; cursor: pointer; }
.iv-seg input:checked + span { background: var(--iv-accent); border-color: var(--iv-accent); color: var(--iv-on); }
.iv-seg input:focus-visible + span { outline: 2px solid var(--iv-accent); outline-offset: 2px; }
.iv-people { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--iv-sub); }
.iv-people select { width: auto; min-width: 96px; }
.iv-ok { margin: 0; font-size: 14px; font-weight: 600; color: var(--iv-accent); text-align: center; }
.iv-ok.bad { color: #c2362b; }

.iv-share { margin-top: 4px; }
.iv-foot { display: flex; justify-content: center; gap: 14px; font: 500 12px/1.4 'Pretendard Variable', sans-serif; }
.iv-foot a { color: var(--iv-sub); text-decoration: none; }
.iv-foot a:hover { text-decoration: underline; }

/* 편집 화면 */
.ive-list { margin-bottom: 28px; }
.ive-list-items { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.ive-item { width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line, #e6e8ee); border-radius: 16px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.ive-item:hover { border-color: #5b4cf0; }
.ive-item img { width: 44px; height: 44px; }
.ive-item-t { display: grid; gap: 4px; min-width: 0; }
.ive-item-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ive-item-t small { color: #6b7280; }
.ive-item-u { font-size: 12px; color: #6b7280; }
@media (max-width: 560px) { .ive-item { grid-template-columns: 40px 1fr; } .ive-item-u { display: none; } }

.ive-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ive-kinds button { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #e6e8ee; border-radius: 12px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ive-kinds img { width: 26px; height: 26px; }
.ive-kinds button[aria-pressed=true] { border-color: #5b4cf0; background: #f3f1ff; color: #3d2fd1; }

.ivsw-paper i { background: #f4efe6 !important; } .ivsw-night i { background: #121628 !important; } .ivsw-blush i { background: #f0d6d9 !important; }
.ivsw-sage i { background: #cbd8c6 !important; } .ivsw-pop i { background: #ffd84d !important; }

.ive-cover { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ive-file { cursor: pointer; }
.ive-addr { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ive-addr label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.ive-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ive-url { padding: 12px 14px; border-radius: 12px; background: #f6f7fb; margin-bottom: 12px; word-break: break-all; }
.ive-url code { font-size: 15px; font-weight: 600; }
.ive-rsvps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ive-rsvps li { position: relative; padding: 12px 40px 12px 14px; border: 1px solid #e6e8ee; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.ive-rsvps li p { flex-basis: 100%; margin: 2px 0 0; color: #4b5563; font-size: 14px; }
.ive-att { font-size: 13px; font-weight: 600; color: #6b7280; }
.a-yes .ive-att { color: #1f8a4c; } .a-no .ive-att { color: #b4232f; }
.ive-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; background: none; font-size: 18px; color: #9aa0ab; cursor: pointer; border-radius: 8px; }
.ive-x:hover { background: #f3f4f6; color: #111; }
.btn.danger { color: #b4232f; }

/* 소개 페이지 */
.ivl { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .ivl { grid-template-columns: minmax(0, 1fr) 360px; } .ivl-side { position: sticky; top: 90px; } }
.ivl-h { font-size: 20px; margin: 8px 0 14px; }
.ivl-main { display: grid; gap: 14px; }
.ivl-kinds { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ivl-kinds li { display: grid; gap: 4px; padding: 16px; border: 1px solid #e6e8ee; border-radius: 16px; background: #fff; }
.ivl-kinds b { font-size: 16px; } .ivl-kinds span { color: #6b7280; font-size: 14px; }
.ivl-feats { margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 20px; }
.ivl-feats dt { font-weight: 700; margin-bottom: 4px; } .ivl-feats dd { margin: 0; color: #4b5563; line-height: 1.6; }
.ivl-steps { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 10px; }
.ivl-steps li { line-height: 1.6; } .ivl-steps b { display: block; } .ivl-steps span { color: #4b5563; }
@media (prefers-reduced-motion: no-preference) { .iv-main { transition: filter .15s; } .iv-main:hover { filter: brightness(1.06); } }

/* ───────── 움직임 ───────── */
/* 분위기별 배경 효과: 밤하늘 별, 로즈 꽃잎, 세이지 잎, 파티 색종이, 아이보리 금빛 */
.iv-fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bx-screen { position: relative; }
.bx-screen .iv-fx { position: absolute; }
.iv, .iv-intro { position: relative; z-index: 1; }
.iv-fx i { position: absolute; top: -6%; left: var(--x); width: 8px; height: 8px; opacity: 0; }

.iv-paper .iv-fx i { width: 4px; height: 4px; border-radius: 50%; background: #c9a85c; top: var(--y); box-shadow: 0 0 8px 2px rgba(201, 168, 92, .45); animation: ivGlow calc(4s + var(--i) * .37s) ease-in-out calc(var(--i) * -.9s) infinite; }
.iv-night .iv-fx i { width: 3px; height: 3px; border-radius: 50%; background: #fff6d8; top: var(--y); box-shadow: 0 0 6px 1px rgba(255, 240, 200, .8); animation: ivGlow calc(2.4s + var(--i) * .29s) ease-in-out calc(var(--i) * -.7s) infinite; }
.iv-night .iv-fx i:nth-child(3n) { width: 2px; height: 2px; }
.iv-blush .iv-fx i { width: 11px; height: 8px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #f6c3cc, #e78fa2); animation: ivFall calc(9s + var(--i) * .6s) linear calc(var(--i) * -1.3s) infinite; }
.iv-sage .iv-fx i { width: 12px; height: 7px; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, #a8c09f, #6f9475); animation: ivFall calc(10s + var(--i) * .7s) linear calc(var(--i) * -1.4s) infinite; }
.iv-pop .iv-fx i { width: 7px; height: 12px; border-radius: 2px; background: #5b4cf0; animation: ivFall calc(6s + var(--i) * .4s) linear calc(var(--i) * -.8s) infinite; }
.iv-pop .iv-fx i:nth-child(3n) { background: #ff5d8f; } .iv-pop .iv-fx i:nth-child(3n+1) { background: #17142a; width: 9px; height: 9px; border-radius: 50%; }

@keyframes ivGlow { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: .9; transform: scale(1); } }
@keyframes ivFall {
  0% { opacity: 0; transform: translate3d(0, -10vh, 0) rotate(0); }
  10% { opacity: .9; }
  90% { opacity: .8; }
  100% { opacity: 0; transform: translate3d(60px, 110vh, 0) rotate(540deg); }
}
.bx-screen.iv-blush .iv-fx i, .bx-screen.iv-sage .iv-fx i, .bx-screen.iv-pop .iv-fx i { animation-name: ivFallMini; }
@keyframes ivFallMini { 0% { opacity: 0; transform: translateY(-20px) rotate(0); } 10% { opacity: .9; } 100% { opacity: 0; transform: translate(30px, 600px) rotate(400deg); } }

/* 봉투 열기 */
.iv-intro { display: none; }
.iv-anim .iv-intro { position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; background: var(--iv-bg); text-align: center; font-family: var(--iv-font); transition: opacity .7s ease .9s, visibility 0s linear 1.6s; }
.iv-intro.open { opacity: 0; visibility: hidden; }
.iv-intro-lead { margin: 18px 0 0; font-size: 13px; letter-spacing: .16em; color: var(--iv-accent); }
.iv-intro-title { margin: 0 0 10px; font-size: 24px; font-weight: 700; color: var(--iv-ink); max-width: 300px; word-break: keep-all; }
.iv-open { width: auto; min-width: 180px; border-radius: 999px; }

.iv-env { position: relative; width: 280px; height: 180px; perspective: 900px; }
.iv-env-back, .iv-env-front, .iv-env-flap, .iv-env-letter { position: absolute; inset: 0; }
.iv-env-back { background: color-mix(in srgb, var(--iv-accent) 22%, var(--iv-card)); border-radius: 10px; }
.iv-env-letter { inset: 12px 18px 10px; background: var(--iv-card); border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); transition: transform .8s cubic-bezier(.2, .8, .2, 1) .35s; }
.iv-env-front { background: color-mix(in srgb, var(--iv-accent) 14%, var(--iv-card)); clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); border-radius: 10px; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .5); }
.iv-env-flap { background: color-mix(in srgb, var(--iv-accent) 30%, var(--iv-card)); clip-path: polygon(0 0, 100% 0, 50% 58%); transform-origin: top; border-radius: 10px 10px 0 0; transition: transform .6s cubic-bezier(.4, 0, .2, 1); z-index: 2; }
.iv-seal { position: absolute; left: 50%; top: 58%; z-index: 3; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--iv-accent) 70%, #fff), var(--iv-accent) 60%, color-mix(in srgb, var(--iv-accent) 70%, #000)); color: var(--iv-on); font-size: 20px; font-weight: 700; box-shadow: 0 4px 10px rgba(0, 0, 0, .25), inset 0 0 0 3px rgba(255, 255, 255, .18); transition: transform .5s ease, opacity .4s ease; }
.iv-intro.open .iv-seal { transform: scale(.4); opacity: 0; }
.iv-intro.open .iv-env-flap { transform: rotateX(180deg); z-index: 0; }
.iv-intro.open .iv-env-letter { transform: translateY(-70px); }

/* 스크롤하면 하나씩 나타나요 (스크립트가 켜졌을 때만) */
.iv-anim .iv-rv { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.iv-anim .iv-rv.in { opacity: 1; transform: none; }
.iv-anim .iv-cover img { transform: scale(1.08); transition: transform 6s ease-out; }
.iv-anim .iv-cover.in img { transform: scale(1); }

/* 실시간 카운트다운 */
.iv-count { display: flex; gap: 6px; margin-top: 8px; font-family: 'Pretendard Variable', sans-serif; }
.iv-count span { display: grid; justify-items: center; min-width: 52px; padding: 8px 4px 6px; border-radius: 12px; background: var(--iv-card); border: 1px solid var(--iv-line); font-size: 11px; color: var(--iv-sub); }
.iv-count b { font-size: 20px; color: var(--iv-ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.iv-mini .iv-count span { min-width: 40px; padding: 6px 2px 4px; } .iv-mini .iv-count b { font-size: 15px; }

/* 제목 장식 */
.iv-head::after { content: ''; justify-self: center; width: 40px; height: 1px; margin-top: 6px; background: var(--iv-accent); opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  .iv-fx { display: none; }
  .iv-anim .iv-rv, .iv-anim .iv-cover img { opacity: 1; transform: none; transition: none; }
  .iv-intro, .iv-env-flap, .iv-env-letter, .iv-seal { transition-duration: .01s; transition-delay: 0s; }
}

html.iv-lock, html.iv-lock body { overflow: hidden; }

/* ───────── 청첩장 ───────── */
.iv-white { --iv-bg: #fbfaf7; --iv-card: #ffffff; --iv-ink: #22201c; --iv-sub: #8c867c; --iv-line: #ece7de; --iv-accent: #9c7d50; --iv-on: #fff; }
.iv-white .iv-fx i { width: 4px; height: 4px; border-radius: 50%; background: #d8c39a; top: var(--y); box-shadow: 0 0 6px 1px rgba(216, 195, 154, .5); animation: ivGlow calc(5s + var(--i) * .41s) ease-in-out calc(var(--i) * -.9s) infinite; }
.ivsw-white i { background: #fbfaf7 !important; box-shadow: inset 0 0 0 1px #e2dccf; }

.iv-wed { padding: 0 0 48px; gap: 0; max-width: 460px; }
.wd-sec { padding: 56px 26px 0; display: grid; gap: 14px; justify-items: center; text-align: center; }
.iv-mini .wd-sec { padding: 36px 16px 0; }
.wd-h { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: .78em; font-weight: 700; letter-spacing: .3em; color: var(--iv-accent); }
.wd-h::before, .wd-h::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .45; }

.wd-hero { display: grid; }
.wd-cover { margin: 0; border-radius: 0; aspect-ratio: 3 / 4; box-shadow: none; position: relative; }
.wd-cover::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to bottom, transparent, var(--iv-bg)); }
.wd-noimg { aspect-ratio: 3 / 2; margin: 24px; border: 1px solid var(--iv-line); outline: 1px solid var(--iv-line); outline-offset: 6px; }
.wd-hero-text { display: grid; gap: 10px; justify-items: center; padding: 8px 24px 0; margin-top: -24px; position: relative; }
.wd-names { margin: 0; font-size: 2.1em; font-weight: 400; letter-spacing: .04em; line-height: 1.3; }
.wd-names i { font-style: normal; font-size: .55em; color: var(--iv-accent); vertical-align: .35em; margin: 0 .3em; }
.wd-when, .wd-where { margin: 0; color: var(--iv-sub); font-size: .95em; letter-spacing: .04em; }
.wd-where { margin-top: -4px; }

.wd-greet .iv-msg { font-size: 1em; line-height: 2.05; }
.wd-parents { display: grid; gap: 10px; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--iv-line); width: 100%; }
.wd-par { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px; font-size: 1em; }
.wd-pn { color: var(--iv-ink); }
.wd-of { color: var(--iv-sub); font-size: .88em; }
.wd-par b { font-size: 1.15em; font-weight: 700; margin-left: 2px; }
.wd-late { font-size: .8em; color: var(--iv-sub); }

.wd-calgrid { width: 100%; max-width: 320px; display: grid; gap: 6px; font-family: 'Pretendard Variable', sans-serif; padding: 18px 8px; border-top: 1px solid var(--iv-line); border-bottom: 1px solid var(--iv-line); }
.wd-dows, .wd-days { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; }
.wd-dows span { font-size: 12px; color: var(--iv-sub); }
.wd-days span { display: grid; place-items: center; height: 36px; font-size: 14px; font-variant-numeric: tabular-nums; }
.wd-dows .sun, .wd-days .sun { color: #c0564b; }
.wd-days .on { position: relative; color: var(--iv-on); font-weight: 700; }
.wd-days .on::before { content: ''; position: absolute; width: 34px; height: 34px; border-radius: 50%; background: var(--iv-accent); z-index: -1; }
.iv-mini .wd-days span { height: 28px; font-size: 12px; } .iv-mini .wd-days .on::before { width: 26px; height: 26px; }
.wd-caltime { margin: 4px 0 0; color: var(--iv-sub); font-size: .95em; }
.wd-left { margin: 4px 0 0; font-size: .95em; color: var(--iv-sub); } .wd-left b { color: var(--iv-accent); }

.wd-grid { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.wd-ph { appearance: none; border: 0; padding: 0; aspect-ratio: 1; overflow: hidden; background: var(--iv-line); cursor: zoom-in; border-radius: 4px; }
.wd-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.wd-ph:hover img { transform: scale(1.04); }
.wd-ph.more { display: none; }
.wd-moreb { width: 100%; }

.wd-map .iv-pname span { font-weight: 400; color: var(--iv-sub); }
.wd-mapbtns { justify-content: center; }
.wd-trans { width: 100%; margin: 10px 0 0; display: grid; gap: 0; text-align: left; font-family: 'Pretendard Variable', sans-serif; }
.wd-trans div { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 14px 4px; border-top: 1px solid var(--iv-line); }
.wd-trans dt { font-weight: 700; font-size: 14px; color: var(--iv-accent); }
.wd-trans dd { margin: 0; font-size: 14px; line-height: 1.6; color: var(--iv-ink); }

.wd-note { margin: 0; color: var(--iv-sub); font-size: .9em; line-height: 1.8; }
.wd-acc { width: 100%; border: 1px solid var(--iv-line); border-radius: 14px; background: var(--iv-card); text-align: left; font-family: 'Pretendard Variable', sans-serif; overflow: hidden; }
.wd-acc summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; }
.wd-acc summary::-webkit-details-marker { display: none; }
.wd-acc summary::after { content: '⌄'; color: var(--iv-sub); transition: transform .2s; }
.wd-acc[open] summary::after { transform: rotate(180deg); }
.wd-acc ul { list-style: none; margin: 0; padding: 0 18px 8px; }
.wd-acc li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--iv-line); }
.wd-acc-who { font-size: 13px; color: var(--iv-sub); } .wd-acc-who b { color: var(--iv-ink); }
.wd-acc-num { grid-column: 1; font-size: 15px; font-variant-numeric: tabular-nums; }
.wd-acc .iv-btn { grid-column: 2; grid-row: 1 / span 2; min-height: 34px; }

.iv-wed .iv-form { width: 100%; text-align: left; }
.wd-two { grid-template-columns: repeat(2, 1fr); }
.wd-book .iv-form { margin-bottom: 8px; }
.wd-msgs { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 8px; text-align: left; font-family: 'Pretendard Variable', sans-serif; max-height: 420px; overflow: auto; }
.wd-msgs li { padding: 14px 16px; border-radius: 14px; background: var(--iv-card); border: 1px solid var(--iv-line); }
.wd-msgs b { font-size: 14px; } .wd-msgs p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--iv-ink); }
.iv-wed .iv-share { padding: 48px 26px 0; }
.iv-wed .iv-foot { padding-top: 28px; }

.wd-seal { font-size: 15px; letter-spacing: .05em; }
.wd-intro-date { margin: -6px 0 8px; color: var(--iv-sub); font-size: 14px; letter-spacing: .04em; }

/* 사진 크게 보기 */
.wd-lb { position: fixed; inset: 0; z-index: 40; background: rgba(12, 11, 10, .94); display: grid; place-items: center; }
.wd-lb[hidden] { display: none; }
.wd-lb img { max-width: 100vw; max-height: 86vh; object-fit: contain; }
.wd-lb button { position: absolute; border: 0; background: none; color: #fff; font-size: 34px; width: 52px; height: 52px; cursor: pointer; border-radius: 50%; }
.wd-lb button:focus-visible { outline: 2px solid #fff; }
.wd-lb-x { top: 10px; right: 10px; } .wd-lb-p { left: 6px; top: 50%; margin-top: -26px; } .wd-lb-n { right: 6px; top: 50%; margin-top: -26px; }
.wd-lb-c { position: absolute; bottom: 18px; color: rgba(255, 255, 255, .8); font: 500 13px/1 'Pretendard Variable', sans-serif; }

/* 샘플 표시 */
.wd-sample-bar { position: sticky; top: 0; z-index: 15; display: flex; justify-content: center; gap: 12px; padding: 10px 16px; background: rgba(34, 32, 28, .88); color: #fff; font: 600 13px/1.3 'Pretendard Variable', sans-serif; backdrop-filter: blur(6px); }
.wd-sample-bar a { color: #e8d4ad; }

/* 편집 화면 (청첩장) */
.ive-sub { margin: 10px 0 6px; font-weight: 700; }
.ive-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.ive-row input[type=text] { flex: 1; min-width: 0; }
.ive-row .check { white-space: nowrap; }
.ive-acc { display: grid; grid-template-columns: 1fr 1fr 1fr 1.6fr; gap: 6px; margin-bottom: 6px; }
@media (max-width: 560px) { .ive-acc { grid-template-columns: 1fr 1fr; } }
.ive-photos { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.ive-photos li { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f3f4f6; }
.ive-photos img { width: 100%; height: 100%; object-fit: cover; }
.ive-photos span { position: absolute; left: 4px; top: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; }
.ive-photos button { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; line-height: 1; }
.ive-kinds small { font-size: 11px; color: #9a7b4f; font-weight: 600; }
.ivl-wed a { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.ivl-wed img { border-radius: 10px; object-fit: cover; }
.ivl-wed em { font-style: normal; font-size: 12px; color: #9a7b4f; margin-left: 4px; }
.ivl-wed span { color: #5b4cf0 !important; font-weight: 600; }
.ive-row .check { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 4px; margin: 0 !important; font-size: 14px; }
.ive-row .check input { width: auto !important; margin: 0; }

/* 배경음악 버튼 */
.wd-bgm { position: fixed; top: 14px; right: 14px; z-index: 18; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--iv-line); background: color-mix(in srgb, var(--iv-card) 85%, transparent); backdrop-filter: blur(6px); display: grid; place-items: center; cursor: pointer; }
.wd-sample-bar ~ .wd-bgm, body:has(.wd-sample-bar) .wd-bgm { top: 52px; }
.wd-bgm-bars { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.wd-bgm-bars i { width: 3px; height: 5px; border-radius: 2px; background: var(--iv-accent); }
.wd-bgm[aria-pressed=true] .wd-bgm-bars i { animation: wdBar .9s ease-in-out infinite; }
.wd-bgm[aria-pressed=true] .wd-bgm-bars i:nth-child(2) { animation-delay: -.3s; } .wd-bgm[aria-pressed=true] .wd-bgm-bars i:nth-child(3) { animation-delay: -.6s; }
.wd-bgm[aria-pressed=false]::after { content: ''; position: absolute; width: 22px; height: 1.5px; background: var(--iv-sub); transform: rotate(-45deg); }
@keyframes wdBar { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* 편집: 음악, 순서 */
.ive-bgm { display: flex; gap: 8px; align-items: center; }
.ive-bgm select { flex: 1; }
.ive-order { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: o; }
.ive-order li { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid #e6e8ee; border-radius: 10px; background: #fff; counter-increment: o; }
.ive-order li::before { content: counter(o); width: 20px; color: #9aa0ab; font-size: 13px; }
.ive-order span { flex: 1; font-size: 14px; }
.ive-order button { width: 30px; height: 30px; border: 1px solid #e6e8ee; border-radius: 8px; background: #fff; cursor: pointer; }
.ive-order button:disabled { opacity: .35; cursor: default; }
.ivl-main .wd-promo, .ive-promo { margin: 0 0 22px; }
.ive-promo { margin-top: -8px; }

/* 편집 화면: 칸 이름 옆 작은 안내 글씨를 같은 줄에 */
#ive-form label > small, #ive-form legend > small { display: inline !important; margin-left: 6px; font-weight: 400; color: #8b919c; font-size: 12px; }

/* ───────── 청첩장 템플릿 (배치가 다르게) ───────── */
.iv-wed { --wd-serif: 'Hahmlet', 'Gowun Batang', serif; background: var(--iv-bg); }

/* 에디토리얼: 사진 위에 큰 이름, 왼쪽 정렬 */
.wd-t-editorial .wd-hero { position: relative; }
.wd-t-editorial .wd-cover { aspect-ratio: 3 / 4.6; }
.wd-t-editorial .wd-cover::after { height: 62%; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .62)); }
.wd-t-editorial .wd-hero-text { position: absolute; left: 0; right: 0; bottom: 26px; margin: 0; padding: 0 26px; justify-items: start; text-align: left; color: #fff; }
.wd-t-editorial .wd-names { font-family: var(--wd-serif); font-weight: 200; font-size: 3.1em; line-height: 1.02; letter-spacing: -.02em; display: grid; }
.wd-t-editorial .wd-names i { display: block; font-size: .32em; margin: .3em 0 .2em; color: rgba(255, 255, 255, .8); vertical-align: 0; }
.wd-t-editorial .wd-hero-text .iv-lead, .wd-t-editorial .wd-when, .wd-t-editorial .wd-where { color: rgba(255, 255, 255, .85); }
.wd-t-editorial .wd-noimg + .wd-hero-text { position: static; color: var(--iv-ink); padding-top: 60px; }
.wd-t-editorial .wd-sec { justify-items: start; text-align: left; }
.wd-t-editorial .wd-h { font-family: var(--wd-serif); font-weight: 300; font-size: 1.5em; letter-spacing: -.01em; color: var(--iv-ink); }
.wd-t-editorial .wd-h::before, .wd-t-editorial .wd-h::after { display: none; }
.wd-t-editorial .wd-par { justify-content: flex-start; }
.wd-t-editorial .wd-calgrid, .wd-t-editorial .wd-caltime, .wd-t-editorial .wd-left { justify-self: stretch; text-align: left; }
.wd-t-editorial .iv-count { justify-content: flex-start; }

/* 필름: 어두운 바탕, 흰 테두리 사진 */
.wd-t-film { --iv-bg: #151515; --iv-card: #1e1e1e; --iv-ink: #efe9df; --iv-sub: #9d978d; --iv-line: #303030; --iv-accent: #d9c8a6; --iv-on: #151515; color: var(--iv-ink); }
.wd-t-film .wd-cover { margin: 30px 30px 0; aspect-ratio: 4 / 5; border: 10px solid #f1eee7; border-bottom-width: 46px; border-radius: 2px; transform: rotate(-1.2deg); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .8); }
.wd-t-film .wd-cover::after { display: none; }
.wd-t-film .wd-hero-text { margin-top: 26px; }
.wd-t-film .wd-names { font-family: var(--wd-serif); font-weight: 300; }
.wd-t-film .wd-ph { border: 5px solid #f1eee7; border-radius: 2px; }
.wd-t-film .wd-grid { gap: 8px; }
.wd-t-film .wd-acc, .wd-t-film .wd-msgs li, .wd-t-film .iv-btn, .wd-t-film .iv-count span { background: var(--iv-card); }
.wd-t-film .iv-main { background: var(--iv-accent); color: var(--iv-on); }

/* 미니멀: 사진 없이 글자와 여백 */
.wd-t-minimal .wd-cover { display: none; }
.wd-t-minimal .wd-hero-text { margin: 0; padding: 110px 28px 56px; border-bottom: 1px solid var(--iv-ink); }
.wd-t-minimal .wd-names { font-family: var(--wd-serif); font-weight: 200; font-size: 3.4em; line-height: 1.05; display: grid; gap: .08em; }
.wd-t-minimal .wd-names i { display: block; font-size: .3em; color: var(--iv-sub); vertical-align: 0; margin: .2em 0; }
.wd-t-minimal .wd-h { font-family: var(--wd-serif); font-weight: 300; font-size: 1.2em; letter-spacing: .02em; color: var(--iv-ink); }
.wd-t-minimal .wd-h::before, .wd-t-minimal .wd-h::after { background: var(--iv-ink); opacity: 1; width: 18px; }
.wd-t-minimal .wd-grid { grid-template-columns: 1fr; gap: 10px; }
.wd-t-minimal .wd-ph { aspect-ratio: 4 / 5; border-radius: 0; }
.wd-t-minimal .wd-ph.more { display: none; }
.wd-t-minimal .iv-btn, .wd-t-minimal .wd-acc, .wd-t-minimal .wd-msgs li { border-radius: 0; }
.wd-t-minimal .iv-main { background: var(--iv-ink); border-color: var(--iv-ink); color: var(--iv-bg); }

/* 편집: 템플릿 고르기 */
.ive-tpls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ive-tpls button { display: grid; gap: 4px; text-align: left; padding: 10px; border: 1px solid #e6e8ee; border-radius: 12px; background: #fff; cursor: pointer; font: inherit; }
.ive-tpls button[aria-pressed=true] { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.ive-tpls small { color: #6b7280; font-size: 12px; line-height: 1.4; }
.tpl-thumb { display: block; height: 70px; border-radius: 6px; background: #f3f3f0; position: relative; overflow: hidden; }
.tpl-classic { background: linear-gradient(#cdbfae 0 58%, #fbfaf7 58%); }
.tpl-classic::after { content: ''; position: absolute; left: 30%; right: 30%; top: 70%; height: 4px; background: #333; box-shadow: 0 8px 0 -1px #aaa; }
.tpl-editorial { background: linear-gradient(transparent 40%, rgba(0, 0, 0, .55)), linear-gradient(135deg, #b9a38a, #6d5b4b); }
.tpl-editorial::after { content: ''; position: absolute; left: 10px; bottom: 10px; width: 46%; height: 9px; background: #fff; box-shadow: 0 -14px 0 #fff; }
.tpl-film { background: #151515; }
.tpl-film::after { content: ''; position: absolute; left: 34%; top: 10px; width: 32%; height: 44px; background: #b9a38a; border: 3px solid #f1eee7; border-bottom-width: 10px; transform: rotate(-3deg); }
.tpl-minimal { background: #fff; border: 1px solid #e6e8ee; }
.tpl-minimal::after { content: ''; position: absolute; left: 12px; top: 18px; width: 50%; height: 10px; background: #111; box-shadow: 0 18px 0 #111, 0 34px 0 -3px #ccc; }

/* 편집: 섹션 구성 */
.ive-order li { flex-wrap: nowrap; }
.ive-order li.off .ive-sec { opacity: .45; }
.ive-on input { width: 18px !important; height: 18px; margin: 0; }
.ive-sec { flex: 1; display: grid; gap: 2px; min-width: 0; }
.ive-sec small { font-size: 11px; color: #8b919c; }
.ive-sec input { border: 0 !important; padding: 2px 0 !important; background: none !important; font-size: 14px; min-height: 0 !important; }
.ive-parent-body { display: grid; gap: 10px; margin-top: 10px; }

/* 편집: 카톡 미리보기 */
.ive-kakao { display: grid; max-width: 300px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #e3e3e3; box-shadow: 0 6px 18px rgba(0, 0, 0, .06); margin-top: 6px; }
.ive-kakao img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: #f1f1f1; display: block; }
.ive-kakao div { display: grid; gap: 3px; padding: 10px 12px 12px; }
.ive-kakao b { font-size: 14px; } .ive-kakao span { font-size: 12px; color: #555; } .ive-kakao small { font-size: 11px; color: #999; }
.ive-url-p { display: flex; align-items: center; gap: 8px; } .ive-url-p span { font-size: 12px; font-weight: 700; color: #9c7d50; }
#ive-form label.check { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-weight: 500; }
#ive-form label.check input { width: 18px !important; height: 18px !important; min-height: 0 !important; margin: 0; flex: none; }
.ive-check.ok { color: #1f8a4c; } .ive-check.bad { color: #b4232f; }
.ive-recode { display: flex; gap: 8px; align-items: center; margin-top: 12px; } .ive-recode .field-slug { flex: 1; }
.ive-lock { display: grid; gap: 6px; margin-top: 14px; padding: 16px; border-radius: 14px; background: #f7f5f0; border: 1px solid #ece6da; }
.ive-lock span { font-size: 14px; color: #5f5a52; line-height: 1.6; }

/* ───────── 템플릿 2차: 레터 · 뮤지엄 · 영화 포스터 · 초대권 · 그때와 지금 · 스케치북 ───────── */

/* 레터: 두꺼운 종이 카드, 이중 테두리, 이니셜 */
.wd-t-letter { --iv-bg: #ece6dc; --iv-card: #fbf8f2; --iv-ink: #2a2622; --iv-sub: #7d746a; --iv-line: #ddd4c6; --iv-accent: #6b5a45; --iv-on: #fff; }
.wd-t-letter .wd-hero { padding: 26px 18px 0; }
.lt-card { background: var(--iv-card); padding: 34px 22px 30px; outline: 1px solid var(--iv-line); outline-offset: -10px; box-shadow: 0 1px 0 #fff inset, 0 24px 40px -26px rgba(60, 45, 20, .45); display: grid; justify-items: center; gap: 20px; text-align: center; }
.lt-mono { font-family: var(--wd-serif); font-weight: 300; font-size: 2em; letter-spacing: .06em; color: var(--iv-accent); display: flex; align-items: baseline; gap: .2em; }
.lt-mono i { font-style: italic; font-size: .6em; color: var(--iv-sub); }
.lt-photo { margin: 0; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
.lt-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-t-letter .wd-hero-text { margin: 0; padding: 0; }
.wd-t-letter .wd-names { font-family: var(--wd-serif); font-weight: 300; font-size: 1.9em; }
.wd-t-letter .wd-sec { margin: 0 18px; padding: 44px 18px 0; }

/* 뮤지엄: 넓은 여백 액자와 명판 */
.wd-t-museum { --iv-bg: #e9e8e4; --iv-card: #ffffff; --iv-ink: #1d1d1b; --iv-sub: #77756f; --iv-line: #d8d6d0; --iv-accent: #1d1d1b; --iv-on: #fff; }
.ms-wall { padding: 40px 30px 0; display: grid; gap: 18px; }
.ms-frame { background: #fff; padding: 26px; border: 6px solid #2b2925; box-shadow: 0 30px 40px -24px rgba(0, 0, 0, .45); }
.ms-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.ms-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-plate { justify-self: end; width: 72%; padding: 12px 14px; background: #fff; border: 1px solid var(--iv-line); text-align: left; display: grid; gap: 3px; font-family: 'Pretendard Variable', sans-serif; }
.ms-plate b { font-size: 15px; } .ms-plate span { font-size: 13px; font-style: italic; color: var(--iv-sub); } .ms-plate small { font-size: 11px; color: var(--iv-sub); letter-spacing: .04em; }
.ms-when { margin: 26px 0 0; text-align: center; }
.wd-t-museum .wd-h { font-family: 'Pretendard Variable', sans-serif; font-weight: 600; letter-spacing: .12em; color: var(--iv-ink); }

/* 영화 포스터 */
.wd-t-poster { --iv-bg: #0f0f10; --iv-card: #19191b; --iv-ink: #f4efe6; --iv-sub: #a29d93; --iv-line: #2c2c2f; --iv-accent: #e8c26a; --iv-on: #0f0f10; color: var(--iv-ink); }
.ps-poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; display: grid; align-content: space-between; color: #fff; }
.ps-photo { position: absolute; inset: 0; margin: 0; }
.ps-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.05); }
.ps-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 28%, transparent 48%, rgba(0, 0, 0, .9)); }
.ps-top, .ps-title, .ps-credits { position: relative; z-index: 1; }
.ps-top { padding: 22px 18px 0; font-size: .85em; letter-spacing: .1em; opacity: .9; }
.ps-title { margin: auto 0 0; padding: 0 16px; font-family: 'Black Han Sans', var(--wd-serif); font-weight: 400; font-size: 3.6em; line-height: .95; letter-spacing: -.01em; display: grid; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.ps-title i { font-style: normal; font-size: .4em; color: var(--iv-accent); margin: .1em 0; }
.ps-credits { padding: 14px 16px 20px; border-top: 1px solid rgba(255, 255, 255, .3); margin: 12px 16px 0; font-family: 'Pretendard Variable', sans-serif; font-size: 12px; line-height: 1.7; opacity: .92; }
.ps-credits p { margin: 0; } .ps-credits b { font-weight: 700; margin-right: 4px; }
.wd-t-poster .wd-h { font-family: 'Black Han Sans', sans-serif; font-weight: 400; letter-spacing: .04em; color: var(--iv-accent); }
.wd-t-poster .iv-main { background: var(--iv-accent); color: #111; }
.wd-t-poster .wd-acc, .wd-t-poster .wd-msgs li, .wd-t-poster .iv-btn { background: var(--iv-card); }

/* 초대권: 절취선, 바코드 */
.wd-t-ticket { --iv-bg: #f2ede4; --iv-card: #fffdf8; --iv-ink: #23211e; --iv-sub: #7b756b; --iv-line: #e1d9cb; --iv-accent: #d0553f; --iv-on: #fff; }
.tk-photo { margin: 22px 18px 0; aspect-ratio: 4 / 3.6; overflow: hidden; border-radius: 14px 14px 0 0; }
.tk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-ticket { margin: 0 18px; display: grid; grid-template-columns: 1fr 84px; background: var(--iv-card); border-radius: 0 0 14px 14px; box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .35); position: relative; text-align: left; }
.tk-main { padding: 18px 16px 20px; border-right: 2px dashed var(--iv-line); }
.tk-kind { margin: 0 0 6px; font: 700 11px/1 'Pretendard Variable', sans-serif; letter-spacing: .14em; color: var(--iv-accent); }
.wd-t-ticket .wd-names { font-family: 'Pretendard Variable', sans-serif; font-weight: 800; font-size: 1.6em; letter-spacing: -.02em; }
.tk-main dl { margin: 12px 0 0; display: grid; gap: 6px; font-family: 'Pretendard Variable', sans-serif; }
.tk-main dl div { display: grid; grid-template-columns: 36px 1fr; gap: 8px; font-size: 13px; }
.tk-main dt { color: var(--iv-sub); } .tk-main dd { margin: 0; }
.tk-stub { display: grid; justify-items: center; align-content: center; gap: 4px; padding: 10px 6px; font-family: 'Pretendard Variable', sans-serif; }
.tk-stub span { font-size: 10px; color: var(--iv-sub); } .tk-stub b { font-size: 20px; letter-spacing: .04em; }
.tk-bar { width: 52px; height: 34px; background: repeating-linear-gradient(90deg, #23211e 0 2px, transparent 2px 4px, #23211e 4px 5px, transparent 5px 8px); margin-top: 6px; }
.tk-ticket::before, .tk-ticket::after { content: ''; position: absolute; right: 74px; width: 20px; height: 20px; border-radius: 50%; background: var(--iv-bg); }
.tk-ticket::before { top: -10px; } .tk-ticket::after { bottom: -10px; }
.wd-t-ticket .wd-h { color: var(--iv-accent); }

/* 그때와 지금: 어린 시절 사진 */
.wd-t-thennow { --iv-bg: #fbf4e8; --iv-card: #fffaf1; --iv-ink: #3a2e24; --iv-sub: #8d7b68; --iv-line: #eedfc8; --iv-accent: #e07a5f; --iv-on: #fff; --iv-font: 'Gaegu', 'Pretendard Variable', sans-serif; }
.wd-t-thennow .wd-hero { padding: 34px 22px 0; display: grid; justify-items: center; gap: 14px; text-align: center; }
.tn-lead { margin: 0; font-size: 1.2em; color: var(--iv-accent); }
.tn-kids { display: flex; align-items: center; gap: 12px; }
.tn-kids figure { margin: 0; display: grid; justify-items: center; gap: 8px; }
.tn-kids img, .tn-empty { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 8px 18px -8px rgba(80, 50, 20, .45); }
.tn-empty { display: grid; place-items: center; background: var(--iv-line); color: var(--iv-sub); font-size: .9em; line-height: 1.2; }
.tn-kids figcaption { font-size: 1.15em; }
.tn-kids figure:first-child { transform: rotate(-4deg); } .tn-kids figure:last-child { transform: rotate(4deg); }
.tn-plus { font-size: 2em; color: var(--iv-accent); }
.tn-then { margin: 8px 0 0; font-size: 1.4em; }
.tn-now { margin: 0; width: 100%; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; }
.tn-now::after { display: none; }
.wd-t-thennow .wd-names { font-family: 'Gaegu', sans-serif; font-weight: 700; font-size: 2.4em; }
.wd-t-thennow .wd-h { font-family: 'Gaegu', sans-serif; font-weight: 700; font-size: 1.4em; letter-spacing: 0; }
.wd-t-thennow .iv-btn, .wd-t-thennow .wd-acc, .wd-t-thennow .wd-msgs li { border-radius: 18px; }

/* 스케치북: 손글씨, 테이프 */
.wd-t-sketch { --iv-bg: #fffdf3; --iv-card: #fff; --iv-ink: #2f2b27; --iv-sub: #7d776e; --iv-line: #ebe5d3; --iv-accent: #3f7fd1; --iv-on: #fff; --iv-font: 'Gaegu', 'Pretendard Variable', sans-serif; background-image: linear-gradient(#efe8d4 1px, transparent 1px); background-size: 100% 30px; }
.wd-t-sketch .wd-hero { padding: 36px 26px 0; display: grid; justify-items: center; gap: 14px; text-align: center; }
.sk-lead { margin: 0; font-size: 1.3em; color: var(--iv-accent); }
.sk-photo-wrap { position: relative; width: 88%; transform: rotate(-2deg); }
.sk-photo { margin: 0; padding: 12px 12px 40px; background: #fff; box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .35); }
.sk-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.sk-tape { position: absolute; width: 92px; height: 26px; background: rgba(250, 214, 120, .75); top: -10px; }
.sk-tape.a { left: -14px; transform: rotate(-24deg); } .sk-tape.b { right: -14px; transform: rotate(22deg); background: rgba(150, 200, 235, .75); }
.sk-names { font-family: 'Gaegu', sans-serif; font-weight: 700; font-size: 2.6em; position: relative; }
.sk-names i { font-style: normal; color: #e25c5c; }
.sk-names::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -4px; height: 8px; background: rgba(250, 214, 120, .6); z-index: -1; border-radius: 4px; }
.sk-when { font-size: 1.2em; }
.wd-t-sketch .wd-h { font-family: 'Gaegu', sans-serif; font-weight: 700; font-size: 1.5em; letter-spacing: 0; color: var(--iv-accent); }
.wd-t-sketch .wd-h::before, .wd-t-sketch .wd-h::after { display: none; }
.wd-t-sketch .wd-ph { transform: rotate(var(--r, -1.5deg)); border: 5px solid #fff; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .3); }
.wd-t-sketch .wd-ph:nth-child(even) { --r: 1.8deg; }

/* 편집: 새 템플릿 썸네일 */
.tpl-letter { background: #ece6dc; } .tpl-letter::after { content: ''; position: absolute; inset: 8px 22%; background: #fbf8f2; outline: 1px solid #ddd4c6; outline-offset: -4px; }
.tpl-museum { background: #e9e8e4; } .tpl-museum::after { content: ''; position: absolute; left: 30%; top: 8px; width: 40%; height: 42px; background: #b9a38a; border: 5px solid #fff; outline: 3px solid #2b2925; }
.tpl-poster { background: linear-gradient(transparent 30%, rgba(0, 0, 0, .8)), linear-gradient(135deg, #6d5b4b, #2a2420); } .tpl-poster::after { content: '도윤♥서연'; position: absolute; left: 8px; bottom: 6px; color: #fff; font: 400 16px 'Black Han Sans', sans-serif; }
.tpl-ticket { background: #f2ede4; } .tpl-ticket::after { content: ''; position: absolute; left: 12px; right: 12px; top: 18px; height: 34px; background: #fffdf8; border-right: 18px solid #fffdf8; box-shadow: inset -22px 0 0 -20px #d9cfbd; }
.tpl-thennow { background: #fbf4e8; } .tpl-thennow::after { content: ''; position: absolute; left: 22%; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: #d9b99a; box-shadow: 44px 0 0 #c9a58a; }
.tpl-sketch { background: #fffdf3 linear-gradient(#efe8d4 1px, transparent 1px) 0 0 / 100% 10px; } .tpl-sketch::after { content: ''; position: absolute; left: 30%; top: 10px; width: 40%; height: 44px; background: #b9a38a; border: 4px solid #fff; transform: rotate(-4deg); box-shadow: -8px -6px 0 -2px rgba(250, 214, 120, .9); }

/* 편집: 어린 시절 사진 */
.ive-kids { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ive-kid { display: grid; gap: 6px; justify-items: start; }
.ive-kid img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #f1f1f1; }
.wd-sample-bar { flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wd-tplnav { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; scrollbar-width: none; order: 3; flex-basis: 100%; justify-content: flex-start; }
.wd-tplnav::-webkit-scrollbar { display: none; }
.wd-tplnav a { flex: none; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: #fff !important; text-decoration: none; font-weight: 500; font-size: 12px; }
.wd-tplnav a[aria-current] { background: #fff; color: #000 !important; }
.wd-sample-make { margin-left: auto; padding: 4px 12px; background: #fff; color: #000 !important; text-decoration: none; }
