/* ════════ 청첩장 공통 ════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: #ece8e3; min-height: 100vh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.inv {
  --bg: #ffffff; --bg2: #f7f5f2; --fg: #2f2a26; --muted: #6f665f; --accent: #b08d6e; --on-accent: #fff;
  --accent-text: var(--accent); --accent-strong: var(--accent);
  --line: #e6e0d9; --card: #ffffff; --radius: 12px; --btn-radius: 10px;
  --font-body: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  --font-display: 'Nanum Myeongjo', serif;
  --font-en: 'Cormorant Garamond', serif;
  max-width: 430px; margin: 0 auto; min-height: 100vh; position: relative; overflow: hidden;
  background: var(--bg); color: var(--fg); font-family: var(--font-body);
  font-size: 16px; line-height: 1.72; font-variant-numeric: lining-nums; word-break: keep-all; overflow-wrap: break-word;
  box-shadow: 0 0 40px rgba(0, 0, 0, .06);
}
.inv a { color: inherit; }
.no-photo { width: 100%; aspect-ratio: 4/5; display: grid; place-items: center; background: var(--bg2); color: var(--muted); font-size: 13px; }

.sec { padding: 76px 28px; text-align: center; position: relative; scroll-margin-top: 12px; }
.sec:nth-of-type(even) { background: var(--bg2); }
.sec-head { margin-bottom: 34px; }
.sec-eyebrow { font-family: var(--font-en); font-size: 13px; letter-spacing: .32em; color: var(--accent-text); text-transform: uppercase; }
.sec-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-top: 6px; letter-spacing: -.01em; }
.sec-desc { color: var(--muted); font-size: 15px; margin-bottom: 26px; text-wrap: balance; max-width: 30em; margin-inline: auto; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; min-height: 44px;
  border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--card); color: var(--fg);
  font-size: 14px; text-decoration: none; transition: transform .15s, opacity .15s; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); min-width: 200px; font-size: 15px; font-weight: 600; min-height: 50px; }
.btn-line { background: transparent; margin-top: 30px; min-width: 160px; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.inv .btn-pay { background: #ffeb00; border-color: #ffeb00; color: #191919; }
.ic { width: 20px; height: 20px; flex: none; }
.btn-kakao { background: #fee500; border-color: #fee500; color: #191919; }

/* 인사말 */
.greet-body { font-family: var(--font-display); font-size: 16px; line-height: 2.1; text-wrap: pretty; }
.families { margin-top: 40px; display: grid; gap: 10px; font-size: 15px; }
.family { display: flex; justify-content: center; align-items: baseline; gap: 2px; flex-wrap: wrap; }
.fam-parents { font-weight: 600; }
.fam-rel { color: var(--muted); margin-right: 8px; font-size: 14px; }
.fam-name { font-weight: 700; font-size: 16px; }
.deceased { font-style: normal; font-size: 12px; color: var(--muted); margin-right: 2px; }

/* 캘린더 */
.cal-date { font-family: var(--font-en); font-size: 28px; letter-spacing: .06em; }
.cal-date span { font-size: 18px; color: var(--accent-text); }
.cal-time { color: var(--fg); font-size: 17px; font-weight: 600; margin-top: 4px; }
.cal-save { margin-top: 22px; }
.cal-wrap { margin: 28px auto 0; max-width: 320px; padding: 24px 12px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-month { font-family: var(--font-en); letter-spacing: .25em; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.cal-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.cal-table th { font-weight: 500; font-size: 13px; color: var(--fg); opacity: .75; padding: 6px 0; }
.cal-table td { padding: 4px 0; height: 38px; }
.cal-table td span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.cal-table .sun { color: #d4675b; }
.cal-table .sat { color: #5b7fb5; }
.cal-table td.on span { background: var(--accent-strong); color: var(--on-accent); font-weight: 700; }
.countdown { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; }
.countdown div { display: grid; min-width: 54px; }
.countdown b { font-family: var(--font-en); font-size: 28px; font-weight: 500; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.countdown span { font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.countdown i { font-style: normal; color: var(--muted); padding-bottom: 14px; }
.dday-text { margin-top: 18px; font-size: 14px; }
.dday-text b { color: var(--accent-text); }

/* 갤러리 */
.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.g-item { border: 0; padding: 0; background: var(--bg2); aspect-ratio: 1; overflow: hidden; border-radius: 4px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.05); }
.g-slide { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -28px; padding: 0 28px 6px; scrollbar-width: none; }
.g-slide::-webkit-scrollbar { display: none; }
.g-slide .g-item { flex: 0 0 78%; aspect-ratio: 4/5; scroll-snap-align: center; border-radius: var(--radius); }
.g-hint { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* 예식 요약 카드 */
.sec-summary { padding: 36px 20px 44px; }
.sec-summary .sec-head { margin-bottom: 14px; }
.sm-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 18px; text-align: left; position: relative; }
.sm-dday { position: absolute; top: 14px; right: 14px; font-size: 13px; font-weight: 700; color: var(--accent-text); border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; line-height: 1.5; }
.sm-rows { display: grid; gap: 14px; }
.sm-row { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: baseline; }
.sm-k { font-size: 14px; font-weight: 700; color: var(--accent-text); }
.sm-v { display: grid; margin: 0; }
.sm-date, .sm-place { font-size: 18px; font-weight: 700; line-height: 1.4; }
.sm-time { font-size: 22px; font-weight: 800; line-height: 1.3; }
.sm-date, .sm-time { font-variant-numeric: lining-nums tabular-nums; }
.sm-hall { display: inline-block; width: max-content; max-width: 100%; margin-top: 4px; font-size: 16px; font-weight: 700; background: var(--bg2); border-radius: 6px; padding: 2px 10px; }
.sm-addr { font-size: 14px; color: var(--muted); margin-top: 4px; }
.sm-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.sm-acts.sm-acts-2 { grid-template-columns: 1fr 1fr; }
.sm-acts:has(> :nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.sm-act { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 72px; padding: 12px 4px; border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--bg); font-size: 14px; font-weight: 600; color: var(--fg); line-height: 1.3; }
.sm-act .ic { width: 24px; height: 24px; color: var(--accent-text); }
.sm-act:active { transform: scale(.97); }

/* 오시는 길 */
.loc-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.loc-hall { display: inline-block; margin-top: 8px; font-size: 17px; font-weight: 700; padding: 4px 14px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); }
.loc-addr { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--fg); font-size: 15px; margin-top: 10px; }
.loc-copy { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; }
.loc-copy .ic { width: 16px; height: 16px; }
.loc-map { position: relative; margin: 24px -28px 0; height: 240px; background: var(--bg2); }
.loc-map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); pointer-events: none; }
.inv .loc-map-open { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.loc-btns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.loc-btns .btn { min-height: 48px; padding: 10px 6px; font-size: 15px; font-weight: 600; }
.loc-btn .ic { width: 18px; height: 18px; color: var(--accent-text); }
.loc-trans { text-align: left; margin-top: 30px; display: grid; gap: 18px; }
.loc-trans div.lt { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.loc-trans dt { display: contents; font-weight: 700; font-size: 15px; color: var(--accent-text); }
.lt-ic { grid-row: span 2; align-self: start; width: 36px; height: 36px; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; color: var(--accent-text); }
.lt-ic .ic { width: 20px; height: 20px; }
.loc-trans dd { font-size: 15px; grid-column: 2; }

/* 안내 사항 */
.nt-list { display: grid; gap: 10px; text-align: left; }
.nt-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.nt-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.nt-title::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-strong); margin: 0 8px 3px 0; }
.nt-body { font-size: 15px; color: var(--fg); }

/* 계좌 */
.acc-list { display: grid; gap: 10px; text-align: left; }
.acc-group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.acc-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border: 0; background: transparent; font-weight: 600; font-size: 15px; }
.acc-tt { display: grid; text-align: left; }
.acc-holders { font-size: 13px; font-weight: 400; color: var(--muted); }
.chev { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .3s; margin-top: -4px; }
.acc-group.open .chev { transform: rotate(-135deg); margin-top: 4px; }
.acc-body { display: none; border-top: 1px solid var(--line); }
.acc-group.open .acc-body { display: block; }
.acc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; }
.acc-row + .acc-row { border-top: 1px dashed var(--line); }
.acc-info { min-width: 0; }
.acc-who { font-size: 14px; color: var(--fg); }
.acc-who b { color: var(--accent-text); margin-right: 4px; }
.acc-bank { display: block; font-size: 13px; color: var(--muted); }
.acc-no { display: block; font-size: 17px; font-weight: 700; white-space: nowrap; letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums; }
.acc-acts { display: grid; gap: 6px; flex: none; }
.acc-acts .btn { min-width: 72px; }
@media (max-width: 374px) { .acc-row { flex-wrap: wrap; } .acc-acts { grid-auto-flow: column; width: 100%; } }

/* 방명록 */
.gb-form { display: grid; gap: 8px; text-align: left; }
.gb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gb-form input, .gb-form textarea, .fld input, .fld select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 16px; min-height: 48px; outline: none; }
.gb-form input:focus, .gb-form textarea:focus, .fld input:focus { border-color: var(--accent); }
.gb-form textarea { resize: vertical; min-height: 84px; }
.gb-list { list-style: none; margin-top: 24px; display: grid; gap: 10px; text-align: left; }
.gb-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.gb-meta { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; font-size: 14px; }
.gb-meta span { color: var(--muted); font-size: 13px; }
.gb-del { width: 44px; height: 44px; margin: -12px -12px -12px auto; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; flex: none; }
.gb-item p { font-size: 14px; }
.gb-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 0; }

/* 엔딩 */
.sec-ending { padding-top: 0; }
.end-photo { margin: 0 -28px 40px; }
.end-photo img { width: 100%; }
.sec-ending .sec-eyebrow { font-size: 18px; margin-top: 60px; }
.end-photo + .sec-eyebrow { margin-top: 0; }
.end-msg { font-family: var(--font-display); margin-top: 14px; }
.share-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
/* 하객 사진 보내기 */
.sec-photoUpload .btn-main { text-decoration: none; }
.ph-hint { margin-top: 12px; font-size: 13px; color: var(--muted); }
.inv-foot { text-align: center; font-size: 11px; color: var(--muted); padding: 26px 0 34px; letter-spacing: .05em; opacity: .7; }

/* 모달 · 라이트박스 · 토스트 */
.modal, .lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .5); }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-card { position: relative; width: 100%; max-width: 380px; max-height: 88vh; max-height: calc(100dvh - 40px); overflow: auto; background: var(--bg); color: var(--fg); border-radius: 16px; padding: 28px 22px 22px; text-align: left; animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(16px); opacity: 0; } }
.modal-card h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 18px; text-align: center; }
.modal-x { position: absolute; top: 4px; right: 4px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); width: 44px; height: 44px; }
.modal-card form { display: grid; gap: 12px; }
.modal-card .btn-main { width: 100%; margin-top: 4px; }
.fld { display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--fg); }
fieldset.fld { border: 0; padding: 0; margin: 0; min-width: 0; }
.fld legend { font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 6px; padding: 0; }
.fld input, .fld select { color: var(--fg); font-weight: 400; }
.req { color: #c0392b; font-style: normal; }
.opt { font-weight: 400; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 13px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-weight: 500; cursor: pointer; line-height: 1.4; }
.seg input:checked + span { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 22px; line-height: 1; }
.stepper output { min-width: 32px; text-align: center; font-size: 20px; font-weight: 700; }
.stepper span { font-weight: 400; margin-left: -6px; }
.rsvp-form.is-no .fld-count, .rsvp-form.is-no .fld-meal { display: none; }
.rsvp-due { display: inline-flex; gap: 6px; align-items: center; font-size: 15px; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: var(--bg2); color: var(--fg); }
.rsvp-due b { color: var(--accent-text); }
.rsvp-due .ic { width: 18px; height: 18px; color: var(--accent-text); }
.rsvp-form .rsvp-due { justify-self: center; margin-bottom: 0; }
.rsvp-done { text-align: center; display: grid; gap: 10px; padding: 10px 0; }
.rsvp-done[hidden], .rsvp-form[hidden] { display: none; }
.rsvp-done-ic { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--accent-strong); color: var(--on-accent); display: grid; place-items: center; font-size: 28px; }
.rsvp-done h4 { font-size: 19px; }
.rsvp-done-sum { font-size: 15px; }
.mc-sum { text-align: center; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.mc-sum span { font-weight: 400; color: var(--muted); font-size: 14px; }
.mc-acts { display: grid; gap: 8px; }
.mc-grid { grid-template-columns: 1fr 1fr; }
.mc-acts .btn { min-height: 50px; font-size: 15px; font-weight: 600; width: 100%; min-width: 0; margin: 0; }
.mc-hint { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-list { list-style: none; display: grid; }
.contact-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; font-size: 13px; color: var(--muted); }
.ct-who { display: grid; }
.ct-who b { font-size: 16px; }
.ct-acts { display: flex; gap: 8px; }
.ct-acts .ic { width: 18px; height: 18px; }
.contact-list .ct-side { justify-content: flex-start; font-size: 13px; font-weight: 700; color: var(--accent-text); border: 0; padding: 14px 0 0; }
.contact-list .ct-side:first-child { padding-top: 0; }
.lightbox { background: rgba(0, 0, 0, .92); padding: 0; z-index: 110; }
.lightbox img { max-width: 100vw; max-height: 82vh; object-fit: contain; }
.lb-x { position: absolute; top: 12px; right: 14px; border: 0; background: none; color: #fff; font-size: 34px; width: 44px; height: 44px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; width: 44px; height: 64px; border-radius: 8px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-count { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); background: rgba(20, 20, 20, .88); color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 14px; line-height: 1.5; text-align: center; opacity: 0; pointer-events: none; transition: .3s; z-index: 200; white-space: normal; width: max-content; max-width: calc(min(100vw, 430px) - 40px); }
.inv.has-qbar .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* BGM · 효과 */
.bgm-btn { position: fixed; top: 14px; right: max(14px, calc(50vw - 201px)); z-index: 60; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 13px; }
.bgm-btn span { width: 3px; height: 6px; background: #333; border-radius: 2px; }
.bgm-btn.on span { animation: eq .9s ease-in-out infinite; }
.bgm-btn.on span:nth-child(2) { animation-delay: .2s; } .bgm-btn.on span:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 50% { height: 14px; } }

/* 하단 바로가기 바 */
.qbar { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 110%); width: min(100vw, 430px); z-index: 70; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--card); color: var(--fg); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0, 0, 0, .08); transition: transform .3s ease; }
.qbar.on { transform: translate(-50%, 0); }
.qbar.kb { transform: translate(-50%, 110%) !important; }
.qb-item { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 56px; padding: 6px 2px; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--fg); border-radius: 10px; line-height: 1.3; }
.qb-item .ic { width: 24px; height: 24px; color: var(--accent-text); }
.qb-item:active { background: var(--bg2); }
.inv.has-qbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .qbar { transition: none; } }
.fx-canvas { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: min(100vw, 430px); height: 100vh; pointer-events: none; z-index: 40; }

/* ════════ 1. 클래식 ════════ */
.tpl-classic { --bg: #fbf8f3; --bg2: #f4efe7; --fg: #3b3530; --muted: #6e655c; --accent: #b08d6e; --accent-text: #8a6a4f; --accent-strong: #8a6a4f; --line: #e5dcd0; --card: #fffdf9;
  --font-display: 'Nanum Myeongjo', serif; }
.tpl-classic .cover { padding: 64px 28px 70px; text-align: center; }
.tpl-classic .cv-date { font-family: var(--font-en); font-size: 52px; line-height: 1; display: flex; justify-content: center; align-items: center; gap: 22px; font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }
.tpl-classic .cv-date i { width: 1px; height: 40px; background: var(--fg); opacity: .5; }
.tpl-classic .cv-dow { font-family: var(--font-en); letter-spacing: .45em; font-size: 13px; color: var(--muted); margin: 14px 0 34px; }
.tpl-classic .cv-photo img, .tpl-classic .cv-photo .no-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.tpl-classic .cv-names { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-top: 36px; }
.tpl-classic .cv-names em { font-style: normal; font-weight: 400; font-size: 14px; color: var(--muted); margin: 0 12px; }
.tpl-classic .cv-meta { margin-top: 14px; color: var(--fg); font-size: 16px; line-height: 1.7; }
.tpl-classic .cv-meta b { font-weight: 600; }
.tpl-classic .sm-card { border-color: var(--line); background: var(--card); box-shadow: 0 6px 18px rgba(120, 90, 60, .06); }
.tpl-classic .sm-date, .tpl-classic .sm-place { font-family: var(--font-display); }

/* ════════ 2. 블러썸 ════════ */
.tpl-floral { --bg: #fffafa; --bg2: #fdf1f2; --fg: #4a3b3e; --muted: #7a6469; --accent: #d98c99; --accent-text: #b0566a; --accent-strong: #b0566a; --line: #f1dde0; --card: #fff;
  --font-display: 'Gowun Batang', serif; --font-en: 'Great Vibes', cursive; --radius: 18px; --btn-radius: 999px; }
.tpl-floral .sec-eyebrow { letter-spacing: 0; text-transform: none; font-size: 30px; line-height: 1.2; }
.tpl-floral .cover { padding: 56px 32px 70px; text-align: center; position: relative; }
.tpl-floral .cv-sprig { position: absolute; width: 90px; color: #9db39a; top: 30px; }
.tpl-floral .cv-sprig.l { left: -6px; transform: scaleX(-1) rotate(-10deg); }
.tpl-floral .cv-sprig.r { right: -6px; transform: rotate(-10deg); }
.tpl-floral .cv-script { font-family: 'Great Vibes', cursive; font-size: 40px; color: var(--accent); line-height: 1.2; margin-bottom: 26px; }
.tpl-floral .cv-photo { border-radius: 200px 200px 24px 24px; overflow: hidden; box-shadow: 0 18px 40px rgba(217, 140, 153, .25); }
.tpl-floral .cv-photo img, .tpl-floral .cv-photo .no-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.tpl-floral .cv-names { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-top: 34px; }
.tpl-floral .cv-names span { color: var(--accent); font-size: 16px; margin: 0 8px; }
.tpl-floral .cv-meta { margin-top: 10px; color: var(--fg); font-size: 16px; letter-spacing: 0; font-family: var(--font-body); line-height: 1.7; }
.tpl-floral .g-item { border-radius: 12px; }
.tpl-floral .cal-date, .tpl-floral .cal-month, .tpl-floral .countdown b { font-family: 'Gowun Batang', serif; font-style: normal; }
.tpl-floral .cal-month { letter-spacing: .1em; }
.tpl-floral .sm-card { border-radius: 18px; border-color: #f1dde0; background: #fff; }
.tpl-floral .sm-act { border-radius: 18px; }

/* ════════ 3. 미니멀 ════════ */
.tpl-minimal { --bg: #ffffff; --bg2: #ffffff; --fg: #111; --muted: #555; --accent: #111; --accent-text: #111; --accent-strong: #111; --line: #e2e2e2; --card: #fff; --radius: 0; --btn-radius: 0;
  --font-display: 'Pretendard', sans-serif; --font-en: 'Pretendard', sans-serif; letter-spacing: -.01em; }
.tpl-minimal .sec { text-align: left; border-top: 1px solid #111; margin: 0 24px; padding: 40px 0 64px; }
.tpl-minimal .sec-ending, .tpl-minimal .sec-tracks { padding-top: 40px; }
.tpl-minimal .sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 30px; }
.tpl-minimal .sec-eyebrow { font-size: 12px; letter-spacing: .2em; font-weight: 600; order: 2; color: var(--muted); }
.tpl-minimal .sec-title { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -.03em; }
.tpl-minimal .greet-body { font-family: var(--font-body); font-size: 15px; line-height: 1.95; }
.tpl-minimal .family, .tpl-minimal .loc-addr { justify-content: flex-start; }
.tpl-minimal .cal-wrap, .tpl-minimal .countdown, .tpl-minimal .loc-btns { margin-left: 0; }
.tpl-minimal .cal-table td.on span { border-radius: 0; }
.tpl-minimal .loc-map, .tpl-minimal .g-slide { margin-left: 0; margin-right: 0; }
.tpl-minimal .g-slide { padding-left: 0; }
.tpl-minimal .countdown { justify-content: flex-start; }
.tpl-minimal .countdown b { font-family: var(--font-body); font-weight: 800; }
.tpl-minimal .cal-date { font-family: var(--font-body); font-weight: 800; font-size: 34px; letter-spacing: -.03em; }
.tpl-minimal .g-item { border-radius: 0; }
.tpl-minimal .end-photo { margin: 0 0 30px; }
.tpl-minimal .sec-ending .sec-eyebrow { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--fg); margin-top: 0; }
.tpl-minimal .share-btns, .tpl-minimal .families { justify-content: flex-start; }
.tpl-minimal .btn-line { margin-top: 26px; }
.tpl-minimal .cover { padding: 26px 24px 40px; }
.tpl-minimal .cv-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .14em; line-height: 1.5; margin-bottom: 18px; }
.tpl-minimal .cv-row span:last-child { text-align: right; }
.tpl-minimal .cv-photo img, .tpl-minimal .cv-photo .no-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(.15); }
.tpl-minimal .cv-big { font-size: 104px; font-weight: 800; letter-spacing: -.06em; line-height: .9; margin: 22px 0 18px -4px; }
.tpl-minimal .cv-names { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; }
.tpl-minimal .cv-names i { flex: 1; height: 1px; background: #111; }
.tpl-minimal .cv-when { font-size: 19px; font-weight: 700; margin: -6px 0 14px; }
.tpl-minimal .cv-venue { margin-top: 6px; color: #333; font-size: 15px; }
.tpl-minimal .sm-card { border: 0; border-top: 2px solid #111; border-radius: 0; padding: 18px 0 0; background: none; }
.tpl-minimal .sm-act, .tpl-minimal .sm-hall { border-radius: 0; }
.tpl-minimal .sm-hall { background: #f0f0f0; }
.tpl-minimal .sm-dday { top: 18px; right: 0; border-radius: 0; }
.tpl-minimal .qbar { border-top: 2px solid #111; }
.tpl-minimal .qb-item { border-radius: 0; }

/* ════════ 4. 아치 & 왁스실 ════════ */
.tpl-arch { --bg: #f5efe7; --bg2: #ede4d9; --fg: #4a3a30; --muted: #76624f; --accent: #8b6a55; --accent-text: #7a5a45; --accent-strong: #8b6a55; --line: #dccfc0; --card: #fbf7f2;
  --font-display: 'Gowun Batang', serif; --font-en: 'Cormorant Garamond', serif; --radius: 16px; }
.tpl-arch .sec-eyebrow { font-style: italic; letter-spacing: .08em; text-transform: none; font-size: 22px; }
.tpl-arch .cover { padding: 60px 30px 64px; text-align: center; }
.tpl-arch .cv-eyebrow { font-family: var(--font-en); font-style: italic; font-size: 22px; color: var(--accent); margin-bottom: 22px; }
.tpl-arch .cv-arch { border-radius: 999px 999px 0 0; overflow: hidden; border: 6px solid #fbf7f2; box-shadow: 0 0 0 1px var(--line); margin: 0 10px; }
.tpl-arch .cv-arch img, .tpl-arch .cv-arch .no-photo { width: 100%; aspect-ratio: 3/4.2; object-fit: cover; }
.tpl-arch .cv-vellum { position: relative; margin: -70px 0 0; padding: 26px 20px 22px; background: rgba(251, 247, 242, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .7); border-radius: 4px; box-shadow: 0 10px 30px rgba(90, 60, 40, .12); }
.tpl-arch .cv-names { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.tpl-arch .cv-names span { font-family: var(--font-en); font-style: italic; font-weight: 400; color: var(--accent); margin: 0 10px; font-size: 20px; }
.tpl-arch .cv-meta { font-family: var(--font-display); color: var(--fg); font-size: 16px; letter-spacing: 0; margin-top: 8px; line-height: 1.65; }
.tpl-arch .sm-card { background: rgba(251, 247, 242, .8); border-radius: 4px; }
.tpl-arch .sm-date, .tpl-arch .sm-place { font-family: var(--font-display); }
.tpl-arch .g-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tpl-arch .g-grid .g-item { border-radius: 999px 999px 6px 6px; aspect-ratio: 3/4; }
.tpl-arch .end-photo { margin: 0 30px 40px; border-radius: 999px 999px 0 0; overflow: hidden; }
/* 봉투 인트로 */
.env-overlay { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100vw, 430px); z-index: 80; background: #e9dfd3; display: grid; place-content: center; justify-items: center; gap: 30px; transition: opacity .8s ease; }
.env-overlay.gone { opacity: 0; pointer-events: none; }
.env { position: relative; width: 300px; height: 200px; cursor: pointer; perspective: 800px; }
.env-back, .env-front { position: absolute; inset: 0; border-radius: 6px; }
.env-back { background: #cdb9a5; }
.env-letter { position: absolute; left: 14px; right: 14px; top: 12px; height: 170px; background: #fbf7f2; border-radius: 4px; display: grid; place-content: center; text-align: center; gap: 6px; z-index: 1; transition: transform .9s cubic-bezier(.5, 0, .2, 1) .35s; }
.env-letter p { font-size: 13px; color: #76624f; }
.env-letter .env-when { font-size: 13px; color: #6e5442; line-height: 1.5; margin-top: 4px; }
.env-letter b { font-family: 'Gowun Batang', serif; font-size: 18px; color: #4a3a30; }
.env-front { background: #dccab7; clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%); z-index: 2; }
.env-front::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: #e4d4c3; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 60%; background: #d4bfa9; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .6s ease; z-index: 3; }
.env-seal { position: absolute; left: 50%; top: 60%; transform: translate(-50%, -50%); z-index: 4; width: 66px; height: 66px; border: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b0534a, #7d2c26 70%); box-shadow: 0 3px 8px rgba(70, 20, 15, .4), inset 0 0 0 5px rgba(0, 0, 0, .12), inset 0 0 0 7px rgba(255, 255, 255, .08);
  color: #f3d9c7; font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; transition: transform .4s, opacity .4s; animation: seal 2.2s ease-in-out infinite; }
.env-seal i { font-style: italic; font-size: 14px; margin: 0 1px; }
@keyframes seal { 50% { transform: translate(-50%, -50%) scale(1.06); } }
.env-hint { font-family: 'Gowun Batang', serif; font-size: 15px; font-weight: 700; color: #6e5442; letter-spacing: .05em; animation: none; }
.env-overlay.open .env-seal { opacity: 0; transform: translate(-50%, -50%) scale(.6); animation: none; }
.env-overlay.open .env-flap { transform: rotateX(180deg); z-index: 0; }
.env-overlay.open .env-letter { transform: translateY(-110px); }

/* ════════ 5. 신문 ════════ */
.tpl-newspaper { --bg: #f2ede1; --bg2: #f2ede1; --fg: #1b1a17; --muted: #4a463e; --accent: #1b1a17; --on-accent: #f2ede1; --line: #1b1a17; --card: #f7f3ea; --radius: 0; --btn-radius: 0;
  --font-display: 'Nanum Myeongjo', serif; --font-body: 'Nanum Myeongjo', serif; --font-en: 'Playfair Display', serif; }
.tpl-newspaper::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px) 0 0 / 3px 3px; z-index: 1; }
.tpl-newspaper .cover { padding: 22px 20px 30px; }
.tpl-newspaper .np-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; border-bottom: 1px solid; padding-bottom: 6px; }
.tpl-newspaper .np-mast { font-family: 'Playfair Display', serif; font-weight: 900; font-size: min(42px, 9.6vw); white-space: nowrap; text-align: center; letter-spacing: -.02em; line-height: 1.15; padding: 10px 0 6px; }
.tpl-newspaper .np-bar { display: flex; justify-content: space-between; border-top: 3px double; border-bottom: 1px solid; padding: 4px 2px; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.tpl-newspaper .np-headline { font-size: 34px; font-weight: 800; line-height: 1.22; margin: 20px 0 8px; letter-spacing: -.04em; }
.tpl-newspaper .np-sub { font-size: 15px; font-weight: 700; color: var(--muted); border-left: 4px solid; padding-left: 10px; margin-bottom: 16px; }
.tpl-newspaper .np-photo img, .tpl-newspaper .np-photo .no-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(1) contrast(1.08) sepia(.12); }
.tpl-newspaper .np-photo figcaption { font-size: 12.5px; color: var(--muted); padding: 6px 0 10px; border-bottom: 1px solid; }
.tpl-newspaper .np-cols { column-count: 2; column-gap: 18px; column-rule: 1px solid rgba(0, 0, 0, .3); font-size: 14px; line-height: 1.75; text-align: left; margin-top: 14px; }
.tpl-newspaper .np-cols p { margin-bottom: 8px; }
.tpl-newspaper .np-box { break-inside: avoid; border: 1px solid; padding: 8px 10px; display: grid; font-size: 13px; text-align: left; }
.tpl-newspaper .np-box b { border-bottom: 1px solid; margin-bottom: 4px; }
.tpl-newspaper .sec { text-align: left; padding: 28px 20px 40px; margin: 0 20px; padding-left: 0; padding-right: 0; border-top: 3px double var(--line); }
.tpl-newspaper .sec-head { margin-bottom: 18px; }
.tpl-newspaper .sec-eyebrow { font-family: var(--font-body); font-weight: 800; letter-spacing: .05em; font-size: 13px; background: var(--fg); color: var(--bg); display: inline-block; padding: 1px 8px; }
.tpl-newspaper .sec-title { font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.tpl-newspaper .greet-body { font-size: 15px; line-height: 1.95; text-align: left; }
.tpl-newspaper .sec-greeting .greet-body::first-letter { float: left; font-size: 52px; line-height: .9; font-weight: 800; margin: 6px 8px 0 0; }
.tpl-newspaper .families, .tpl-newspaper .family, .tpl-newspaper .loc-addr { justify-content: flex-start; }
.tpl-newspaper .families { border-top: 1px solid; border-bottom: 1px solid; padding: 12px 0; margin-top: 26px; }
.tpl-newspaper .cal-wrap { border: 1px solid; max-width: none; }
.tpl-newspaper .cal-table td.on span { border-radius: 0; }
.tpl-newspaper .countdown { border: 1px solid; padding: 12px 0; }
.tpl-newspaper .countdown b { font-family: 'Playfair Display', serif; font-weight: 900; }
.tpl-newspaper .g-item, .tpl-newspaper .end-photo img { filter: grayscale(1) sepia(.1); }
.tpl-newspaper .loc-map, .tpl-newspaper .end-photo, .tpl-newspaper .g-slide { margin-left: 0; margin-right: 0; }
.tpl-newspaper .loc-map iframe { filter: grayscale(1); }
.tpl-newspaper .acc-group, .tpl-newspaper .gb-item { border-color: var(--fg); }
.tpl-newspaper .sec-ending { text-align: center; padding-top: 30px; }
.tpl-newspaper .sec-ending .sec-eyebrow { font-size: 14px; margin-top: 0; }
.tpl-newspaper .sm-card { border: 2px solid var(--fg); border-radius: 0; background: var(--card); box-shadow: 4px 4px 0 var(--fg); }
.tpl-newspaper .sm-k { color: var(--fg); border-right: 1px solid; }
.tpl-newspaper .sm-act, .tpl-newspaper .sm-hall, .tpl-newspaper .sm-dday { border-radius: 0; }
.tpl-newspaper .sm-hall { background: var(--fg); color: var(--bg); }
.tpl-newspaper .qbar { border-top: 3px double var(--fg); background: var(--bg); }

/* ════════ 6. 무비 포스터 ════════ */
.tpl-movie { --bg: #0e0e10; --bg2: #151518; --fg: #ece8e1; --muted: #a8a29a; --accent: #e3be74; --accent-text: #e3be74; --accent-strong: #e3be74; --on-accent: #111; --line: #2c2b2e; --card: #18181b; --radius: 6px; --btn-radius: 4px;
  --font-display: 'Black Han Sans', sans-serif; --font-en: 'Bebas Neue', sans-serif; }
.tpl-movie::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07; z-index: 30;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tpl-movie .sec-eyebrow { font-size: 18px; letter-spacing: .14em; }
.tpl-movie .sec-title { font-weight: 400; font-size: 22px; }
.tpl-movie .sec { --sec-bg: var(--bg); }
.tpl-movie .sec:nth-of-type(even) { --sec-bg: var(--bg2); }
.tpl-movie .cover { padding: 0; }
.tpl-movie .mv-poster { position: relative; min-height: min(100vh, 860px); min-height: min(100svh, 860px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.tpl-movie .mv-poster > img, .tpl-movie .mv-poster > .no-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(.85); animation: kb 18s ease-out both; }
@keyframes kb { from { transform: scale(1.12); } }
.tpl-movie .mv-grad { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, transparent 22%, transparent 42%, rgba(14, 14, 16, .85) 68%, #0e0e10 100%); }
.tpl-movie .mv-tag { position: absolute; top: 36px; left: 0; right: 0; text-align: center; font-family: 'Gowun Batang', serif; font-size: 15px; letter-spacing: .08em; color: #f2ede4; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); padding: 0 30px; }
.tpl-movie .mv-bottom { position: relative; padding: 0 24px 34px; text-align: center; }
.tpl-movie .mv-pre { font-size: 15px; letter-spacing: .5em; font-weight: 600; color: #f2ede4; }
.tpl-movie .mv-title { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 54px; line-height: 1.05; margin: 8px 0 2px; letter-spacing: -.02em; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.tpl-movie .mv-en { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: .25em; color: var(--accent); }
.tpl-movie .mv-date { font-family: 'Black Han Sans', sans-serif; font-size: 26px; color: var(--accent); margin: 18px 0 14px; }
.tpl-movie .mv-when { font-family: var(--font-body); font-size: 16px; font-weight: 600; color: #f2ede4; line-height: 1.55; margin: -4px 0 16px; padding: 10px 0; border-top: 1px solid rgba(227, 190, 116, .4); border-bottom: 1px solid rgba(227, 190, 116, .4); }
.tpl-movie .mv-credits { font-family: 'Bebas Neue', 'Pretendard', sans-serif; font-size: 13px; line-height: 1.3; letter-spacing: .04em; color: #a9a39a; transform: scaleY(1.25); padding: 4px 0; text-wrap: balance; }
.tpl-movie .mv-credits b { color: #ddd; font-family: 'Pretendard', sans-serif; font-size: 11px; font-weight: 600; }
.tpl-movie .mv-rate { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; color: #aaa; }
.tpl-movie .mv-rate span { width: 24px; height: 24px; border-radius: 50%; background: #2fa84f; color: #fff; display: grid; place-items: center; font-family: 'Bebas Neue', sans-serif; font-size: 12px; }
.tpl-movie .greet-body { font-family: 'Gowun Batang', serif; }
.tpl-movie .loc-name { font-family: var(--font-body); font-weight: 800; }
.tpl-movie .end-msg { font-family: 'Gowun Batang', serif; }
.tpl-movie .cal-wrap { background: var(--card); border: 1px dashed #444; border-radius: 8px; position: relative; }
.tpl-movie .sm-card { background: var(--card); border: 1px dashed #555; border-radius: 8px; }
.tpl-movie .cal-wrap::before, .tpl-movie .cal-wrap::after, .tpl-movie .sm-card::before, .tpl-movie .sm-card::after { content: ''; position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--sec-bg, var(--bg)); transform: translateY(-50%); }
.tpl-movie .cal-wrap::before, .tpl-movie .sm-card::before { left: -10px; } .tpl-movie .cal-wrap::after, .tpl-movie .sm-card::after { right: -10px; }
.tpl-movie .sm-act { background: #1f1f23; border-color: #333; }
.tpl-movie .sm-hall { background: #2a2a2f; }
.tpl-movie .qbar { background: #121214; border-top-color: #2c2b2e; }
.tpl-movie .cal-date, .tpl-movie .countdown b { font-family: 'Bebas Neue', sans-serif; letter-spacing: .08em; }
.tpl-movie .countdown b { font-size: 34px; color: var(--accent); }
.tpl-movie .g-grid { grid-template-columns: repeat(2, 1fr); }
.tpl-movie .g-item { aspect-ratio: 16/10; border-radius: 2px; }
.tpl-movie .g-grid .g-item:nth-child(3n+1) { grid-column: span 2; aspect-ratio: 2.35/1; }
.tpl-movie .loc-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }
.tpl-movie .sec-ending .sec-eyebrow { font-size: 44px; letter-spacing: .3em; color: #fff; }
.tpl-movie .end-photo img { filter: grayscale(.6); }

/* ════════ 7. 플레이리스트 ════════ */
.tpl-playlist { --tint: #4a3f6b; --bg: #121016; --bg2: #121016; --fg: #f4f2f8; --muted: #b3afc0; --accent: #c9b8ff; --accent-text: #c9b8ff; --on-accent: #17131f; --line: #2a2733; --card: #1d1a24; --radius: 10px; --btn-radius: 999px;
  --font-display: 'Pretendard', sans-serif; --font-en: 'Pretendard', sans-serif; }
.tpl-playlist .cover { padding: 18px 26px 34px; background: linear-gradient(to bottom, var(--tint), var(--bg) 92%); transition: background .6s; }
.tpl-playlist .pl-top { display: flex; align-items: center; justify-content: space-between; text-align: center; margin-bottom: 26px; }
.tpl-playlist .pl-top p { display: grid; line-height: 1.35; }
.tpl-playlist .pl-top small { font-size: 11px; letter-spacing: .15em; color: rgba(255, 255, 255, .7); }
.tpl-playlist .pl-top b { font-size: 13px; }
.tpl-playlist .pl-ic { font-size: 22px; width: 24px; opacity: .9; }
.tpl-playlist .pl-art { box-shadow: 0 20px 50px rgba(0, 0, 0, .45); border-radius: 6px; overflow: hidden; }
.tpl-playlist .pl-art img, .tpl-playlist .pl-art .no-photo { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s; }
.tpl-playlist .cover:not(.playing) .pl-art img { transform: scale(.94); }
.tpl-playlist .pl-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; text-align: left; }
.tpl-playlist .pl-meta h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.tpl-playlist .pl-meta p { color: var(--muted); font-size: 14px; }
.tpl-playlist .pl-heart { background: none; border: 0; font-size: 28px; color: #fff; width: 44px; height: 44px; }
.tpl-playlist .pl-heart.on { color: var(--accent); animation: pop .3s; }
.tpl-playlist .pl-bar { height: 4px; background: rgba(255, 255, 255, .25); border-radius: 4px; margin-top: 18px; position: relative; }
.tpl-playlist .pl-fill { width: 2%; height: 100%; background: #fff; border-radius: 4px; position: relative; transition: width 1s linear; }
.tpl-playlist .pl-fill::after { content: ''; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.tpl-playlist .pl-times { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.tpl-playlist .pl-ctrl { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 0 4px; }
.tpl-playlist .pl-ctrl span { width: 26px; color: #fff; display: grid; }
.tpl-playlist .pl-ctrl span:first-child, .tpl-playlist .pl-ctrl span:last-child { width: 22px; color: var(--accent); }
.tpl-playlist .pl-play { width: 66px; height: 66px; border-radius: 50%; border: 0; background: #fff; color: #111; display: grid; place-items: center; }
.tpl-playlist .pl-play svg { width: 30px; height: 30px; grid-area: 1 / 1; }
.tpl-playlist .i-pause, .tpl-playlist .playing .i-play { display: none; }
.tpl-playlist .playing .i-pause { display: block; }
.tpl-playlist .pl-release { margin-top: 20px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 15px; font-weight: 600; line-height: 1.55; color: #fff; }
.tpl-playlist .pl-release p + p { font-weight: 400; color: rgba(255, 255, 255, .85); }
.tpl-playlist .pl-sub { margin-top: 22px; font-size: 13px; color: var(--muted); }
.tpl-playlist .sec { text-align: left; padding: 30px 22px; margin: 0 14px 14px; background: var(--card); border-radius: 14px; }
.tpl-playlist .sec-head { margin-bottom: 18px; }
.tpl-playlist .sec-eyebrow { font-size: 12px; letter-spacing: .2em; font-weight: 700; }
.tpl-playlist .sec-title { font-size: 20px; font-weight: 800; }
.tpl-playlist .sec-greeting { background: linear-gradient(160deg, var(--tint), #2a2238); }
.tpl-playlist .greet-body { font-family: var(--font-body); font-size: 19px; font-weight: 700; line-height: 1.75; color: rgba(255, 255, 255, .95); }
.tpl-playlist .families, .tpl-playlist .family, .tpl-playlist .loc-addr { justify-content: flex-start; }
.tpl-playlist .sec-tracks { background: transparent; padding: 10px 12px; }
.tpl-playlist .tr-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.tpl-playlist .tr-head b { font-size: 18px; }
.tpl-playlist .tr-head span { font-size: 12px; color: var(--muted); }
.tpl-playlist .tr-list { list-style: none; }
.tpl-playlist .tr-list a { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; text-decoration: none; }
.tpl-playlist .tr-no { color: var(--muted); font-size: 14px; text-align: center; }
.tpl-playlist .tr-t { display: grid; line-height: 1.35; }
.tpl-playlist .tr-t b { font-size: 15px; font-weight: 600; }
.tpl-playlist .tr-t small { font-size: 13px; color: #c9c5d6; }
.tpl-playlist .tr-time { font-size: 20px; color: var(--muted); }
.tpl-playlist .tr-list li:first-child b { color: var(--accent); }
.tpl-playlist .cal-wrap { border-color: var(--line); }
.tpl-playlist .loc-map, .tpl-playlist .g-slide { margin-left: -22px; margin-right: -22px; }
.tpl-playlist .loc-trans { margin-top: 20px; }
.tpl-playlist .countdown { justify-content: flex-start; }
.tpl-playlist .sec-ending { padding-top: 0; overflow: hidden; text-align: center; }
.tpl-playlist .end-photo { margin: 0 -22px 26px; }
.tpl-playlist .sec-ending .sec-eyebrow { margin-top: 30px; font-size: 13px; }
.tpl-playlist .end-photo + .sec-eyebrow { margin-top: 0; }
.tpl-playlist .sm-card { background: transparent; border: 0; padding: 0; }
.tpl-playlist .sm-act { background: #26222f; border-color: #34303f; }
.tpl-playlist .qbar { background: #1d1a24; border-top-color: #2a2733; }

/* ════════ 8. 보딩패스 ════════ */
.tpl-boarding { --bg: #e9f0f6; --bg2: #e9f0f6; --fg: #1f2a3a; --muted: #56647a; --accent: #1f3a5f; --accent-text: #1f3a5f; --accent-strong: #1f3a5f; --line: #cfdbe6; --card: #fff; --radius: 14px;
  --font-display: 'Pretendard', sans-serif; --font-en: 'Space Mono', monospace; }
.tpl-boarding .cover { padding: 34px 20px 30px; text-align: center; }
.tpl-boarding .bp-air { font-family: 'Space Mono', monospace; font-weight: 700; letter-spacing: .2em; font-size: 12px; color: var(--accent); margin-bottom: 18px; }
.tpl-boarding .bp-ticket { background: #fff; border-radius: 18px; box-shadow: 0 20px 40px rgba(31, 58, 95, .15); overflow: hidden; text-align: left; position: relative; }
.tpl-boarding .bp-head { display: flex; justify-content: space-between; background: var(--accent); color: #fff; font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: .14em; padding: 12px 18px; }
.tpl-boarding .bp-head span:last-child { color: #f2b880; }
.tpl-boarding .bp-photo img, .tpl-boarding .bp-photo .no-photo { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.tpl-boarding .bp-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px 18px 6px; }
.tpl-boarding .bp-route > div { display: grid; }
.tpl-boarding .bp-route > div:last-child { text-align: right; }
.tpl-boarding .bp-ticket small { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.tpl-boarding .bp-route b { font-family: 'Space Mono', monospace; font-size: 34px; line-height: 1.1; color: var(--accent); }
.tpl-boarding .bp-route span { font-size: 15px; font-weight: 600; }
.tpl-boarding .bp-plane { display: flex; align-items: center; gap: 4px; color: #e76f51; padding: 0 8px; }
.tpl-boarding .bp-plane svg { width: 24px; transform: rotate(90deg); }
.tpl-boarding .bp-plane i { width: 22px; border-top: 2px dotted var(--line); }
.tpl-boarding .bp-grid { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px 8px; padding: 14px 18px 18px; }
.tpl-boarding .bp-grid div { align-content: start; }
.tpl-boarding .bp-grid div { display: grid; }
.tpl-boarding .bp-grid b { font-size: 16px; white-space: nowrap; }
.tpl-boarding .bp-grid .bp-date { grid-column: span 2; }
.tpl-boarding .bp-tear { position: relative; border-top: 2px dashed var(--line); margin: 0 14px; }
.tpl-boarding .bp-tear::before, .tpl-boarding .bp-tear::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.tpl-boarding .bp-tear::before { left: -27px; } .tpl-boarding .bp-tear::after { right: -27px; }
.tpl-boarding .bp-stub { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px 20px; }
.tpl-boarding .bp-stub > div:first-child { display: grid; }
.tpl-boarding .bp-stub b { font-size: 18px; color: var(--fg); }
.tpl-boarding .bp-stub span { font-size: 15px; font-weight: 700; color: var(--accent); }
.tpl-boarding .bp-barcode { width: 110px; height: 48px; flex: none; background: repeating-linear-gradient(90deg, #1f2a3a 0 2px, transparent 2px 4px, #1f2a3a 4px 5px, transparent 5px 8px, #1f2a3a 8px 11px, transparent 11px 12px); }
.tpl-boarding .bp-sub { margin-top: 20px; font-size: 13px; color: var(--muted); }
.tpl-boarding .sec { margin: 0 16px 16px; padding: 40px 22px; background: #fff; border-radius: 18px; box-shadow: 0 6px 18px rgba(31, 58, 95, .06); }
.tpl-boarding .sec-eyebrow { font-size: 12px; letter-spacing: .2em; font-weight: 700; }
.tpl-boarding .sec-title { font-size: 19px; font-weight: 800; }
.tpl-boarding .greet-body { font-family: var(--font-body); }
.tpl-boarding .cal-date, .tpl-boarding .countdown b { font-family: 'Space Mono', monospace; font-weight: 700; color: var(--accent); }
.tpl-boarding .cal-date { font-size: 24px; }
.tpl-boarding .countdown b { font-size: 24px; }
.tpl-boarding .loc-map, .tpl-boarding .g-slide, .tpl-boarding .end-photo { margin-left: -22px; margin-right: -22px; }
.tpl-boarding .sec-ending { padding-top: 0; overflow: hidden; }
.tpl-boarding .sec-ending .sec-eyebrow { font-size: 14px; }
.tpl-boarding .sm-card { border: 0; box-shadow: none; padding: 0; background: none; }
.tpl-boarding .sm-k { font-family: 'Space Mono', monospace; font-size: 12px; }
.tpl-boarding .sm-acts { border-top: 2px dashed var(--line); }

/* ════════ 9. 메신저 대화 ════════ */
.tpl-chat { --bg: #dde3ec; --bg2: #dde3ec; --fg: #1d2129; --muted: #5b6372; --accent: #3b4252; --accent-text: #3b4252; --accent-strong: #3b4252; --line: #e3e6ec; --card: #fff; --radius: 18px; --btn-radius: 12px;
  --font-display: 'Pretendard', sans-serif; --font-en: 'Pretendard', sans-serif; }
/* overflow:hidden 은 sticky 를 막으므로 clip 사용 (미지원 브라우저는 hidden 유지) */
.inv.tpl-chat { overflow: clip; }
.tpl-chat .cover { padding: 0 0 20px; }
.tpl-chat .ch-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: rgba(221, 227, 236, .92); backdrop-filter: blur(8px); font-size: 17px; }
.tpl-chat .ch-bar span:first-child { font-size: 26px; line-height: 1; margin-right: 4px; }
.tpl-chat .ch-n { color: var(--muted); font-size: 15px; }
.tpl-chat .ch-sp { flex: 1; }
.tpl-chat .ch-notice { position: sticky; top: 56px; z-index: 19; display: flex; gap: 8px; align-items: center; width: calc(100% - 28px); margin: 6px 14px 0; padding: 10px 14px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); font-size: 14px; line-height: 1.5; text-align: left; color: var(--fg); }
.tpl-chat .ch-notice .ic { color: #e0a800; }
.tpl-chat .ch-notice b { margin-right: 4px; }
.tpl-chat .ch-day { width: max-content; margin: 12px auto 16px; background: #6f7787; color: #fff; font-size: 13px; padding: 4px 14px; border-radius: 999px; }
.tpl-chat .ch-list { display: grid; gap: 10px; padding: 0 14px; }
.tpl-chat .ch-msg { display: flex; gap: 8px; align-items: flex-start; max-height: none; overflow: visible; visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease, visibility .3s; }
.tpl-chat .ch-msg.show { visibility: visible; opacity: 1; transform: none; }
.tpl-chat .ch-me-name { text-align: right; }
.tpl-chat .ch-msg small { font-size: 12px; color: var(--muted); display: block; margin-bottom: 3px; }
.tpl-chat .ch-msg.me { justify-content: flex-end; }
.tpl-chat .ch-av { flex: none; width: 40px; height: 40px; border-radius: 15px; display: grid; place-items: center; font-weight: 700; color: #fff; background: #5d6f94; }
.tpl-chat .ch-bubble { background: #fff; padding: 9px 13px; border-radius: 4px 16px 16px 16px; font-size: 15px; line-height: 1.5; max-width: 250px; box-shadow: 0 1px 1px rgba(0, 0, 0, .04); }
.tpl-chat .me .ch-bubble { background: #ffd84d; border-radius: 16px 4px 16px 16px; }
.tpl-chat .ch-photo .ch-bubble { padding: 0; overflow: hidden; border-radius: 14px; }
.tpl-chat .ch-photo img { width: 210px; aspect-ratio: 4/5; object-fit: cover; }
.tpl-chat .ch-typing { display: flex; visibility: hidden; gap: 4px; margin: 10px 0 0 62px; background: #fff; width: max-content; padding: 12px 14px; border-radius: 4px 16px 16px 16px; }
.tpl-chat .ch-typing.show { visibility: visible; }
.tpl-chat .ch-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b5bccb; animation: typing 1s infinite; }
.tpl-chat .ch-typing span:nth-child(2) { animation-delay: .15s; } .tpl-chat .ch-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-4px); background: #7d869a; } }
.tpl-chat .sec { margin: 0 14px 14px; padding: 30px 20px; background: #fff; border-radius: 20px; scroll-margin-top: 120px; }
.tpl-chat .sec-head { margin-bottom: 20px; }
.tpl-chat .sec-eyebrow { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--muted); }
.tpl-chat .sec-title { font-size: 19px; font-weight: 800; color: var(--fg); margin-top: 2px; }
.tpl-chat .sec-greeting .sec-eyebrow, .tpl-chat .sec-ending .sec-eyebrow { font-size: 17px; font-weight: 700; color: var(--fg); }
.tpl-chat .greet-body { font-family: var(--font-body); }
.tpl-chat .btn-main { background: #ffd84d; border-color: #ffd84d; color: #1d2129; font-weight: 700; }
.tpl-chat .cal-table td.on span { background: #ffd84d; color: #1d2129; }
.tpl-chat .dday-text b { color: #8a6400; }
.tpl-chat .g-item { border-radius: 10px; }
.tpl-chat .loc-map, .tpl-chat .g-slide, .tpl-chat .end-photo { margin-left: -20px; margin-right: -20px; }
.tpl-chat .sec-ending { padding-top: 0; overflow: hidden; }
.tpl-chat .sec-ending .sec-eyebrow { font-size: 20px; }
.tpl-chat .acc-group, .tpl-chat .gb-item { background: #f5f7fa; border-color: transparent; }
.tpl-chat .sm-card { background: #f5f7fa; border-color: transparent; border-radius: 16px; }
.tpl-chat .sm-act { background: #fff; border-color: #e3e6ec; border-radius: 12px; }
.tpl-chat .qb-item .ic { color: #3b4252; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tpl-movie .mv-poster > img, .env-seal { animation: none; }
}
